@everymatrix/general-icon-progress-bar 1.74.2 → 1.74.3
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-DSaIA0Oc.js → GeneralIconProgressBar-B2l5IJIC.js} +396 -394
- package/components/{GeneralIconProgressBar-DvfGRc7A.js → GeneralIconProgressBar-BQOld2VG.js} +375 -373
- package/components/GeneralIconProgressBar-j-fA-plB.cjs +16 -0
- 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-DvairRCn.cjs +0 -16
package/components/{GeneralIconProgressBar-DSaIA0Oc.js → GeneralIconProgressBar-B2l5IJIC.js}
RENAMED
@@ -1,42 +1,42 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var me = (e, t, r) => t in e ?
|
1
|
+
var Dt = Object.defineProperty, Ft = Object.defineProperties;
|
2
|
+
var jt = Object.getOwnPropertyDescriptors;
|
3
|
+
var De = Object.getOwnPropertySymbols;
|
4
|
+
var Vt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable;
|
5
|
+
var me = (e, t, r) => t in e ? Dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fe = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Vt.call(t, r) && me(e, r, t[r]);
|
8
|
+
if (De)
|
9
|
+
for (var r of De(t))
|
10
|
+
kt.call(t, r) && me(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
12
|
+
}, je = (e, t) => Ft(e, jt(t));
|
13
13
|
var T = (e, t, r) => (me(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
-
var
|
15
|
-
var s = (
|
14
|
+
var Ve = (e, t, r) => new Promise((n, i) => {
|
15
|
+
var s = (h) => {
|
16
16
|
try {
|
17
|
-
a(r.next(
|
18
|
-
} catch (
|
19
|
-
i(
|
17
|
+
a(r.next(h));
|
18
|
+
} catch (u) {
|
19
|
+
i(u);
|
20
20
|
}
|
21
|
-
}, o = (
|
21
|
+
}, o = (h) => {
|
22
22
|
try {
|
23
|
-
a(r.throw(
|
24
|
-
} catch (
|
25
|
-
i(
|
23
|
+
a(r.throw(h));
|
24
|
+
} catch (u) {
|
25
|
+
i(u);
|
26
26
|
}
|
27
|
-
}, a = (
|
27
|
+
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
30
|
function B() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function at(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function ke() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
38
|
function ee(e) {
|
39
|
-
e.forEach(
|
39
|
+
e.forEach(at);
|
40
40
|
}
|
41
41
|
function Le(e) {
|
42
42
|
return typeof e == "function";
|
@@ -44,10 +44,10 @@ function Le(e) {
|
|
44
44
|
function ut(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function Xt(e) {
|
48
48
|
return Object.keys(e).length === 0;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function ht(e, ...t) {
|
51
51
|
if (e == null) {
|
52
52
|
for (const n of t)
|
53
53
|
n(void 0);
|
@@ -56,20 +56,20 @@ function lt(e, ...t) {
|
|
56
56
|
const r = e.subscribe(...t);
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
58
58
|
}
|
59
|
-
function
|
60
|
-
e.$$.on_destroy.push(
|
59
|
+
function zt(e, t, r) {
|
60
|
+
e.$$.on_destroy.push(ht(t, r));
|
61
61
|
}
|
62
62
|
function ne(e, t) {
|
63
63
|
e.appendChild(t);
|
64
64
|
}
|
65
|
-
function
|
66
|
-
const n =
|
65
|
+
function Wt(e, t, r) {
|
66
|
+
const n = Zt(e);
|
67
67
|
if (!n.getElementById(t)) {
|
68
68
|
const i = Q("style");
|
69
|
-
i.id = t, i.textContent = r,
|
69
|
+
i.id = t, i.textContent = r, Qt(n, i);
|
70
70
|
}
|
71
71
|
}
|
72
|
-
function
|
72
|
+
function Zt(e) {
|
73
73
|
if (!e)
|
74
74
|
return document;
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -79,14 +79,14 @@ function Qt(e) {
|
|
79
79
|
t
|
80
80
|
) : e.ownerDocument;
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Qt(e, t) {
|
83
83
|
return ne(
|
84
84
|
/** @type {Document} */
|
85
85
|
e.head || e,
|
86
86
|
t
|
87
87
|
), t.sheet;
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function lt(e, t, r) {
|
90
90
|
e.insertBefore(t, r || null);
|
91
91
|
}
|
92
92
|
function Ce(e) {
|
@@ -95,20 +95,20 @@ function Ce(e) {
|
|
95
95
|
function Q(e) {
|
96
96
|
return document.createElement(e);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function Jt(e) {
|
99
99
|
return document.createTextNode(e);
|
100
100
|
}
|
101
101
|
function C(e, t, r) {
|
102
102
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
103
103
|
}
|
104
|
-
function
|
104
|
+
function qt(e) {
|
105
105
|
return Array.from(e.childNodes);
|
106
106
|
}
|
107
|
-
function
|
107
|
+
function Yt(e, t) {
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
109
109
|
t);
|
110
110
|
}
|
111
|
-
function
|
111
|
+
function Kt(e) {
|
112
112
|
const t = {};
|
113
113
|
return e.childNodes.forEach(
|
114
114
|
/** @param {Element} node */
|
@@ -123,15 +123,15 @@ function J(e) {
|
|
123
123
|
}
|
124
124
|
const G = [], q = [];
|
125
125
|
let D = [];
|
126
|
-
const
|
126
|
+
const Xe = [], er = /* @__PURE__ */ Promise.resolve();
|
127
127
|
let ve = !1;
|
128
|
-
function
|
129
|
-
ve || (ve = !0,
|
128
|
+
function tr() {
|
129
|
+
ve || (ve = !0, er.then(P));
|
130
130
|
}
|
131
131
|
function He(e) {
|
132
132
|
D.push(e);
|
133
133
|
}
|
134
|
-
const
|
134
|
+
const de = /* @__PURE__ */ new Set();
|
135
135
|
let $ = 0;
|
136
136
|
function P() {
|
137
137
|
if ($ !== 0)
|
@@ -141,7 +141,7 @@ function P() {
|
|
141
141
|
try {
|
142
142
|
for (; $ < G.length; ) {
|
143
143
|
const t = G[$];
|
144
|
-
$++, J(t),
|
144
|
+
$++, J(t), rr(t.$$);
|
145
145
|
}
|
146
146
|
} catch (t) {
|
147
147
|
throw G.length = 0, $ = 0, t;
|
@@ -150,84 +150,84 @@ function P() {
|
|
150
150
|
q.pop()();
|
151
151
|
for (let t = 0; t < D.length; t += 1) {
|
152
152
|
const r = D[t];
|
153
|
-
|
153
|
+
de.has(r) || (de.add(r), r());
|
154
154
|
}
|
155
155
|
D.length = 0;
|
156
156
|
} while (G.length);
|
157
|
-
for (;
|
158
|
-
|
159
|
-
ve = !1,
|
157
|
+
for (; Xe.length; )
|
158
|
+
Xe.pop()();
|
159
|
+
ve = !1, de.clear(), J(e);
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function rr(e) {
|
162
162
|
if (e.fragment !== null) {
|
163
163
|
e.update(), ee(e.before_update);
|
164
164
|
const t = e.dirty;
|
165
165
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(He);
|
166
166
|
}
|
167
167
|
}
|
168
|
-
function
|
168
|
+
function nr(e) {
|
169
169
|
const t = [], r = [];
|
170
170
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
171
171
|
}
|
172
|
-
const
|
173
|
-
function
|
174
|
-
e && e.i && (
|
172
|
+
const ir = /* @__PURE__ */ new Set();
|
173
|
+
function sr(e, t) {
|
174
|
+
e && e.i && (ir.delete(e), e.i(t));
|
175
175
|
}
|
176
|
-
function
|
176
|
+
function or(e, t, r) {
|
177
177
|
const { fragment: n, after_update: i } = e.$$;
|
178
178
|
n && n.m(t, r), He(() => {
|
179
|
-
const s = e.$$.on_mount.map(
|
179
|
+
const s = e.$$.on_mount.map(at).filter(Le);
|
180
180
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
181
181
|
}), i.forEach(He);
|
182
182
|
}
|
183
|
-
function
|
183
|
+
function ar(e, t) {
|
184
184
|
const r = e.$$;
|
185
|
-
r.fragment !== null && (
|
185
|
+
r.fragment !== null && (nr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
186
186
|
}
|
187
187
|
function ur(e, t) {
|
188
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
188
|
+
e.$$.dirty[0] === -1 && (G.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
189
189
|
}
|
190
|
-
function
|
191
|
-
const
|
190
|
+
function hr(e, t, r, n, i, s, o = null, a = [-1]) {
|
191
|
+
const h = Me;
|
192
192
|
J(e);
|
193
|
-
const
|
193
|
+
const u = e.$$ = {
|
194
194
|
fragment: null,
|
195
195
|
ctx: [],
|
196
196
|
// state
|
197
197
|
props: s,
|
198
198
|
update: B,
|
199
199
|
not_equal: i,
|
200
|
-
bound:
|
200
|
+
bound: ke(),
|
201
201
|
// lifecycle
|
202
202
|
on_mount: [],
|
203
203
|
on_destroy: [],
|
204
204
|
on_disconnect: [],
|
205
205
|
before_update: [],
|
206
206
|
after_update: [],
|
207
|
-
context: new Map(t.context || (
|
207
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
208
208
|
// everything else
|
209
|
-
callbacks:
|
209
|
+
callbacks: ke(),
|
210
210
|
dirty: a,
|
211
211
|
skip_bound: !1,
|
212
|
-
root: t.target ||
|
212
|
+
root: t.target || h.$$.root
|
213
213
|
};
|
214
|
-
o && o(
|
214
|
+
o && o(u.root);
|
215
215
|
let l = !1;
|
216
|
-
if (
|
216
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...x) => {
|
217
217
|
const g = x.length ? x[0] : f;
|
218
|
-
return
|
219
|
-
})
|
218
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), l && ur(e, c)), f;
|
219
|
+
}), u.update(), l = !0, ee(u.before_update), u.fragment = n(u.ctx), t.target) {
|
220
220
|
if (t.hydrate) {
|
221
|
-
const c =
|
222
|
-
|
221
|
+
const c = qt(t.target);
|
222
|
+
u.fragment && u.fragment.l(c), c.forEach(Ce);
|
223
223
|
} else
|
224
|
-
|
225
|
-
t.intro &&
|
224
|
+
u.fragment && u.fragment.c();
|
225
|
+
t.intro && sr(e.$$.fragment), or(e, t.target, t.anchor), P();
|
226
226
|
}
|
227
|
-
J(
|
227
|
+
J(h);
|
228
228
|
}
|
229
|
-
let
|
230
|
-
typeof HTMLElement == "function" && (
|
229
|
+
let ft;
|
230
|
+
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
231
231
|
constructor(t, r, n) {
|
232
232
|
super();
|
233
233
|
/** The Svelte component constructor */
|
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
264
264
|
}
|
265
265
|
}
|
266
266
|
connectedCallback() {
|
267
|
-
return
|
267
|
+
return Ve(this, null, function* () {
|
268
268
|
if (this.$$cn = !0, !this.$$c) {
|
269
269
|
let t = function(s) {
|
270
270
|
return () => {
|
@@ -277,18 +277,18 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
277
277
|
* @param {HTMLElement} target
|
278
278
|
* @param {HTMLElement} [anchor]
|
279
279
|
*/
|
280
|
-
m: function(
|
281
|
-
|
280
|
+
m: function(u, l) {
|
281
|
+
lt(u, o, l);
|
282
282
|
},
|
283
|
-
d: function(
|
284
|
-
|
283
|
+
d: function(u) {
|
284
|
+
u && Ce(o);
|
285
285
|
}
|
286
286
|
};
|
287
287
|
};
|
288
288
|
};
|
289
289
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
290
290
|
return;
|
291
|
-
const r = {}, n =
|
291
|
+
const r = {}, n = Kt(this);
|
292
292
|
for (const s of this.$$s)
|
293
293
|
s in n && (r[s] = [t(s)]);
|
294
294
|
for (const s of this.attributes) {
|
@@ -299,7 +299,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
299
299
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
300
300
|
this.$$c = new this.$$ctor({
|
301
301
|
target: this.shadowRoot || this,
|
302
|
-
props:
|
302
|
+
props: je(Fe({}, this.$$d), {
|
303
303
|
$$slots: r,
|
304
304
|
$$scope: {
|
305
305
|
ctx: []
|
@@ -377,8 +377,8 @@ function ie(e, t, r, n) {
|
|
377
377
|
return t;
|
378
378
|
}
|
379
379
|
}
|
380
|
-
function
|
381
|
-
let o = class extends
|
380
|
+
function lr(e, t, r, n, i, s) {
|
381
|
+
let o = class extends ft {
|
382
382
|
constructor() {
|
383
383
|
super(e, r, i), this.$$p_d = t;
|
384
384
|
}
|
@@ -393,22 +393,22 @@ function fr(e, t, r, n, i, s) {
|
|
393
393
|
get() {
|
394
394
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
395
395
|
},
|
396
|
-
set(
|
397
|
-
var
|
398
|
-
|
396
|
+
set(h) {
|
397
|
+
var u;
|
398
|
+
h = ie(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
399
399
|
}
|
400
400
|
});
|
401
401
|
}), n.forEach((a) => {
|
402
402
|
Object.defineProperty(o.prototype, a, {
|
403
403
|
get() {
|
404
|
-
var
|
405
|
-
return (
|
404
|
+
var h;
|
405
|
+
return (h = this.$$c) == null ? void 0 : h[a];
|
406
406
|
}
|
407
407
|
});
|
408
408
|
}), e.element = /** @type {any} */
|
409
409
|
o, o;
|
410
410
|
}
|
411
|
-
class
|
411
|
+
class fr {
|
412
412
|
constructor() {
|
413
413
|
/**
|
414
414
|
* ### PRIVATE API
|
@@ -429,7 +429,7 @@ class cr {
|
|
429
429
|
}
|
430
430
|
/** @returns {void} */
|
431
431
|
$destroy() {
|
432
|
-
|
432
|
+
ar(this, 1), this.$destroy = B;
|
433
433
|
}
|
434
434
|
/**
|
435
435
|
* @template {Extract<keyof Events, string>} K
|
@@ -451,28 +451,28 @@ class cr {
|
|
451
451
|
* @returns {void}
|
452
452
|
*/
|
453
453
|
$set(t) {
|
454
|
-
this.$$set && !
|
454
|
+
this.$$set && !Xt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
455
455
|
}
|
456
456
|
}
|
457
|
-
const
|
458
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
457
|
+
const cr = "4";
|
458
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
459
459
|
const U = [];
|
460
|
-
function
|
460
|
+
function pr(e, t) {
|
461
461
|
return {
|
462
|
-
subscribe:
|
462
|
+
subscribe: he(e, t).subscribe
|
463
463
|
};
|
464
464
|
}
|
465
|
-
function
|
465
|
+
function he(e, t = B) {
|
466
466
|
let r;
|
467
467
|
const n = /* @__PURE__ */ new Set();
|
468
468
|
function i(a) {
|
469
469
|
if (ut(e, a) && (e = a, r)) {
|
470
|
-
const
|
471
|
-
for (const
|
472
|
-
|
473
|
-
if (
|
474
|
-
for (let
|
475
|
-
U[
|
470
|
+
const h = !U.length;
|
471
|
+
for (const u of n)
|
472
|
+
u[1](), U.push(u, e);
|
473
|
+
if (h) {
|
474
|
+
for (let u = 0; u < U.length; u += 2)
|
475
|
+
U[u][0](U[u + 1]);
|
476
476
|
U.length = 0;
|
477
477
|
}
|
478
478
|
}
|
@@ -480,10 +480,10 @@ function ue(e, t = B) {
|
|
480
480
|
function s(a) {
|
481
481
|
i(a(e));
|
482
482
|
}
|
483
|
-
function o(a,
|
484
|
-
const
|
485
|
-
return n.add(
|
486
|
-
n.delete(
|
483
|
+
function o(a, h = B) {
|
484
|
+
const u = [a, h];
|
485
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || B), a(e), () => {
|
486
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
487
487
|
};
|
488
488
|
}
|
489
489
|
return { set: i, update: s, subscribe: o };
|
@@ -493,96 +493,96 @@ function X(e, t, r) {
|
|
493
493
|
if (!i.every(Boolean))
|
494
494
|
throw new Error("derived() expects stores as input, got a falsy value");
|
495
495
|
const s = t.length < 2;
|
496
|
-
return
|
497
|
-
let
|
498
|
-
const
|
496
|
+
return pr(r, (o, a) => {
|
497
|
+
let h = !1;
|
498
|
+
const u = [];
|
499
499
|
let l = 0, c = B;
|
500
500
|
const f = () => {
|
501
501
|
if (l)
|
502
502
|
return;
|
503
503
|
c();
|
504
|
-
const g = t(n ?
|
504
|
+
const g = t(n ? u[0] : u, o, a);
|
505
505
|
s ? o(g) : c = Le(g) ? g : B;
|
506
506
|
}, x = i.map(
|
507
|
-
(g, y) =>
|
507
|
+
(g, y) => ht(
|
508
508
|
g,
|
509
509
|
(H) => {
|
510
|
-
|
510
|
+
u[y] = H, l &= ~(1 << y), h && f();
|
511
511
|
},
|
512
512
|
() => {
|
513
513
|
l |= 1 << y;
|
514
514
|
}
|
515
515
|
)
|
516
516
|
);
|
517
|
-
return
|
518
|
-
ee(x), c(),
|
517
|
+
return h = !0, f(), function() {
|
518
|
+
ee(x), c(), h = !1;
|
519
519
|
};
|
520
520
|
});
|
521
521
|
}
|
522
|
-
function
|
523
|
-
return e
|
522
|
+
function mr(e) {
|
523
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
524
524
|
}
|
525
525
|
var dr = function(t) {
|
526
|
-
return
|
526
|
+
return br(t) && !gr(t);
|
527
527
|
};
|
528
|
-
function
|
528
|
+
function br(e) {
|
529
529
|
return !!e && typeof e == "object";
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function gr(e) {
|
532
532
|
var t = Object.prototype.toString.call(e);
|
533
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
533
|
+
return t === "[object RegExp]" || t === "[object Date]" || yr(e);
|
534
534
|
}
|
535
|
-
var
|
536
|
-
function
|
537
|
-
return e.$$typeof ===
|
535
|
+
var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
|
536
|
+
function yr(e) {
|
537
|
+
return e.$$typeof === Er;
|
538
538
|
}
|
539
|
-
function
|
539
|
+
function _r(e) {
|
540
540
|
return Array.isArray(e) ? [] : {};
|
541
541
|
}
|
542
542
|
function Y(e, t) {
|
543
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
543
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(_r(e), e, t) : e;
|
544
544
|
}
|
545
|
-
function
|
545
|
+
function vr(e, t, r) {
|
546
546
|
return e.concat(t).map(function(n) {
|
547
547
|
return Y(n, r);
|
548
548
|
});
|
549
549
|
}
|
550
|
-
function
|
550
|
+
function Hr(e, t) {
|
551
551
|
if (!t.customMerge)
|
552
552
|
return F;
|
553
553
|
var r = t.customMerge(e);
|
554
554
|
return typeof r == "function" ? r : F;
|
555
555
|
}
|
556
|
-
function
|
556
|
+
function Tr(e) {
|
557
557
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
558
558
|
return Object.propertyIsEnumerable.call(e, t);
|
559
559
|
}) : [];
|
560
560
|
}
|
561
|
-
function
|
562
|
-
return Object.keys(e).concat(
|
561
|
+
function ze(e) {
|
562
|
+
return Object.keys(e).concat(Tr(e));
|
563
563
|
}
|
564
|
-
function
|
564
|
+
function ct(e, t) {
|
565
565
|
try {
|
566
566
|
return t in e;
|
567
567
|
} catch (r) {
|
568
568
|
return !1;
|
569
569
|
}
|
570
570
|
}
|
571
|
-
function
|
572
|
-
return
|
571
|
+
function Br(e, t) {
|
572
|
+
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
573
573
|
}
|
574
|
-
function
|
574
|
+
function Ar(e, t, r) {
|
575
575
|
var n = {};
|
576
|
-
return r.isMergeableObject(e) &&
|
576
|
+
return r.isMergeableObject(e) && ze(e).forEach(function(i) {
|
577
577
|
n[i] = Y(e[i], r);
|
578
|
-
}),
|
579
|
-
|
578
|
+
}), ze(t).forEach(function(i) {
|
579
|
+
Br(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
580
580
|
}), n;
|
581
581
|
}
|
582
582
|
function F(e, t, r) {
|
583
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
583
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified = Y;
|
584
584
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
585
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
585
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : Y(t, r);
|
586
586
|
}
|
587
587
|
F.all = function(t, r) {
|
588
588
|
if (!Array.isArray(t))
|
@@ -591,8 +591,8 @@ F.all = function(t, r) {
|
|
591
591
|
return F(n, i, r);
|
592
592
|
}, {});
|
593
593
|
};
|
594
|
-
var
|
595
|
-
const
|
594
|
+
var Sr = F, Pr = Sr;
|
595
|
+
const Or = /* @__PURE__ */ mr(Pr);
|
596
596
|
/*! *****************************************************************************
|
597
597
|
Copyright (c) Microsoft Corporation.
|
598
598
|
|
@@ -624,17 +624,17 @@ function le(e, t) {
|
|
624
624
|
}
|
625
625
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
626
626
|
}
|
627
|
-
var
|
628
|
-
return
|
627
|
+
var b = function() {
|
628
|
+
return b = Object.assign || function(t) {
|
629
629
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
630
630
|
r = arguments[n];
|
631
631
|
for (var s in r)
|
632
632
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
633
633
|
}
|
634
634
|
return t;
|
635
|
-
},
|
635
|
+
}, b.apply(this, arguments);
|
636
636
|
};
|
637
|
-
function
|
637
|
+
function Nr(e, t) {
|
638
638
|
var r = {};
|
639
639
|
for (var n in e)
|
640
640
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -643,62 +643,64 @@ function Ir(e, t) {
|
|
643
643
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
644
644
|
return r;
|
645
645
|
}
|
646
|
-
function
|
646
|
+
function be(e, t, r) {
|
647
647
|
if (arguments.length === 2)
|
648
648
|
for (var n = 0, i = t.length, s; n < i; n++)
|
649
649
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
650
650
|
return e.concat(s || t);
|
651
651
|
}
|
652
652
|
function ge(e, t) {
|
653
|
-
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer :
|
653
|
+
var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : wr;
|
654
654
|
return i(e, {
|
655
655
|
cache: r,
|
656
656
|
serializer: n
|
657
657
|
});
|
658
658
|
}
|
659
|
-
function
|
659
|
+
function Ir(e) {
|
660
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
661
661
|
}
|
662
|
-
function
|
663
|
-
var i =
|
662
|
+
function pt(e, t, r, n) {
|
663
|
+
var i = Ir(n) ? n : r(n), s = t.get(i);
|
664
664
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
665
665
|
}
|
666
|
-
function
|
666
|
+
function mt(e, t, r) {
|
667
667
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
668
668
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
669
669
|
}
|
670
670
|
function Re(e, t, r, n, i) {
|
671
671
|
return r.bind(t, e, n, i);
|
672
672
|
}
|
673
|
-
function
|
674
|
-
var r = e.length === 1 ?
|
673
|
+
function wr(e, t) {
|
674
|
+
var r = e.length === 1 ? pt : mt;
|
675
675
|
return Re(e, this, r, t.cache.create(), t.serializer);
|
676
676
|
}
|
677
|
-
function
|
678
|
-
return Re(e, this, bt, t.cache.create(), t.serializer);
|
679
|
-
}
|
680
|
-
function Mr(e, t) {
|
677
|
+
function Lr(e, t) {
|
681
678
|
return Re(e, this, mt, t.cache.create(), t.serializer);
|
682
679
|
}
|
683
|
-
|
684
|
-
return
|
685
|
-
};
|
686
|
-
function $e() {
|
687
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
680
|
+
function Cr(e, t) {
|
681
|
+
return Re(e, this, pt, t.cache.create(), t.serializer);
|
688
682
|
}
|
689
|
-
|
690
|
-
return
|
691
|
-
}
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
683
|
+
var Mr = function() {
|
684
|
+
return JSON.stringify(arguments);
|
685
|
+
}, Rr = (
|
686
|
+
/** @class */
|
687
|
+
function() {
|
688
|
+
function e() {
|
689
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
690
|
+
}
|
691
|
+
return e.prototype.get = function(t) {
|
692
|
+
return this.cache[t];
|
693
|
+
}, e.prototype.set = function(t, r) {
|
694
|
+
this.cache[t] = r;
|
695
|
+
}, e;
|
696
|
+
}()
|
697
|
+
), $r = {
|
696
698
|
create: function() {
|
697
|
-
return new
|
699
|
+
return new Rr();
|
698
700
|
}
|
699
701
|
}, xe = {
|
700
|
-
variadic:
|
701
|
-
monadic:
|
702
|
+
variadic: Lr,
|
703
|
+
monadic: Cr
|
702
704
|
}, m;
|
703
705
|
(function(e) {
|
704
706
|
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";
|
@@ -711,7 +713,7 @@ var j;
|
|
711
713
|
(function(e) {
|
712
714
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
713
715
|
})(j || (j = {}));
|
714
|
-
function
|
716
|
+
function We(e) {
|
715
717
|
return e.type === E.literal;
|
716
718
|
}
|
717
719
|
function Ur(e) {
|
@@ -720,31 +722,31 @@ function Ur(e) {
|
|
720
722
|
function dt(e) {
|
721
723
|
return e.type === E.number;
|
722
724
|
}
|
723
|
-
function
|
725
|
+
function bt(e) {
|
724
726
|
return e.type === E.date;
|
725
727
|
}
|
726
|
-
function
|
728
|
+
function gt(e) {
|
727
729
|
return e.type === E.time;
|
728
730
|
}
|
729
|
-
function
|
731
|
+
function xt(e) {
|
730
732
|
return e.type === E.select;
|
731
733
|
}
|
732
|
-
function
|
734
|
+
function Et(e) {
|
733
735
|
return e.type === E.plural;
|
734
736
|
}
|
735
737
|
function Gr(e) {
|
736
738
|
return e.type === E.pound;
|
737
739
|
}
|
738
|
-
function
|
740
|
+
function yt(e) {
|
739
741
|
return e.type === E.tag;
|
740
742
|
}
|
741
|
-
function
|
743
|
+
function _t(e) {
|
742
744
|
return !!(e && typeof e == "object" && e.type === j.number);
|
743
745
|
}
|
744
746
|
function Be(e) {
|
745
747
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
746
748
|
}
|
747
|
-
var
|
749
|
+
var vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
748
750
|
function Fr(e) {
|
749
751
|
var t = {};
|
750
752
|
return e.replace(Dr, function(r) {
|
@@ -846,26 +848,26 @@ function Vr(e) {
|
|
846
848
|
var s = i[n], o = s.split("/");
|
847
849
|
if (o.length === 0)
|
848
850
|
throw new Error("Invalid number skeleton");
|
849
|
-
for (var a = o[0],
|
850
|
-
var c = l[
|
851
|
+
for (var a = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
|
852
|
+
var c = l[u];
|
851
853
|
if (c.length === 0)
|
852
854
|
throw new Error("Invalid number skeleton");
|
853
855
|
}
|
854
|
-
r.push({ stem: a, options:
|
856
|
+
r.push({ stem: a, options: h });
|
855
857
|
}
|
856
858
|
return r;
|
857
859
|
}
|
858
860
|
function kr(e) {
|
859
861
|
return e.replace(/^(.*?)-/, "");
|
860
862
|
}
|
861
|
-
var
|
862
|
-
function
|
863
|
+
var Ze = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Tt = /^(0+)$/;
|
864
|
+
function Qe(e) {
|
863
865
|
var t = {};
|
864
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
866
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
865
867
|
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)), "";
|
866
868
|
}), t;
|
867
869
|
}
|
868
|
-
function
|
870
|
+
function Bt(e) {
|
869
871
|
switch (e) {
|
870
872
|
case "sign-auto":
|
871
873
|
return {
|
@@ -913,14 +915,14 @@ function zr(e) {
|
|
913
915
|
notation: "scientific"
|
914
916
|
}, e = e.slice(1)), t) {
|
915
917
|
var r = e.slice(0, 2);
|
916
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
918
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tt.test(e))
|
917
919
|
throw new Error("Malformed concise eng/scientific notation");
|
918
920
|
t.minimumIntegerDigits = e.length;
|
919
921
|
}
|
920
922
|
return t;
|
921
923
|
}
|
922
|
-
function
|
923
|
-
var t = {}, r =
|
924
|
+
function Je(e) {
|
925
|
+
var t = {}, r = Bt(e);
|
924
926
|
return r || t;
|
925
927
|
}
|
926
928
|
function Wr(e) {
|
@@ -958,13 +960,13 @@ function Wr(e) {
|
|
958
960
|
t.notation = "compact", t.compactDisplay = "long";
|
959
961
|
continue;
|
960
962
|
case "scientific":
|
961
|
-
t =
|
962
|
-
return
|
963
|
+
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
964
|
+
return b(b({}, h), Je(u));
|
963
965
|
}, {}));
|
964
966
|
continue;
|
965
967
|
case "engineering":
|
966
|
-
t =
|
967
|
-
return
|
968
|
+
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
969
|
+
return b(b({}, h), Je(u));
|
968
970
|
}, {}));
|
969
971
|
continue;
|
970
972
|
case "notation-simple":
|
@@ -1009,8 +1011,8 @@ function Wr(e) {
|
|
1009
1011
|
case "integer-width":
|
1010
1012
|
if (i.options.length > 1)
|
1011
1013
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1012
|
-
i.options[0].replace(Xr, function(
|
1013
|
-
if (
|
1014
|
+
i.options[0].replace(Xr, function(h, u, l, c, f, x) {
|
1015
|
+
if (u)
|
1014
1016
|
t.minimumIntegerDigits = l.length;
|
1015
1017
|
else {
|
1016
1018
|
if (c && f)
|
@@ -1022,28 +1024,28 @@ function Wr(e) {
|
|
1022
1024
|
});
|
1023
1025
|
continue;
|
1024
1026
|
}
|
1025
|
-
if (
|
1027
|
+
if (Tt.test(i.stem)) {
|
1026
1028
|
t.minimumIntegerDigits = i.stem.length;
|
1027
1029
|
continue;
|
1028
1030
|
}
|
1029
|
-
if (
|
1031
|
+
if (Ze.test(i.stem)) {
|
1030
1032
|
if (i.options.length > 1)
|
1031
1033
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1032
|
-
i.stem.replace(
|
1033
|
-
return l === "*" ? t.minimumFractionDigits =
|
1034
|
+
i.stem.replace(Ze, function(h, u, l, c, f, x) {
|
1035
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1034
1036
|
});
|
1035
1037
|
var s = i.options[0];
|
1036
|
-
s === "w" ? t =
|
1038
|
+
s === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = b(b({}, t), Qe(s)));
|
1037
1039
|
continue;
|
1038
1040
|
}
|
1039
|
-
if (
|
1040
|
-
t =
|
1041
|
+
if (Ht.test(i.stem)) {
|
1042
|
+
t = b(b({}, t), Qe(i.stem));
|
1041
1043
|
continue;
|
1042
1044
|
}
|
1043
|
-
var o =
|
1044
|
-
o && (t =
|
1045
|
+
var o = Bt(i.stem);
|
1046
|
+
o && (t = b(b({}, t), o));
|
1045
1047
|
var a = zr(i.stem);
|
1046
|
-
a && (t =
|
1048
|
+
a && (t = b(b({}, t), a));
|
1047
1049
|
}
|
1048
1050
|
return t;
|
1049
1051
|
}
|
@@ -2468,11 +2470,11 @@ function Zr(e, t) {
|
|
2468
2470
|
if (i === "j") {
|
2469
2471
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2470
2472
|
s++, n++;
|
2471
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
2472
|
-
for ((
|
2473
|
-
r +=
|
2473
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Qr(t);
|
2474
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2475
|
+
r += h;
|
2474
2476
|
for (; o-- > 0; )
|
2475
|
-
r =
|
2477
|
+
r = u + r;
|
2476
2478
|
} else
|
2477
2479
|
i === "J" ? r += "H" : r += i;
|
2478
2480
|
}
|
@@ -2500,20 +2502,20 @@ function Qr(e) {
|
|
2500
2502
|
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
2501
2503
|
return i[0];
|
2502
2504
|
}
|
2503
|
-
var Ee, Jr = new RegExp("^".concat(
|
2504
|
-
function
|
2505
|
+
var Ee, Jr = new RegExp("^".concat(vt.source, "*")), qr = new RegExp("".concat(vt.source, "*$"));
|
2506
|
+
function d(e, t) {
|
2505
2507
|
return { start: e, end: t };
|
2506
2508
|
}
|
2507
2509
|
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, on = sn ? Number.isSafeInteger : function(e) {
|
2508
2510
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2509
2511
|
}, Ae = !0;
|
2510
2512
|
try {
|
2511
|
-
var an =
|
2513
|
+
var an = St("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2512
2514
|
Ae = ((Ee = an.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2513
2515
|
} catch (e) {
|
2514
2516
|
Ae = !1;
|
2515
2517
|
}
|
2516
|
-
var
|
2518
|
+
var qe = Yr ? (
|
2517
2519
|
// Native
|
2518
2520
|
function(t, r, n) {
|
2519
2521
|
return t.startsWith(r, n);
|
@@ -2535,7 +2537,7 @@ var Ye = Yr ? (
|
|
2535
2537
|
}
|
2536
2538
|
return n;
|
2537
2539
|
}
|
2538
|
-
),
|
2540
|
+
), Ye = (
|
2539
2541
|
// native
|
2540
2542
|
en ? Object.fromEntries : (
|
2541
2543
|
// Ponyfill
|
@@ -2547,7 +2549,7 @@ var Ye = Yr ? (
|
|
2547
2549
|
return r;
|
2548
2550
|
}
|
2549
2551
|
)
|
2550
|
-
),
|
2552
|
+
), At = tn ? (
|
2551
2553
|
// Native
|
2552
2554
|
function(t, r) {
|
2553
2555
|
return t.codePointAt(r);
|
@@ -2561,7 +2563,7 @@ var Ye = Yr ? (
|
|
2561
2563
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2562
2564
|
}
|
2563
2565
|
}
|
2564
|
-
),
|
2566
|
+
), un = rn ? (
|
2565
2567
|
// Native
|
2566
2568
|
function(t) {
|
2567
2569
|
return t.trimStart();
|
@@ -2571,7 +2573,7 @@ var Ye = Yr ? (
|
|
2571
2573
|
function(t) {
|
2572
2574
|
return t.replace(Jr, "");
|
2573
2575
|
}
|
2574
|
-
),
|
2576
|
+
), hn = nn ? (
|
2575
2577
|
// Native
|
2576
2578
|
function(t) {
|
2577
2579
|
return t.trimEnd();
|
@@ -2582,23 +2584,23 @@ var Ye = Yr ? (
|
|
2582
2584
|
return t.replace(qr, "");
|
2583
2585
|
}
|
2584
2586
|
);
|
2585
|
-
function
|
2587
|
+
function St(e, t) {
|
2586
2588
|
return new RegExp(e, t);
|
2587
2589
|
}
|
2588
2590
|
var Pe;
|
2589
2591
|
if (Ae) {
|
2590
|
-
var
|
2592
|
+
var Ke = St("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2591
2593
|
Pe = function(t, r) {
|
2592
2594
|
var n;
|
2593
|
-
|
2594
|
-
var i =
|
2595
|
+
Ke.lastIndex = r;
|
2596
|
+
var i = Ke.exec(t);
|
2595
2597
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2596
2598
|
};
|
2597
2599
|
} else
|
2598
2600
|
Pe = function(t, r) {
|
2599
2601
|
for (var n = []; ; ) {
|
2600
|
-
var i =
|
2601
|
-
if (i === void 0 ||
|
2602
|
+
var i = At(t, r);
|
2603
|
+
if (i === void 0 || Pt(i) || pn(i))
|
2602
2604
|
break;
|
2603
2605
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2604
2606
|
}
|
@@ -2629,12 +2631,12 @@ var ln = (
|
|
2629
2631
|
var a = this.clonePosition();
|
2630
2632
|
this.bump(), i.push({
|
2631
2633
|
type: E.pound,
|
2632
|
-
location:
|
2634
|
+
location: d(a, this.clonePosition())
|
2633
2635
|
});
|
2634
2636
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2635
2637
|
if (n)
|
2636
2638
|
break;
|
2637
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
2639
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
2638
2640
|
} else if (s === 60 && !this.ignoreTag && Oe(this.peek() || 0)) {
|
2639
2641
|
var o = this.parseTag(t, r);
|
2640
2642
|
if (o.err)
|
@@ -2658,7 +2660,7 @@ var ln = (
|
|
2658
2660
|
val: {
|
2659
2661
|
type: E.literal,
|
2660
2662
|
value: "<".concat(i, "/>"),
|
2661
|
-
location:
|
2663
|
+
location: d(n, this.clonePosition())
|
2662
2664
|
},
|
2663
2665
|
err: null
|
2664
2666
|
};
|
@@ -2669,21 +2671,21 @@ var ln = (
|
|
2669
2671
|
var o = s.val, a = this.clonePosition();
|
2670
2672
|
if (this.bumpIf("</")) {
|
2671
2673
|
if (this.isEOF() || !Oe(this.char()))
|
2672
|
-
return this.error(m.INVALID_TAG,
|
2673
|
-
var
|
2674
|
-
return i !==
|
2674
|
+
return this.error(m.INVALID_TAG, d(a, this.clonePosition()));
|
2675
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
2676
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2675
2677
|
val: {
|
2676
2678
|
type: E.tag,
|
2677
2679
|
value: i,
|
2678
2680
|
children: o,
|
2679
|
-
location:
|
2681
|
+
location: d(n, this.clonePosition())
|
2680
2682
|
},
|
2681
2683
|
err: null
|
2682
|
-
} : this.error(m.INVALID_TAG,
|
2684
|
+
} : this.error(m.INVALID_TAG, d(a, this.clonePosition())));
|
2683
2685
|
} else
|
2684
|
-
return this.error(m.UNCLOSED_TAG,
|
2686
|
+
return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
|
2685
2687
|
} else
|
2686
|
-
return this.error(m.INVALID_TAG,
|
2688
|
+
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
2687
2689
|
}, e.prototype.parseTagName = function() {
|
2688
2690
|
var t = this.offset();
|
2689
2691
|
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
@@ -2708,9 +2710,9 @@ var ln = (
|
|
2708
2710
|
}
|
2709
2711
|
break;
|
2710
2712
|
}
|
2711
|
-
var
|
2713
|
+
var h = d(n, this.clonePosition());
|
2712
2714
|
return {
|
2713
|
-
val: { type: E.literal, value: i, location:
|
2715
|
+
val: { type: E.literal, value: i, location: h },
|
2714
2716
|
err: null
|
2715
2717
|
};
|
2716
2718
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
@@ -2758,14 +2760,14 @@ var ln = (
|
|
2758
2760
|
}, e.prototype.parseArgument = function(t, r) {
|
2759
2761
|
var n = this.clonePosition();
|
2760
2762
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2761
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2763
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
2762
2764
|
if (this.char() === 125)
|
2763
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
2765
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
2764
2766
|
var i = this.parseIdentifierIfPossible().value;
|
2765
2767
|
if (!i)
|
2766
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2768
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
2767
2769
|
if (this.bumpSpace(), this.isEOF())
|
2768
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2770
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
2769
2771
|
switch (this.char()) {
|
2770
2772
|
case 125:
|
2771
2773
|
return this.bump(), {
|
@@ -2773,49 +2775,49 @@ var ln = (
|
|
2773
2775
|
type: E.argument,
|
2774
2776
|
// value does not include the opening and closing braces.
|
2775
2777
|
value: i,
|
2776
|
-
location:
|
2778
|
+
location: d(n, this.clonePosition())
|
2777
2779
|
},
|
2778
2780
|
err: null
|
2779
2781
|
};
|
2780
2782
|
case 44:
|
2781
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2783
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2782
2784
|
default:
|
2783
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2785
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
2784
2786
|
}
|
2785
2787
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2786
2788
|
var t = this.clonePosition(), r = this.offset(), n = Pe(this.message, r), i = r + n.length;
|
2787
2789
|
this.bumpTo(i);
|
2788
|
-
var s = this.clonePosition(), o =
|
2790
|
+
var s = this.clonePosition(), o = d(t, s);
|
2789
2791
|
return { value: n, location: o };
|
2790
2792
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2791
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2793
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
2792
2794
|
switch (a) {
|
2793
2795
|
case "":
|
2794
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
2796
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, d(o, h));
|
2795
2797
|
case "number":
|
2796
2798
|
case "date":
|
2797
2799
|
case "time": {
|
2798
2800
|
this.bumpSpace();
|
2799
|
-
var
|
2801
|
+
var u = null;
|
2800
2802
|
if (this.bumpIf(",")) {
|
2801
2803
|
this.bumpSpace();
|
2802
2804
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2803
2805
|
if (c.err)
|
2804
2806
|
return c;
|
2805
|
-
var f =
|
2807
|
+
var f = hn(c.val);
|
2806
2808
|
if (f.length === 0)
|
2807
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
2808
|
-
var x =
|
2809
|
-
|
2809
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
2810
|
+
var x = d(l, this.clonePosition());
|
2811
|
+
u = { style: f, styleLocation: x };
|
2810
2812
|
}
|
2811
2813
|
var g = this.tryParseArgumentClose(i);
|
2812
2814
|
if (g.err)
|
2813
2815
|
return g;
|
2814
|
-
var y =
|
2815
|
-
if (
|
2816
|
-
var H =
|
2816
|
+
var y = d(i, this.clonePosition());
|
2817
|
+
if (u && qe(u == null ? void 0 : u.style, "::", 0)) {
|
2818
|
+
var H = un(u.style.slice(2));
|
2817
2819
|
if (a === "number") {
|
2818
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2820
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
2819
2821
|
return c.err ? c : {
|
2820
2822
|
val: { type: E.number, value: n, location: y, style: c.val },
|
2821
2823
|
err: null
|
@@ -2828,7 +2830,7 @@ var ln = (
|
|
2828
2830
|
var f = {
|
2829
2831
|
type: j.dateTime,
|
2830
2832
|
pattern: A,
|
2831
|
-
location:
|
2833
|
+
location: u.styleLocation,
|
2832
2834
|
parsedOptions: this.shouldParseSkeletons ? Fr(A) : {}
|
2833
2835
|
}, S = a === "date" ? E.date : E.time;
|
2834
2836
|
return {
|
@@ -2842,7 +2844,7 @@ var ln = (
|
|
2842
2844
|
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
2843
2845
|
value: n,
|
2844
2846
|
location: y,
|
2845
|
-
style: (s =
|
2847
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
2846
2848
|
},
|
2847
2849
|
err: null
|
2848
2850
|
};
|
@@ -2852,12 +2854,12 @@ var ln = (
|
|
2852
2854
|
case "select": {
|
2853
2855
|
var v = this.clonePosition();
|
2854
2856
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2855
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2857
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(v, b({}, v)));
|
2856
2858
|
this.bumpSpace();
|
2857
2859
|
var N = this.parseIdentifierIfPossible(), O = 0;
|
2858
2860
|
if (a !== "select" && N.value === "offset") {
|
2859
2861
|
if (!this.bumpIf(":"))
|
2860
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2862
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
2861
2863
|
this.bumpSpace();
|
2862
2864
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2863
2865
|
if (c.err)
|
@@ -2870,12 +2872,12 @@ var ln = (
|
|
2870
2872
|
var g = this.tryParseArgumentClose(i);
|
2871
2873
|
if (g.err)
|
2872
2874
|
return g;
|
2873
|
-
var te =
|
2875
|
+
var te = d(i, this.clonePosition());
|
2874
2876
|
return a === "select" ? {
|
2875
2877
|
val: {
|
2876
2878
|
type: E.select,
|
2877
2879
|
value: n,
|
2878
|
-
options:
|
2880
|
+
options: Ye(R.val),
|
2879
2881
|
location: te
|
2880
2882
|
},
|
2881
2883
|
err: null
|
@@ -2883,7 +2885,7 @@ var ln = (
|
|
2883
2885
|
val: {
|
2884
2886
|
type: E.plural,
|
2885
2887
|
value: n,
|
2886
|
-
options:
|
2888
|
+
options: Ye(R.val),
|
2887
2889
|
offset: O,
|
2888
2890
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2889
2891
|
location: te
|
@@ -2892,10 +2894,10 @@ var ln = (
|
|
2892
2894
|
};
|
2893
2895
|
}
|
2894
2896
|
default:
|
2895
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
2897
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, d(o, h));
|
2896
2898
|
}
|
2897
2899
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2898
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2900
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2899
2901
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2900
2902
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2901
2903
|
var n = this.char();
|
@@ -2904,7 +2906,7 @@ var ln = (
|
|
2904
2906
|
this.bump();
|
2905
2907
|
var i = this.clonePosition();
|
2906
2908
|
if (!this.bumpUntil("'"))
|
2907
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2909
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
2908
2910
|
this.bump();
|
2909
2911
|
break;
|
2910
2912
|
}
|
@@ -2948,23 +2950,23 @@ var ln = (
|
|
2948
2950
|
err: null
|
2949
2951
|
};
|
2950
2952
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2951
|
-
for (var s, o = !1, a = [],
|
2952
|
-
if (
|
2953
|
+
for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
2954
|
+
if (u.length === 0) {
|
2953
2955
|
var c = this.clonePosition();
|
2954
2956
|
if (r !== "select" && this.bumpIf("=")) {
|
2955
2957
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2956
2958
|
if (f.err)
|
2957
2959
|
return f;
|
2958
|
-
l =
|
2960
|
+
l = d(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
2959
2961
|
} else
|
2960
2962
|
break;
|
2961
2963
|
}
|
2962
|
-
if (
|
2964
|
+
if (h.has(u))
|
2963
2965
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2964
|
-
|
2966
|
+
u === "other" && (o = !0), this.bumpSpace();
|
2965
2967
|
var x = this.clonePosition();
|
2966
2968
|
if (!this.bumpIf("{"))
|
2967
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
2969
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
2968
2970
|
var g = this.parseMessage(t + 1, r, n);
|
2969
2971
|
if (g.err)
|
2970
2972
|
return g;
|
@@ -2972,14 +2974,14 @@ var ln = (
|
|
2972
2974
|
if (y.err)
|
2973
2975
|
return y;
|
2974
2976
|
a.push([
|
2975
|
-
|
2977
|
+
u,
|
2976
2978
|
{
|
2977
2979
|
value: g.val,
|
2978
|
-
location:
|
2980
|
+
location: d(x, this.clonePosition())
|
2979
2981
|
}
|
2980
|
-
]),
|
2982
|
+
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
2981
2983
|
}
|
2982
|
-
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
2984
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
2983
2985
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2984
2986
|
var n = 1, i = this.clonePosition();
|
2985
2987
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2990,8 +2992,8 @@ var ln = (
|
|
2990
2992
|
else
|
2991
2993
|
break;
|
2992
2994
|
}
|
2993
|
-
var
|
2994
|
-
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r,
|
2995
|
+
var h = d(i, this.clonePosition());
|
2996
|
+
return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
2995
2997
|
}, e.prototype.offset = function() {
|
2996
2998
|
return this.position.offset;
|
2997
2999
|
}, e.prototype.isEOF = function() {
|
@@ -3006,7 +3008,7 @@ var ln = (
|
|
3006
3008
|
var t = this.position.offset;
|
3007
3009
|
if (t >= this.message.length)
|
3008
3010
|
throw Error("out of bound");
|
3009
|
-
var r =
|
3011
|
+
var r = At(this.message, t);
|
3010
3012
|
if (r === void 0)
|
3011
3013
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3012
3014
|
return r;
|
@@ -3025,7 +3027,7 @@ var ln = (
|
|
3025
3027
|
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);
|
3026
3028
|
}
|
3027
3029
|
}, e.prototype.bumpIf = function(t) {
|
3028
|
-
if (
|
3030
|
+
if (qe(this.message, t, this.offset())) {
|
3029
3031
|
for (var r = 0; r < t.length; r++)
|
3030
3032
|
this.bump();
|
3031
3033
|
return !0;
|
@@ -3047,7 +3049,7 @@ var ln = (
|
|
3047
3049
|
break;
|
3048
3050
|
}
|
3049
3051
|
}, e.prototype.bumpSpace = function() {
|
3050
|
-
for (; !this.isEOF() &&
|
3052
|
+
for (; !this.isEOF() && Pt(this.char()); )
|
3051
3053
|
this.bump();
|
3052
3054
|
}, e.prototype.peek = function() {
|
3053
3055
|
if (this.isEOF())
|
@@ -3066,7 +3068,7 @@ function fn(e) {
|
|
3066
3068
|
function cn(e) {
|
3067
3069
|
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;
|
3068
3070
|
}
|
3069
|
-
function
|
3071
|
+
function Pt(e) {
|
3070
3072
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3071
3073
|
}
|
3072
3074
|
function pn(e) {
|
@@ -3074,15 +3076,15 @@ function pn(e) {
|
|
3074
3076
|
}
|
3075
3077
|
function Ne(e) {
|
3076
3078
|
e.forEach(function(t) {
|
3077
|
-
if (delete t.location,
|
3079
|
+
if (delete t.location, xt(t) || Et(t))
|
3078
3080
|
for (var r in t.options)
|
3079
3081
|
delete t.options[r].location, Ne(t.options[r].value);
|
3080
3082
|
else
|
3081
|
-
dt(t) &&
|
3083
|
+
dt(t) && _t(t.style) || (bt(t) || gt(t)) && Be(t.style) ? delete t.style.location : yt(t) && Ne(t.children);
|
3082
3084
|
});
|
3083
3085
|
}
|
3084
3086
|
function mn(e, t) {
|
3085
|
-
t === void 0 && (t = {}), t =
|
3087
|
+
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3086
3088
|
var r = new ln(e, t).parse();
|
3087
3089
|
if (r.err) {
|
3088
3090
|
var n = SyntaxError(m[r.err.kind]);
|
@@ -3106,7 +3108,7 @@ var fe = (
|
|
3106
3108
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3107
3109
|
}, t;
|
3108
3110
|
}(Error)
|
3109
|
-
),
|
3111
|
+
), et = (
|
3110
3112
|
/** @class */
|
3111
3113
|
function(e) {
|
3112
3114
|
le(t, e);
|
@@ -3115,7 +3117,7 @@ var fe = (
|
|
3115
3117
|
}
|
3116
3118
|
return t;
|
3117
3119
|
}(fe)
|
3118
|
-
),
|
3120
|
+
), dn = (
|
3119
3121
|
/** @class */
|
3120
3122
|
function(e) {
|
3121
3123
|
le(t, e);
|
@@ -3124,7 +3126,7 @@ var fe = (
|
|
3124
3126
|
}
|
3125
3127
|
return t;
|
3126
3128
|
}(fe)
|
3127
|
-
),
|
3129
|
+
), bn = (
|
3128
3130
|
/** @class */
|
3129
3131
|
function(e) {
|
3130
3132
|
le(t, e);
|
@@ -3147,16 +3149,16 @@ function xn(e) {
|
|
3147
3149
|
return typeof e == "function";
|
3148
3150
|
}
|
3149
3151
|
function se(e, t, r, n, i, s, o) {
|
3150
|
-
if (e.length === 1 &&
|
3152
|
+
if (e.length === 1 && We(e[0]))
|
3151
3153
|
return [
|
3152
3154
|
{
|
3153
3155
|
type: _.literal,
|
3154
3156
|
value: e[0].value
|
3155
3157
|
}
|
3156
3158
|
];
|
3157
|
-
for (var a = [],
|
3158
|
-
var l = h
|
3159
|
-
if (
|
3159
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3160
|
+
var l = u[h];
|
3161
|
+
if (We(l)) {
|
3160
3162
|
a.push({
|
3161
3163
|
type: _.literal,
|
3162
3164
|
value: l.value
|
@@ -3172,7 +3174,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3172
3174
|
}
|
3173
3175
|
var c = l.value;
|
3174
3176
|
if (!(i && c in i))
|
3175
|
-
throw new
|
3177
|
+
throw new bn(c, o);
|
3176
3178
|
var f = i[c];
|
3177
3179
|
if (Ur(l)) {
|
3178
3180
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
@@ -3181,7 +3183,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3181
3183
|
});
|
3182
3184
|
continue;
|
3183
3185
|
}
|
3184
|
-
if (
|
3186
|
+
if (bt(l)) {
|
3185
3187
|
var x = typeof l.style == "string" ? n.date[l.style] : Be(l.style) ? l.style.parsedOptions : void 0;
|
3186
3188
|
a.push({
|
3187
3189
|
type: _.literal,
|
@@ -3189,7 +3191,7 @@ function se(e, t, r, n, i, s, o) {
|
|
3189
3191
|
});
|
3190
3192
|
continue;
|
3191
3193
|
}
|
3192
|
-
if (
|
3194
|
+
if (gt(l)) {
|
3193
3195
|
var x = typeof l.style == "string" ? n.time[l.style] : Be(l.style) ? l.style.parsedOptions : n.time.medium;
|
3194
3196
|
a.push({
|
3195
3197
|
type: _.literal,
|
@@ -3198,17 +3200,17 @@ function se(e, t, r, n, i, s, o) {
|
|
3198
3200
|
continue;
|
3199
3201
|
}
|
3200
3202
|
if (dt(l)) {
|
3201
|
-
var x = typeof l.style == "string" ? n.number[l.style] :
|
3203
|
+
var x = typeof l.style == "string" ? n.number[l.style] : _t(l.style) ? l.style.parsedOptions : void 0;
|
3202
3204
|
x && x.scale && (f = f * (x.scale || 1)), a.push({
|
3203
3205
|
type: _.literal,
|
3204
3206
|
value: r.getNumberFormat(t, x).format(f)
|
3205
3207
|
});
|
3206
3208
|
continue;
|
3207
3209
|
}
|
3208
|
-
if (
|
3210
|
+
if (yt(l)) {
|
3209
3211
|
var g = l.children, y = l.value, H = i[y];
|
3210
3212
|
if (!xn(H))
|
3211
|
-
throw new
|
3213
|
+
throw new dn(y, "function", o);
|
3212
3214
|
var A = se(g, t, r, n, i, s), S = H(A.map(function(O) {
|
3213
3215
|
return O.value;
|
3214
3216
|
}));
|
@@ -3219,14 +3221,14 @@ function se(e, t, r, n, i, s, o) {
|
|
3219
3221
|
};
|
3220
3222
|
}));
|
3221
3223
|
}
|
3222
|
-
if (
|
3224
|
+
if (xt(l)) {
|
3223
3225
|
var v = l.options[f] || l.options.other;
|
3224
3226
|
if (!v)
|
3225
|
-
throw new
|
3227
|
+
throw new et(l.value, f, Object.keys(l.options), o);
|
3226
3228
|
a.push.apply(a, se(v.value, t, r, n, i));
|
3227
3229
|
continue;
|
3228
3230
|
}
|
3229
|
-
if (
|
3231
|
+
if (Et(l)) {
|
3230
3232
|
var v = l.options["=".concat(f)];
|
3231
3233
|
if (!v) {
|
3232
3234
|
if (!Intl.PluralRules)
|
@@ -3237,7 +3239,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3237
3239
|
v = l.options[N] || l.options.other;
|
3238
3240
|
}
|
3239
3241
|
if (!v)
|
3240
|
-
throw new
|
3242
|
+
throw new et(l.value, f, Object.keys(l.options), o);
|
3241
3243
|
a.push.apply(a, se(v.value, t, r, n, i, f - (l.offset || 0)));
|
3242
3244
|
continue;
|
3243
3245
|
}
|
@@ -3245,14 +3247,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3245
3247
|
return gn(a);
|
3246
3248
|
}
|
3247
3249
|
function En(e, t) {
|
3248
|
-
return t ?
|
3249
|
-
return r[n] =
|
3250
|
+
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3251
|
+
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
3250
3252
|
}, {})) : e;
|
3251
3253
|
}
|
3252
3254
|
function yn(e, t) {
|
3253
3255
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3254
3256
|
return r[n] = En(e[n], t[n]), r;
|
3255
|
-
},
|
3257
|
+
}, b({}, e)) : e;
|
3256
3258
|
}
|
3257
3259
|
function ye(e) {
|
3258
3260
|
return {
|
@@ -3277,7 +3279,7 @@ function _n(e) {
|
|
3277
3279
|
getNumberFormat: ge(function() {
|
3278
3280
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3279
3281
|
r[n] = arguments[n];
|
3280
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3282
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, be([void 0], r, !1)))();
|
3281
3283
|
}, {
|
3282
3284
|
cache: ye(e.number),
|
3283
3285
|
strategy: xe.variadic
|
@@ -3285,7 +3287,7 @@ function _n(e) {
|
|
3285
3287
|
getDateTimeFormat: ge(function() {
|
3286
3288
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3287
3289
|
r[n] = arguments[n];
|
3288
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3290
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, be([void 0], r, !1)))();
|
3289
3291
|
}, {
|
3290
3292
|
cache: ye(e.dateTime),
|
3291
3293
|
strategy: xe.variadic
|
@@ -3293,7 +3295,7 @@ function _n(e) {
|
|
3293
3295
|
getPluralRules: ge(function() {
|
3294
3296
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3295
3297
|
r[n] = arguments[n];
|
3296
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3298
|
+
return new ((t = Intl.PluralRules).bind.apply(t, be([void 0], r, !1)))();
|
3297
3299
|
}, {
|
3298
3300
|
cache: ye(e.pluralRules),
|
3299
3301
|
strategy: xe.variadic
|
@@ -3310,20 +3312,20 @@ var vn = (
|
|
3310
3312
|
number: {},
|
3311
3313
|
dateTime: {},
|
3312
3314
|
pluralRules: {}
|
3313
|
-
}, this.format = function(
|
3314
|
-
var
|
3315
|
-
if (
|
3316
|
-
return
|
3317
|
-
var l =
|
3315
|
+
}, this.format = function(h) {
|
3316
|
+
var u = s.formatToParts(h);
|
3317
|
+
if (u.length === 1)
|
3318
|
+
return u[0].value;
|
3319
|
+
var l = u.reduce(function(c, f) {
|
3318
3320
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3319
3321
|
}, []);
|
3320
3322
|
return l.length <= 1 ? l[0] || "" : l;
|
3321
|
-
}, this.formatToParts = function(
|
3322
|
-
return se(s.ast, s.locales, s.formatters, s.formats,
|
3323
|
+
}, this.formatToParts = function(h) {
|
3324
|
+
return se(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
3323
3325
|
}, this.resolvedOptions = function() {
|
3324
|
-
var
|
3326
|
+
var h;
|
3325
3327
|
return {
|
3326
|
-
locale: ((
|
3328
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
3327
3329
|
};
|
3328
3330
|
}, this.getAst = function() {
|
3329
3331
|
return s.ast;
|
@@ -3332,8 +3334,8 @@ var vn = (
|
|
3332
3334
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3333
3335
|
var o = i || {};
|
3334
3336
|
o.formatters;
|
3335
|
-
var a =
|
3336
|
-
this.ast = e.__parse(t,
|
3337
|
+
var a = Nr(o, ["formatters"]);
|
3338
|
+
this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
|
3337
3339
|
} else
|
3338
3340
|
this.ast = t;
|
3339
3341
|
if (!Array.isArray(this.ast))
|
@@ -3433,7 +3435,7 @@ function Hn(e, t) {
|
|
3433
3435
|
n = void 0;
|
3434
3436
|
return n;
|
3435
3437
|
}
|
3436
|
-
const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r),
|
3438
|
+
const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Ot = (e, t) => {
|
3437
3439
|
if (t == null)
|
3438
3440
|
return;
|
3439
3441
|
if (t in I && e in I[t])
|
@@ -3445,16 +3447,16 @@ const I = {}, Tn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][
|
|
3445
3447
|
return Tn(e, t, s);
|
3446
3448
|
}
|
3447
3449
|
};
|
3448
|
-
let
|
3449
|
-
const z =
|
3450
|
+
let $e;
|
3451
|
+
const z = he({});
|
3450
3452
|
function Bn(e) {
|
3451
|
-
return
|
3453
|
+
return $e[e] || null;
|
3452
3454
|
}
|
3453
|
-
function
|
3454
|
-
return e in
|
3455
|
+
function Nt(e) {
|
3456
|
+
return e in $e;
|
3455
3457
|
}
|
3456
3458
|
function An(e, t) {
|
3457
|
-
if (!
|
3459
|
+
if (!Nt(e))
|
3458
3460
|
return null;
|
3459
3461
|
const r = Bn(e);
|
3460
3462
|
return Hn(r, t);
|
@@ -3465,28 +3467,28 @@ function Sn(e) {
|
|
3465
3467
|
const t = ce(e);
|
3466
3468
|
for (let r = 0; r < t.length; r++) {
|
3467
3469
|
const n = t[r];
|
3468
|
-
if (
|
3470
|
+
if (Nt(n))
|
3469
3471
|
return n;
|
3470
3472
|
}
|
3471
3473
|
}
|
3472
|
-
function
|
3473
|
-
delete I[e], z.update((r) => (r[e] =
|
3474
|
+
function It(e, ...t) {
|
3475
|
+
delete I[e], z.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
|
3474
3476
|
}
|
3475
3477
|
X(
|
3476
3478
|
[z],
|
3477
3479
|
([e]) => Object.keys(e)
|
3478
3480
|
);
|
3479
|
-
z.subscribe((e) =>
|
3481
|
+
z.subscribe((e) => $e = e);
|
3480
3482
|
const oe = {};
|
3481
3483
|
function Pn(e, t) {
|
3482
3484
|
oe[e].delete(t), oe[e].size === 0 && delete oe[e];
|
3483
3485
|
}
|
3484
|
-
function
|
3486
|
+
function wt(e) {
|
3485
3487
|
return oe[e];
|
3486
3488
|
}
|
3487
3489
|
function On(e) {
|
3488
3490
|
return ce(e).map((t) => {
|
3489
|
-
const r =
|
3491
|
+
const r = wt(t);
|
3490
3492
|
return [t, r ? [...r] : []];
|
3491
3493
|
}).filter(([, t]) => t.length > 0);
|
3492
3494
|
}
|
@@ -3494,17 +3496,17 @@ function Ie(e) {
|
|
3494
3496
|
return e == null ? !1 : ce(e).some(
|
3495
3497
|
(t) => {
|
3496
3498
|
var r;
|
3497
|
-
return (r =
|
3499
|
+
return (r = wt(t)) == null ? void 0 : r.size;
|
3498
3500
|
}
|
3499
3501
|
);
|
3500
3502
|
}
|
3501
3503
|
function Nn(e, t) {
|
3502
3504
|
return Promise.all(
|
3503
3505
|
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
3504
|
-
).then((n) =>
|
3506
|
+
).then((n) => It(e, ...n));
|
3505
3507
|
}
|
3506
3508
|
const Z = {};
|
3507
|
-
function
|
3509
|
+
function Lt(e) {
|
3508
3510
|
if (!Ie(e))
|
3509
3511
|
return e in Z ? Z[e] : Promise.resolve();
|
3510
3512
|
const t = On(e);
|
@@ -3514,7 +3516,7 @@ function Ct(e) {
|
|
3514
3516
|
)
|
3515
3517
|
).then(() => {
|
3516
3518
|
if (Ie(e))
|
3517
|
-
return
|
3519
|
+
return Lt(e);
|
3518
3520
|
delete Z[e];
|
3519
3521
|
}), Z[e];
|
3520
3522
|
}
|
@@ -3558,23 +3560,23 @@ const In = {
|
|
3558
3560
|
function k() {
|
3559
3561
|
return Ln;
|
3560
3562
|
}
|
3561
|
-
const _e =
|
3562
|
-
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors,
|
3563
|
-
for (var r in t
|
3564
|
-
$n.call(t, r) &&
|
3565
|
-
if (
|
3566
|
-
for (var r of
|
3567
|
-
Un.call(t, r) &&
|
3563
|
+
const _e = he(!1);
|
3564
|
+
var Cn = Object.defineProperty, Mn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, tt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, rt = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
3565
|
+
for (var r in t)
|
3566
|
+
$n.call(t, r) && rt(e, r, t[r]);
|
3567
|
+
if (tt)
|
3568
|
+
for (var r of tt(t))
|
3569
|
+
Un.call(t, r) && rt(e, r, t[r]);
|
3568
3570
|
return e;
|
3569
3571
|
}, Dn = (e, t) => Mn(e, Rn(t));
|
3570
3572
|
let we;
|
3571
|
-
const ae =
|
3572
|
-
function
|
3573
|
+
const ae = he(null);
|
3574
|
+
function nt(e) {
|
3573
3575
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3574
3576
|
}
|
3575
3577
|
function ce(e, t = k().fallbackLocale) {
|
3576
|
-
const r =
|
3577
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3578
|
+
const r = nt(e);
|
3579
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...nt(t)])] : r;
|
3578
3580
|
}
|
3579
3581
|
function M() {
|
3580
3582
|
return we != null ? we : void 0;
|
@@ -3589,7 +3591,7 @@ const Fn = (e) => {
|
|
3589
3591
|
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
3590
3592
|
() => _e.set(!0),
|
3591
3593
|
t
|
3592
|
-
) : _e.set(!0),
|
3594
|
+
) : _e.set(!0), Lt(e).then(() => {
|
3593
3595
|
ae.set(e);
|
3594
3596
|
}).finally(() => {
|
3595
3597
|
clearTimeout(r), _e.set(!1);
|
@@ -3605,20 +3607,20 @@ const Fn = (e) => {
|
|
3605
3607
|
return i in t ? t[i] : t[i] = e(n);
|
3606
3608
|
};
|
3607
3609
|
};
|
3608
|
-
var jn = Object.defineProperty,
|
3610
|
+
var jn = Object.defineProperty, ue = Object.getOwnPropertySymbols, Ct = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t) => {
|
3609
3611
|
for (var r in t || (t = {}))
|
3610
|
-
|
3611
|
-
if (
|
3612
|
-
for (var r of
|
3613
|
-
|
3612
|
+
Ct.call(t, r) && it(e, r, t[r]);
|
3613
|
+
if (ue)
|
3614
|
+
for (var r of ue(t))
|
3615
|
+
Mt.call(t, r) && it(e, r, t[r]);
|
3614
3616
|
return e;
|
3615
3617
|
}, W = (e, t) => {
|
3616
3618
|
var r = {};
|
3617
3619
|
for (var n in e)
|
3618
|
-
|
3619
|
-
if (e != null &&
|
3620
|
-
for (var n of
|
3621
|
-
t.indexOf(n) < 0 &&
|
3620
|
+
Ct.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3621
|
+
if (e != null && ue)
|
3622
|
+
for (var n of ue(e))
|
3623
|
+
t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
|
3622
3624
|
return r;
|
3623
3625
|
};
|
3624
3626
|
const K = (e, t) => {
|
@@ -3655,21 +3657,21 @@ const K = (e, t) => {
|
|
3655
3657
|
} = t, n = W(t, [
|
3656
3658
|
"locale"
|
3657
3659
|
]);
|
3658
|
-
return Vn(
|
3660
|
+
return Vn(Ue({ locale: r }, n));
|
3659
3661
|
}, Wn = (e = {}) => {
|
3660
3662
|
var t = e, {
|
3661
3663
|
locale: r = M()
|
3662
3664
|
} = t, n = W(t, [
|
3663
3665
|
"locale"
|
3664
3666
|
]);
|
3665
|
-
return kn(
|
3667
|
+
return kn(Ue({ locale: r }, n));
|
3666
3668
|
}, Zn = (e = {}) => {
|
3667
3669
|
var t = e, {
|
3668
3670
|
locale: r = M()
|
3669
3671
|
} = t, n = W(t, [
|
3670
3672
|
"locale"
|
3671
3673
|
]);
|
3672
|
-
return Xn(
|
3674
|
+
return Xn(Ue({ locale: r }, n));
|
3673
3675
|
}, Qn = pe(
|
3674
3676
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3675
3677
|
(e, t = M()) => new vn(e, t, k().formats, {
|
@@ -3681,16 +3683,16 @@ const K = (e, t) => {
|
|
3681
3683
|
typeof e == "object" && (o = e, e = o.id);
|
3682
3684
|
const {
|
3683
3685
|
values: a,
|
3684
|
-
locale:
|
3685
|
-
default:
|
3686
|
+
locale: h = M(),
|
3687
|
+
default: u
|
3686
3688
|
} = o;
|
3687
|
-
if (
|
3689
|
+
if (h == null)
|
3688
3690
|
throw new Error(
|
3689
3691
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3690
3692
|
);
|
3691
|
-
let l =
|
3693
|
+
let l = Ot(e, h);
|
3692
3694
|
if (!l)
|
3693
|
-
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
3695
|
+
l = (s = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
3694
3696
|
else if (typeof l != "string")
|
3695
3697
|
return console.warn(
|
3696
3698
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3699,7 +3701,7 @@ const K = (e, t) => {
|
|
3699
3701
|
return l;
|
3700
3702
|
let c = l;
|
3701
3703
|
try {
|
3702
|
-
c = Qn(l,
|
3704
|
+
c = Qn(l, h).format(a);
|
3703
3705
|
} catch (f) {
|
3704
3706
|
f instanceof Error && console.warn(
|
3705
3707
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3707,7 +3709,7 @@ const K = (e, t) => {
|
|
3707
3709
|
);
|
3708
3710
|
}
|
3709
3711
|
return c;
|
3710
|
-
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = M()) =>
|
3712
|
+
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = M()) => Ot(e, t), ti = X([w, z], () => Jn);
|
3711
3713
|
X([w], () => qn);
|
3712
3714
|
X([w], () => Yn);
|
3713
3715
|
X([w], () => Kn);
|
@@ -3717,13 +3719,13 @@ function ri({ withLocale: e, translations: t }) {
|
|
3717
3719
|
r == null && (z.set(t), w.set(e));
|
3718
3720
|
});
|
3719
3721
|
}
|
3720
|
-
function
|
3721
|
-
|
3722
|
+
function st(e, t) {
|
3723
|
+
It(e, t);
|
3722
3724
|
}
|
3723
3725
|
function ni(e) {
|
3724
3726
|
w.set(e);
|
3725
3727
|
}
|
3726
|
-
const
|
3728
|
+
const ot = {
|
3727
3729
|
en: {
|
3728
3730
|
bets: "bets"
|
3729
3731
|
},
|
@@ -3750,24 +3752,24 @@ const at = {
|
|
3750
3752
|
}
|
3751
3753
|
};
|
3752
3754
|
function ii(e) {
|
3753
|
-
|
3755
|
+
Wt(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}');
|
3754
3756
|
}
|
3755
3757
|
function si(e) {
|
3756
3758
|
let t, r, n, i, s;
|
3757
3759
|
return {
|
3758
3760
|
c() {
|
3759
|
-
t = Q("div"), r = Q("div"), n = Q("span"), i =
|
3761
|
+
t = Q("div"), r = Q("div"), n = Q("span"), i = Jt(
|
3760
3762
|
/*progressText*/
|
3761
3763
|
e[3]
|
3762
3764
|
), C(n, "part", "progressText"), C(r, "class", s = "stepBar " + /*curTatus*/
|
3763
3765
|
e[4]), C(r, "part", "stepBar"), C(t, "class", "general-icon-progress-bar"), C(t, "part", "totalBar");
|
3764
3766
|
},
|
3765
3767
|
m(o, a) {
|
3766
|
-
|
3768
|
+
lt(o, t, a), ne(t, r), ne(r, n), ne(n, i), e[13](n), e[14](r), e[15](t);
|
3767
3769
|
},
|
3768
3770
|
p(o, [a]) {
|
3769
3771
|
a & /*progressText*/
|
3770
|
-
8 &&
|
3772
|
+
8 && Yt(
|
3771
3773
|
i,
|
3772
3774
|
/*progressText*/
|
3773
3775
|
o[3]
|
@@ -3784,20 +3786,20 @@ function si(e) {
|
|
3784
3786
|
}
|
3785
3787
|
function oi(e, t, r) {
|
3786
3788
|
let n;
|
3787
|
-
|
3788
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status:
|
3789
|
+
zt(e, ti, (p) => r(20, n = p));
|
3790
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: o } = t, { lang: a = "en" } = t, { status: h } = t, { translationurl: u = "" } = t, { progressfractiondigit: l = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, A, S, v = "0px", N = "active";
|
3789
3791
|
ri({ withLocale: "en", translations: {} });
|
3790
3792
|
const O = () => {
|
3791
|
-
fetch(
|
3792
|
-
Object.keys(L).forEach((
|
3793
|
-
|
3793
|
+
fetch(u).then((L) => L.json()).then((L) => {
|
3794
|
+
Object.keys(L).forEach((Ge) => {
|
3795
|
+
st(Ge, L[Ge]);
|
3794
3796
|
});
|
3795
3797
|
}).catch((L) => {
|
3796
3798
|
console.log(L);
|
3797
3799
|
});
|
3798
3800
|
};
|
3799
|
-
Object.keys(
|
3800
|
-
|
3801
|
+
Object.keys(ot).forEach((p) => {
|
3802
|
+
st(p, ot[p]);
|
3801
3803
|
});
|
3802
3804
|
const R = () => {
|
3803
3805
|
ni(a);
|
@@ -3809,34 +3811,34 @@ function oi(e, t, r) {
|
|
3809
3811
|
},
|
3810
3812
|
y ? 573 : 0
|
3811
3813
|
), p == 0 || p == 100 ? (A = "0px", S = "0px", v = p == 100 ? "3px" : "0px") : (A = `${f.offsetHeight}px`, H = A, S = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", A), g.style.setProperty("--halfOfTriangleHeight", S), g.style.setProperty("--stepBarBorderRadius", v);
|
3812
|
-
},
|
3813
|
-
r(4, N =
|
3814
|
+
}, Rt = () => {
|
3815
|
+
r(4, N = h == "active" ? "" : "inactive");
|
3814
3816
|
};
|
3815
|
-
function
|
3817
|
+
function $t(p) {
|
3816
3818
|
q[p ? "unshift" : "push"](() => {
|
3817
3819
|
x = p, r(1, x);
|
3818
3820
|
});
|
3819
3821
|
}
|
3820
|
-
function
|
3822
|
+
function Ut(p) {
|
3821
3823
|
q[p ? "unshift" : "push"](() => {
|
3822
3824
|
g = p, r(2, g);
|
3823
3825
|
});
|
3824
3826
|
}
|
3825
|
-
function
|
3827
|
+
function Gt(p) {
|
3826
3828
|
q[p ? "unshift" : "push"](() => {
|
3827
3829
|
f = p, r(0, f);
|
3828
3830
|
});
|
3829
3831
|
}
|
3830
3832
|
return e.$$set = (p) => {
|
3831
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9,
|
3833
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, o = p.showaspercent), "lang" in p && r(8, a = p.lang), "status" in p && r(9, h = p.status), "translationurl" in p && r(10, u = p.translationurl), "progressfractiondigit" in p && r(11, l = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3832
3834
|
}, e.$$.update = () => {
|
3833
3835
|
e.$$.dirty & /*triggerreset, total*/
|
3834
3836
|
4160 && c && s && setTimeout(() => {
|
3835
3837
|
te();
|
3836
3838
|
}), e.$$.dirty & /*lang*/
|
3837
3839
|
256 && a && R(), e.$$.dirty & /*status*/
|
3838
|
-
512 &&
|
3839
|
-
1024 &&
|
3840
|
+
512 && h && Rt(), e.$$.dirty & /*translationurl*/
|
3841
|
+
1024 && u && O();
|
3840
3842
|
}, [
|
3841
3843
|
f,
|
3842
3844
|
x,
|
@@ -3847,18 +3849,18 @@ function oi(e, t, r) {
|
|
3847
3849
|
s,
|
3848
3850
|
o,
|
3849
3851
|
a,
|
3850
|
-
u,
|
3851
3852
|
h,
|
3853
|
+
u,
|
3852
3854
|
l,
|
3853
3855
|
c,
|
3856
|
+
$t,
|
3854
3857
|
Ut,
|
3855
|
-
Gt
|
3856
|
-
Dt
|
3858
|
+
Gt
|
3857
3859
|
];
|
3858
3860
|
}
|
3859
|
-
class ai extends
|
3861
|
+
class ai extends fr {
|
3860
3862
|
constructor(t) {
|
3861
|
-
super(),
|
3863
|
+
super(), hr(
|
3862
3864
|
this,
|
3863
3865
|
t,
|
3864
3866
|
oi,
|
@@ -3926,7 +3928,7 @@ class ai extends cr {
|
|
3926
3928
|
this.$$set({ triggerreset: t }), P();
|
3927
3929
|
}
|
3928
3930
|
}
|
3929
|
-
|
3931
|
+
lr(ai, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3930
3932
|
export {
|
3931
3933
|
ai as default
|
3932
3934
|
};
|