@everymatrix/casino-slider 1.54.12 → 1.55.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/{CasinoSlider-DtVLgqMm.js → CasinoSlider-72roLlp-.js} +799 -777
- package/components/{CasinoSlider-BO3KZ6XH.js → CasinoSlider-B-cj6kHc.js} +782 -760
- package/components/CasinoSlider-jhyv7bwo.cjs +3 -0
- package/es2015/casino-slider.cjs +1 -1
- package/es2015/casino-slider.js +1 -1
- package/esnext/casino-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSlider-CrjoUWSZ.cjs +0 -3
@@ -1,44 +1,44 @@
|
|
1
|
-
function
|
1
|
+
function U() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Dt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function ht() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
e.forEach(
|
9
|
+
function Q(e) {
|
10
|
+
e.forEach(Dt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function et(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Ut(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
let
|
19
|
-
function
|
20
|
-
return e === t ? !0 : (
|
18
|
+
let xe;
|
19
|
+
function ct(e, t) {
|
20
|
+
return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Tr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Ar(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
29
|
-
return
|
29
|
+
return U;
|
30
30
|
}
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
34
|
+
function B(e, t) {
|
35
35
|
e.appendChild(t);
|
36
36
|
}
|
37
|
-
function
|
37
|
+
function Br(e, t, r) {
|
38
38
|
const n = Ir(e);
|
39
39
|
if (!n.getElementById(t)) {
|
40
|
-
const i =
|
41
|
-
i.id = t, i.textContent = r,
|
40
|
+
const i = I("style");
|
41
|
+
i.id = t, i.textContent = r, Mr(n, i);
|
42
42
|
}
|
43
43
|
}
|
44
44
|
function Ir(e) {
|
@@ -50,49 +50,49 @@ function Ir(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
54
|
-
return
|
53
|
+
function Mr(e, t) {
|
54
|
+
return B(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function D(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
|
-
function
|
63
|
+
function O(e) {
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function Nr(e, t) {
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
68
68
|
e[r] && e[r].d(t);
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function I(e) {
|
71
71
|
return document.createElement(e);
|
72
72
|
}
|
73
|
-
function
|
73
|
+
function be(e) {
|
74
74
|
return document.createTextNode(e);
|
75
75
|
}
|
76
|
-
function
|
77
|
-
return
|
76
|
+
function Z() {
|
77
|
+
return be(" ");
|
78
78
|
}
|
79
|
-
function
|
80
|
-
return
|
79
|
+
function me() {
|
80
|
+
return be("");
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Te(e, t, r, n) {
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
84
84
|
}
|
85
85
|
function H(e, t, r) {
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function Pr(e) {
|
89
89
|
return Array.from(e.childNodes);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function tt(e, t) {
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
93
93
|
t);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Lr(e) {
|
96
96
|
const t = {};
|
97
97
|
return e.childNodes.forEach(
|
98
98
|
/** @param {Element} node */
|
@@ -101,124 +101,124 @@ function Pr(e) {
|
|
101
101
|
}
|
102
102
|
), t;
|
103
103
|
}
|
104
|
-
let
|
105
|
-
function
|
106
|
-
|
104
|
+
let de;
|
105
|
+
function ce(e) {
|
106
|
+
de = e;
|
107
107
|
}
|
108
108
|
function Or() {
|
109
|
-
if (!
|
110
|
-
return
|
109
|
+
if (!de) throw new Error("Function called outside component initialization");
|
110
|
+
return de;
|
111
111
|
}
|
112
|
-
function
|
112
|
+
function Fr(e) {
|
113
113
|
Or().$$.on_mount.push(e);
|
114
114
|
}
|
115
|
-
const
|
116
|
-
let
|
117
|
-
const
|
118
|
-
let
|
119
|
-
function
|
120
|
-
|
115
|
+
const K = [], fe = [];
|
116
|
+
let ee = [];
|
117
|
+
const ft = [], Rr = /* @__PURE__ */ Promise.resolve();
|
118
|
+
let je = !1;
|
119
|
+
function Dr() {
|
120
|
+
je || (je = !0, Rr.then(A));
|
121
121
|
}
|
122
|
-
function
|
123
|
-
|
122
|
+
function Ve(e) {
|
123
|
+
ee.push(e);
|
124
124
|
}
|
125
|
-
const
|
126
|
-
let
|
125
|
+
const Fe = /* @__PURE__ */ new Set();
|
126
|
+
let J = 0;
|
127
127
|
function A() {
|
128
|
-
if (
|
128
|
+
if (J !== 0)
|
129
129
|
return;
|
130
|
-
const e =
|
130
|
+
const e = de;
|
131
131
|
do {
|
132
132
|
try {
|
133
|
-
for (;
|
134
|
-
const t =
|
135
|
-
|
133
|
+
for (; J < K.length; ) {
|
134
|
+
const t = K[J];
|
135
|
+
J++, ce(t), Ur(t.$$);
|
136
136
|
}
|
137
137
|
} catch (t) {
|
138
|
-
throw
|
138
|
+
throw K.length = 0, J = 0, t;
|
139
139
|
}
|
140
|
-
for (
|
141
|
-
for (let t = 0; t <
|
142
|
-
const r =
|
143
|
-
|
140
|
+
for (ce(null), K.length = 0, J = 0; fe.length; ) fe.pop()();
|
141
|
+
for (let t = 0; t < ee.length; t += 1) {
|
142
|
+
const r = ee[t];
|
143
|
+
Fe.has(r) || (Fe.add(r), r());
|
144
144
|
}
|
145
|
-
|
146
|
-
} while (
|
147
|
-
for (;
|
148
|
-
|
149
|
-
|
145
|
+
ee.length = 0;
|
146
|
+
} while (K.length);
|
147
|
+
for (; ft.length; )
|
148
|
+
ft.pop()();
|
149
|
+
je = !1, Fe.clear(), ce(e);
|
150
150
|
}
|
151
|
-
function
|
151
|
+
function Ur(e) {
|
152
152
|
if (e.fragment !== null) {
|
153
|
-
e.update(),
|
153
|
+
e.update(), Q(e.before_update);
|
154
154
|
const t = e.dirty;
|
155
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
155
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
156
156
|
}
|
157
157
|
}
|
158
158
|
function Gr(e) {
|
159
159
|
const t = [], r = [];
|
160
|
-
|
160
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
161
161
|
}
|
162
|
-
const
|
163
|
-
function
|
164
|
-
e && e.i && (
|
162
|
+
const kr = /* @__PURE__ */ new Set();
|
163
|
+
function Gt(e, t) {
|
164
|
+
e && e.i && (kr.delete(e), e.i(t));
|
165
165
|
}
|
166
|
-
function
|
166
|
+
function te(e) {
|
167
167
|
return e?.length !== void 0 ? e : Array.from(e);
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function kt(e, t) {
|
170
170
|
e.d(1), t.delete(e.key);
|
171
171
|
}
|
172
|
-
function
|
172
|
+
function $t(e, t, r, n, i, s, o, a, h, l, u, m) {
|
173
173
|
let f = e.length, p = s.length, g = f;
|
174
174
|
const b = {};
|
175
175
|
for (; g--; ) b[e[g].key] = g;
|
176
|
-
const d = [],
|
176
|
+
const d = [], w = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), S = [];
|
177
177
|
for (g = p; g--; ) {
|
178
|
-
const
|
179
|
-
let
|
180
|
-
|
178
|
+
const C = m(i, s, g), M = r(C);
|
179
|
+
let N = o.get(M);
|
180
|
+
N ? S.push(() => N.p(C, t)) : (N = l(M, C), N.c()), w.set(M, d[g] = N), M in b && E.set(M, Math.abs(g - b[M]));
|
181
181
|
}
|
182
|
-
const
|
183
|
-
function
|
184
|
-
|
182
|
+
const F = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
183
|
+
function G(C) {
|
184
|
+
Gt(C, 1), C.m(a, u), o.set(C.key, C), u = C.first, p--;
|
185
185
|
}
|
186
186
|
for (; f && p; ) {
|
187
|
-
const
|
188
|
-
|
187
|
+
const C = d[p - 1], M = e[f - 1], N = C.key, j = M.key;
|
188
|
+
C === M ? (u = C.first, f--, p--) : w.has(j) ? !o.has(N) || F.has(N) ? G(C) : P.has(j) ? f-- : E.get(N) > E.get(j) ? (P.add(N), G(C)) : (F.add(j), f--) : (h(M, o), f--);
|
189
189
|
}
|
190
190
|
for (; f--; ) {
|
191
|
-
const
|
192
|
-
|
191
|
+
const C = e[f];
|
192
|
+
w.has(C.key) || h(C, o);
|
193
193
|
}
|
194
|
-
for (; p; )
|
195
|
-
return
|
194
|
+
for (; p; ) G(d[p - 1]);
|
195
|
+
return Q(S), d;
|
196
196
|
}
|
197
|
-
function
|
197
|
+
function $r(e, t, r) {
|
198
198
|
const { fragment: n, after_update: i } = e.$$;
|
199
|
-
n && n.m(t, r),
|
200
|
-
const s = e.$$.on_mount.map(
|
201
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
202
|
-
}), i.forEach(
|
199
|
+
n && n.m(t, r), Ve(() => {
|
200
|
+
const s = e.$$.on_mount.map(Dt).filter(et);
|
201
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Q(s), e.$$.on_mount = [];
|
202
|
+
}), i.forEach(Ve);
|
203
203
|
}
|
204
|
-
function
|
204
|
+
function jr(e, t) {
|
205
205
|
const r = e.$$;
|
206
|
-
r.fragment !== null && (Gr(r.after_update),
|
206
|
+
r.fragment !== null && (Gr(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
207
207
|
}
|
208
|
-
function
|
209
|
-
e.$$.dirty[0] === -1 && (
|
208
|
+
function Vr(e, t) {
|
209
|
+
e.$$.dirty[0] === -1 && (K.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
210
210
|
}
|
211
|
-
function
|
212
|
-
const h =
|
213
|
-
|
211
|
+
function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
212
|
+
const h = de;
|
213
|
+
ce(e);
|
214
214
|
const l = e.$$ = {
|
215
215
|
fragment: null,
|
216
216
|
ctx: [],
|
217
217
|
// state
|
218
218
|
props: s,
|
219
|
-
update:
|
219
|
+
update: U,
|
220
220
|
not_equal: i,
|
221
|
-
bound:
|
221
|
+
bound: ht(),
|
222
222
|
// lifecycle
|
223
223
|
on_mount: [],
|
224
224
|
on_destroy: [],
|
@@ -227,7 +227,7 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
227
227
|
after_update: [],
|
228
228
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
229
229
|
// everything else
|
230
|
-
callbacks:
|
230
|
+
callbacks: ht(),
|
231
231
|
dirty: a,
|
232
232
|
skip_bound: !1,
|
233
233
|
root: t.target || h.$$.root
|
@@ -236,19 +236,19 @@ function Vr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
236
236
|
let u = !1;
|
237
237
|
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
238
238
|
const g = p.length ? p[0] : f;
|
239
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u &&
|
240
|
-
}) : [], l.update(), u = !0,
|
239
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && Vr(e, m)), f;
|
240
|
+
}) : [], l.update(), u = !0, Q(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
241
241
|
if (t.hydrate) {
|
242
|
-
const m =
|
243
|
-
l.fragment && l.fragment.l(m), m.forEach(
|
242
|
+
const m = Pr(t.target);
|
243
|
+
l.fragment && l.fragment.l(m), m.forEach(O);
|
244
244
|
} else
|
245
245
|
l.fragment && l.fragment.c();
|
246
|
-
t.intro &&
|
246
|
+
t.intro && Gt(e.$$.fragment), $r(e, t.target, t.anchor), A();
|
247
247
|
}
|
248
|
-
|
248
|
+
ce(h);
|
249
249
|
}
|
250
|
-
let
|
251
|
-
typeof HTMLElement == "function" && (
|
250
|
+
let jt;
|
251
|
+
typeof HTMLElement == "function" && (jt = class extends HTMLElement {
|
252
252
|
/** The Svelte component constructor */
|
253
253
|
$$ctor;
|
254
254
|
/** Slots */
|
@@ -290,29 +290,29 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
290
290
|
let s;
|
291
291
|
return {
|
292
292
|
c: function() {
|
293
|
-
s =
|
293
|
+
s = I("slot"), i !== "default" && H(s, "name", i);
|
294
294
|
},
|
295
295
|
/**
|
296
296
|
* @param {HTMLElement} target
|
297
297
|
* @param {HTMLElement} [anchor]
|
298
298
|
*/
|
299
299
|
m: function(h, l) {
|
300
|
-
|
300
|
+
D(h, s, l);
|
301
301
|
},
|
302
302
|
d: function(h) {
|
303
|
-
h &&
|
303
|
+
h && O(s);
|
304
304
|
}
|
305
305
|
};
|
306
306
|
};
|
307
307
|
};
|
308
308
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
309
309
|
return;
|
310
|
-
const t = {}, r =
|
310
|
+
const t = {}, r = Lr(this);
|
311
311
|
for (const i of this.$$s)
|
312
312
|
i in r && (t[i] = [e(i)]);
|
313
313
|
for (const i of this.attributes) {
|
314
314
|
const s = this.$$g_p(i.name);
|
315
|
-
s in this.$$d || (this.$$d[s] =
|
315
|
+
s in this.$$d || (this.$$d[s] = we(s, i.value, this.$$p_d, "toProp"));
|
316
316
|
}
|
317
317
|
for (const i in this.$$p_d)
|
318
318
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
330
330
|
this.$$r = !0;
|
331
331
|
for (const i in this.$$p_d)
|
332
332
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
333
|
-
const s =
|
333
|
+
const s = we(
|
334
334
|
i,
|
335
335
|
this.$$d[i],
|
336
336
|
this.$$p_d,
|
@@ -352,7 +352,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
352
352
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
353
353
|
// and setting attributes through setAttribute etc, this is helpful
|
354
354
|
attributeChangedCallback(e, t, r) {
|
355
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
355
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = we(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
356
356
|
}
|
357
357
|
disconnectedCallback() {
|
358
358
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
|
|
365
365
|
) || e;
|
366
366
|
}
|
367
367
|
});
|
368
|
-
function
|
368
|
+
function we(e, t, r, n) {
|
369
369
|
const i = r[e]?.type;
|
370
370
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
371
371
|
return t;
|
@@ -394,8 +394,8 @@ function Ce(e, t, r, n) {
|
|
394
394
|
return t;
|
395
395
|
}
|
396
396
|
}
|
397
|
-
function
|
398
|
-
let o = class extends
|
397
|
+
function Wr(e, t, r, n, i, s) {
|
398
|
+
let o = class extends jt {
|
399
399
|
constructor() {
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
401
401
|
}
|
@@ -411,7 +411,7 @@ function Xr(e, t, r, n, i, s) {
|
|
411
411
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
412
412
|
},
|
413
413
|
set(h) {
|
414
|
-
h =
|
414
|
+
h = we(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
415
415
|
}
|
416
416
|
});
|
417
417
|
}), n.forEach((a) => {
|
@@ -423,7 +423,7 @@ function Xr(e, t, r, n, i, s) {
|
|
423
423
|
}), e.element = /** @type {any} */
|
424
424
|
o, o;
|
425
425
|
}
|
426
|
-
class
|
426
|
+
class zr {
|
427
427
|
/**
|
428
428
|
* ### PRIVATE API
|
429
429
|
*
|
@@ -442,7 +442,7 @@ class Wr {
|
|
442
442
|
$$set = void 0;
|
443
443
|
/** @returns {void} */
|
444
444
|
$destroy() {
|
445
|
-
|
445
|
+
jr(this, 1), this.$destroy = U;
|
446
446
|
}
|
447
447
|
/**
|
448
448
|
* @template {Extract<keyof Events, string>} K
|
@@ -451,8 +451,8 @@ class Wr {
|
|
451
451
|
* @returns {() => void}
|
452
452
|
*/
|
453
453
|
$on(t, r) {
|
454
|
-
if (!
|
455
|
-
return
|
454
|
+
if (!et(r))
|
455
|
+
return U;
|
456
456
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
457
457
|
return n.push(r), () => {
|
458
458
|
const i = n.indexOf(r);
|
@@ -464,60 +464,83 @@ class Wr {
|
|
464
464
|
* @returns {void}
|
465
465
|
*/
|
466
466
|
$set(t) {
|
467
|
-
this.$$set && !
|
467
|
+
this.$$set && !Tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
468
468
|
}
|
469
469
|
}
|
470
|
-
const
|
471
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
472
|
-
|
473
|
-
|
470
|
+
const Zr = "4";
|
471
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
|
472
|
+
function Qr(e, t) {
|
473
|
+
if (e) {
|
474
|
+
const r = document.createElement("style");
|
475
|
+
r.innerHTML = t, e.appendChild(r);
|
476
|
+
}
|
477
|
+
}
|
478
|
+
function qr(e, t) {
|
479
|
+
const r = new URL(t);
|
480
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
481
|
+
const i = document.createElement("style");
|
482
|
+
i.innerHTML = n, e && e.appendChild(i);
|
483
|
+
}).catch((n) => {
|
484
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
485
|
+
});
|
486
|
+
}
|
487
|
+
function Jr(e, t, r) {
|
488
|
+
if (window.emMessageBus) {
|
489
|
+
const n = document.createElement("style");
|
490
|
+
window.emMessageBus.subscribe(t, (i) => {
|
491
|
+
n.innerHTML = i, e && e.appendChild(n);
|
492
|
+
});
|
493
|
+
}
|
494
|
+
}
|
495
|
+
const Y = [];
|
496
|
+
function Yr(e, t) {
|
474
497
|
return {
|
475
498
|
subscribe: Ie(e, t).subscribe
|
476
499
|
};
|
477
500
|
}
|
478
|
-
function Ie(e, t =
|
501
|
+
function Ie(e, t = U) {
|
479
502
|
let r;
|
480
503
|
const n = /* @__PURE__ */ new Set();
|
481
504
|
function i(a) {
|
482
|
-
if (
|
483
|
-
const h = !
|
505
|
+
if (Ut(e, a) && (e = a, r)) {
|
506
|
+
const h = !Y.length;
|
484
507
|
for (const l of n)
|
485
|
-
l[1](),
|
508
|
+
l[1](), Y.push(l, e);
|
486
509
|
if (h) {
|
487
|
-
for (let l = 0; l <
|
488
|
-
|
489
|
-
|
510
|
+
for (let l = 0; l < Y.length; l += 2)
|
511
|
+
Y[l][0](Y[l + 1]);
|
512
|
+
Y.length = 0;
|
490
513
|
}
|
491
514
|
}
|
492
515
|
}
|
493
516
|
function s(a) {
|
494
517
|
i(a(e));
|
495
518
|
}
|
496
|
-
function o(a, h =
|
519
|
+
function o(a, h = U) {
|
497
520
|
const l = [a, h];
|
498
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
521
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || U), a(e), () => {
|
499
522
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
500
523
|
};
|
501
524
|
}
|
502
525
|
return { set: i, update: s, subscribe: o };
|
503
526
|
}
|
504
|
-
function
|
527
|
+
function se(e, t, r) {
|
505
528
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
506
529
|
if (!i.every(Boolean))
|
507
530
|
throw new Error("derived() expects stores as input, got a falsy value");
|
508
531
|
const s = t.length < 2;
|
509
|
-
return
|
532
|
+
return Yr(r, (o, a) => {
|
510
533
|
let h = !1;
|
511
534
|
const l = [];
|
512
|
-
let u = 0, m =
|
535
|
+
let u = 0, m = U;
|
513
536
|
const f = () => {
|
514
537
|
if (u)
|
515
538
|
return;
|
516
539
|
m();
|
517
540
|
const g = t(n ? l[0] : l, o, a);
|
518
|
-
s ? o(g) : m =
|
541
|
+
s ? o(g) : m = et(g) ? g : U;
|
519
542
|
}, p = i.map(
|
520
|
-
(g, b) =>
|
543
|
+
(g, b) => Ar(
|
521
544
|
g,
|
522
545
|
(d) => {
|
523
546
|
l[b] = d, u &= ~(1 << b), h && f();
|
@@ -528,95 +551,95 @@ function oe(e, t, r) {
|
|
528
551
|
)
|
529
552
|
);
|
530
553
|
return h = !0, f(), function() {
|
531
|
-
|
554
|
+
Q(p), m(), h = !1;
|
532
555
|
};
|
533
556
|
});
|
534
557
|
}
|
535
|
-
function
|
558
|
+
function Kr(e) {
|
536
559
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
537
560
|
}
|
538
|
-
var
|
539
|
-
return
|
561
|
+
var en = function(t) {
|
562
|
+
return tn(t) && !rn(t);
|
540
563
|
};
|
541
|
-
function
|
564
|
+
function tn(e) {
|
542
565
|
return !!e && typeof e == "object";
|
543
566
|
}
|
544
|
-
function
|
567
|
+
function rn(e) {
|
545
568
|
var t = Object.prototype.toString.call(e);
|
546
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
569
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
547
570
|
}
|
548
|
-
var
|
549
|
-
function
|
550
|
-
return e.$$typeof ===
|
571
|
+
var nn = typeof Symbol == "function" && Symbol.for, on = nn ? Symbol.for("react.element") : 60103;
|
572
|
+
function sn(e) {
|
573
|
+
return e.$$typeof === on;
|
551
574
|
}
|
552
|
-
function
|
575
|
+
function an(e) {
|
553
576
|
return Array.isArray(e) ? [] : {};
|
554
577
|
}
|
555
|
-
function
|
556
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
578
|
+
function pe(e, t) {
|
579
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(an(e), e, t) : e;
|
557
580
|
}
|
558
|
-
function
|
581
|
+
function ln(e, t, r) {
|
559
582
|
return e.concat(t).map(function(n) {
|
560
|
-
return
|
583
|
+
return pe(n, r);
|
561
584
|
});
|
562
585
|
}
|
563
|
-
function
|
586
|
+
function un(e, t) {
|
564
587
|
if (!t.customMerge)
|
565
|
-
return
|
588
|
+
return re;
|
566
589
|
var r = t.customMerge(e);
|
567
|
-
return typeof r == "function" ? r :
|
590
|
+
return typeof r == "function" ? r : re;
|
568
591
|
}
|
569
|
-
function
|
592
|
+
function hn(e) {
|
570
593
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
571
594
|
return Object.propertyIsEnumerable.call(e, t);
|
572
595
|
}) : [];
|
573
596
|
}
|
574
|
-
function
|
575
|
-
return Object.keys(e).concat(
|
597
|
+
function mt(e) {
|
598
|
+
return Object.keys(e).concat(hn(e));
|
576
599
|
}
|
577
|
-
function
|
600
|
+
function Vt(e, t) {
|
578
601
|
try {
|
579
602
|
return t in e;
|
580
603
|
} catch {
|
581
604
|
return !1;
|
582
605
|
}
|
583
606
|
}
|
584
|
-
function
|
585
|
-
return
|
607
|
+
function cn(e, t) {
|
608
|
+
return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
586
609
|
}
|
587
|
-
function
|
610
|
+
function fn(e, t, r) {
|
588
611
|
var n = {};
|
589
|
-
return r.isMergeableObject(e) &&
|
590
|
-
n[i] =
|
591
|
-
}),
|
592
|
-
|
612
|
+
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
613
|
+
n[i] = pe(e[i], r);
|
614
|
+
}), mt(t).forEach(function(i) {
|
615
|
+
cn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
|
593
616
|
}), n;
|
594
617
|
}
|
595
|
-
function
|
596
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
618
|
+
function re(e, t, r) {
|
619
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = pe;
|
597
620
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
598
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
621
|
+
return s ? n ? r.arrayMerge(e, t, r) : fn(e, t, r) : pe(t, r);
|
599
622
|
}
|
600
|
-
|
623
|
+
re.all = function(t, r) {
|
601
624
|
if (!Array.isArray(t))
|
602
625
|
throw new Error("first argument should be an array");
|
603
626
|
return t.reduce(function(n, i) {
|
604
|
-
return
|
627
|
+
return re(n, i, r);
|
605
628
|
}, {});
|
606
629
|
};
|
607
|
-
var
|
608
|
-
const
|
609
|
-
var
|
610
|
-
return
|
630
|
+
var mn = re, dn = mn;
|
631
|
+
const pn = /* @__PURE__ */ Kr(dn);
|
632
|
+
var Xe = function(e, t) {
|
633
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
611
634
|
r.__proto__ = n;
|
612
635
|
} || function(r, n) {
|
613
636
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
614
|
-
},
|
637
|
+
}, Xe(e, t);
|
615
638
|
};
|
616
|
-
function
|
639
|
+
function Me(e, t) {
|
617
640
|
if (typeof t != "function" && t !== null)
|
618
641
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
619
|
-
|
642
|
+
Xe(e, t);
|
620
643
|
function r() {
|
621
644
|
this.constructor = e;
|
622
645
|
}
|
@@ -631,7 +654,7 @@ var _ = function() {
|
|
631
654
|
return t;
|
632
655
|
}, _.apply(this, arguments);
|
633
656
|
};
|
634
|
-
function
|
657
|
+
function gn(e, t) {
|
635
658
|
var r = {};
|
636
659
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
637
660
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -639,59 +662,61 @@ function fn(e, t) {
|
|
639
662
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
640
663
|
return r;
|
641
664
|
}
|
642
|
-
function
|
665
|
+
function Re(e, t, r) {
|
643
666
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
644
667
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
645
668
|
return e.concat(s || Array.prototype.slice.call(t));
|
646
669
|
}
|
647
|
-
function
|
648
|
-
var r = t && t.cache ? t.cache :
|
670
|
+
function De(e, t) {
|
671
|
+
var r = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : yn;
|
649
672
|
return i(e, {
|
650
673
|
cache: r,
|
651
674
|
serializer: n
|
652
675
|
});
|
653
676
|
}
|
654
|
-
function
|
677
|
+
function bn(e) {
|
655
678
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
656
679
|
}
|
657
|
-
function
|
658
|
-
var i =
|
680
|
+
function Xt(e, t, r, n) {
|
681
|
+
var i = bn(n) ? n : r(n), s = t.get(i);
|
659
682
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
660
683
|
}
|
661
|
-
function
|
684
|
+
function Wt(e, t, r) {
|
662
685
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
663
686
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
664
687
|
}
|
665
|
-
function
|
688
|
+
function rt(e, t, r, n, i) {
|
666
689
|
return r.bind(t, e, n, i);
|
667
690
|
}
|
668
|
-
function
|
669
|
-
var r = e.length === 1 ?
|
670
|
-
return
|
691
|
+
function yn(e, t) {
|
692
|
+
var r = e.length === 1 ? Xt : Wt;
|
693
|
+
return rt(e, this, r, t.cache.create(), t.serializer);
|
671
694
|
}
|
672
|
-
function
|
673
|
-
return
|
695
|
+
function vn(e, t) {
|
696
|
+
return rt(e, this, Wt, t.cache.create(), t.serializer);
|
697
|
+
}
|
698
|
+
function _n(e, t) {
|
699
|
+
return rt(e, this, Xt, t.cache.create(), t.serializer);
|
674
700
|
}
|
675
|
-
var
|
701
|
+
var En = function() {
|
676
702
|
return JSON.stringify(arguments);
|
677
|
-
}
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
}()
|
689
|
-
), vn = {
|
703
|
+
};
|
704
|
+
function nt() {
|
705
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
706
|
+
}
|
707
|
+
nt.prototype.get = function(e) {
|
708
|
+
return this.cache[e];
|
709
|
+
};
|
710
|
+
nt.prototype.set = function(e, t) {
|
711
|
+
this.cache[e] = t;
|
712
|
+
};
|
713
|
+
var xn = {
|
690
714
|
create: function() {
|
691
|
-
return new
|
715
|
+
return new nt();
|
692
716
|
}
|
693
|
-
},
|
694
|
-
variadic:
|
717
|
+
}, Ue = {
|
718
|
+
variadic: vn,
|
719
|
+
monadic: _n
|
695
720
|
}, y;
|
696
721
|
(function(e) {
|
697
722
|
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";
|
@@ -700,47 +725,47 @@ var T;
|
|
700
725
|
(function(e) {
|
701
726
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
702
727
|
})(T || (T = {}));
|
703
|
-
var
|
728
|
+
var ne;
|
704
729
|
(function(e) {
|
705
730
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
706
|
-
})(
|
707
|
-
function
|
731
|
+
})(ne || (ne = {}));
|
732
|
+
function dt(e) {
|
708
733
|
return e.type === T.literal;
|
709
734
|
}
|
710
|
-
function
|
735
|
+
function Cn(e) {
|
711
736
|
return e.type === T.argument;
|
712
737
|
}
|
713
|
-
function
|
738
|
+
function zt(e) {
|
714
739
|
return e.type === T.number;
|
715
740
|
}
|
716
|
-
function
|
741
|
+
function Zt(e) {
|
717
742
|
return e.type === T.date;
|
718
743
|
}
|
719
|
-
function
|
744
|
+
function Qt(e) {
|
720
745
|
return e.type === T.time;
|
721
746
|
}
|
722
|
-
function
|
747
|
+
function qt(e) {
|
723
748
|
return e.type === T.select;
|
724
749
|
}
|
725
|
-
function
|
750
|
+
function Jt(e) {
|
726
751
|
return e.type === T.plural;
|
727
752
|
}
|
728
|
-
function
|
753
|
+
function wn(e) {
|
729
754
|
return e.type === T.pound;
|
730
755
|
}
|
731
|
-
function
|
756
|
+
function Yt(e) {
|
732
757
|
return e.type === T.tag;
|
733
758
|
}
|
734
|
-
function
|
735
|
-
return !!(e && typeof e == "object" && e.type ===
|
759
|
+
function Kt(e) {
|
760
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
736
761
|
}
|
737
|
-
function
|
738
|
-
return !!(e && typeof e == "object" && e.type ===
|
762
|
+
function We(e) {
|
763
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
739
764
|
}
|
740
|
-
var
|
741
|
-
function
|
765
|
+
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
|
766
|
+
function Sn(e) {
|
742
767
|
var t = {};
|
743
|
-
return e.replace(
|
768
|
+
return e.replace(Hn, function(r) {
|
744
769
|
var n = r.length;
|
745
770
|
switch (r[0]) {
|
746
771
|
case "G":
|
@@ -829,11 +854,11 @@ function Cn(e) {
|
|
829
854
|
return "";
|
830
855
|
}), t;
|
831
856
|
}
|
832
|
-
var
|
833
|
-
function
|
857
|
+
var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
858
|
+
function An(e) {
|
834
859
|
if (e.length === 0)
|
835
860
|
throw new Error("Number skeleton cannot be empty");
|
836
|
-
for (var t = e.split(
|
861
|
+
for (var t = e.split(Tn).filter(function(f) {
|
837
862
|
return f.length > 0;
|
838
863
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
839
864
|
var s = i[n], o = s.split("/");
|
@@ -848,17 +873,17 @@ function Hn(e) {
|
|
848
873
|
}
|
849
874
|
return r;
|
850
875
|
}
|
851
|
-
function
|
876
|
+
function Bn(e) {
|
852
877
|
return e.replace(/^(.*?)-/, "");
|
853
878
|
}
|
854
|
-
var
|
855
|
-
function
|
879
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
880
|
+
function gt(e) {
|
856
881
|
var t = {};
|
857
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
882
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
|
858
883
|
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)), "";
|
859
884
|
}), t;
|
860
885
|
}
|
861
|
-
function
|
886
|
+
function nr(e) {
|
862
887
|
switch (e) {
|
863
888
|
case "sign-auto":
|
864
889
|
return {
|
@@ -898,7 +923,7 @@ function er(e) {
|
|
898
923
|
};
|
899
924
|
}
|
900
925
|
}
|
901
|
-
function
|
926
|
+
function Mn(e) {
|
902
927
|
var t;
|
903
928
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
904
929
|
notation: "engineering"
|
@@ -906,17 +931,17 @@ function An(e) {
|
|
906
931
|
notation: "scientific"
|
907
932
|
}, e = e.slice(1)), t) {
|
908
933
|
var r = e.slice(0, 2);
|
909
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
934
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
|
910
935
|
throw new Error("Malformed concise eng/scientific notation");
|
911
936
|
t.minimumIntegerDigits = e.length;
|
912
937
|
}
|
913
938
|
return t;
|
914
939
|
}
|
915
|
-
function
|
916
|
-
var t = {}, r =
|
940
|
+
function bt(e) {
|
941
|
+
var t = {}, r = nr(e);
|
917
942
|
return r || t;
|
918
943
|
}
|
919
|
-
function
|
944
|
+
function Nn(e) {
|
920
945
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
921
946
|
var i = n[r];
|
922
947
|
switch (i.stem) {
|
@@ -940,7 +965,7 @@ function In(e) {
|
|
940
965
|
continue;
|
941
966
|
case "measure-unit":
|
942
967
|
case "unit":
|
943
|
-
t.style = "unit", t.unit =
|
968
|
+
t.style = "unit", t.unit = Bn(i.options[0]);
|
944
969
|
continue;
|
945
970
|
case "compact-short":
|
946
971
|
case "K":
|
@@ -952,12 +977,12 @@ function In(e) {
|
|
952
977
|
continue;
|
953
978
|
case "scientific":
|
954
979
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
955
|
-
return _(_({}, h),
|
980
|
+
return _(_({}, h), bt(l));
|
956
981
|
}, {}));
|
957
982
|
continue;
|
958
983
|
case "engineering":
|
959
984
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
960
|
-
return _(_({}, h),
|
985
|
+
return _(_({}, h), bt(l));
|
961
986
|
}, {}));
|
962
987
|
continue;
|
963
988
|
case "notation-simple":
|
@@ -1002,7 +1027,7 @@ function In(e) {
|
|
1002
1027
|
case "integer-width":
|
1003
1028
|
if (i.options.length > 1)
|
1004
1029
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1005
|
-
i.options[0].replace(
|
1030
|
+
i.options[0].replace(In, function(h, l, u, m, f, p) {
|
1006
1031
|
if (l)
|
1007
1032
|
t.minimumIntegerDigits = u.length;
|
1008
1033
|
else {
|
@@ -1015,32 +1040,32 @@ function In(e) {
|
|
1015
1040
|
});
|
1016
1041
|
continue;
|
1017
1042
|
}
|
1018
|
-
if (
|
1043
|
+
if (rr.test(i.stem)) {
|
1019
1044
|
t.minimumIntegerDigits = i.stem.length;
|
1020
1045
|
continue;
|
1021
1046
|
}
|
1022
|
-
if (
|
1047
|
+
if (pt.test(i.stem)) {
|
1023
1048
|
if (i.options.length > 1)
|
1024
1049
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1025
|
-
i.stem.replace(
|
1050
|
+
i.stem.replace(pt, function(h, l, u, m, f, p) {
|
1026
1051
|
return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1027
1052
|
});
|
1028
1053
|
var s = i.options[0];
|
1029
|
-
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t),
|
1054
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), gt(s)));
|
1030
1055
|
continue;
|
1031
1056
|
}
|
1032
|
-
if (
|
1033
|
-
t = _(_({}, t),
|
1057
|
+
if (tr.test(i.stem)) {
|
1058
|
+
t = _(_({}, t), gt(i.stem));
|
1034
1059
|
continue;
|
1035
1060
|
}
|
1036
|
-
var o =
|
1061
|
+
var o = nr(i.stem);
|
1037
1062
|
o && (t = _(_({}, t), o));
|
1038
|
-
var a =
|
1063
|
+
var a = Mn(i.stem);
|
1039
1064
|
a && (t = _(_({}, t), a));
|
1040
1065
|
}
|
1041
1066
|
return t;
|
1042
1067
|
}
|
1043
|
-
var
|
1068
|
+
var Ce = {
|
1044
1069
|
"001": [
|
1045
1070
|
"H",
|
1046
1071
|
"h"
|
@@ -2455,13 +2480,13 @@ var xe = {
|
|
2455
2480
|
"h"
|
2456
2481
|
]
|
2457
2482
|
};
|
2458
|
-
function
|
2483
|
+
function Pn(e, t) {
|
2459
2484
|
for (var r = "", n = 0; n < e.length; n++) {
|
2460
2485
|
var i = e.charAt(n);
|
2461
2486
|
if (i === "j") {
|
2462
2487
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2463
2488
|
s++, n++;
|
2464
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l =
|
2489
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = Ln(t);
|
2465
2490
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2466
2491
|
r += h;
|
2467
2492
|
for (; o-- > 0; )
|
@@ -2470,7 +2495,7 @@ function Bn(e, t) {
|
|
2470
2495
|
}
|
2471
2496
|
return r;
|
2472
2497
|
}
|
2473
|
-
function
|
2498
|
+
function Ln(e) {
|
2474
2499
|
var t = e.hourCycle;
|
2475
2500
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2476
2501
|
e.hourCycles && // @ts-ignore
|
@@ -2489,23 +2514,23 @@ function Mn(e) {
|
|
2489
2514
|
}
|
2490
2515
|
var r = e.language, n;
|
2491
2516
|
r !== "root" && (n = e.maximize().region);
|
2492
|
-
var i =
|
2517
|
+
var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
|
2493
2518
|
return i[0];
|
2494
2519
|
}
|
2495
|
-
var Ge,
|
2520
|
+
var Ge, On = new RegExp("^".concat(er.source, "*")), Fn = new RegExp("".concat(er.source, "*$"));
|
2496
2521
|
function v(e, t) {
|
2497
2522
|
return { start: e, end: t };
|
2498
2523
|
}
|
2499
|
-
var
|
2524
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Un = !!Object.fromEntries, Gn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, Vn = jn ? Number.isSafeInteger : function(e) {
|
2500
2525
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2501
|
-
},
|
2526
|
+
}, ze = !0;
|
2502
2527
|
try {
|
2503
|
-
var
|
2504
|
-
|
2528
|
+
var Xn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2529
|
+
ze = ((Ge = Xn.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
2505
2530
|
} catch {
|
2506
|
-
|
2531
|
+
ze = !1;
|
2507
2532
|
}
|
2508
|
-
var
|
2533
|
+
var yt = Rn ? (
|
2509
2534
|
// Native
|
2510
2535
|
function(t, r, n) {
|
2511
2536
|
return t.startsWith(r, n);
|
@@ -2515,7 +2540,7 @@ var pt = On ? (
|
|
2515
2540
|
function(t, r, n) {
|
2516
2541
|
return t.slice(n, n + r.length) === r;
|
2517
2542
|
}
|
2518
|
-
),
|
2543
|
+
), Ze = Dn ? String.fromCodePoint : (
|
2519
2544
|
// IE11
|
2520
2545
|
function() {
|
2521
2546
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2527,9 +2552,9 @@ var pt = On ? (
|
|
2527
2552
|
}
|
2528
2553
|
return n;
|
2529
2554
|
}
|
2530
|
-
),
|
2555
|
+
), vt = (
|
2531
2556
|
// native
|
2532
|
-
|
2557
|
+
Un ? Object.fromEntries : (
|
2533
2558
|
// Ponyfill
|
2534
2559
|
function(t) {
|
2535
2560
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2539,7 +2564,7 @@ var pt = On ? (
|
|
2539
2564
|
return r;
|
2540
2565
|
}
|
2541
2566
|
)
|
2542
|
-
),
|
2567
|
+
), ir = Gn ? (
|
2543
2568
|
// Native
|
2544
2569
|
function(t, r) {
|
2545
2570
|
return t.codePointAt(r);
|
@@ -2553,7 +2578,7 @@ var pt = On ? (
|
|
2553
2578
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2554
2579
|
}
|
2555
2580
|
}
|
2556
|
-
),
|
2581
|
+
), Wn = kn ? (
|
2557
2582
|
// Native
|
2558
2583
|
function(t) {
|
2559
2584
|
return t.trimStart();
|
@@ -2561,9 +2586,9 @@ var pt = On ? (
|
|
2561
2586
|
) : (
|
2562
2587
|
// Ponyfill
|
2563
2588
|
function(t) {
|
2564
|
-
return t.replace(
|
2589
|
+
return t.replace(On, "");
|
2565
2590
|
}
|
2566
|
-
),
|
2591
|
+
), zn = $n ? (
|
2567
2592
|
// Native
|
2568
2593
|
function(t) {
|
2569
2594
|
return t.trimEnd();
|
@@ -2571,32 +2596,32 @@ var pt = On ? (
|
|
2571
2596
|
) : (
|
2572
2597
|
// Ponyfill
|
2573
2598
|
function(t) {
|
2574
|
-
return t.replace(
|
2599
|
+
return t.replace(Fn, "");
|
2575
2600
|
}
|
2576
2601
|
);
|
2577
|
-
function
|
2602
|
+
function or(e, t) {
|
2578
2603
|
return new RegExp(e, t);
|
2579
2604
|
}
|
2580
|
-
var
|
2581
|
-
if (
|
2582
|
-
var
|
2583
|
-
|
2605
|
+
var Qe;
|
2606
|
+
if (ze) {
|
2607
|
+
var _t = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2608
|
+
Qe = function(t, r) {
|
2584
2609
|
var n;
|
2585
|
-
|
2586
|
-
var i =
|
2610
|
+
_t.lastIndex = r;
|
2611
|
+
var i = _t.exec(t);
|
2587
2612
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2588
2613
|
};
|
2589
2614
|
} else
|
2590
|
-
|
2615
|
+
Qe = function(t, r) {
|
2591
2616
|
for (var n = []; ; ) {
|
2592
|
-
var i =
|
2593
|
-
if (i === void 0 ||
|
2617
|
+
var i = ir(t, r);
|
2618
|
+
if (i === void 0 || sr(i) || Jn(i))
|
2594
2619
|
break;
|
2595
2620
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2596
2621
|
}
|
2597
|
-
return
|
2622
|
+
return Ze.apply(void 0, n);
|
2598
2623
|
};
|
2599
|
-
var
|
2624
|
+
var Zn = (
|
2600
2625
|
/** @class */
|
2601
2626
|
function() {
|
2602
2627
|
function e(t, r) {
|
@@ -2627,7 +2652,7 @@ var Xn = (
|
|
2627
2652
|
if (n)
|
2628
2653
|
break;
|
2629
2654
|
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
2630
|
-
} else if (s === 60 && !this.ignoreTag &&
|
2655
|
+
} else if (s === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
2631
2656
|
var o = this.parseTag(t, r);
|
2632
2657
|
if (o.err)
|
2633
2658
|
return o;
|
@@ -2660,7 +2685,7 @@ var Xn = (
|
|
2660
2685
|
return s;
|
2661
2686
|
var o = s.val, a = this.clonePosition();
|
2662
2687
|
if (this.bumpIf("</")) {
|
2663
|
-
if (this.isEOF() || !
|
2688
|
+
if (this.isEOF() || !qe(this.char()))
|
2664
2689
|
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
2665
2690
|
var h = this.clonePosition(), l = this.parseTagName();
|
2666
2691
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -2678,7 +2703,7 @@ var Xn = (
|
|
2678
2703
|
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
2679
2704
|
}, e.prototype.parseTagName = function() {
|
2680
2705
|
var t = this.offset();
|
2681
|
-
for (this.bump(); !this.isEOF() &&
|
2706
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
2682
2707
|
this.bump();
|
2683
2708
|
return this.message.slice(t, this.offset());
|
2684
2709
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2707,7 +2732,7 @@ var Xn = (
|
|
2707
2732
|
};
|
2708
2733
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2709
2734
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2710
|
-
!
|
2735
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2711
2736
|
}, e.prototype.tryParseQuote = function(t) {
|
2712
2737
|
if (this.isEOF() || this.char() !== 39)
|
2713
2738
|
return null;
|
@@ -2741,12 +2766,12 @@ var Xn = (
|
|
2741
2766
|
r.push(n);
|
2742
2767
|
this.bump();
|
2743
2768
|
}
|
2744
|
-
return
|
2769
|
+
return Ze.apply(void 0, r);
|
2745
2770
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2746
2771
|
if (this.isEOF())
|
2747
2772
|
return null;
|
2748
2773
|
var n = this.char();
|
2749
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2774
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
2750
2775
|
}, e.prototype.parseArgument = function(t, r) {
|
2751
2776
|
var n = this.clonePosition();
|
2752
2777
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2775,7 +2800,7 @@ var Xn = (
|
|
2775
2800
|
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
2776
2801
|
}
|
2777
2802
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2778
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2803
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
2779
2804
|
this.bumpTo(i);
|
2780
2805
|
var s = this.clonePosition(), o = v(t, s);
|
2781
2806
|
return { value: n, location: o };
|
@@ -2794,7 +2819,7 @@ var Xn = (
|
|
2794
2819
|
var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2795
2820
|
if (m.err)
|
2796
2821
|
return m;
|
2797
|
-
var f =
|
2822
|
+
var f = zn(m.val);
|
2798
2823
|
if (f.length === 0)
|
2799
2824
|
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
2800
2825
|
var p = v(u, this.clonePosition());
|
@@ -2804,8 +2829,8 @@ var Xn = (
|
|
2804
2829
|
if (g.err)
|
2805
2830
|
return g;
|
2806
2831
|
var b = v(i, this.clonePosition());
|
2807
|
-
if (l &&
|
2808
|
-
var d =
|
2832
|
+
if (l && yt(l?.style, "::", 0)) {
|
2833
|
+
var d = Wn(l.style.slice(2));
|
2809
2834
|
if (a === "number") {
|
2810
2835
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2811
2836
|
return m.err ? m : {
|
@@ -2815,16 +2840,16 @@ var Xn = (
|
|
2815
2840
|
} else {
|
2816
2841
|
if (d.length === 0)
|
2817
2842
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2818
|
-
var
|
2819
|
-
this.locale && (
|
2843
|
+
var w = d;
|
2844
|
+
this.locale && (w = Pn(d, this.locale));
|
2820
2845
|
var f = {
|
2821
|
-
type:
|
2822
|
-
pattern:
|
2846
|
+
type: ne.dateTime,
|
2847
|
+
pattern: w,
|
2823
2848
|
location: l.styleLocation,
|
2824
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2825
|
-
},
|
2849
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(w) : {}
|
2850
|
+
}, E = a === "date" ? T.date : T.time;
|
2826
2851
|
return {
|
2827
|
-
val: { type:
|
2852
|
+
val: { type: E, value: n, location: b, style: f },
|
2828
2853
|
err: null
|
2829
2854
|
};
|
2830
2855
|
}
|
@@ -2846,39 +2871,39 @@ var Xn = (
|
|
2846
2871
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2847
2872
|
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, _({}, S)));
|
2848
2873
|
this.bumpSpace();
|
2849
|
-
var
|
2850
|
-
if (a !== "select" &&
|
2874
|
+
var F = this.parseIdentifierIfPossible(), P = 0;
|
2875
|
+
if (a !== "select" && F.value === "offset") {
|
2851
2876
|
if (!this.bumpIf(":"))
|
2852
2877
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
2853
2878
|
this.bumpSpace();
|
2854
2879
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2855
2880
|
if (m.err)
|
2856
2881
|
return m;
|
2857
|
-
this.bumpSpace(),
|
2882
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), P = m.val;
|
2858
2883
|
}
|
2859
|
-
var
|
2860
|
-
if (
|
2861
|
-
return
|
2884
|
+
var G = this.tryParsePluralOrSelectOptions(t, a, r, F);
|
2885
|
+
if (G.err)
|
2886
|
+
return G;
|
2862
2887
|
var g = this.tryParseArgumentClose(i);
|
2863
2888
|
if (g.err)
|
2864
2889
|
return g;
|
2865
|
-
var
|
2890
|
+
var C = v(i, this.clonePosition());
|
2866
2891
|
return a === "select" ? {
|
2867
2892
|
val: {
|
2868
2893
|
type: T.select,
|
2869
2894
|
value: n,
|
2870
|
-
options:
|
2871
|
-
location:
|
2895
|
+
options: vt(G.val),
|
2896
|
+
location: C
|
2872
2897
|
},
|
2873
2898
|
err: null
|
2874
2899
|
} : {
|
2875
2900
|
val: {
|
2876
2901
|
type: T.plural,
|
2877
2902
|
value: n,
|
2878
|
-
options:
|
2879
|
-
offset:
|
2903
|
+
options: vt(G.val),
|
2904
|
+
offset: P,
|
2880
2905
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2881
|
-
location:
|
2906
|
+
location: C
|
2882
2907
|
},
|
2883
2908
|
err: null
|
2884
2909
|
};
|
@@ -2926,16 +2951,16 @@ var Xn = (
|
|
2926
2951
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2927
2952
|
var n = [];
|
2928
2953
|
try {
|
2929
|
-
n =
|
2954
|
+
n = An(t);
|
2930
2955
|
} catch {
|
2931
2956
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
2932
2957
|
}
|
2933
2958
|
return {
|
2934
2959
|
val: {
|
2935
|
-
type:
|
2960
|
+
type: ne.number,
|
2936
2961
|
tokens: n,
|
2937
2962
|
location: r,
|
2938
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2963
|
+
parsedOptions: this.shouldParseSkeletons ? Nn(n) : {}
|
2939
2964
|
},
|
2940
2965
|
err: null
|
2941
2966
|
};
|
@@ -2983,7 +3008,7 @@ var Xn = (
|
|
2983
3008
|
break;
|
2984
3009
|
}
|
2985
3010
|
var h = v(i, this.clonePosition());
|
2986
|
-
return s ? (o *= n,
|
3011
|
+
return s ? (o *= n, Vn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
2987
3012
|
}, e.prototype.offset = function() {
|
2988
3013
|
return this.position.offset;
|
2989
3014
|
}, e.prototype.isEOF = function() {
|
@@ -2998,7 +3023,7 @@ var Xn = (
|
|
2998
3023
|
var t = this.position.offset;
|
2999
3024
|
if (t >= this.message.length)
|
3000
3025
|
throw Error("out of bound");
|
3001
|
-
var r =
|
3026
|
+
var r = ir(this.message, t);
|
3002
3027
|
if (r === void 0)
|
3003
3028
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3004
3029
|
return r;
|
@@ -3017,7 +3042,7 @@ var Xn = (
|
|
3017
3042
|
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);
|
3018
3043
|
}
|
3019
3044
|
}, e.prototype.bumpIf = function(t) {
|
3020
|
-
if (
|
3045
|
+
if (yt(this.message, t, this.offset())) {
|
3021
3046
|
for (var r = 0; r < t.length; r++)
|
3022
3047
|
this.bump();
|
3023
3048
|
return !0;
|
@@ -3039,7 +3064,7 @@ var Xn = (
|
|
3039
3064
|
break;
|
3040
3065
|
}
|
3041
3066
|
}, e.prototype.bumpSpace = function() {
|
3042
|
-
for (; !this.isEOF() &&
|
3067
|
+
for (; !this.isEOF() && sr(this.char()); )
|
3043
3068
|
this.bump();
|
3044
3069
|
}, e.prototype.peek = function() {
|
3045
3070
|
if (this.isEOF())
|
@@ -3049,46 +3074,46 @@ var Xn = (
|
|
3049
3074
|
}, e;
|
3050
3075
|
}()
|
3051
3076
|
);
|
3052
|
-
function
|
3077
|
+
function qe(e) {
|
3053
3078
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3054
3079
|
}
|
3055
|
-
function
|
3056
|
-
return
|
3080
|
+
function Qn(e) {
|
3081
|
+
return qe(e) || e === 47;
|
3057
3082
|
}
|
3058
|
-
function
|
3083
|
+
function qn(e) {
|
3059
3084
|
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;
|
3060
3085
|
}
|
3061
|
-
function
|
3086
|
+
function sr(e) {
|
3062
3087
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3063
3088
|
}
|
3064
|
-
function
|
3089
|
+
function Jn(e) {
|
3065
3090
|
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;
|
3066
3091
|
}
|
3067
|
-
function
|
3092
|
+
function Je(e) {
|
3068
3093
|
e.forEach(function(t) {
|
3069
|
-
if (delete t.location,
|
3094
|
+
if (delete t.location, qt(t) || Jt(t))
|
3070
3095
|
for (var r in t.options)
|
3071
|
-
delete t.options[r].location,
|
3072
|
-
else
|
3096
|
+
delete t.options[r].location, Je(t.options[r].value);
|
3097
|
+
else zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) && We(t.style) ? delete t.style.location : Yt(t) && Je(t.children);
|
3073
3098
|
});
|
3074
3099
|
}
|
3075
|
-
function
|
3100
|
+
function Yn(e, t) {
|
3076
3101
|
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3077
|
-
var r = new
|
3102
|
+
var r = new Zn(e, t).parse();
|
3078
3103
|
if (r.err) {
|
3079
3104
|
var n = SyntaxError(y[r.err.kind]);
|
3080
3105
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3081
3106
|
}
|
3082
|
-
return t?.captureLocation ||
|
3107
|
+
return t?.captureLocation || Je(r.val), r.val;
|
3083
3108
|
}
|
3084
|
-
var
|
3109
|
+
var ie;
|
3085
3110
|
(function(e) {
|
3086
3111
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3087
|
-
})(
|
3088
|
-
var
|
3112
|
+
})(ie || (ie = {}));
|
3113
|
+
var Ne = (
|
3089
3114
|
/** @class */
|
3090
3115
|
function(e) {
|
3091
|
-
|
3116
|
+
Me(t, e);
|
3092
3117
|
function t(r, n, i) {
|
3093
3118
|
var s = e.call(this, r) || this;
|
3094
3119
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3097,155 +3122,155 @@ var Me = (
|
|
3097
3122
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3098
3123
|
}, t;
|
3099
3124
|
}(Error)
|
3100
|
-
),
|
3125
|
+
), Et = (
|
3101
3126
|
/** @class */
|
3102
3127
|
function(e) {
|
3103
|
-
|
3128
|
+
Me(t, e);
|
3104
3129
|
function t(r, n, i, s) {
|
3105
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3130
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, s) || this;
|
3106
3131
|
}
|
3107
3132
|
return t;
|
3108
|
-
}(
|
3109
|
-
),
|
3133
|
+
}(Ne)
|
3134
|
+
), Kn = (
|
3110
3135
|
/** @class */
|
3111
3136
|
function(e) {
|
3112
|
-
|
3137
|
+
Me(t, e);
|
3113
3138
|
function t(r, n, i) {
|
3114
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3139
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
3115
3140
|
}
|
3116
3141
|
return t;
|
3117
|
-
}(
|
3118
|
-
),
|
3142
|
+
}(Ne)
|
3143
|
+
), ei = (
|
3119
3144
|
/** @class */
|
3120
3145
|
function(e) {
|
3121
|
-
|
3146
|
+
Me(t, e);
|
3122
3147
|
function t(r, n) {
|
3123
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3148
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
3124
3149
|
}
|
3125
3150
|
return t;
|
3126
|
-
}(
|
3127
|
-
),
|
3151
|
+
}(Ne)
|
3152
|
+
), L;
|
3128
3153
|
(function(e) {
|
3129
3154
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3130
|
-
})(
|
3131
|
-
function
|
3155
|
+
})(L || (L = {}));
|
3156
|
+
function ti(e) {
|
3132
3157
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3133
3158
|
var n = t[t.length - 1];
|
3134
|
-
return !n || n.type !==
|
3159
|
+
return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
|
3135
3160
|
}, []);
|
3136
3161
|
}
|
3137
|
-
function
|
3162
|
+
function ri(e) {
|
3138
3163
|
return typeof e == "function";
|
3139
3164
|
}
|
3140
|
-
function
|
3141
|
-
if (e.length === 1 &&
|
3165
|
+
function He(e, t, r, n, i, s, o) {
|
3166
|
+
if (e.length === 1 && dt(e[0]))
|
3142
3167
|
return [
|
3143
3168
|
{
|
3144
|
-
type:
|
3169
|
+
type: L.literal,
|
3145
3170
|
value: e[0].value
|
3146
3171
|
}
|
3147
3172
|
];
|
3148
3173
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3149
3174
|
var u = l[h];
|
3150
|
-
if (
|
3175
|
+
if (dt(u)) {
|
3151
3176
|
a.push({
|
3152
|
-
type:
|
3177
|
+
type: L.literal,
|
3153
3178
|
value: u.value
|
3154
3179
|
});
|
3155
3180
|
continue;
|
3156
3181
|
}
|
3157
|
-
if (
|
3182
|
+
if (wn(u)) {
|
3158
3183
|
typeof s == "number" && a.push({
|
3159
|
-
type:
|
3184
|
+
type: L.literal,
|
3160
3185
|
value: r.getNumberFormat(t).format(s)
|
3161
3186
|
});
|
3162
3187
|
continue;
|
3163
3188
|
}
|
3164
3189
|
var m = u.value;
|
3165
3190
|
if (!(i && m in i))
|
3166
|
-
throw new
|
3191
|
+
throw new ei(m, o);
|
3167
3192
|
var f = i[m];
|
3168
|
-
if (
|
3193
|
+
if (Cn(u)) {
|
3169
3194
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3170
|
-
type: typeof f == "string" ?
|
3195
|
+
type: typeof f == "string" ? L.literal : L.object,
|
3171
3196
|
value: f
|
3172
3197
|
});
|
3173
3198
|
continue;
|
3174
3199
|
}
|
3175
|
-
if (
|
3176
|
-
var p = typeof u.style == "string" ? n.date[u.style] :
|
3200
|
+
if (Zt(u)) {
|
3201
|
+
var p = typeof u.style == "string" ? n.date[u.style] : We(u.style) ? u.style.parsedOptions : void 0;
|
3177
3202
|
a.push({
|
3178
|
-
type:
|
3203
|
+
type: L.literal,
|
3179
3204
|
value: r.getDateTimeFormat(t, p).format(f)
|
3180
3205
|
});
|
3181
3206
|
continue;
|
3182
3207
|
}
|
3183
|
-
if (
|
3184
|
-
var p = typeof u.style == "string" ? n.time[u.style] :
|
3208
|
+
if (Qt(u)) {
|
3209
|
+
var p = typeof u.style == "string" ? n.time[u.style] : We(u.style) ? u.style.parsedOptions : n.time.medium;
|
3185
3210
|
a.push({
|
3186
|
-
type:
|
3211
|
+
type: L.literal,
|
3187
3212
|
value: r.getDateTimeFormat(t, p).format(f)
|
3188
3213
|
});
|
3189
3214
|
continue;
|
3190
3215
|
}
|
3191
|
-
if (
|
3192
|
-
var p = typeof u.style == "string" ? n.number[u.style] :
|
3216
|
+
if (zt(u)) {
|
3217
|
+
var p = typeof u.style == "string" ? n.number[u.style] : Kt(u.style) ? u.style.parsedOptions : void 0;
|
3193
3218
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3194
|
-
type:
|
3219
|
+
type: L.literal,
|
3195
3220
|
value: r.getNumberFormat(t, p).format(f)
|
3196
3221
|
});
|
3197
3222
|
continue;
|
3198
3223
|
}
|
3199
|
-
if (
|
3224
|
+
if (Yt(u)) {
|
3200
3225
|
var g = u.children, b = u.value, d = i[b];
|
3201
|
-
if (!
|
3202
|
-
throw new
|
3203
|
-
var
|
3204
|
-
return
|
3226
|
+
if (!ri(d))
|
3227
|
+
throw new Kn(b, "function", o);
|
3228
|
+
var w = He(g, t, r, n, i, s), E = d(w.map(function(P) {
|
3229
|
+
return P.value;
|
3205
3230
|
}));
|
3206
|
-
Array.isArray(
|
3231
|
+
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(P) {
|
3207
3232
|
return {
|
3208
|
-
type: typeof
|
3209
|
-
value:
|
3233
|
+
type: typeof P == "string" ? L.literal : L.object,
|
3234
|
+
value: P
|
3210
3235
|
};
|
3211
3236
|
}));
|
3212
3237
|
}
|
3213
|
-
if (
|
3238
|
+
if (qt(u)) {
|
3214
3239
|
var S = u.options[f] || u.options.other;
|
3215
3240
|
if (!S)
|
3216
|
-
throw new
|
3217
|
-
a.push.apply(a,
|
3241
|
+
throw new Et(u.value, f, Object.keys(u.options), o);
|
3242
|
+
a.push.apply(a, He(S.value, t, r, n, i));
|
3218
3243
|
continue;
|
3219
3244
|
}
|
3220
|
-
if (
|
3245
|
+
if (Jt(u)) {
|
3221
3246
|
var S = u.options["=".concat(f)];
|
3222
3247
|
if (!S) {
|
3223
3248
|
if (!Intl.PluralRules)
|
3224
|
-
throw new
|
3249
|
+
throw new Ne(`Intl.PluralRules is not available in this environment.
|
3225
3250
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3226
|
-
`,
|
3227
|
-
var
|
3228
|
-
S = u.options[
|
3251
|
+
`, ie.MISSING_INTL_API, o);
|
3252
|
+
var F = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3253
|
+
S = u.options[F] || u.options.other;
|
3229
3254
|
}
|
3230
3255
|
if (!S)
|
3231
|
-
throw new
|
3232
|
-
a.push.apply(a,
|
3256
|
+
throw new Et(u.value, f, Object.keys(u.options), o);
|
3257
|
+
a.push.apply(a, He(S.value, t, r, n, i, f - (u.offset || 0)));
|
3233
3258
|
continue;
|
3234
3259
|
}
|
3235
3260
|
}
|
3236
|
-
return
|
3261
|
+
return ti(a);
|
3237
3262
|
}
|
3238
|
-
function
|
3263
|
+
function ni(e, t) {
|
3239
3264
|
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3240
3265
|
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
3241
3266
|
}, {})) : e;
|
3242
3267
|
}
|
3243
|
-
function
|
3268
|
+
function ii(e, t) {
|
3244
3269
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3245
|
-
return r[n] =
|
3270
|
+
return r[n] = ni(e[n], t[n]), r;
|
3246
3271
|
}, _({}, e)) : e;
|
3247
3272
|
}
|
3248
|
-
function
|
3273
|
+
function ke(e) {
|
3249
3274
|
return {
|
3250
3275
|
create: function() {
|
3251
3276
|
return {
|
@@ -3259,39 +3284,39 @@ function Ue(e) {
|
|
3259
3284
|
}
|
3260
3285
|
};
|
3261
3286
|
}
|
3262
|
-
function
|
3287
|
+
function oi(e) {
|
3263
3288
|
return e === void 0 && (e = {
|
3264
3289
|
number: {},
|
3265
3290
|
dateTime: {},
|
3266
3291
|
pluralRules: {}
|
3267
3292
|
}), {
|
3268
|
-
getNumberFormat:
|
3293
|
+
getNumberFormat: De(function() {
|
3269
3294
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3270
3295
|
r[n] = arguments[n];
|
3271
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3296
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3272
3297
|
}, {
|
3273
|
-
cache:
|
3274
|
-
strategy:
|
3298
|
+
cache: ke(e.number),
|
3299
|
+
strategy: Ue.variadic
|
3275
3300
|
}),
|
3276
|
-
getDateTimeFormat:
|
3301
|
+
getDateTimeFormat: De(function() {
|
3277
3302
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3278
3303
|
r[n] = arguments[n];
|
3279
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3304
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
3280
3305
|
}, {
|
3281
|
-
cache:
|
3282
|
-
strategy:
|
3306
|
+
cache: ke(e.dateTime),
|
3307
|
+
strategy: Ue.variadic
|
3283
3308
|
}),
|
3284
|
-
getPluralRules:
|
3309
|
+
getPluralRules: De(function() {
|
3285
3310
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3286
3311
|
r[n] = arguments[n];
|
3287
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3312
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
3288
3313
|
}, {
|
3289
|
-
cache:
|
3290
|
-
strategy:
|
3314
|
+
cache: ke(e.pluralRules),
|
3315
|
+
strategy: Ue.variadic
|
3291
3316
|
})
|
3292
3317
|
};
|
3293
3318
|
}
|
3294
|
-
var
|
3319
|
+
var si = (
|
3295
3320
|
/** @class */
|
3296
3321
|
function() {
|
3297
3322
|
function e(t, r, n, i) {
|
@@ -3306,11 +3331,11 @@ var ni = (
|
|
3306
3331
|
if (l.length === 1)
|
3307
3332
|
return l[0].value;
|
3308
3333
|
var u = l.reduce(function(m, f) {
|
3309
|
-
return !m.length || f.type !==
|
3334
|
+
return !m.length || f.type !== L.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
3310
3335
|
}, []);
|
3311
3336
|
return u.length <= 1 ? u[0] || "" : u;
|
3312
3337
|
}, this.formatToParts = function(h) {
|
3313
|
-
return
|
3338
|
+
return He(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
3314
3339
|
}, this.resolvedOptions = function() {
|
3315
3340
|
var h;
|
3316
3341
|
return {
|
@@ -3323,13 +3348,13 @@ var ni = (
|
|
3323
3348
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3324
3349
|
var o = i || {};
|
3325
3350
|
o.formatters;
|
3326
|
-
var a =
|
3351
|
+
var a = gn(o, ["formatters"]);
|
3327
3352
|
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
3328
3353
|
} else
|
3329
3354
|
this.ast = t;
|
3330
3355
|
if (!Array.isArray(this.ast))
|
3331
3356
|
throw new TypeError("A message must be provided as a String or AST.");
|
3332
|
-
this.formats =
|
3357
|
+
this.formats = ii(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
3333
3358
|
}
|
3334
3359
|
return Object.defineProperty(e, "defaultLocale", {
|
3335
3360
|
get: function() {
|
@@ -3342,7 +3367,7 @@ var ni = (
|
|
3342
3367
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3343
3368
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3344
3369
|
}
|
3345
|
-
}, e.__parse =
|
3370
|
+
}, e.__parse = Yn, e.formats = {
|
3346
3371
|
number: {
|
3347
3372
|
integer: {
|
3348
3373
|
maximumFractionDigits: 0
|
@@ -3403,7 +3428,7 @@ var ni = (
|
|
3403
3428
|
}, e;
|
3404
3429
|
}()
|
3405
3430
|
);
|
3406
|
-
function
|
3431
|
+
function ai(e, t) {
|
3407
3432
|
if (t == null)
|
3408
3433
|
return;
|
3409
3434
|
if (t in e)
|
@@ -3424,92 +3449,92 @@ function ii(e, t) {
|
|
3424
3449
|
n = void 0;
|
3425
3450
|
return n;
|
3426
3451
|
}
|
3427
|
-
const
|
3452
|
+
const X = {}, li = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), ar = (e, t) => {
|
3428
3453
|
if (t == null)
|
3429
3454
|
return;
|
3430
|
-
if (t in
|
3431
|
-
return
|
3432
|
-
const r =
|
3455
|
+
if (t in X && e in X[t])
|
3456
|
+
return X[t][e];
|
3457
|
+
const r = Pe(t);
|
3433
3458
|
for (let n = 0; n < r.length; n++) {
|
3434
|
-
const i = r[n], s =
|
3459
|
+
const i = r[n], s = hi(i, e);
|
3435
3460
|
if (s)
|
3436
|
-
return
|
3461
|
+
return li(e, t, s);
|
3437
3462
|
}
|
3438
3463
|
};
|
3439
|
-
let
|
3440
|
-
const
|
3441
|
-
function
|
3442
|
-
return
|
3464
|
+
let it;
|
3465
|
+
const ae = Ie({});
|
3466
|
+
function ui(e) {
|
3467
|
+
return it[e] || null;
|
3443
3468
|
}
|
3444
|
-
function
|
3445
|
-
return e in
|
3469
|
+
function lr(e) {
|
3470
|
+
return e in it;
|
3446
3471
|
}
|
3447
|
-
function
|
3448
|
-
if (!
|
3472
|
+
function hi(e, t) {
|
3473
|
+
if (!lr(e))
|
3449
3474
|
return null;
|
3450
|
-
const r =
|
3451
|
-
return
|
3475
|
+
const r = ui(e);
|
3476
|
+
return ai(r, t);
|
3452
3477
|
}
|
3453
|
-
function
|
3478
|
+
function ci(e) {
|
3454
3479
|
if (e == null)
|
3455
3480
|
return;
|
3456
|
-
const t =
|
3481
|
+
const t = Pe(e);
|
3457
3482
|
for (let r = 0; r < t.length; r++) {
|
3458
3483
|
const n = t[r];
|
3459
|
-
if (
|
3484
|
+
if (lr(n))
|
3460
3485
|
return n;
|
3461
3486
|
}
|
3462
3487
|
}
|
3463
|
-
function
|
3464
|
-
delete
|
3488
|
+
function ur(e, ...t) {
|
3489
|
+
delete X[e], ae.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
3465
3490
|
}
|
3466
|
-
|
3467
|
-
[
|
3491
|
+
se(
|
3492
|
+
[ae],
|
3468
3493
|
([e]) => Object.keys(e)
|
3469
3494
|
);
|
3470
|
-
|
3471
|
-
const
|
3472
|
-
function
|
3473
|
-
|
3495
|
+
ae.subscribe((e) => it = e);
|
3496
|
+
const Se = {};
|
3497
|
+
function fi(e, t) {
|
3498
|
+
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
3474
3499
|
}
|
3475
|
-
function
|
3476
|
-
return
|
3500
|
+
function hr(e) {
|
3501
|
+
return Se[e];
|
3477
3502
|
}
|
3478
|
-
function
|
3479
|
-
return
|
3480
|
-
const r =
|
3503
|
+
function mi(e) {
|
3504
|
+
return Pe(e).map((t) => {
|
3505
|
+
const r = hr(t);
|
3481
3506
|
return [t, r ? [...r] : []];
|
3482
3507
|
}).filter(([, t]) => t.length > 0);
|
3483
3508
|
}
|
3484
|
-
function
|
3485
|
-
return e == null ? !1 :
|
3509
|
+
function Ye(e) {
|
3510
|
+
return e == null ? !1 : Pe(e).some(
|
3486
3511
|
(t) => {
|
3487
3512
|
var r;
|
3488
|
-
return (r =
|
3513
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
3489
3514
|
}
|
3490
3515
|
);
|
3491
3516
|
}
|
3492
|
-
function
|
3517
|
+
function di(e, t) {
|
3493
3518
|
return Promise.all(
|
3494
|
-
t.map((n) => (
|
3495
|
-
).then((n) =>
|
3496
|
-
}
|
3497
|
-
const
|
3498
|
-
function
|
3499
|
-
if (!
|
3500
|
-
return e in
|
3501
|
-
const t =
|
3502
|
-
return
|
3519
|
+
t.map((n) => (fi(e, n), n().then((i) => i.default || i)))
|
3520
|
+
).then((n) => ur(e, ...n));
|
3521
|
+
}
|
3522
|
+
const he = {};
|
3523
|
+
function cr(e) {
|
3524
|
+
if (!Ye(e))
|
3525
|
+
return e in he ? he[e] : Promise.resolve();
|
3526
|
+
const t = mi(e);
|
3527
|
+
return he[e] = Promise.all(
|
3503
3528
|
t.map(
|
3504
|
-
([r, n]) =>
|
3529
|
+
([r, n]) => di(r, n)
|
3505
3530
|
)
|
3506
3531
|
).then(() => {
|
3507
|
-
if (
|
3508
|
-
return
|
3509
|
-
delete
|
3510
|
-
}),
|
3532
|
+
if (Ye(e))
|
3533
|
+
return cr(e);
|
3534
|
+
delete he[e];
|
3535
|
+
}), he[e];
|
3511
3536
|
}
|
3512
|
-
const
|
3537
|
+
const pi = {
|
3513
3538
|
number: {
|
3514
3539
|
scientific: { notation: "scientific" },
|
3515
3540
|
engineering: { notation: "engineering" },
|
@@ -3538,150 +3563,150 @@ const fi = {
|
|
3538
3563
|
timeZoneName: "short"
|
3539
3564
|
}
|
3540
3565
|
}
|
3541
|
-
},
|
3566
|
+
}, gi = {
|
3542
3567
|
fallbackLocale: null,
|
3543
3568
|
loadingDelay: 200,
|
3544
|
-
formats:
|
3569
|
+
formats: pi,
|
3545
3570
|
warnOnMissingMessages: !0,
|
3546
3571
|
handleMissingMessage: void 0,
|
3547
3572
|
ignoreTag: !0
|
3548
|
-
},
|
3549
|
-
function
|
3550
|
-
return
|
3573
|
+
}, bi = gi;
|
3574
|
+
function oe() {
|
3575
|
+
return bi;
|
3551
3576
|
}
|
3552
|
-
const
|
3553
|
-
var
|
3577
|
+
const $e = Ie(!1);
|
3578
|
+
var yi = Object.defineProperty, vi = Object.defineProperties, _i = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ci = (e, t) => {
|
3554
3579
|
for (var r in t || (t = {}))
|
3555
|
-
|
3556
|
-
if (
|
3557
|
-
for (var r of
|
3558
|
-
|
3580
|
+
Ei.call(t, r) && Ct(e, r, t[r]);
|
3581
|
+
if (xt)
|
3582
|
+
for (var r of xt(t))
|
3583
|
+
xi.call(t, r) && Ct(e, r, t[r]);
|
3559
3584
|
return e;
|
3560
|
-
},
|
3561
|
-
let
|
3562
|
-
const
|
3563
|
-
function
|
3585
|
+
}, wi = (e, t) => vi(e, _i(t));
|
3586
|
+
let Ke;
|
3587
|
+
const Ae = Ie(null);
|
3588
|
+
function wt(e) {
|
3564
3589
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3565
3590
|
}
|
3566
|
-
function
|
3567
|
-
const r =
|
3568
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3591
|
+
function Pe(e, t = oe().fallbackLocale) {
|
3592
|
+
const r = wt(e);
|
3593
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
3569
3594
|
}
|
3570
|
-
function
|
3571
|
-
return
|
3595
|
+
function q() {
|
3596
|
+
return Ke ?? void 0;
|
3572
3597
|
}
|
3573
|
-
|
3574
|
-
|
3598
|
+
Ae.subscribe((e) => {
|
3599
|
+
Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3575
3600
|
});
|
3576
|
-
const
|
3577
|
-
if (e &&
|
3578
|
-
const { loadingDelay: t } =
|
3601
|
+
const Hi = (e) => {
|
3602
|
+
if (e && ci(e) && Ye(e)) {
|
3603
|
+
const { loadingDelay: t } = oe();
|
3579
3604
|
let r;
|
3580
|
-
return typeof window < "u" &&
|
3581
|
-
() =>
|
3605
|
+
return typeof window < "u" && q() != null && t ? r = window.setTimeout(
|
3606
|
+
() => $e.set(!0),
|
3582
3607
|
t
|
3583
|
-
) :
|
3584
|
-
|
3608
|
+
) : $e.set(!0), cr(e).then(() => {
|
3609
|
+
Ae.set(e);
|
3585
3610
|
}).finally(() => {
|
3586
|
-
clearTimeout(r),
|
3611
|
+
clearTimeout(r), $e.set(!1);
|
3587
3612
|
});
|
3588
3613
|
}
|
3589
|
-
return
|
3590
|
-
},
|
3591
|
-
set:
|
3592
|
-
}),
|
3614
|
+
return Ae.set(e);
|
3615
|
+
}, W = wi(Ci({}, Ae), {
|
3616
|
+
set: Hi
|
3617
|
+
}), Le = (e) => {
|
3593
3618
|
const t = /* @__PURE__ */ Object.create(null);
|
3594
3619
|
return (n) => {
|
3595
3620
|
const i = JSON.stringify(n);
|
3596
3621
|
return i in t ? t[i] : t[i] = e(n);
|
3597
3622
|
};
|
3598
3623
|
};
|
3599
|
-
var
|
3624
|
+
var Si = Object.defineProperty, Be = Object.getOwnPropertySymbols, fr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
3600
3625
|
for (var r in t || (t = {}))
|
3601
|
-
|
3602
|
-
if (
|
3603
|
-
for (var r of
|
3604
|
-
|
3626
|
+
fr.call(t, r) && Ht(e, r, t[r]);
|
3627
|
+
if (Be)
|
3628
|
+
for (var r of Be(t))
|
3629
|
+
mr.call(t, r) && Ht(e, r, t[r]);
|
3605
3630
|
return e;
|
3606
|
-
},
|
3631
|
+
}, le = (e, t) => {
|
3607
3632
|
var r = {};
|
3608
3633
|
for (var n in e)
|
3609
|
-
|
3610
|
-
if (e != null &&
|
3611
|
-
for (var n of
|
3612
|
-
t.indexOf(n) < 0 &&
|
3634
|
+
fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3635
|
+
if (e != null && Be)
|
3636
|
+
for (var n of Be(e))
|
3637
|
+
t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
|
3613
3638
|
return r;
|
3614
3639
|
};
|
3615
|
-
const
|
3616
|
-
const { formats: r } =
|
3640
|
+
const ge = (e, t) => {
|
3641
|
+
const { formats: r } = oe();
|
3617
3642
|
if (e in r && t in r[e])
|
3618
3643
|
return r[e][t];
|
3619
3644
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3620
|
-
},
|
3645
|
+
}, Ti = Le(
|
3621
3646
|
(e) => {
|
3622
|
-
var t = e, { locale: r, format: n } = t, i =
|
3647
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
3623
3648
|
if (r == null)
|
3624
3649
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3625
|
-
return n && (i =
|
3650
|
+
return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
|
3626
3651
|
}
|
3627
|
-
),
|
3652
|
+
), Ai = Le(
|
3628
3653
|
(e) => {
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
3654
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
3630
3655
|
if (r == null)
|
3631
3656
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3632
|
-
return n ? i =
|
3657
|
+
return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
|
3633
3658
|
}
|
3634
|
-
),
|
3659
|
+
), Bi = Le(
|
3635
3660
|
(e) => {
|
3636
|
-
var t = e, { locale: r, format: n } = t, i =
|
3661
|
+
var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
|
3637
3662
|
if (r == null)
|
3638
3663
|
throw new Error(
|
3639
3664
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3640
3665
|
);
|
3641
|
-
return n ? i =
|
3666
|
+
return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
|
3642
3667
|
}
|
3643
|
-
),
|
3668
|
+
), Ii = (e = {}) => {
|
3644
3669
|
var t = e, {
|
3645
|
-
locale: r =
|
3646
|
-
} = t, n =
|
3670
|
+
locale: r = q()
|
3671
|
+
} = t, n = le(t, [
|
3647
3672
|
"locale"
|
3648
3673
|
]);
|
3649
|
-
return
|
3650
|
-
},
|
3674
|
+
return Ti(ot({ locale: r }, n));
|
3675
|
+
}, Mi = (e = {}) => {
|
3651
3676
|
var t = e, {
|
3652
|
-
locale: r =
|
3653
|
-
} = t, n =
|
3677
|
+
locale: r = q()
|
3678
|
+
} = t, n = le(t, [
|
3654
3679
|
"locale"
|
3655
3680
|
]);
|
3656
|
-
return
|
3657
|
-
},
|
3681
|
+
return Ai(ot({ locale: r }, n));
|
3682
|
+
}, Ni = (e = {}) => {
|
3658
3683
|
var t = e, {
|
3659
|
-
locale: r =
|
3660
|
-
} = t, n =
|
3684
|
+
locale: r = q()
|
3685
|
+
} = t, n = le(t, [
|
3661
3686
|
"locale"
|
3662
3687
|
]);
|
3663
|
-
return
|
3664
|
-
},
|
3688
|
+
return Bi(ot({ locale: r }, n));
|
3689
|
+
}, Pi = Le(
|
3665
3690
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3666
|
-
(e, t =
|
3667
|
-
ignoreTag:
|
3691
|
+
(e, t = q()) => new si(e, t, oe().formats, {
|
3692
|
+
ignoreTag: oe().ignoreTag
|
3668
3693
|
})
|
3669
|
-
),
|
3694
|
+
), Li = (e, t = {}) => {
|
3670
3695
|
var r, n, i, s;
|
3671
3696
|
let o = t;
|
3672
3697
|
typeof e == "object" && (o = e, e = o.id);
|
3673
3698
|
const {
|
3674
3699
|
values: a,
|
3675
|
-
locale: h =
|
3700
|
+
locale: h = q(),
|
3676
3701
|
default: l
|
3677
3702
|
} = o;
|
3678
3703
|
if (h == null)
|
3679
3704
|
throw new Error(
|
3680
3705
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3681
3706
|
);
|
3682
|
-
let u =
|
3707
|
+
let u = ar(e, h);
|
3683
3708
|
if (!u)
|
3684
|
-
u = (s = (i = (n = (r =
|
3709
|
+
u = (s = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
3685
3710
|
else if (typeof u != "string")
|
3686
3711
|
return console.warn(
|
3687
3712
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3690,7 +3715,7 @@ const pe = (e, t) => {
|
|
3690
3715
|
return u;
|
3691
3716
|
let m = u;
|
3692
3717
|
try {
|
3693
|
-
m =
|
3718
|
+
m = Pi(u, h).format(a);
|
3694
3719
|
} catch (f) {
|
3695
3720
|
f instanceof Error && console.warn(
|
3696
3721
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3698,24 +3723,24 @@ const pe = (e, t) => {
|
|
3698
3723
|
);
|
3699
3724
|
}
|
3700
3725
|
return m;
|
3701
|
-
},
|
3702
|
-
|
3703
|
-
|
3704
|
-
|
3705
|
-
|
3706
|
-
|
3707
|
-
function
|
3708
|
-
|
3709
|
-
r == null && (
|
3726
|
+
}, Oi = (e, t) => Ni(t).format(e), Fi = (e, t) => Mi(t).format(e), Ri = (e, t) => Ii(t).format(e), Di = (e, t = q()) => ar(e, t);
|
3727
|
+
se([W, ae], () => Li);
|
3728
|
+
se([W], () => Oi);
|
3729
|
+
se([W], () => Fi);
|
3730
|
+
se([W], () => Ri);
|
3731
|
+
se([W, ae], () => Di);
|
3732
|
+
function Ui({ withLocale: e, translations: t }) {
|
3733
|
+
W.subscribe((r) => {
|
3734
|
+
r == null && (ae.set(t), W.set(e));
|
3710
3735
|
});
|
3711
3736
|
}
|
3712
|
-
function
|
3713
|
-
|
3737
|
+
function St(e, t) {
|
3738
|
+
ur(e, t);
|
3714
3739
|
}
|
3715
|
-
function
|
3716
|
-
|
3740
|
+
function Gi(e) {
|
3741
|
+
W.set(e);
|
3717
3742
|
}
|
3718
|
-
const
|
3743
|
+
const Tt = {
|
3719
3744
|
en: {
|
3720
3745
|
login: "Login",
|
3721
3746
|
register: "Register",
|
@@ -3772,23 +3797,23 @@ const wt = {
|
|
3772
3797
|
deposit: "Deposit"
|
3773
3798
|
}
|
3774
3799
|
};
|
3775
|
-
function
|
3776
|
-
|
3800
|
+
function ki(e) {
|
3801
|
+
Br(e, "svelte-1lgwoo3", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
|
3777
3802
|
}
|
3778
|
-
function
|
3803
|
+
function At(e, t, r) {
|
3779
3804
|
const n = e.slice();
|
3780
3805
|
return n[49] = t[r], n[51] = r, n;
|
3781
3806
|
}
|
3782
|
-
function
|
3807
|
+
function Bt(e, t, r) {
|
3783
3808
|
const n = e.slice();
|
3784
3809
|
return n[52] = t[r], n;
|
3785
3810
|
}
|
3786
|
-
function
|
3811
|
+
function It(e, t, r) {
|
3787
3812
|
const n = e.slice();
|
3788
3813
|
return n[55] = t[r], n[57] = r, n;
|
3789
3814
|
}
|
3790
|
-
function
|
3791
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3815
|
+
function Mt(e) {
|
3816
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = te(
|
3792
3817
|
/*sliderdata*/
|
3793
3818
|
e[9]
|
3794
3819
|
);
|
@@ -3797,134 +3822,134 @@ function At(e) {
|
|
3797
3822
|
o[49].id
|
3798
3823
|
);
|
3799
3824
|
for (let o = 0; o < i.length; o += 1) {
|
3800
|
-
let a =
|
3801
|
-
r.set(h, t[o] =
|
3825
|
+
let a = At(e, i, o), h = s(a);
|
3826
|
+
r.set(h, t[o] = Rt(h, a));
|
3802
3827
|
}
|
3803
3828
|
return {
|
3804
3829
|
c() {
|
3805
3830
|
for (let o = 0; o < t.length; o += 1)
|
3806
3831
|
t[o].c();
|
3807
|
-
n =
|
3832
|
+
n = me();
|
3808
3833
|
},
|
3809
3834
|
m(o, a) {
|
3810
3835
|
for (let h = 0; h < t.length; h += 1)
|
3811
3836
|
t[h] && t[h].m(o, a);
|
3812
|
-
|
3837
|
+
D(o, n, a);
|
3813
3838
|
},
|
3814
3839
|
p(o, a) {
|
3815
3840
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3816
|
-
77775 && (i =
|
3841
|
+
77775 && (i = te(
|
3817
3842
|
/*sliderdata*/
|
3818
3843
|
o[9]
|
3819
|
-
), t =
|
3844
|
+
), t = $t(t, a, s, 1, o, i, r, n.parentNode, kt, Rt, n, At));
|
3820
3845
|
},
|
3821
3846
|
d(o) {
|
3822
|
-
o &&
|
3847
|
+
o && O(n);
|
3823
3848
|
for (let a = 0; a < t.length; a += 1)
|
3824
3849
|
t[a].d(o);
|
3825
3850
|
}
|
3826
3851
|
};
|
3827
3852
|
}
|
3828
|
-
function
|
3853
|
+
function $i(e) {
|
3829
3854
|
let t, r = (
|
3830
3855
|
/*category*/
|
3831
3856
|
e[49].name + ""
|
3832
3857
|
), n;
|
3833
3858
|
return {
|
3834
3859
|
c() {
|
3835
|
-
t =
|
3860
|
+
t = I("button"), n = be(r), H(t, "class", "CategoryButton");
|
3836
3861
|
},
|
3837
3862
|
m(i, s) {
|
3838
|
-
|
3863
|
+
D(i, t, s), B(t, n);
|
3839
3864
|
},
|
3840
3865
|
p(i, s) {
|
3841
3866
|
s[0] & /*sliderdata*/
|
3842
3867
|
512 && r !== (r = /*category*/
|
3843
|
-
i[49].name + "") &&
|
3868
|
+
i[49].name + "") && tt(n, r);
|
3844
3869
|
},
|
3845
3870
|
d(i) {
|
3846
|
-
i &&
|
3871
|
+
i && O(t);
|
3847
3872
|
}
|
3848
3873
|
};
|
3849
3874
|
}
|
3850
|
-
function
|
3875
|
+
function ji(e) {
|
3851
3876
|
let t, r = (
|
3852
3877
|
/*category*/
|
3853
3878
|
e[49].label + ""
|
3854
3879
|
), n, i;
|
3855
3880
|
return {
|
3856
3881
|
c() {
|
3857
|
-
t =
|
3882
|
+
t = I("a"), n = be(r), H(t, "href", i = /*category*/
|
3858
3883
|
e[49].path);
|
3859
3884
|
},
|
3860
3885
|
m(s, o) {
|
3861
|
-
|
3886
|
+
D(s, t, o), B(t, n);
|
3862
3887
|
},
|
3863
3888
|
p(s, o) {
|
3864
3889
|
o[0] & /*sliderdata*/
|
3865
3890
|
512 && r !== (r = /*category*/
|
3866
|
-
s[49].label + "") &&
|
3891
|
+
s[49].label + "") && tt(n, r), o[0] & /*sliderdata*/
|
3867
3892
|
512 && i !== (i = /*category*/
|
3868
3893
|
s[49].path) && H(t, "href", i);
|
3869
3894
|
},
|
3870
3895
|
d(s) {
|
3871
|
-
s &&
|
3896
|
+
s && O(t);
|
3872
3897
|
}
|
3873
3898
|
};
|
3874
3899
|
}
|
3875
|
-
function
|
3900
|
+
function Nt(e) {
|
3876
3901
|
let t, r = (
|
3877
3902
|
/*subGroupsData*/
|
3878
3903
|
e[10].length > 0 && /*showsubgroups*/
|
3879
|
-
e[2] == "true" &&
|
3904
|
+
e[2] == "true" && Pt(e)
|
3880
3905
|
);
|
3881
3906
|
return {
|
3882
3907
|
c() {
|
3883
|
-
r && r.c(), t =
|
3908
|
+
r && r.c(), t = me();
|
3884
3909
|
},
|
3885
3910
|
m(n, i) {
|
3886
|
-
r && r.m(n, i),
|
3911
|
+
r && r.m(n, i), D(n, t, i);
|
3887
3912
|
},
|
3888
3913
|
p(n, i) {
|
3889
3914
|
/*subGroupsData*/
|
3890
3915
|
n[10].length > 0 && /*showsubgroups*/
|
3891
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3916
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = Pt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3892
3917
|
},
|
3893
3918
|
d(n) {
|
3894
|
-
n &&
|
3919
|
+
n && O(t), r && r.d(n);
|
3895
3920
|
}
|
3896
3921
|
};
|
3897
3922
|
}
|
3898
|
-
function
|
3899
|
-
let t, r =
|
3923
|
+
function Pt(e) {
|
3924
|
+
let t, r = te(
|
3900
3925
|
/*subGroupsData*/
|
3901
3926
|
e[10]
|
3902
3927
|
), n = [];
|
3903
3928
|
for (let i = 0; i < r.length; i += 1)
|
3904
|
-
n[i] =
|
3929
|
+
n[i] = Ft(Bt(e, r, i));
|
3905
3930
|
return {
|
3906
3931
|
c() {
|
3907
|
-
t =
|
3932
|
+
t = I("ul");
|
3908
3933
|
for (let i = 0; i < n.length; i += 1)
|
3909
3934
|
n[i].c();
|
3910
3935
|
H(t, "class", "DropDown");
|
3911
3936
|
},
|
3912
3937
|
m(i, s) {
|
3913
|
-
|
3938
|
+
D(i, t, s);
|
3914
3939
|
for (let o = 0; o < n.length; o += 1)
|
3915
3940
|
n[o] && n[o].m(t, null);
|
3916
3941
|
},
|
3917
3942
|
p(i, s) {
|
3918
3943
|
if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
3919
3944
|
10176) {
|
3920
|
-
r =
|
3945
|
+
r = te(
|
3921
3946
|
/*subGroupsData*/
|
3922
3947
|
i[10]
|
3923
3948
|
);
|
3924
3949
|
let o;
|
3925
3950
|
for (o = 0; o < r.length; o += 1) {
|
3926
|
-
const a =
|
3927
|
-
n[o] ? n[o].p(a, s) : (n[o] =
|
3951
|
+
const a = Bt(i, r, o);
|
3952
|
+
n[o] ? n[o].p(a, s) : (n[o] = Ft(a), n[o].c(), n[o].m(t, null));
|
3928
3953
|
}
|
3929
3954
|
for (; o < n.length; o += 1)
|
3930
3955
|
n[o].d(1);
|
@@ -3932,11 +3957,11 @@ function Bt(e) {
|
|
3932
3957
|
}
|
3933
3958
|
},
|
3934
3959
|
d(i) {
|
3935
|
-
i &&
|
3960
|
+
i && O(t), Nr(n, i);
|
3936
3961
|
}
|
3937
3962
|
};
|
3938
3963
|
}
|
3939
|
-
function
|
3964
|
+
function Lt(e) {
|
3940
3965
|
let t, r, n = (
|
3941
3966
|
/*subGroupItem*/
|
3942
3967
|
e[55]?.name + ""
|
@@ -3944,7 +3969,7 @@ function Mt(e) {
|
|
3944
3969
|
function l(...u) {
|
3945
3970
|
return (
|
3946
3971
|
/*click_handler_1*/
|
3947
|
-
e[
|
3972
|
+
e[33](
|
3948
3973
|
/*category*/
|
3949
3974
|
e[49],
|
3950
3975
|
/*index*/
|
@@ -3959,7 +3984,7 @@ function Mt(e) {
|
|
3959
3984
|
}
|
3960
3985
|
return {
|
3961
3986
|
c() {
|
3962
|
-
t =
|
3987
|
+
t = I("li"), r = I("a"), i = be(n), o = Z(), H(r, "class", s = "SubDropDown " + /*index*/
|
3963
3988
|
(e[51] == /*activeIndex*/
|
3964
3989
|
e[6] && /*activeSubIndex*/
|
3965
3990
|
(e[7] == /*subindex*/
|
@@ -3968,12 +3993,12 @@ function Mt(e) {
|
|
3968
3993
|
e[57]) ? "active" : ""));
|
3969
3994
|
},
|
3970
3995
|
m(u, m) {
|
3971
|
-
|
3996
|
+
D(u, t, m), B(t, r), B(r, i), B(t, o), a || (h = Te(t, "click", l), a = !0);
|
3972
3997
|
},
|
3973
3998
|
p(u, m) {
|
3974
3999
|
e = u, m[0] & /*subGroupsData*/
|
3975
4000
|
1024 && n !== (n = /*subGroupItem*/
|
3976
|
-
e[55]?.name + "") &&
|
4001
|
+
e[55]?.name + "") && tt(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
3977
4002
|
1984 && s !== (s = "SubDropDown " + /*index*/
|
3978
4003
|
(e[51] == /*activeIndex*/
|
3979
4004
|
e[6] && /*activeSubIndex*/
|
@@ -3983,37 +4008,37 @@ function Mt(e) {
|
|
3983
4008
|
e[57]) ? "active" : "")) && H(r, "class", s);
|
3984
4009
|
},
|
3985
4010
|
d(u) {
|
3986
|
-
u &&
|
4011
|
+
u && O(t), a = !1, h();
|
3987
4012
|
}
|
3988
4013
|
};
|
3989
4014
|
}
|
3990
|
-
function
|
4015
|
+
function Ot(e, t) {
|
3991
4016
|
let r, n, i = (
|
3992
4017
|
/*index*/
|
3993
4018
|
t[51] == /*subGroup*/
|
3994
|
-
t[52].index &&
|
4019
|
+
t[52].index && Lt(t)
|
3995
4020
|
);
|
3996
4021
|
return {
|
3997
4022
|
key: e,
|
3998
4023
|
first: null,
|
3999
4024
|
c() {
|
4000
|
-
r =
|
4025
|
+
r = me(), i && i.c(), n = me(), this.first = r;
|
4001
4026
|
},
|
4002
4027
|
m(s, o) {
|
4003
|
-
|
4028
|
+
D(s, r, o), i && i.m(s, o), D(s, n, o);
|
4004
4029
|
},
|
4005
4030
|
p(s, o) {
|
4006
4031
|
t = s, /*index*/
|
4007
4032
|
t[51] == /*subGroup*/
|
4008
|
-
t[52].index ? i ? i.p(t, o) : (i =
|
4033
|
+
t[52].index ? i ? i.p(t, o) : (i = Lt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4009
4034
|
},
|
4010
4035
|
d(s) {
|
4011
|
-
s && (
|
4036
|
+
s && (O(r), O(n)), i && i.d(s);
|
4012
4037
|
}
|
4013
4038
|
};
|
4014
4039
|
}
|
4015
|
-
function
|
4016
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4040
|
+
function Ft(e) {
|
4041
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = te(
|
4017
4042
|
/*subGroup*/
|
4018
4043
|
e[52].items
|
4019
4044
|
);
|
@@ -4022,40 +4047,40 @@ function Pt(e) {
|
|
4022
4047
|
o[55].id
|
4023
4048
|
);
|
4024
4049
|
for (let o = 0; o < i.length; o += 1) {
|
4025
|
-
let a =
|
4026
|
-
r.set(h, t[o] =
|
4050
|
+
let a = It(e, i, o), h = s(a);
|
4051
|
+
r.set(h, t[o] = Ot(h, a));
|
4027
4052
|
}
|
4028
4053
|
return {
|
4029
4054
|
c() {
|
4030
4055
|
for (let o = 0; o < t.length; o += 1)
|
4031
4056
|
t[o].c();
|
4032
|
-
n =
|
4057
|
+
n = me();
|
4033
4058
|
},
|
4034
4059
|
m(o, a) {
|
4035
4060
|
for (let h = 0; h < t.length; h += 1)
|
4036
4061
|
t[h] && t[h].m(o, a);
|
4037
|
-
|
4062
|
+
D(o, n, a);
|
4038
4063
|
},
|
4039
4064
|
p(o, a) {
|
4040
4065
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4041
|
-
10176 && (i =
|
4066
|
+
10176 && (i = te(
|
4042
4067
|
/*subGroup*/
|
4043
4068
|
o[52].items
|
4044
|
-
), t =
|
4069
|
+
), t = $t(t, a, s, 1, o, i, r, n.parentNode, kt, Ot, n, It));
|
4045
4070
|
},
|
4046
4071
|
d(o) {
|
4047
|
-
o &&
|
4072
|
+
o && O(n);
|
4048
4073
|
for (let a = 0; a < t.length; a += 1)
|
4049
4074
|
t[a].d(o);
|
4050
4075
|
}
|
4051
4076
|
};
|
4052
4077
|
}
|
4053
|
-
function
|
4078
|
+
function Rt(e, t) {
|
4054
4079
|
let r, n, i, s, o, a, h, l, u, m, f;
|
4055
|
-
function p(
|
4080
|
+
function p(E, S) {
|
4056
4081
|
return (
|
4057
4082
|
/*location*/
|
4058
|
-
|
4083
|
+
E[0] === "headerMain" ? ji : $i
|
4059
4084
|
);
|
4060
4085
|
}
|
4061
4086
|
let g = p(t), b = g(t), d = (
|
@@ -4063,17 +4088,17 @@ function Ot(e, t) {
|
|
4063
4088
|
t[11][
|
4064
4089
|
/*index*/
|
4065
4090
|
t[51]
|
4066
|
-
] == !0 &&
|
4091
|
+
] == !0 && Nt(t)
|
4067
4092
|
);
|
4068
|
-
function
|
4093
|
+
function w(...E) {
|
4069
4094
|
return (
|
4070
4095
|
/*click_handler_2*/
|
4071
|
-
t[
|
4096
|
+
t[34](
|
4072
4097
|
/*category*/
|
4073
4098
|
t[49],
|
4074
4099
|
/*index*/
|
4075
4100
|
t[51],
|
4076
|
-
...
|
4101
|
+
...E
|
4077
4102
|
)
|
4078
4103
|
);
|
4079
4104
|
}
|
@@ -4081,8 +4106,8 @@ function Ot(e, t) {
|
|
4081
4106
|
key: e,
|
4082
4107
|
first: null,
|
4083
4108
|
c() {
|
4084
|
-
r =
|
4085
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
4109
|
+
r = I("li"), n = I("div"), i = I("img"), a = Z(), b.c(), h = Z(), d && d.c(), l = Z(), H(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
|
4110
|
+
(t[3] === "true" ? "" : "DisplayNone")), ct(i.src, o = /*handleSrc*/
|
4086
4111
|
t[16](
|
4087
4112
|
/*category*/
|
4088
4113
|
t[49]
|
@@ -4098,14 +4123,14 @@ function Ot(e, t) {
|
|
4098
4123
|
)) + " " + /*location*/
|
4099
4124
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), H(r, "part", "CarouselItem"), this.first = r;
|
4100
4125
|
},
|
4101
|
-
m(
|
4102
|
-
|
4126
|
+
m(E, S) {
|
4127
|
+
D(E, r, S), B(r, n), B(n, i), B(r, a), b.m(r, null), B(r, h), d && d.m(r, null), B(r, l), m || (f = Te(r, "click", w), m = !0);
|
4103
4128
|
},
|
4104
|
-
p(
|
4105
|
-
t =
|
4129
|
+
p(E, S) {
|
4130
|
+
t = E, S[0] & /*categoriesicon*/
|
4106
4131
|
8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
|
4107
4132
|
(t[3] === "true" ? "" : "DisplayNone")) && H(i, "class", s), S[0] & /*sliderdata*/
|
4108
|
-
512 && !
|
4133
|
+
512 && !ct(i.src, o = /*handleSrc*/
|
4109
4134
|
t[16](
|
4110
4135
|
/*category*/
|
4111
4136
|
t[49]
|
@@ -4113,7 +4138,7 @@ function Ot(e, t) {
|
|
4113
4138
|
t[11][
|
4114
4139
|
/*index*/
|
4115
4140
|
t[51]
|
4116
|
-
] == !0 ? d ? d.p(t, S) : (d =
|
4141
|
+
] == !0 ? d ? d.p(t, S) : (d = Nt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), S[0] & /*activeindex, sliderdata, location*/
|
4117
4142
|
515 && u !== (u = "CarouselItem " + /*activeindex*/
|
4118
4143
|
(t[1]?.toString().indexOf("$") > -1 ? (
|
4119
4144
|
/*activeindex*/
|
@@ -4126,215 +4151,204 @@ function Ot(e, t) {
|
|
4126
4151
|
)) + " " + /*location*/
|
4127
4152
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && H(r, "class", u);
|
4128
4153
|
},
|
4129
|
-
d(
|
4130
|
-
|
4154
|
+
d(E) {
|
4155
|
+
E && O(r), b.d(), d && d.d(), m = !1, f();
|
4131
4156
|
}
|
4132
4157
|
};
|
4133
4158
|
}
|
4134
|
-
function
|
4159
|
+
function Vi(e) {
|
4135
4160
|
let t, r, n, i, s, o, a, h, l, u, m, f, p, g, b, d = (
|
4136
4161
|
/*sliderdata*/
|
4137
|
-
e[9].length > 0 &&
|
4162
|
+
e[9].length > 0 && Mt(e)
|
4138
4163
|
);
|
4139
4164
|
return {
|
4140
4165
|
c() {
|
4141
|
-
t =
|
4166
|
+
t = I("div"), r = I("div"), n = I("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = Z(), s = I("div"), o = I("ul"), a = I("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = Z(), d && d.c(), l = Z(), u = I("div"), u.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', H(n, "class", "CarouselLeftArrow"), H(a, "class", "TouchOnly"), H(o, "id", "CarouselNav"), H(o, "class", "CarouselItems"), H(s, "class", "CarouselNavWrap"), H(u, "class", "CarouselRightArrow"), H(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4142
4167
|
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), H(r, "style", f = /*location*/
|
4143
4168
|
e[0] === "headerMain" ? "max-width: auto" : void 0), H(t, "class", p = "CarouselWrapper " + /*location*/
|
4144
4169
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4145
4170
|
},
|
4146
|
-
m(
|
4147
|
-
|
4148
|
-
|
4171
|
+
m(w, E) {
|
4172
|
+
D(w, t, E), B(t, r), B(r, n), B(r, i), B(r, s), B(s, o), B(o, a), B(o, h), d && d.m(o, null), e[35](o), e[36](s), B(r, l), B(r, u), e[38](t), g || (b = [
|
4173
|
+
Te(
|
4149
4174
|
n,
|
4150
4175
|
"click",
|
4151
4176
|
/*click_handler*/
|
4152
|
-
e[
|
4177
|
+
e[32]
|
4153
4178
|
),
|
4154
|
-
|
4179
|
+
Te(
|
4155
4180
|
u,
|
4156
4181
|
"click",
|
4157
4182
|
/*click_handler_3*/
|
4158
|
-
e[
|
4183
|
+
e[37]
|
4159
4184
|
)
|
4160
4185
|
], g = !0);
|
4161
4186
|
},
|
4162
|
-
p(
|
4187
|
+
p(w, E) {
|
4163
4188
|
/*sliderdata*/
|
4164
|
-
|
4189
|
+
w[9].length > 0 ? d ? d.p(w, E) : (d = Mt(w), d.c(), d.m(o, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
4165
4190
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4166
|
-
|
4191
|
+
w[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && H(r, "class", m), E[0] & /*location*/
|
4167
4192
|
1 && f !== (f = /*location*/
|
4168
|
-
|
4193
|
+
w[0] === "headerMain" ? "max-width: auto" : void 0) && H(r, "style", f), E[0] & /*location*/
|
4169
4194
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4170
|
-
(
|
4195
|
+
(w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && H(t, "class", p);
|
4171
4196
|
},
|
4172
|
-
i:
|
4173
|
-
o:
|
4174
|
-
d(
|
4175
|
-
|
4197
|
+
i: U,
|
4198
|
+
o: U,
|
4199
|
+
d(w) {
|
4200
|
+
w && O(t), d && d.d(), e[35](null), e[36](null), e[38](null), g = !1, Q(b);
|
4176
4201
|
}
|
4177
4202
|
};
|
4178
4203
|
}
|
4179
|
-
function
|
4180
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups:
|
4181
|
-
|
4182
|
-
const
|
4183
|
-
fetch(f).then((
|
4184
|
-
Object.keys(
|
4185
|
-
|
4204
|
+
function Xi(e, t, r) {
|
4205
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: w = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: S = "" } = t, { mygamesiconimage: F = "" } = t, { mbsource: P = "App" } = t;
|
4206
|
+
Ui({ withLocale: "en", translations: {} });
|
4207
|
+
const G = () => {
|
4208
|
+
fetch(f).then((x) => x.json()).then((x) => {
|
4209
|
+
Object.keys(x).forEach((R) => {
|
4210
|
+
St(R, x[R]);
|
4186
4211
|
});
|
4187
|
-
}).catch((
|
4188
|
-
console.log(
|
4212
|
+
}).catch((x) => {
|
4213
|
+
console.log(x);
|
4189
4214
|
});
|
4190
4215
|
};
|
4191
|
-
Object.keys(
|
4192
|
-
|
4216
|
+
Object.keys(Tt).forEach((c) => {
|
4217
|
+
St(c, Tt[c]);
|
4193
4218
|
});
|
4194
|
-
let
|
4195
|
-
if (!(c.subGroups &&
|
4196
|
-
if (
|
4219
|
+
let C, M, N, j, k, ue = [], ye = [], ve = [], $, Oe = (c, x, R, z, V) => {
|
4220
|
+
if (!(c.subGroups && z === null)) {
|
4221
|
+
if (_e(), r(6, M = x), r(6, M), V != "secondary") {
|
4197
4222
|
window.postMessage(
|
4198
4223
|
{
|
4199
4224
|
type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4200
4225
|
buzz: "1",
|
4201
4226
|
itemId: c.id,
|
4202
|
-
index:
|
4227
|
+
index: x,
|
4203
4228
|
item: c,
|
4204
4229
|
path: c.path,
|
4205
4230
|
externalLink: c.externalLink || !1,
|
4206
4231
|
target: c.attrs?.target || null
|
4207
4232
|
},
|
4208
4233
|
window.location.href
|
4209
|
-
), r(7,
|
4234
|
+
), r(7, N = null), r(8, j = null);
|
4210
4235
|
return;
|
4211
4236
|
}
|
4212
|
-
r(7,
|
4237
|
+
r(7, N = z), r(7, N), r(8, j = N), window.postMessage(
|
4213
4238
|
{
|
4214
4239
|
type: o,
|
4215
|
-
itemId:
|
4216
|
-
subIndex:
|
4217
|
-
subItem:
|
4240
|
+
itemId: R.id,
|
4241
|
+
subIndex: z,
|
4242
|
+
subItem: R
|
4218
4243
|
},
|
4219
4244
|
window.location.href
|
4220
4245
|
);
|
4221
4246
|
}
|
4222
|
-
},
|
4247
|
+
}, st = () => {
|
4223
4248
|
$.scrollBy({ left: -250, behavior: "smooth" });
|
4224
|
-
},
|
4249
|
+
}, at = () => {
|
4225
4250
|
$.scrollBy({ left: 250, behavior: "smooth" });
|
4226
4251
|
};
|
4227
|
-
const
|
4228
|
-
c.data.type == "SliderData" && c.data.identity == m && (r(9,
|
4229
|
-
|
4252
|
+
const lt = (c) => {
|
4253
|
+
c.data.type == "SliderData" && c.data.identity == m && (r(9, ue = c.data.data), r(11, ve = new Array(ue.length).fill(!1)), w == "true" && gr()), c.data.type == "GoToHomepage" && ue.forEach((x, R) => {
|
4254
|
+
x.path.endsWith("/casino") && (r(6, M = R), r(6, M));
|
4230
4255
|
});
|
4231
|
-
},
|
4232
|
-
|
4233
|
-
},
|
4256
|
+
}, dr = () => {
|
4257
|
+
Gi(b);
|
4258
|
+
}, pr = (c, x, R) => {
|
4234
4259
|
if (h == "secondaryMenu" && n && i && b && c.id) {
|
4235
|
-
let
|
4236
|
-
fetch(
|
4237
|
-
|
4260
|
+
let z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
|
4261
|
+
fetch(z.href).then((V) => V.json()).then((V) => {
|
4262
|
+
V.index = x, r(10, ye = ye.concat(V)), w == "false" && window.postMessage(
|
4238
4263
|
{
|
4239
4264
|
type: o,
|
4240
4265
|
itemId: c.id,
|
4241
|
-
index:
|
4266
|
+
index: x,
|
4242
4267
|
item: c
|
4243
4268
|
},
|
4244
4269
|
window.location.href
|
4245
4270
|
);
|
4246
|
-
const
|
4247
|
-
|
4248
|
-
|
4249
|
-
}),
|
4271
|
+
const Ee = [];
|
4272
|
+
ye.map((Hr) => (Hr.items.forEach((ut) => {
|
4273
|
+
Ee.find((Sr) => ut.id == Sr) || Ee.push(ut.id);
|
4274
|
+
}), Ee.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: Ee }, window.location.href);
|
4250
4275
|
}).then(() => {
|
4251
|
-
|
4276
|
+
C.querySelectorAll(".DropDown") && _e();
|
4252
4277
|
});
|
4253
4278
|
}
|
4254
4279
|
h == "headerMain" && window.postMessage({ type: o, item: c }, window.location.href);
|
4255
|
-
},
|
4256
|
-
const c =
|
4280
|
+
}, _e = () => {
|
4281
|
+
const c = C.querySelectorAll(".DropDown");
|
4257
4282
|
document.activeElement.blur(), $.classList.add("isScrolling");
|
4258
|
-
for (let
|
4259
|
-
c[
|
4283
|
+
for (let x = 0; x < c.length; x++)
|
4284
|
+
c[x].style.transform = "translateX(-" + $.scrollLeft + "px)";
|
4260
4285
|
$.classList.remove("isScrolling");
|
4261
|
-
},
|
4262
|
-
|
4263
|
-
c?.subGroups?.count > 0 && (r(11,
|
4286
|
+
}, gr = () => {
|
4287
|
+
ue.forEach((c, x) => {
|
4288
|
+
c?.subGroups?.count > 0 && (r(11, ve[x] = !0, ve), pr(c, x));
|
4264
4289
|
});
|
4265
|
-
},
|
4266
|
-
let
|
4267
|
-
c.
|
4268
|
-
}, pr = () => {
|
4269
|
-
let c = document.createElement("style"), E = new URL(u);
|
4270
|
-
fetch(E.href).then((N) => N.text()).then((N) => {
|
4271
|
-
c.innerHTML = N, setTimeout(
|
4272
|
-
() => {
|
4273
|
-
G.appendChild(c);
|
4274
|
-
},
|
4275
|
-
1
|
4276
|
-
);
|
4277
|
-
});
|
4278
|
-
}, gr = (c) => {
|
4279
|
-
let E = "";
|
4280
|
-
return c.id === "LOBBY" ? E = S : c.id === "MYGAMES" && (E = R), c.icon || E;
|
4290
|
+
}, br = (c) => {
|
4291
|
+
let x = "";
|
4292
|
+
return c.id === "LOBBY" ? x = S : c.id === "MYGAMES" && (x = F), c.icon || x;
|
4281
4293
|
};
|
4282
|
-
|
4294
|
+
Fr(() => (window.addEventListener("message", lt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4283
4295
|
() => {
|
4284
|
-
$.addEventListener("scroll",
|
4296
|
+
$.addEventListener("scroll", _e);
|
4285
4297
|
},
|
4286
4298
|
500
|
4287
4299
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4288
|
-
window.removeEventListener("message",
|
4300
|
+
window.removeEventListener("message", lt), C.removeEventListener("scroll", _e);
|
4289
4301
|
}));
|
4290
|
-
const
|
4291
|
-
Oe(c,
|
4292
|
-
},
|
4293
|
-
Oe(c,
|
4302
|
+
const yr = () => st(), vr = (c, x, R, z, V) => {
|
4303
|
+
Oe(c, x, R, z, "secondary"), V.stopPropagation();
|
4304
|
+
}, _r = (c, x, R) => {
|
4305
|
+
Oe(c, x, null, null, "main"), R.preventDefault();
|
4294
4306
|
};
|
4295
|
-
function
|
4296
|
-
|
4297
|
-
|
4307
|
+
function Er(c) {
|
4308
|
+
fe[c ? "unshift" : "push"](() => {
|
4309
|
+
C = c, r(5, C);
|
4298
4310
|
});
|
4299
4311
|
}
|
4300
|
-
function
|
4301
|
-
|
4312
|
+
function xr(c) {
|
4313
|
+
fe[c ? "unshift" : "push"](() => {
|
4302
4314
|
$ = c, r(12, $);
|
4303
4315
|
});
|
4304
4316
|
}
|
4305
|
-
const
|
4306
|
-
function
|
4307
|
-
|
4308
|
-
|
4317
|
+
const Cr = () => at();
|
4318
|
+
function wr(c) {
|
4319
|
+
fe[c ? "unshift" : "push"](() => {
|
4320
|
+
k = c, r(4, k);
|
4309
4321
|
});
|
4310
4322
|
}
|
4311
4323
|
return e.$$set = (c) => {
|
4312
|
-
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2,
|
4324
|
+
"endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, w = c.showsubgroups), "categoriesicon" in c && r(3, E = c.categoriesicon), "lobbyiconimage" in c && r(29, S = c.lobbyiconimage), "mygamesiconimage" in c && r(30, F = c.mygamesiconimage), "mbsource" in c && r(31, P = c.mbsource);
|
4313
4325
|
}, e.$$.update = () => {
|
4314
4326
|
e.$$.dirty[0] & /*activeindex*/
|
4315
4327
|
2, e.$$.dirty[0] & /*translationurl*/
|
4316
|
-
33554432 && f &&
|
4317
|
-
4194320 && l &&
|
4318
|
-
8388624 && u &&
|
4319
|
-
|
4328
|
+
33554432 && f && G(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4329
|
+
4194320 && l && k && Qr(k, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4330
|
+
8388624 && u && k && qr(k, u), e.$$.dirty[0] & /*customStylingContainer*/
|
4331
|
+
16 | e.$$.dirty[1] & /*mbsource*/
|
4332
|
+
1 && P && k && Jr(k, `${P}.Style`), e.$$.dirty[0] & /*lang*/
|
4333
|
+
268435456 && b && dr();
|
4320
4334
|
}, [
|
4321
4335
|
h,
|
4322
4336
|
d,
|
4323
|
-
C,
|
4324
|
-
x,
|
4325
|
-
G,
|
4326
|
-
P,
|
4327
4337
|
w,
|
4338
|
+
E,
|
4339
|
+
k,
|
4340
|
+
C,
|
4328
4341
|
M,
|
4329
|
-
|
4330
|
-
|
4331
|
-
|
4342
|
+
N,
|
4343
|
+
j,
|
4344
|
+
ue,
|
4332
4345
|
ye,
|
4346
|
+
ve,
|
4333
4347
|
$,
|
4334
4348
|
Oe,
|
4335
|
-
|
4336
|
-
|
4337
|
-
|
4349
|
+
st,
|
4350
|
+
at,
|
4351
|
+
br,
|
4338
4352
|
n,
|
4339
4353
|
i,
|
4340
4354
|
s,
|
@@ -4348,24 +4362,25 @@ function $i(e, t, r) {
|
|
4348
4362
|
g,
|
4349
4363
|
b,
|
4350
4364
|
S,
|
4351
|
-
|
4352
|
-
|
4365
|
+
F,
|
4366
|
+
P,
|
4353
4367
|
yr,
|
4354
4368
|
vr,
|
4355
4369
|
_r,
|
4356
4370
|
Er,
|
4357
4371
|
xr,
|
4358
|
-
Cr
|
4372
|
+
Cr,
|
4373
|
+
wr
|
4359
4374
|
];
|
4360
4375
|
}
|
4361
|
-
class
|
4376
|
+
class Wi extends zr {
|
4362
4377
|
constructor(t) {
|
4363
|
-
super(),
|
4378
|
+
super(), Xr(
|
4364
4379
|
this,
|
4365
4380
|
t,
|
4366
|
-
|
4367
|
-
|
4368
|
-
|
4381
|
+
Xi,
|
4382
|
+
Vi,
|
4383
|
+
Ut,
|
4369
4384
|
{
|
4370
4385
|
endpoint: 17,
|
4371
4386
|
datasource: 18,
|
@@ -4384,9 +4399,10 @@ class ji extends Wr {
|
|
4384
4399
|
showsubgroups: 2,
|
4385
4400
|
categoriesicon: 3,
|
4386
4401
|
lobbyiconimage: 29,
|
4387
|
-
mygamesiconimage: 30
|
4402
|
+
mygamesiconimage: 30,
|
4403
|
+
mbsource: 31
|
4388
4404
|
},
|
4389
|
-
|
4405
|
+
ki,
|
4390
4406
|
[-1, -1]
|
4391
4407
|
);
|
4392
4408
|
}
|
@@ -4498,8 +4514,14 @@ class ji extends Wr {
|
|
4498
4514
|
set mygamesiconimage(t) {
|
4499
4515
|
this.$$set({ mygamesiconimage: t }), A();
|
4500
4516
|
}
|
4517
|
+
get mbsource() {
|
4518
|
+
return this.$$.ctx[31];
|
4519
|
+
}
|
4520
|
+
set mbsource(t) {
|
4521
|
+
this.$$set({ mbsource: t }), A();
|
4522
|
+
}
|
4501
4523
|
}
|
4502
|
-
|
4524
|
+
Wr(Wi, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4503
4525
|
export {
|
4504
|
-
|
4526
|
+
Wi as C
|
4505
4527
|
};
|