@everymatrix/general-icon-progress-bar 1.77.19 → 1.77.20
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-D9Uqk4jK.js → GeneralIconProgressBar-Bt-psNCh.js} +698 -704
- package/components/GeneralIconProgressBar-Cmawx_Ll.cjs +16 -0
- package/components/{GeneralIconProgressBar-P5rVTJOT.js → GeneralIconProgressBar-g6HVGgOD.js} +717 -723
- 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-BtryxH6m.cjs +0 -3
package/components/{GeneralIconProgressBar-D9Uqk4jK.js → GeneralIconProgressBar-Bt-psNCh.js}
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
function T() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function et(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function $e() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function K(e) {
|
10
|
+
e.forEach(et);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function Ie(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function tt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Lt(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function rt(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function it(e, ...t) {
|
|
27
27
|
const r = e.subscribe(...t);
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
29
29
|
}
|
30
|
-
function
|
31
|
-
e.$$.on_destroy.push(
|
30
|
+
function Ct(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(rt(t, r));
|
32
32
|
}
|
33
|
-
function
|
33
|
+
function re(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function Mt(e, t, r) {
|
37
|
+
const n = Rt(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
|
-
const i =
|
40
|
-
i.id = t, i.textContent = r,
|
39
|
+
const i = Z("style");
|
40
|
+
i.id = t, i.textContent = r, $t(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function Rt(e) {
|
44
44
|
if (!e)
|
45
45
|
return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -50,36 +50,36 @@ function Ut(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
54
|
-
return
|
53
|
+
function $t(e, t) {
|
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 nt(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
|
-
function
|
63
|
+
function we(e) {
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function Z(e) {
|
67
67
|
return document.createElement(e);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Ut(e) {
|
70
70
|
return document.createTextNode(e);
|
71
71
|
}
|
72
|
-
function
|
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 Gt(e) {
|
76
76
|
return Array.from(e.childNodes);
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function Dt(e, t) {
|
79
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
80
80
|
t);
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Ft(e) {
|
83
83
|
const t = {};
|
84
84
|
return e.childNodes.forEach(
|
85
85
|
/** @param {Element} node */
|
@@ -88,87 +88,87 @@ function Vt(e) {
|
|
88
88
|
}
|
89
89
|
), t;
|
90
90
|
}
|
91
|
-
let
|
92
|
-
function
|
93
|
-
|
91
|
+
let Le;
|
92
|
+
function Q(e) {
|
93
|
+
Le = e;
|
94
94
|
}
|
95
|
-
const
|
96
|
-
let
|
97
|
-
const
|
98
|
-
let
|
99
|
-
function
|
100
|
-
|
95
|
+
const U = [], J = [];
|
96
|
+
let G = [];
|
97
|
+
const Ue = [], jt = /* @__PURE__ */ Promise.resolve();
|
98
|
+
let ye = !1;
|
99
|
+
function Vt() {
|
100
|
+
ye || (ye = !0, jt.then(S));
|
101
101
|
}
|
102
|
-
function
|
103
|
-
|
102
|
+
function _e(e) {
|
103
|
+
G.push(e);
|
104
104
|
}
|
105
|
-
const
|
105
|
+
const pe = /* @__PURE__ */ new Set();
|
106
106
|
let R = 0;
|
107
|
-
function
|
107
|
+
function S() {
|
108
108
|
if (R !== 0)
|
109
109
|
return;
|
110
|
-
const e =
|
110
|
+
const e = Le;
|
111
111
|
do {
|
112
112
|
try {
|
113
|
-
for (; R <
|
114
|
-
const t =
|
115
|
-
R++,
|
113
|
+
for (; R < U.length; ) {
|
114
|
+
const t = U[R];
|
115
|
+
R++, Q(t), kt(t.$$);
|
116
116
|
}
|
117
117
|
} catch (t) {
|
118
|
-
throw
|
118
|
+
throw U.length = 0, R = 0, t;
|
119
119
|
}
|
120
|
-
for (
|
121
|
-
|
122
|
-
for (let t = 0; t <
|
123
|
-
const r =
|
124
|
-
|
120
|
+
for (Q(null), U.length = 0, R = 0; J.length; )
|
121
|
+
J.pop()();
|
122
|
+
for (let t = 0; t < G.length; t += 1) {
|
123
|
+
const r = G[t];
|
124
|
+
pe.has(r) || (pe.add(r), r());
|
125
125
|
}
|
126
|
-
|
127
|
-
} while (
|
128
|
-
for (;
|
129
|
-
|
130
|
-
|
126
|
+
G.length = 0;
|
127
|
+
} while (U.length);
|
128
|
+
for (; Ue.length; )
|
129
|
+
Ue.pop()();
|
130
|
+
ye = !1, pe.clear(), Q(e);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function kt(e) {
|
133
133
|
if (e.fragment !== null) {
|
134
|
-
e.update(),
|
134
|
+
e.update(), K(e.before_update);
|
135
135
|
const t = e.dirty;
|
136
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
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 Xt(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 Wt(e, t) {
|
145
|
+
e && e.i && (zt.delete(e), e.i(t));
|
146
146
|
}
|
147
|
-
function
|
147
|
+
function Zt(e, t, r) {
|
148
148
|
const { fragment: n, after_update: i } = e.$$;
|
149
|
-
n && n.m(t, r),
|
150
|
-
const s = e.$$.on_mount.map(
|
151
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
152
|
-
}), i.forEach(
|
149
|
+
n && n.m(t, r), _e(() => {
|
150
|
+
const s = e.$$.on_mount.map(et).filter(Ie);
|
151
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
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 && (Xt(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 && (
|
158
|
+
function Jt(e, t) {
|
159
|
+
e.$$.dirty[0] === -1 && (U.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
160
160
|
}
|
161
|
-
function
|
162
|
-
const l =
|
163
|
-
|
164
|
-
const
|
161
|
+
function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
162
|
+
const l = Le;
|
163
|
+
Q(e);
|
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: $e(),
|
172
172
|
// lifecycle
|
173
173
|
on_mount: [],
|
174
174
|
on_destroy: [],
|
@@ -177,28 +177,28 @@ function Kt(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: $e(),
|
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 (
|
188
|
-
const
|
189
|
-
return
|
190
|
-
}) : [],
|
185
|
+
a && a(h.root);
|
186
|
+
let u = !1;
|
187
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
188
|
+
const g = x.length ? x[0] : f;
|
189
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u && Jt(e, c)), f;
|
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 = Gt(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 && Wt(e.$$.fragment), Zt(e, t.target, t.anchor), S();
|
197
197
|
}
|
198
|
-
|
198
|
+
Q(l);
|
199
199
|
}
|
200
|
-
let
|
201
|
-
typeof HTMLElement == "function" && (
|
200
|
+
let it;
|
201
|
+
typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
202
202
|
/** The Svelte component constructor */
|
203
203
|
$$ctor;
|
204
204
|
/** Slots */
|
@@ -240,29 +240,29 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
240
240
|
let s;
|
241
241
|
return {
|
242
242
|
c: function() {
|
243
|
-
s =
|
243
|
+
s = Z("slot"), i !== "default" && L(s, "name", i);
|
244
244
|
},
|
245
245
|
/**
|
246
246
|
* @param {HTMLElement} target
|
247
247
|
* @param {HTMLElement} [anchor]
|
248
248
|
*/
|
249
|
-
m: function(l,
|
250
|
-
|
249
|
+
m: function(l, h) {
|
250
|
+
nt(l, s, h);
|
251
251
|
},
|
252
252
|
d: function(l) {
|
253
|
-
l &&
|
253
|
+
l && we(s);
|
254
254
|
}
|
255
255
|
};
|
256
256
|
};
|
257
257
|
};
|
258
258
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
259
259
|
return;
|
260
|
-
const t = {}, r =
|
260
|
+
const t = {}, r = Ft(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) {
|
264
264
|
const s = this.$$g_p(i.name);
|
265
|
-
s in this.$$d || (this.$$d[s] =
|
265
|
+
s in this.$$d || (this.$$d[s] = ne(s, i.value, this.$$p_d, "toProp"));
|
266
266
|
}
|
267
267
|
for (const i in this.$$p_d)
|
268
268
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -280,7 +280,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
280
280
|
this.$$r = !0;
|
281
281
|
for (const i in this.$$p_d)
|
282
282
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
283
|
-
const s =
|
283
|
+
const s = ne(
|
284
284
|
i,
|
285
285
|
this.$$d[i],
|
286
286
|
this.$$p_d,
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
302
302
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
303
303
|
// and setting attributes through setAttribute etc, this is helpful
|
304
304
|
attributeChangedCallback(e, t, r) {
|
305
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
305
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ne(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
306
306
|
}
|
307
307
|
disconnectedCallback() {
|
308
308
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
315
315
|
) || e;
|
316
316
|
}
|
317
317
|
});
|
318
|
-
function
|
318
|
+
function ne(e, t, r, n) {
|
319
319
|
const i = r[e]?.type;
|
320
320
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
321
321
|
return t;
|
@@ -344,8 +344,8 @@ function ie(e, t, r, n) {
|
|
344
344
|
return t;
|
345
345
|
}
|
346
346
|
}
|
347
|
-
function
|
348
|
-
let a = class extends
|
347
|
+
function Yt(e, t, r, n, i, s) {
|
348
|
+
let a = class extends it {
|
349
349
|
constructor() {
|
350
350
|
super(e, r, i), this.$$p_d = t;
|
351
351
|
}
|
@@ -361,7 +361,7 @@ function er(e, t, r, n, i, s) {
|
|
361
361
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
362
362
|
},
|
363
363
|
set(l) {
|
364
|
-
l =
|
364
|
+
l = ne(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
365
365
|
}
|
366
366
|
});
|
367
367
|
}), n.forEach((o) => {
|
@@ -373,7 +373,7 @@ function er(e, t, r, n, i, s) {
|
|
373
373
|
}), e.element = /** @type {any} */
|
374
374
|
a, a;
|
375
375
|
}
|
376
|
-
class
|
376
|
+
class Kt {
|
377
377
|
/**
|
378
378
|
* ### PRIVATE API
|
379
379
|
*
|
@@ -392,7 +392,7 @@ class tr {
|
|
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
|
@@ -401,7 +401,7 @@ class tr {
|
|
401
401
|
* @returns {() => void}
|
402
402
|
*/
|
403
403
|
$on(t, r) {
|
404
|
-
if (!
|
404
|
+
if (!Ie(r))
|
405
405
|
return T;
|
406
406
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
407
407
|
return n.push(r), () => {
|
@@ -414,29 +414,29 @@ class tr {
|
|
414
414
|
* @returns {void}
|
415
415
|
*/
|
416
416
|
$set(t) {
|
417
|
-
this.$$set && !
|
417
|
+
this.$$set && !Lt(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(
|
422
|
-
const
|
423
|
-
function
|
420
|
+
const er = "4";
|
421
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
422
|
+
const $ = [];
|
423
|
+
function tr(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 (
|
433
|
-
const l =
|
434
|
-
for (const
|
435
|
-
|
432
|
+
if (tt(e, o) && (e = o, r)) {
|
433
|
+
const l = !$.length;
|
434
|
+
for (const h of n)
|
435
|
+
h[1](), $.push(h, e);
|
436
436
|
if (l) {
|
437
|
-
for (let
|
438
|
-
|
439
|
-
|
437
|
+
for (let h = 0; h < $.length; h += 2)
|
438
|
+
$[h][0]($[h + 1]);
|
439
|
+
$.length = 0;
|
440
440
|
}
|
441
441
|
}
|
442
442
|
}
|
@@ -444,146 +444,160 @@ function le(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 };
|
453
453
|
}
|
454
|
-
function
|
454
|
+
function k(e, t, r) {
|
455
455
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
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 tr(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
|
468
|
-
s ? a(
|
469
|
-
},
|
470
|
-
(
|
471
|
-
|
467
|
+
const g = t(n ? h[0] : h, a, o);
|
468
|
+
s ? a(g) : c = Ie(g) ? g : T;
|
469
|
+
}, x = i.map(
|
470
|
+
(g, y) => rt(
|
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
|
);
|
480
480
|
return l = !0, f(), function() {
|
481
|
-
|
481
|
+
K(x), c(), l = !1;
|
482
482
|
};
|
483
483
|
});
|
484
484
|
}
|
485
|
-
function
|
485
|
+
function rr(e) {
|
486
486
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
487
487
|
}
|
488
|
-
var
|
489
|
-
return
|
488
|
+
var nr = function(t) {
|
489
|
+
return ir(t) && !sr(t);
|
490
490
|
};
|
491
|
-
function
|
491
|
+
function ir(e) {
|
492
492
|
return !!e && typeof e == "object";
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function sr(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]" || hr(e);
|
497
497
|
}
|
498
|
-
var
|
499
|
-
function
|
500
|
-
return e.$$typeof ===
|
498
|
+
var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
|
499
|
+
function hr(e) {
|
500
|
+
return e.$$typeof === ar;
|
501
501
|
}
|
502
|
-
function
|
502
|
+
function ur(e) {
|
503
503
|
return Array.isArray(e) ? [] : {};
|
504
504
|
}
|
505
|
-
function
|
506
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
505
|
+
function q(e, t) {
|
506
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(ur(e), e, t) : e;
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function lr(e, t, r) {
|
509
509
|
return e.concat(t).map(function(n) {
|
510
|
-
return
|
510
|
+
return q(n, r);
|
511
511
|
});
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function fr(e, t) {
|
514
514
|
if (!t.customMerge)
|
515
|
-
return
|
515
|
+
return D;
|
516
516
|
var r = t.customMerge(e);
|
517
|
-
return typeof r == "function" ? r :
|
517
|
+
return typeof r == "function" ? r : D;
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function cr(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 Ge(e) {
|
525
|
+
return Object.keys(e).concat(cr(e));
|
526
526
|
}
|
527
|
-
function
|
527
|
+
function st(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 pr(e, t) {
|
535
|
+
return st(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
536
536
|
}
|
537
|
-
function
|
537
|
+
function mr(e, t, r) {
|
538
538
|
var n = {};
|
539
|
-
return r.isMergeableObject(e) &&
|
540
|
-
n[i] =
|
541
|
-
}),
|
542
|
-
|
539
|
+
return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
|
540
|
+
n[i] = q(e[i], r);
|
541
|
+
}), Ge(t).forEach(function(i) {
|
542
|
+
pr(e, i) || (st(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
543
543
|
}), n;
|
544
544
|
}
|
545
|
-
function
|
546
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
545
|
+
function D(e, t, r) {
|
546
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = q;
|
547
547
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
548
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
548
|
+
return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : q(t, r);
|
549
549
|
}
|
550
|
-
|
550
|
+
D.all = function(t, r) {
|
551
551
|
if (!Array.isArray(t))
|
552
552
|
throw new Error("first argument should be an array");
|
553
553
|
return t.reduce(function(n, i) {
|
554
|
-
return
|
554
|
+
return D(n, i, r);
|
555
555
|
}, {});
|
556
556
|
};
|
557
|
-
var
|
558
|
-
const
|
559
|
-
|
560
|
-
|
557
|
+
var br = D, dr = br;
|
558
|
+
const gr = /* @__PURE__ */ rr(dr);
|
559
|
+
/*! *****************************************************************************
|
560
|
+
Copyright (c) Microsoft Corporation.
|
561
|
+
|
562
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
563
|
+
purpose with or without fee is hereby granted.
|
564
|
+
|
565
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
566
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
567
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
568
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
569
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
570
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
571
|
+
PERFORMANCE OF THIS SOFTWARE.
|
572
|
+
***************************************************************************** */
|
573
|
+
var ve = function(e, t) {
|
574
|
+
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
561
575
|
r.__proto__ = n;
|
562
576
|
} || function(r, n) {
|
563
577
|
for (var i in n)
|
564
578
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
565
|
-
},
|
579
|
+
}, ve(e, t);
|
566
580
|
};
|
567
|
-
function
|
581
|
+
function ue(e, t) {
|
568
582
|
if (typeof t != "function" && t !== null)
|
569
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
570
|
-
|
584
|
+
ve(e, t);
|
571
585
|
function r() {
|
572
586
|
this.constructor = e;
|
573
587
|
}
|
574
588
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
575
589
|
}
|
576
|
-
var
|
577
|
-
return
|
590
|
+
var d = function() {
|
591
|
+
return d = Object.assign || function(t) {
|
578
592
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
579
593
|
r = arguments[n];
|
580
594
|
for (var s in r)
|
581
595
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
582
596
|
}
|
583
597
|
return t;
|
584
|
-
},
|
598
|
+
}, d.apply(this, arguments);
|
585
599
|
};
|
586
|
-
function
|
600
|
+
function xr(e, t) {
|
587
601
|
var r = {};
|
588
602
|
for (var n in e)
|
589
603
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -592,43 +606,43 @@ function yr(e, t) {
|
|
592
606
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
593
607
|
return r;
|
594
608
|
}
|
595
|
-
function
|
596
|
-
if (
|
609
|
+
function me(e, t, r) {
|
610
|
+
if (arguments.length === 2)
|
597
611
|
for (var n = 0, i = t.length, s; n < i; n++)
|
598
612
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
599
|
-
return e.concat(s ||
|
613
|
+
return e.concat(s || t);
|
600
614
|
}
|
601
|
-
function
|
602
|
-
var r = t && t.cache ? t.cache :
|
615
|
+
function be(e, t) {
|
616
|
+
var r = t && t.cache ? t.cache : Br, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : _r;
|
603
617
|
return i(e, {
|
604
618
|
cache: r,
|
605
619
|
serializer: n
|
606
620
|
});
|
607
621
|
}
|
608
|
-
function
|
622
|
+
function Er(e) {
|
609
623
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
610
624
|
}
|
611
|
-
function
|
612
|
-
var i =
|
625
|
+
function yr(e, t, r, n) {
|
626
|
+
var i = Er(n) ? n : r(n), s = t.get(i);
|
613
627
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
614
628
|
}
|
615
|
-
function
|
629
|
+
function ot(e, t, r) {
|
616
630
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
617
631
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
618
632
|
}
|
619
|
-
function
|
633
|
+
function at(e, t, r, n, i) {
|
620
634
|
return r.bind(t, e, n, i);
|
621
635
|
}
|
622
|
-
function
|
623
|
-
var r = e.length === 1 ?
|
624
|
-
return
|
636
|
+
function _r(e, t) {
|
637
|
+
var r = e.length === 1 ? yr : ot;
|
638
|
+
return at(e, this, r, t.cache.create(), t.serializer);
|
625
639
|
}
|
626
|
-
function
|
627
|
-
return
|
640
|
+
function vr(e, t) {
|
641
|
+
return at(e, this, ot, t.cache.create(), t.serializer);
|
628
642
|
}
|
629
|
-
var
|
643
|
+
var Hr = function() {
|
630
644
|
return JSON.stringify(arguments);
|
631
|
-
},
|
645
|
+
}, Tr = (
|
632
646
|
/** @class */
|
633
647
|
function() {
|
634
648
|
function e() {
|
@@ -640,71 +654,61 @@ var Br = function() {
|
|
640
654
|
this.cache[t] = r;
|
641
655
|
}, e;
|
642
656
|
}()
|
643
|
-
),
|
657
|
+
), Br = {
|
644
658
|
create: function() {
|
645
|
-
return new
|
659
|
+
return new Tr();
|
646
660
|
}
|
647
|
-
},
|
648
|
-
variadic:
|
649
|
-
},
|
650
|
-
return ae = Object.assign || function(t) {
|
651
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
652
|
-
r = arguments[n];
|
653
|
-
for (var s in r)
|
654
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
655
|
-
}
|
656
|
-
return t;
|
657
|
-
}, ae.apply(this, arguments);
|
658
|
-
};
|
659
|
-
var m;
|
661
|
+
}, de = {
|
662
|
+
variadic: vr
|
663
|
+
}, m;
|
660
664
|
(function(e) {
|
661
665
|
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";
|
662
666
|
})(m || (m = {}));
|
663
|
-
var
|
667
|
+
var E;
|
664
668
|
(function(e) {
|
665
669
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
666
|
-
})(
|
667
|
-
var
|
670
|
+
})(E || (E = {}));
|
671
|
+
var F;
|
668
672
|
(function(e) {
|
669
673
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
670
|
-
})(
|
671
|
-
function
|
672
|
-
return e.type ===
|
674
|
+
})(F || (F = {}));
|
675
|
+
function De(e) {
|
676
|
+
return e.type === E.literal;
|
673
677
|
}
|
674
|
-
function
|
675
|
-
return e.type ===
|
678
|
+
function Ar(e) {
|
679
|
+
return e.type === E.argument;
|
680
|
+
}
|
681
|
+
function ht(e) {
|
682
|
+
return e.type === E.number;
|
683
|
+
}
|
684
|
+
function ut(e) {
|
685
|
+
return e.type === E.date;
|
676
686
|
}
|
677
687
|
function lt(e) {
|
678
|
-
return e.type ===
|
688
|
+
return e.type === E.time;
|
679
689
|
}
|
680
690
|
function ft(e) {
|
681
|
-
return e.type ===
|
691
|
+
return e.type === E.select;
|
682
692
|
}
|
683
693
|
function ct(e) {
|
684
|
-
return e.type ===
|
694
|
+
return e.type === E.plural;
|
695
|
+
}
|
696
|
+
function Sr(e) {
|
697
|
+
return e.type === E.pound;
|
685
698
|
}
|
686
699
|
function pt(e) {
|
687
|
-
return e.type ===
|
700
|
+
return e.type === E.tag;
|
688
701
|
}
|
689
702
|
function mt(e) {
|
690
|
-
return e.type ===
|
703
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
691
704
|
}
|
692
|
-
function
|
693
|
-
return e.type ===
|
694
|
-
}
|
695
|
-
function bt(e) {
|
696
|
-
return e.type === x.tag;
|
697
|
-
}
|
698
|
-
function dt(e) {
|
699
|
-
return !!(e && typeof e == "object" && e.type === j.number);
|
700
|
-
}
|
701
|
-
function Be(e) {
|
702
|
-
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
705
|
+
function He(e) {
|
706
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
703
707
|
}
|
704
|
-
var
|
705
|
-
function
|
708
|
+
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
709
|
+
function Or(e) {
|
706
710
|
var t = {};
|
707
|
-
return e.replace(
|
711
|
+
return e.replace(Pr, function(r) {
|
708
712
|
var n = r.length;
|
709
713
|
switch (r[0]) {
|
710
714
|
case "G":
|
@@ -793,28 +797,18 @@ function wr(e) {
|
|
793
797
|
return "";
|
794
798
|
}), t;
|
795
799
|
}
|
796
|
-
var
|
797
|
-
|
798
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
799
|
-
r = arguments[n];
|
800
|
-
for (var s in r)
|
801
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
802
|
-
}
|
803
|
-
return t;
|
804
|
-
}, E.apply(this, arguments);
|
805
|
-
};
|
806
|
-
var Ir = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
807
|
-
function Lr(e) {
|
800
|
+
var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
801
|
+
function Ir(e) {
|
808
802
|
if (e.length === 0)
|
809
803
|
throw new Error("Number skeleton cannot be empty");
|
810
|
-
for (var t = e.split(
|
804
|
+
for (var t = e.split(Nr).filter(function(f) {
|
811
805
|
return f.length > 0;
|
812
806
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
813
807
|
var s = i[n], a = s.split("/");
|
814
808
|
if (a.length === 0)
|
815
809
|
throw new Error("Invalid number skeleton");
|
816
|
-
for (var o = a[0], l = a.slice(1),
|
817
|
-
var c = h
|
810
|
+
for (var o = a[0], l = a.slice(1), h = 0, u = l; h < u.length; h++) {
|
811
|
+
var c = u[h];
|
818
812
|
if (c.length === 0)
|
819
813
|
throw new Error("Invalid number skeleton");
|
820
814
|
}
|
@@ -822,17 +816,17 @@ function Lr(e) {
|
|
822
816
|
}
|
823
817
|
return r;
|
824
818
|
}
|
825
|
-
function
|
819
|
+
function wr(e) {
|
826
820
|
return e.replace(/^(.*?)-/, "");
|
827
821
|
}
|
828
|
-
var
|
829
|
-
function
|
822
|
+
var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dt = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, gt = /^(0+)$/;
|
823
|
+
function je(e) {
|
830
824
|
var t = {};
|
831
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
825
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dt, function(r, n, i) {
|
832
826
|
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)), "";
|
833
827
|
}), t;
|
834
828
|
}
|
835
|
-
function
|
829
|
+
function xt(e) {
|
836
830
|
switch (e) {
|
837
831
|
case "sign-auto":
|
838
832
|
return {
|
@@ -872,7 +866,7 @@ function yt(e) {
|
|
872
866
|
};
|
873
867
|
}
|
874
868
|
}
|
875
|
-
function
|
869
|
+
function Cr(e) {
|
876
870
|
var t;
|
877
871
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
878
872
|
notation: "engineering"
|
@@ -880,17 +874,17 @@ function $r(e) {
|
|
880
874
|
notation: "scientific"
|
881
875
|
}, e = e.slice(1)), t) {
|
882
876
|
var r = e.slice(0, 2);
|
883
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
877
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gt.test(e))
|
884
878
|
throw new Error("Malformed concise eng/scientific notation");
|
885
879
|
t.minimumIntegerDigits = e.length;
|
886
880
|
}
|
887
881
|
return t;
|
888
882
|
}
|
889
|
-
function
|
890
|
-
var t = {}, r =
|
883
|
+
function Ve(e) {
|
884
|
+
var t = {}, r = xt(e);
|
891
885
|
return r || t;
|
892
886
|
}
|
893
|
-
function
|
887
|
+
function Mr(e) {
|
894
888
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
895
889
|
var i = n[r];
|
896
890
|
switch (i.stem) {
|
@@ -914,7 +908,7 @@ function Rr(e) {
|
|
914
908
|
continue;
|
915
909
|
case "measure-unit":
|
916
910
|
case "unit":
|
917
|
-
t.style = "unit", t.unit =
|
911
|
+
t.style = "unit", t.unit = wr(i.options[0]);
|
918
912
|
continue;
|
919
913
|
case "compact-short":
|
920
914
|
case "K":
|
@@ -925,13 +919,13 @@ function Rr(e) {
|
|
925
919
|
t.notation = "compact", t.compactDisplay = "long";
|
926
920
|
continue;
|
927
921
|
case "scientific":
|
928
|
-
t =
|
929
|
-
return
|
922
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
923
|
+
return d(d({}, l), Ve(h));
|
930
924
|
}, {}));
|
931
925
|
continue;
|
932
926
|
case "engineering":
|
933
|
-
t =
|
934
|
-
return
|
927
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
928
|
+
return d(d({}, l), Ve(h));
|
935
929
|
}, {}));
|
936
930
|
continue;
|
937
931
|
case "notation-simple":
|
@@ -976,45 +970,45 @@ function Rr(e) {
|
|
976
970
|
case "integer-width":
|
977
971
|
if (i.options.length > 1)
|
978
972
|
throw new RangeError("integer-width stems only accept a single optional option");
|
979
|
-
i.options[0].replace(
|
980
|
-
if (
|
981
|
-
t.minimumIntegerDigits =
|
973
|
+
i.options[0].replace(Lr, function(l, h, u, c, f, x) {
|
974
|
+
if (h)
|
975
|
+
t.minimumIntegerDigits = u.length;
|
982
976
|
else {
|
983
977
|
if (c && f)
|
984
978
|
throw new Error("We currently do not support maximum integer digits");
|
985
|
-
if (
|
979
|
+
if (x)
|
986
980
|
throw new Error("We currently do not support exact integer digits");
|
987
981
|
}
|
988
982
|
return "";
|
989
983
|
});
|
990
984
|
continue;
|
991
985
|
}
|
992
|
-
if (
|
986
|
+
if (gt.test(i.stem)) {
|
993
987
|
t.minimumIntegerDigits = i.stem.length;
|
994
988
|
continue;
|
995
989
|
}
|
996
|
-
if (
|
990
|
+
if (Fe.test(i.stem)) {
|
997
991
|
if (i.options.length > 1)
|
998
992
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
999
|
-
i.stem.replace(
|
1000
|
-
return
|
993
|
+
i.stem.replace(Fe, function(l, h, u, c, f, x) {
|
994
|
+
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), "";
|
1001
995
|
});
|
1002
996
|
var s = i.options[0];
|
1003
|
-
s === "w" ? t =
|
997
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), je(s)));
|
1004
998
|
continue;
|
1005
999
|
}
|
1006
|
-
if (
|
1007
|
-
t =
|
1000
|
+
if (dt.test(i.stem)) {
|
1001
|
+
t = d(d({}, t), je(i.stem));
|
1008
1002
|
continue;
|
1009
1003
|
}
|
1010
|
-
var a =
|
1011
|
-
a && (t =
|
1012
|
-
var o =
|
1013
|
-
o && (t =
|
1004
|
+
var a = xt(i.stem);
|
1005
|
+
a && (t = d(d({}, t), a));
|
1006
|
+
var o = Cr(i.stem);
|
1007
|
+
o && (t = d(d({}, t), o));
|
1014
1008
|
}
|
1015
1009
|
return t;
|
1016
1010
|
}
|
1017
|
-
var
|
1011
|
+
var te = {
|
1018
1012
|
"001": [
|
1019
1013
|
"H",
|
1020
1014
|
"h"
|
@@ -2429,23 +2423,23 @@ var re = {
|
|
2429
2423
|
"h"
|
2430
2424
|
]
|
2431
2425
|
};
|
2432
|
-
function
|
2426
|
+
function Rr(e, t) {
|
2433
2427
|
for (var r = "", n = 0; n < e.length; n++) {
|
2434
2428
|
var i = e.charAt(n);
|
2435
2429
|
if (i === "j") {
|
2436
2430
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2437
2431
|
s++, n++;
|
2438
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
2439
|
-
for ((
|
2432
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = $r(t);
|
2433
|
+
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
2440
2434
|
r += l;
|
2441
2435
|
for (; a-- > 0; )
|
2442
|
-
r =
|
2436
|
+
r = h + r;
|
2443
2437
|
} else
|
2444
2438
|
i === "J" ? r += "H" : r += i;
|
2445
2439
|
}
|
2446
2440
|
return r;
|
2447
2441
|
}
|
2448
|
-
function
|
2442
|
+
function $r(e) {
|
2449
2443
|
var t = e.hourCycle;
|
2450
2444
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2451
2445
|
e.hourCycles && // @ts-ignore
|
@@ -2464,23 +2458,23 @@ function Gr(e) {
|
|
2464
2458
|
}
|
2465
2459
|
var r = e.language, n;
|
2466
2460
|
r !== "root" && (n = e.maximize().region);
|
2467
|
-
var i =
|
2461
|
+
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2468
2462
|
return i[0];
|
2469
2463
|
}
|
2470
|
-
var
|
2464
|
+
var ge, Ur = new RegExp("^".concat(bt.source, "*")), Gr = new RegExp("".concat(bt.source, "*$"));
|
2471
2465
|
function b(e, t) {
|
2472
2466
|
return { start: e, end: t };
|
2473
2467
|
}
|
2474
|
-
var
|
2468
|
+
var Dr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fr = !!String.fromCodePoint, jr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, kr = !!String.prototype.trimStart, Xr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Wr = zr ? Number.isSafeInteger : function(e) {
|
2475
2469
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2476
|
-
},
|
2470
|
+
}, Te = !0;
|
2477
2471
|
try {
|
2478
|
-
var
|
2479
|
-
|
2472
|
+
var Zr = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2473
|
+
Te = ((ge = Zr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
2480
2474
|
} catch {
|
2481
|
-
|
2475
|
+
Te = !1;
|
2482
2476
|
}
|
2483
|
-
var
|
2477
|
+
var ke = Dr ? (
|
2484
2478
|
// Native
|
2485
2479
|
function(t, r, n) {
|
2486
2480
|
return t.startsWith(r, n);
|
@@ -2490,7 +2484,7 @@ var ze = jr ? (
|
|
2490
2484
|
function(t, r, n) {
|
2491
2485
|
return t.slice(n, n + r.length) === r;
|
2492
2486
|
}
|
2493
|
-
),
|
2487
|
+
), Be = Fr ? String.fromCodePoint : (
|
2494
2488
|
// IE11
|
2495
2489
|
function() {
|
2496
2490
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2502,9 +2496,9 @@ var ze = jr ? (
|
|
2502
2496
|
}
|
2503
2497
|
return n;
|
2504
2498
|
}
|
2505
|
-
),
|
2499
|
+
), Xe = (
|
2506
2500
|
// native
|
2507
|
-
|
2501
|
+
jr ? Object.fromEntries : (
|
2508
2502
|
// Ponyfill
|
2509
2503
|
function(t) {
|
2510
2504
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2514,7 +2508,7 @@ var ze = jr ? (
|
|
2514
2508
|
return r;
|
2515
2509
|
}
|
2516
2510
|
)
|
2517
|
-
),
|
2511
|
+
), Et = Vr ? (
|
2518
2512
|
// Native
|
2519
2513
|
function(t, r) {
|
2520
2514
|
return t.codePointAt(r);
|
@@ -2528,7 +2522,7 @@ var ze = jr ? (
|
|
2528
2522
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2529
2523
|
}
|
2530
2524
|
}
|
2531
|
-
),
|
2525
|
+
), Qr = kr ? (
|
2532
2526
|
// Native
|
2533
2527
|
function(t) {
|
2534
2528
|
return t.trimStart();
|
@@ -2536,9 +2530,9 @@ var ze = jr ? (
|
|
2536
2530
|
) : (
|
2537
2531
|
// Ponyfill
|
2538
2532
|
function(t) {
|
2539
|
-
return t.replace(
|
2533
|
+
return t.replace(Ur, "");
|
2540
2534
|
}
|
2541
|
-
),
|
2535
|
+
), Jr = Xr ? (
|
2542
2536
|
// Native
|
2543
2537
|
function(t) {
|
2544
2538
|
return t.trimEnd();
|
@@ -2546,32 +2540,32 @@ var ze = jr ? (
|
|
2546
2540
|
) : (
|
2547
2541
|
// Ponyfill
|
2548
2542
|
function(t) {
|
2549
|
-
return t.replace(
|
2543
|
+
return t.replace(Gr, "");
|
2550
2544
|
}
|
2551
2545
|
);
|
2552
|
-
function
|
2546
|
+
function yt(e, t) {
|
2553
2547
|
return new RegExp(e, t);
|
2554
2548
|
}
|
2555
|
-
var
|
2556
|
-
if (
|
2557
|
-
var
|
2558
|
-
|
2549
|
+
var Ae;
|
2550
|
+
if (Te) {
|
2551
|
+
var ze = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2552
|
+
Ae = function(t, r) {
|
2559
2553
|
var n;
|
2560
|
-
|
2561
|
-
var i =
|
2554
|
+
ze.lastIndex = r;
|
2555
|
+
var i = ze.exec(t);
|
2562
2556
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2563
2557
|
};
|
2564
2558
|
} else
|
2565
|
-
|
2559
|
+
Ae = function(t, r) {
|
2566
2560
|
for (var n = []; ; ) {
|
2567
|
-
var i =
|
2568
|
-
if (i === void 0 ||
|
2561
|
+
var i = Et(t, r);
|
2562
|
+
if (i === void 0 || _t(i) || en(i))
|
2569
2563
|
break;
|
2570
2564
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2571
2565
|
}
|
2572
|
-
return
|
2566
|
+
return Be.apply(void 0, n);
|
2573
2567
|
};
|
2574
|
-
var
|
2568
|
+
var qr = (
|
2575
2569
|
/** @class */
|
2576
2570
|
function() {
|
2577
2571
|
function e(t, r) {
|
@@ -2595,14 +2589,14 @@ var Kr = (
|
|
2595
2589
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
2596
2590
|
var o = this.clonePosition();
|
2597
2591
|
this.bump(), i.push({
|
2598
|
-
type:
|
2592
|
+
type: E.pound,
|
2599
2593
|
location: b(o, this.clonePosition())
|
2600
2594
|
});
|
2601
2595
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2602
2596
|
if (n)
|
2603
2597
|
break;
|
2604
2598
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2605
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2599
|
+
} else if (s === 60 && !this.ignoreTag && Se(this.peek() || 0)) {
|
2606
2600
|
var a = this.parseTag(t, r);
|
2607
2601
|
if (a.err)
|
2608
2602
|
return a;
|
@@ -2623,7 +2617,7 @@ var Kr = (
|
|
2623
2617
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2624
2618
|
return {
|
2625
2619
|
val: {
|
2626
|
-
type:
|
2620
|
+
type: E.literal,
|
2627
2621
|
value: "<".concat(i, "/>"),
|
2628
2622
|
location: b(n, this.clonePosition())
|
2629
2623
|
},
|
@@ -2635,12 +2629,12 @@ var Kr = (
|
|
2635
2629
|
return s;
|
2636
2630
|
var a = s.val, o = this.clonePosition();
|
2637
2631
|
if (this.bumpIf("</")) {
|
2638
|
-
if (this.isEOF() || !
|
2632
|
+
if (this.isEOF() || !Se(this.char()))
|
2639
2633
|
return this.error(m.INVALID_TAG, b(o, this.clonePosition()));
|
2640
|
-
var l = this.clonePosition(),
|
2641
|
-
return i !==
|
2634
|
+
var l = this.clonePosition(), h = this.parseTagName();
|
2635
|
+
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2642
2636
|
val: {
|
2643
|
-
type:
|
2637
|
+
type: E.tag,
|
2644
2638
|
value: i,
|
2645
2639
|
children: a,
|
2646
2640
|
location: b(n, this.clonePosition())
|
@@ -2653,7 +2647,7 @@ var Kr = (
|
|
2653
2647
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2654
2648
|
}, e.prototype.parseTagName = function() {
|
2655
2649
|
var t = this.offset();
|
2656
|
-
for (this.bump(); !this.isEOF() &&
|
2650
|
+
for (this.bump(); !this.isEOF() && Kr(this.char()); )
|
2657
2651
|
this.bump();
|
2658
2652
|
return this.message.slice(t, this.offset());
|
2659
2653
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2677,12 +2671,12 @@ var Kr = (
|
|
2677
2671
|
}
|
2678
2672
|
var l = b(n, this.clonePosition());
|
2679
2673
|
return {
|
2680
|
-
val: { type:
|
2674
|
+
val: { type: E.literal, value: i, location: l },
|
2681
2675
|
err: null
|
2682
2676
|
};
|
2683
2677
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2684
2678
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2685
|
-
!
|
2679
|
+
!Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2686
2680
|
}, e.prototype.tryParseQuote = function(t) {
|
2687
2681
|
if (this.isEOF() || this.char() !== 39)
|
2688
2682
|
return null;
|
@@ -2716,12 +2710,12 @@ var Kr = (
|
|
2716
2710
|
r.push(n);
|
2717
2711
|
this.bump();
|
2718
2712
|
}
|
2719
|
-
return
|
2713
|
+
return Be.apply(void 0, r);
|
2720
2714
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2721
2715
|
if (this.isEOF())
|
2722
2716
|
return null;
|
2723
2717
|
var n = this.char();
|
2724
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2718
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Be(n));
|
2725
2719
|
}, e.prototype.parseArgument = function(t, r) {
|
2726
2720
|
var n = this.clonePosition();
|
2727
2721
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2737,7 +2731,7 @@ var Kr = (
|
|
2737
2731
|
case 125:
|
2738
2732
|
return this.bump(), {
|
2739
2733
|
val: {
|
2740
|
-
type:
|
2734
|
+
type: E.argument,
|
2741
2735
|
// value does not include the opening and closing braces.
|
2742
2736
|
value: i,
|
2743
2737
|
location: b(n, this.clonePosition())
|
@@ -2750,7 +2744,7 @@ var Kr = (
|
|
2750
2744
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2751
2745
|
}
|
2752
2746
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2753
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2747
|
+
var t = this.clonePosition(), r = this.offset(), n = Ae(this.message, r), i = r + n.length;
|
2754
2748
|
this.bumpTo(i);
|
2755
2749
|
var s = this.clonePosition(), a = b(t, s);
|
2756
2750
|
return { value: n, location: a };
|
@@ -2763,53 +2757,53 @@ var Kr = (
|
|
2763
2757
|
case "date":
|
2764
2758
|
case "time": {
|
2765
2759
|
this.bumpSpace();
|
2766
|
-
var
|
2760
|
+
var h = null;
|
2767
2761
|
if (this.bumpIf(",")) {
|
2768
2762
|
this.bumpSpace();
|
2769
|
-
var
|
2763
|
+
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2770
2764
|
if (c.err)
|
2771
2765
|
return c;
|
2772
|
-
var f =
|
2766
|
+
var f = Jr(c.val);
|
2773
2767
|
if (f.length === 0)
|
2774
2768
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2775
|
-
var
|
2776
|
-
|
2769
|
+
var x = b(u, this.clonePosition());
|
2770
|
+
h = { style: f, styleLocation: x };
|
2777
2771
|
}
|
2778
|
-
var
|
2779
|
-
if (
|
2780
|
-
return
|
2772
|
+
var g = this.tryParseArgumentClose(i);
|
2773
|
+
if (g.err)
|
2774
|
+
return g;
|
2781
2775
|
var y = b(i, this.clonePosition());
|
2782
|
-
if (
|
2783
|
-
var H =
|
2776
|
+
if (h && ke(h?.style, "::", 0)) {
|
2777
|
+
var H = Qr(h.style.slice(2));
|
2784
2778
|
if (o === "number") {
|
2785
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2779
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2786
2780
|
return c.err ? c : {
|
2787
|
-
val: { type:
|
2781
|
+
val: { type: E.number, value: n, location: y, style: c.val },
|
2788
2782
|
err: null
|
2789
2783
|
};
|
2790
2784
|
} else {
|
2791
2785
|
if (H.length === 0)
|
2792
2786
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2793
2787
|
var B = H;
|
2794
|
-
this.locale && (B =
|
2788
|
+
this.locale && (B = Rr(H, this.locale));
|
2795
2789
|
var f = {
|
2796
|
-
type:
|
2790
|
+
type: F.dateTime,
|
2797
2791
|
pattern: B,
|
2798
|
-
location:
|
2799
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2800
|
-
},
|
2792
|
+
location: h.styleLocation,
|
2793
|
+
parsedOptions: this.shouldParseSkeletons ? Or(B) : {}
|
2794
|
+
}, A = o === "date" ? E.date : E.time;
|
2801
2795
|
return {
|
2802
|
-
val: { type:
|
2796
|
+
val: { type: A, value: n, location: y, style: f },
|
2803
2797
|
err: null
|
2804
2798
|
};
|
2805
2799
|
}
|
2806
2800
|
}
|
2807
2801
|
return {
|
2808
2802
|
val: {
|
2809
|
-
type: o === "number" ?
|
2803
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
2810
2804
|
value: n,
|
2811
2805
|
location: y,
|
2812
|
-
style: (s =
|
2806
|
+
style: (s = h?.style) !== null && s !== void 0 ? s : null
|
2813
2807
|
},
|
2814
2808
|
err: null
|
2815
2809
|
};
|
@@ -2819,41 +2813,41 @@ var Kr = (
|
|
2819
2813
|
case "select": {
|
2820
2814
|
var v = this.clonePosition();
|
2821
2815
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2822
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v,
|
2816
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
2823
2817
|
this.bumpSpace();
|
2824
|
-
var
|
2825
|
-
if (o !== "select" &&
|
2818
|
+
var O = this.parseIdentifierIfPossible(), P = 0;
|
2819
|
+
if (o !== "select" && O.value === "offset") {
|
2826
2820
|
if (!this.bumpIf(":"))
|
2827
2821
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2828
2822
|
this.bumpSpace();
|
2829
2823
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2830
2824
|
if (c.err)
|
2831
2825
|
return c;
|
2832
|
-
this.bumpSpace(),
|
2826
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), P = c.val;
|
2833
2827
|
}
|
2834
|
-
var
|
2835
|
-
if (
|
2836
|
-
return
|
2837
|
-
var
|
2838
|
-
if (
|
2839
|
-
return
|
2840
|
-
var
|
2828
|
+
var M = this.tryParsePluralOrSelectOptions(t, o, r, O);
|
2829
|
+
if (M.err)
|
2830
|
+
return M;
|
2831
|
+
var g = this.tryParseArgumentClose(i);
|
2832
|
+
if (g.err)
|
2833
|
+
return g;
|
2834
|
+
var ee = b(i, this.clonePosition());
|
2841
2835
|
return o === "select" ? {
|
2842
2836
|
val: {
|
2843
|
-
type:
|
2837
|
+
type: E.select,
|
2844
2838
|
value: n,
|
2845
|
-
options:
|
2846
|
-
location:
|
2839
|
+
options: Xe(M.val),
|
2840
|
+
location: ee
|
2847
2841
|
},
|
2848
2842
|
err: null
|
2849
2843
|
} : {
|
2850
2844
|
val: {
|
2851
|
-
type:
|
2845
|
+
type: E.plural,
|
2852
2846
|
value: n,
|
2853
|
-
options:
|
2854
|
-
offset:
|
2847
|
+
options: Xe(M.val),
|
2848
|
+
offset: P,
|
2855
2849
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2856
|
-
location:
|
2850
|
+
location: ee
|
2857
2851
|
},
|
2858
2852
|
err: null
|
2859
2853
|
};
|
@@ -2901,50 +2895,50 @@ var Kr = (
|
|
2901
2895
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2902
2896
|
var n = [];
|
2903
2897
|
try {
|
2904
|
-
n =
|
2898
|
+
n = Ir(t);
|
2905
2899
|
} catch {
|
2906
2900
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2907
2901
|
}
|
2908
2902
|
return {
|
2909
2903
|
val: {
|
2910
|
-
type:
|
2904
|
+
type: F.number,
|
2911
2905
|
tokens: n,
|
2912
2906
|
location: r,
|
2913
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2907
|
+
parsedOptions: this.shouldParseSkeletons ? Mr(n) : {}
|
2914
2908
|
},
|
2915
2909
|
err: null
|
2916
2910
|
};
|
2917
2911
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2918
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
2919
|
-
if (
|
2912
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), h = i.value, u = i.location; ; ) {
|
2913
|
+
if (h.length === 0) {
|
2920
2914
|
var c = this.clonePosition();
|
2921
2915
|
if (r !== "select" && this.bumpIf("=")) {
|
2922
2916
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2923
2917
|
if (f.err)
|
2924
2918
|
return f;
|
2925
|
-
|
2919
|
+
u = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2926
2920
|
} else
|
2927
2921
|
break;
|
2928
2922
|
}
|
2929
|
-
if (l.has(
|
2930
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
2931
|
-
|
2932
|
-
var
|
2923
|
+
if (l.has(h))
|
2924
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
2925
|
+
h === "other" && (a = !0), this.bumpSpace();
|
2926
|
+
var x = this.clonePosition();
|
2933
2927
|
if (!this.bumpIf("{"))
|
2934
2928
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
2935
|
-
var
|
2936
|
-
if (
|
2937
|
-
return
|
2938
|
-
var y = this.tryParseArgumentClose(
|
2929
|
+
var g = this.parseMessage(t + 1, r, n);
|
2930
|
+
if (g.err)
|
2931
|
+
return g;
|
2932
|
+
var y = this.tryParseArgumentClose(x);
|
2939
2933
|
if (y.err)
|
2940
2934
|
return y;
|
2941
2935
|
o.push([
|
2942
|
-
|
2936
|
+
h,
|
2943
2937
|
{
|
2944
|
-
value:
|
2945
|
-
location: b(
|
2938
|
+
value: g.val,
|
2939
|
+
location: b(x, this.clonePosition())
|
2946
2940
|
}
|
2947
|
-
]), l.add(
|
2941
|
+
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
2948
2942
|
}
|
2949
2943
|
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 };
|
2950
2944
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
@@ -2958,7 +2952,7 @@ var Kr = (
|
|
2958
2952
|
break;
|
2959
2953
|
}
|
2960
2954
|
var l = b(i, this.clonePosition());
|
2961
|
-
return s ? (a *= n,
|
2955
|
+
return s ? (a *= n, Wr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2962
2956
|
}, e.prototype.offset = function() {
|
2963
2957
|
return this.position.offset;
|
2964
2958
|
}, e.prototype.isEOF = function() {
|
@@ -2973,7 +2967,7 @@ var Kr = (
|
|
2973
2967
|
var t = this.position.offset;
|
2974
2968
|
if (t >= this.message.length)
|
2975
2969
|
throw Error("out of bound");
|
2976
|
-
var r =
|
2970
|
+
var r = Et(this.message, t);
|
2977
2971
|
if (r === void 0)
|
2978
2972
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2979
2973
|
return r;
|
@@ -2992,7 +2986,7 @@ var Kr = (
|
|
2992
2986
|
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);
|
2993
2987
|
}
|
2994
2988
|
}, e.prototype.bumpIf = function(t) {
|
2995
|
-
if (
|
2989
|
+
if (ke(this.message, t, this.offset())) {
|
2996
2990
|
for (var r = 0; r < t.length; r++)
|
2997
2991
|
this.bump();
|
2998
2992
|
return !0;
|
@@ -3014,7 +3008,7 @@ var Kr = (
|
|
3014
3008
|
break;
|
3015
3009
|
}
|
3016
3010
|
}, e.prototype.bumpSpace = function() {
|
3017
|
-
for (; !this.isEOF() &&
|
3011
|
+
for (; !this.isEOF() && _t(this.char()); )
|
3018
3012
|
this.bump();
|
3019
3013
|
}, e.prototype.peek = function() {
|
3020
3014
|
if (this.isEOF())
|
@@ -3024,47 +3018,47 @@ var Kr = (
|
|
3024
3018
|
}, e;
|
3025
3019
|
}()
|
3026
3020
|
);
|
3027
|
-
function
|
3021
|
+
function Se(e) {
|
3028
3022
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3029
3023
|
}
|
3030
|
-
function
|
3031
|
-
return
|
3024
|
+
function Yr(e) {
|
3025
|
+
return Se(e) || e === 47;
|
3032
3026
|
}
|
3033
|
-
function
|
3027
|
+
function Kr(e) {
|
3034
3028
|
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;
|
3035
3029
|
}
|
3036
|
-
function
|
3030
|
+
function _t(e) {
|
3037
3031
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3038
3032
|
}
|
3039
|
-
function
|
3033
|
+
function en(e) {
|
3040
3034
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
3041
3035
|
}
|
3042
|
-
function
|
3036
|
+
function Pe(e) {
|
3043
3037
|
e.forEach(function(t) {
|
3044
|
-
if (delete t.location,
|
3038
|
+
if (delete t.location, ft(t) || ct(t))
|
3045
3039
|
for (var r in t.options)
|
3046
|
-
delete t.options[r].location,
|
3040
|
+
delete t.options[r].location, Pe(t.options[r].value);
|
3047
3041
|
else
|
3048
|
-
|
3042
|
+
ht(t) && mt(t.style) || (ut(t) || lt(t)) && He(t.style) ? delete t.style.location : pt(t) && Pe(t.children);
|
3049
3043
|
});
|
3050
3044
|
}
|
3051
|
-
function
|
3052
|
-
t === void 0 && (t = {}), t =
|
3053
|
-
var r = new
|
3045
|
+
function tn(e, t) {
|
3046
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3047
|
+
var r = new qr(e, t).parse();
|
3054
3048
|
if (r.err) {
|
3055
3049
|
var n = SyntaxError(m[r.err.kind]);
|
3056
3050
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3057
3051
|
}
|
3058
|
-
return t?.captureLocation ||
|
3052
|
+
return t?.captureLocation || Pe(r.val), r.val;
|
3059
3053
|
}
|
3060
|
-
var
|
3054
|
+
var j;
|
3061
3055
|
(function(e) {
|
3062
3056
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3063
|
-
})(
|
3064
|
-
var
|
3057
|
+
})(j || (j = {}));
|
3058
|
+
var le = (
|
3065
3059
|
/** @class */
|
3066
3060
|
function(e) {
|
3067
|
-
|
3061
|
+
ue(t, e);
|
3068
3062
|
function t(r, n, i) {
|
3069
3063
|
var s = e.call(this, r) || this;
|
3070
3064
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3073,155 +3067,155 @@ var ce = (
|
|
3073
3067
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3074
3068
|
}, t;
|
3075
3069
|
}(Error)
|
3076
|
-
),
|
3070
|
+
), We = (
|
3077
3071
|
/** @class */
|
3078
3072
|
function(e) {
|
3079
|
-
|
3073
|
+
ue(t, e);
|
3080
3074
|
function t(r, n, i, s) {
|
3081
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3075
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, s) || this;
|
3082
3076
|
}
|
3083
3077
|
return t;
|
3084
|
-
}(
|
3085
|
-
),
|
3078
|
+
}(le)
|
3079
|
+
), rn = (
|
3086
3080
|
/** @class */
|
3087
3081
|
function(e) {
|
3088
|
-
|
3082
|
+
ue(t, e);
|
3089
3083
|
function t(r, n, i) {
|
3090
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3084
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
3091
3085
|
}
|
3092
3086
|
return t;
|
3093
|
-
}(
|
3094
|
-
),
|
3087
|
+
}(le)
|
3088
|
+
), nn = (
|
3095
3089
|
/** @class */
|
3096
3090
|
function(e) {
|
3097
|
-
|
3091
|
+
ue(t, e);
|
3098
3092
|
function t(r, n) {
|
3099
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3093
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
3100
3094
|
}
|
3101
3095
|
return t;
|
3102
|
-
}(
|
3096
|
+
}(le)
|
3103
3097
|
), _;
|
3104
3098
|
(function(e) {
|
3105
3099
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3106
3100
|
})(_ || (_ = {}));
|
3107
|
-
function
|
3101
|
+
function sn(e) {
|
3108
3102
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3109
3103
|
var n = t[t.length - 1];
|
3110
3104
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3111
3105
|
}, []);
|
3112
3106
|
}
|
3113
|
-
function
|
3107
|
+
function on(e) {
|
3114
3108
|
return typeof e == "function";
|
3115
3109
|
}
|
3116
|
-
function
|
3117
|
-
if (e.length === 1 &&
|
3110
|
+
function ie(e, t, r, n, i, s, a) {
|
3111
|
+
if (e.length === 1 && De(e[0]))
|
3118
3112
|
return [
|
3119
3113
|
{
|
3120
3114
|
type: _.literal,
|
3121
3115
|
value: e[0].value
|
3122
3116
|
}
|
3123
3117
|
];
|
3124
|
-
for (var o = [], l = 0,
|
3125
|
-
var
|
3126
|
-
if (
|
3118
|
+
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
3119
|
+
var u = h[l];
|
3120
|
+
if (De(u)) {
|
3127
3121
|
o.push({
|
3128
3122
|
type: _.literal,
|
3129
|
-
value:
|
3123
|
+
value: u.value
|
3130
3124
|
});
|
3131
3125
|
continue;
|
3132
3126
|
}
|
3133
|
-
if (
|
3127
|
+
if (Sr(u)) {
|
3134
3128
|
typeof s == "number" && o.push({
|
3135
3129
|
type: _.literal,
|
3136
3130
|
value: r.getNumberFormat(t).format(s)
|
3137
3131
|
});
|
3138
3132
|
continue;
|
3139
3133
|
}
|
3140
|
-
var c =
|
3134
|
+
var c = u.value;
|
3141
3135
|
if (!(i && c in i))
|
3142
|
-
throw new
|
3136
|
+
throw new nn(c, a);
|
3143
3137
|
var f = i[c];
|
3144
|
-
if (
|
3138
|
+
if (Ar(u)) {
|
3145
3139
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3146
3140
|
type: typeof f == "string" ? _.literal : _.object,
|
3147
3141
|
value: f
|
3148
3142
|
});
|
3149
3143
|
continue;
|
3150
3144
|
}
|
3151
|
-
if (
|
3152
|
-
var
|
3145
|
+
if (ut(u)) {
|
3146
|
+
var x = typeof u.style == "string" ? n.date[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
|
3153
3147
|
o.push({
|
3154
3148
|
type: _.literal,
|
3155
|
-
value: r.getDateTimeFormat(t,
|
3149
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3156
3150
|
});
|
3157
3151
|
continue;
|
3158
3152
|
}
|
3159
|
-
if (
|
3160
|
-
var
|
3153
|
+
if (lt(u)) {
|
3154
|
+
var x = typeof u.style == "string" ? n.time[u.style] : He(u.style) ? u.style.parsedOptions : n.time.medium;
|
3161
3155
|
o.push({
|
3162
3156
|
type: _.literal,
|
3163
|
-
value: r.getDateTimeFormat(t,
|
3157
|
+
value: r.getDateTimeFormat(t, x).format(f)
|
3164
3158
|
});
|
3165
3159
|
continue;
|
3166
3160
|
}
|
3167
|
-
if (
|
3168
|
-
var
|
3169
|
-
|
3161
|
+
if (ht(u)) {
|
3162
|
+
var x = typeof u.style == "string" ? n.number[u.style] : mt(u.style) ? u.style.parsedOptions : void 0;
|
3163
|
+
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3170
3164
|
type: _.literal,
|
3171
|
-
value: r.getNumberFormat(t,
|
3165
|
+
value: r.getNumberFormat(t, x).format(f)
|
3172
3166
|
});
|
3173
3167
|
continue;
|
3174
3168
|
}
|
3175
|
-
if (
|
3176
|
-
var
|
3177
|
-
if (!
|
3178
|
-
throw new
|
3179
|
-
var B =
|
3180
|
-
return
|
3169
|
+
if (pt(u)) {
|
3170
|
+
var g = u.children, y = u.value, H = i[y];
|
3171
|
+
if (!on(H))
|
3172
|
+
throw new rn(y, "function", a);
|
3173
|
+
var B = ie(g, t, r, n, i, s), A = H(B.map(function(P) {
|
3174
|
+
return P.value;
|
3181
3175
|
}));
|
3182
|
-
Array.isArray(
|
3176
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(P) {
|
3183
3177
|
return {
|
3184
|
-
type: typeof
|
3185
|
-
value:
|
3178
|
+
type: typeof P == "string" ? _.literal : _.object,
|
3179
|
+
value: P
|
3186
3180
|
};
|
3187
3181
|
}));
|
3188
3182
|
}
|
3189
|
-
if (
|
3190
|
-
var v =
|
3183
|
+
if (ft(u)) {
|
3184
|
+
var v = u.options[f] || u.options.other;
|
3191
3185
|
if (!v)
|
3192
|
-
throw new
|
3193
|
-
o.push.apply(o,
|
3186
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3187
|
+
o.push.apply(o, ie(v.value, t, r, n, i));
|
3194
3188
|
continue;
|
3195
3189
|
}
|
3196
|
-
if (
|
3197
|
-
var v =
|
3190
|
+
if (ct(u)) {
|
3191
|
+
var v = u.options["=".concat(f)];
|
3198
3192
|
if (!v) {
|
3199
3193
|
if (!Intl.PluralRules)
|
3200
|
-
throw new
|
3194
|
+
throw new le(`Intl.PluralRules is not available in this environment.
|
3201
3195
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3202
|
-
`,
|
3203
|
-
var
|
3204
|
-
v =
|
3196
|
+
`, j.MISSING_INTL_API, a);
|
3197
|
+
var O = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3198
|
+
v = u.options[O] || u.options.other;
|
3205
3199
|
}
|
3206
3200
|
if (!v)
|
3207
|
-
throw new
|
3208
|
-
o.push.apply(o,
|
3201
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3202
|
+
o.push.apply(o, ie(v.value, t, r, n, i, f - (u.offset || 0)));
|
3209
3203
|
continue;
|
3210
3204
|
}
|
3211
3205
|
}
|
3212
|
-
return
|
3206
|
+
return sn(o);
|
3213
3207
|
}
|
3214
|
-
function
|
3215
|
-
return t ?
|
3216
|
-
return r[n] =
|
3208
|
+
function an(e, t) {
|
3209
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3210
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3217
3211
|
}, {})) : e;
|
3218
3212
|
}
|
3219
|
-
function
|
3213
|
+
function hn(e, t) {
|
3220
3214
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3221
|
-
return r[n] =
|
3222
|
-
},
|
3215
|
+
return r[n] = an(e[n], t[n]), r;
|
3216
|
+
}, d({}, e)) : e;
|
3223
3217
|
}
|
3224
|
-
function
|
3218
|
+
function xe(e) {
|
3225
3219
|
return {
|
3226
3220
|
create: function() {
|
3227
3221
|
return {
|
@@ -3235,39 +3229,39 @@ function ye(e) {
|
|
3235
3229
|
}
|
3236
3230
|
};
|
3237
3231
|
}
|
3238
|
-
function
|
3232
|
+
function un(e) {
|
3239
3233
|
return e === void 0 && (e = {
|
3240
3234
|
number: {},
|
3241
3235
|
dateTime: {},
|
3242
3236
|
pluralRules: {}
|
3243
3237
|
}), {
|
3244
|
-
getNumberFormat:
|
3238
|
+
getNumberFormat: be(function() {
|
3245
3239
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3246
3240
|
r[n] = arguments[n];
|
3247
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3241
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
|
3248
3242
|
}, {
|
3249
|
-
cache:
|
3250
|
-
strategy:
|
3243
|
+
cache: xe(e.number),
|
3244
|
+
strategy: de.variadic
|
3251
3245
|
}),
|
3252
|
-
getDateTimeFormat:
|
3246
|
+
getDateTimeFormat: be(function() {
|
3253
3247
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3254
3248
|
r[n] = arguments[n];
|
3255
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3249
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
|
3256
3250
|
}, {
|
3257
|
-
cache:
|
3258
|
-
strategy:
|
3251
|
+
cache: xe(e.dateTime),
|
3252
|
+
strategy: de.variadic
|
3259
3253
|
}),
|
3260
|
-
getPluralRules:
|
3254
|
+
getPluralRules: be(function() {
|
3261
3255
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3262
3256
|
r[n] = arguments[n];
|
3263
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3257
|
+
return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
|
3264
3258
|
}, {
|
3265
|
-
cache:
|
3266
|
-
strategy:
|
3259
|
+
cache: xe(e.pluralRules),
|
3260
|
+
strategy: de.variadic
|
3267
3261
|
})
|
3268
3262
|
};
|
3269
3263
|
}
|
3270
|
-
var
|
3264
|
+
var ln = (
|
3271
3265
|
/** @class */
|
3272
3266
|
function() {
|
3273
3267
|
function e(t, r, n, i) {
|
@@ -3278,15 +3272,15 @@ var cn = (
|
|
3278
3272
|
dateTime: {},
|
3279
3273
|
pluralRules: {}
|
3280
3274
|
}, this.format = function(l) {
|
3281
|
-
var
|
3282
|
-
if (
|
3283
|
-
return
|
3284
|
-
var
|
3275
|
+
var h = s.formatToParts(l);
|
3276
|
+
if (h.length === 1)
|
3277
|
+
return h[0].value;
|
3278
|
+
var u = h.reduce(function(c, f) {
|
3285
3279
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3286
3280
|
}, []);
|
3287
|
-
return
|
3281
|
+
return u.length <= 1 ? u[0] || "" : u;
|
3288
3282
|
}, this.formatToParts = function(l) {
|
3289
|
-
return
|
3283
|
+
return ie(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
3290
3284
|
}, this.resolvedOptions = function() {
|
3291
3285
|
var l;
|
3292
3286
|
return {
|
@@ -3299,13 +3293,13 @@ var cn = (
|
|
3299
3293
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3300
3294
|
var a = i || {};
|
3301
3295
|
a.formatters;
|
3302
|
-
var o =
|
3303
|
-
this.ast = e.__parse(t,
|
3296
|
+
var o = xr(a, ["formatters"]);
|
3297
|
+
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
3304
3298
|
} else
|
3305
3299
|
this.ast = t;
|
3306
3300
|
if (!Array.isArray(this.ast))
|
3307
3301
|
throw new TypeError("A message must be provided as a String or AST.");
|
3308
|
-
this.formats =
|
3302
|
+
this.formats = hn(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
|
3309
3303
|
}
|
3310
3304
|
return Object.defineProperty(e, "defaultLocale", {
|
3311
3305
|
get: function() {
|
@@ -3318,7 +3312,7 @@ var cn = (
|
|
3318
3312
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3319
3313
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3320
3314
|
}
|
3321
|
-
}, e.__parse =
|
3315
|
+
}, e.__parse = tn, e.formats = {
|
3322
3316
|
number: {
|
3323
3317
|
integer: {
|
3324
3318
|
maximumFractionDigits: 0
|
@@ -3379,7 +3373,7 @@ var cn = (
|
|
3379
3373
|
}, e;
|
3380
3374
|
}()
|
3381
3375
|
);
|
3382
|
-
function
|
3376
|
+
function fn(e, t) {
|
3383
3377
|
if (t == null)
|
3384
3378
|
return;
|
3385
3379
|
if (t in e)
|
@@ -3400,92 +3394,92 @@ function pn(e, t) {
|
|
3400
3394
|
n = void 0;
|
3401
3395
|
return n;
|
3402
3396
|
}
|
3403
|
-
const
|
3397
|
+
const N = {}, cn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), vt = (e, t) => {
|
3404
3398
|
if (t == null)
|
3405
3399
|
return;
|
3406
|
-
if (t in
|
3407
|
-
return
|
3408
|
-
const r =
|
3400
|
+
if (t in N && e in N[t])
|
3401
|
+
return N[t][e];
|
3402
|
+
const r = fe(t);
|
3409
3403
|
for (let n = 0; n < r.length; n++) {
|
3410
|
-
const i = r[n], s =
|
3404
|
+
const i = r[n], s = mn(i, e);
|
3411
3405
|
if (s)
|
3412
|
-
return
|
3406
|
+
return cn(e, t, s);
|
3413
3407
|
}
|
3414
3408
|
};
|
3415
|
-
let
|
3416
|
-
const
|
3417
|
-
function
|
3418
|
-
return
|
3409
|
+
let Ce;
|
3410
|
+
const X = he({});
|
3411
|
+
function pn(e) {
|
3412
|
+
return Ce[e] || null;
|
3419
3413
|
}
|
3420
|
-
function
|
3421
|
-
return e in
|
3414
|
+
function Ht(e) {
|
3415
|
+
return e in Ce;
|
3422
3416
|
}
|
3423
|
-
function
|
3424
|
-
if (!
|
3417
|
+
function mn(e, t) {
|
3418
|
+
if (!Ht(e))
|
3425
3419
|
return null;
|
3426
|
-
const r =
|
3427
|
-
return
|
3420
|
+
const r = pn(e);
|
3421
|
+
return fn(r, t);
|
3428
3422
|
}
|
3429
|
-
function
|
3423
|
+
function bn(e) {
|
3430
3424
|
if (e == null)
|
3431
3425
|
return;
|
3432
|
-
const t =
|
3426
|
+
const t = fe(e);
|
3433
3427
|
for (let r = 0; r < t.length; r++) {
|
3434
3428
|
const n = t[r];
|
3435
|
-
if (
|
3429
|
+
if (Ht(n))
|
3436
3430
|
return n;
|
3437
3431
|
}
|
3438
3432
|
}
|
3439
|
-
function
|
3440
|
-
delete
|
3433
|
+
function Tt(e, ...t) {
|
3434
|
+
delete N[e], X.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
|
3441
3435
|
}
|
3442
|
-
|
3443
|
-
[
|
3436
|
+
k(
|
3437
|
+
[X],
|
3444
3438
|
([e]) => Object.keys(e)
|
3445
3439
|
);
|
3446
|
-
|
3447
|
-
const
|
3448
|
-
function
|
3449
|
-
|
3440
|
+
X.subscribe((e) => Ce = e);
|
3441
|
+
const se = {};
|
3442
|
+
function dn(e, t) {
|
3443
|
+
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3450
3444
|
}
|
3451
|
-
function
|
3452
|
-
return
|
3445
|
+
function Bt(e) {
|
3446
|
+
return se[e];
|
3453
3447
|
}
|
3454
|
-
function
|
3455
|
-
return
|
3456
|
-
const r =
|
3448
|
+
function gn(e) {
|
3449
|
+
return fe(e).map((t) => {
|
3450
|
+
const r = Bt(t);
|
3457
3451
|
return [t, r ? [...r] : []];
|
3458
3452
|
}).filter(([, t]) => t.length > 0);
|
3459
3453
|
}
|
3460
|
-
function
|
3461
|
-
return e == null ? !1 :
|
3454
|
+
function Oe(e) {
|
3455
|
+
return e == null ? !1 : fe(e).some(
|
3462
3456
|
(t) => {
|
3463
3457
|
var r;
|
3464
|
-
return (r =
|
3458
|
+
return (r = Bt(t)) == null ? void 0 : r.size;
|
3465
3459
|
}
|
3466
3460
|
);
|
3467
3461
|
}
|
3468
|
-
function
|
3462
|
+
function xn(e, t) {
|
3469
3463
|
return Promise.all(
|
3470
|
-
t.map((n) => (
|
3471
|
-
).then((n) =>
|
3472
|
-
}
|
3473
|
-
const
|
3474
|
-
function
|
3475
|
-
if (!
|
3476
|
-
return e in
|
3477
|
-
const t =
|
3478
|
-
return
|
3464
|
+
t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
|
3465
|
+
).then((n) => Tt(e, ...n));
|
3466
|
+
}
|
3467
|
+
const W = {};
|
3468
|
+
function At(e) {
|
3469
|
+
if (!Oe(e))
|
3470
|
+
return e in W ? W[e] : Promise.resolve();
|
3471
|
+
const t = gn(e);
|
3472
|
+
return W[e] = Promise.all(
|
3479
3473
|
t.map(
|
3480
|
-
([r, n]) =>
|
3474
|
+
([r, n]) => xn(r, n)
|
3481
3475
|
)
|
3482
3476
|
).then(() => {
|
3483
|
-
if (
|
3484
|
-
return
|
3485
|
-
delete
|
3486
|
-
}),
|
3477
|
+
if (Oe(e))
|
3478
|
+
return At(e);
|
3479
|
+
delete W[e];
|
3480
|
+
}), W[e];
|
3487
3481
|
}
|
3488
|
-
const
|
3482
|
+
const En = {
|
3489
3483
|
number: {
|
3490
3484
|
scientific: { notation: "scientific" },
|
3491
3485
|
engineering: { notation: "engineering" },
|
@@ -3514,159 +3508,159 @@ const _n = {
|
|
3514
3508
|
timeZoneName: "short"
|
3515
3509
|
}
|
3516
3510
|
}
|
3517
|
-
},
|
3511
|
+
}, yn = {
|
3518
3512
|
fallbackLocale: null,
|
3519
3513
|
loadingDelay: 200,
|
3520
|
-
formats:
|
3514
|
+
formats: En,
|
3521
3515
|
warnOnMissingMessages: !0,
|
3522
3516
|
handleMissingMessage: void 0,
|
3523
3517
|
ignoreTag: !0
|
3524
|
-
},
|
3525
|
-
function
|
3526
|
-
return
|
3518
|
+
}, _n = yn;
|
3519
|
+
function V() {
|
3520
|
+
return _n;
|
3527
3521
|
}
|
3528
|
-
const
|
3529
|
-
var
|
3522
|
+
const Ee = he(!1);
|
3523
|
+
var vn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, Bn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sn = (e, t) => {
|
3530
3524
|
for (var r in t || (t = {}))
|
3531
|
-
|
3532
|
-
if (
|
3533
|
-
for (var r of
|
3534
|
-
|
3525
|
+
Bn.call(t, r) && Qe(e, r, t[r]);
|
3526
|
+
if (Ze)
|
3527
|
+
for (var r of Ze(t))
|
3528
|
+
An.call(t, r) && Qe(e, r, t[r]);
|
3535
3529
|
return e;
|
3536
|
-
},
|
3537
|
-
let
|
3538
|
-
const
|
3539
|
-
function
|
3530
|
+
}, Pn = (e, t) => Hn(e, Tn(t));
|
3531
|
+
let Ne;
|
3532
|
+
const oe = he(null);
|
3533
|
+
function Je(e) {
|
3540
3534
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3541
3535
|
}
|
3542
|
-
function
|
3543
|
-
const r =
|
3544
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3536
|
+
function fe(e, t = V().fallbackLocale) {
|
3537
|
+
const r = Je(e);
|
3538
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Je(t)])] : r;
|
3545
3539
|
}
|
3546
|
-
function
|
3547
|
-
return
|
3540
|
+
function C() {
|
3541
|
+
return Ne ?? void 0;
|
3548
3542
|
}
|
3549
|
-
|
3550
|
-
|
3543
|
+
oe.subscribe((e) => {
|
3544
|
+
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3551
3545
|
});
|
3552
|
-
const
|
3553
|
-
if (e &&
|
3554
|
-
const { loadingDelay: t } =
|
3546
|
+
const On = (e) => {
|
3547
|
+
if (e && bn(e) && Oe(e)) {
|
3548
|
+
const { loadingDelay: t } = V();
|
3555
3549
|
let r;
|
3556
|
-
return typeof window < "u" &&
|
3557
|
-
() =>
|
3550
|
+
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
3551
|
+
() => Ee.set(!0),
|
3558
3552
|
t
|
3559
|
-
) :
|
3560
|
-
|
3553
|
+
) : Ee.set(!0), At(e).then(() => {
|
3554
|
+
oe.set(e);
|
3561
3555
|
}).finally(() => {
|
3562
|
-
clearTimeout(r),
|
3556
|
+
clearTimeout(r), Ee.set(!1);
|
3563
3557
|
});
|
3564
3558
|
}
|
3565
|
-
return
|
3566
|
-
}, I =
|
3567
|
-
set:
|
3568
|
-
}),
|
3559
|
+
return oe.set(e);
|
3560
|
+
}, I = Pn(Sn({}, oe), {
|
3561
|
+
set: On
|
3562
|
+
}), ce = (e) => {
|
3569
3563
|
const t = /* @__PURE__ */ Object.create(null);
|
3570
3564
|
return (n) => {
|
3571
3565
|
const i = JSON.stringify(n);
|
3572
3566
|
return i in t ? t[i] : t[i] = e(n);
|
3573
3567
|
};
|
3574
3568
|
};
|
3575
|
-
var
|
3569
|
+
var Nn = Object.defineProperty, ae = Object.getOwnPropertySymbols, St = Object.prototype.hasOwnProperty, Pt = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
|
3576
3570
|
for (var r in t || (t = {}))
|
3577
|
-
|
3578
|
-
if (
|
3579
|
-
for (var r of
|
3580
|
-
|
3571
|
+
St.call(t, r) && qe(e, r, t[r]);
|
3572
|
+
if (ae)
|
3573
|
+
for (var r of ae(t))
|
3574
|
+
Pt.call(t, r) && qe(e, r, t[r]);
|
3581
3575
|
return e;
|
3582
|
-
},
|
3576
|
+
}, z = (e, t) => {
|
3583
3577
|
var r = {};
|
3584
3578
|
for (var n in e)
|
3585
|
-
|
3586
|
-
if (e != null &&
|
3587
|
-
for (var n of
|
3588
|
-
t.indexOf(n) < 0 &&
|
3579
|
+
St.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3580
|
+
if (e != null && ae)
|
3581
|
+
for (var n of ae(e))
|
3582
|
+
t.indexOf(n) < 0 && Pt.call(e, n) && (r[n] = e[n]);
|
3589
3583
|
return r;
|
3590
3584
|
};
|
3591
|
-
const
|
3592
|
-
const { formats: r } =
|
3585
|
+
const Y = (e, t) => {
|
3586
|
+
const { formats: r } = V();
|
3593
3587
|
if (e in r && t in r[e])
|
3594
3588
|
return r[e][t];
|
3595
3589
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3596
|
-
},
|
3590
|
+
}, In = ce(
|
3597
3591
|
(e) => {
|
3598
|
-
var t = e, { locale: r, format: n } = t, i =
|
3592
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3599
3593
|
if (r == null)
|
3600
3594
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3601
|
-
return n && (i =
|
3595
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
3602
3596
|
}
|
3603
|
-
),
|
3597
|
+
), wn = ce(
|
3604
3598
|
(e) => {
|
3605
|
-
var t = e, { locale: r, format: n } = t, i =
|
3599
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3606
3600
|
if (r == null)
|
3607
3601
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3608
|
-
return n ? i =
|
3602
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
3609
3603
|
}
|
3610
|
-
),
|
3604
|
+
), Ln = ce(
|
3611
3605
|
(e) => {
|
3612
|
-
var t = e, { locale: r, format: n } = t, i =
|
3606
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3613
3607
|
if (r == null)
|
3614
3608
|
throw new Error(
|
3615
3609
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3616
3610
|
);
|
3617
|
-
return n ? i =
|
3611
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
3618
3612
|
}
|
3619
|
-
),
|
3613
|
+
), Cn = (e = {}) => {
|
3620
3614
|
var t = e, {
|
3621
|
-
locale: r =
|
3622
|
-
} = t, n =
|
3615
|
+
locale: r = C()
|
3616
|
+
} = t, n = z(t, [
|
3623
3617
|
"locale"
|
3624
3618
|
]);
|
3625
|
-
return
|
3626
|
-
},
|
3619
|
+
return In(Me({ locale: r }, n));
|
3620
|
+
}, Mn = (e = {}) => {
|
3627
3621
|
var t = e, {
|
3628
|
-
locale: r =
|
3629
|
-
} = t, n =
|
3622
|
+
locale: r = C()
|
3623
|
+
} = t, n = z(t, [
|
3630
3624
|
"locale"
|
3631
3625
|
]);
|
3632
|
-
return
|
3633
|
-
},
|
3626
|
+
return wn(Me({ locale: r }, n));
|
3627
|
+
}, Rn = (e = {}) => {
|
3634
3628
|
var t = e, {
|
3635
|
-
locale: r =
|
3636
|
-
} = t, n =
|
3629
|
+
locale: r = C()
|
3630
|
+
} = t, n = z(t, [
|
3637
3631
|
"locale"
|
3638
3632
|
]);
|
3639
|
-
return
|
3640
|
-
},
|
3633
|
+
return Ln(Me({ locale: r }, n));
|
3634
|
+
}, $n = ce(
|
3641
3635
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3642
|
-
(e, t =
|
3643
|
-
ignoreTag:
|
3636
|
+
(e, t = C()) => new ln(e, t, V().formats, {
|
3637
|
+
ignoreTag: V().ignoreTag
|
3644
3638
|
})
|
3645
|
-
),
|
3639
|
+
), Un = (e, t = {}) => {
|
3646
3640
|
var r, n, i, s;
|
3647
3641
|
let a = t;
|
3648
3642
|
typeof e == "object" && (a = e, e = a.id);
|
3649
3643
|
const {
|
3650
3644
|
values: o,
|
3651
|
-
locale: l =
|
3652
|
-
default:
|
3645
|
+
locale: l = C(),
|
3646
|
+
default: h
|
3653
3647
|
} = a;
|
3654
3648
|
if (l == null)
|
3655
3649
|
throw new Error(
|
3656
3650
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3657
3651
|
);
|
3658
|
-
let
|
3659
|
-
if (!
|
3660
|
-
|
3661
|
-
else if (typeof
|
3652
|
+
let u = vt(e, l);
|
3653
|
+
if (!u)
|
3654
|
+
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;
|
3655
|
+
else if (typeof u != "string")
|
3662
3656
|
return console.warn(
|
3663
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3664
|
-
),
|
3657
|
+
`[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.`
|
3658
|
+
), u;
|
3665
3659
|
if (!o)
|
3666
|
-
return
|
3667
|
-
let c =
|
3660
|
+
return u;
|
3661
|
+
let c = u;
|
3668
3662
|
try {
|
3669
|
-
c =
|
3663
|
+
c = $n(u, l).format(o);
|
3670
3664
|
} catch (f) {
|
3671
3665
|
f instanceof Error && console.warn(
|
3672
3666
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3674,23 +3668,23 @@ const K = (e, t) => {
|
|
3674
3668
|
);
|
3675
3669
|
}
|
3676
3670
|
return c;
|
3677
|
-
},
|
3678
|
-
|
3679
|
-
|
3680
|
-
|
3681
|
-
|
3682
|
-
function
|
3671
|
+
}, Gn = (e, t) => Rn(t).format(e), Dn = (e, t) => Mn(t).format(e), Fn = (e, t) => Cn(t).format(e), jn = (e, t = C()) => vt(e, t), Vn = k([I, X], () => Un);
|
3672
|
+
k([I], () => Gn);
|
3673
|
+
k([I], () => Dn);
|
3674
|
+
k([I], () => Fn);
|
3675
|
+
k([I, X], () => jn);
|
3676
|
+
function kn({ withLocale: e, translations: t }) {
|
3683
3677
|
I.subscribe((r) => {
|
3684
|
-
r == null && (
|
3678
|
+
r == null && (X.set(t), I.set(e));
|
3685
3679
|
});
|
3686
3680
|
}
|
3687
|
-
function
|
3688
|
-
|
3681
|
+
function Ye(e, t) {
|
3682
|
+
Tt(e, t);
|
3689
3683
|
}
|
3690
|
-
function
|
3684
|
+
function Xn(e) {
|
3691
3685
|
I.set(e);
|
3692
3686
|
}
|
3693
|
-
const
|
3687
|
+
const Ke = {
|
3694
3688
|
en: {
|
3695
3689
|
bets: "bets"
|
3696
3690
|
},
|
@@ -3716,121 +3710,121 @@ const tt = {
|
|
3716
3710
|
bets: "bets"
|
3717
3711
|
}
|
3718
3712
|
};
|
3719
|
-
function
|
3720
|
-
|
3713
|
+
function zn(e) {
|
3714
|
+
Mt(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
3721
3715
|
}
|
3722
|
-
function
|
3716
|
+
function Wn(e) {
|
3723
3717
|
let t, r, n, i, s;
|
3724
3718
|
return {
|
3725
3719
|
c() {
|
3726
|
-
t =
|
3720
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Ut(
|
3727
3721
|
/*progressText*/
|
3728
3722
|
e[3]
|
3729
|
-
),
|
3730
|
-
e[4]),
|
3723
|
+
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
3724
|
+
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
3731
3725
|
},
|
3732
3726
|
m(a, o) {
|
3733
|
-
|
3727
|
+
nt(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
3734
3728
|
},
|
3735
3729
|
p(a, [o]) {
|
3736
3730
|
o & /*progressText*/
|
3737
|
-
8 &&
|
3731
|
+
8 && Dt(
|
3738
3732
|
i,
|
3739
3733
|
/*progressText*/
|
3740
3734
|
a[3]
|
3741
3735
|
), o & /*curTatus*/
|
3742
3736
|
16 && s !== (s = "stepBar " + /*curTatus*/
|
3743
|
-
a[4]) &&
|
3737
|
+
a[4]) && L(r, "class", s);
|
3744
3738
|
},
|
3745
3739
|
i: T,
|
3746
3740
|
o: T,
|
3747
3741
|
d(a) {
|
3748
|
-
a &&
|
3742
|
+
a && we(t), e[13](null), e[14](null), e[15](null);
|
3749
3743
|
}
|
3750
3744
|
};
|
3751
3745
|
}
|
3752
|
-
function
|
3746
|
+
function Zn(e, t, r) {
|
3753
3747
|
let n;
|
3754
|
-
|
3755
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl:
|
3756
|
-
|
3757
|
-
const
|
3758
|
-
fetch(
|
3759
|
-
Object.keys(
|
3760
|
-
|
3748
|
+
Ct(e, Vn, (p) => r(20, n = p));
|
3749
|
+
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";
|
3750
|
+
kn({ withLocale: "en", translations: {} });
|
3751
|
+
const P = () => {
|
3752
|
+
fetch(h).then((w) => w.json()).then((w) => {
|
3753
|
+
Object.keys(w).forEach((Re) => {
|
3754
|
+
Ye(Re, w[Re]);
|
3761
3755
|
});
|
3762
|
-
}).catch((
|
3763
|
-
console.log(
|
3756
|
+
}).catch((w) => {
|
3757
|
+
console.log(w);
|
3764
3758
|
});
|
3765
3759
|
};
|
3766
|
-
Object.keys(
|
3767
|
-
|
3760
|
+
Object.keys(Ke).forEach((p) => {
|
3761
|
+
Ye(p, Ke[p]);
|
3768
3762
|
});
|
3769
|
-
const
|
3770
|
-
|
3771
|
-
},
|
3772
|
-
let p = (i / s * 100).toFixed(
|
3763
|
+
const M = () => {
|
3764
|
+
Xn(o);
|
3765
|
+
}, ee = () => {
|
3766
|
+
let p = (i / s * 100).toFixed(u);
|
3773
3767
|
setTimeout(
|
3774
3768
|
() => {
|
3775
3769
|
a || a === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3776
3770
|
},
|
3777
3771
|
y ? 573 : 0
|
3778
|
-
), p == 0 || p == 100 ? (B = "0px",
|
3779
|
-
},
|
3780
|
-
r(4,
|
3772
|
+
), 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);
|
3773
|
+
}, Ot = () => {
|
3774
|
+
r(4, O = l == "active" ? "" : "inactive");
|
3781
3775
|
};
|
3782
|
-
function
|
3783
|
-
|
3784
|
-
|
3776
|
+
function Nt(p) {
|
3777
|
+
J[p ? "unshift" : "push"](() => {
|
3778
|
+
x = p, r(1, x);
|
3785
3779
|
});
|
3786
3780
|
}
|
3787
|
-
function
|
3788
|
-
|
3789
|
-
|
3781
|
+
function It(p) {
|
3782
|
+
J[p ? "unshift" : "push"](() => {
|
3783
|
+
g = p, r(2, g);
|
3790
3784
|
});
|
3791
3785
|
}
|
3792
|
-
function
|
3793
|
-
|
3786
|
+
function wt(p) {
|
3787
|
+
J[p ? "unshift" : "push"](() => {
|
3794
3788
|
f = p, r(0, f);
|
3795
3789
|
});
|
3796
3790
|
}
|
3797
3791
|
return e.$$set = (p) => {
|
3798
|
-
"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,
|
3792
|
+
"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);
|
3799
3793
|
}, e.$$.update = () => {
|
3800
3794
|
e.$$.dirty & /*triggerreset, total*/
|
3801
3795
|
4160 && c && s && setTimeout(() => {
|
3802
|
-
|
3796
|
+
ee();
|
3803
3797
|
}), e.$$.dirty & /*lang*/
|
3804
|
-
256 && o &&
|
3805
|
-
512 && l &&
|
3806
|
-
1024 &&
|
3798
|
+
256 && o && M(), e.$$.dirty & /*status*/
|
3799
|
+
512 && l && Ot(), e.$$.dirty & /*translationurl*/
|
3800
|
+
1024 && h && P();
|
3807
3801
|
}, [
|
3808
3802
|
f,
|
3803
|
+
x,
|
3809
3804
|
g,
|
3810
|
-
d,
|
3811
3805
|
y,
|
3812
|
-
|
3806
|
+
O,
|
3813
3807
|
i,
|
3814
3808
|
s,
|
3815
3809
|
a,
|
3816
3810
|
o,
|
3817
3811
|
l,
|
3818
|
-
u,
|
3819
3812
|
h,
|
3813
|
+
u,
|
3820
3814
|
c,
|
3815
|
+
Nt,
|
3821
3816
|
It,
|
3822
|
-
|
3823
|
-
Ct
|
3817
|
+
wt
|
3824
3818
|
];
|
3825
3819
|
}
|
3826
|
-
class
|
3820
|
+
class Qn extends Kt {
|
3827
3821
|
constructor(t) {
|
3828
|
-
super(),
|
3822
|
+
super(), qt(
|
3829
3823
|
this,
|
3830
3824
|
t,
|
3831
|
-
|
3832
|
-
|
3833
|
-
|
3825
|
+
Zn,
|
3826
|
+
Wn,
|
3827
|
+
tt,
|
3834
3828
|
{
|
3835
3829
|
currentstep: 5,
|
3836
3830
|
total: 6,
|
@@ -3841,59 +3835,59 @@ class qn extends tr {
|
|
3841
3835
|
progressfractiondigit: 11,
|
3842
3836
|
triggerreset: 12
|
3843
3837
|
},
|
3844
|
-
|
3838
|
+
zn
|
3845
3839
|
);
|
3846
3840
|
}
|
3847
3841
|
get currentstep() {
|
3848
3842
|
return this.$$.ctx[5];
|
3849
3843
|
}
|
3850
3844
|
set currentstep(t) {
|
3851
|
-
this.$$set({ currentstep: t }),
|
3845
|
+
this.$$set({ currentstep: t }), S();
|
3852
3846
|
}
|
3853
3847
|
get total() {
|
3854
3848
|
return this.$$.ctx[6];
|
3855
3849
|
}
|
3856
3850
|
set total(t) {
|
3857
|
-
this.$$set({ total: t }),
|
3851
|
+
this.$$set({ total: t }), S();
|
3858
3852
|
}
|
3859
3853
|
get showaspercent() {
|
3860
3854
|
return this.$$.ctx[7];
|
3861
3855
|
}
|
3862
3856
|
set showaspercent(t) {
|
3863
|
-
this.$$set({ showaspercent: t }),
|
3857
|
+
this.$$set({ showaspercent: t }), S();
|
3864
3858
|
}
|
3865
3859
|
get lang() {
|
3866
3860
|
return this.$$.ctx[8];
|
3867
3861
|
}
|
3868
3862
|
set lang(t) {
|
3869
|
-
this.$$set({ lang: t }),
|
3863
|
+
this.$$set({ lang: t }), S();
|
3870
3864
|
}
|
3871
3865
|
get status() {
|
3872
3866
|
return this.$$.ctx[9];
|
3873
3867
|
}
|
3874
3868
|
set status(t) {
|
3875
|
-
this.$$set({ status: t }),
|
3869
|
+
this.$$set({ status: t }), S();
|
3876
3870
|
}
|
3877
3871
|
get translationurl() {
|
3878
3872
|
return this.$$.ctx[10];
|
3879
3873
|
}
|
3880
3874
|
set translationurl(t) {
|
3881
|
-
this.$$set({ translationurl: t }),
|
3875
|
+
this.$$set({ translationurl: t }), S();
|
3882
3876
|
}
|
3883
3877
|
get progressfractiondigit() {
|
3884
3878
|
return this.$$.ctx[11];
|
3885
3879
|
}
|
3886
3880
|
set progressfractiondigit(t) {
|
3887
|
-
this.$$set({ progressfractiondigit: t }),
|
3881
|
+
this.$$set({ progressfractiondigit: t }), S();
|
3888
3882
|
}
|
3889
3883
|
get triggerreset() {
|
3890
3884
|
return this.$$.ctx[12];
|
3891
3885
|
}
|
3892
3886
|
set triggerreset(t) {
|
3893
|
-
this.$$set({ triggerreset: t }),
|
3887
|
+
this.$$set({ triggerreset: t }), S();
|
3894
3888
|
}
|
3895
3889
|
}
|
3896
|
-
|
3890
|
+
Yt(Qn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3897
3891
|
export {
|
3898
|
-
|
3892
|
+
Qn as G
|
3899
3893
|
};
|