@everymatrix/casino-categories 1.61.1 → 1.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCategories-CU4Yi-LU.cjs +16 -0
- package/components/{CasinoCategories-C6gikUfx.js → CasinoCategories-DFHErasW.js} +525 -523
- package/components/{CasinoCategories-Du3Wk9xO.js → CasinoCategories-DwqwASFG.js} +379 -377
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b7bbd57e-6KaMTlNN.js +534 -0
- package/stencil/index-b7bbd57e-BSagye0B.js +550 -0
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +1 -0
- package/stencil/{ui-image-38c3c15f-ByZECnci.js → ui-image-38c3c15f-CumwWbNu.js} +1 -1
- package/stencil/{ui-image-38c3c15f-D_V48h1L.js → ui-image-38c3c15f-Dxl-aZb-.js} +1 -1
- package/stencil/{ui-image-38c3c15f-VguNkCIq.cjs → ui-image-38c3c15f-y5t5ZLG0.cjs} +1 -1
- package/stencil/{ui-image-BNrzgSpe.js → ui-image-BQa5UbqU.js} +2 -2
- package/stencil/{ui-image-CPH6BqjQ.js → ui-image-Bi4jDe3D.js} +2 -2
- package/stencil/{ui-image-CLghOqUz.cjs → ui-image-z441BZiX.cjs} +1 -1
- package/components/CasinoCategories-PxIDHmJF.cjs +0 -16
- package/stencil/index-b7bbd57e-BBUBsGhp.js +0 -550
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +0 -1
- package/stencil/index-b7bbd57e-wJC_uAuk.js +0 -534
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var He = (e, t, r) => t in e ?
|
|
1
|
+
var tr = Object.defineProperty, rr = Object.defineProperties;
|
|
2
|
+
var nr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ir.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
sr.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, et = (e, t) => rr(e, nr(t));
|
|
13
13
|
var N = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var tt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
i(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (h) => {
|
|
22
22
|
try {
|
|
23
23
|
u(r.throw(h));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
i(a);
|
|
26
26
|
}
|
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(
|
|
27
|
+
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-image-Bi4jDe3D.js";
|
|
31
31
|
function L() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ct(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function rt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
39
|
function ue(e) {
|
|
40
|
-
e.forEach(
|
|
40
|
+
e.forEach(Ct);
|
|
41
41
|
}
|
|
42
42
|
function Xe(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ht(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
48
|
let fe;
|
|
49
49
|
function be(e, t) {
|
|
50
50
|
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function or(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function At(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,20 +61,20 @@ function Ct(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function ar(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(At(t, r));
|
|
66
66
|
}
|
|
67
67
|
function v(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const n =
|
|
70
|
+
function ur(e, t, r) {
|
|
71
|
+
const n = hr(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
73
|
const i = S("style");
|
|
74
|
-
i.id = t, i.textContent = r,
|
|
74
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function hr(e) {
|
|
78
78
|
if (!e)
|
|
79
79
|
return document;
|
|
80
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -84,7 +84,7 @@ function ar(e) {
|
|
|
84
84
|
t
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function lr(e, t) {
|
|
88
88
|
return v(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
@@ -97,7 +97,7 @@ function K(e, t, r) {
|
|
|
97
97
|
function k(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function nt(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
@@ -110,7 +110,7 @@ function G(e) {
|
|
|
110
110
|
function U() {
|
|
111
111
|
return G(" ");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Bt(e, t, r, n) {
|
|
114
114
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
115
115
|
}
|
|
116
116
|
function I(e, t, r) {
|
|
@@ -120,14 +120,14 @@ function R(e, t, r) {
|
|
|
120
120
|
const n = t.toLowerCase();
|
|
121
121
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : I(e, t, r);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function fr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
126
|
function F(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function cr(e) {
|
|
131
131
|
const t = {};
|
|
132
132
|
return e.childNodes.forEach(
|
|
133
133
|
/** @param {Element} node */
|
|
@@ -136,24 +136,24 @@ function lr(e) {
|
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
139
|
+
let se;
|
|
140
140
|
function ie(e) {
|
|
141
|
-
|
|
141
|
+
se = e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (!
|
|
143
|
+
function gr() {
|
|
144
|
+
if (!se)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return se;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function mr(e) {
|
|
149
|
+
gr().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
151
|
const W = [], Le = [];
|
|
152
152
|
let Z = [];
|
|
153
|
-
const
|
|
153
|
+
const it = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
154
154
|
let Ie = !1;
|
|
155
|
-
function
|
|
156
|
-
Ie || (Ie = !0,
|
|
155
|
+
function dr() {
|
|
156
|
+
Ie || (Ie = !0, pr.then(M));
|
|
157
157
|
}
|
|
158
158
|
function Me(e) {
|
|
159
159
|
Z.push(e);
|
|
@@ -163,12 +163,12 @@ let X = 0;
|
|
|
163
163
|
function M() {
|
|
164
164
|
if (X !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = se;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
169
|
for (; X < W.length; ) {
|
|
170
170
|
const t = W[X];
|
|
171
|
-
X++, ie(t),
|
|
171
|
+
X++, ie(t), br(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
174
|
throw W.length = 0, X = 0, t;
|
|
@@ -181,53 +181,53 @@ function M() {
|
|
|
181
181
|
}
|
|
182
182
|
Z.length = 0;
|
|
183
183
|
} while (W.length);
|
|
184
|
-
for (;
|
|
185
|
-
|
|
184
|
+
for (; it.length; )
|
|
185
|
+
it.pop()();
|
|
186
186
|
Ie = !1, Ae.clear(), ie(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function br(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
190
|
e.update(), ue(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
192
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function yr(e) {
|
|
196
196
|
const t = [], r = [];
|
|
197
197
|
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
e && e.i && (
|
|
199
|
+
const _r = /* @__PURE__ */ new Set();
|
|
200
|
+
function xr(e, t) {
|
|
201
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
203
|
function ce(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Er(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
208
|
n && n.m(t, r), Me(() => {
|
|
209
|
-
const
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
209
|
+
const s = e.$$.on_mount.map(Ct).filter(Xe);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
211
211
|
}), i.forEach(Me);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function vr(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (yr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
217
|
+
function Tr(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (W.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const h =
|
|
220
|
+
function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
221
|
+
const h = se;
|
|
222
222
|
ie(e);
|
|
223
223
|
const a = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
226
226
|
// state
|
|
227
|
-
props:
|
|
227
|
+
props: s,
|
|
228
228
|
update: L,
|
|
229
229
|
not_equal: i,
|
|
230
|
-
bound:
|
|
230
|
+
bound: rt(),
|
|
231
231
|
// lifecycle
|
|
232
232
|
on_mount: [],
|
|
233
233
|
on_destroy: [],
|
|
@@ -236,28 +236,28 @@ function vr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
236
236
|
after_update: [],
|
|
237
237
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
238
238
|
// everything else
|
|
239
|
-
callbacks:
|
|
239
|
+
callbacks: rt(),
|
|
240
240
|
dirty: u,
|
|
241
241
|
skip_bound: !1,
|
|
242
242
|
root: t.target || h.$$.root
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
o && o(a.root);
|
|
245
245
|
let l = !1;
|
|
246
246
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
247
247
|
const d = p.length ? p[0] : f;
|
|
248
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l &&
|
|
248
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Tr(e, c)), f;
|
|
249
249
|
}) : [], a.update(), l = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const c =
|
|
251
|
+
const c = fr(t.target);
|
|
252
252
|
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
253
253
|
} else
|
|
254
254
|
a.fragment && a.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), M();
|
|
256
256
|
}
|
|
257
257
|
ie(h);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let St;
|
|
260
|
+
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
@@ -294,42 +294,42 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
297
|
-
return
|
|
297
|
+
return tt(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
|
-
let t = function(
|
|
299
|
+
let t = function(s) {
|
|
300
300
|
return () => {
|
|
301
|
-
let
|
|
301
|
+
let o;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
|
|
304
|
+
o = S("slot"), s !== "default" && I(o, "name", s);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(a, l) {
|
|
311
|
-
K(a,
|
|
311
|
+
K(a, o, l);
|
|
312
312
|
},
|
|
313
313
|
d: function(a) {
|
|
314
|
-
a && k(
|
|
314
|
+
a && k(o);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const r = {}, n =
|
|
322
|
-
for (const
|
|
323
|
-
|
|
324
|
-
for (const
|
|
325
|
-
const
|
|
326
|
-
|
|
321
|
+
const r = {}, n = cr(this);
|
|
322
|
+
for (const s of this.$$s)
|
|
323
|
+
s in n && (r[s] = [t(s)]);
|
|
324
|
+
for (const s of this.attributes) {
|
|
325
|
+
const o = this.$$g_p(s.name);
|
|
326
|
+
o in this.$$d || (this.$$d[o] = me(o, s.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
|
-
for (const
|
|
329
|
-
!(
|
|
328
|
+
for (const s in this.$$p_d)
|
|
329
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props:
|
|
332
|
+
props: et(Ke({}, this.$$d), {
|
|
333
333
|
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -338,23 +338,23 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
338
338
|
});
|
|
339
339
|
const i = () => {
|
|
340
340
|
this.$$r = !0;
|
|
341
|
-
for (const
|
|
342
|
-
if (this.$$d[
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
this.$$d[
|
|
341
|
+
for (const s in this.$$p_d)
|
|
342
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
+
const o = me(
|
|
344
|
+
s,
|
|
345
|
+
this.$$d[s],
|
|
346
346
|
this.$$p_d,
|
|
347
347
|
"toAttribute"
|
|
348
348
|
);
|
|
349
|
-
|
|
349
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
350
350
|
}
|
|
351
351
|
this.$$r = !1;
|
|
352
352
|
};
|
|
353
353
|
this.$$c.$$.after_update.push(i), i();
|
|
354
|
-
for (const
|
|
355
|
-
for (const
|
|
356
|
-
const u = this.$$c.$on(
|
|
357
|
-
this.$$l_u.set(
|
|
354
|
+
for (const s in this.$$l)
|
|
355
|
+
for (const o of this.$$l[s]) {
|
|
356
|
+
const u = this.$$c.$on(s, o);
|
|
357
|
+
this.$$l_u.set(o, u);
|
|
358
358
|
}
|
|
359
359
|
this.$$l = {};
|
|
360
360
|
}
|
|
@@ -378,8 +378,8 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
function me(e, t, r, n) {
|
|
381
|
-
var
|
|
382
|
-
const i = (
|
|
381
|
+
var s;
|
|
382
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
384
384
|
return t;
|
|
385
385
|
if (n === "toAttribute")
|
|
@@ -407,8 +407,8 @@ function me(e, t, r, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let
|
|
410
|
+
function Hr(e, t, r, n, i, s) {
|
|
411
|
+
let o = class extends St {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
@@ -419,7 +419,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
421
|
return Object.keys(t).forEach((u) => {
|
|
422
|
-
Object.defineProperty(
|
|
422
|
+
Object.defineProperty(o.prototype, u, {
|
|
423
423
|
get() {
|
|
424
424
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
425
425
|
},
|
|
@@ -429,16 +429,16 @@ function Tr(e, t, r, n, i, o) {
|
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((u) => {
|
|
432
|
-
Object.defineProperty(
|
|
432
|
+
Object.defineProperty(o.prototype, u, {
|
|
433
433
|
get() {
|
|
434
434
|
var h;
|
|
435
435
|
return (h = this.$$c) == null ? void 0 : h[u];
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
|
-
|
|
439
|
+
o, o;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class Ar {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -459,7 +459,7 @@ class Cr {
|
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
vr(this, 1), this.$destroy = L;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -481,13 +481,13 @@ class Cr {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
487
|
+
const Br = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
489
489
|
const z = [];
|
|
490
|
-
function
|
|
490
|
+
function Sr(e, t) {
|
|
491
491
|
return {
|
|
492
492
|
subscribe: xe(e, t).subscribe
|
|
493
493
|
};
|
|
@@ -496,7 +496,7 @@ function xe(e, t = L) {
|
|
|
496
496
|
let r;
|
|
497
497
|
const n = /* @__PURE__ */ new Set();
|
|
498
498
|
function i(u) {
|
|
499
|
-
if (
|
|
499
|
+
if (Ht(e, u) && (e = u, r)) {
|
|
500
500
|
const h = !z.length;
|
|
501
501
|
for (const a of n)
|
|
502
502
|
a[1](), z.push(a, e);
|
|
@@ -507,23 +507,23 @@ function xe(e, t = L) {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function s(u) {
|
|
511
511
|
i(u(e));
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function o(u, h = L) {
|
|
514
514
|
const a = [u, h];
|
|
515
|
-
return n.add(a), n.size === 1 && (r = t(i,
|
|
515
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || L), u(e), () => {
|
|
516
516
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
return { set: i, update:
|
|
519
|
+
return { set: i, update: s, subscribe: o };
|
|
520
520
|
}
|
|
521
521
|
function ee(e, t, r) {
|
|
522
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
523
523
|
if (!i.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
525
|
-
const
|
|
526
|
-
return
|
|
525
|
+
const s = t.length < 2;
|
|
526
|
+
return Sr(r, (o, u) => {
|
|
527
527
|
let h = !1;
|
|
528
528
|
const a = [];
|
|
529
529
|
let l = 0, c = L;
|
|
@@ -531,10 +531,10 @@ function ee(e, t, r) {
|
|
|
531
531
|
if (l)
|
|
532
532
|
return;
|
|
533
533
|
c();
|
|
534
|
-
const d = t(n ? a[0] : a,
|
|
535
|
-
|
|
534
|
+
const d = t(n ? a[0] : a, o, u);
|
|
535
|
+
s ? o(d) : c = Xe(d) ? d : L;
|
|
536
536
|
}, p = i.map(
|
|
537
|
-
(d, g) =>
|
|
537
|
+
(d, g) => At(
|
|
538
538
|
d,
|
|
539
539
|
(E) => {
|
|
540
540
|
a[g] = E, l &= ~(1 << g), h && f();
|
|
@@ -549,70 +549,70 @@ function ee(e, t, r) {
|
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function wr(e) {
|
|
553
553
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
return
|
|
555
|
+
var Or = function(t) {
|
|
556
|
+
return Pr(t) && !Nr(t);
|
|
557
557
|
};
|
|
558
|
-
function
|
|
558
|
+
function Pr(e) {
|
|
559
559
|
return !!e && typeof e == "object";
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Nr(e) {
|
|
562
562
|
var t = Object.prototype.toString.call(e);
|
|
563
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
563
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
function
|
|
567
|
-
return e.$$typeof ===
|
|
565
|
+
var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
|
|
566
|
+
function Mr(e) {
|
|
567
|
+
return e.$$typeof === Ir;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function $r(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
572
|
+
function oe(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q($r(e), e, t) : e;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Rr(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(n) {
|
|
577
|
-
return
|
|
577
|
+
return oe(n, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Ur(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
582
|
return Q;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
584
|
return typeof r == "function" ? r : Q;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Gr(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
588
588
|
return Object.propertyIsEnumerable.call(e, t);
|
|
589
589
|
}) : [];
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return Object.keys(e).concat(
|
|
591
|
+
function st(e) {
|
|
592
|
+
return Object.keys(e).concat(Gr(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function wt(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
598
598
|
return !1;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function Dr(e, t) {
|
|
602
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Fr(e, t, r) {
|
|
605
605
|
var n = {};
|
|
606
|
-
return r.isMergeableObject(e) &&
|
|
607
|
-
n[i] =
|
|
608
|
-
}),
|
|
609
|
-
|
|
606
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
607
|
+
n[i] = oe(e[i], r);
|
|
608
|
+
}), st(t).forEach(function(i) {
|
|
609
|
+
Dr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
610
610
|
}), n;
|
|
611
611
|
}
|
|
612
612
|
function Q(e, t, r) {
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
614
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
615
|
-
return
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = oe;
|
|
614
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
615
|
+
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : oe(t, r);
|
|
616
616
|
}
|
|
617
617
|
Q.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
@@ -621,8 +621,8 @@ Q.all = function(t, r) {
|
|
|
621
621
|
return Q(n, i, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var
|
|
625
|
-
const
|
|
624
|
+
var jr = Q, kr = jr;
|
|
625
|
+
const Vr = /* @__PURE__ */ wr(kr);
|
|
626
626
|
/*! *****************************************************************************
|
|
627
627
|
Copyright (c) Microsoft Corporation.
|
|
628
628
|
|
|
@@ -658,13 +658,13 @@ var x = function() {
|
|
|
658
658
|
return x = Object.assign || function(t) {
|
|
659
659
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
660
660
|
r = arguments[n];
|
|
661
|
-
for (var
|
|
662
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
661
|
+
for (var s in r)
|
|
662
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
663
663
|
}
|
|
664
664
|
return t;
|
|
665
665
|
}, x.apply(this, arguments);
|
|
666
666
|
};
|
|
667
|
-
function
|
|
667
|
+
function Xr(e, t) {
|
|
668
668
|
var r = {};
|
|
669
669
|
for (var n in e)
|
|
670
670
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -675,58 +675,60 @@ function kr(e, t) {
|
|
|
675
675
|
}
|
|
676
676
|
function Be(e, t, r) {
|
|
677
677
|
if (arguments.length === 2)
|
|
678
|
-
for (var n = 0, i = t.length,
|
|
679
|
-
(
|
|
680
|
-
return e.concat(
|
|
678
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
679
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
680
|
+
return e.concat(s || t);
|
|
681
681
|
}
|
|
682
682
|
function Se(e, t) {
|
|
683
|
-
var r = t && t.cache ? t.cache :
|
|
683
|
+
var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Wr;
|
|
684
684
|
return i(e, {
|
|
685
685
|
cache: r,
|
|
686
686
|
serializer: n
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function zr(e) {
|
|
690
690
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
var i =
|
|
694
|
-
return typeof
|
|
692
|
+
function Ot(e, t, r, n) {
|
|
693
|
+
var i = zr(n) ? n : r(n), s = t.get(i);
|
|
694
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
698
|
-
return typeof
|
|
696
|
+
function Pt(e, t, r) {
|
|
697
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
698
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function ze(e, t, r, n, i) {
|
|
701
701
|
return r.bind(t, e, n, i);
|
|
702
702
|
}
|
|
703
|
-
function zr(e, t) {
|
|
704
|
-
var r = e.length === 1 ? Xr : St;
|
|
705
|
-
return wt(e, this, r, t.cache.create(), t.serializer);
|
|
706
|
-
}
|
|
707
703
|
function Wr(e, t) {
|
|
708
|
-
|
|
704
|
+
var r = e.length === 1 ? Ot : Pt;
|
|
705
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
706
|
+
}
|
|
707
|
+
function Zr(e, t) {
|
|
708
|
+
return ze(e, this, Pt, t.cache.create(), t.serializer);
|
|
709
|
+
}
|
|
710
|
+
function Qr(e, t) {
|
|
711
|
+
return ze(e, this, Ot, t.cache.create(), t.serializer);
|
|
709
712
|
}
|
|
710
|
-
var
|
|
713
|
+
var Jr = function() {
|
|
711
714
|
return JSON.stringify(arguments);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}()
|
|
724
|
-
), Jr = {
|
|
715
|
+
};
|
|
716
|
+
function We() {
|
|
717
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
718
|
+
}
|
|
719
|
+
We.prototype.get = function(e) {
|
|
720
|
+
return this.cache[e];
|
|
721
|
+
};
|
|
722
|
+
We.prototype.set = function(e, t) {
|
|
723
|
+
this.cache[e] = t;
|
|
724
|
+
};
|
|
725
|
+
var qr = {
|
|
725
726
|
create: function() {
|
|
726
|
-
return new
|
|
727
|
+
return new We();
|
|
727
728
|
}
|
|
728
729
|
}, we = {
|
|
729
|
-
variadic:
|
|
730
|
+
variadic: Zr,
|
|
731
|
+
monadic: Qr
|
|
730
732
|
}, y;
|
|
731
733
|
(function(e) {
|
|
732
734
|
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";
|
|
@@ -739,43 +741,43 @@ var J;
|
|
|
739
741
|
(function(e) {
|
|
740
742
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
741
743
|
})(J || (J = {}));
|
|
742
|
-
function
|
|
744
|
+
function ot(e) {
|
|
743
745
|
return e.type === T.literal;
|
|
744
746
|
}
|
|
745
|
-
function
|
|
747
|
+
function Yr(e) {
|
|
746
748
|
return e.type === T.argument;
|
|
747
749
|
}
|
|
748
|
-
function
|
|
750
|
+
function Nt(e) {
|
|
749
751
|
return e.type === T.number;
|
|
750
752
|
}
|
|
751
|
-
function
|
|
753
|
+
function Lt(e) {
|
|
752
754
|
return e.type === T.date;
|
|
753
755
|
}
|
|
754
|
-
function
|
|
756
|
+
function It(e) {
|
|
755
757
|
return e.type === T.time;
|
|
756
758
|
}
|
|
757
|
-
function
|
|
759
|
+
function Mt(e) {
|
|
758
760
|
return e.type === T.select;
|
|
759
761
|
}
|
|
760
|
-
function
|
|
762
|
+
function $t(e) {
|
|
761
763
|
return e.type === T.plural;
|
|
762
764
|
}
|
|
763
|
-
function
|
|
765
|
+
function Kr(e) {
|
|
764
766
|
return e.type === T.pound;
|
|
765
767
|
}
|
|
766
|
-
function
|
|
768
|
+
function Rt(e) {
|
|
767
769
|
return e.type === T.tag;
|
|
768
770
|
}
|
|
769
|
-
function
|
|
771
|
+
function Ut(e) {
|
|
770
772
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
771
773
|
}
|
|
772
774
|
function Re(e) {
|
|
773
775
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
774
776
|
}
|
|
775
|
-
var
|
|
776
|
-
function
|
|
777
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[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;
|
|
778
|
+
function tn(e) {
|
|
777
779
|
var t = {};
|
|
778
|
-
return e.replace(
|
|
780
|
+
return e.replace(en, function(r) {
|
|
779
781
|
var n = r.length;
|
|
780
782
|
switch (r[0]) {
|
|
781
783
|
case "G":
|
|
@@ -864,17 +866,17 @@ function en(e) {
|
|
|
864
866
|
return "";
|
|
865
867
|
}), t;
|
|
866
868
|
}
|
|
867
|
-
var
|
|
868
|
-
function
|
|
869
|
+
var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
870
|
+
function nn(e) {
|
|
869
871
|
if (e.length === 0)
|
|
870
872
|
throw new Error("Number skeleton cannot be empty");
|
|
871
|
-
for (var t = e.split(
|
|
873
|
+
for (var t = e.split(rn).filter(function(f) {
|
|
872
874
|
return f.length > 0;
|
|
873
875
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
874
|
-
var
|
|
875
|
-
if (
|
|
876
|
+
var s = i[n], o = s.split("/");
|
|
877
|
+
if (o.length === 0)
|
|
876
878
|
throw new Error("Invalid number skeleton");
|
|
877
|
-
for (var u =
|
|
879
|
+
for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
|
|
878
880
|
var c = l[a];
|
|
879
881
|
if (c.length === 0)
|
|
880
882
|
throw new Error("Invalid number skeleton");
|
|
@@ -883,17 +885,17 @@ function rn(e) {
|
|
|
883
885
|
}
|
|
884
886
|
return r;
|
|
885
887
|
}
|
|
886
|
-
function
|
|
888
|
+
function sn(e) {
|
|
887
889
|
return e.replace(/^(.*?)-/, "");
|
|
888
890
|
}
|
|
889
|
-
var
|
|
890
|
-
function
|
|
891
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
|
|
892
|
+
function ut(e) {
|
|
891
893
|
var t = {};
|
|
892
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
894
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
893
895
|
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)), "";
|
|
894
896
|
}), t;
|
|
895
897
|
}
|
|
896
|
-
function
|
|
898
|
+
function jt(e) {
|
|
897
899
|
switch (e) {
|
|
898
900
|
case "sign-auto":
|
|
899
901
|
return {
|
|
@@ -933,7 +935,7 @@ function Dt(e) {
|
|
|
933
935
|
};
|
|
934
936
|
}
|
|
935
937
|
}
|
|
936
|
-
function
|
|
938
|
+
function an(e) {
|
|
937
939
|
var t;
|
|
938
940
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
939
941
|
notation: "engineering"
|
|
@@ -941,17 +943,17 @@ function sn(e) {
|
|
|
941
943
|
notation: "scientific"
|
|
942
944
|
}, e = e.slice(1)), t) {
|
|
943
945
|
var r = e.slice(0, 2);
|
|
944
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
946
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
|
|
945
947
|
throw new Error("Malformed concise eng/scientific notation");
|
|
946
948
|
t.minimumIntegerDigits = e.length;
|
|
947
949
|
}
|
|
948
950
|
return t;
|
|
949
951
|
}
|
|
950
|
-
function
|
|
951
|
-
var t = {}, r =
|
|
952
|
+
function ht(e) {
|
|
953
|
+
var t = {}, r = jt(e);
|
|
952
954
|
return r || t;
|
|
953
955
|
}
|
|
954
|
-
function
|
|
956
|
+
function un(e) {
|
|
955
957
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
956
958
|
var i = n[r];
|
|
957
959
|
switch (i.stem) {
|
|
@@ -975,7 +977,7 @@ function an(e) {
|
|
|
975
977
|
continue;
|
|
976
978
|
case "measure-unit":
|
|
977
979
|
case "unit":
|
|
978
|
-
t.style = "unit", t.unit =
|
|
980
|
+
t.style = "unit", t.unit = sn(i.options[0]);
|
|
979
981
|
continue;
|
|
980
982
|
case "compact-short":
|
|
981
983
|
case "K":
|
|
@@ -987,12 +989,12 @@ function an(e) {
|
|
|
987
989
|
continue;
|
|
988
990
|
case "scientific":
|
|
989
991
|
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
990
|
-
return x(x({}, h),
|
|
992
|
+
return x(x({}, h), ht(a));
|
|
991
993
|
}, {}));
|
|
992
994
|
continue;
|
|
993
995
|
case "engineering":
|
|
994
996
|
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
995
|
-
return x(x({}, h),
|
|
997
|
+
return x(x({}, h), ht(a));
|
|
996
998
|
}, {}));
|
|
997
999
|
continue;
|
|
998
1000
|
case "notation-simple":
|
|
@@ -1050,27 +1052,27 @@ function an(e) {
|
|
|
1050
1052
|
});
|
|
1051
1053
|
continue;
|
|
1052
1054
|
}
|
|
1053
|
-
if (
|
|
1055
|
+
if (Ft.test(i.stem)) {
|
|
1054
1056
|
t.minimumIntegerDigits = i.stem.length;
|
|
1055
1057
|
continue;
|
|
1056
1058
|
}
|
|
1057
|
-
if (
|
|
1059
|
+
if (at.test(i.stem)) {
|
|
1058
1060
|
if (i.options.length > 1)
|
|
1059
1061
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1060
|
-
i.stem.replace(
|
|
1062
|
+
i.stem.replace(at, function(h, a, l, c, f, p) {
|
|
1061
1063
|
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1062
1064
|
});
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1065
|
+
var s = i.options[0];
|
|
1066
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ut(s)));
|
|
1065
1067
|
continue;
|
|
1066
1068
|
}
|
|
1067
|
-
if (
|
|
1068
|
-
t = x(x({}, t),
|
|
1069
|
+
if (Dt.test(i.stem)) {
|
|
1070
|
+
t = x(x({}, t), ut(i.stem));
|
|
1069
1071
|
continue;
|
|
1070
1072
|
}
|
|
1071
|
-
var
|
|
1072
|
-
|
|
1073
|
-
var u =
|
|
1073
|
+
var o = jt(i.stem);
|
|
1074
|
+
o && (t = x(x({}, t), o));
|
|
1075
|
+
var u = an(i.stem);
|
|
1074
1076
|
u && (t = x(x({}, t), u));
|
|
1075
1077
|
}
|
|
1076
1078
|
return t;
|
|
@@ -2490,23 +2492,23 @@ var ge = {
|
|
|
2490
2492
|
"h"
|
|
2491
2493
|
]
|
|
2492
2494
|
};
|
|
2493
|
-
function
|
|
2495
|
+
function hn(e, t) {
|
|
2494
2496
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2495
2497
|
var i = e.charAt(n);
|
|
2496
2498
|
if (i === "j") {
|
|
2497
|
-
for (var
|
|
2498
|
-
|
|
2499
|
-
var
|
|
2499
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2500
|
+
s++, n++;
|
|
2501
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = ln(t);
|
|
2500
2502
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2501
2503
|
r += h;
|
|
2502
|
-
for (;
|
|
2504
|
+
for (; o-- > 0; )
|
|
2503
2505
|
r = a + r;
|
|
2504
2506
|
} else
|
|
2505
2507
|
i === "J" ? r += "H" : r += i;
|
|
2506
2508
|
}
|
|
2507
2509
|
return r;
|
|
2508
2510
|
}
|
|
2509
|
-
function
|
|
2511
|
+
function ln(e) {
|
|
2510
2512
|
var t = e.hourCycle;
|
|
2511
2513
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2512
2514
|
e.hourCycles && // @ts-ignore
|
|
@@ -2528,20 +2530,20 @@ function hn(e) {
|
|
|
2528
2530
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2529
2531
|
return i[0];
|
|
2530
2532
|
}
|
|
2531
|
-
var Oe,
|
|
2533
|
+
var Oe, fn = new RegExp("^".concat(Gt.source, "*")), cn = new RegExp("".concat(Gt.source, "*$"));
|
|
2532
2534
|
function _(e, t) {
|
|
2533
2535
|
return { start: e, end: t };
|
|
2534
2536
|
}
|
|
2535
|
-
var
|
|
2537
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, pn = !!Object.fromEntries, dn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, xn = _n ? Number.isSafeInteger : function(e) {
|
|
2536
2538
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2537
2539
|
}, Ue = !0;
|
|
2538
2540
|
try {
|
|
2539
|
-
var
|
|
2540
|
-
Ue = ((Oe =
|
|
2541
|
+
var En = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2542
|
+
Ue = ((Oe = En.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2541
2543
|
} catch (e) {
|
|
2542
2544
|
Ue = !1;
|
|
2543
2545
|
}
|
|
2544
|
-
var
|
|
2546
|
+
var lt = gn ? (
|
|
2545
2547
|
// Native
|
|
2546
2548
|
function(t, r, n) {
|
|
2547
2549
|
return t.startsWith(r, n);
|
|
@@ -2551,31 +2553,31 @@ var ut = cn ? (
|
|
|
2551
2553
|
function(t, r, n) {
|
|
2552
2554
|
return t.slice(n, n + r.length) === r;
|
|
2553
2555
|
}
|
|
2554
|
-
), Ge =
|
|
2556
|
+
), Ge = mn ? String.fromCodePoint : (
|
|
2555
2557
|
// IE11
|
|
2556
2558
|
function() {
|
|
2557
2559
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2558
2560
|
t[r] = arguments[r];
|
|
2559
|
-
for (var n = "", i = t.length,
|
|
2560
|
-
if (
|
|
2561
|
-
throw RangeError(
|
|
2562
|
-
n +=
|
|
2561
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
2562
|
+
if (o = t[s++], o > 1114111)
|
|
2563
|
+
throw RangeError(o + " is not a valid code point");
|
|
2564
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2563
2565
|
}
|
|
2564
2566
|
return n;
|
|
2565
2567
|
}
|
|
2566
|
-
),
|
|
2568
|
+
), ft = (
|
|
2567
2569
|
// native
|
|
2568
|
-
|
|
2570
|
+
pn ? Object.fromEntries : (
|
|
2569
2571
|
// Ponyfill
|
|
2570
2572
|
function(t) {
|
|
2571
2573
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2572
|
-
var
|
|
2573
|
-
r[
|
|
2574
|
+
var s = i[n], o = s[0], u = s[1];
|
|
2575
|
+
r[o] = u;
|
|
2574
2576
|
}
|
|
2575
2577
|
return r;
|
|
2576
2578
|
}
|
|
2577
2579
|
)
|
|
2578
|
-
),
|
|
2580
|
+
), kt = dn ? (
|
|
2579
2581
|
// Native
|
|
2580
2582
|
function(t, r) {
|
|
2581
2583
|
return t.codePointAt(r);
|
|
@@ -2585,11 +2587,11 @@ var ut = cn ? (
|
|
|
2585
2587
|
function(t, r) {
|
|
2586
2588
|
var n = t.length;
|
|
2587
2589
|
if (!(r < 0 || r >= n)) {
|
|
2588
|
-
var i = t.charCodeAt(r),
|
|
2589
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2590
|
+
var i = t.charCodeAt(r), s;
|
|
2591
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2590
2592
|
}
|
|
2591
2593
|
}
|
|
2592
|
-
),
|
|
2594
|
+
), vn = bn ? (
|
|
2593
2595
|
// Native
|
|
2594
2596
|
function(t) {
|
|
2595
2597
|
return t.trimStart();
|
|
@@ -2597,9 +2599,9 @@ var ut = cn ? (
|
|
|
2597
2599
|
) : (
|
|
2598
2600
|
// Ponyfill
|
|
2599
2601
|
function(t) {
|
|
2600
|
-
return t.replace(
|
|
2602
|
+
return t.replace(fn, "");
|
|
2601
2603
|
}
|
|
2602
|
-
),
|
|
2604
|
+
), Tn = yn ? (
|
|
2603
2605
|
// Native
|
|
2604
2606
|
function(t) {
|
|
2605
2607
|
return t.trimEnd();
|
|
@@ -2607,32 +2609,32 @@ var ut = cn ? (
|
|
|
2607
2609
|
) : (
|
|
2608
2610
|
// Ponyfill
|
|
2609
2611
|
function(t) {
|
|
2610
|
-
return t.replace(
|
|
2612
|
+
return t.replace(cn, "");
|
|
2611
2613
|
}
|
|
2612
2614
|
);
|
|
2613
|
-
function
|
|
2615
|
+
function Vt(e, t) {
|
|
2614
2616
|
return new RegExp(e, t);
|
|
2615
2617
|
}
|
|
2616
2618
|
var De;
|
|
2617
2619
|
if (Ue) {
|
|
2618
|
-
var
|
|
2620
|
+
var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2619
2621
|
De = function(t, r) {
|
|
2620
2622
|
var n;
|
|
2621
|
-
|
|
2622
|
-
var i =
|
|
2623
|
+
ct.lastIndex = r;
|
|
2624
|
+
var i = ct.exec(t);
|
|
2623
2625
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2624
2626
|
};
|
|
2625
2627
|
} else
|
|
2626
2628
|
De = function(t, r) {
|
|
2627
2629
|
for (var n = []; ; ) {
|
|
2628
|
-
var i =
|
|
2629
|
-
if (i === void 0 ||
|
|
2630
|
+
var i = kt(t, r);
|
|
2631
|
+
if (i === void 0 || Xt(i) || Bn(i))
|
|
2630
2632
|
break;
|
|
2631
2633
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2632
2634
|
}
|
|
2633
2635
|
return Ge.apply(void 0, n);
|
|
2634
2636
|
};
|
|
2635
|
-
var
|
|
2637
|
+
var Cn = (
|
|
2636
2638
|
/** @class */
|
|
2637
2639
|
function() {
|
|
2638
2640
|
function e(t, r) {
|
|
@@ -2644,35 +2646,35 @@ var Tn = (
|
|
|
2644
2646
|
return this.parseMessage(0, "", !1);
|
|
2645
2647
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2646
2648
|
for (var i = []; !this.isEOF(); ) {
|
|
2647
|
-
var
|
|
2648
|
-
if (
|
|
2649
|
-
var
|
|
2650
|
-
if (
|
|
2651
|
-
return
|
|
2652
|
-
i.push(
|
|
2649
|
+
var s = this.char();
|
|
2650
|
+
if (s === 123) {
|
|
2651
|
+
var o = this.parseArgument(t, n);
|
|
2652
|
+
if (o.err)
|
|
2653
|
+
return o;
|
|
2654
|
+
i.push(o.val);
|
|
2653
2655
|
} else {
|
|
2654
|
-
if (
|
|
2656
|
+
if (s === 125 && t > 0)
|
|
2655
2657
|
break;
|
|
2656
|
-
if (
|
|
2658
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2657
2659
|
var u = this.clonePosition();
|
|
2658
2660
|
this.bump(), i.push({
|
|
2659
2661
|
type: T.pound,
|
|
2660
2662
|
location: _(u, this.clonePosition())
|
|
2661
2663
|
});
|
|
2662
|
-
} else if (
|
|
2664
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2663
2665
|
if (n)
|
|
2664
2666
|
break;
|
|
2665
2667
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2666
|
-
} else if (
|
|
2667
|
-
var
|
|
2668
|
-
if (
|
|
2669
|
-
return
|
|
2670
|
-
i.push(
|
|
2668
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2669
|
+
var o = this.parseTag(t, r);
|
|
2670
|
+
if (o.err)
|
|
2671
|
+
return o;
|
|
2672
|
+
i.push(o.val);
|
|
2671
2673
|
} else {
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2674
|
-
return
|
|
2675
|
-
i.push(
|
|
2674
|
+
var o = this.parseLiteral(t, r);
|
|
2675
|
+
if (o.err)
|
|
2676
|
+
return o;
|
|
2677
|
+
i.push(o.val);
|
|
2676
2678
|
}
|
|
2677
2679
|
}
|
|
2678
2680
|
}
|
|
@@ -2691,10 +2693,10 @@ var Tn = (
|
|
|
2691
2693
|
err: null
|
|
2692
2694
|
};
|
|
2693
2695
|
if (this.bumpIf(">")) {
|
|
2694
|
-
var
|
|
2695
|
-
if (
|
|
2696
|
-
return
|
|
2697
|
-
var
|
|
2696
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2697
|
+
if (s.err)
|
|
2698
|
+
return s;
|
|
2699
|
+
var o = s.val, u = this.clonePosition();
|
|
2698
2700
|
if (this.bumpIf("</")) {
|
|
2699
2701
|
if (this.isEOF() || !Fe(this.char()))
|
|
2700
2702
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
@@ -2703,7 +2705,7 @@ var Tn = (
|
|
|
2703
2705
|
val: {
|
|
2704
2706
|
type: T.tag,
|
|
2705
2707
|
value: i,
|
|
2706
|
-
children:
|
|
2708
|
+
children: o,
|
|
2707
2709
|
location: _(n, this.clonePosition())
|
|
2708
2710
|
},
|
|
2709
2711
|
err: null
|
|
@@ -2714,21 +2716,21 @@ var Tn = (
|
|
|
2714
2716
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2715
2717
|
}, e.prototype.parseTagName = function() {
|
|
2716
2718
|
var t = this.offset();
|
|
2717
|
-
for (this.bump(); !this.isEOF() &&
|
|
2719
|
+
for (this.bump(); !this.isEOF() && An(this.char()); )
|
|
2718
2720
|
this.bump();
|
|
2719
2721
|
return this.message.slice(t, this.offset());
|
|
2720
2722
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2721
2723
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2722
|
-
var
|
|
2723
|
-
if (o) {
|
|
2724
|
-
i += o;
|
|
2725
|
-
continue;
|
|
2726
|
-
}
|
|
2727
|
-
var s = this.tryParseUnquoted(t, r);
|
|
2724
|
+
var s = this.tryParseQuote(r);
|
|
2728
2725
|
if (s) {
|
|
2729
2726
|
i += s;
|
|
2730
2727
|
continue;
|
|
2731
2728
|
}
|
|
2729
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2730
|
+
if (o) {
|
|
2731
|
+
i += o;
|
|
2732
|
+
continue;
|
|
2733
|
+
}
|
|
2732
2734
|
var u = this.tryParseLeftAngleBracket();
|
|
2733
2735
|
if (u) {
|
|
2734
2736
|
i += u;
|
|
@@ -2743,7 +2745,7 @@ var Tn = (
|
|
|
2743
2745
|
};
|
|
2744
2746
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2745
2747
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2746
|
-
!
|
|
2748
|
+
!Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2747
2749
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2748
2750
|
if (this.isEOF() || this.char() !== 39)
|
|
2749
2751
|
return null;
|
|
@@ -2813,13 +2815,13 @@ var Tn = (
|
|
|
2813
2815
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2814
2816
|
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2815
2817
|
this.bumpTo(i);
|
|
2816
|
-
var
|
|
2817
|
-
return { value: n, location:
|
|
2818
|
+
var s = this.clonePosition(), o = _(t, s);
|
|
2819
|
+
return { value: n, location: o };
|
|
2818
2820
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2819
|
-
var
|
|
2821
|
+
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2820
2822
|
switch (u) {
|
|
2821
2823
|
case "":
|
|
2822
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, _(
|
|
2824
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
|
|
2823
2825
|
case "number":
|
|
2824
2826
|
case "date":
|
|
2825
2827
|
case "time": {
|
|
@@ -2830,7 +2832,7 @@ var Tn = (
|
|
|
2830
2832
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2831
2833
|
if (c.err)
|
|
2832
2834
|
return c;
|
|
2833
|
-
var f =
|
|
2835
|
+
var f = Tn(c.val);
|
|
2834
2836
|
if (f.length === 0)
|
|
2835
2837
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2836
2838
|
var p = _(l, this.clonePosition());
|
|
@@ -2840,8 +2842,8 @@ var Tn = (
|
|
|
2840
2842
|
if (d.err)
|
|
2841
2843
|
return d;
|
|
2842
2844
|
var g = _(i, this.clonePosition());
|
|
2843
|
-
if (a &&
|
|
2844
|
-
var E =
|
|
2845
|
+
if (a && lt(a == null ? void 0 : a.style, "::", 0)) {
|
|
2846
|
+
var E = vn(a.style.slice(2));
|
|
2845
2847
|
if (u === "number") {
|
|
2846
2848
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2847
2849
|
return c.err ? c : {
|
|
@@ -2852,12 +2854,12 @@ var Tn = (
|
|
|
2852
2854
|
if (E.length === 0)
|
|
2853
2855
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2854
2856
|
var m = E;
|
|
2855
|
-
this.locale && (m =
|
|
2857
|
+
this.locale && (m = hn(E, this.locale));
|
|
2856
2858
|
var f = {
|
|
2857
2859
|
type: J.dateTime,
|
|
2858
2860
|
pattern: m,
|
|
2859
2861
|
location: a.styleLocation,
|
|
2860
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2862
|
+
parsedOptions: this.shouldParseSkeletons ? tn(m) : {}
|
|
2861
2863
|
}, C = u === "date" ? T.date : T.time;
|
|
2862
2864
|
return {
|
|
2863
2865
|
val: { type: C, value: n, location: g, style: f },
|
|
@@ -2870,7 +2872,7 @@ var Tn = (
|
|
|
2870
2872
|
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2871
2873
|
value: n,
|
|
2872
2874
|
location: g,
|
|
2873
|
-
style: (
|
|
2875
|
+
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
2874
2876
|
},
|
|
2875
2877
|
err: null
|
|
2876
2878
|
};
|
|
@@ -2903,7 +2905,7 @@ var Tn = (
|
|
|
2903
2905
|
val: {
|
|
2904
2906
|
type: T.select,
|
|
2905
2907
|
value: n,
|
|
2906
|
-
options:
|
|
2908
|
+
options: ft(H.val),
|
|
2907
2909
|
location: P
|
|
2908
2910
|
},
|
|
2909
2911
|
err: null
|
|
@@ -2911,7 +2913,7 @@ var Tn = (
|
|
|
2911
2913
|
val: {
|
|
2912
2914
|
type: T.plural,
|
|
2913
2915
|
value: n,
|
|
2914
|
-
options:
|
|
2916
|
+
options: ft(H.val),
|
|
2915
2917
|
offset: B,
|
|
2916
2918
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2917
2919
|
location: P
|
|
@@ -2920,7 +2922,7 @@ var Tn = (
|
|
|
2920
2922
|
};
|
|
2921
2923
|
}
|
|
2922
2924
|
default:
|
|
2923
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, _(
|
|
2925
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
|
|
2924
2926
|
}
|
|
2925
2927
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2926
2928
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2962,7 +2964,7 @@ var Tn = (
|
|
|
2962
2964
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2963
2965
|
var n = [];
|
|
2964
2966
|
try {
|
|
2965
|
-
n =
|
|
2967
|
+
n = nn(t);
|
|
2966
2968
|
} catch (i) {
|
|
2967
2969
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2968
2970
|
}
|
|
@@ -2971,12 +2973,12 @@ var Tn = (
|
|
|
2971
2973
|
type: J.number,
|
|
2972
2974
|
tokens: n,
|
|
2973
2975
|
location: r,
|
|
2974
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2976
|
+
parsedOptions: this.shouldParseSkeletons ? un(n) : {}
|
|
2975
2977
|
},
|
|
2976
2978
|
err: null
|
|
2977
2979
|
};
|
|
2978
2980
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2979
|
-
for (var
|
|
2981
|
+
for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
|
2980
2982
|
if (a.length === 0) {
|
|
2981
2983
|
var c = this.clonePosition();
|
|
2982
2984
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -2989,7 +2991,7 @@ var Tn = (
|
|
|
2989
2991
|
}
|
|
2990
2992
|
if (h.has(a))
|
|
2991
2993
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2992
|
-
a === "other" && (
|
|
2994
|
+
a === "other" && (o = !0), this.bumpSpace();
|
|
2993
2995
|
var p = this.clonePosition();
|
|
2994
2996
|
if (!this.bumpIf("{"))
|
|
2995
2997
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -3005,21 +3007,21 @@ var Tn = (
|
|
|
3005
3007
|
value: d.val,
|
|
3006
3008
|
location: _(p, this.clonePosition())
|
|
3007
3009
|
}
|
|
3008
|
-
]), h.add(a), this.bumpSpace(),
|
|
3010
|
+
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
3009
3011
|
}
|
|
3010
|
-
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
3012
|
+
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3011
3013
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3012
3014
|
var n = 1, i = this.clonePosition();
|
|
3013
3015
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3014
|
-
for (var
|
|
3016
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3015
3017
|
var u = this.char();
|
|
3016
3018
|
if (u >= 48 && u <= 57)
|
|
3017
|
-
|
|
3019
|
+
s = !0, o = o * 10 + (u - 48), this.bump();
|
|
3018
3020
|
else
|
|
3019
3021
|
break;
|
|
3020
3022
|
}
|
|
3021
3023
|
var h = _(i, this.clonePosition());
|
|
3022
|
-
return
|
|
3024
|
+
return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3023
3025
|
}, e.prototype.offset = function() {
|
|
3024
3026
|
return this.position.offset;
|
|
3025
3027
|
}, e.prototype.isEOF = function() {
|
|
@@ -3034,7 +3036,7 @@ var Tn = (
|
|
|
3034
3036
|
var t = this.position.offset;
|
|
3035
3037
|
if (t >= this.message.length)
|
|
3036
3038
|
throw Error("out of bound");
|
|
3037
|
-
var r =
|
|
3039
|
+
var r = kt(this.message, t);
|
|
3038
3040
|
if (r === void 0)
|
|
3039
3041
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3040
3042
|
return r;
|
|
@@ -3053,7 +3055,7 @@ var Tn = (
|
|
|
3053
3055
|
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);
|
|
3054
3056
|
}
|
|
3055
3057
|
}, e.prototype.bumpIf = function(t) {
|
|
3056
|
-
if (
|
|
3058
|
+
if (lt(this.message, t, this.offset())) {
|
|
3057
3059
|
for (var r = 0; r < t.length; r++)
|
|
3058
3060
|
this.bump();
|
|
3059
3061
|
return !0;
|
|
@@ -3075,7 +3077,7 @@ var Tn = (
|
|
|
3075
3077
|
break;
|
|
3076
3078
|
}
|
|
3077
3079
|
}, e.prototype.bumpSpace = function() {
|
|
3078
|
-
for (; !this.isEOF() &&
|
|
3080
|
+
for (; !this.isEOF() && Xt(this.char()); )
|
|
3079
3081
|
this.bump();
|
|
3080
3082
|
}, e.prototype.peek = function() {
|
|
3081
3083
|
if (this.isEOF())
|
|
@@ -3088,30 +3090,30 @@ var Tn = (
|
|
|
3088
3090
|
function Fe(e) {
|
|
3089
3091
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3090
3092
|
}
|
|
3091
|
-
function
|
|
3093
|
+
function Hn(e) {
|
|
3092
3094
|
return Fe(e) || e === 47;
|
|
3093
3095
|
}
|
|
3094
|
-
function
|
|
3096
|
+
function An(e) {
|
|
3095
3097
|
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;
|
|
3096
3098
|
}
|
|
3097
|
-
function
|
|
3099
|
+
function Xt(e) {
|
|
3098
3100
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3099
3101
|
}
|
|
3100
|
-
function
|
|
3102
|
+
function Bn(e) {
|
|
3101
3103
|
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;
|
|
3102
3104
|
}
|
|
3103
3105
|
function je(e) {
|
|
3104
3106
|
e.forEach(function(t) {
|
|
3105
|
-
if (delete t.location,
|
|
3107
|
+
if (delete t.location, Mt(t) || $t(t))
|
|
3106
3108
|
for (var r in t.options)
|
|
3107
3109
|
delete t.options[r].location, je(t.options[r].value);
|
|
3108
3110
|
else
|
|
3109
|
-
|
|
3111
|
+
Nt(t) && Ut(t.style) || (Lt(t) || It(t)) && Re(t.style) ? delete t.style.location : Rt(t) && je(t.children);
|
|
3110
3112
|
});
|
|
3111
3113
|
}
|
|
3112
|
-
function
|
|
3114
|
+
function Sn(e, t) {
|
|
3113
3115
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3114
|
-
var r = new
|
|
3116
|
+
var r = new Cn(e, t).parse();
|
|
3115
3117
|
if (r.err) {
|
|
3116
3118
|
var n = SyntaxError(y[r.err.kind]);
|
|
3117
3119
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3127,23 +3129,23 @@ var ve = (
|
|
|
3127
3129
|
function(e) {
|
|
3128
3130
|
Ee(t, e);
|
|
3129
3131
|
function t(r, n, i) {
|
|
3130
|
-
var
|
|
3131
|
-
return
|
|
3132
|
+
var s = e.call(this, r) || this;
|
|
3133
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3132
3134
|
}
|
|
3133
3135
|
return t.prototype.toString = function() {
|
|
3134
3136
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3135
3137
|
}, t;
|
|
3136
3138
|
}(Error)
|
|
3137
|
-
),
|
|
3139
|
+
), gt = (
|
|
3138
3140
|
/** @class */
|
|
3139
3141
|
function(e) {
|
|
3140
3142
|
Ee(t, e);
|
|
3141
|
-
function t(r, n, i,
|
|
3142
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE,
|
|
3143
|
+
function t(r, n, i, s) {
|
|
3144
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3143
3145
|
}
|
|
3144
3146
|
return t;
|
|
3145
3147
|
}(ve)
|
|
3146
|
-
),
|
|
3148
|
+
), wn = (
|
|
3147
3149
|
/** @class */
|
|
3148
3150
|
function(e) {
|
|
3149
3151
|
Ee(t, e);
|
|
@@ -3152,7 +3154,7 @@ var ve = (
|
|
|
3152
3154
|
}
|
|
3153
3155
|
return t;
|
|
3154
3156
|
}(ve)
|
|
3155
|
-
),
|
|
3157
|
+
), On = (
|
|
3156
3158
|
/** @class */
|
|
3157
3159
|
function(e) {
|
|
3158
3160
|
Ee(t, e);
|
|
@@ -3165,17 +3167,17 @@ var ve = (
|
|
|
3165
3167
|
(function(e) {
|
|
3166
3168
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3167
3169
|
})(w || (w = {}));
|
|
3168
|
-
function
|
|
3170
|
+
function Pn(e) {
|
|
3169
3171
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3170
3172
|
var n = t[t.length - 1];
|
|
3171
3173
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3172
3174
|
}, []);
|
|
3173
3175
|
}
|
|
3174
|
-
function
|
|
3176
|
+
function Nn(e) {
|
|
3175
3177
|
return typeof e == "function";
|
|
3176
3178
|
}
|
|
3177
|
-
function pe(e, t, r, n, i,
|
|
3178
|
-
if (e.length === 1 &&
|
|
3179
|
+
function pe(e, t, r, n, i, s, o) {
|
|
3180
|
+
if (e.length === 1 && ot(e[0]))
|
|
3179
3181
|
return [
|
|
3180
3182
|
{
|
|
3181
3183
|
type: w.literal,
|
|
@@ -3184,32 +3186,32 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3184
3186
|
];
|
|
3185
3187
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3186
3188
|
var l = a[h];
|
|
3187
|
-
if (
|
|
3189
|
+
if (ot(l)) {
|
|
3188
3190
|
u.push({
|
|
3189
3191
|
type: w.literal,
|
|
3190
3192
|
value: l.value
|
|
3191
3193
|
});
|
|
3192
3194
|
continue;
|
|
3193
3195
|
}
|
|
3194
|
-
if (
|
|
3195
|
-
typeof
|
|
3196
|
+
if (Kr(l)) {
|
|
3197
|
+
typeof s == "number" && u.push({
|
|
3196
3198
|
type: w.literal,
|
|
3197
|
-
value: r.getNumberFormat(t).format(
|
|
3199
|
+
value: r.getNumberFormat(t).format(s)
|
|
3198
3200
|
});
|
|
3199
3201
|
continue;
|
|
3200
3202
|
}
|
|
3201
3203
|
var c = l.value;
|
|
3202
3204
|
if (!(i && c in i))
|
|
3203
|
-
throw new
|
|
3205
|
+
throw new On(c, o);
|
|
3204
3206
|
var f = i[c];
|
|
3205
|
-
if (
|
|
3207
|
+
if (Yr(l)) {
|
|
3206
3208
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3207
3209
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3208
3210
|
value: f
|
|
3209
3211
|
});
|
|
3210
3212
|
continue;
|
|
3211
3213
|
}
|
|
3212
|
-
if (
|
|
3214
|
+
if (Lt(l)) {
|
|
3213
3215
|
var p = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3214
3216
|
u.push({
|
|
3215
3217
|
type: w.literal,
|
|
@@ -3217,7 +3219,7 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3217
3219
|
});
|
|
3218
3220
|
continue;
|
|
3219
3221
|
}
|
|
3220
|
-
if (
|
|
3222
|
+
if (It(l)) {
|
|
3221
3223
|
var p = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3222
3224
|
u.push({
|
|
3223
3225
|
type: w.literal,
|
|
@@ -3225,19 +3227,19 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3225
3227
|
});
|
|
3226
3228
|
continue;
|
|
3227
3229
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3230
|
+
if (Nt(l)) {
|
|
3231
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3230
3232
|
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3231
3233
|
type: w.literal,
|
|
3232
3234
|
value: r.getNumberFormat(t, p).format(f)
|
|
3233
3235
|
});
|
|
3234
3236
|
continue;
|
|
3235
3237
|
}
|
|
3236
|
-
if (
|
|
3238
|
+
if (Rt(l)) {
|
|
3237
3239
|
var d = l.children, g = l.value, E = i[g];
|
|
3238
|
-
if (!
|
|
3239
|
-
throw new
|
|
3240
|
-
var m = pe(d, t, r, n, i,
|
|
3240
|
+
if (!Nn(E))
|
|
3241
|
+
throw new wn(g, "function", o);
|
|
3242
|
+
var m = pe(d, t, r, n, i, s), C = E(m.map(function(B) {
|
|
3241
3243
|
return B.value;
|
|
3242
3244
|
}));
|
|
3243
3245
|
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
@@ -3247,39 +3249,39 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3247
3249
|
};
|
|
3248
3250
|
}));
|
|
3249
3251
|
}
|
|
3250
|
-
if (
|
|
3252
|
+
if (Mt(l)) {
|
|
3251
3253
|
var A = l.options[f] || l.options.other;
|
|
3252
3254
|
if (!A)
|
|
3253
|
-
throw new
|
|
3255
|
+
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3254
3256
|
u.push.apply(u, pe(A.value, t, r, n, i));
|
|
3255
3257
|
continue;
|
|
3256
3258
|
}
|
|
3257
|
-
if (
|
|
3259
|
+
if ($t(l)) {
|
|
3258
3260
|
var A = l.options["=".concat(f)];
|
|
3259
3261
|
if (!A) {
|
|
3260
3262
|
if (!Intl.PluralRules)
|
|
3261
3263
|
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3262
3264
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3263
|
-
`, q.MISSING_INTL_API,
|
|
3265
|
+
`, q.MISSING_INTL_API, o);
|
|
3264
3266
|
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3265
3267
|
A = l.options[O] || l.options.other;
|
|
3266
3268
|
}
|
|
3267
3269
|
if (!A)
|
|
3268
|
-
throw new
|
|
3270
|
+
throw new gt(l.value, f, Object.keys(l.options), o);
|
|
3269
3271
|
u.push.apply(u, pe(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3270
3272
|
continue;
|
|
3271
3273
|
}
|
|
3272
3274
|
}
|
|
3273
|
-
return
|
|
3275
|
+
return Pn(u);
|
|
3274
3276
|
}
|
|
3275
|
-
function
|
|
3277
|
+
function Ln(e, t) {
|
|
3276
3278
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3277
3279
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3278
3280
|
}, {})) : e;
|
|
3279
3281
|
}
|
|
3280
|
-
function
|
|
3282
|
+
function In(e, t) {
|
|
3281
3283
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3282
|
-
return r[n] =
|
|
3284
|
+
return r[n] = Ln(e[n], t[n]), r;
|
|
3283
3285
|
}, x({}, e)) : e;
|
|
3284
3286
|
}
|
|
3285
3287
|
function Pe(e) {
|
|
@@ -3296,7 +3298,7 @@ function Pe(e) {
|
|
|
3296
3298
|
}
|
|
3297
3299
|
};
|
|
3298
3300
|
}
|
|
3299
|
-
function
|
|
3301
|
+
function Mn(e) {
|
|
3300
3302
|
return e === void 0 && (e = {
|
|
3301
3303
|
number: {},
|
|
3302
3304
|
dateTime: {},
|
|
@@ -3328,18 +3330,18 @@ function In(e) {
|
|
|
3328
3330
|
})
|
|
3329
3331
|
};
|
|
3330
3332
|
}
|
|
3331
|
-
var
|
|
3333
|
+
var $n = (
|
|
3332
3334
|
/** @class */
|
|
3333
3335
|
function() {
|
|
3334
3336
|
function e(t, r, n, i) {
|
|
3335
3337
|
r === void 0 && (r = e.defaultLocale);
|
|
3336
|
-
var
|
|
3338
|
+
var s = this;
|
|
3337
3339
|
if (this.formatterCache = {
|
|
3338
3340
|
number: {},
|
|
3339
3341
|
dateTime: {},
|
|
3340
3342
|
pluralRules: {}
|
|
3341
3343
|
}, this.format = function(h) {
|
|
3342
|
-
var a =
|
|
3344
|
+
var a = s.formatToParts(h);
|
|
3343
3345
|
if (a.length === 1)
|
|
3344
3346
|
return a[0].value;
|
|
3345
3347
|
var l = a.reduce(function(c, f) {
|
|
@@ -3347,26 +3349,26 @@ var Mn = (
|
|
|
3347
3349
|
}, []);
|
|
3348
3350
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3349
3351
|
}, this.formatToParts = function(h) {
|
|
3350
|
-
return pe(
|
|
3352
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3351
3353
|
}, this.resolvedOptions = function() {
|
|
3352
3354
|
var h;
|
|
3353
3355
|
return {
|
|
3354
|
-
locale: ((h =
|
|
3356
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3355
3357
|
};
|
|
3356
3358
|
}, this.getAst = function() {
|
|
3357
|
-
return
|
|
3359
|
+
return s.ast;
|
|
3358
3360
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3359
3361
|
if (this.message = t, !e.__parse)
|
|
3360
3362
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3361
|
-
var
|
|
3362
|
-
|
|
3363
|
-
var u =
|
|
3363
|
+
var o = i || {};
|
|
3364
|
+
o.formatters;
|
|
3365
|
+
var u = Xr(o, ["formatters"]);
|
|
3364
3366
|
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3365
3367
|
} else
|
|
3366
3368
|
this.ast = t;
|
|
3367
3369
|
if (!Array.isArray(this.ast))
|
|
3368
3370
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3369
|
-
this.formats =
|
|
3371
|
+
this.formats = In(e.formats, n), this.formatters = i && i.formatters || Mn(this.formatterCache);
|
|
3370
3372
|
}
|
|
3371
3373
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3372
3374
|
get: function() {
|
|
@@ -3379,7 +3381,7 @@ var Mn = (
|
|
|
3379
3381
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3380
3382
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3381
3383
|
}
|
|
3382
|
-
}, e.__parse =
|
|
3384
|
+
}, e.__parse = Sn, e.formats = {
|
|
3383
3385
|
number: {
|
|
3384
3386
|
integer: {
|
|
3385
3387
|
maximumFractionDigits: 0
|
|
@@ -3440,7 +3442,7 @@ var Mn = (
|
|
|
3440
3442
|
}, e;
|
|
3441
3443
|
}()
|
|
3442
3444
|
);
|
|
3443
|
-
function
|
|
3445
|
+
function Rn(e, t) {
|
|
3444
3446
|
if (t == null)
|
|
3445
3447
|
return;
|
|
3446
3448
|
if (t in e)
|
|
@@ -3450,9 +3452,9 @@ function $n(e, t) {
|
|
|
3450
3452
|
for (let i = 0; i < r.length; i++)
|
|
3451
3453
|
if (typeof n == "object") {
|
|
3452
3454
|
if (i > 0) {
|
|
3453
|
-
const
|
|
3454
|
-
if (
|
|
3455
|
-
n = n[
|
|
3455
|
+
const s = r.slice(i, r.length).join(".");
|
|
3456
|
+
if (s in n) {
|
|
3457
|
+
n = n[s];
|
|
3456
3458
|
break;
|
|
3457
3459
|
}
|
|
3458
3460
|
}
|
|
@@ -3461,60 +3463,60 @@ function $n(e, t) {
|
|
|
3461
3463
|
n = void 0;
|
|
3462
3464
|
return n;
|
|
3463
3465
|
}
|
|
3464
|
-
const D = {},
|
|
3466
|
+
const D = {}, Un = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), zt = (e, t) => {
|
|
3465
3467
|
if (t == null)
|
|
3466
3468
|
return;
|
|
3467
3469
|
if (t in D && e in D[t])
|
|
3468
3470
|
return D[t][e];
|
|
3469
3471
|
const r = Te(t);
|
|
3470
3472
|
for (let n = 0; n < r.length; n++) {
|
|
3471
|
-
const i = r[n],
|
|
3472
|
-
if (
|
|
3473
|
-
return
|
|
3473
|
+
const i = r[n], s = Dn(i, e);
|
|
3474
|
+
if (s)
|
|
3475
|
+
return Un(e, t, s);
|
|
3474
3476
|
}
|
|
3475
3477
|
};
|
|
3476
|
-
let
|
|
3478
|
+
let Ze;
|
|
3477
3479
|
const he = xe({});
|
|
3478
|
-
function
|
|
3479
|
-
return
|
|
3480
|
+
function Gn(e) {
|
|
3481
|
+
return Ze[e] || null;
|
|
3480
3482
|
}
|
|
3481
|
-
function
|
|
3482
|
-
return e in
|
|
3483
|
+
function Wt(e) {
|
|
3484
|
+
return e in Ze;
|
|
3483
3485
|
}
|
|
3484
|
-
function
|
|
3485
|
-
if (!
|
|
3486
|
+
function Dn(e, t) {
|
|
3487
|
+
if (!Wt(e))
|
|
3486
3488
|
return null;
|
|
3487
|
-
const r =
|
|
3488
|
-
return
|
|
3489
|
+
const r = Gn(e);
|
|
3490
|
+
return Rn(r, t);
|
|
3489
3491
|
}
|
|
3490
|
-
function
|
|
3492
|
+
function Fn(e) {
|
|
3491
3493
|
if (e == null)
|
|
3492
3494
|
return;
|
|
3493
3495
|
const t = Te(e);
|
|
3494
3496
|
for (let r = 0; r < t.length; r++) {
|
|
3495
3497
|
const n = t[r];
|
|
3496
|
-
if (
|
|
3498
|
+
if (Wt(n))
|
|
3497
3499
|
return n;
|
|
3498
3500
|
}
|
|
3499
3501
|
}
|
|
3500
|
-
function
|
|
3501
|
-
delete D[e], he.update((r) => (r[e] =
|
|
3502
|
+
function Zt(e, ...t) {
|
|
3503
|
+
delete D[e], he.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
|
|
3502
3504
|
}
|
|
3503
3505
|
ee(
|
|
3504
3506
|
[he],
|
|
3505
3507
|
([e]) => Object.keys(e)
|
|
3506
3508
|
);
|
|
3507
|
-
he.subscribe((e) =>
|
|
3509
|
+
he.subscribe((e) => Ze = e);
|
|
3508
3510
|
const de = {};
|
|
3509
|
-
function
|
|
3511
|
+
function jn(e, t) {
|
|
3510
3512
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3511
3513
|
}
|
|
3512
|
-
function
|
|
3514
|
+
function Qt(e) {
|
|
3513
3515
|
return de[e];
|
|
3514
3516
|
}
|
|
3515
|
-
function
|
|
3517
|
+
function kn(e) {
|
|
3516
3518
|
return Te(e).map((t) => {
|
|
3517
|
-
const r =
|
|
3519
|
+
const r = Qt(t);
|
|
3518
3520
|
return [t, r ? [...r] : []];
|
|
3519
3521
|
}).filter(([, t]) => t.length > 0);
|
|
3520
3522
|
}
|
|
@@ -3522,31 +3524,31 @@ function ke(e) {
|
|
|
3522
3524
|
return e == null ? !1 : Te(e).some(
|
|
3523
3525
|
(t) => {
|
|
3524
3526
|
var r;
|
|
3525
|
-
return (r =
|
|
3527
|
+
return (r = Qt(t)) == null ? void 0 : r.size;
|
|
3526
3528
|
}
|
|
3527
3529
|
);
|
|
3528
3530
|
}
|
|
3529
|
-
function
|
|
3531
|
+
function Vn(e, t) {
|
|
3530
3532
|
return Promise.all(
|
|
3531
|
-
t.map((n) => (
|
|
3532
|
-
).then((n) =>
|
|
3533
|
+
t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
|
|
3534
|
+
).then((n) => Zt(e, ...n));
|
|
3533
3535
|
}
|
|
3534
3536
|
const ne = {};
|
|
3535
|
-
function
|
|
3537
|
+
function Jt(e) {
|
|
3536
3538
|
if (!ke(e))
|
|
3537
3539
|
return e in ne ? ne[e] : Promise.resolve();
|
|
3538
|
-
const t =
|
|
3540
|
+
const t = kn(e);
|
|
3539
3541
|
return ne[e] = Promise.all(
|
|
3540
3542
|
t.map(
|
|
3541
|
-
([r, n]) =>
|
|
3543
|
+
([r, n]) => Vn(r, n)
|
|
3542
3544
|
)
|
|
3543
3545
|
).then(() => {
|
|
3544
3546
|
if (ke(e))
|
|
3545
|
-
return
|
|
3547
|
+
return Jt(e);
|
|
3546
3548
|
delete ne[e];
|
|
3547
3549
|
}), ne[e];
|
|
3548
3550
|
}
|
|
3549
|
-
const
|
|
3551
|
+
const Xn = {
|
|
3550
3552
|
number: {
|
|
3551
3553
|
scientific: { notation: "scientific" },
|
|
3552
3554
|
engineering: { notation: "engineering" },
|
|
@@ -3575,34 +3577,34 @@ const Vn = {
|
|
|
3575
3577
|
timeZoneName: "short"
|
|
3576
3578
|
}
|
|
3577
3579
|
}
|
|
3578
|
-
},
|
|
3580
|
+
}, zn = {
|
|
3579
3581
|
fallbackLocale: null,
|
|
3580
3582
|
loadingDelay: 200,
|
|
3581
|
-
formats:
|
|
3583
|
+
formats: Xn,
|
|
3582
3584
|
warnOnMissingMessages: !0,
|
|
3583
3585
|
handleMissingMessage: void 0,
|
|
3584
3586
|
ignoreTag: !0
|
|
3585
|
-
},
|
|
3587
|
+
}, Wn = zn;
|
|
3586
3588
|
function Y() {
|
|
3587
|
-
return
|
|
3589
|
+
return Wn;
|
|
3588
3590
|
}
|
|
3589
3591
|
const Ne = xe(!1);
|
|
3590
|
-
var
|
|
3592
|
+
var Zn = Object.defineProperty, Qn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
|
|
3591
3593
|
for (var r in t || (t = {}))
|
|
3592
|
-
|
|
3593
|
-
if (
|
|
3594
|
-
for (var r of
|
|
3595
|
-
|
|
3594
|
+
qn.call(t, r) && pt(e, r, t[r]);
|
|
3595
|
+
if (mt)
|
|
3596
|
+
for (var r of mt(t))
|
|
3597
|
+
Yn.call(t, r) && pt(e, r, t[r]);
|
|
3596
3598
|
return e;
|
|
3597
|
-
},
|
|
3599
|
+
}, ei = (e, t) => Qn(e, Jn(t));
|
|
3598
3600
|
let Ve;
|
|
3599
3601
|
const ye = xe(null);
|
|
3600
|
-
function
|
|
3602
|
+
function dt(e) {
|
|
3601
3603
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3602
3604
|
}
|
|
3603
3605
|
function Te(e, t = Y().fallbackLocale) {
|
|
3604
|
-
const r =
|
|
3605
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3606
|
+
const r = dt(e);
|
|
3607
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
3606
3608
|
}
|
|
3607
3609
|
function V() {
|
|
3608
3610
|
return Ve != null ? Ve : void 0;
|
|
@@ -3610,22 +3612,22 @@ function V() {
|
|
|
3610
3612
|
ye.subscribe((e) => {
|
|
3611
3613
|
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3612
3614
|
});
|
|
3613
|
-
const
|
|
3614
|
-
if (e &&
|
|
3615
|
+
const ti = (e) => {
|
|
3616
|
+
if (e && Fn(e) && ke(e)) {
|
|
3615
3617
|
const { loadingDelay: t } = Y();
|
|
3616
3618
|
let r;
|
|
3617
3619
|
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3618
3620
|
() => Ne.set(!0),
|
|
3619
3621
|
t
|
|
3620
|
-
) : Ne.set(!0),
|
|
3622
|
+
) : Ne.set(!0), Jt(e).then(() => {
|
|
3621
3623
|
ye.set(e);
|
|
3622
3624
|
}).finally(() => {
|
|
3623
3625
|
clearTimeout(r), Ne.set(!1);
|
|
3624
3626
|
});
|
|
3625
3627
|
}
|
|
3626
3628
|
return ye.set(e);
|
|
3627
|
-
}, te = Kn(
|
|
3628
|
-
set:
|
|
3629
|
+
}, te = ei(Kn({}, ye), {
|
|
3630
|
+
set: ti
|
|
3629
3631
|
}), Ce = (e) => {
|
|
3630
3632
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3631
3633
|
return (n) => {
|
|
@@ -3633,20 +3635,20 @@ const ei = (e) => {
|
|
|
3633
3635
|
return i in t ? t[i] : t[i] = e(n);
|
|
3634
3636
|
};
|
|
3635
3637
|
};
|
|
3636
|
-
var
|
|
3638
|
+
var ri = Object.defineProperty, _e = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3637
3639
|
for (var r in t || (t = {}))
|
|
3638
|
-
|
|
3640
|
+
qt.call(t, r) && bt(e, r, t[r]);
|
|
3639
3641
|
if (_e)
|
|
3640
3642
|
for (var r of _e(t))
|
|
3641
|
-
|
|
3643
|
+
Yt.call(t, r) && bt(e, r, t[r]);
|
|
3642
3644
|
return e;
|
|
3643
3645
|
}, re = (e, t) => {
|
|
3644
3646
|
var r = {};
|
|
3645
3647
|
for (var n in e)
|
|
3646
|
-
|
|
3648
|
+
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3647
3649
|
if (e != null && _e)
|
|
3648
3650
|
for (var n of _e(e))
|
|
3649
|
-
t.indexOf(n) < 0 &&
|
|
3651
|
+
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
3650
3652
|
return r;
|
|
3651
3653
|
};
|
|
3652
3654
|
const ae = (e, t) => {
|
|
@@ -3654,21 +3656,21 @@ const ae = (e, t) => {
|
|
|
3654
3656
|
if (e in r && t in r[e])
|
|
3655
3657
|
return r[e][t];
|
|
3656
3658
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3657
|
-
},
|
|
3659
|
+
}, ni = Ce(
|
|
3658
3660
|
(e) => {
|
|
3659
3661
|
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3660
3662
|
if (r == null)
|
|
3661
3663
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3662
3664
|
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3663
3665
|
}
|
|
3664
|
-
),
|
|
3666
|
+
), ii = Ce(
|
|
3665
3667
|
(e) => {
|
|
3666
3668
|
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3667
3669
|
if (r == null)
|
|
3668
3670
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3669
3671
|
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3670
3672
|
}
|
|
3671
|
-
),
|
|
3673
|
+
), si = Ce(
|
|
3672
3674
|
(e) => {
|
|
3673
3675
|
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3674
3676
|
if (r == null)
|
|
@@ -3683,42 +3685,42 @@ const ae = (e, t) => {
|
|
|
3683
3685
|
} = t, n = re(t, [
|
|
3684
3686
|
"locale"
|
|
3685
3687
|
]);
|
|
3686
|
-
return
|
|
3687
|
-
},
|
|
3688
|
+
return ni(Qe({ locale: r }, n));
|
|
3689
|
+
}, ai = (e = {}) => {
|
|
3688
3690
|
var t = e, {
|
|
3689
3691
|
locale: r = V()
|
|
3690
3692
|
} = t, n = re(t, [
|
|
3691
3693
|
"locale"
|
|
3692
3694
|
]);
|
|
3693
|
-
return
|
|
3694
|
-
},
|
|
3695
|
+
return ii(Qe({ locale: r }, n));
|
|
3696
|
+
}, ui = (e = {}) => {
|
|
3695
3697
|
var t = e, {
|
|
3696
3698
|
locale: r = V()
|
|
3697
3699
|
} = t, n = re(t, [
|
|
3698
3700
|
"locale"
|
|
3699
3701
|
]);
|
|
3700
|
-
return
|
|
3701
|
-
},
|
|
3702
|
+
return si(Qe({ locale: r }, n));
|
|
3703
|
+
}, hi = Ce(
|
|
3702
3704
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3703
|
-
(e, t = V()) => new
|
|
3705
|
+
(e, t = V()) => new $n(e, t, Y().formats, {
|
|
3704
3706
|
ignoreTag: Y().ignoreTag
|
|
3705
3707
|
})
|
|
3706
|
-
),
|
|
3707
|
-
var r, n, i,
|
|
3708
|
-
let
|
|
3709
|
-
typeof e == "object" && (
|
|
3708
|
+
), li = (e, t = {}) => {
|
|
3709
|
+
var r, n, i, s;
|
|
3710
|
+
let o = t;
|
|
3711
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3710
3712
|
const {
|
|
3711
3713
|
values: u,
|
|
3712
3714
|
locale: h = V(),
|
|
3713
3715
|
default: a
|
|
3714
|
-
} =
|
|
3716
|
+
} = o;
|
|
3715
3717
|
if (h == null)
|
|
3716
3718
|
throw new Error(
|
|
3717
3719
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3718
3720
|
);
|
|
3719
|
-
let l =
|
|
3721
|
+
let l = zt(e, h);
|
|
3720
3722
|
if (!l)
|
|
3721
|
-
l = (
|
|
3723
|
+
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3722
3724
|
else if (typeof l != "string")
|
|
3723
3725
|
return console.warn(
|
|
3724
3726
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3727,7 +3729,7 @@ const ae = (e, t) => {
|
|
|
3727
3729
|
return l;
|
|
3728
3730
|
let c = l;
|
|
3729
3731
|
try {
|
|
3730
|
-
c =
|
|
3732
|
+
c = hi(l, h).format(u);
|
|
3731
3733
|
} catch (f) {
|
|
3732
3734
|
f instanceof Error && console.warn(
|
|
3733
3735
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3735,18 +3737,18 @@ const ae = (e, t) => {
|
|
|
3735
3737
|
);
|
|
3736
3738
|
}
|
|
3737
3739
|
return c;
|
|
3738
|
-
},
|
|
3739
|
-
ee([te], () => li);
|
|
3740
|
+
}, fi = (e, t) => ui(t).format(e), ci = (e, t) => ai(t).format(e), gi = (e, t) => oi(t).format(e), mi = (e, t = V()) => zt(e, t), pi = ee([te, he], () => li);
|
|
3740
3741
|
ee([te], () => fi);
|
|
3741
3742
|
ee([te], () => ci);
|
|
3742
|
-
ee([te
|
|
3743
|
-
|
|
3744
|
-
|
|
3743
|
+
ee([te], () => gi);
|
|
3744
|
+
ee([te, he], () => mi);
|
|
3745
|
+
function yt(e, t) {
|
|
3746
|
+
Zt(e, t);
|
|
3745
3747
|
}
|
|
3746
|
-
function
|
|
3748
|
+
function di(e) {
|
|
3747
3749
|
te.set(e);
|
|
3748
3750
|
}
|
|
3749
|
-
const
|
|
3751
|
+
const _t = {
|
|
3750
3752
|
en: {
|
|
3751
3753
|
topCategories: "Top Categories",
|
|
3752
3754
|
otherCategories: "Other Categories",
|
|
@@ -3856,13 +3858,13 @@ const bt = {
|
|
|
3856
3858
|
games: "games"
|
|
3857
3859
|
}
|
|
3858
3860
|
};
|
|
3859
|
-
function
|
|
3861
|
+
function bi(e, t) {
|
|
3860
3862
|
if (e) {
|
|
3861
3863
|
const r = document.createElement("style");
|
|
3862
3864
|
r.innerHTML = t, e.appendChild(r);
|
|
3863
3865
|
}
|
|
3864
3866
|
}
|
|
3865
|
-
function
|
|
3867
|
+
function yi(e, t) {
|
|
3866
3868
|
const r = new URL(t);
|
|
3867
3869
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3868
3870
|
const i = document.createElement("style");
|
|
@@ -3871,7 +3873,7 @@ function bi(e, t) {
|
|
|
3871
3873
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3872
3874
|
});
|
|
3873
3875
|
}
|
|
3874
|
-
function
|
|
3876
|
+
function _i(e, t, r) {
|
|
3875
3877
|
if (window.emMessageBus) {
|
|
3876
3878
|
const n = document.createElement("style");
|
|
3877
3879
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3879,22 +3881,22 @@ function yi(e, t, r) {
|
|
|
3879
3881
|
});
|
|
3880
3882
|
}
|
|
3881
3883
|
}
|
|
3882
|
-
function
|
|
3883
|
-
|
|
3884
|
+
function xi(e) {
|
|
3885
|
+
ur(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3884
3886
|
}
|
|
3885
|
-
function
|
|
3887
|
+
function xt(e, t, r) {
|
|
3886
3888
|
const n = e.slice();
|
|
3887
3889
|
return n[23] = t[r], n;
|
|
3888
3890
|
}
|
|
3889
|
-
function
|
|
3891
|
+
function Et(e, t, r) {
|
|
3890
3892
|
const n = e.slice();
|
|
3891
3893
|
return n[23] = t[r], n;
|
|
3892
3894
|
}
|
|
3893
|
-
function
|
|
3895
|
+
function Ei(e) {
|
|
3894
3896
|
let t, r, n = (
|
|
3895
3897
|
/*$_*/
|
|
3896
3898
|
e[5]("topCategories") + ""
|
|
3897
|
-
), i,
|
|
3899
|
+
), i, s, o, u, h = (
|
|
3898
3900
|
/*$_*/
|
|
3899
3901
|
e[5]("otherCategories") + ""
|
|
3900
3902
|
), a, l, c = ce(
|
|
@@ -3902,28 +3904,28 @@ function xi(e) {
|
|
|
3902
3904
|
e[3]
|
|
3903
3905
|
), f = [];
|
|
3904
3906
|
for (let g = 0; g < c.length; g += 1)
|
|
3905
|
-
f[g] =
|
|
3907
|
+
f[g] = vt(Et(e, c, g));
|
|
3906
3908
|
let p = ce(
|
|
3907
3909
|
/*otherCategories*/
|
|
3908
3910
|
e[4]
|
|
3909
3911
|
), d = [];
|
|
3910
3912
|
for (let g = 0; g < p.length; g += 1)
|
|
3911
|
-
d[g] =
|
|
3913
|
+
d[g] = Tt(xt(e, p, g));
|
|
3912
3914
|
return {
|
|
3913
3915
|
c() {
|
|
3914
|
-
t = S("div"), r = S("h4"), i = G(n),
|
|
3916
|
+
t = S("div"), r = S("h4"), i = G(n), s = U();
|
|
3915
3917
|
for (let g = 0; g < f.length; g += 1)
|
|
3916
3918
|
f[g].c();
|
|
3917
|
-
|
|
3919
|
+
o = U(), u = S("h4"), a = G(h), l = U();
|
|
3918
3920
|
for (let g = 0; g < d.length; g += 1)
|
|
3919
3921
|
d[g].c();
|
|
3920
3922
|
I(r, "class", "CategoryTitle"), I(u, "class", "CategoryTitle"), I(t, "class", "CasinoCategories");
|
|
3921
3923
|
},
|
|
3922
3924
|
m(g, E) {
|
|
3923
|
-
K(g, t, E), v(t, r), v(r, i), v(t,
|
|
3925
|
+
K(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3924
3926
|
for (let m = 0; m < f.length; m += 1)
|
|
3925
3927
|
f[m] && f[m].m(t, null);
|
|
3926
|
-
v(t,
|
|
3928
|
+
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3927
3929
|
for (let m = 0; m < d.length; m += 1)
|
|
3928
3930
|
d[m] && d[m].m(t, null);
|
|
3929
3931
|
},
|
|
@@ -3938,8 +3940,8 @@ function xi(e) {
|
|
|
3938
3940
|
);
|
|
3939
3941
|
let m;
|
|
3940
3942
|
for (m = 0; m < c.length; m += 1) {
|
|
3941
|
-
const C =
|
|
3942
|
-
f[m] ? f[m].p(C, E) : (f[m] =
|
|
3943
|
+
const C = Et(g, c, m);
|
|
3944
|
+
f[m] ? f[m].p(C, E) : (f[m] = vt(C), f[m].c(), f[m].m(t, o));
|
|
3943
3945
|
}
|
|
3944
3946
|
for (; m < f.length; m += 1)
|
|
3945
3947
|
f[m].d(1);
|
|
@@ -3955,8 +3957,8 @@ function xi(e) {
|
|
|
3955
3957
|
);
|
|
3956
3958
|
let m;
|
|
3957
3959
|
for (m = 0; m < p.length; m += 1) {
|
|
3958
|
-
const C =
|
|
3959
|
-
d[m] ? d[m].p(C, E) : (d[m] =
|
|
3960
|
+
const C = xt(g, p, m);
|
|
3961
|
+
d[m] ? d[m].p(C, E) : (d[m] = Tt(C), d[m].c(), d[m].m(t, null));
|
|
3960
3962
|
}
|
|
3961
3963
|
for (; m < d.length; m += 1)
|
|
3962
3964
|
d[m].d(1);
|
|
@@ -3964,11 +3966,11 @@ function xi(e) {
|
|
|
3964
3966
|
}
|
|
3965
3967
|
},
|
|
3966
3968
|
d(g) {
|
|
3967
|
-
g && k(t),
|
|
3969
|
+
g && k(t), nt(f, g), nt(d, g);
|
|
3968
3970
|
}
|
|
3969
3971
|
};
|
|
3970
3972
|
}
|
|
3971
|
-
function
|
|
3973
|
+
function vi(e) {
|
|
3972
3974
|
let t;
|
|
3973
3975
|
return {
|
|
3974
3976
|
c() {
|
|
@@ -3983,8 +3985,8 @@ function Ei(e) {
|
|
|
3983
3985
|
}
|
|
3984
3986
|
};
|
|
3985
3987
|
}
|
|
3986
|
-
function
|
|
3987
|
-
let t, r, n, i,
|
|
3988
|
+
function vt(e) {
|
|
3989
|
+
let t, r, n, i, s, o, u, h = (
|
|
3988
3990
|
/*category*/
|
|
3989
3991
|
e[23].name + ""
|
|
3990
3992
|
), a, l, c, f = (
|
|
@@ -4005,14 +4007,14 @@ function xt(e) {
|
|
|
4005
4007
|
}
|
|
4006
4008
|
return {
|
|
4007
4009
|
c() {
|
|
4008
|
-
t = S("div"), r = S("ui-image"),
|
|
4010
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), be(r.src, n = /*category*/
|
|
4009
4011
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4010
|
-
e[23].name), R(r, "imgClass", "CategoryImage"), I(
|
|
4012
|
+
e[23].name), R(r, "imgClass", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", m = "Category " + /*activecategory*/
|
|
4011
4013
|
(e[0] === /*category*/
|
|
4012
4014
|
e[23].id ? "Active" : ""));
|
|
4013
4015
|
},
|
|
4014
4016
|
m(B, H) {
|
|
4015
|
-
K(B, t, H), v(t, r), v(t,
|
|
4017
|
+
K(B, t, H), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, E), C || (A = Bt(t, "click", O), C = !0);
|
|
4016
4018
|
},
|
|
4017
4019
|
p(B, H) {
|
|
4018
4020
|
e = B, H & /*topCategories*/
|
|
@@ -4035,8 +4037,8 @@ function xt(e) {
|
|
|
4035
4037
|
}
|
|
4036
4038
|
};
|
|
4037
4039
|
}
|
|
4038
|
-
function
|
|
4039
|
-
let t, r, n, i,
|
|
4040
|
+
function Tt(e) {
|
|
4041
|
+
let t, r, n, i, s, o, u, h = (
|
|
4040
4042
|
/*category*/
|
|
4041
4043
|
e[23].name + ""
|
|
4042
4044
|
), a, l, c, f = (
|
|
@@ -4057,14 +4059,14 @@ function Et(e) {
|
|
|
4057
4059
|
}
|
|
4058
4060
|
return {
|
|
4059
4061
|
c() {
|
|
4060
|
-
t = S("div"), r = S("ui-image"),
|
|
4062
|
+
t = S("div"), r = S("ui-image"), s = U(), o = S("div"), u = S("p"), a = G(h), l = U(), c = S("p"), p = G(f), d = U(), E = G(g), m = U(), be(r.src, n = /*category*/
|
|
4061
4063
|
e[23].icon) || R(r, "src", n), R(r, "alt", i = /*category*/
|
|
4062
|
-
e[23].name), R(r, "imgClass", "CategoryImage"), I(
|
|
4064
|
+
e[23].name), R(r, "imgClass", "CategoryImage"), I(o, "class", "CategoryTextContainer"), I(t, "class", C = "Category " + /*activecategory*/
|
|
4063
4065
|
(e[0] === /*category*/
|
|
4064
4066
|
e[23].id ? "Active" : ""));
|
|
4065
4067
|
},
|
|
4066
4068
|
m(H, P) {
|
|
4067
|
-
K(H, t, P), v(t, r), v(t,
|
|
4069
|
+
K(H, t, P), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, E), v(t, m), A || (O = Bt(t, "click", B), A = !0);
|
|
4068
4070
|
},
|
|
4069
4071
|
p(H, P) {
|
|
4070
4072
|
e = H, P & /*otherCategories*/
|
|
@@ -4087,12 +4089,12 @@ function Et(e) {
|
|
|
4087
4089
|
}
|
|
4088
4090
|
};
|
|
4089
4091
|
}
|
|
4090
|
-
function
|
|
4092
|
+
function Ti(e) {
|
|
4091
4093
|
let t;
|
|
4092
|
-
function r(
|
|
4094
|
+
function r(s, o) {
|
|
4093
4095
|
return (
|
|
4094
4096
|
/*isLoading*/
|
|
4095
|
-
|
|
4097
|
+
s[2] ? vi : Ei
|
|
4096
4098
|
);
|
|
4097
4099
|
}
|
|
4098
4100
|
let n = r(e), i = n(e);
|
|
@@ -4100,72 +4102,72 @@ function vi(e) {
|
|
|
4100
4102
|
c() {
|
|
4101
4103
|
t = S("div"), i.c();
|
|
4102
4104
|
},
|
|
4103
|
-
m(
|
|
4104
|
-
K(
|
|
4105
|
+
m(s, o) {
|
|
4106
|
+
K(s, t, o), i.m(t, null), e[17](t);
|
|
4105
4107
|
},
|
|
4106
|
-
p(
|
|
4107
|
-
n === (n = r(
|
|
4108
|
+
p(s, [o]) {
|
|
4109
|
+
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4108
4110
|
},
|
|
4109
4111
|
i: L,
|
|
4110
4112
|
o: L,
|
|
4111
|
-
d(
|
|
4112
|
-
|
|
4113
|
+
d(s) {
|
|
4114
|
+
s && k(t), i.d(), e[17](null);
|
|
4113
4115
|
}
|
|
4114
4116
|
};
|
|
4115
4117
|
}
|
|
4116
|
-
function
|
|
4118
|
+
function Ci(e, t, r) {
|
|
4117
4119
|
let n;
|
|
4118
|
-
|
|
4119
|
-
let { endpoint: i = "" } = t, { datasource:
|
|
4120
|
+
ar(e, pi, (b) => r(5, n = b));
|
|
4121
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4120
4122
|
const g = [];
|
|
4121
4123
|
let E = [], m = [];
|
|
4122
|
-
Object.keys(
|
|
4123
|
-
|
|
4124
|
+
Object.keys(_t).forEach((b) => {
|
|
4125
|
+
yt(b, _t[b]);
|
|
4124
4126
|
});
|
|
4125
4127
|
const C = () => {
|
|
4126
4128
|
fetch(c).then(($) => $.json()).then(($) => {
|
|
4127
4129
|
Object.keys($).forEach((le) => {
|
|
4128
|
-
|
|
4130
|
+
yt(le, $[le]);
|
|
4129
4131
|
});
|
|
4130
4132
|
}).catch(($) => {
|
|
4131
4133
|
console.log($);
|
|
4132
4134
|
});
|
|
4133
4135
|
}, A = () => {
|
|
4134
4136
|
r(2, d = !0);
|
|
4135
|
-
const b = new URL(`${i}/v1/casino/groups/${
|
|
4136
|
-
b.searchParams.append("language",
|
|
4137
|
+
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4138
|
+
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4137
4139
|
r(2, d = !1);
|
|
4138
4140
|
const le = h.split(",").map((j) => j.trim());
|
|
4139
4141
|
g.push(...$.items);
|
|
4140
|
-
const
|
|
4141
|
-
var
|
|
4142
|
-
return ((
|
|
4142
|
+
const Je = g.filter((j) => !le.some((er) => {
|
|
4143
|
+
var qe;
|
|
4144
|
+
return ((qe = j.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
|
|
4143
4145
|
}));
|
|
4144
|
-
r(3, E =
|
|
4146
|
+
r(3, E = Je.filter((j) => j.isTopCategory === !0)), r(4, m = Je.filter((j) => j.isTopCategory === !1));
|
|
4145
4147
|
});
|
|
4146
4148
|
}, O = (b) => {
|
|
4147
4149
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4148
4150
|
}, B = () => {
|
|
4149
|
-
|
|
4151
|
+
di(o);
|
|
4150
4152
|
};
|
|
4151
|
-
|
|
4153
|
+
mr(() => () => {
|
|
4152
4154
|
});
|
|
4153
4155
|
const H = (b) => O(b.id), P = (b) => O(b.id);
|
|
4154
|
-
function
|
|
4156
|
+
function Kt(b) {
|
|
4155
4157
|
Le[b ? "unshift" : "push"](() => {
|
|
4156
4158
|
p = b, r(1, p);
|
|
4157
4159
|
});
|
|
4158
4160
|
}
|
|
4159
4161
|
return e.$$set = (b) => {
|
|
4160
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8,
|
|
4162
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4161
4163
|
}, e.$$.update = () => {
|
|
4162
4164
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4163
|
-
384 && i &&
|
|
4165
|
+
384 && i && s && A(), e.$$.dirty & /*translationurl*/
|
|
4164
4166
|
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4165
|
-
512 &&
|
|
4166
|
-
2050 && a && p &&
|
|
4167
|
-
4098 && l && p &&
|
|
4168
|
-
16386 && f && p &&
|
|
4167
|
+
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4168
|
+
2050 && a && p && bi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4169
|
+
4098 && l && p && yi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4170
|
+
16386 && f && p && _i(p, `${f}.Style`);
|
|
4169
4171
|
}, [
|
|
4170
4172
|
u,
|
|
4171
4173
|
p,
|
|
@@ -4175,8 +4177,8 @@ function Ti(e, t, r) {
|
|
|
4175
4177
|
n,
|
|
4176
4178
|
O,
|
|
4177
4179
|
i,
|
|
4178
|
-
o,
|
|
4179
4180
|
s,
|
|
4181
|
+
o,
|
|
4180
4182
|
h,
|
|
4181
4183
|
a,
|
|
4182
4184
|
l,
|
|
@@ -4184,17 +4186,17 @@ function Ti(e, t, r) {
|
|
|
4184
4186
|
f,
|
|
4185
4187
|
H,
|
|
4186
4188
|
P,
|
|
4187
|
-
|
|
4189
|
+
Kt
|
|
4188
4190
|
];
|
|
4189
4191
|
}
|
|
4190
|
-
class
|
|
4192
|
+
class Hi extends Ar {
|
|
4191
4193
|
constructor(t) {
|
|
4192
|
-
super(),
|
|
4194
|
+
super(), Cr(
|
|
4193
4195
|
this,
|
|
4194
4196
|
t,
|
|
4197
|
+
Ci,
|
|
4195
4198
|
Ti,
|
|
4196
|
-
|
|
4197
|
-
Tt,
|
|
4199
|
+
Ht,
|
|
4198
4200
|
{
|
|
4199
4201
|
endpoint: 7,
|
|
4200
4202
|
datasource: 8,
|
|
@@ -4206,7 +4208,7 @@ class Ci extends Cr {
|
|
|
4206
4208
|
translationurl: 13,
|
|
4207
4209
|
mbsource: 14
|
|
4208
4210
|
},
|
|
4209
|
-
|
|
4211
|
+
xi
|
|
4210
4212
|
);
|
|
4211
4213
|
}
|
|
4212
4214
|
get endpoint() {
|
|
@@ -4264,7 +4266,7 @@ class Ci extends Cr {
|
|
|
4264
4266
|
this.$$set({ mbsource: t }), M();
|
|
4265
4267
|
}
|
|
4266
4268
|
}
|
|
4267
|
-
|
|
4269
|
+
Hr(Hi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4268
4270
|
export {
|
|
4269
|
-
|
|
4271
|
+
Hi as default
|
|
4270
4272
|
};
|