@everymatrix/casino-404 1.59.1 → 1.59.2
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/{Casino404-CjwDqoe2.js → Casino404-BAwtFpIN.js} +412 -410
- package/components/{Casino404-zsu7m4wc.js → Casino404-CDo-vfq7.js} +422 -420
- package/components/Casino404-DilLgg_z.cjs +16 -0
- package/es2015/casino-404.cjs +1 -1
- package/es2015/casino-404.js +1 -1
- package/esnext/casino-404.js +1 -1
- package/package.json +1 -1
- package/components/Casino404-Ciq-EoiM.cjs +0 -16
@@ -1,24 +1,24 @@
|
|
1
1
|
function S() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function at(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function je() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function te(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(at);
|
11
11
|
}
|
12
12
|
function $e(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function st(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Ct(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function ut(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function at(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 $t(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(ut(t, r));
|
32
32
|
}
|
33
33
|
function _(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function Rt(e, t, r) {
|
37
|
+
const n = Ft(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
39
|
const i = L("style");
|
40
|
-
i.id = t, i.textContent = r,
|
40
|
+
i.id = t, i.textContent = r, Gt(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function Ft(e) {
|
44
44
|
if (!e)
|
45
45
|
return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -50,14 +50,14 @@ function $t(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function Gt(e, t) {
|
54
54
|
return _(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function ht(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
63
|
function Re(e) {
|
@@ -75,20 +75,20 @@ function ie(e) {
|
|
75
75
|
function ge() {
|
76
76
|
return ie(" ");
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function Dt(e, t, r, n) {
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
80
80
|
}
|
81
81
|
function x(e, t, r) {
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
83
83
|
}
|
84
|
-
function
|
84
|
+
function Ut(e) {
|
85
85
|
return Array.from(e.childNodes);
|
86
86
|
}
|
87
87
|
function de(e, t) {
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
89
89
|
t);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function kt(e) {
|
92
92
|
const t = {};
|
93
93
|
return e.childNodes.forEach(
|
94
94
|
/** @param {Element} node */
|
@@ -101,20 +101,20 @@ let Y;
|
|
101
101
|
function J(e) {
|
102
102
|
Y = e;
|
103
103
|
}
|
104
|
-
function
|
104
|
+
function jt() {
|
105
105
|
if (!Y)
|
106
106
|
throw new Error("Function called outside component initialization");
|
107
107
|
return Y;
|
108
108
|
}
|
109
|
-
function
|
110
|
-
|
109
|
+
function Vt(e) {
|
110
|
+
jt().$$.on_mount.push(e);
|
111
111
|
}
|
112
112
|
const D = [], Te = [];
|
113
113
|
let U = [];
|
114
|
-
const
|
114
|
+
const Ve = [], Xt = /* @__PURE__ */ Promise.resolve();
|
115
115
|
let Pe = !1;
|
116
|
-
function
|
117
|
-
Pe || (Pe = !0,
|
116
|
+
function zt() {
|
117
|
+
Pe || (Pe = !0, Xt.then(C));
|
118
118
|
}
|
119
119
|
function Ne(e) {
|
120
120
|
U.push(e);
|
@@ -129,7 +129,7 @@ function C() {
|
|
129
129
|
try {
|
130
130
|
for (; F < D.length; ) {
|
131
131
|
const t = D[F];
|
132
|
-
F++, J(t),
|
132
|
+
F++, J(t), Zt(t.$$);
|
133
133
|
}
|
134
134
|
} catch (t) {
|
135
135
|
throw D.length = 0, F = 0, t;
|
@@ -142,40 +142,40 @@ function C() {
|
|
142
142
|
}
|
143
143
|
U.length = 0;
|
144
144
|
} while (D.length);
|
145
|
-
for (;
|
146
|
-
|
145
|
+
for (; Ve.length; )
|
146
|
+
Ve.pop()();
|
147
147
|
Pe = !1, be.clear(), J(e);
|
148
148
|
}
|
149
|
-
function
|
149
|
+
function Zt(e) {
|
150
150
|
if (e.fragment !== null) {
|
151
151
|
e.update(), te(e.before_update);
|
152
152
|
const t = e.dirty;
|
153
153
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
154
154
|
}
|
155
155
|
}
|
156
|
-
function
|
156
|
+
function Wt(e) {
|
157
157
|
const t = [], r = [];
|
158
158
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
159
159
|
}
|
160
|
-
const
|
161
|
-
function
|
162
|
-
e && e.i && (
|
160
|
+
const Qt = /* @__PURE__ */ new Set();
|
161
|
+
function qt(e, t) {
|
162
|
+
e && e.i && (Qt.delete(e), e.i(t));
|
163
163
|
}
|
164
|
-
function
|
164
|
+
function Jt(e, t, r) {
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
166
166
|
n && n.m(t, r), Ne(() => {
|
167
|
-
const o = e.$$.on_mount.map(
|
167
|
+
const o = e.$$.on_mount.map(at).filter($e);
|
168
168
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
169
169
|
}), i.forEach(Ne);
|
170
170
|
}
|
171
|
-
function
|
171
|
+
function Yt(e, t) {
|
172
172
|
const r = e.$$;
|
173
|
-
r.fragment !== null && (
|
173
|
+
r.fragment !== null && (Wt(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
174
174
|
}
|
175
|
-
function
|
176
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
175
|
+
function Kt(e, t) {
|
176
|
+
e.$$.dirty[0] === -1 && (D.push(e), zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function er(e, t, r, n, i, o, u = null, s = [-1]) {
|
179
179
|
const l = Y;
|
180
180
|
J(e);
|
181
181
|
const a = e.$$ = {
|
@@ -185,7 +185,7 @@ function Yt(e, t, r, n, i, o, u = null, s = [-1]) {
|
|
185
185
|
props: o,
|
186
186
|
update: S,
|
187
187
|
not_equal: i,
|
188
|
-
bound:
|
188
|
+
bound: je(),
|
189
189
|
// lifecycle
|
190
190
|
on_mount: [],
|
191
191
|
on_destroy: [],
|
@@ -194,28 +194,28 @@ function Yt(e, t, r, n, i, o, u = null, s = [-1]) {
|
|
194
194
|
after_update: [],
|
195
195
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
196
196
|
// everything else
|
197
|
-
callbacks:
|
197
|
+
callbacks: je(),
|
198
198
|
dirty: s,
|
199
199
|
skip_bound: !1,
|
200
200
|
root: t.target || l.$$.root
|
201
201
|
};
|
202
202
|
u && u(a.root);
|
203
203
|
let h = !1;
|
204
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
205
|
-
const y = b.length ? b[0] :
|
206
|
-
return a.ctx && i(a.ctx[
|
204
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...b) => {
|
205
|
+
const y = b.length ? b[0] : f;
|
206
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = y) && (!a.skip_bound && a.bound[c] && a.bound[c](y), h && Kt(e, c)), f;
|
207
207
|
}) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
208
208
|
if (t.hydrate) {
|
209
|
-
const
|
210
|
-
a.fragment && a.fragment.l(
|
209
|
+
const c = Ut(t.target);
|
210
|
+
a.fragment && a.fragment.l(c), c.forEach(Re);
|
211
211
|
} else
|
212
212
|
a.fragment && a.fragment.c();
|
213
|
-
t.intro &&
|
213
|
+
t.intro && qt(e.$$.fragment), Jt(e, t.target, t.anchor), C();
|
214
214
|
}
|
215
215
|
J(l);
|
216
216
|
}
|
217
|
-
let
|
218
|
-
typeof HTMLElement == "function" && (
|
217
|
+
let lt;
|
218
|
+
typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
219
219
|
/** The Svelte component constructor */
|
220
220
|
$$ctor;
|
221
221
|
/** Slots */
|
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (ut = class extends HTMLElement {
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
265
265
|
*/
|
266
266
|
m: function(l, a) {
|
267
|
-
|
267
|
+
ht(l, o, a);
|
268
268
|
},
|
269
269
|
d: function(l) {
|
270
270
|
l && Re(o);
|
@@ -274,7 +274,7 @@ typeof HTMLElement == "function" && (ut = class extends HTMLElement {
|
|
274
274
|
};
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
276
276
|
return;
|
277
|
-
const t = {}, r =
|
277
|
+
const t = {}, r = kt(this);
|
278
278
|
for (const i of this.$$s)
|
279
279
|
i in r && (t[i] = [e(i)]);
|
280
280
|
for (const i of this.attributes) {
|
@@ -361,8 +361,8 @@ function oe(e, t, r, n) {
|
|
361
361
|
return t;
|
362
362
|
}
|
363
363
|
}
|
364
|
-
function
|
365
|
-
let u = class extends
|
364
|
+
function tr(e, t, r, n, i, o) {
|
365
|
+
let u = class extends lt {
|
366
366
|
constructor() {
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
368
368
|
}
|
@@ -390,7 +390,7 @@ function Kt(e, t, r, n, i, o) {
|
|
390
390
|
}), e.element = /** @type {any} */
|
391
391
|
u, u;
|
392
392
|
}
|
393
|
-
class
|
393
|
+
class rr {
|
394
394
|
/**
|
395
395
|
* ### PRIVATE API
|
396
396
|
*
|
@@ -409,7 +409,7 @@ class er {
|
|
409
409
|
$$set = void 0;
|
410
410
|
/** @returns {void} */
|
411
411
|
$destroy() {
|
412
|
-
|
412
|
+
Yt(this, 1), this.$destroy = S;
|
413
413
|
}
|
414
414
|
/**
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
@@ -431,13 +431,13 @@ class er {
|
|
431
431
|
* @returns {void}
|
432
432
|
*/
|
433
433
|
$set(t) {
|
434
|
-
this.$$set && !
|
434
|
+
this.$$set && !Ct(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
435
435
|
}
|
436
436
|
}
|
437
|
-
const
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
437
|
+
const nr = "4";
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(nr);
|
439
439
|
const G = [];
|
440
|
-
function
|
440
|
+
function ir(e, t) {
|
441
441
|
return {
|
442
442
|
subscribe: le(e, t).subscribe
|
443
443
|
};
|
@@ -446,7 +446,7 @@ function le(e, t = S) {
|
|
446
446
|
let r;
|
447
447
|
const n = /* @__PURE__ */ new Set();
|
448
448
|
function i(s) {
|
449
|
-
if (
|
449
|
+
if (st(e, s) && (e = s, r)) {
|
450
450
|
const l = !G.length;
|
451
451
|
for (const a of n)
|
452
452
|
a[1](), G.push(a, e);
|
@@ -473,96 +473,96 @@ function z(e, t, r) {
|
|
473
473
|
if (!i.every(Boolean))
|
474
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
475
475
|
const o = t.length < 2;
|
476
|
-
return
|
476
|
+
return ir(r, (u, s) => {
|
477
477
|
let l = !1;
|
478
478
|
const a = [];
|
479
|
-
let h = 0,
|
480
|
-
const
|
479
|
+
let h = 0, c = S;
|
480
|
+
const f = () => {
|
481
481
|
if (h)
|
482
482
|
return;
|
483
|
-
|
483
|
+
c();
|
484
484
|
const y = t(n ? a[0] : a, u, s);
|
485
|
-
o ? u(y) :
|
485
|
+
o ? u(y) : c = $e(y) ? y : S;
|
486
486
|
}, b = i.map(
|
487
|
-
(y, m) =>
|
487
|
+
(y, m) => ut(
|
488
488
|
y,
|
489
489
|
(E) => {
|
490
|
-
a[m] = E, h &= ~(1 << m), l &&
|
490
|
+
a[m] = E, h &= ~(1 << m), l && f();
|
491
491
|
},
|
492
492
|
() => {
|
493
493
|
h |= 1 << m;
|
494
494
|
}
|
495
495
|
)
|
496
496
|
);
|
497
|
-
return l = !0,
|
498
|
-
te(b),
|
497
|
+
return l = !0, f(), function() {
|
498
|
+
te(b), c(), l = !1;
|
499
499
|
};
|
500
500
|
});
|
501
501
|
}
|
502
|
-
function
|
502
|
+
function or(e) {
|
503
503
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
504
504
|
}
|
505
|
-
var
|
506
|
-
return
|
505
|
+
var ar = function(t) {
|
506
|
+
return sr(t) && !ur(t);
|
507
507
|
};
|
508
|
-
function
|
508
|
+
function sr(e) {
|
509
509
|
return !!e && typeof e == "object";
|
510
510
|
}
|
511
|
-
function
|
511
|
+
function ur(e) {
|
512
512
|
var t = Object.prototype.toString.call(e);
|
513
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
513
|
+
return t === "[object RegExp]" || t === "[object Date]" || cr(e);
|
514
514
|
}
|
515
|
-
var
|
516
|
-
function
|
517
|
-
return e.$$typeof ===
|
515
|
+
var hr = typeof Symbol == "function" && Symbol.for, lr = hr ? Symbol.for("react.element") : 60103;
|
516
|
+
function cr(e) {
|
517
|
+
return e.$$typeof === lr;
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function fr(e) {
|
520
520
|
return Array.isArray(e) ? [] : {};
|
521
521
|
}
|
522
522
|
function K(e, t) {
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(fr(e), e, t) : e;
|
524
524
|
}
|
525
|
-
function
|
525
|
+
function mr(e, t, r) {
|
526
526
|
return e.concat(t).map(function(n) {
|
527
527
|
return K(n, r);
|
528
528
|
});
|
529
529
|
}
|
530
|
-
function
|
530
|
+
function pr(e, t) {
|
531
531
|
if (!t.customMerge)
|
532
532
|
return k;
|
533
533
|
var r = t.customMerge(e);
|
534
534
|
return typeof r == "function" ? r : k;
|
535
535
|
}
|
536
|
-
function
|
536
|
+
function gr(e) {
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
538
538
|
return Object.propertyIsEnumerable.call(e, t);
|
539
539
|
}) : [];
|
540
540
|
}
|
541
|
-
function
|
542
|
-
return Object.keys(e).concat(
|
541
|
+
function Xe(e) {
|
542
|
+
return Object.keys(e).concat(gr(e));
|
543
543
|
}
|
544
|
-
function
|
544
|
+
function ct(e, t) {
|
545
545
|
try {
|
546
546
|
return t in e;
|
547
547
|
} catch {
|
548
548
|
return !1;
|
549
549
|
}
|
550
550
|
}
|
551
|
-
function
|
552
|
-
return
|
551
|
+
function dr(e, t) {
|
552
|
+
return ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
553
553
|
}
|
554
|
-
function
|
554
|
+
function br(e, t, r) {
|
555
555
|
var n = {};
|
556
|
-
return r.isMergeableObject(e) &&
|
556
|
+
return r.isMergeableObject(e) && Xe(e).forEach(function(i) {
|
557
557
|
n[i] = K(e[i], r);
|
558
|
-
}),
|
559
|
-
|
558
|
+
}), Xe(t).forEach(function(i) {
|
559
|
+
dr(e, i) || (ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = pr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
560
560
|
}), n;
|
561
561
|
}
|
562
562
|
function k(e, t, r) {
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mr, r.isMergeableObject = r.isMergeableObject || ar, r.cloneUnlessOtherwiseSpecified = K;
|
564
564
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
565
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
565
|
+
return o ? n ? r.arrayMerge(e, t, r) : br(e, t, r) : K(t, r);
|
566
566
|
}
|
567
567
|
k.all = function(t, r) {
|
568
568
|
if (!Array.isArray(t))
|
@@ -571,8 +571,8 @@ k.all = function(t, r) {
|
|
571
571
|
return k(n, i, r);
|
572
572
|
}, {});
|
573
573
|
};
|
574
|
-
var
|
575
|
-
const
|
574
|
+
var xr = k, yr = xr;
|
575
|
+
const vr = /* @__PURE__ */ or(yr);
|
576
576
|
/*! *****************************************************************************
|
577
577
|
Copyright (c) Microsoft Corporation.
|
578
578
|
|
@@ -595,7 +595,7 @@ var Be = function(e, t) {
|
|
595
595
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
596
596
|
}, Be(e, t);
|
597
597
|
};
|
598
|
-
function
|
598
|
+
function ce(e, t) {
|
599
599
|
if (typeof t != "function" && t !== null)
|
600
600
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
601
601
|
Be(e, t);
|
@@ -614,7 +614,7 @@ var d = function() {
|
|
614
614
|
return t;
|
615
615
|
}, d.apply(this, arguments);
|
616
616
|
};
|
617
|
-
function
|
617
|
+
function Er(e, t) {
|
618
618
|
var r = {};
|
619
619
|
for (var n in e)
|
620
620
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -630,53 +630,55 @@ function xe(e, t, r) {
|
|
630
630
|
return e.concat(o || t);
|
631
631
|
}
|
632
632
|
function ye(e, t) {
|
633
|
-
var r = t && t.cache ? t.cache :
|
633
|
+
var r = t && t.cache ? t.cache : Br, n = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Hr;
|
634
634
|
return i(e, {
|
635
635
|
cache: r,
|
636
636
|
serializer: n
|
637
637
|
});
|
638
638
|
}
|
639
|
-
function
|
639
|
+
function _r(e) {
|
640
640
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
641
641
|
}
|
642
|
-
function
|
643
|
-
var i =
|
642
|
+
function ft(e, t, r, n) {
|
643
|
+
var i = _r(n) ? n : r(n), o = t.get(i);
|
644
644
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
645
645
|
}
|
646
|
-
function
|
646
|
+
function mt(e, t, r) {
|
647
647
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
648
648
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
649
649
|
}
|
650
|
-
function
|
650
|
+
function Fe(e, t, r, n, i) {
|
651
651
|
return r.bind(t, e, n, i);
|
652
652
|
}
|
653
|
-
function _r(e, t) {
|
654
|
-
var r = e.length === 1 ? Er : lt;
|
655
|
-
return ft(e, this, r, t.cache.create(), t.serializer);
|
656
|
-
}
|
657
653
|
function Hr(e, t) {
|
658
|
-
|
654
|
+
var r = e.length === 1 ? ft : mt;
|
655
|
+
return Fe(e, this, r, t.cache.create(), t.serializer);
|
656
|
+
}
|
657
|
+
function Tr(e, t) {
|
658
|
+
return Fe(e, this, mt, t.cache.create(), t.serializer);
|
659
|
+
}
|
660
|
+
function Pr(e, t) {
|
661
|
+
return Fe(e, this, ft, t.cache.create(), t.serializer);
|
659
662
|
}
|
660
|
-
var
|
663
|
+
var Nr = function() {
|
661
664
|
return JSON.stringify(arguments);
|
662
|
-
}
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
}()
|
674
|
-
), Nr = {
|
665
|
+
};
|
666
|
+
function Ge() {
|
667
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
668
|
+
}
|
669
|
+
Ge.prototype.get = function(e) {
|
670
|
+
return this.cache[e];
|
671
|
+
};
|
672
|
+
Ge.prototype.set = function(e, t) {
|
673
|
+
this.cache[e] = t;
|
674
|
+
};
|
675
|
+
var Br = {
|
675
676
|
create: function() {
|
676
|
-
return new
|
677
|
+
return new Ge();
|
677
678
|
}
|
678
679
|
}, ve = {
|
679
|
-
variadic:
|
680
|
+
variadic: Tr,
|
681
|
+
monadic: Pr
|
680
682
|
}, p;
|
681
683
|
(function(e) {
|
682
684
|
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";
|
@@ -689,43 +691,43 @@ var j;
|
|
689
691
|
(function(e) {
|
690
692
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
691
693
|
})(j || (j = {}));
|
692
|
-
function
|
694
|
+
function ze(e) {
|
693
695
|
return e.type === v.literal;
|
694
696
|
}
|
695
|
-
function
|
697
|
+
function Sr(e) {
|
696
698
|
return e.type === v.argument;
|
697
699
|
}
|
698
|
-
function
|
700
|
+
function pt(e) {
|
699
701
|
return e.type === v.number;
|
700
702
|
}
|
701
|
-
function
|
703
|
+
function gt(e) {
|
702
704
|
return e.type === v.date;
|
703
705
|
}
|
704
|
-
function
|
706
|
+
function dt(e) {
|
705
707
|
return e.type === v.time;
|
706
708
|
}
|
707
|
-
function
|
709
|
+
function bt(e) {
|
708
710
|
return e.type === v.select;
|
709
711
|
}
|
710
|
-
function
|
712
|
+
function xt(e) {
|
711
713
|
return e.type === v.plural;
|
712
714
|
}
|
713
|
-
function
|
715
|
+
function Ar(e) {
|
714
716
|
return e.type === v.pound;
|
715
717
|
}
|
716
|
-
function
|
718
|
+
function yt(e) {
|
717
719
|
return e.type === v.tag;
|
718
720
|
}
|
719
|
-
function
|
721
|
+
function vt(e) {
|
720
722
|
return !!(e && typeof e == "object" && e.type === j.number);
|
721
723
|
}
|
722
724
|
function Se(e) {
|
723
725
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
724
726
|
}
|
725
|
-
var
|
726
|
-
function
|
727
|
+
var Et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wr = /(?:[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;
|
728
|
+
function Or(e) {
|
727
729
|
var t = {};
|
728
|
-
return e.replace(
|
730
|
+
return e.replace(wr, function(r) {
|
729
731
|
var n = r.length;
|
730
732
|
switch (r[0]) {
|
731
733
|
case "G":
|
@@ -814,36 +816,36 @@ function wr(e) {
|
|
814
816
|
return "";
|
815
817
|
}), t;
|
816
818
|
}
|
817
|
-
var
|
819
|
+
var Mr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
818
820
|
function Ir(e) {
|
819
821
|
if (e.length === 0)
|
820
822
|
throw new Error("Number skeleton cannot be empty");
|
821
|
-
for (var t = e.split(
|
822
|
-
return
|
823
|
+
for (var t = e.split(Mr).filter(function(f) {
|
824
|
+
return f.length > 0;
|
823
825
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
824
826
|
var o = i[n], u = o.split("/");
|
825
827
|
if (u.length === 0)
|
826
828
|
throw new Error("Invalid number skeleton");
|
827
829
|
for (var s = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
828
|
-
var
|
829
|
-
if (
|
830
|
+
var c = h[a];
|
831
|
+
if (c.length === 0)
|
830
832
|
throw new Error("Invalid number skeleton");
|
831
833
|
}
|
832
834
|
r.push({ stem: s, options: l });
|
833
835
|
}
|
834
836
|
return r;
|
835
837
|
}
|
836
|
-
function
|
838
|
+
function Lr(e) {
|
837
839
|
return e.replace(/^(.*?)-/, "");
|
838
840
|
}
|
839
|
-
var
|
840
|
-
function
|
841
|
+
var Ze = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _t = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ht = /^(0+)$/;
|
842
|
+
function We(e) {
|
841
843
|
var t = {};
|
842
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
844
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_t, function(r, n, i) {
|
843
845
|
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)), "";
|
844
846
|
}), t;
|
845
847
|
}
|
846
|
-
function
|
848
|
+
function Tt(e) {
|
847
849
|
switch (e) {
|
848
850
|
case "sign-auto":
|
849
851
|
return {
|
@@ -883,7 +885,7 @@ function _t(e) {
|
|
883
885
|
};
|
884
886
|
}
|
885
887
|
}
|
886
|
-
function
|
888
|
+
function $r(e) {
|
887
889
|
var t;
|
888
890
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
889
891
|
notation: "engineering"
|
@@ -891,17 +893,17 @@ function Cr(e) {
|
|
891
893
|
notation: "scientific"
|
892
894
|
}, e = e.slice(1)), t) {
|
893
895
|
var r = e.slice(0, 2);
|
894
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
896
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ht.test(e))
|
895
897
|
throw new Error("Malformed concise eng/scientific notation");
|
896
898
|
t.minimumIntegerDigits = e.length;
|
897
899
|
}
|
898
900
|
return t;
|
899
901
|
}
|
900
|
-
function
|
901
|
-
var t = {}, r =
|
902
|
+
function Qe(e) {
|
903
|
+
var t = {}, r = Tt(e);
|
902
904
|
return r || t;
|
903
905
|
}
|
904
|
-
function
|
906
|
+
function Rr(e) {
|
905
907
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
906
908
|
var i = n[r];
|
907
909
|
switch (i.stem) {
|
@@ -925,7 +927,7 @@ function $r(e) {
|
|
925
927
|
continue;
|
926
928
|
case "measure-unit":
|
927
929
|
case "unit":
|
928
|
-
t.style = "unit", t.unit =
|
930
|
+
t.style = "unit", t.unit = Lr(i.options[0]);
|
929
931
|
continue;
|
930
932
|
case "compact-short":
|
931
933
|
case "K":
|
@@ -937,12 +939,12 @@ function $r(e) {
|
|
937
939
|
continue;
|
938
940
|
case "scientific":
|
939
941
|
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
940
|
-
return d(d({}, l),
|
942
|
+
return d(d({}, l), Qe(a));
|
941
943
|
}, {}));
|
942
944
|
continue;
|
943
945
|
case "engineering":
|
944
946
|
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
945
|
-
return d(d({}, l),
|
947
|
+
return d(d({}, l), Qe(a));
|
946
948
|
}, {}));
|
947
949
|
continue;
|
948
950
|
case "notation-simple":
|
@@ -987,11 +989,11 @@ function $r(e) {
|
|
987
989
|
case "integer-width":
|
988
990
|
if (i.options.length > 1)
|
989
991
|
throw new RangeError("integer-width stems only accept a single optional option");
|
990
|
-
i.options[0].replace(
|
992
|
+
i.options[0].replace(Cr, function(l, a, h, c, f, b) {
|
991
993
|
if (a)
|
992
994
|
t.minimumIntegerDigits = h.length;
|
993
995
|
else {
|
994
|
-
if (
|
996
|
+
if (c && f)
|
995
997
|
throw new Error("We currently do not support maximum integer digits");
|
996
998
|
if (b)
|
997
999
|
throw new Error("We currently do not support exact integer digits");
|
@@ -1000,27 +1002,27 @@ function $r(e) {
|
|
1000
1002
|
});
|
1001
1003
|
continue;
|
1002
1004
|
}
|
1003
|
-
if (
|
1005
|
+
if (Ht.test(i.stem)) {
|
1004
1006
|
t.minimumIntegerDigits = i.stem.length;
|
1005
1007
|
continue;
|
1006
1008
|
}
|
1007
|
-
if (
|
1009
|
+
if (Ze.test(i.stem)) {
|
1008
1010
|
if (i.options.length > 1)
|
1009
1011
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1010
|
-
i.stem.replace(
|
1011
|
-
return h === "*" ? t.minimumFractionDigits = a.length :
|
1012
|
+
i.stem.replace(Ze, function(l, a, h, c, f, b) {
|
1013
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
1012
1014
|
});
|
1013
1015
|
var o = i.options[0];
|
1014
|
-
o === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = d(d({}, t),
|
1016
|
+
o === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = d(d({}, t), We(o)));
|
1015
1017
|
continue;
|
1016
1018
|
}
|
1017
|
-
if (
|
1018
|
-
t = d(d({}, t),
|
1019
|
+
if (_t.test(i.stem)) {
|
1020
|
+
t = d(d({}, t), We(i.stem));
|
1019
1021
|
continue;
|
1020
1022
|
}
|
1021
|
-
var u =
|
1023
|
+
var u = Tt(i.stem);
|
1022
1024
|
u && (t = d(d({}, t), u));
|
1023
|
-
var s =
|
1025
|
+
var s = $r(i.stem);
|
1024
1026
|
s && (t = d(d({}, t), s));
|
1025
1027
|
}
|
1026
1028
|
return t;
|
@@ -2440,13 +2442,13 @@ var ne = {
|
|
2440
2442
|
"h"
|
2441
2443
|
]
|
2442
2444
|
};
|
2443
|
-
function
|
2445
|
+
function Fr(e, t) {
|
2444
2446
|
for (var r = "", n = 0; n < e.length; n++) {
|
2445
2447
|
var i = e.charAt(n);
|
2446
2448
|
if (i === "j") {
|
2447
2449
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2448
2450
|
o++, n++;
|
2449
|
-
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", a =
|
2451
|
+
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = Gr(t);
|
2450
2452
|
for ((a == "H" || a == "k") && (s = 0); s-- > 0; )
|
2451
2453
|
r += l;
|
2452
2454
|
for (; u-- > 0; )
|
@@ -2456,7 +2458,7 @@ function Rr(e, t) {
|
|
2456
2458
|
}
|
2457
2459
|
return r;
|
2458
2460
|
}
|
2459
|
-
function
|
2461
|
+
function Gr(e) {
|
2460
2462
|
var t = e.hourCycle;
|
2461
2463
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2462
2464
|
e.hourCycles && // @ts-ignore
|
@@ -2478,20 +2480,20 @@ function Fr(e) {
|
|
2478
2480
|
var i = ne[n || ""] || ne[r || ""] || ne["".concat(r, "-001")] || ne["001"];
|
2479
2481
|
return i[0];
|
2480
2482
|
}
|
2481
|
-
var Ee,
|
2483
|
+
var Ee, Dr = new RegExp("^".concat(Et.source, "*")), Ur = new RegExp("".concat(Et.source, "*$"));
|
2482
2484
|
function g(e, t) {
|
2483
2485
|
return { start: e, end: t };
|
2484
2486
|
}
|
2485
|
-
var
|
2487
|
+
var kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, Vr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, zr = !!String.prototype.trimStart, Zr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, Qr = Wr ? Number.isSafeInteger : function(e) {
|
2486
2488
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2487
2489
|
}, Ae = !0;
|
2488
2490
|
try {
|
2489
|
-
var
|
2490
|
-
Ae = ((Ee =
|
2491
|
+
var qr = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2492
|
+
Ae = ((Ee = qr.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2491
2493
|
} catch {
|
2492
2494
|
Ae = !1;
|
2493
2495
|
}
|
2494
|
-
var
|
2496
|
+
var qe = kr ? (
|
2495
2497
|
// Native
|
2496
2498
|
function(t, r, n) {
|
2497
2499
|
return t.startsWith(r, n);
|
@@ -2501,7 +2503,7 @@ var We = Ur ? (
|
|
2501
2503
|
function(t, r, n) {
|
2502
2504
|
return t.slice(n, n + r.length) === r;
|
2503
2505
|
}
|
2504
|
-
), we =
|
2506
|
+
), we = jr ? String.fromCodePoint : (
|
2505
2507
|
// IE11
|
2506
2508
|
function() {
|
2507
2509
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2513,9 +2515,9 @@ var We = Ur ? (
|
|
2513
2515
|
}
|
2514
2516
|
return n;
|
2515
2517
|
}
|
2516
|
-
),
|
2518
|
+
), Je = (
|
2517
2519
|
// native
|
2518
|
-
|
2520
|
+
Vr ? Object.fromEntries : (
|
2519
2521
|
// Ponyfill
|
2520
2522
|
function(t) {
|
2521
2523
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2525,7 +2527,7 @@ var We = Ur ? (
|
|
2525
2527
|
return r;
|
2526
2528
|
}
|
2527
2529
|
)
|
2528
|
-
),
|
2530
|
+
), Pt = Xr ? (
|
2529
2531
|
// Native
|
2530
2532
|
function(t, r) {
|
2531
2533
|
return t.codePointAt(r);
|
@@ -2539,7 +2541,7 @@ var We = Ur ? (
|
|
2539
2541
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2540
2542
|
}
|
2541
2543
|
}
|
2542
|
-
),
|
2544
|
+
), Jr = zr ? (
|
2543
2545
|
// Native
|
2544
2546
|
function(t) {
|
2545
2547
|
return t.trimStart();
|
@@ -2547,9 +2549,9 @@ var We = Ur ? (
|
|
2547
2549
|
) : (
|
2548
2550
|
// Ponyfill
|
2549
2551
|
function(t) {
|
2550
|
-
return t.replace(
|
2552
|
+
return t.replace(Dr, "");
|
2551
2553
|
}
|
2552
|
-
),
|
2554
|
+
), Yr = Zr ? (
|
2553
2555
|
// Native
|
2554
2556
|
function(t) {
|
2555
2557
|
return t.trimEnd();
|
@@ -2557,32 +2559,32 @@ var We = Ur ? (
|
|
2557
2559
|
) : (
|
2558
2560
|
// Ponyfill
|
2559
2561
|
function(t) {
|
2560
|
-
return t.replace(
|
2562
|
+
return t.replace(Ur, "");
|
2561
2563
|
}
|
2562
2564
|
);
|
2563
|
-
function
|
2565
|
+
function Nt(e, t) {
|
2564
2566
|
return new RegExp(e, t);
|
2565
2567
|
}
|
2566
2568
|
var Oe;
|
2567
2569
|
if (Ae) {
|
2568
|
-
var
|
2570
|
+
var Ye = Nt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2569
2571
|
Oe = function(t, r) {
|
2570
2572
|
var n;
|
2571
|
-
|
2572
|
-
var i =
|
2573
|
+
Ye.lastIndex = r;
|
2574
|
+
var i = Ye.exec(t);
|
2573
2575
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2574
2576
|
};
|
2575
2577
|
} else
|
2576
2578
|
Oe = function(t, r) {
|
2577
2579
|
for (var n = []; ; ) {
|
2578
|
-
var i =
|
2579
|
-
if (i === void 0 ||
|
2580
|
+
var i = Pt(t, r);
|
2581
|
+
if (i === void 0 || Bt(i) || rn(i))
|
2580
2582
|
break;
|
2581
2583
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2582
2584
|
}
|
2583
2585
|
return we.apply(void 0, n);
|
2584
2586
|
};
|
2585
|
-
var
|
2587
|
+
var Kr = (
|
2586
2588
|
/** @class */
|
2587
2589
|
function() {
|
2588
2590
|
function e(t, r) {
|
@@ -2613,7 +2615,7 @@ var Yr = (
|
|
2613
2615
|
if (n)
|
2614
2616
|
break;
|
2615
2617
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
2616
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2618
|
+
} else if (o === 60 && !this.ignoreTag && Me(this.peek() || 0)) {
|
2617
2619
|
var u = this.parseTag(t, r);
|
2618
2620
|
if (u.err)
|
2619
2621
|
return u;
|
@@ -2646,7 +2648,7 @@ var Yr = (
|
|
2646
2648
|
return o;
|
2647
2649
|
var u = o.val, s = this.clonePosition();
|
2648
2650
|
if (this.bumpIf("</")) {
|
2649
|
-
if (this.isEOF() || !
|
2651
|
+
if (this.isEOF() || !Me(this.char()))
|
2650
2652
|
return this.error(p.INVALID_TAG, g(s, this.clonePosition()));
|
2651
2653
|
var l = this.clonePosition(), a = this.parseTagName();
|
2652
2654
|
return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -2664,7 +2666,7 @@ var Yr = (
|
|
2664
2666
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
2665
2667
|
}, e.prototype.parseTagName = function() {
|
2666
2668
|
var t = this.offset();
|
2667
|
-
for (this.bump(); !this.isEOF() &&
|
2669
|
+
for (this.bump(); !this.isEOF() && tn(this.char()); )
|
2668
2670
|
this.bump();
|
2669
2671
|
return this.message.slice(t, this.offset());
|
2670
2672
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2693,7 +2695,7 @@ var Yr = (
|
|
2693
2695
|
};
|
2694
2696
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2695
2697
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2696
|
-
!
|
2698
|
+
!en(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2697
2699
|
}, e.prototype.tryParseQuote = function(t) {
|
2698
2700
|
if (this.isEOF() || this.char() !== 39)
|
2699
2701
|
return null;
|
@@ -2777,40 +2779,40 @@ var Yr = (
|
|
2777
2779
|
var a = null;
|
2778
2780
|
if (this.bumpIf(",")) {
|
2779
2781
|
this.bumpSpace();
|
2780
|
-
var h = this.clonePosition(),
|
2781
|
-
if (
|
2782
|
-
return
|
2783
|
-
var
|
2784
|
-
if (
|
2782
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2783
|
+
if (c.err)
|
2784
|
+
return c;
|
2785
|
+
var f = Yr(c.val);
|
2786
|
+
if (f.length === 0)
|
2785
2787
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
2786
2788
|
var b = g(h, this.clonePosition());
|
2787
|
-
a = { style:
|
2789
|
+
a = { style: f, styleLocation: b };
|
2788
2790
|
}
|
2789
2791
|
var y = this.tryParseArgumentClose(i);
|
2790
2792
|
if (y.err)
|
2791
2793
|
return y;
|
2792
2794
|
var m = g(i, this.clonePosition());
|
2793
|
-
if (a &&
|
2794
|
-
var E =
|
2795
|
+
if (a && qe(a?.style, "::", 0)) {
|
2796
|
+
var E = Jr(a.style.slice(2));
|
2795
2797
|
if (s === "number") {
|
2796
|
-
var
|
2797
|
-
return
|
2798
|
-
val: { type: v.number, value: n, location: m, style:
|
2798
|
+
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
2799
|
+
return c.err ? c : {
|
2800
|
+
val: { type: v.number, value: n, location: m, style: c.val },
|
2799
2801
|
err: null
|
2800
2802
|
};
|
2801
2803
|
} else {
|
2802
2804
|
if (E.length === 0)
|
2803
2805
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
|
2804
2806
|
var T = E;
|
2805
|
-
this.locale && (T =
|
2806
|
-
var
|
2807
|
+
this.locale && (T = Fr(E, this.locale));
|
2808
|
+
var f = {
|
2807
2809
|
type: j.dateTime,
|
2808
2810
|
pattern: T,
|
2809
2811
|
location: a.styleLocation,
|
2810
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2812
|
+
parsedOptions: this.shouldParseSkeletons ? Or(T) : {}
|
2811
2813
|
}, A = s === "date" ? v.date : v.time;
|
2812
2814
|
return {
|
2813
|
-
val: { type: A, value: n, location: m, style:
|
2815
|
+
val: { type: A, value: n, location: m, style: f },
|
2814
2816
|
err: null
|
2815
2817
|
};
|
2816
2818
|
}
|
@@ -2837,10 +2839,10 @@ var Yr = (
|
|
2837
2839
|
if (!this.bumpIf(":"))
|
2838
2840
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
2839
2841
|
this.bumpSpace();
|
2840
|
-
var
|
2841
|
-
if (
|
2842
|
-
return
|
2843
|
-
this.bumpSpace(), B = this.parseIdentifierIfPossible(), N =
|
2842
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2843
|
+
if (c.err)
|
2844
|
+
return c;
|
2845
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), N = c.val;
|
2844
2846
|
}
|
2845
2847
|
var w = this.tryParsePluralOrSelectOptions(t, s, r, B);
|
2846
2848
|
if (w.err)
|
@@ -2853,7 +2855,7 @@ var Yr = (
|
|
2853
2855
|
val: {
|
2854
2856
|
type: v.select,
|
2855
2857
|
value: n,
|
2856
|
-
options:
|
2858
|
+
options: Je(w.val),
|
2857
2859
|
location: R
|
2858
2860
|
},
|
2859
2861
|
err: null
|
@@ -2861,7 +2863,7 @@ var Yr = (
|
|
2861
2863
|
val: {
|
2862
2864
|
type: v.plural,
|
2863
2865
|
value: n,
|
2864
|
-
options:
|
2866
|
+
options: Je(w.val),
|
2865
2867
|
offset: N,
|
2866
2868
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
2867
2869
|
location: R
|
@@ -2921,19 +2923,19 @@ var Yr = (
|
|
2921
2923
|
type: j.number,
|
2922
2924
|
tokens: n,
|
2923
2925
|
location: r,
|
2924
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2926
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(n) : {}
|
2925
2927
|
},
|
2926
2928
|
err: null
|
2927
2929
|
};
|
2928
2930
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2929
2931
|
for (var o, u = !1, s = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
2930
2932
|
if (a.length === 0) {
|
2931
|
-
var
|
2933
|
+
var c = this.clonePosition();
|
2932
2934
|
if (r !== "select" && this.bumpIf("=")) {
|
2933
|
-
var
|
2934
|
-
if (
|
2935
|
-
return
|
2936
|
-
h = g(
|
2935
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2936
|
+
if (f.err)
|
2937
|
+
return f;
|
2938
|
+
h = g(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
2937
2939
|
} else
|
2938
2940
|
break;
|
2939
2941
|
}
|
@@ -2969,7 +2971,7 @@ var Yr = (
|
|
2969
2971
|
break;
|
2970
2972
|
}
|
2971
2973
|
var l = g(i, this.clonePosition());
|
2972
|
-
return o ? (u *= n,
|
2974
|
+
return o ? (u *= n, Qr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
2973
2975
|
}, e.prototype.offset = function() {
|
2974
2976
|
return this.position.offset;
|
2975
2977
|
}, e.prototype.isEOF = function() {
|
@@ -2984,7 +2986,7 @@ var Yr = (
|
|
2984
2986
|
var t = this.position.offset;
|
2985
2987
|
if (t >= this.message.length)
|
2986
2988
|
throw Error("out of bound");
|
2987
|
-
var r =
|
2989
|
+
var r = Pt(this.message, t);
|
2988
2990
|
if (r === void 0)
|
2989
2991
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2990
2992
|
return r;
|
@@ -3003,7 +3005,7 @@ var Yr = (
|
|
3003
3005
|
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);
|
3004
3006
|
}
|
3005
3007
|
}, e.prototype.bumpIf = function(t) {
|
3006
|
-
if (
|
3008
|
+
if (qe(this.message, t, this.offset())) {
|
3007
3009
|
for (var r = 0; r < t.length; r++)
|
3008
3010
|
this.bump();
|
3009
3011
|
return !0;
|
@@ -3025,7 +3027,7 @@ var Yr = (
|
|
3025
3027
|
break;
|
3026
3028
|
}
|
3027
3029
|
}, e.prototype.bumpSpace = function() {
|
3028
|
-
for (; !this.isEOF() &&
|
3030
|
+
for (; !this.isEOF() && Bt(this.char()); )
|
3029
3031
|
this.bump();
|
3030
3032
|
}, e.prototype.peek = function() {
|
3031
3033
|
if (this.isEOF())
|
@@ -3035,47 +3037,47 @@ var Yr = (
|
|
3035
3037
|
}, e;
|
3036
3038
|
}()
|
3037
3039
|
);
|
3038
|
-
function
|
3040
|
+
function Me(e) {
|
3039
3041
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3040
3042
|
}
|
3041
|
-
function Kr(e) {
|
3042
|
-
return Ie(e) || e === 47;
|
3043
|
-
}
|
3044
3043
|
function en(e) {
|
3044
|
+
return Me(e) || e === 47;
|
3045
|
+
}
|
3046
|
+
function tn(e) {
|
3045
3047
|
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;
|
3046
3048
|
}
|
3047
|
-
function
|
3049
|
+
function Bt(e) {
|
3048
3050
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3049
3051
|
}
|
3050
|
-
function
|
3052
|
+
function rn(e) {
|
3051
3053
|
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;
|
3052
3054
|
}
|
3053
|
-
function
|
3055
|
+
function Ie(e) {
|
3054
3056
|
e.forEach(function(t) {
|
3055
|
-
if (delete t.location,
|
3057
|
+
if (delete t.location, bt(t) || xt(t))
|
3056
3058
|
for (var r in t.options)
|
3057
|
-
delete t.options[r].location,
|
3059
|
+
delete t.options[r].location, Ie(t.options[r].value);
|
3058
3060
|
else
|
3059
|
-
|
3061
|
+
pt(t) && vt(t.style) || (gt(t) || dt(t)) && Se(t.style) ? delete t.style.location : yt(t) && Ie(t.children);
|
3060
3062
|
});
|
3061
3063
|
}
|
3062
|
-
function
|
3064
|
+
function nn(e, t) {
|
3063
3065
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3064
|
-
var r = new
|
3066
|
+
var r = new Kr(e, t).parse();
|
3065
3067
|
if (r.err) {
|
3066
3068
|
var n = SyntaxError(p[r.err.kind]);
|
3067
3069
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3068
3070
|
}
|
3069
|
-
return t?.captureLocation ||
|
3071
|
+
return t?.captureLocation || Ie(r.val), r.val;
|
3070
3072
|
}
|
3071
3073
|
var V;
|
3072
3074
|
(function(e) {
|
3073
3075
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3074
3076
|
})(V || (V = {}));
|
3075
|
-
var
|
3077
|
+
var fe = (
|
3076
3078
|
/** @class */
|
3077
3079
|
function(e) {
|
3078
|
-
|
3080
|
+
ce(t, e);
|
3079
3081
|
function t(r, n, i) {
|
3080
3082
|
var o = e.call(this, r) || this;
|
3081
3083
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3084,48 +3086,48 @@ var ce = (
|
|
3084
3086
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3085
3087
|
}, t;
|
3086
3088
|
}(Error)
|
3087
|
-
),
|
3089
|
+
), Ke = (
|
3088
3090
|
/** @class */
|
3089
3091
|
function(e) {
|
3090
|
-
|
3092
|
+
ce(t, e);
|
3091
3093
|
function t(r, n, i, o) {
|
3092
3094
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
3093
3095
|
}
|
3094
3096
|
return t;
|
3095
|
-
}(
|
3096
|
-
),
|
3097
|
+
}(fe)
|
3098
|
+
), on = (
|
3097
3099
|
/** @class */
|
3098
3100
|
function(e) {
|
3099
|
-
|
3101
|
+
ce(t, e);
|
3100
3102
|
function t(r, n, i) {
|
3101
3103
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
3102
3104
|
}
|
3103
3105
|
return t;
|
3104
|
-
}(
|
3105
|
-
),
|
3106
|
+
}(fe)
|
3107
|
+
), an = (
|
3106
3108
|
/** @class */
|
3107
3109
|
function(e) {
|
3108
|
-
|
3110
|
+
ce(t, e);
|
3109
3111
|
function t(r, n) {
|
3110
3112
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
3111
3113
|
}
|
3112
3114
|
return t;
|
3113
|
-
}(
|
3115
|
+
}(fe)
|
3114
3116
|
), H;
|
3115
3117
|
(function(e) {
|
3116
3118
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3117
3119
|
})(H || (H = {}));
|
3118
|
-
function
|
3120
|
+
function sn(e) {
|
3119
3121
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3120
3122
|
var n = t[t.length - 1];
|
3121
3123
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3122
3124
|
}, []);
|
3123
3125
|
}
|
3124
|
-
function
|
3126
|
+
function un(e) {
|
3125
3127
|
return typeof e == "function";
|
3126
3128
|
}
|
3127
3129
|
function ae(e, t, r, n, i, o, u) {
|
3128
|
-
if (e.length === 1 &&
|
3130
|
+
if (e.length === 1 && ze(e[0]))
|
3129
3131
|
return [
|
3130
3132
|
{
|
3131
3133
|
type: H.literal,
|
@@ -3134,59 +3136,59 @@ function ae(e, t, r, n, i, o, u) {
|
|
3134
3136
|
];
|
3135
3137
|
for (var s = [], l = 0, a = e; l < a.length; l++) {
|
3136
3138
|
var h = a[l];
|
3137
|
-
if (
|
3139
|
+
if (ze(h)) {
|
3138
3140
|
s.push({
|
3139
3141
|
type: H.literal,
|
3140
3142
|
value: h.value
|
3141
3143
|
});
|
3142
3144
|
continue;
|
3143
3145
|
}
|
3144
|
-
if (
|
3146
|
+
if (Ar(h)) {
|
3145
3147
|
typeof o == "number" && s.push({
|
3146
3148
|
type: H.literal,
|
3147
3149
|
value: r.getNumberFormat(t).format(o)
|
3148
3150
|
});
|
3149
3151
|
continue;
|
3150
3152
|
}
|
3151
|
-
var
|
3152
|
-
if (!(i &&
|
3153
|
-
throw new
|
3154
|
-
var
|
3155
|
-
if (
|
3156
|
-
(!
|
3157
|
-
type: typeof
|
3158
|
-
value:
|
3153
|
+
var c = h.value;
|
3154
|
+
if (!(i && c in i))
|
3155
|
+
throw new an(c, u);
|
3156
|
+
var f = i[c];
|
3157
|
+
if (Sr(h)) {
|
3158
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
3159
|
+
type: typeof f == "string" ? H.literal : H.object,
|
3160
|
+
value: f
|
3159
3161
|
});
|
3160
3162
|
continue;
|
3161
3163
|
}
|
3162
|
-
if (
|
3164
|
+
if (gt(h)) {
|
3163
3165
|
var b = typeof h.style == "string" ? n.date[h.style] : Se(h.style) ? h.style.parsedOptions : void 0;
|
3164
3166
|
s.push({
|
3165
3167
|
type: H.literal,
|
3166
|
-
value: r.getDateTimeFormat(t, b).format(
|
3168
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
3167
3169
|
});
|
3168
3170
|
continue;
|
3169
3171
|
}
|
3170
|
-
if (
|
3172
|
+
if (dt(h)) {
|
3171
3173
|
var b = typeof h.style == "string" ? n.time[h.style] : Se(h.style) ? h.style.parsedOptions : n.time.medium;
|
3172
3174
|
s.push({
|
3173
3175
|
type: H.literal,
|
3174
|
-
value: r.getDateTimeFormat(t, b).format(
|
3176
|
+
value: r.getDateTimeFormat(t, b).format(f)
|
3175
3177
|
});
|
3176
3178
|
continue;
|
3177
3179
|
}
|
3178
|
-
if (
|
3179
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
3180
|
-
b && b.scale && (
|
3180
|
+
if (pt(h)) {
|
3181
|
+
var b = typeof h.style == "string" ? n.number[h.style] : vt(h.style) ? h.style.parsedOptions : void 0;
|
3182
|
+
b && b.scale && (f = f * (b.scale || 1)), s.push({
|
3181
3183
|
type: H.literal,
|
3182
|
-
value: r.getNumberFormat(t, b).format(
|
3184
|
+
value: r.getNumberFormat(t, b).format(f)
|
3183
3185
|
});
|
3184
3186
|
continue;
|
3185
3187
|
}
|
3186
|
-
if (
|
3188
|
+
if (yt(h)) {
|
3187
3189
|
var y = h.children, m = h.value, E = i[m];
|
3188
|
-
if (!
|
3189
|
-
throw new
|
3190
|
+
if (!un(E))
|
3191
|
+
throw new on(m, "function", u);
|
3190
3192
|
var T = ae(y, t, r, n, i, o), A = E(T.map(function(N) {
|
3191
3193
|
return N.value;
|
3192
3194
|
}));
|
@@ -3197,39 +3199,39 @@ function ae(e, t, r, n, i, o, u) {
|
|
3197
3199
|
};
|
3198
3200
|
}));
|
3199
3201
|
}
|
3200
|
-
if (
|
3201
|
-
var P = h.options[
|
3202
|
+
if (bt(h)) {
|
3203
|
+
var P = h.options[f] || h.options.other;
|
3202
3204
|
if (!P)
|
3203
|
-
throw new
|
3205
|
+
throw new Ke(h.value, f, Object.keys(h.options), u);
|
3204
3206
|
s.push.apply(s, ae(P.value, t, r, n, i));
|
3205
3207
|
continue;
|
3206
3208
|
}
|
3207
|
-
if (
|
3208
|
-
var P = h.options["=".concat(
|
3209
|
+
if (xt(h)) {
|
3210
|
+
var P = h.options["=".concat(f)];
|
3209
3211
|
if (!P) {
|
3210
3212
|
if (!Intl.PluralRules)
|
3211
|
-
throw new
|
3213
|
+
throw new fe(`Intl.PluralRules is not available in this environment.
|
3212
3214
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3213
3215
|
`, V.MISSING_INTL_API, u);
|
3214
|
-
var B = r.getPluralRules(t, { type: h.pluralType }).select(
|
3216
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
3215
3217
|
P = h.options[B] || h.options.other;
|
3216
3218
|
}
|
3217
3219
|
if (!P)
|
3218
|
-
throw new
|
3219
|
-
s.push.apply(s, ae(P.value, t, r, n, i,
|
3220
|
+
throw new Ke(h.value, f, Object.keys(h.options), u);
|
3221
|
+
s.push.apply(s, ae(P.value, t, r, n, i, f - (h.offset || 0)));
|
3220
3222
|
continue;
|
3221
3223
|
}
|
3222
3224
|
}
|
3223
|
-
return
|
3225
|
+
return sn(s);
|
3224
3226
|
}
|
3225
|
-
function
|
3227
|
+
function hn(e, t) {
|
3226
3228
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3227
3229
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3228
3230
|
}, {})) : e;
|
3229
3231
|
}
|
3230
|
-
function
|
3232
|
+
function ln(e, t) {
|
3231
3233
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3232
|
-
return r[n] =
|
3234
|
+
return r[n] = hn(e[n], t[n]), r;
|
3233
3235
|
}, d({}, e)) : e;
|
3234
3236
|
}
|
3235
3237
|
function _e(e) {
|
@@ -3246,7 +3248,7 @@ function _e(e) {
|
|
3246
3248
|
}
|
3247
3249
|
};
|
3248
3250
|
}
|
3249
|
-
function
|
3251
|
+
function cn(e) {
|
3250
3252
|
return e === void 0 && (e = {
|
3251
3253
|
number: {},
|
3252
3254
|
dateTime: {},
|
@@ -3292,8 +3294,8 @@ var fn = (
|
|
3292
3294
|
var a = o.formatToParts(l);
|
3293
3295
|
if (a.length === 1)
|
3294
3296
|
return a[0].value;
|
3295
|
-
var h = a.reduce(function(
|
3296
|
-
return !
|
3297
|
+
var h = a.reduce(function(c, f) {
|
3298
|
+
return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3297
3299
|
}, []);
|
3298
3300
|
return h.length <= 1 ? h[0] || "" : h;
|
3299
3301
|
}, this.formatToParts = function(l) {
|
@@ -3310,13 +3312,13 @@ var fn = (
|
|
3310
3312
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3311
3313
|
var u = i || {};
|
3312
3314
|
u.formatters;
|
3313
|
-
var s =
|
3315
|
+
var s = Er(u, ["formatters"]);
|
3314
3316
|
this.ast = e.__parse(t, d(d({}, s), { locale: this.resolvedLocale }));
|
3315
3317
|
} else
|
3316
3318
|
this.ast = t;
|
3317
3319
|
if (!Array.isArray(this.ast))
|
3318
3320
|
throw new TypeError("A message must be provided as a String or AST.");
|
3319
|
-
this.formats =
|
3321
|
+
this.formats = ln(e.formats, n), this.formatters = i && i.formatters || cn(this.formatterCache);
|
3320
3322
|
}
|
3321
3323
|
return Object.defineProperty(e, "defaultLocale", {
|
3322
3324
|
get: function() {
|
@@ -3329,7 +3331,7 @@ var fn = (
|
|
3329
3331
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3330
3332
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3331
3333
|
}
|
3332
|
-
}, e.__parse =
|
3334
|
+
}, e.__parse = nn, e.formats = {
|
3333
3335
|
number: {
|
3334
3336
|
integer: {
|
3335
3337
|
maximumFractionDigits: 0
|
@@ -3390,7 +3392,7 @@ var fn = (
|
|
3390
3392
|
}, e;
|
3391
3393
|
}()
|
3392
3394
|
);
|
3393
|
-
function
|
3395
|
+
function mn(e, t) {
|
3394
3396
|
if (t == null)
|
3395
3397
|
return;
|
3396
3398
|
if (t in e)
|
@@ -3411,60 +3413,60 @@ function cn(e, t) {
|
|
3411
3413
|
n = void 0;
|
3412
3414
|
return n;
|
3413
3415
|
}
|
3414
|
-
const
|
3416
|
+
const M = {}, pn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), St = (e, t) => {
|
3415
3417
|
if (t == null)
|
3416
3418
|
return;
|
3417
|
-
if (t in
|
3418
|
-
return
|
3419
|
+
if (t in M && e in M[t])
|
3420
|
+
return M[t][e];
|
3419
3421
|
const r = me(t);
|
3420
3422
|
for (let n = 0; n < r.length; n++) {
|
3421
|
-
const i = r[n], o =
|
3423
|
+
const i = r[n], o = dn(i, e);
|
3422
3424
|
if (o)
|
3423
|
-
return
|
3425
|
+
return pn(e, t, o);
|
3424
3426
|
}
|
3425
3427
|
};
|
3426
|
-
let
|
3428
|
+
let De;
|
3427
3429
|
const re = le({});
|
3428
|
-
function
|
3429
|
-
return
|
3430
|
+
function gn(e) {
|
3431
|
+
return De[e] || null;
|
3430
3432
|
}
|
3431
|
-
function
|
3432
|
-
return e in
|
3433
|
+
function At(e) {
|
3434
|
+
return e in De;
|
3433
3435
|
}
|
3434
|
-
function
|
3435
|
-
if (!
|
3436
|
+
function dn(e, t) {
|
3437
|
+
if (!At(e))
|
3436
3438
|
return null;
|
3437
|
-
const r =
|
3438
|
-
return
|
3439
|
+
const r = gn(e);
|
3440
|
+
return mn(r, t);
|
3439
3441
|
}
|
3440
|
-
function
|
3442
|
+
function bn(e) {
|
3441
3443
|
if (e == null)
|
3442
3444
|
return;
|
3443
3445
|
const t = me(e);
|
3444
3446
|
for (let r = 0; r < t.length; r++) {
|
3445
3447
|
const n = t[r];
|
3446
|
-
if (
|
3448
|
+
if (At(n))
|
3447
3449
|
return n;
|
3448
3450
|
}
|
3449
3451
|
}
|
3450
|
-
function
|
3451
|
-
delete
|
3452
|
+
function wt(e, ...t) {
|
3453
|
+
delete M[e], re.update((r) => (r[e] = vr.all([r[e] || {}, ...t]), r));
|
3452
3454
|
}
|
3453
3455
|
z(
|
3454
3456
|
[re],
|
3455
3457
|
([e]) => Object.keys(e)
|
3456
3458
|
);
|
3457
|
-
re.subscribe((e) =>
|
3459
|
+
re.subscribe((e) => De = e);
|
3458
3460
|
const se = {};
|
3459
|
-
function
|
3461
|
+
function xn(e, t) {
|
3460
3462
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3461
3463
|
}
|
3462
|
-
function
|
3464
|
+
function Ot(e) {
|
3463
3465
|
return se[e];
|
3464
3466
|
}
|
3465
|
-
function
|
3467
|
+
function yn(e) {
|
3466
3468
|
return me(e).map((t) => {
|
3467
|
-
const r =
|
3469
|
+
const r = Ot(t);
|
3468
3470
|
return [t, r ? [...r] : []];
|
3469
3471
|
}).filter(([, t]) => t.length > 0);
|
3470
3472
|
}
|
@@ -3472,31 +3474,31 @@ function Le(e) {
|
|
3472
3474
|
return e == null ? !1 : me(e).some(
|
3473
3475
|
(t) => {
|
3474
3476
|
var r;
|
3475
|
-
return (r =
|
3477
|
+
return (r = Ot(t)) == null ? void 0 : r.size;
|
3476
3478
|
}
|
3477
3479
|
);
|
3478
3480
|
}
|
3479
|
-
function
|
3481
|
+
function vn(e, t) {
|
3480
3482
|
return Promise.all(
|
3481
|
-
t.map((n) => (
|
3482
|
-
).then((n) =>
|
3483
|
+
t.map((n) => (xn(e, n), n().then((i) => i.default || i)))
|
3484
|
+
).then((n) => wt(e, ...n));
|
3483
3485
|
}
|
3484
3486
|
const q = {};
|
3485
|
-
function
|
3487
|
+
function Mt(e) {
|
3486
3488
|
if (!Le(e))
|
3487
3489
|
return e in q ? q[e] : Promise.resolve();
|
3488
|
-
const t =
|
3490
|
+
const t = yn(e);
|
3489
3491
|
return q[e] = Promise.all(
|
3490
3492
|
t.map(
|
3491
|
-
([r, n]) =>
|
3493
|
+
([r, n]) => vn(r, n)
|
3492
3494
|
)
|
3493
3495
|
).then(() => {
|
3494
3496
|
if (Le(e))
|
3495
|
-
return
|
3497
|
+
return Mt(e);
|
3496
3498
|
delete q[e];
|
3497
3499
|
}), q[e];
|
3498
3500
|
}
|
3499
|
-
const
|
3501
|
+
const En = {
|
3500
3502
|
number: {
|
3501
3503
|
scientific: { notation: "scientific" },
|
3502
3504
|
engineering: { notation: "engineering" },
|
@@ -3525,34 +3527,34 @@ const vn = {
|
|
3525
3527
|
timeZoneName: "short"
|
3526
3528
|
}
|
3527
3529
|
}
|
3528
|
-
},
|
3530
|
+
}, _n = {
|
3529
3531
|
fallbackLocale: null,
|
3530
3532
|
loadingDelay: 200,
|
3531
|
-
formats:
|
3533
|
+
formats: En,
|
3532
3534
|
warnOnMissingMessages: !0,
|
3533
3535
|
handleMissingMessage: void 0,
|
3534
3536
|
ignoreTag: !0
|
3535
|
-
},
|
3537
|
+
}, Hn = _n;
|
3536
3538
|
function X() {
|
3537
|
-
return
|
3539
|
+
return Hn;
|
3538
3540
|
}
|
3539
3541
|
const He = le(!1);
|
3540
|
-
var
|
3542
|
+
var Tn = Object.defineProperty, Pn = Object.defineProperties, Nn = Object.getOwnPropertyDescriptors, et = Object.getOwnPropertySymbols, Bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, tt = (e, t, r) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, An = (e, t) => {
|
3541
3543
|
for (var r in t || (t = {}))
|
3542
|
-
|
3543
|
-
if (
|
3544
|
-
for (var r of
|
3545
|
-
|
3544
|
+
Bn.call(t, r) && tt(e, r, t[r]);
|
3545
|
+
if (et)
|
3546
|
+
for (var r of et(t))
|
3547
|
+
Sn.call(t, r) && tt(e, r, t[r]);
|
3546
3548
|
return e;
|
3547
|
-
},
|
3549
|
+
}, wn = (e, t) => Pn(e, Nn(t));
|
3548
3550
|
let Ce;
|
3549
3551
|
const ue = le(null);
|
3550
|
-
function
|
3552
|
+
function rt(e) {
|
3551
3553
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3552
3554
|
}
|
3553
3555
|
function me(e, t = X().fallbackLocale) {
|
3554
|
-
const r =
|
3555
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3556
|
+
const r = rt(e);
|
3557
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...rt(t)])] : r;
|
3556
3558
|
}
|
3557
3559
|
function $() {
|
3558
3560
|
return Ce ?? void 0;
|
@@ -3560,22 +3562,22 @@ function $() {
|
|
3560
3562
|
ue.subscribe((e) => {
|
3561
3563
|
Ce = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3562
3564
|
});
|
3563
|
-
const
|
3564
|
-
if (e &&
|
3565
|
+
const On = (e) => {
|
3566
|
+
if (e && bn(e) && Le(e)) {
|
3565
3567
|
const { loadingDelay: t } = X();
|
3566
3568
|
let r;
|
3567
3569
|
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
3568
3570
|
() => He.set(!0),
|
3569
3571
|
t
|
3570
|
-
) : He.set(!0),
|
3572
|
+
) : He.set(!0), Mt(e).then(() => {
|
3571
3573
|
ue.set(e);
|
3572
3574
|
}).finally(() => {
|
3573
3575
|
clearTimeout(r), He.set(!1);
|
3574
3576
|
});
|
3575
3577
|
}
|
3576
3578
|
return ue.set(e);
|
3577
|
-
}, Z = An(
|
3578
|
-
set:
|
3579
|
+
}, Z = wn(An({}, ue), {
|
3580
|
+
set: On
|
3579
3581
|
}), pe = (e) => {
|
3580
3582
|
const t = /* @__PURE__ */ Object.create(null);
|
3581
3583
|
return (n) => {
|
@@ -3583,20 +3585,20 @@ const wn = (e) => {
|
|
3583
3585
|
return i in t ? t[i] : t[i] = e(n);
|
3584
3586
|
};
|
3585
3587
|
};
|
3586
|
-
var
|
3588
|
+
var Mn = Object.defineProperty, he = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Lt = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t) => {
|
3587
3589
|
for (var r in t || (t = {}))
|
3588
|
-
|
3590
|
+
It.call(t, r) && nt(e, r, t[r]);
|
3589
3591
|
if (he)
|
3590
3592
|
for (var r of he(t))
|
3591
|
-
|
3593
|
+
Lt.call(t, r) && nt(e, r, t[r]);
|
3592
3594
|
return e;
|
3593
3595
|
}, W = (e, t) => {
|
3594
3596
|
var r = {};
|
3595
3597
|
for (var n in e)
|
3596
|
-
|
3598
|
+
It.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3597
3599
|
if (e != null && he)
|
3598
3600
|
for (var n of he(e))
|
3599
|
-
t.indexOf(n) < 0 &&
|
3601
|
+
t.indexOf(n) < 0 && Lt.call(e, n) && (r[n] = e[n]);
|
3600
3602
|
return r;
|
3601
3603
|
};
|
3602
3604
|
const ee = (e, t) => {
|
@@ -3611,14 +3613,14 @@ const ee = (e, t) => {
|
|
3611
3613
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3612
3614
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
3613
3615
|
}
|
3614
|
-
),
|
3616
|
+
), Ln = pe(
|
3615
3617
|
(e) => {
|
3616
3618
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3617
3619
|
if (r == null)
|
3618
3620
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3619
3621
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
3620
3622
|
}
|
3621
|
-
),
|
3623
|
+
), Cn = pe(
|
3622
3624
|
(e) => {
|
3623
3625
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3624
3626
|
if (r == null)
|
@@ -3627,33 +3629,33 @@ const ee = (e, t) => {
|
|
3627
3629
|
);
|
3628
3630
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
3629
3631
|
}
|
3630
|
-
),
|
3632
|
+
), $n = (e = {}) => {
|
3631
3633
|
var t = e, {
|
3632
3634
|
locale: r = $()
|
3633
3635
|
} = t, n = W(t, [
|
3634
3636
|
"locale"
|
3635
3637
|
]);
|
3636
|
-
return In(
|
3637
|
-
},
|
3638
|
+
return In(Ue({ locale: r }, n));
|
3639
|
+
}, Rn = (e = {}) => {
|
3638
3640
|
var t = e, {
|
3639
3641
|
locale: r = $()
|
3640
3642
|
} = t, n = W(t, [
|
3641
3643
|
"locale"
|
3642
3644
|
]);
|
3643
|
-
return
|
3644
|
-
},
|
3645
|
+
return Ln(Ue({ locale: r }, n));
|
3646
|
+
}, Fn = (e = {}) => {
|
3645
3647
|
var t = e, {
|
3646
3648
|
locale: r = $()
|
3647
3649
|
} = t, n = W(t, [
|
3648
3650
|
"locale"
|
3649
3651
|
]);
|
3650
|
-
return
|
3651
|
-
},
|
3652
|
+
return Cn(Ue({ locale: r }, n));
|
3653
|
+
}, Gn = pe(
|
3652
3654
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3653
3655
|
(e, t = $()) => new fn(e, t, X().formats, {
|
3654
3656
|
ignoreTag: X().ignoreTag
|
3655
3657
|
})
|
3656
|
-
),
|
3658
|
+
), Dn = (e, t = {}) => {
|
3657
3659
|
var r, n, i, o;
|
3658
3660
|
let u = t;
|
3659
3661
|
typeof e == "object" && (u = e, e = u.id);
|
@@ -3666,7 +3668,7 @@ const ee = (e, t) => {
|
|
3666
3668
|
throw new Error(
|
3667
3669
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3668
3670
|
);
|
3669
|
-
let h =
|
3671
|
+
let h = St(e, l);
|
3670
3672
|
if (!h)
|
3671
3673
|
h = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
3672
3674
|
else if (typeof h != "string")
|
@@ -3675,28 +3677,28 @@ const ee = (e, t) => {
|
|
3675
3677
|
), h;
|
3676
3678
|
if (!s)
|
3677
3679
|
return h;
|
3678
|
-
let
|
3680
|
+
let c = h;
|
3679
3681
|
try {
|
3680
|
-
|
3681
|
-
} catch (
|
3682
|
-
|
3682
|
+
c = Gn(h, l).format(s);
|
3683
|
+
} catch (f) {
|
3684
|
+
f instanceof Error && console.warn(
|
3683
3685
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
3684
|
-
|
3686
|
+
f.message
|
3685
3687
|
);
|
3686
3688
|
}
|
3687
|
-
return
|
3688
|
-
},
|
3689
|
-
z([Z], () => Dn);
|
3689
|
+
return c;
|
3690
|
+
}, Un = (e, t) => Fn(t).format(e), kn = (e, t) => Rn(t).format(e), jn = (e, t) => $n(t).format(e), Vn = (e, t = $()) => St(e, t), Xn = z([Z, re], () => Dn);
|
3690
3691
|
z([Z], () => Un);
|
3691
3692
|
z([Z], () => kn);
|
3692
|
-
z([Z
|
3693
|
-
|
3694
|
-
|
3693
|
+
z([Z], () => jn);
|
3694
|
+
z([Z, re], () => Vn);
|
3695
|
+
function it(e, t) {
|
3696
|
+
wt(e, t);
|
3695
3697
|
}
|
3696
|
-
function
|
3698
|
+
function zn(e) {
|
3697
3699
|
Z.set(e);
|
3698
3700
|
}
|
3699
|
-
const
|
3701
|
+
const ot = {
|
3700
3702
|
en: {
|
3701
3703
|
pageNotFound: "Page not found",
|
3702
3704
|
pageNotFoundMessage: "The page you were looking for could not be found. Please go back to our Homepage.",
|
@@ -3788,13 +3790,13 @@ const nt = {
|
|
3788
3790
|
home: "Go to homepage"
|
3789
3791
|
}
|
3790
3792
|
};
|
3791
|
-
function
|
3793
|
+
function Zn(e, t) {
|
3792
3794
|
if (e) {
|
3793
3795
|
const r = document.createElement("style");
|
3794
3796
|
r.innerHTML = t, e.appendChild(r);
|
3795
3797
|
}
|
3796
3798
|
}
|
3797
|
-
function
|
3799
|
+
function Wn(e, t) {
|
3798
3800
|
const r = new URL(t);
|
3799
3801
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
3800
3802
|
const i = document.createElement("style");
|
@@ -3803,7 +3805,7 @@ function Zn(e, t) {
|
|
3803
3805
|
console.error("There was an error while trying to load client styling from URL", n);
|
3804
3806
|
});
|
3805
3807
|
}
|
3806
|
-
function
|
3808
|
+
function Qn(e, t, r) {
|
3807
3809
|
if (window.emMessageBus) {
|
3808
3810
|
const n = document.createElement("style");
|
3809
3811
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -3811,11 +3813,11 @@ function Wn(e, t, r) {
|
|
3811
3813
|
});
|
3812
3814
|
}
|
3813
3815
|
}
|
3814
|
-
function Qn(e) {
|
3815
|
-
Ct(e, "svelte-fokx9n", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:50px 0;width:100%;text-align:center}.NotFoundPage{display:flex;flex-direction:column;margin:auto;gap:40px;align-items:center;max-width:800px;padding:50px}.NotFoundPage svg{fill:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C))}.PageTitle{color:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));font-weight:500;font-size:28px}.PageContent{color:#D1D1D1;font-size:18px;line-height:24px}.ErrorPageTitle{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:500;font-size:28px}.ErrorPageContent{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:18px;line-height:24px}.ButtonDefaultSmall{background:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border-radius:5px;width:30%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}@media only screen and (max-width: 475px){.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:20px 0;width:100%;text-align:center}.NotFoundPage{text-align:center;width:100%}.PageTitle{font-size:22px}.ButtonDefaultSmall{width:80%;height:50px;font-size:14px;grid-template-columns:1fr}.ErrorPageContent{font-size:16px;line-height:18px}.ErrorPageTitle{font-size:18px}.PageContent{font-size:16px;line-height:18px}}");
|
3816
|
-
}
|
3817
3816
|
function qn(e) {
|
3818
|
-
|
3817
|
+
Rt(e, "svelte-fokx9n", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:50px 0;width:100%;text-align:center}.NotFoundPage{display:flex;flex-direction:column;margin:auto;gap:40px;align-items:center;max-width:800px;padding:50px}.NotFoundPage svg{fill:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C))}.PageTitle{color:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));font-weight:500;font-size:28px}.PageContent{color:#D1D1D1;font-size:18px;line-height:24px}.ErrorPageTitle{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:500;font-size:28px}.ErrorPageContent{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:18px;line-height:24px}.ButtonDefaultSmall{background:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border-radius:5px;width:30%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}@media only screen and (max-width: 475px){.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:20px 0;width:100%;text-align:center}.NotFoundPage{text-align:center;width:100%}.PageTitle{font-size:22px}.ButtonDefaultSmall{width:80%;height:50px;font-size:14px;grid-template-columns:1fr}.ErrorPageContent{font-size:16px;line-height:18px}.ErrorPageTitle{font-size:18px}.PageContent{font-size:16px;line-height:18px}}");
|
3818
|
+
}
|
3819
|
+
function Jn(e) {
|
3820
|
+
let t, r, n, i, o, u, s, l, a, h, c, f, b = (
|
3819
3821
|
/*$_*/
|
3820
3822
|
e[1]("pageNotFound") + ""
|
3821
3823
|
), y, m, E, T = (
|
@@ -3824,59 +3826,59 @@ function qn(e) {
|
|
3824
3826
|
), A, P, B, N = (
|
3825
3827
|
/*$_*/
|
3826
3828
|
e[1]("home") + ""
|
3827
|
-
), w, R,
|
3829
|
+
), w, R, ke;
|
3828
3830
|
return {
|
3829
3831
|
c() {
|
3830
|
-
t = L("div"), r = L("div"), n = O("svg"), i = O("g"), o = O("path"), u = O("path"), s = O("path"), l = O("path"), a = O("path"), h = O("path"),
|
3832
|
+
t = L("div"), r = L("div"), n = O("svg"), i = O("g"), o = O("path"), u = O("path"), s = O("path"), l = O("path"), a = O("path"), h = O("path"), c = ge(), f = L("p"), y = ie(b), m = ge(), E = L("p"), A = ie(T), P = ge(), B = L("button"), w = ie(N), x(o, "class", "a"), x(o, "d", "M753.094,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,0,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.262,3.262,0,0,0-3.517,1.552l-14.483,26.9a3.305,3.305,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62H756.2Z"), x(o, "transform", "translate(-658.898 -446.452)"), x(u, "class", "a"), x(u, "d", "M508.259,555.422a11.346,11.346,0,0,0,11.379-11.379V522.319a11.379,11.379,0,1,0-22.757,0v21.725A11.346,11.346,0,0,0,508.259,555.422Zm-5.172-33.1a5.172,5.172,0,1,1,10.345,0v21.725a5.172,5.172,0,0,1-10.345,0Z"), x(u, "transform", "translate(-433.716 -446.252)"), x(s, "class", "a"), x(s, "d", "M237.474,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,1,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.2,3.2,0,0,0-3.517,1.552l-14.483,26.9a3.3,3.3,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62h-8.276Z"), x(s, "transform", "translate(-200.173 -446.452)"), x(l, "class", "a"), x(l, "d", "M22.819,139.685H126.266a13.422,13.422,0,0,0,13.449-13.449V22.789A13.422,13.422,0,0,0,126.266,9.34H22.819A13.422,13.422,0,0,0,9.37,22.789V126.236A13.422,13.422,0,0,0,22.819,139.685Zm-7.241-116.9a7.2,7.2,0,0,1,7.241-7.241H126.266a7.2,7.2,0,0,1,7.241,7.241V38.3H15.572Zm0,21.725H133.513v81.723a7.2,7.2,0,0,1-7.241,7.241H22.824a7.2,7.2,0,0,1-7.241-7.241Z"), x(a, "class", "a"), x(a, "d", "M147.866,140.62h-4.138a3.1,3.1,0,0,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), x(a, "transform", "translate(-116.772 -116.794)"), x(h, "class", "a"), x(h, "d", "M297.866,140.62h-4.138a3.1,3.1,0,1,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), x(h, "transform", "translate(-250.22 -116.794)"), x(i, "transform", "translate(-9.37 -9.34)"), x(n, "class", "svgColor"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "130.345"), x(n, "height", "130.345"), x(n, "viewBox", "0 0 130.345 130.345"), x(f, "class", "PageTitle"), x(E, "class", "PageContent"), x(B, "class", "ButtonDefaultSmall"), x(r, "class", "NotFoundPage"), x(t, "class", "PageWrapper");
|
3831
3833
|
},
|
3832
|
-
m(
|
3833
|
-
|
3834
|
+
m(I, Q) {
|
3835
|
+
ht(I, t, Q), _(t, r), _(r, n), _(n, i), _(i, o), _(i, u), _(i, s), _(i, l), _(i, a), _(i, h), _(r, c), _(r, f), _(f, y), _(r, m), _(r, E), _(E, A), _(r, P), _(r, B), _(B, w), e[9](t), R || (ke = Dt(
|
3834
3836
|
B,
|
3835
3837
|
"click",
|
3836
3838
|
/*click_handler*/
|
3837
3839
|
e[8]
|
3838
3840
|
), R = !0);
|
3839
3841
|
},
|
3840
|
-
p(
|
3842
|
+
p(I, [Q]) {
|
3841
3843
|
Q & /*$_*/
|
3842
3844
|
2 && b !== (b = /*$_*/
|
3843
|
-
|
3845
|
+
I[1]("pageNotFound") + "") && de(y, b), Q & /*$_*/
|
3844
3846
|
2 && T !== (T = /*$_*/
|
3845
|
-
|
3847
|
+
I[1]("pageNotFoundMessage") + "") && de(A, T), Q & /*$_*/
|
3846
3848
|
2 && N !== (N = /*$_*/
|
3847
|
-
|
3849
|
+
I[1]("home") + "") && de(w, N);
|
3848
3850
|
},
|
3849
3851
|
i: S,
|
3850
3852
|
o: S,
|
3851
|
-
d(
|
3852
|
-
|
3853
|
+
d(I) {
|
3854
|
+
I && Re(t), e[9](null), R = !1, ke();
|
3853
3855
|
}
|
3854
3856
|
};
|
3855
3857
|
}
|
3856
|
-
function
|
3858
|
+
function Yn(e, t, r) {
|
3857
3859
|
let n;
|
3858
|
-
|
3860
|
+
$t(e, Xn, (m) => r(1, n = m));
|
3859
3861
|
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: s = "" } = t, { mbsource: l } = t, a;
|
3860
3862
|
const h = () => {
|
3861
3863
|
fetch(s).then((E) => E.json()).then((E) => {
|
3862
3864
|
Object.keys(E).forEach((T) => {
|
3863
|
-
|
3865
|
+
it(T, E[T]);
|
3864
3866
|
});
|
3865
3867
|
}).catch((E) => {
|
3866
3868
|
console.log(E);
|
3867
3869
|
});
|
3868
3870
|
};
|
3869
|
-
Object.keys(
|
3870
|
-
|
3871
|
+
Object.keys(ot).forEach((m) => {
|
3872
|
+
it(m, ot[m]);
|
3871
3873
|
});
|
3872
|
-
const
|
3874
|
+
const c = () => {
|
3873
3875
|
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
3874
|
-
},
|
3875
|
-
|
3876
|
+
}, f = () => {
|
3877
|
+
zn(i);
|
3876
3878
|
};
|
3877
|
-
|
3879
|
+
Vt(() => () => {
|
3878
3880
|
});
|
3879
|
-
const b = () =>
|
3881
|
+
const b = () => c();
|
3880
3882
|
function y(m) {
|
3881
3883
|
Te[m ? "unshift" : "push"](() => {
|
3882
3884
|
a = m, r(0, a);
|
@@ -3886,15 +3888,15 @@ function Jn(e, t, r) {
|
|
3886
3888
|
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, o = m.clientstyling), "clientstylingurl" in m && r(5, u = m.clientstylingurl), "translationurl" in m && r(6, s = m.translationurl), "mbsource" in m && r(7, l = m.mbsource);
|
3887
3889
|
}, e.$$.update = () => {
|
3888
3890
|
e.$$.dirty & /*lang*/
|
3889
|
-
8 && i &&
|
3891
|
+
8 && i && f(), e.$$.dirty & /*translationurl*/
|
3890
3892
|
64 && s && h(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
3891
|
-
17 && o && a &&
|
3892
|
-
33 && u && a &&
|
3893
|
-
129 && l && a &&
|
3893
|
+
17 && o && a && Zn(a, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
3894
|
+
33 && u && a && Wn(a, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
3895
|
+
129 && l && a && Qn(a, `${l}.Style`);
|
3894
3896
|
}, [
|
3895
3897
|
a,
|
3896
3898
|
n,
|
3897
|
-
|
3899
|
+
c,
|
3898
3900
|
i,
|
3899
3901
|
o,
|
3900
3902
|
u,
|
@@ -3904,14 +3906,14 @@ function Jn(e, t, r) {
|
|
3904
3906
|
y
|
3905
3907
|
];
|
3906
3908
|
}
|
3907
|
-
class
|
3909
|
+
class Kn extends rr {
|
3908
3910
|
constructor(t) {
|
3909
|
-
super(),
|
3911
|
+
super(), er(
|
3910
3912
|
this,
|
3911
3913
|
t,
|
3914
|
+
Yn,
|
3912
3915
|
Jn,
|
3913
|
-
|
3914
|
-
ot,
|
3916
|
+
st,
|
3915
3917
|
{
|
3916
3918
|
lang: 3,
|
3917
3919
|
clientstyling: 4,
|
@@ -3919,7 +3921,7 @@ class Yn extends er {
|
|
3919
3921
|
translationurl: 6,
|
3920
3922
|
mbsource: 7
|
3921
3923
|
},
|
3922
|
-
|
3924
|
+
qn
|
3923
3925
|
);
|
3924
3926
|
}
|
3925
3927
|
get lang() {
|
@@ -3953,7 +3955,7 @@ class Yn extends er {
|
|
3953
3955
|
this.$$set({ mbsource: t }), C();
|
3954
3956
|
}
|
3955
3957
|
}
|
3956
|
-
|
3958
|
+
tr(Kn, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
3957
3959
|
export {
|
3958
|
-
|
3960
|
+
Kn as C
|
3959
3961
|
};
|