@everymatrix/casino-slider 1.76.3 → 1.76.5
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-CFKoVTOF.cjs +3 -0
- package/components/{CasinoSlider-Bv3CaU9-.js → CasinoSlider-DL_bvtZw.js} +950 -948
- package/components/{CasinoSlider-Cs0QnYVS.js → CasinoSlider-JyVDKB5k.js} +962 -960
- 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-BImfaopH.cjs +0 -16
@@ -1,57 +1,57 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var kr = Object.defineProperty, $r = Object.defineProperties;
|
2
|
+
var jr = Object.getOwnPropertyDescriptors;
|
3
|
+
var pt = Object.getOwnPropertySymbols;
|
4
|
+
var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var $e = (e, t, r) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Vr.call(t, r) && $e(e, r, t[r]);
|
8
|
+
if (pt)
|
9
|
+
for (var r of pt(t))
|
10
|
+
Xr.call(t, r) && $e(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var G = (e, t, r) => (
|
14
|
-
var
|
15
|
-
var
|
12
|
+
}, bt = (e, t) => $r(e, jr(t));
|
13
|
+
var G = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var yt = (e, t, r) => new Promise((n, i) => {
|
15
|
+
var o = (u) => {
|
16
16
|
try {
|
17
17
|
a(r.next(u));
|
18
18
|
} catch (l) {
|
19
19
|
i(l);
|
20
20
|
}
|
21
|
-
},
|
21
|
+
}, s = (u) => {
|
22
22
|
try {
|
23
23
|
a(r.throw(u));
|
24
24
|
} catch (l) {
|
25
25
|
i(l);
|
26
26
|
}
|
27
|
-
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(
|
27
|
+
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
30
|
function $() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function zt(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function vt() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
39
|
-
e.forEach(
|
38
|
+
function K(e) {
|
39
|
+
e.forEach(zt);
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function at(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Zt(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
|
-
let
|
47
|
+
let Te;
|
48
48
|
function _t(e, t) {
|
49
|
-
return e === t ? !0 : (
|
49
|
+
return e === t ? !0 : (Te || (Te = document.createElement("a")), Te.href = t, e === Te.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function Wr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
|
-
function
|
54
|
+
function zr(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
@@ -63,14 +63,14 @@ function Wr(e, ...t) {
|
|
63
63
|
function M(e, t) {
|
64
64
|
e.appendChild(t);
|
65
65
|
}
|
66
|
-
function
|
67
|
-
const n =
|
66
|
+
function Zr(e, t, r) {
|
67
|
+
const n = Qr(e);
|
68
68
|
if (!n.getElementById(t)) {
|
69
69
|
const i = P("style");
|
70
|
-
i.id = t, i.textContent = r,
|
70
|
+
i.id = t, i.textContent = r, qr(n, i);
|
71
71
|
}
|
72
72
|
}
|
73
|
-
function
|
73
|
+
function Qr(e) {
|
74
74
|
if (!e)
|
75
75
|
return document;
|
76
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -80,7 +80,7 @@ function Zr(e) {
|
|
80
80
|
t
|
81
81
|
) : e.ownerDocument;
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function qr(e, t) {
|
84
84
|
return M(
|
85
85
|
/** @type {Document} */
|
86
86
|
e.head || e,
|
@@ -93,7 +93,7 @@ function k(e, t, r) {
|
|
93
93
|
function U(e) {
|
94
94
|
e.parentNode && e.parentNode.removeChild(e);
|
95
95
|
}
|
96
|
-
function
|
96
|
+
function Jr(e, t) {
|
97
97
|
for (let r = 0; r < e.length; r += 1)
|
98
98
|
e[r] && e[r].d(t);
|
99
99
|
}
|
@@ -103,31 +103,31 @@ function P(e) {
|
|
103
103
|
function Ce(e) {
|
104
104
|
return document.createTextNode(e);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function Y() {
|
107
107
|
return Ce(" ");
|
108
108
|
}
|
109
109
|
function _e() {
|
110
110
|
return Ce("");
|
111
111
|
}
|
112
|
-
function
|
112
|
+
function X(e, t, r, n) {
|
113
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
114
114
|
}
|
115
|
-
function
|
115
|
+
function Yr(e) {
|
116
116
|
return function(t) {
|
117
117
|
return t.preventDefault(), e.call(this, t);
|
118
118
|
};
|
119
119
|
}
|
120
|
-
function
|
120
|
+
function S(e, t, r) {
|
121
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
122
122
|
}
|
123
|
-
function
|
123
|
+
function Kr(e) {
|
124
124
|
return Array.from(e.childNodes);
|
125
125
|
}
|
126
|
-
function
|
126
|
+
function lt(e, t) {
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
128
128
|
t);
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function en(e) {
|
131
131
|
const t = {};
|
132
132
|
return e.childNodes.forEach(
|
133
133
|
/** @param {Element} node */
|
@@ -136,132 +136,132 @@ function Kr(e) {
|
|
136
136
|
}
|
137
137
|
), t;
|
138
138
|
}
|
139
|
-
let
|
140
|
-
function
|
141
|
-
|
139
|
+
let Ee;
|
140
|
+
function ye(e) {
|
141
|
+
Ee = e;
|
142
142
|
}
|
143
|
-
function
|
144
|
-
if (!
|
143
|
+
function tn() {
|
144
|
+
if (!Ee)
|
145
145
|
throw new Error("Function called outside component initialization");
|
146
|
-
return
|
146
|
+
return Ee;
|
147
147
|
}
|
148
|
-
function
|
149
|
-
|
148
|
+
function rn(e) {
|
149
|
+
tn().$$.on_mount.push(e);
|
150
150
|
}
|
151
|
-
function
|
151
|
+
function nn(e, t) {
|
152
152
|
const r = e.$$.callbacks[t.type];
|
153
153
|
r && r.slice().forEach((n) => n.call(this, t));
|
154
154
|
}
|
155
|
-
const
|
156
|
-
let
|
157
|
-
const
|
158
|
-
let
|
159
|
-
function
|
160
|
-
|
155
|
+
const oe = [], ve = [];
|
156
|
+
let se = [];
|
157
|
+
const Et = [], on = /* @__PURE__ */ Promise.resolve();
|
158
|
+
let qe = !1;
|
159
|
+
function sn() {
|
160
|
+
qe || (qe = !0, on.then(B));
|
161
161
|
}
|
162
|
-
function
|
163
|
-
|
162
|
+
function Je(e) {
|
163
|
+
se.push(e);
|
164
164
|
}
|
165
|
-
const
|
166
|
-
let
|
165
|
+
const je = /* @__PURE__ */ new Set();
|
166
|
+
let ne = 0;
|
167
167
|
function B() {
|
168
|
-
if (
|
168
|
+
if (ne !== 0)
|
169
169
|
return;
|
170
|
-
const e =
|
170
|
+
const e = Ee;
|
171
171
|
do {
|
172
172
|
try {
|
173
|
-
for (;
|
174
|
-
const t =
|
175
|
-
|
173
|
+
for (; ne < oe.length; ) {
|
174
|
+
const t = oe[ne];
|
175
|
+
ne++, ye(t), an(t.$$);
|
176
176
|
}
|
177
177
|
} catch (t) {
|
178
|
-
throw
|
178
|
+
throw oe.length = 0, ne = 0, t;
|
179
179
|
}
|
180
|
-
for (
|
181
|
-
|
182
|
-
for (let t = 0; t <
|
183
|
-
const r =
|
184
|
-
|
180
|
+
for (ye(null), oe.length = 0, ne = 0; ve.length; )
|
181
|
+
ve.pop()();
|
182
|
+
for (let t = 0; t < se.length; t += 1) {
|
183
|
+
const r = se[t];
|
184
|
+
je.has(r) || (je.add(r), r());
|
185
185
|
}
|
186
|
-
|
187
|
-
} while (
|
188
|
-
for (;
|
189
|
-
|
190
|
-
|
186
|
+
se.length = 0;
|
187
|
+
} while (oe.length);
|
188
|
+
for (; Et.length; )
|
189
|
+
Et.pop()();
|
190
|
+
qe = !1, je.clear(), ye(e);
|
191
191
|
}
|
192
|
-
function
|
192
|
+
function an(e) {
|
193
193
|
if (e.fragment !== null) {
|
194
|
-
e.update(),
|
194
|
+
e.update(), K(e.before_update);
|
195
195
|
const t = e.dirty;
|
196
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
|
197
197
|
}
|
198
198
|
}
|
199
|
-
function
|
199
|
+
function ln(e) {
|
200
200
|
const t = [], r = [];
|
201
|
-
|
201
|
+
se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
|
202
202
|
}
|
203
|
-
const
|
204
|
-
function
|
205
|
-
e && e.i && (
|
203
|
+
const un = /* @__PURE__ */ new Set();
|
204
|
+
function Qt(e, t) {
|
205
|
+
e && e.i && (un.delete(e), e.i(t));
|
206
206
|
}
|
207
|
-
function
|
207
|
+
function ae(e) {
|
208
208
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
209
209
|
}
|
210
|
-
function
|
210
|
+
function qt(e, t) {
|
211
211
|
e.d(1), t.delete(e.key);
|
212
212
|
}
|
213
|
-
function
|
214
|
-
let f = e.length, p =
|
213
|
+
function Jt(e, t, r, n, i, o, s, a, u, l, c, m) {
|
214
|
+
let f = e.length, p = o.length, g = f;
|
215
215
|
const b = {};
|
216
216
|
for (; g--; )
|
217
217
|
b[e[g].key] = g;
|
218
|
-
const d = [],
|
218
|
+
const d = [], C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), w = [];
|
219
219
|
for (g = p; g--; ) {
|
220
|
-
const
|
221
|
-
let D =
|
222
|
-
D ? w.push(() => D.p(
|
220
|
+
const H = m(i, o, g), R = r(H);
|
221
|
+
let D = s.get(R);
|
222
|
+
D ? w.push(() => D.p(H, t)) : (D = l(R, H), D.c()), C.set(R, d[g] = D), R in b && E.set(R, Math.abs(g - b[R]));
|
223
223
|
}
|
224
224
|
const O = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
225
|
-
function
|
226
|
-
|
225
|
+
function v(H) {
|
226
|
+
Qt(H, 1), H.m(a, c), s.set(H.key, H), c = H.first, p--;
|
227
227
|
}
|
228
228
|
for (; f && p; ) {
|
229
|
-
const
|
230
|
-
|
229
|
+
const H = d[p - 1], R = e[f - 1], D = H.key, te = R.key;
|
230
|
+
H === R ? (c = H.first, f--, p--) : C.has(te) ? !s.has(D) || O.has(D) ? v(H) : L.has(te) ? f-- : E.get(D) > E.get(te) ? (L.add(D), v(H)) : (O.add(te), f--) : (u(R, s), f--);
|
231
231
|
}
|
232
232
|
for (; f--; ) {
|
233
|
-
const
|
234
|
-
|
233
|
+
const H = e[f];
|
234
|
+
C.has(H.key) || u(H, s);
|
235
235
|
}
|
236
236
|
for (; p; )
|
237
|
-
|
238
|
-
return
|
237
|
+
v(d[p - 1]);
|
238
|
+
return K(w), d;
|
239
239
|
}
|
240
|
-
function
|
240
|
+
function hn(e, t, r) {
|
241
241
|
const { fragment: n, after_update: i } = e.$$;
|
242
|
-
n && n.m(t, r),
|
243
|
-
const
|
244
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
245
|
-
}), i.forEach(
|
242
|
+
n && n.m(t, r), Je(() => {
|
243
|
+
const o = e.$$.on_mount.map(zt).filter(at);
|
244
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
245
|
+
}), i.forEach(Je);
|
246
246
|
}
|
247
|
-
function
|
247
|
+
function cn(e, t) {
|
248
248
|
const r = e.$$;
|
249
|
-
r.fragment !== null && (
|
249
|
+
r.fragment !== null && (ln(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
250
250
|
}
|
251
|
-
function
|
252
|
-
e.$$.dirty[0] === -1 && (
|
251
|
+
function fn(e, t) {
|
252
|
+
e.$$.dirty[0] === -1 && (oe.push(e), sn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
253
253
|
}
|
254
|
-
function
|
255
|
-
const u =
|
256
|
-
|
254
|
+
function mn(e, t, r, n, i, o, s = null, a = [-1]) {
|
255
|
+
const u = Ee;
|
256
|
+
ye(e);
|
257
257
|
const l = e.$$ = {
|
258
258
|
fragment: null,
|
259
259
|
ctx: [],
|
260
260
|
// state
|
261
|
-
props:
|
261
|
+
props: o,
|
262
262
|
update: $,
|
263
263
|
not_equal: i,
|
264
|
-
bound:
|
264
|
+
bound: vt(),
|
265
265
|
// lifecycle
|
266
266
|
on_mount: [],
|
267
267
|
on_destroy: [],
|
@@ -270,28 +270,28 @@ function fn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
270
270
|
after_update: [],
|
271
271
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
272
272
|
// everything else
|
273
|
-
callbacks:
|
273
|
+
callbacks: vt(),
|
274
274
|
dirty: a,
|
275
275
|
skip_bound: !1,
|
276
276
|
root: t.target || u.$$.root
|
277
277
|
};
|
278
|
-
|
278
|
+
s && s(l.root);
|
279
279
|
let c = !1;
|
280
|
-
if (l.ctx = r(e, t.props || {}, (m, f, ...p) => {
|
280
|
+
if (l.ctx = r ? r(e, t.props || {}, (m, f, ...p) => {
|
281
281
|
const g = p.length ? p[0] : f;
|
282
|
-
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), c &&
|
283
|
-
}), l.update(), c = !0,
|
282
|
+
return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), c && fn(e, m)), f;
|
283
|
+
}) : [], l.update(), c = !0, K(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
284
284
|
if (t.hydrate) {
|
285
|
-
const m =
|
285
|
+
const m = Kr(t.target);
|
286
286
|
l.fragment && l.fragment.l(m), m.forEach(U);
|
287
287
|
} else
|
288
288
|
l.fragment && l.fragment.c();
|
289
|
-
t.intro &&
|
289
|
+
t.intro && Qt(e.$$.fragment), hn(e, t.target, t.anchor), B();
|
290
290
|
}
|
291
|
-
|
291
|
+
ye(u);
|
292
292
|
}
|
293
|
-
let
|
294
|
-
typeof HTMLElement == "function" && (
|
293
|
+
let Yt;
|
294
|
+
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
295
295
|
constructor(t, r, n) {
|
296
296
|
super();
|
297
297
|
/** The Svelte component constructor */
|
@@ -328,42 +328,42 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
328
328
|
}
|
329
329
|
}
|
330
330
|
connectedCallback() {
|
331
|
-
return
|
331
|
+
return yt(this, null, function* () {
|
332
332
|
if (this.$$cn = !0, !this.$$c) {
|
333
|
-
let t = function(
|
333
|
+
let t = function(o) {
|
334
334
|
return () => {
|
335
|
-
let
|
335
|
+
let s;
|
336
336
|
return {
|
337
337
|
c: function() {
|
338
|
-
|
338
|
+
s = P("slot"), o !== "default" && S(s, "name", o);
|
339
339
|
},
|
340
340
|
/**
|
341
341
|
* @param {HTMLElement} target
|
342
342
|
* @param {HTMLElement} [anchor]
|
343
343
|
*/
|
344
344
|
m: function(l, c) {
|
345
|
-
k(l,
|
345
|
+
k(l, s, c);
|
346
346
|
},
|
347
347
|
d: function(l) {
|
348
|
-
l && U(
|
348
|
+
l && U(s);
|
349
349
|
}
|
350
350
|
};
|
351
351
|
};
|
352
352
|
};
|
353
353
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
354
354
|
return;
|
355
|
-
const r = {}, n =
|
356
|
-
for (const
|
357
|
-
|
358
|
-
for (const
|
359
|
-
const
|
360
|
-
|
355
|
+
const r = {}, n = en(this);
|
356
|
+
for (const o of this.$$s)
|
357
|
+
o in n && (r[o] = [t(o)]);
|
358
|
+
for (const o of this.attributes) {
|
359
|
+
const s = this.$$g_p(o.name);
|
360
|
+
s in this.$$d || (this.$$d[s] = Be(s, o.value, this.$$p_d, "toProp"));
|
361
361
|
}
|
362
|
-
for (const
|
363
|
-
!(
|
362
|
+
for (const o in this.$$p_d)
|
363
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
364
364
|
this.$$c = new this.$$ctor({
|
365
365
|
target: this.shadowRoot || this,
|
366
|
-
props: gt(
|
366
|
+
props: bt(gt({}, this.$$d), {
|
367
367
|
$$slots: r,
|
368
368
|
$$scope: {
|
369
369
|
ctx: []
|
@@ -372,23 +372,23 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
372
372
|
});
|
373
373
|
const i = () => {
|
374
374
|
this.$$r = !0;
|
375
|
-
for (const
|
376
|
-
if (this.$$d[
|
377
|
-
const
|
378
|
-
|
379
|
-
this.$$d[
|
375
|
+
for (const o in this.$$p_d)
|
376
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
377
|
+
const s = Be(
|
378
|
+
o,
|
379
|
+
this.$$d[o],
|
380
380
|
this.$$p_d,
|
381
381
|
"toAttribute"
|
382
382
|
);
|
383
|
-
|
383
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
384
384
|
}
|
385
385
|
this.$$r = !1;
|
386
386
|
};
|
387
387
|
this.$$c.$$.after_update.push(i), i();
|
388
|
-
for (const
|
389
|
-
for (const
|
390
|
-
const a = this.$$c.$on(
|
391
|
-
this.$$l_u.set(
|
388
|
+
for (const o in this.$$l)
|
389
|
+
for (const s of this.$$l[o]) {
|
390
|
+
const a = this.$$c.$on(o, s);
|
391
|
+
this.$$l_u.set(s, a);
|
392
392
|
}
|
393
393
|
this.$$l = {};
|
394
394
|
}
|
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
398
398
|
// and setting attributes through setAttribute etc, this is helpful
|
399
399
|
attributeChangedCallback(t, r, n) {
|
400
400
|
var i;
|
401
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
401
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Be(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
402
402
|
}
|
403
403
|
disconnectedCallback() {
|
404
404
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -411,9 +411,9 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
411
411
|
) || t;
|
412
412
|
}
|
413
413
|
});
|
414
|
-
function
|
415
|
-
var
|
416
|
-
const i = (
|
414
|
+
function Be(e, t, r, n) {
|
415
|
+
var o;
|
416
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
417
417
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
418
418
|
return t;
|
419
419
|
if (n === "toAttribute")
|
@@ -441,8 +441,8 @@ function Ae(e, t, r, n) {
|
|
441
441
|
return t;
|
442
442
|
}
|
443
443
|
}
|
444
|
-
function
|
445
|
-
let
|
444
|
+
function dn(e, t, r, n, i, o) {
|
445
|
+
let s = class extends Yt {
|
446
446
|
constructor() {
|
447
447
|
super(e, r, i), this.$$p_d = t;
|
448
448
|
}
|
@@ -453,26 +453,26 @@ function mn(e, t, r, n, i, s) {
|
|
453
453
|
}
|
454
454
|
};
|
455
455
|
return Object.keys(t).forEach((a) => {
|
456
|
-
Object.defineProperty(
|
456
|
+
Object.defineProperty(s.prototype, a, {
|
457
457
|
get() {
|
458
458
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
459
459
|
},
|
460
460
|
set(u) {
|
461
461
|
var l;
|
462
|
-
u =
|
462
|
+
u = Be(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
463
463
|
}
|
464
464
|
});
|
465
465
|
}), n.forEach((a) => {
|
466
|
-
Object.defineProperty(
|
466
|
+
Object.defineProperty(s.prototype, a, {
|
467
467
|
get() {
|
468
468
|
var u;
|
469
469
|
return (u = this.$$c) == null ? void 0 : u[a];
|
470
470
|
}
|
471
471
|
});
|
472
472
|
}), e.element = /** @type {any} */
|
473
|
-
|
473
|
+
s, s;
|
474
474
|
}
|
475
|
-
class
|
475
|
+
class pn {
|
476
476
|
constructor() {
|
477
477
|
/**
|
478
478
|
* ### PRIVATE API
|
@@ -493,7 +493,7 @@ class dn {
|
|
493
493
|
}
|
494
494
|
/** @returns {void} */
|
495
495
|
$destroy() {
|
496
|
-
|
496
|
+
cn(this, 1), this.$destroy = $;
|
497
497
|
}
|
498
498
|
/**
|
499
499
|
* @template {Extract<keyof Events, string>} K
|
@@ -502,7 +502,7 @@ class dn {
|
|
502
502
|
* @returns {() => void}
|
503
503
|
*/
|
504
504
|
$on(t, r) {
|
505
|
-
if (!
|
505
|
+
if (!at(r))
|
506
506
|
return $;
|
507
507
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
508
508
|
return n.push(r), () => {
|
@@ -515,18 +515,18 @@ class dn {
|
|
515
515
|
* @returns {void}
|
516
516
|
*/
|
517
517
|
$set(t) {
|
518
|
-
this.$$set && !
|
518
|
+
this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
519
519
|
}
|
520
520
|
}
|
521
|
-
const
|
522
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
523
|
-
function
|
521
|
+
const gn = "4";
|
522
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gn);
|
523
|
+
function bn(e, t) {
|
524
524
|
if (e) {
|
525
525
|
const r = document.createElement("style");
|
526
526
|
r.innerHTML = t, e.appendChild(r);
|
527
527
|
}
|
528
528
|
}
|
529
|
-
function
|
529
|
+
function yn(e, t) {
|
530
530
|
const r = new URL(t);
|
531
531
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
532
532
|
const i = document.createElement("style");
|
@@ -535,7 +535,7 @@ function bn(e, t) {
|
|
535
535
|
console.error("There was an error while trying to load client styling from URL", n);
|
536
536
|
});
|
537
537
|
}
|
538
|
-
function
|
538
|
+
function vn(e, t, r) {
|
539
539
|
if (window.emMessageBus) {
|
540
540
|
const n = document.createElement("style");
|
541
541
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -543,44 +543,44 @@ function yn(e, t, r) {
|
|
543
543
|
});
|
544
544
|
}
|
545
545
|
}
|
546
|
-
const
|
546
|
+
const ie = [];
|
547
547
|
function _n(e, t) {
|
548
548
|
return {
|
549
|
-
subscribe:
|
549
|
+
subscribe: Oe(e, t).subscribe
|
550
550
|
};
|
551
551
|
}
|
552
|
-
function
|
552
|
+
function Oe(e, t = $) {
|
553
553
|
let r;
|
554
554
|
const n = /* @__PURE__ */ new Set();
|
555
555
|
function i(a) {
|
556
|
-
if (
|
557
|
-
const u = !
|
556
|
+
if (Zt(e, a) && (e = a, r)) {
|
557
|
+
const u = !ie.length;
|
558
558
|
for (const l of n)
|
559
|
-
l[1](),
|
559
|
+
l[1](), ie.push(l, e);
|
560
560
|
if (u) {
|
561
|
-
for (let l = 0; l <
|
562
|
-
|
563
|
-
|
561
|
+
for (let l = 0; l < ie.length; l += 2)
|
562
|
+
ie[l][0](ie[l + 1]);
|
563
|
+
ie.length = 0;
|
564
564
|
}
|
565
565
|
}
|
566
566
|
}
|
567
|
-
function
|
567
|
+
function o(a) {
|
568
568
|
i(a(e));
|
569
569
|
}
|
570
|
-
function
|
570
|
+
function s(a, u = $) {
|
571
571
|
const l = [a, u];
|
572
|
-
return n.add(l), n.size === 1 && (r = t(i,
|
572
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
|
573
573
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
574
574
|
};
|
575
575
|
}
|
576
|
-
return { set: i, update:
|
576
|
+
return { set: i, update: o, subscribe: s };
|
577
577
|
}
|
578
|
-
function
|
578
|
+
function fe(e, t, r) {
|
579
579
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
580
580
|
if (!i.every(Boolean))
|
581
581
|
throw new Error("derived() expects stores as input, got a falsy value");
|
582
|
-
const
|
583
|
-
return _n(r, (
|
582
|
+
const o = t.length < 2;
|
583
|
+
return _n(r, (s, a) => {
|
584
584
|
let u = !1;
|
585
585
|
const l = [];
|
586
586
|
let c = 0, m = $;
|
@@ -588,10 +588,10 @@ function ce(e, t, r) {
|
|
588
588
|
if (c)
|
589
589
|
return;
|
590
590
|
m();
|
591
|
-
const g = t(n ? l[0] : l,
|
592
|
-
|
591
|
+
const g = t(n ? l[0] : l, s, a);
|
592
|
+
o ? s(g) : m = at(g) ? g : $;
|
593
593
|
}, p = i.map(
|
594
|
-
(g, b) =>
|
594
|
+
(g, b) => zr(
|
595
595
|
g,
|
596
596
|
(d) => {
|
597
597
|
l[b] = d, c &= ~(1 << b), u && f();
|
@@ -602,126 +602,112 @@ function ce(e, t, r) {
|
|
602
602
|
)
|
603
603
|
);
|
604
604
|
return u = !0, f(), function() {
|
605
|
-
|
605
|
+
K(p), m(), u = !1;
|
606
606
|
};
|
607
607
|
});
|
608
608
|
}
|
609
|
-
function
|
610
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
609
|
+
function En(e) {
|
610
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
611
611
|
}
|
612
|
-
var
|
613
|
-
return
|
612
|
+
var xn = function(t) {
|
613
|
+
return wn(t) && !Cn(t);
|
614
614
|
};
|
615
|
-
function
|
615
|
+
function wn(e) {
|
616
616
|
return !!e && typeof e == "object";
|
617
617
|
}
|
618
618
|
function Cn(e) {
|
619
619
|
var t = Object.prototype.toString.call(e);
|
620
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
621
|
-
}
|
622
|
-
var wn = typeof Symbol == "function" && Symbol.for, Hn = wn ? Symbol.for("react.element") : 60103;
|
623
|
-
function Sn(e) {
|
624
|
-
return e.$$typeof === Hn;
|
620
|
+
return t === "[object RegExp]" || t === "[object Date]" || Tn(e);
|
625
621
|
}
|
622
|
+
var Hn = typeof Symbol == "function" && Symbol.for, Sn = Hn ? Symbol.for("react.element") : 60103;
|
626
623
|
function Tn(e) {
|
624
|
+
return e.$$typeof === Sn;
|
625
|
+
}
|
626
|
+
function An(e) {
|
627
627
|
return Array.isArray(e) ? [] : {};
|
628
628
|
}
|
629
|
-
function
|
630
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
629
|
+
function xe(e, t) {
|
630
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? le(An(e), e, t) : e;
|
631
631
|
}
|
632
|
-
function
|
632
|
+
function Bn(e, t, r) {
|
633
633
|
return e.concat(t).map(function(n) {
|
634
|
-
return
|
634
|
+
return xe(n, r);
|
635
635
|
});
|
636
636
|
}
|
637
|
-
function
|
637
|
+
function In(e, t) {
|
638
638
|
if (!t.customMerge)
|
639
|
-
return
|
639
|
+
return le;
|
640
640
|
var r = t.customMerge(e);
|
641
|
-
return typeof r == "function" ? r :
|
641
|
+
return typeof r == "function" ? r : le;
|
642
642
|
}
|
643
|
-
function
|
643
|
+
function Mn(e) {
|
644
644
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
645
645
|
return Object.propertyIsEnumerable.call(e, t);
|
646
646
|
}) : [];
|
647
647
|
}
|
648
|
-
function
|
649
|
-
return Object.keys(e).concat(
|
648
|
+
function xt(e) {
|
649
|
+
return Object.keys(e).concat(Mn(e));
|
650
650
|
}
|
651
|
-
function
|
651
|
+
function Kt(e, t) {
|
652
652
|
try {
|
653
653
|
return t in e;
|
654
654
|
} catch (r) {
|
655
655
|
return !1;
|
656
656
|
}
|
657
657
|
}
|
658
|
-
function
|
659
|
-
return
|
658
|
+
function Ln(e, t) {
|
659
|
+
return Kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
660
660
|
}
|
661
|
-
function
|
661
|
+
function Nn(e, t, r) {
|
662
662
|
var n = {};
|
663
|
-
return r.isMergeableObject(e) &&
|
664
|
-
n[i] =
|
665
|
-
}),
|
666
|
-
|
663
|
+
return r.isMergeableObject(e) && xt(e).forEach(function(i) {
|
664
|
+
n[i] = xe(e[i], r);
|
665
|
+
}), xt(t).forEach(function(i) {
|
666
|
+
Ln(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
667
667
|
}), n;
|
668
668
|
}
|
669
|
-
function
|
670
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
671
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
672
|
-
return
|
669
|
+
function le(e, t, r) {
|
670
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Bn, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified = xe;
|
671
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
672
|
+
return o ? n ? r.arrayMerge(e, t, r) : Nn(e, t, r) : xe(t, r);
|
673
673
|
}
|
674
|
-
|
674
|
+
le.all = function(t, r) {
|
675
675
|
if (!Array.isArray(t))
|
676
676
|
throw new Error("first argument should be an array");
|
677
677
|
return t.reduce(function(n, i) {
|
678
|
-
return
|
678
|
+
return le(n, i, r);
|
679
679
|
}, {});
|
680
680
|
};
|
681
|
-
var
|
682
|
-
const
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
687
|
-
purpose with or without fee is hereby granted.
|
688
|
-
|
689
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
690
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
691
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
692
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
693
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
694
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
695
|
-
PERFORMANCE OF THIS SOFTWARE.
|
696
|
-
***************************************************************************** */
|
697
|
-
var qe = function(e, t) {
|
698
|
-
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
681
|
+
var Pn = le, On = Pn;
|
682
|
+
const Fn = /* @__PURE__ */ En(On);
|
683
|
+
var Ye = function(e, t) {
|
684
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
699
685
|
r.__proto__ = n;
|
700
686
|
} || function(r, n) {
|
701
687
|
for (var i in n)
|
702
688
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
703
|
-
},
|
689
|
+
}, Ye(e, t);
|
704
690
|
};
|
705
|
-
function
|
691
|
+
function Fe(e, t) {
|
706
692
|
if (typeof t != "function" && t !== null)
|
707
693
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
708
|
-
|
694
|
+
Ye(e, t);
|
709
695
|
function r() {
|
710
696
|
this.constructor = e;
|
711
697
|
}
|
712
698
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
713
699
|
}
|
714
|
-
var
|
715
|
-
return
|
700
|
+
var j = function() {
|
701
|
+
return j = Object.assign || function(t) {
|
716
702
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
717
703
|
r = arguments[n];
|
718
|
-
for (var
|
719
|
-
Object.prototype.hasOwnProperty.call(r,
|
704
|
+
for (var o in r)
|
705
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
720
706
|
}
|
721
707
|
return t;
|
722
|
-
},
|
708
|
+
}, j.apply(this, arguments);
|
723
709
|
};
|
724
|
-
function
|
710
|
+
function Rn(e, t) {
|
725
711
|
var r = {};
|
726
712
|
for (var n in e)
|
727
713
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -730,46 +716,43 @@ function Fn(e, t) {
|
|
730
716
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
731
717
|
return r;
|
732
718
|
}
|
733
|
-
function
|
734
|
-
if (arguments.length === 2)
|
735
|
-
for (var n = 0, i = t.length,
|
736
|
-
(
|
737
|
-
return e.concat(
|
719
|
+
function Ve(e, t, r) {
|
720
|
+
if (r || arguments.length === 2)
|
721
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
722
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
723
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
738
724
|
}
|
739
|
-
function
|
740
|
-
var r = t && t.cache ? t.cache :
|
725
|
+
function Xe(e, t) {
|
726
|
+
var r = t && t.cache ? t.cache : Vn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Gn;
|
741
727
|
return i(e, {
|
742
728
|
cache: r,
|
743
729
|
serializer: n
|
744
730
|
});
|
745
731
|
}
|
746
|
-
function
|
732
|
+
function Dn(e) {
|
747
733
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
748
734
|
}
|
749
|
-
function
|
750
|
-
var i =
|
751
|
-
return typeof
|
735
|
+
function Un(e, t, r, n) {
|
736
|
+
var i = Dn(n) ? n : r(n), o = t.get(i);
|
737
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
752
738
|
}
|
753
739
|
function er(e, t, r) {
|
754
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
755
|
-
return typeof
|
740
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
741
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
756
742
|
}
|
757
|
-
function
|
743
|
+
function tr(e, t, r, n, i) {
|
758
744
|
return r.bind(t, e, n, i);
|
759
745
|
}
|
760
|
-
function Dn(e, t) {
|
761
|
-
var r = e.length === 1 ? Kt : er;
|
762
|
-
return at(e, this, r, t.cache.create(), t.serializer);
|
763
|
-
}
|
764
|
-
function Un(e, t) {
|
765
|
-
return at(e, this, er, t.cache.create(), t.serializer);
|
766
|
-
}
|
767
746
|
function Gn(e, t) {
|
768
|
-
|
747
|
+
var r = e.length === 1 ? Un : er;
|
748
|
+
return tr(e, this, r, t.cache.create(), t.serializer);
|
769
749
|
}
|
770
|
-
|
750
|
+
function kn(e, t) {
|
751
|
+
return tr(e, this, er, t.cache.create(), t.serializer);
|
752
|
+
}
|
753
|
+
var $n = function() {
|
771
754
|
return JSON.stringify(arguments);
|
772
|
-
},
|
755
|
+
}, jn = (
|
773
756
|
/** @class */
|
774
757
|
function() {
|
775
758
|
function e() {
|
@@ -781,62 +764,71 @@ var kn = function() {
|
|
781
764
|
this.cache[t] = r;
|
782
765
|
}, e;
|
783
766
|
}()
|
784
|
-
),
|
767
|
+
), Vn = {
|
785
768
|
create: function() {
|
786
|
-
return new
|
769
|
+
return new jn();
|
787
770
|
}
|
788
|
-
},
|
789
|
-
variadic:
|
790
|
-
|
791
|
-
|
771
|
+
}, We = {
|
772
|
+
variadic: kn
|
773
|
+
}, Le = function() {
|
774
|
+
return Le = Object.assign || function(t) {
|
775
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
776
|
+
r = arguments[n];
|
777
|
+
for (var o in r)
|
778
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
779
|
+
}
|
780
|
+
return t;
|
781
|
+
}, Le.apply(this, arguments);
|
782
|
+
};
|
783
|
+
var y;
|
792
784
|
(function(e) {
|
793
785
|
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";
|
794
786
|
})(y || (y = {}));
|
795
|
-
var
|
787
|
+
var T;
|
796
788
|
(function(e) {
|
797
789
|
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";
|
798
|
-
})(
|
799
|
-
var
|
790
|
+
})(T || (T = {}));
|
791
|
+
var ue;
|
800
792
|
(function(e) {
|
801
793
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
802
|
-
})(
|
803
|
-
function
|
804
|
-
return e.type ===
|
805
|
-
}
|
806
|
-
function Vn(e) {
|
807
|
-
return e.type === A.argument;
|
794
|
+
})(ue || (ue = {}));
|
795
|
+
function wt(e) {
|
796
|
+
return e.type === T.literal;
|
808
797
|
}
|
809
|
-
function
|
810
|
-
return e.type ===
|
798
|
+
function Xn(e) {
|
799
|
+
return e.type === T.argument;
|
811
800
|
}
|
812
801
|
function rr(e) {
|
813
|
-
return e.type ===
|
802
|
+
return e.type === T.number;
|
814
803
|
}
|
815
804
|
function nr(e) {
|
816
|
-
return e.type ===
|
805
|
+
return e.type === T.date;
|
817
806
|
}
|
818
807
|
function ir(e) {
|
819
|
-
return e.type ===
|
808
|
+
return e.type === T.time;
|
820
809
|
}
|
821
810
|
function or(e) {
|
822
|
-
return e.type ===
|
823
|
-
}
|
824
|
-
function Xn(e) {
|
825
|
-
return e.type === A.pound;
|
811
|
+
return e.type === T.select;
|
826
812
|
}
|
827
813
|
function sr(e) {
|
828
|
-
return e.type ===
|
814
|
+
return e.type === T.plural;
|
815
|
+
}
|
816
|
+
function Wn(e) {
|
817
|
+
return e.type === T.pound;
|
829
818
|
}
|
830
819
|
function ar(e) {
|
831
|
-
return
|
820
|
+
return e.type === T.tag;
|
832
821
|
}
|
833
|
-
function
|
834
|
-
return !!(e && typeof e == "object" && e.type ===
|
822
|
+
function lr(e) {
|
823
|
+
return !!(e && typeof e == "object" && e.type === ue.number);
|
824
|
+
}
|
825
|
+
function Ke(e) {
|
826
|
+
return !!(e && typeof e == "object" && e.type === ue.dateTime);
|
835
827
|
}
|
836
|
-
var
|
837
|
-
function
|
828
|
+
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[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;
|
829
|
+
function Zn(e) {
|
838
830
|
var t = {};
|
839
|
-
return e.replace(
|
831
|
+
return e.replace(zn, function(r) {
|
840
832
|
var n = r.length;
|
841
833
|
switch (r[0]) {
|
842
834
|
case "G":
|
@@ -925,17 +917,27 @@ function zn(e) {
|
|
925
917
|
return "";
|
926
918
|
}), t;
|
927
919
|
}
|
928
|
-
var
|
929
|
-
function
|
920
|
+
var A = function() {
|
921
|
+
return A = Object.assign || function(t) {
|
922
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
923
|
+
r = arguments[n];
|
924
|
+
for (var o in r)
|
925
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
926
|
+
}
|
927
|
+
return t;
|
928
|
+
}, A.apply(this, arguments);
|
929
|
+
};
|
930
|
+
var Qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
931
|
+
function qn(e) {
|
930
932
|
if (e.length === 0)
|
931
933
|
throw new Error("Number skeleton cannot be empty");
|
932
|
-
for (var t = e.split(
|
934
|
+
for (var t = e.split(Qn).filter(function(f) {
|
933
935
|
return f.length > 0;
|
934
936
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
935
|
-
var
|
936
|
-
if (
|
937
|
+
var o = i[n], s = o.split("/");
|
938
|
+
if (s.length === 0)
|
937
939
|
throw new Error("Invalid number skeleton");
|
938
|
-
for (var a =
|
940
|
+
for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
|
939
941
|
var m = c[l];
|
940
942
|
if (m.length === 0)
|
941
943
|
throw new Error("Invalid number skeleton");
|
@@ -944,17 +946,17 @@ function Qn(e) {
|
|
944
946
|
}
|
945
947
|
return r;
|
946
948
|
}
|
947
|
-
function
|
949
|
+
function Jn(e) {
|
948
950
|
return e.replace(/^(.*?)-/, "");
|
949
951
|
}
|
950
|
-
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
951
|
-
function
|
952
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
953
|
+
function Ht(e) {
|
952
954
|
var t = {};
|
953
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
955
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(r, n, i) {
|
954
956
|
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)), "";
|
955
957
|
}), t;
|
956
958
|
}
|
957
|
-
function
|
959
|
+
function fr(e) {
|
958
960
|
switch (e) {
|
959
961
|
case "sign-auto":
|
960
962
|
return {
|
@@ -994,7 +996,7 @@ function cr(e) {
|
|
994
996
|
};
|
995
997
|
}
|
996
998
|
}
|
997
|
-
function
|
999
|
+
function Kn(e) {
|
998
1000
|
var t;
|
999
1001
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1000
1002
|
notation: "engineering"
|
@@ -1002,17 +1004,17 @@ function Yn(e) {
|
|
1002
1004
|
notation: "scientific"
|
1003
1005
|
}, e = e.slice(1)), t) {
|
1004
1006
|
var r = e.slice(0, 2);
|
1005
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1007
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
|
1006
1008
|
throw new Error("Malformed concise eng/scientific notation");
|
1007
1009
|
t.minimumIntegerDigits = e.length;
|
1008
1010
|
}
|
1009
1011
|
return t;
|
1010
1012
|
}
|
1011
|
-
function
|
1012
|
-
var t = {}, r =
|
1013
|
+
function St(e) {
|
1014
|
+
var t = {}, r = fr(e);
|
1013
1015
|
return r || t;
|
1014
1016
|
}
|
1015
|
-
function
|
1017
|
+
function ei(e) {
|
1016
1018
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1017
1019
|
var i = n[r];
|
1018
1020
|
switch (i.stem) {
|
@@ -1036,7 +1038,7 @@ function Kn(e) {
|
|
1036
1038
|
continue;
|
1037
1039
|
case "measure-unit":
|
1038
1040
|
case "unit":
|
1039
|
-
t.style = "unit", t.unit =
|
1041
|
+
t.style = "unit", t.unit = Jn(i.options[0]);
|
1040
1042
|
continue;
|
1041
1043
|
case "compact-short":
|
1042
1044
|
case "K":
|
@@ -1047,13 +1049,13 @@ function Kn(e) {
|
|
1047
1049
|
t.notation = "compact", t.compactDisplay = "long";
|
1048
1050
|
continue;
|
1049
1051
|
case "scientific":
|
1050
|
-
t =
|
1051
|
-
return
|
1052
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
1053
|
+
return A(A({}, u), St(l));
|
1052
1054
|
}, {}));
|
1053
1055
|
continue;
|
1054
1056
|
case "engineering":
|
1055
|
-
t =
|
1056
|
-
return
|
1057
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
1058
|
+
return A(A({}, u), St(l));
|
1057
1059
|
}, {}));
|
1058
1060
|
continue;
|
1059
1061
|
case "notation-simple":
|
@@ -1098,7 +1100,7 @@ function Kn(e) {
|
|
1098
1100
|
case "integer-width":
|
1099
1101
|
if (i.options.length > 1)
|
1100
1102
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1101
|
-
i.options[0].replace(
|
1103
|
+
i.options[0].replace(Yn, function(u, l, c, m, f, p) {
|
1102
1104
|
if (l)
|
1103
1105
|
t.minimumIntegerDigits = c.length;
|
1104
1106
|
else {
|
@@ -1111,7 +1113,7 @@ function Kn(e) {
|
|
1111
1113
|
});
|
1112
1114
|
continue;
|
1113
1115
|
}
|
1114
|
-
if (
|
1116
|
+
if (cr.test(i.stem)) {
|
1115
1117
|
t.minimumIntegerDigits = i.stem.length;
|
1116
1118
|
continue;
|
1117
1119
|
}
|
@@ -1121,22 +1123,22 @@ function Kn(e) {
|
|
1121
1123
|
i.stem.replace(Ct, function(u, l, c, m, f, p) {
|
1122
1124
|
return c === "*" ? 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), "";
|
1123
1125
|
});
|
1124
|
-
var
|
1125
|
-
|
1126
|
+
var o = i.options[0];
|
1127
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Ht(o)));
|
1126
1128
|
continue;
|
1127
1129
|
}
|
1128
|
-
if (
|
1129
|
-
t =
|
1130
|
+
if (hr.test(i.stem)) {
|
1131
|
+
t = A(A({}, t), Ht(i.stem));
|
1130
1132
|
continue;
|
1131
1133
|
}
|
1132
|
-
var
|
1133
|
-
|
1134
|
-
var a =
|
1135
|
-
a && (t =
|
1134
|
+
var s = fr(i.stem);
|
1135
|
+
s && (t = A(A({}, t), s));
|
1136
|
+
var a = Kn(i.stem);
|
1137
|
+
a && (t = A(A({}, t), a));
|
1136
1138
|
}
|
1137
1139
|
return t;
|
1138
1140
|
}
|
1139
|
-
var
|
1141
|
+
var Ae = {
|
1140
1142
|
"001": [
|
1141
1143
|
"H",
|
1142
1144
|
"h"
|
@@ -2551,23 +2553,23 @@ var Te = {
|
|
2551
2553
|
"h"
|
2552
2554
|
]
|
2553
2555
|
};
|
2554
|
-
function
|
2556
|
+
function ti(e, t) {
|
2555
2557
|
for (var r = "", n = 0; n < e.length; n++) {
|
2556
2558
|
var i = e.charAt(n);
|
2557
2559
|
if (i === "j") {
|
2558
|
-
for (var
|
2559
|
-
|
2560
|
-
var
|
2560
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2561
|
+
o++, n++;
|
2562
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ri(t);
|
2561
2563
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2562
2564
|
r += u;
|
2563
|
-
for (;
|
2565
|
+
for (; s-- > 0; )
|
2564
2566
|
r = l + r;
|
2565
2567
|
} else
|
2566
2568
|
i === "J" ? r += "H" : r += i;
|
2567
2569
|
}
|
2568
2570
|
return r;
|
2569
2571
|
}
|
2570
|
-
function
|
2572
|
+
function ri(e) {
|
2571
2573
|
var t = e.hourCycle;
|
2572
2574
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2573
2575
|
e.hourCycles && // @ts-ignore
|
@@ -2586,23 +2588,23 @@ function ti(e) {
|
|
2586
2588
|
}
|
2587
2589
|
var r = e.language, n;
|
2588
2590
|
r !== "root" && (n = e.maximize().region);
|
2589
|
-
var i =
|
2591
|
+
var i = Ae[n || ""] || Ae[r || ""] || Ae["".concat(r, "-001")] || Ae["001"];
|
2590
2592
|
return i[0];
|
2591
2593
|
}
|
2592
|
-
var
|
2593
|
-
function
|
2594
|
+
var ze, ni = new RegExp("^".concat(ur.source, "*")), ii = new RegExp("".concat(ur.source, "*$"));
|
2595
|
+
function _(e, t) {
|
2594
2596
|
return { start: e, end: t };
|
2595
2597
|
}
|
2596
|
-
var
|
2598
|
+
var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, li = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
|
2597
2599
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2598
|
-
},
|
2600
|
+
}, et = !0;
|
2599
2601
|
try {
|
2600
|
-
var
|
2601
|
-
|
2602
|
+
var mi = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2603
|
+
et = ((ze = mi.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
|
2602
2604
|
} catch (e) {
|
2603
|
-
|
2605
|
+
et = !1;
|
2604
2606
|
}
|
2605
|
-
var
|
2607
|
+
var Tt = oi ? (
|
2606
2608
|
// Native
|
2607
2609
|
function(t, r, n) {
|
2608
2610
|
return t.startsWith(r, n);
|
@@ -2612,31 +2614,31 @@ var St = ii ? (
|
|
2612
2614
|
function(t, r, n) {
|
2613
2615
|
return t.slice(n, n + r.length) === r;
|
2614
2616
|
}
|
2615
|
-
),
|
2617
|
+
), tt = si ? String.fromCodePoint : (
|
2616
2618
|
// IE11
|
2617
2619
|
function() {
|
2618
2620
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2619
2621
|
t[r] = arguments[r];
|
2620
|
-
for (var n = "", i = t.length,
|
2621
|
-
if (
|
2622
|
-
throw RangeError(
|
2623
|
-
n +=
|
2622
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
2623
|
+
if (s = t[o++], s > 1114111)
|
2624
|
+
throw RangeError(s + " is not a valid code point");
|
2625
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
2624
2626
|
}
|
2625
2627
|
return n;
|
2626
2628
|
}
|
2627
|
-
),
|
2629
|
+
), At = (
|
2628
2630
|
// native
|
2629
|
-
|
2631
|
+
ai ? Object.fromEntries : (
|
2630
2632
|
// Ponyfill
|
2631
2633
|
function(t) {
|
2632
2634
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2633
|
-
var
|
2634
|
-
r[
|
2635
|
+
var o = i[n], s = o[0], a = o[1];
|
2636
|
+
r[s] = a;
|
2635
2637
|
}
|
2636
2638
|
return r;
|
2637
2639
|
}
|
2638
2640
|
)
|
2639
|
-
),
|
2641
|
+
), mr = li ? (
|
2640
2642
|
// Native
|
2641
2643
|
function(t, r) {
|
2642
2644
|
return t.codePointAt(r);
|
@@ -2646,11 +2648,11 @@ var St = ii ? (
|
|
2646
2648
|
function(t, r) {
|
2647
2649
|
var n = t.length;
|
2648
2650
|
if (!(r < 0 || r >= n)) {
|
2649
|
-
var i = t.charCodeAt(r),
|
2650
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
2651
|
+
var i = t.charCodeAt(r), o;
|
2652
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2651
2653
|
}
|
2652
2654
|
}
|
2653
|
-
),
|
2655
|
+
), di = ui ? (
|
2654
2656
|
// Native
|
2655
2657
|
function(t) {
|
2656
2658
|
return t.trimStart();
|
@@ -2658,9 +2660,9 @@ var St = ii ? (
|
|
2658
2660
|
) : (
|
2659
2661
|
// Ponyfill
|
2660
2662
|
function(t) {
|
2661
|
-
return t.replace(
|
2663
|
+
return t.replace(ni, "");
|
2662
2664
|
}
|
2663
|
-
),
|
2665
|
+
), pi = hi ? (
|
2664
2666
|
// Native
|
2665
2667
|
function(t) {
|
2666
2668
|
return t.trimEnd();
|
@@ -2668,32 +2670,32 @@ var St = ii ? (
|
|
2668
2670
|
) : (
|
2669
2671
|
// Ponyfill
|
2670
2672
|
function(t) {
|
2671
|
-
return t.replace(
|
2673
|
+
return t.replace(ii, "");
|
2672
2674
|
}
|
2673
2675
|
);
|
2674
|
-
function
|
2676
|
+
function dr(e, t) {
|
2675
2677
|
return new RegExp(e, t);
|
2676
2678
|
}
|
2677
|
-
var
|
2678
|
-
if (
|
2679
|
-
var
|
2680
|
-
|
2679
|
+
var rt;
|
2680
|
+
if (et) {
|
2681
|
+
var Bt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2682
|
+
rt = function(t, r) {
|
2681
2683
|
var n;
|
2682
|
-
|
2683
|
-
var i =
|
2684
|
+
Bt.lastIndex = r;
|
2685
|
+
var i = Bt.exec(t);
|
2684
2686
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2685
2687
|
};
|
2686
2688
|
} else
|
2687
|
-
|
2689
|
+
rt = function(t, r) {
|
2688
2690
|
for (var n = []; ; ) {
|
2689
|
-
var i =
|
2690
|
-
if (i === void 0 ||
|
2691
|
+
var i = mr(t, r);
|
2692
|
+
if (i === void 0 || pr(i) || vi(i))
|
2691
2693
|
break;
|
2692
2694
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2693
2695
|
}
|
2694
|
-
return
|
2696
|
+
return tt.apply(void 0, n);
|
2695
2697
|
};
|
2696
|
-
var
|
2698
|
+
var gi = (
|
2697
2699
|
/** @class */
|
2698
2700
|
function() {
|
2699
2701
|
function e(t, r) {
|
@@ -2705,35 +2707,35 @@ var pi = (
|
|
2705
2707
|
return this.parseMessage(0, "", !1);
|
2706
2708
|
}, e.prototype.parseMessage = function(t, r, n) {
|
2707
2709
|
for (var i = []; !this.isEOF(); ) {
|
2708
|
-
var
|
2709
|
-
if (
|
2710
|
-
var
|
2711
|
-
if (
|
2712
|
-
return
|
2713
|
-
i.push(
|
2710
|
+
var o = this.char();
|
2711
|
+
if (o === 123) {
|
2712
|
+
var s = this.parseArgument(t, n);
|
2713
|
+
if (s.err)
|
2714
|
+
return s;
|
2715
|
+
i.push(s.val);
|
2714
2716
|
} else {
|
2715
|
-
if (
|
2717
|
+
if (o === 125 && t > 0)
|
2716
2718
|
break;
|
2717
|
-
if (
|
2719
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2718
2720
|
var a = this.clonePosition();
|
2719
2721
|
this.bump(), i.push({
|
2720
|
-
type:
|
2721
|
-
location:
|
2722
|
+
type: T.pound,
|
2723
|
+
location: _(a, this.clonePosition())
|
2722
2724
|
});
|
2723
|
-
} else if (
|
2725
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2724
2726
|
if (n)
|
2725
2727
|
break;
|
2726
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
2727
|
-
} else if (
|
2728
|
-
var
|
2729
|
-
if (
|
2730
|
-
return
|
2731
|
-
i.push(
|
2728
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
2729
|
+
} else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
|
2730
|
+
var s = this.parseTag(t, r);
|
2731
|
+
if (s.err)
|
2732
|
+
return s;
|
2733
|
+
i.push(s.val);
|
2732
2734
|
} else {
|
2733
|
-
var
|
2734
|
-
if (
|
2735
|
-
return
|
2736
|
-
i.push(
|
2735
|
+
var s = this.parseLiteral(t, r);
|
2736
|
+
if (s.err)
|
2737
|
+
return s;
|
2738
|
+
i.push(s.val);
|
2737
2739
|
}
|
2738
2740
|
}
|
2739
2741
|
}
|
@@ -2745,51 +2747,51 @@ var pi = (
|
|
2745
2747
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2746
2748
|
return {
|
2747
2749
|
val: {
|
2748
|
-
type:
|
2750
|
+
type: T.literal,
|
2749
2751
|
value: "<".concat(i, "/>"),
|
2750
|
-
location:
|
2752
|
+
location: _(n, this.clonePosition())
|
2751
2753
|
},
|
2752
2754
|
err: null
|
2753
2755
|
};
|
2754
2756
|
if (this.bumpIf(">")) {
|
2755
|
-
var
|
2756
|
-
if (
|
2757
|
-
return
|
2758
|
-
var
|
2757
|
+
var o = this.parseMessage(t + 1, r, !0);
|
2758
|
+
if (o.err)
|
2759
|
+
return o;
|
2760
|
+
var s = o.val, a = this.clonePosition();
|
2759
2761
|
if (this.bumpIf("</")) {
|
2760
|
-
if (this.isEOF() || !
|
2761
|
-
return this.error(y.INVALID_TAG,
|
2762
|
+
if (this.isEOF() || !nt(this.char()))
|
2763
|
+
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
2762
2764
|
var u = this.clonePosition(), l = this.parseTagName();
|
2763
|
-
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG,
|
2765
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2764
2766
|
val: {
|
2765
|
-
type:
|
2767
|
+
type: T.tag,
|
2766
2768
|
value: i,
|
2767
|
-
children:
|
2768
|
-
location:
|
2769
|
+
children: s,
|
2770
|
+
location: _(n, this.clonePosition())
|
2769
2771
|
},
|
2770
2772
|
err: null
|
2771
|
-
} : this.error(y.INVALID_TAG,
|
2773
|
+
} : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
|
2772
2774
|
} else
|
2773
|
-
return this.error(y.UNCLOSED_TAG,
|
2775
|
+
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
2774
2776
|
} else
|
2775
|
-
return this.error(y.INVALID_TAG,
|
2777
|
+
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
2776
2778
|
}, e.prototype.parseTagName = function() {
|
2777
2779
|
var t = this.offset();
|
2778
|
-
for (this.bump(); !this.isEOF() &&
|
2780
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
2779
2781
|
this.bump();
|
2780
2782
|
return this.message.slice(t, this.offset());
|
2781
2783
|
}, e.prototype.parseLiteral = function(t, r) {
|
2782
2784
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
2783
|
-
var
|
2784
|
-
if (s) {
|
2785
|
-
i += s;
|
2786
|
-
continue;
|
2787
|
-
}
|
2788
|
-
var o = this.tryParseUnquoted(t, r);
|
2785
|
+
var o = this.tryParseQuote(r);
|
2789
2786
|
if (o) {
|
2790
2787
|
i += o;
|
2791
2788
|
continue;
|
2792
2789
|
}
|
2790
|
+
var s = this.tryParseUnquoted(t, r);
|
2791
|
+
if (s) {
|
2792
|
+
i += s;
|
2793
|
+
continue;
|
2794
|
+
}
|
2793
2795
|
var a = this.tryParseLeftAngleBracket();
|
2794
2796
|
if (a) {
|
2795
2797
|
i += a;
|
@@ -2797,14 +2799,14 @@ var pi = (
|
|
2797
2799
|
}
|
2798
2800
|
break;
|
2799
2801
|
}
|
2800
|
-
var u =
|
2802
|
+
var u = _(n, this.clonePosition());
|
2801
2803
|
return {
|
2802
|
-
val: { type:
|
2804
|
+
val: { type: T.literal, value: i, location: u },
|
2803
2805
|
err: null
|
2804
2806
|
};
|
2805
2807
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2806
2808
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2807
|
-
!
|
2809
|
+
!bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2808
2810
|
}, e.prototype.tryParseQuote = function(t) {
|
2809
2811
|
if (this.isEOF() || this.char() !== 39)
|
2810
2812
|
return null;
|
@@ -2838,49 +2840,49 @@ var pi = (
|
|
2838
2840
|
r.push(n);
|
2839
2841
|
this.bump();
|
2840
2842
|
}
|
2841
|
-
return
|
2843
|
+
return tt.apply(void 0, r);
|
2842
2844
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2843
2845
|
if (this.isEOF())
|
2844
2846
|
return null;
|
2845
2847
|
var n = this.char();
|
2846
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2848
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
|
2847
2849
|
}, e.prototype.parseArgument = function(t, r) {
|
2848
2850
|
var n = this.clonePosition();
|
2849
2851
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2850
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2852
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
2851
2853
|
if (this.char() === 125)
|
2852
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
2854
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
2853
2855
|
var i = this.parseIdentifierIfPossible().value;
|
2854
2856
|
if (!i)
|
2855
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
2857
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
2856
2858
|
if (this.bumpSpace(), this.isEOF())
|
2857
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2859
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
2858
2860
|
switch (this.char()) {
|
2859
2861
|
case 125:
|
2860
2862
|
return this.bump(), {
|
2861
2863
|
val: {
|
2862
|
-
type:
|
2864
|
+
type: T.argument,
|
2863
2865
|
// value does not include the opening and closing braces.
|
2864
2866
|
value: i,
|
2865
|
-
location:
|
2867
|
+
location: _(n, this.clonePosition())
|
2866
2868
|
},
|
2867
2869
|
err: null
|
2868
2870
|
};
|
2869
2871
|
case 44:
|
2870
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2872
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2871
2873
|
default:
|
2872
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
2874
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
2873
2875
|
}
|
2874
2876
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2875
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2877
|
+
var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
|
2876
2878
|
this.bumpTo(i);
|
2877
|
-
var
|
2878
|
-
return { value: n, location:
|
2879
|
+
var o = this.clonePosition(), s = _(t, o);
|
2880
|
+
return { value: n, location: s };
|
2879
2881
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2880
|
-
var
|
2882
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2881
2883
|
switch (a) {
|
2882
2884
|
case "":
|
2883
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
2885
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, u));
|
2884
2886
|
case "number":
|
2885
2887
|
case "date":
|
2886
2888
|
case "time": {
|
@@ -2891,35 +2893,35 @@ var pi = (
|
|
2891
2893
|
var c = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2892
2894
|
if (m.err)
|
2893
2895
|
return m;
|
2894
|
-
var f =
|
2896
|
+
var f = pi(m.val);
|
2895
2897
|
if (f.length === 0)
|
2896
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
2897
|
-
var p =
|
2898
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
2899
|
+
var p = _(c, this.clonePosition());
|
2898
2900
|
l = { style: f, styleLocation: p };
|
2899
2901
|
}
|
2900
2902
|
var g = this.tryParseArgumentClose(i);
|
2901
2903
|
if (g.err)
|
2902
2904
|
return g;
|
2903
|
-
var b =
|
2904
|
-
if (l &&
|
2905
|
-
var d =
|
2905
|
+
var b = _(i, this.clonePosition());
|
2906
|
+
if (l && Tt(l == null ? void 0 : l.style, "::", 0)) {
|
2907
|
+
var d = di(l.style.slice(2));
|
2906
2908
|
if (a === "number") {
|
2907
2909
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2908
2910
|
return m.err ? m : {
|
2909
|
-
val: { type:
|
2911
|
+
val: { type: T.number, value: n, location: b, style: m.val },
|
2910
2912
|
err: null
|
2911
2913
|
};
|
2912
2914
|
} else {
|
2913
2915
|
if (d.length === 0)
|
2914
2916
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2915
|
-
var
|
2916
|
-
this.locale && (
|
2917
|
+
var C = d;
|
2918
|
+
this.locale && (C = ti(d, this.locale));
|
2917
2919
|
var f = {
|
2918
|
-
type:
|
2919
|
-
pattern:
|
2920
|
+
type: ue.dateTime,
|
2921
|
+
pattern: C,
|
2920
2922
|
location: l.styleLocation,
|
2921
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2922
|
-
}, E = a === "date" ?
|
2923
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(C) : {}
|
2924
|
+
}, E = a === "date" ? T.date : T.time;
|
2923
2925
|
return {
|
2924
2926
|
val: { type: E, value: n, location: b, style: f },
|
2925
2927
|
err: null
|
@@ -2928,10 +2930,10 @@ var pi = (
|
|
2928
2930
|
}
|
2929
2931
|
return {
|
2930
2932
|
val: {
|
2931
|
-
type: a === "number" ?
|
2933
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
2932
2934
|
value: n,
|
2933
2935
|
location: b,
|
2934
|
-
style: (
|
2936
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
2935
2937
|
},
|
2936
2938
|
err: null
|
2937
2939
|
};
|
@@ -2941,50 +2943,50 @@ var pi = (
|
|
2941
2943
|
case "select": {
|
2942
2944
|
var w = this.clonePosition();
|
2943
2945
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2944
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2946
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(w, Le({}, w)));
|
2945
2947
|
this.bumpSpace();
|
2946
2948
|
var O = this.parseIdentifierIfPossible(), L = 0;
|
2947
2949
|
if (a !== "select" && O.value === "offset") {
|
2948
2950
|
if (!this.bumpIf(":"))
|
2949
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2951
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
2950
2952
|
this.bumpSpace();
|
2951
2953
|
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2952
2954
|
if (m.err)
|
2953
2955
|
return m;
|
2954
2956
|
this.bumpSpace(), O = this.parseIdentifierIfPossible(), L = m.val;
|
2955
2957
|
}
|
2956
|
-
var
|
2957
|
-
if (
|
2958
|
-
return
|
2958
|
+
var v = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
2959
|
+
if (v.err)
|
2960
|
+
return v;
|
2959
2961
|
var g = this.tryParseArgumentClose(i);
|
2960
2962
|
if (g.err)
|
2961
2963
|
return g;
|
2962
|
-
var
|
2964
|
+
var H = _(i, this.clonePosition());
|
2963
2965
|
return a === "select" ? {
|
2964
2966
|
val: {
|
2965
|
-
type:
|
2967
|
+
type: T.select,
|
2966
2968
|
value: n,
|
2967
|
-
options:
|
2968
|
-
location:
|
2969
|
+
options: At(v.val),
|
2970
|
+
location: H
|
2969
2971
|
},
|
2970
2972
|
err: null
|
2971
2973
|
} : {
|
2972
2974
|
val: {
|
2973
|
-
type:
|
2975
|
+
type: T.plural,
|
2974
2976
|
value: n,
|
2975
|
-
options:
|
2977
|
+
options: At(v.val),
|
2976
2978
|
offset: L,
|
2977
2979
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2978
|
-
location:
|
2980
|
+
location: H
|
2979
2981
|
},
|
2980
2982
|
err: null
|
2981
2983
|
};
|
2982
2984
|
}
|
2983
2985
|
default:
|
2984
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
2986
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(s, u));
|
2985
2987
|
}
|
2986
2988
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2987
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2989
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2988
2990
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2989
2991
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2990
2992
|
var n = this.char();
|
@@ -2993,7 +2995,7 @@ var pi = (
|
|
2993
2995
|
this.bump();
|
2994
2996
|
var i = this.clonePosition();
|
2995
2997
|
if (!this.bumpUntil("'"))
|
2996
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2998
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
|
2997
2999
|
this.bump();
|
2998
3000
|
break;
|
2999
3001
|
}
|
@@ -3023,37 +3025,37 @@ var pi = (
|
|
3023
3025
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3024
3026
|
var n = [];
|
3025
3027
|
try {
|
3026
|
-
n =
|
3028
|
+
n = qn(t);
|
3027
3029
|
} catch (i) {
|
3028
3030
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
3029
3031
|
}
|
3030
3032
|
return {
|
3031
3033
|
val: {
|
3032
|
-
type:
|
3034
|
+
type: ue.number,
|
3033
3035
|
tokens: n,
|
3034
3036
|
location: r,
|
3035
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3037
|
+
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
3036
3038
|
},
|
3037
3039
|
err: null
|
3038
3040
|
};
|
3039
3041
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3040
|
-
for (var
|
3042
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
3041
3043
|
if (l.length === 0) {
|
3042
3044
|
var m = this.clonePosition();
|
3043
3045
|
if (r !== "select" && this.bumpIf("=")) {
|
3044
3046
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3045
3047
|
if (f.err)
|
3046
3048
|
return f;
|
3047
|
-
c =
|
3049
|
+
c = _(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
|
3048
3050
|
} else
|
3049
3051
|
break;
|
3050
3052
|
}
|
3051
3053
|
if (u.has(l))
|
3052
3054
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
3053
|
-
l === "other" && (
|
3055
|
+
l === "other" && (s = !0), this.bumpSpace();
|
3054
3056
|
var p = this.clonePosition();
|
3055
3057
|
if (!this.bumpIf("{"))
|
3056
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
3058
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
3057
3059
|
var g = this.parseMessage(t + 1, r, n);
|
3058
3060
|
if (g.err)
|
3059
3061
|
return g;
|
@@ -3064,23 +3066,23 @@ var pi = (
|
|
3064
3066
|
l,
|
3065
3067
|
{
|
3066
3068
|
value: g.val,
|
3067
|
-
location:
|
3069
|
+
location: _(p, this.clonePosition())
|
3068
3070
|
}
|
3069
|
-
]), u.add(l), this.bumpSpace(),
|
3071
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
3070
3072
|
}
|
3071
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
3073
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3072
3074
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3073
3075
|
var n = 1, i = this.clonePosition();
|
3074
3076
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
3075
|
-
for (var
|
3077
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
3076
3078
|
var a = this.char();
|
3077
3079
|
if (a >= 48 && a <= 57)
|
3078
|
-
|
3080
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
3079
3081
|
else
|
3080
3082
|
break;
|
3081
3083
|
}
|
3082
|
-
var u =
|
3083
|
-
return
|
3084
|
+
var u = _(i, this.clonePosition());
|
3085
|
+
return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3084
3086
|
}, e.prototype.offset = function() {
|
3085
3087
|
return this.position.offset;
|
3086
3088
|
}, e.prototype.isEOF = function() {
|
@@ -3095,7 +3097,7 @@ var pi = (
|
|
3095
3097
|
var t = this.position.offset;
|
3096
3098
|
if (t >= this.message.length)
|
3097
3099
|
throw Error("out of bound");
|
3098
|
-
var r =
|
3100
|
+
var r = mr(this.message, t);
|
3099
3101
|
if (r === void 0)
|
3100
3102
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3101
3103
|
return r;
|
@@ -3114,7 +3116,7 @@ var pi = (
|
|
3114
3116
|
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);
|
3115
3117
|
}
|
3116
3118
|
}, e.prototype.bumpIf = function(t) {
|
3117
|
-
if (
|
3119
|
+
if (Tt(this.message, t, this.offset())) {
|
3118
3120
|
for (var r = 0; r < t.length; r++)
|
3119
3121
|
this.bump();
|
3120
3122
|
return !0;
|
@@ -3136,7 +3138,7 @@ var pi = (
|
|
3136
3138
|
break;
|
3137
3139
|
}
|
3138
3140
|
}, e.prototype.bumpSpace = function() {
|
3139
|
-
for (; !this.isEOF() &&
|
3141
|
+
for (; !this.isEOF() && pr(this.char()); )
|
3140
3142
|
this.bump();
|
3141
3143
|
}, e.prototype.peek = function() {
|
3142
3144
|
if (this.isEOF())
|
@@ -3146,87 +3148,87 @@ var pi = (
|
|
3146
3148
|
}, e;
|
3147
3149
|
}()
|
3148
3150
|
);
|
3149
|
-
function
|
3151
|
+
function nt(e) {
|
3150
3152
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3151
3153
|
}
|
3152
|
-
function gi(e) {
|
3153
|
-
return tt(e) || e === 47;
|
3154
|
-
}
|
3155
3154
|
function bi(e) {
|
3155
|
+
return nt(e) || e === 47;
|
3156
|
+
}
|
3157
|
+
function yi(e) {
|
3156
3158
|
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;
|
3157
3159
|
}
|
3158
|
-
function
|
3160
|
+
function pr(e) {
|
3159
3161
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3160
3162
|
}
|
3161
|
-
function
|
3163
|
+
function vi(e) {
|
3162
3164
|
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;
|
3163
3165
|
}
|
3164
|
-
function
|
3166
|
+
function it(e) {
|
3165
3167
|
e.forEach(function(t) {
|
3166
|
-
if (delete t.location,
|
3168
|
+
if (delete t.location, or(t) || sr(t))
|
3167
3169
|
for (var r in t.options)
|
3168
|
-
delete t.options[r].location,
|
3170
|
+
delete t.options[r].location, it(t.options[r].value);
|
3169
3171
|
else
|
3170
|
-
|
3172
|
+
rr(t) && lr(t.style) || (nr(t) || ir(t)) && Ke(t.style) ? delete t.style.location : ar(t) && it(t.children);
|
3171
3173
|
});
|
3172
3174
|
}
|
3173
3175
|
function _i(e, t) {
|
3174
|
-
t === void 0 && (t = {}), t =
|
3175
|
-
var r = new
|
3176
|
+
t === void 0 && (t = {}), t = Le({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3177
|
+
var r = new gi(e, t).parse();
|
3176
3178
|
if (r.err) {
|
3177
3179
|
var n = SyntaxError(y[r.err.kind]);
|
3178
3180
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3179
3181
|
}
|
3180
|
-
return t != null && t.captureLocation ||
|
3182
|
+
return t != null && t.captureLocation || it(r.val), r.val;
|
3181
3183
|
}
|
3182
|
-
var
|
3184
|
+
var he;
|
3183
3185
|
(function(e) {
|
3184
3186
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3185
|
-
})(
|
3186
|
-
var
|
3187
|
+
})(he || (he = {}));
|
3188
|
+
var Re = (
|
3187
3189
|
/** @class */
|
3188
3190
|
function(e) {
|
3189
|
-
|
3191
|
+
Fe(t, e);
|
3190
3192
|
function t(r, n, i) {
|
3191
|
-
var
|
3192
|
-
return
|
3193
|
+
var o = e.call(this, r) || this;
|
3194
|
+
return o.code = n, o.originalMessage = i, o;
|
3193
3195
|
}
|
3194
3196
|
return t.prototype.toString = function() {
|
3195
3197
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3196
3198
|
}, t;
|
3197
3199
|
}(Error)
|
3198
|
-
),
|
3200
|
+
), It = (
|
3199
3201
|
/** @class */
|
3200
3202
|
function(e) {
|
3201
|
-
|
3202
|
-
function t(r, n, i,
|
3203
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3203
|
+
Fe(t, e);
|
3204
|
+
function t(r, n, i, o) {
|
3205
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, o) || this;
|
3204
3206
|
}
|
3205
3207
|
return t;
|
3206
|
-
}(
|
3207
|
-
),
|
3208
|
+
}(Re)
|
3209
|
+
), Ei = (
|
3208
3210
|
/** @class */
|
3209
3211
|
function(e) {
|
3210
|
-
|
3212
|
+
Fe(t, e);
|
3211
3213
|
function t(r, n, i) {
|
3212
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3214
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
|
3213
3215
|
}
|
3214
3216
|
return t;
|
3215
|
-
}(
|
3216
|
-
),
|
3217
|
+
}(Re)
|
3218
|
+
), xi = (
|
3217
3219
|
/** @class */
|
3218
3220
|
function(e) {
|
3219
|
-
|
3221
|
+
Fe(t, e);
|
3220
3222
|
function t(r, n) {
|
3221
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3223
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
|
3222
3224
|
}
|
3223
3225
|
return t;
|
3224
|
-
}(
|
3226
|
+
}(Re)
|
3225
3227
|
), F;
|
3226
3228
|
(function(e) {
|
3227
3229
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3228
3230
|
})(F || (F = {}));
|
3229
|
-
function
|
3231
|
+
function wi(e) {
|
3230
3232
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3231
3233
|
var n = t[t.length - 1];
|
3232
3234
|
return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
|
@@ -3235,8 +3237,8 @@ function xi(e) {
|
|
3235
3237
|
function Ci(e) {
|
3236
3238
|
return typeof e == "function";
|
3237
3239
|
}
|
3238
|
-
function
|
3239
|
-
if (e.length === 1 &&
|
3240
|
+
function Ie(e, t, r, n, i, o, s) {
|
3241
|
+
if (e.length === 1 && wt(e[0]))
|
3240
3242
|
return [
|
3241
3243
|
{
|
3242
3244
|
type: F.literal,
|
@@ -3245,60 +3247,60 @@ function Be(e, t, r, n, i, s, o) {
|
|
3245
3247
|
];
|
3246
3248
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
3247
3249
|
var c = l[u];
|
3248
|
-
if (
|
3250
|
+
if (wt(c)) {
|
3249
3251
|
a.push({
|
3250
3252
|
type: F.literal,
|
3251
3253
|
value: c.value
|
3252
3254
|
});
|
3253
3255
|
continue;
|
3254
3256
|
}
|
3255
|
-
if (
|
3256
|
-
typeof
|
3257
|
+
if (Wn(c)) {
|
3258
|
+
typeof o == "number" && a.push({
|
3257
3259
|
type: F.literal,
|
3258
|
-
value: r.getNumberFormat(t).format(
|
3260
|
+
value: r.getNumberFormat(t).format(o)
|
3259
3261
|
});
|
3260
3262
|
continue;
|
3261
3263
|
}
|
3262
3264
|
var m = c.value;
|
3263
3265
|
if (!(i && m in i))
|
3264
|
-
throw new
|
3266
|
+
throw new xi(m, s);
|
3265
3267
|
var f = i[m];
|
3266
|
-
if (
|
3268
|
+
if (Xn(c)) {
|
3267
3269
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3268
3270
|
type: typeof f == "string" ? F.literal : F.object,
|
3269
3271
|
value: f
|
3270
3272
|
});
|
3271
3273
|
continue;
|
3272
3274
|
}
|
3273
|
-
if (
|
3274
|
-
var p = typeof c.style == "string" ? n.date[c.style] :
|
3275
|
+
if (nr(c)) {
|
3276
|
+
var p = typeof c.style == "string" ? n.date[c.style] : Ke(c.style) ? c.style.parsedOptions : void 0;
|
3275
3277
|
a.push({
|
3276
3278
|
type: F.literal,
|
3277
3279
|
value: r.getDateTimeFormat(t, p).format(f)
|
3278
3280
|
});
|
3279
3281
|
continue;
|
3280
3282
|
}
|
3281
|
-
if (
|
3282
|
-
var p = typeof c.style == "string" ? n.time[c.style] :
|
3283
|
+
if (ir(c)) {
|
3284
|
+
var p = typeof c.style == "string" ? n.time[c.style] : Ke(c.style) ? c.style.parsedOptions : n.time.medium;
|
3283
3285
|
a.push({
|
3284
3286
|
type: F.literal,
|
3285
3287
|
value: r.getDateTimeFormat(t, p).format(f)
|
3286
3288
|
});
|
3287
3289
|
continue;
|
3288
3290
|
}
|
3289
|
-
if (
|
3290
|
-
var p = typeof c.style == "string" ? n.number[c.style] :
|
3291
|
+
if (rr(c)) {
|
3292
|
+
var p = typeof c.style == "string" ? n.number[c.style] : lr(c.style) ? c.style.parsedOptions : void 0;
|
3291
3293
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3292
3294
|
type: F.literal,
|
3293
3295
|
value: r.getNumberFormat(t, p).format(f)
|
3294
3296
|
});
|
3295
3297
|
continue;
|
3296
3298
|
}
|
3297
|
-
if (
|
3299
|
+
if (ar(c)) {
|
3298
3300
|
var g = c.children, b = c.value, d = i[b];
|
3299
3301
|
if (!Ci(d))
|
3300
|
-
throw new
|
3301
|
-
var
|
3302
|
+
throw new Ei(b, "function", s);
|
3303
|
+
var C = Ie(g, t, r, n, i, o), E = d(C.map(function(L) {
|
3302
3304
|
return L.value;
|
3303
3305
|
}));
|
3304
3306
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(L) {
|
@@ -3308,42 +3310,42 @@ function Be(e, t, r, n, i, s, o) {
|
|
3308
3310
|
};
|
3309
3311
|
}));
|
3310
3312
|
}
|
3311
|
-
if (
|
3313
|
+
if (or(c)) {
|
3312
3314
|
var w = c.options[f] || c.options.other;
|
3313
3315
|
if (!w)
|
3314
|
-
throw new
|
3315
|
-
a.push.apply(a,
|
3316
|
+
throw new It(c.value, f, Object.keys(c.options), s);
|
3317
|
+
a.push.apply(a, Ie(w.value, t, r, n, i));
|
3316
3318
|
continue;
|
3317
3319
|
}
|
3318
|
-
if (
|
3320
|
+
if (sr(c)) {
|
3319
3321
|
var w = c.options["=".concat(f)];
|
3320
3322
|
if (!w) {
|
3321
3323
|
if (!Intl.PluralRules)
|
3322
|
-
throw new
|
3324
|
+
throw new Re(`Intl.PluralRules is not available in this environment.
|
3323
3325
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3324
|
-
`,
|
3326
|
+
`, he.MISSING_INTL_API, s);
|
3325
3327
|
var O = r.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
|
3326
3328
|
w = c.options[O] || c.options.other;
|
3327
3329
|
}
|
3328
3330
|
if (!w)
|
3329
|
-
throw new
|
3330
|
-
a.push.apply(a,
|
3331
|
+
throw new It(c.value, f, Object.keys(c.options), s);
|
3332
|
+
a.push.apply(a, Ie(w.value, t, r, n, i, f - (c.offset || 0)));
|
3331
3333
|
continue;
|
3332
3334
|
}
|
3333
3335
|
}
|
3334
|
-
return
|
3336
|
+
return wi(a);
|
3335
3337
|
}
|
3336
|
-
function
|
3337
|
-
return t ?
|
3338
|
-
return r[n] =
|
3338
|
+
function Hi(e, t) {
|
3339
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3340
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
3339
3341
|
}, {})) : e;
|
3340
3342
|
}
|
3341
|
-
function
|
3343
|
+
function Si(e, t) {
|
3342
3344
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3343
|
-
return r[n] =
|
3344
|
-
},
|
3345
|
+
return r[n] = Hi(e[n], t[n]), r;
|
3346
|
+
}, j({}, e)) : e;
|
3345
3347
|
}
|
3346
|
-
function
|
3348
|
+
function Ze(e) {
|
3347
3349
|
return {
|
3348
3350
|
create: function() {
|
3349
3351
|
return {
|
@@ -3357,50 +3359,50 @@ function We(e) {
|
|
3357
3359
|
}
|
3358
3360
|
};
|
3359
3361
|
}
|
3360
|
-
function
|
3362
|
+
function Ti(e) {
|
3361
3363
|
return e === void 0 && (e = {
|
3362
3364
|
number: {},
|
3363
3365
|
dateTime: {},
|
3364
3366
|
pluralRules: {}
|
3365
3367
|
}), {
|
3366
|
-
getNumberFormat:
|
3368
|
+
getNumberFormat: Xe(function() {
|
3367
3369
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3368
3370
|
r[n] = arguments[n];
|
3369
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3371
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
3370
3372
|
}, {
|
3371
|
-
cache:
|
3372
|
-
strategy:
|
3373
|
+
cache: Ze(e.number),
|
3374
|
+
strategy: We.variadic
|
3373
3375
|
}),
|
3374
|
-
getDateTimeFormat:
|
3376
|
+
getDateTimeFormat: Xe(function() {
|
3375
3377
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3376
3378
|
r[n] = arguments[n];
|
3377
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3379
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
3378
3380
|
}, {
|
3379
|
-
cache:
|
3380
|
-
strategy:
|
3381
|
+
cache: Ze(e.dateTime),
|
3382
|
+
strategy: We.variadic
|
3381
3383
|
}),
|
3382
|
-
getPluralRules:
|
3384
|
+
getPluralRules: Xe(function() {
|
3383
3385
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3384
3386
|
r[n] = arguments[n];
|
3385
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3387
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ve([void 0], r, !1)))();
|
3386
3388
|
}, {
|
3387
|
-
cache:
|
3388
|
-
strategy:
|
3389
|
+
cache: Ze(e.pluralRules),
|
3390
|
+
strategy: We.variadic
|
3389
3391
|
})
|
3390
3392
|
};
|
3391
3393
|
}
|
3392
|
-
var
|
3394
|
+
var Ai = (
|
3393
3395
|
/** @class */
|
3394
3396
|
function() {
|
3395
3397
|
function e(t, r, n, i) {
|
3396
3398
|
r === void 0 && (r = e.defaultLocale);
|
3397
|
-
var
|
3399
|
+
var o = this;
|
3398
3400
|
if (this.formatterCache = {
|
3399
3401
|
number: {},
|
3400
3402
|
dateTime: {},
|
3401
3403
|
pluralRules: {}
|
3402
3404
|
}, this.format = function(u) {
|
3403
|
-
var l =
|
3405
|
+
var l = o.formatToParts(u);
|
3404
3406
|
if (l.length === 1)
|
3405
3407
|
return l[0].value;
|
3406
3408
|
var c = l.reduce(function(m, f) {
|
@@ -3408,26 +3410,26 @@ var Ti = (
|
|
3408
3410
|
}, []);
|
3409
3411
|
return c.length <= 1 ? c[0] || "" : c;
|
3410
3412
|
}, this.formatToParts = function(u) {
|
3411
|
-
return
|
3413
|
+
return Ie(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
3412
3414
|
}, this.resolvedOptions = function() {
|
3413
3415
|
var u;
|
3414
3416
|
return {
|
3415
|
-
locale: ((u =
|
3417
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3416
3418
|
};
|
3417
3419
|
}, this.getAst = function() {
|
3418
|
-
return
|
3420
|
+
return o.ast;
|
3419
3421
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3420
3422
|
if (this.message = t, !e.__parse)
|
3421
3423
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3422
|
-
var
|
3423
|
-
|
3424
|
-
var a =
|
3425
|
-
this.ast = e.__parse(t,
|
3424
|
+
var s = i || {};
|
3425
|
+
s.formatters;
|
3426
|
+
var a = Rn(s, ["formatters"]);
|
3427
|
+
this.ast = e.__parse(t, j(j({}, a), { locale: this.resolvedLocale }));
|
3426
3428
|
} else
|
3427
3429
|
this.ast = t;
|
3428
3430
|
if (!Array.isArray(this.ast))
|
3429
3431
|
throw new TypeError("A message must be provided as a String or AST.");
|
3430
|
-
this.formats =
|
3432
|
+
this.formats = Si(e.formats, n), this.formatters = i && i.formatters || Ti(this.formatterCache);
|
3431
3433
|
}
|
3432
3434
|
return Object.defineProperty(e, "defaultLocale", {
|
3433
3435
|
get: function() {
|
@@ -3501,7 +3503,7 @@ var Ti = (
|
|
3501
3503
|
}, e;
|
3502
3504
|
}()
|
3503
3505
|
);
|
3504
|
-
function
|
3506
|
+
function Bi(e, t) {
|
3505
3507
|
if (t == null)
|
3506
3508
|
return;
|
3507
3509
|
if (t in e)
|
@@ -3511,9 +3513,9 @@ function Ai(e, t) {
|
|
3511
3513
|
for (let i = 0; i < r.length; i++)
|
3512
3514
|
if (typeof n == "object") {
|
3513
3515
|
if (i > 0) {
|
3514
|
-
const
|
3515
|
-
if (
|
3516
|
-
n = n[
|
3516
|
+
const o = r.slice(i, r.length).join(".");
|
3517
|
+
if (o in n) {
|
3518
|
+
n = n[o];
|
3517
3519
|
break;
|
3518
3520
|
}
|
3519
3521
|
}
|
@@ -3522,92 +3524,92 @@ function Ai(e, t) {
|
|
3522
3524
|
n = void 0;
|
3523
3525
|
return n;
|
3524
3526
|
}
|
3525
|
-
const
|
3527
|
+
const z = {}, Ii = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), gr = (e, t) => {
|
3526
3528
|
if (t == null)
|
3527
3529
|
return;
|
3528
|
-
if (t in
|
3529
|
-
return
|
3530
|
-
const r =
|
3530
|
+
if (t in z && e in z[t])
|
3531
|
+
return z[t][e];
|
3532
|
+
const r = De(t);
|
3531
3533
|
for (let n = 0; n < r.length; n++) {
|
3532
|
-
const i = r[n],
|
3533
|
-
if (
|
3534
|
-
return
|
3534
|
+
const i = r[n], o = Li(i, e);
|
3535
|
+
if (o)
|
3536
|
+
return Ii(e, t, o);
|
3535
3537
|
}
|
3536
3538
|
};
|
3537
|
-
let
|
3538
|
-
const
|
3539
|
-
function
|
3540
|
-
return
|
3539
|
+
let ut;
|
3540
|
+
const me = Oe({});
|
3541
|
+
function Mi(e) {
|
3542
|
+
return ut[e] || null;
|
3541
3543
|
}
|
3542
|
-
function
|
3543
|
-
return e in
|
3544
|
+
function br(e) {
|
3545
|
+
return e in ut;
|
3544
3546
|
}
|
3545
|
-
function
|
3546
|
-
if (!
|
3547
|
+
function Li(e, t) {
|
3548
|
+
if (!br(e))
|
3547
3549
|
return null;
|
3548
|
-
const r =
|
3549
|
-
return
|
3550
|
+
const r = Mi(e);
|
3551
|
+
return Bi(r, t);
|
3550
3552
|
}
|
3551
|
-
function
|
3553
|
+
function Ni(e) {
|
3552
3554
|
if (e == null)
|
3553
3555
|
return;
|
3554
|
-
const t =
|
3556
|
+
const t = De(e);
|
3555
3557
|
for (let r = 0; r < t.length; r++) {
|
3556
3558
|
const n = t[r];
|
3557
|
-
if (
|
3559
|
+
if (br(n))
|
3558
3560
|
return n;
|
3559
3561
|
}
|
3560
3562
|
}
|
3561
|
-
function
|
3562
|
-
delete
|
3563
|
+
function yr(e, ...t) {
|
3564
|
+
delete z[e], me.update((r) => (r[e] = Fn.all([r[e] || {}, ...t]), r));
|
3563
3565
|
}
|
3564
|
-
|
3565
|
-
[
|
3566
|
+
fe(
|
3567
|
+
[me],
|
3566
3568
|
([e]) => Object.keys(e)
|
3567
3569
|
);
|
3568
|
-
|
3569
|
-
const
|
3570
|
-
function
|
3571
|
-
|
3570
|
+
me.subscribe((e) => ut = e);
|
3571
|
+
const Me = {};
|
3572
|
+
function Pi(e, t) {
|
3573
|
+
Me[e].delete(t), Me[e].size === 0 && delete Me[e];
|
3572
3574
|
}
|
3573
|
-
function
|
3574
|
-
return
|
3575
|
+
function vr(e) {
|
3576
|
+
return Me[e];
|
3575
3577
|
}
|
3576
|
-
function
|
3577
|
-
return
|
3578
|
-
const r =
|
3578
|
+
function Oi(e) {
|
3579
|
+
return De(e).map((t) => {
|
3580
|
+
const r = vr(t);
|
3579
3581
|
return [t, r ? [...r] : []];
|
3580
3582
|
}).filter(([, t]) => t.length > 0);
|
3581
3583
|
}
|
3582
|
-
function
|
3583
|
-
return e == null ? !1 :
|
3584
|
+
function ot(e) {
|
3585
|
+
return e == null ? !1 : De(e).some(
|
3584
3586
|
(t) => {
|
3585
3587
|
var r;
|
3586
|
-
return (r =
|
3588
|
+
return (r = vr(t)) == null ? void 0 : r.size;
|
3587
3589
|
}
|
3588
3590
|
);
|
3589
3591
|
}
|
3590
|
-
function
|
3592
|
+
function Fi(e, t) {
|
3591
3593
|
return Promise.all(
|
3592
|
-
t.map((n) => (
|
3593
|
-
).then((n) =>
|
3594
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
3595
|
+
).then((n) => yr(e, ...n));
|
3594
3596
|
}
|
3595
|
-
const
|
3597
|
+
const be = {};
|
3596
3598
|
function _r(e) {
|
3597
|
-
if (!
|
3598
|
-
return e in
|
3599
|
-
const t =
|
3600
|
-
return
|
3599
|
+
if (!ot(e))
|
3600
|
+
return e in be ? be[e] : Promise.resolve();
|
3601
|
+
const t = Oi(e);
|
3602
|
+
return be[e] = Promise.all(
|
3601
3603
|
t.map(
|
3602
|
-
([r, n]) =>
|
3604
|
+
([r, n]) => Fi(r, n)
|
3603
3605
|
)
|
3604
3606
|
).then(() => {
|
3605
|
-
if (
|
3607
|
+
if (ot(e))
|
3606
3608
|
return _r(e);
|
3607
|
-
delete
|
3608
|
-
}),
|
3609
|
+
delete be[e];
|
3610
|
+
}), be[e];
|
3609
3611
|
}
|
3610
|
-
const
|
3612
|
+
const Ri = {
|
3611
3613
|
number: {
|
3612
3614
|
scientific: { notation: "scientific" },
|
3613
3615
|
engineering: { notation: "engineering" },
|
@@ -3636,150 +3638,150 @@ const Fi = {
|
|
3636
3638
|
timeZoneName: "short"
|
3637
3639
|
}
|
3638
3640
|
}
|
3639
|
-
},
|
3641
|
+
}, Di = {
|
3640
3642
|
fallbackLocale: null,
|
3641
3643
|
loadingDelay: 200,
|
3642
|
-
formats:
|
3644
|
+
formats: Ri,
|
3643
3645
|
warnOnMissingMessages: !0,
|
3644
3646
|
handleMissingMessage: void 0,
|
3645
3647
|
ignoreTag: !0
|
3646
|
-
},
|
3647
|
-
function
|
3648
|
-
return
|
3649
|
-
}
|
3650
|
-
const
|
3651
|
-
var
|
3652
|
-
for (var r in t)
|
3653
|
-
|
3654
|
-
if (
|
3655
|
-
for (var r of
|
3656
|
-
|
3648
|
+
}, Ui = Di;
|
3649
|
+
function ce() {
|
3650
|
+
return Ui;
|
3651
|
+
}
|
3652
|
+
const Qe = Oe(!1);
|
3653
|
+
var Gi = Object.defineProperty, ki = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xi = (e, t) => {
|
3654
|
+
for (var r in t || (t = {}))
|
3655
|
+
ji.call(t, r) && Lt(e, r, t[r]);
|
3656
|
+
if (Mt)
|
3657
|
+
for (var r of Mt(t))
|
3658
|
+
Vi.call(t, r) && Lt(e, r, t[r]);
|
3657
3659
|
return e;
|
3658
|
-
},
|
3659
|
-
let
|
3660
|
-
const
|
3661
|
-
function
|
3660
|
+
}, Wi = (e, t) => ki(e, $i(t));
|
3661
|
+
let st;
|
3662
|
+
const Ne = Oe(null);
|
3663
|
+
function Nt(e) {
|
3662
3664
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3663
3665
|
}
|
3664
|
-
function
|
3665
|
-
const r =
|
3666
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3666
|
+
function De(e, t = ce().fallbackLocale) {
|
3667
|
+
const r = Nt(e);
|
3668
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Nt(t)])] : r;
|
3667
3669
|
}
|
3668
|
-
function
|
3669
|
-
return
|
3670
|
+
function ee() {
|
3671
|
+
return st != null ? st : void 0;
|
3670
3672
|
}
|
3671
|
-
|
3672
|
-
|
3673
|
+
Ne.subscribe((e) => {
|
3674
|
+
st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3673
3675
|
});
|
3674
|
-
const
|
3675
|
-
if (e &&
|
3676
|
-
const { loadingDelay: t } =
|
3676
|
+
const zi = (e) => {
|
3677
|
+
if (e && Ni(e) && ot(e)) {
|
3678
|
+
const { loadingDelay: t } = ce();
|
3677
3679
|
let r;
|
3678
|
-
return typeof window != "undefined" &&
|
3679
|
-
() =>
|
3680
|
+
return typeof window != "undefined" && ee() != null && t ? r = window.setTimeout(
|
3681
|
+
() => Qe.set(!0),
|
3680
3682
|
t
|
3681
|
-
) :
|
3682
|
-
|
3683
|
+
) : Qe.set(!0), _r(e).then(() => {
|
3684
|
+
Ne.set(e);
|
3683
3685
|
}).finally(() => {
|
3684
|
-
clearTimeout(r),
|
3686
|
+
clearTimeout(r), Qe.set(!1);
|
3685
3687
|
});
|
3686
3688
|
}
|
3687
|
-
return
|
3688
|
-
},
|
3689
|
-
set:
|
3690
|
-
}),
|
3689
|
+
return Ne.set(e);
|
3690
|
+
}, Z = Wi(Xi({}, Ne), {
|
3691
|
+
set: zi
|
3692
|
+
}), Ue = (e) => {
|
3691
3693
|
const t = /* @__PURE__ */ Object.create(null);
|
3692
3694
|
return (n) => {
|
3693
3695
|
const i = JSON.stringify(n);
|
3694
3696
|
return i in t ? t[i] : t[i] = e(n);
|
3695
3697
|
};
|
3696
3698
|
};
|
3697
|
-
var
|
3699
|
+
var Zi = Object.defineProperty, Pe = Object.getOwnPropertySymbols, Er = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
3698
3700
|
for (var r in t || (t = {}))
|
3699
|
-
|
3700
|
-
if (
|
3701
|
-
for (var r of
|
3702
|
-
|
3701
|
+
Er.call(t, r) && Pt(e, r, t[r]);
|
3702
|
+
if (Pe)
|
3703
|
+
for (var r of Pe(t))
|
3704
|
+
xr.call(t, r) && Pt(e, r, t[r]);
|
3703
3705
|
return e;
|
3704
|
-
},
|
3706
|
+
}, de = (e, t) => {
|
3705
3707
|
var r = {};
|
3706
3708
|
for (var n in e)
|
3707
|
-
|
3708
|
-
if (e != null &&
|
3709
|
-
for (var n of
|
3710
|
-
t.indexOf(n) < 0 &&
|
3709
|
+
Er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3710
|
+
if (e != null && Pe)
|
3711
|
+
for (var n of Pe(e))
|
3712
|
+
t.indexOf(n) < 0 && xr.call(e, n) && (r[n] = e[n]);
|
3711
3713
|
return r;
|
3712
3714
|
};
|
3713
|
-
const
|
3714
|
-
const { formats: r } =
|
3715
|
+
const we = (e, t) => {
|
3716
|
+
const { formats: r } = ce();
|
3715
3717
|
if (e in r && t in r[e])
|
3716
3718
|
return r[e][t];
|
3717
3719
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3718
|
-
},
|
3720
|
+
}, Qi = Ue(
|
3719
3721
|
(e) => {
|
3720
|
-
var t = e, { locale: r, format: n } = t, i =
|
3722
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
3721
3723
|
if (r == null)
|
3722
3724
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3723
|
-
return n && (i =
|
3725
|
+
return n && (i = we("number", n)), new Intl.NumberFormat(r, i);
|
3724
3726
|
}
|
3725
|
-
),
|
3727
|
+
), qi = Ue(
|
3726
3728
|
(e) => {
|
3727
|
-
var t = e, { locale: r, format: n } = t, i =
|
3729
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
3728
3730
|
if (r == null)
|
3729
3731
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3730
|
-
return n ? i =
|
3732
|
+
return n ? i = we("date", n) : Object.keys(i).length === 0 && (i = we("date", "short")), new Intl.DateTimeFormat(r, i);
|
3731
3733
|
}
|
3732
|
-
),
|
3734
|
+
), Ji = Ue(
|
3733
3735
|
(e) => {
|
3734
|
-
var t = e, { locale: r, format: n } = t, i =
|
3736
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
3735
3737
|
if (r == null)
|
3736
3738
|
throw new Error(
|
3737
3739
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3738
3740
|
);
|
3739
|
-
return n ? i =
|
3741
|
+
return n ? i = we("time", n) : Object.keys(i).length === 0 && (i = we("time", "short")), new Intl.DateTimeFormat(r, i);
|
3740
3742
|
}
|
3741
|
-
),
|
3743
|
+
), Yi = (e = {}) => {
|
3742
3744
|
var t = e, {
|
3743
|
-
locale: r =
|
3744
|
-
} = t, n =
|
3745
|
+
locale: r = ee()
|
3746
|
+
} = t, n = de(t, [
|
3745
3747
|
"locale"
|
3746
3748
|
]);
|
3747
|
-
return
|
3748
|
-
},
|
3749
|
+
return Qi(ht({ locale: r }, n));
|
3750
|
+
}, Ki = (e = {}) => {
|
3749
3751
|
var t = e, {
|
3750
|
-
locale: r =
|
3751
|
-
} = t, n =
|
3752
|
+
locale: r = ee()
|
3753
|
+
} = t, n = de(t, [
|
3752
3754
|
"locale"
|
3753
3755
|
]);
|
3754
|
-
return
|
3755
|
-
},
|
3756
|
+
return qi(ht({ locale: r }, n));
|
3757
|
+
}, eo = (e = {}) => {
|
3756
3758
|
var t = e, {
|
3757
|
-
locale: r =
|
3758
|
-
} = t, n =
|
3759
|
+
locale: r = ee()
|
3760
|
+
} = t, n = de(t, [
|
3759
3761
|
"locale"
|
3760
3762
|
]);
|
3761
|
-
return
|
3762
|
-
},
|
3763
|
+
return Ji(ht({ locale: r }, n));
|
3764
|
+
}, to = Ue(
|
3763
3765
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3764
|
-
(e, t =
|
3765
|
-
ignoreTag:
|
3766
|
+
(e, t = ee()) => new Ai(e, t, ce().formats, {
|
3767
|
+
ignoreTag: ce().ignoreTag
|
3766
3768
|
})
|
3767
|
-
),
|
3768
|
-
var r, n, i,
|
3769
|
-
let
|
3770
|
-
typeof e == "object" && (
|
3769
|
+
), ro = (e, t = {}) => {
|
3770
|
+
var r, n, i, o;
|
3771
|
+
let s = t;
|
3772
|
+
typeof e == "object" && (s = e, e = s.id);
|
3771
3773
|
const {
|
3772
3774
|
values: a,
|
3773
|
-
locale: u =
|
3775
|
+
locale: u = ee(),
|
3774
3776
|
default: l
|
3775
|
-
} =
|
3777
|
+
} = s;
|
3776
3778
|
if (u == null)
|
3777
3779
|
throw new Error(
|
3778
3780
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3779
3781
|
);
|
3780
|
-
let c =
|
3782
|
+
let c = gr(e, u);
|
3781
3783
|
if (!c)
|
3782
|
-
c = (
|
3784
|
+
c = (o = (i = (n = (r = ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3783
3785
|
else if (typeof c != "string")
|
3784
3786
|
return console.warn(
|
3785
3787
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3788,7 +3790,7 @@ const xe = (e, t) => {
|
|
3788
3790
|
return c;
|
3789
3791
|
let m = c;
|
3790
3792
|
try {
|
3791
|
-
m =
|
3793
|
+
m = to(c, u).format(a);
|
3792
3794
|
} catch (f) {
|
3793
3795
|
f instanceof Error && console.warn(
|
3794
3796
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3796,24 +3798,24 @@ const xe = (e, t) => {
|
|
3796
3798
|
);
|
3797
3799
|
}
|
3798
3800
|
return m;
|
3799
|
-
},
|
3800
|
-
|
3801
|
-
|
3802
|
-
|
3803
|
-
|
3804
|
-
|
3805
|
-
function
|
3806
|
-
|
3807
|
-
r == null && (
|
3801
|
+
}, no = (e, t) => eo(t).format(e), io = (e, t) => Ki(t).format(e), oo = (e, t) => Yi(t).format(e), so = (e, t = ee()) => gr(e, t);
|
3802
|
+
fe([Z, me], () => ro);
|
3803
|
+
fe([Z], () => no);
|
3804
|
+
fe([Z], () => io);
|
3805
|
+
fe([Z], () => oo);
|
3806
|
+
fe([Z, me], () => so);
|
3807
|
+
function ao({ withLocale: e, translations: t }) {
|
3808
|
+
Z.subscribe((r) => {
|
3809
|
+
r == null && (me.set(t), Z.set(e));
|
3808
3810
|
});
|
3809
3811
|
}
|
3810
|
-
function
|
3811
|
-
|
3812
|
+
function Ot(e, t) {
|
3813
|
+
yr(e, t);
|
3812
3814
|
}
|
3813
|
-
function
|
3814
|
-
|
3815
|
+
function lo(e) {
|
3816
|
+
Z.set(e);
|
3815
3817
|
}
|
3816
|
-
const
|
3818
|
+
const Ft = {
|
3817
3819
|
en: {
|
3818
3820
|
login: "Login",
|
3819
3821
|
register: "Register",
|
@@ -3870,111 +3872,111 @@ const Ot = {
|
|
3870
3872
|
deposit: "Deposit"
|
3871
3873
|
}
|
3872
3874
|
};
|
3873
|
-
function
|
3874
|
-
|
3875
|
+
function uo(e) {
|
3876
|
+
Zr(e, "svelte-wvhhix", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.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, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.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, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.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}');
|
3875
3877
|
}
|
3876
|
-
function
|
3878
|
+
function Rt(e, t, r) {
|
3877
3879
|
const n = e.slice();
|
3878
3880
|
return n[57] = t[r], n[59] = r, n;
|
3879
3881
|
}
|
3880
|
-
function
|
3882
|
+
function Dt(e, t, r) {
|
3881
3883
|
const n = e.slice();
|
3882
3884
|
return n[60] = t[r], n;
|
3883
3885
|
}
|
3884
|
-
function
|
3886
|
+
function Ut(e, t, r) {
|
3885
3887
|
const n = e.slice();
|
3886
3888
|
return n[63] = t[r], n[65] = r, n;
|
3887
3889
|
}
|
3888
|
-
function
|
3889
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3890
|
+
function Gt(e) {
|
3891
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ae(
|
3890
3892
|
/*sliderdata*/
|
3891
3893
|
e[9]
|
3892
3894
|
);
|
3893
|
-
const
|
3895
|
+
const o = (s) => (
|
3894
3896
|
/*category*/
|
3895
|
-
|
3897
|
+
s[57].id
|
3896
3898
|
);
|
3897
|
-
for (let
|
3898
|
-
let a =
|
3899
|
-
r.set(u, t[
|
3899
|
+
for (let s = 0; s < i.length; s += 1) {
|
3900
|
+
let a = Rt(e, i, s), u = o(a);
|
3901
|
+
r.set(u, t[s] = Wt(u, a));
|
3900
3902
|
}
|
3901
3903
|
return {
|
3902
3904
|
c() {
|
3903
|
-
for (let
|
3904
|
-
t[
|
3905
|
+
for (let s = 0; s < t.length; s += 1)
|
3906
|
+
t[s].c();
|
3905
3907
|
n = _e();
|
3906
3908
|
},
|
3907
|
-
m(
|
3909
|
+
m(s, a) {
|
3908
3910
|
for (let u = 0; u < t.length; u += 1)
|
3909
|
-
t[u] && t[u].m(
|
3910
|
-
k(
|
3911
|
+
t[u] && t[u].m(s, a);
|
3912
|
+
k(s, n, a);
|
3911
3913
|
},
|
3912
|
-
p(
|
3914
|
+
p(s, a) {
|
3913
3915
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3914
|
-
1183695 && (i =
|
3916
|
+
1183695 && (i = ae(
|
3915
3917
|
/*sliderdata*/
|
3916
|
-
|
3917
|
-
), t =
|
3918
|
+
s[9]
|
3919
|
+
), t = Jt(t, a, o, 1, s, i, r, n.parentNode, qt, Wt, n, Rt));
|
3918
3920
|
},
|
3919
|
-
d(
|
3920
|
-
|
3921
|
+
d(s) {
|
3922
|
+
s && U(n);
|
3921
3923
|
for (let a = 0; a < t.length; a += 1)
|
3922
|
-
t[a].d(
|
3924
|
+
t[a].d(s);
|
3923
3925
|
}
|
3924
3926
|
};
|
3925
3927
|
}
|
3926
|
-
function
|
3928
|
+
function ho(e) {
|
3927
3929
|
let t, r = (
|
3928
3930
|
/*category*/
|
3929
3931
|
e[57].name + ""
|
3930
3932
|
), n;
|
3931
3933
|
return {
|
3932
3934
|
c() {
|
3933
|
-
t = P("button"), n = Ce(r),
|
3935
|
+
t = P("button"), n = Ce(r), S(t, "class", "CategoryButton");
|
3934
3936
|
},
|
3935
|
-
m(i,
|
3936
|
-
k(i, t,
|
3937
|
+
m(i, o) {
|
3938
|
+
k(i, t, o), M(t, n);
|
3937
3939
|
},
|
3938
|
-
p(i,
|
3939
|
-
|
3940
|
+
p(i, o) {
|
3941
|
+
o[0] & /*sliderdata*/
|
3940
3942
|
512 && r !== (r = /*category*/
|
3941
|
-
i[57].name + "") &&
|
3943
|
+
i[57].name + "") && lt(n, r);
|
3942
3944
|
},
|
3943
3945
|
d(i) {
|
3944
3946
|
i && U(t);
|
3945
3947
|
}
|
3946
3948
|
};
|
3947
3949
|
}
|
3948
|
-
function
|
3950
|
+
function co(e) {
|
3949
3951
|
let t, r = (
|
3950
3952
|
/*category*/
|
3951
3953
|
e[57].label + ""
|
3952
3954
|
), n, i;
|
3953
3955
|
return {
|
3954
3956
|
c() {
|
3955
|
-
t = P("a"), n = Ce(r),
|
3957
|
+
t = P("a"), n = Ce(r), S(t, "href", i = /*category*/
|
3956
3958
|
e[57].path);
|
3957
3959
|
},
|
3958
|
-
m(
|
3959
|
-
k(
|
3960
|
+
m(o, s) {
|
3961
|
+
k(o, t, s), M(t, n);
|
3960
3962
|
},
|
3961
|
-
p(
|
3962
|
-
|
3963
|
+
p(o, s) {
|
3964
|
+
s[0] & /*sliderdata*/
|
3963
3965
|
512 && r !== (r = /*category*/
|
3964
|
-
|
3966
|
+
o[57].label + "") && lt(n, r), s[0] & /*sliderdata*/
|
3965
3967
|
512 && i !== (i = /*category*/
|
3966
|
-
|
3968
|
+
o[57].path) && S(t, "href", i);
|
3967
3969
|
},
|
3968
|
-
d(
|
3969
|
-
|
3970
|
+
d(o) {
|
3971
|
+
o && U(t);
|
3970
3972
|
}
|
3971
3973
|
};
|
3972
3974
|
}
|
3973
|
-
function
|
3975
|
+
function kt(e) {
|
3974
3976
|
let t, r = (
|
3975
3977
|
/*subGroupsData*/
|
3976
3978
|
e[10].length > 0 && /*showsubgroups*/
|
3977
|
-
e[2] == "true" &&
|
3979
|
+
e[2] == "true" && $t(e)
|
3978
3980
|
);
|
3979
3981
|
return {
|
3980
3982
|
c() {
|
@@ -3986,60 +3988,60 @@ function Gt(e) {
|
|
3986
3988
|
p(n, i) {
|
3987
3989
|
/*subGroupsData*/
|
3988
3990
|
n[10].length > 0 && /*showsubgroups*/
|
3989
|
-
n[2] == "true" ? r ? r.p(n, i) : (r =
|
3991
|
+
n[2] == "true" ? r ? r.p(n, i) : (r = $t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
3990
3992
|
},
|
3991
3993
|
d(n) {
|
3992
3994
|
n && U(t), r && r.d(n);
|
3993
3995
|
}
|
3994
3996
|
};
|
3995
3997
|
}
|
3996
|
-
function
|
3997
|
-
let t, r =
|
3998
|
+
function $t(e) {
|
3999
|
+
let t, r = ae(
|
3998
4000
|
/*subGroupsData*/
|
3999
4001
|
e[10]
|
4000
4002
|
), n = [];
|
4001
4003
|
for (let i = 0; i < r.length; i += 1)
|
4002
|
-
n[i] =
|
4004
|
+
n[i] = Xt(Dt(e, r, i));
|
4003
4005
|
return {
|
4004
4006
|
c() {
|
4005
4007
|
t = P("ul");
|
4006
4008
|
for (let i = 0; i < n.length; i += 1)
|
4007
4009
|
n[i].c();
|
4008
|
-
|
4010
|
+
S(t, "class", "DropDown");
|
4009
4011
|
},
|
4010
|
-
m(i,
|
4011
|
-
k(i, t,
|
4012
|
-
for (let
|
4013
|
-
n[
|
4012
|
+
m(i, o) {
|
4013
|
+
k(i, t, o);
|
4014
|
+
for (let s = 0; s < n.length; s += 1)
|
4015
|
+
n[s] && n[s].m(t, null);
|
4014
4016
|
},
|
4015
|
-
p(i,
|
4016
|
-
if (
|
4017
|
+
p(i, o) {
|
4018
|
+
if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
4017
4019
|
133056) {
|
4018
|
-
r =
|
4020
|
+
r = ae(
|
4019
4021
|
/*subGroupsData*/
|
4020
4022
|
i[10]
|
4021
4023
|
);
|
4022
|
-
let
|
4023
|
-
for (
|
4024
|
-
const a =
|
4025
|
-
n[
|
4024
|
+
let s;
|
4025
|
+
for (s = 0; s < r.length; s += 1) {
|
4026
|
+
const a = Dt(i, r, s);
|
4027
|
+
n[s] ? n[s].p(a, o) : (n[s] = Xt(a), n[s].c(), n[s].m(t, null));
|
4026
4028
|
}
|
4027
|
-
for (;
|
4028
|
-
n[
|
4029
|
+
for (; s < n.length; s += 1)
|
4030
|
+
n[s].d(1);
|
4029
4031
|
n.length = r.length;
|
4030
4032
|
}
|
4031
4033
|
},
|
4032
4034
|
d(i) {
|
4033
|
-
i && U(t),
|
4035
|
+
i && U(t), Jr(n, i);
|
4034
4036
|
}
|
4035
4037
|
};
|
4036
4038
|
}
|
4037
|
-
function
|
4039
|
+
function jt(e) {
|
4038
4040
|
var c;
|
4039
4041
|
let t, r, n = (
|
4040
4042
|
/*subGroupItem*/
|
4041
4043
|
((c = e[63]) == null ? void 0 : c.name) + ""
|
4042
|
-
), i,
|
4044
|
+
), i, o, s, a, u;
|
4043
4045
|
function l(...m) {
|
4044
4046
|
return (
|
4045
4047
|
/*click_handler_2*/
|
@@ -4058,7 +4060,7 @@ function $t(e) {
|
|
4058
4060
|
}
|
4059
4061
|
return {
|
4060
4062
|
c() {
|
4061
|
-
t = P("li"), r = P("a"), i = Ce(n),
|
4063
|
+
t = P("li"), r = P("a"), i = Ce(n), s = Y(), S(r, "class", o = "SubDropDown " + /*index*/
|
4062
4064
|
(e[59] == /*activeIndex*/
|
4063
4065
|
e[6] && /*activeSubIndex*/
|
4064
4066
|
(e[7] == /*subindex*/
|
@@ -4067,31 +4069,31 @@ function $t(e) {
|
|
4067
4069
|
e[65]) ? "active" : ""));
|
4068
4070
|
},
|
4069
4071
|
m(m, f) {
|
4070
|
-
k(m, t, f), M(t, r), M(r, i), M(t,
|
4072
|
+
k(m, t, f), M(t, r), M(r, i), M(t, s), a || (u = X(t, "click", l), a = !0);
|
4071
4073
|
},
|
4072
4074
|
p(m, f) {
|
4073
4075
|
var p;
|
4074
4076
|
e = m, f[0] & /*subGroupsData*/
|
4075
4077
|
1024 && n !== (n = /*subGroupItem*/
|
4076
|
-
((p = e[63]) == null ? void 0 : p.name) + "") &&
|
4077
|
-
1984 &&
|
4078
|
+
((p = e[63]) == null ? void 0 : p.name) + "") && lt(i, n), f[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
4079
|
+
1984 && o !== (o = "SubDropDown " + /*index*/
|
4078
4080
|
(e[59] == /*activeIndex*/
|
4079
4081
|
e[6] && /*activeSubIndex*/
|
4080
4082
|
(e[7] == /*subindex*/
|
4081
4083
|
e[65] || /*prevSubIndex*/
|
4082
4084
|
e[8] == /*subindex*/
|
4083
|
-
e[65]) ? "active" : "")) &&
|
4085
|
+
e[65]) ? "active" : "")) && S(r, "class", o);
|
4084
4086
|
},
|
4085
4087
|
d(m) {
|
4086
4088
|
m && U(t), a = !1, u();
|
4087
4089
|
}
|
4088
4090
|
};
|
4089
4091
|
}
|
4090
|
-
function
|
4092
|
+
function Vt(e, t) {
|
4091
4093
|
let r, n, i = (
|
4092
4094
|
/*index*/
|
4093
4095
|
t[59] == /*subGroup*/
|
4094
|
-
t[60].index &&
|
4096
|
+
t[60].index && jt(t)
|
4095
4097
|
);
|
4096
4098
|
return {
|
4097
4099
|
key: e,
|
@@ -4099,63 +4101,63 @@ function jt(e, t) {
|
|
4099
4101
|
c() {
|
4100
4102
|
r = _e(), i && i.c(), n = _e(), this.first = r;
|
4101
4103
|
},
|
4102
|
-
m(
|
4103
|
-
k(
|
4104
|
+
m(o, s) {
|
4105
|
+
k(o, r, s), i && i.m(o, s), k(o, n, s);
|
4104
4106
|
},
|
4105
|
-
p(
|
4106
|
-
t =
|
4107
|
+
p(o, s) {
|
4108
|
+
t = o, /*index*/
|
4107
4109
|
t[59] == /*subGroup*/
|
4108
|
-
t[60].index ? i ? i.p(t,
|
4110
|
+
t[60].index ? i ? i.p(t, s) : (i = jt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
4109
4111
|
},
|
4110
|
-
d(
|
4111
|
-
|
4112
|
+
d(o) {
|
4113
|
+
o && (U(r), U(n)), i && i.d(o);
|
4112
4114
|
}
|
4113
4115
|
};
|
4114
4116
|
}
|
4115
|
-
function
|
4116
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4117
|
+
function Xt(e) {
|
4118
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ae(
|
4117
4119
|
/*subGroup*/
|
4118
4120
|
e[60].items
|
4119
4121
|
);
|
4120
|
-
const
|
4122
|
+
const o = (s) => (
|
4121
4123
|
/*subGroupItem*/
|
4122
|
-
|
4124
|
+
s[63].id
|
4123
4125
|
);
|
4124
|
-
for (let
|
4125
|
-
let a =
|
4126
|
-
r.set(u, t[
|
4126
|
+
for (let s = 0; s < i.length; s += 1) {
|
4127
|
+
let a = Ut(e, i, s), u = o(a);
|
4128
|
+
r.set(u, t[s] = Vt(u, a));
|
4127
4129
|
}
|
4128
4130
|
return {
|
4129
4131
|
c() {
|
4130
|
-
for (let
|
4131
|
-
t[
|
4132
|
+
for (let s = 0; s < t.length; s += 1)
|
4133
|
+
t[s].c();
|
4132
4134
|
n = _e();
|
4133
4135
|
},
|
4134
|
-
m(
|
4136
|
+
m(s, a) {
|
4135
4137
|
for (let u = 0; u < t.length; u += 1)
|
4136
|
-
t[u] && t[u].m(
|
4137
|
-
k(
|
4138
|
+
t[u] && t[u].m(s, a);
|
4139
|
+
k(s, n, a);
|
4138
4140
|
},
|
4139
|
-
p(
|
4141
|
+
p(s, a) {
|
4140
4142
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4141
|
-
133056 && (i =
|
4143
|
+
133056 && (i = ae(
|
4142
4144
|
/*subGroup*/
|
4143
|
-
|
4144
|
-
), t =
|
4145
|
+
s[60].items
|
4146
|
+
), t = Jt(t, a, o, 1, s, i, r, n.parentNode, qt, Vt, n, Ut));
|
4145
4147
|
},
|
4146
|
-
d(
|
4147
|
-
|
4148
|
+
d(s) {
|
4149
|
+
s && U(n);
|
4148
4150
|
for (let a = 0; a < t.length; a += 1)
|
4149
|
-
t[a].d(
|
4151
|
+
t[a].d(s);
|
4150
4152
|
}
|
4151
4153
|
};
|
4152
4154
|
}
|
4153
|
-
function
|
4154
|
-
let r, n, i,
|
4155
|
+
function Wt(e, t) {
|
4156
|
+
let r, n, i, o, s, a, u, l, c, m, f;
|
4155
4157
|
function p(E, w) {
|
4156
4158
|
return (
|
4157
4159
|
/*location*/
|
4158
|
-
E[0] === "headerMain" ?
|
4160
|
+
E[0] === "headerMain" ? co : ho
|
4159
4161
|
);
|
4160
4162
|
}
|
4161
4163
|
let g = p(t), b = g(t), d = (
|
@@ -4163,9 +4165,9 @@ function Xt(e, t) {
|
|
4163
4165
|
t[11][
|
4164
4166
|
/*index*/
|
4165
4167
|
t[59]
|
4166
|
-
] == !0 &&
|
4168
|
+
] == !0 && kt(t)
|
4167
4169
|
);
|
4168
|
-
function
|
4170
|
+
function C(...E) {
|
4169
4171
|
return (
|
4170
4172
|
/*click_handler_3*/
|
4171
4173
|
t[39](
|
@@ -4182,12 +4184,12 @@ function Xt(e, t) {
|
|
4182
4184
|
first: null,
|
4183
4185
|
c() {
|
4184
4186
|
var E, w;
|
4185
|
-
r = P("li"), n = P("div"), i = P("img"), a =
|
4186
|
-
(t[3] === "true" ? "" : "DisplayNone")), _t(i.src,
|
4187
|
+
r = P("li"), n = P("div"), i = P("img"), a = Y(), b.c(), u = Y(), d && d.c(), l = Y(), S(i, "class", o = "CategoryIconImg " + /*categoriesicon*/
|
4188
|
+
(t[3] === "true" ? "" : "DisplayNone")), _t(i.src, s = /*handleSrc*/
|
4187
4189
|
t[20](
|
4188
4190
|
/*category*/
|
4189
4191
|
t[57]
|
4190
|
-
)) ||
|
4192
|
+
)) || S(i, "src", s), S(n, "class", "CategoryIcon"), S(r, "class", c = "CarouselItem " + /*activeindex*/
|
4191
4193
|
(((E = t[1]) == null ? void 0 : E.toString().indexOf("$")) > -1 ? (
|
4192
4194
|
/*activeindex*/
|
4193
4195
|
((w = t[1]) == null ? void 0 : w.split("$").pop()) == /*category*/
|
@@ -4200,22 +4202,22 @@ function Xt(e, t) {
|
|
4200
4202
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4201
4203
|
},
|
4202
4204
|
m(E, w) {
|
4203
|
-
k(E, r, w), M(r, n), M(n, i), M(r, a), b.m(r, null), M(r, u), d && d.m(r, null), M(r, l), m || (f =
|
4205
|
+
k(E, r, w), M(r, n), M(n, i), M(r, a), b.m(r, null), M(r, u), d && d.m(r, null), M(r, l), m || (f = X(r, "click", C), m = !0);
|
4204
4206
|
},
|
4205
4207
|
p(E, w) {
|
4206
4208
|
var O, L;
|
4207
4209
|
t = E, w[0] & /*categoriesicon*/
|
4208
|
-
8 &&
|
4209
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4210
|
-
512 && !_t(i.src,
|
4210
|
+
8 && o !== (o = "CategoryIconImg " + /*categoriesicon*/
|
4211
|
+
(t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", o), w[0] & /*sliderdata*/
|
4212
|
+
512 && !_t(i.src, s = /*handleSrc*/
|
4211
4213
|
t[20](
|
4212
4214
|
/*category*/
|
4213
4215
|
t[57]
|
4214
|
-
)) &&
|
4216
|
+
)) && S(i, "src", s), g === (g = p(t)) && b ? b.p(t, w) : (b.d(1), b = g(t), b && (b.c(), b.m(r, u))), /*itemsActive*/
|
4215
4217
|
t[11][
|
4216
4218
|
/*index*/
|
4217
4219
|
t[59]
|
4218
|
-
] == !0 ? d ? d.p(t, w) : (d =
|
4220
|
+
] == !0 ? d ? d.p(t, w) : (d = kt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), w[0] & /*activeindex, sliderdata, location*/
|
4219
4221
|
515 && c !== (c = "CarouselItem " + /*activeindex*/
|
4220
4222
|
(((O = t[1]) == null ? void 0 : O.toString().indexOf("$")) > -1 ? (
|
4221
4223
|
/*activeindex*/
|
@@ -4226,62 +4228,62 @@ function Xt(e, t) {
|
|
4226
4228
|
t[1] == /*category*/
|
4227
4229
|
t[57].id ? "active" : ""
|
4228
4230
|
)) + " " + /*location*/
|
4229
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4231
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", c);
|
4230
4232
|
},
|
4231
4233
|
d(E) {
|
4232
4234
|
E && U(r), b.d(), d && d.d(), m = !1, f();
|
4233
4235
|
}
|
4234
4236
|
};
|
4235
4237
|
}
|
4236
|
-
function
|
4237
|
-
let t, r, n, i,
|
4238
|
+
function fo(e) {
|
4239
|
+
let t, r, n, i, o, s, a, u, l, c, m, f, p, g, b, d = (
|
4238
4240
|
/*sliderdata*/
|
4239
|
-
e[9].length > 0 &&
|
4241
|
+
e[9].length > 0 && Gt(e)
|
4240
4242
|
);
|
4241
4243
|
return {
|
4242
4244
|
c() {
|
4243
|
-
t = P("div"), r = P("div"), n = P("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 =
|
4244
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4245
|
-
e[0] === "headerMain" ? "max-width: auto" : void 0),
|
4245
|
+
t = P("div"), r = P("div"), n = P("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 = Y(), o = P("div"), s = P("ul"), a = P("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = Y(), d && d.c(), l = Y(), c = P("div"), c.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>', S(n, "class", "CarouselLeftArrow"), S(a, "class", "TouchOnly"), S(s, "id", "CarouselNav"), S(s, "class", "CarouselItems"), S(o, "class", "CarouselNavWrap scroller"), S(c, "class", "CarouselRightArrow"), S(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4246
|
+
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), S(r, "style", f = /*location*/
|
4247
|
+
e[0] === "headerMain" ? "max-width: auto" : void 0), S(t, "class", p = "CarouselWrapper " + /*location*/
|
4246
4248
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4247
4249
|
},
|
4248
|
-
m(
|
4249
|
-
k(
|
4250
|
-
|
4250
|
+
m(C, E) {
|
4251
|
+
k(C, t, E), M(t, r), M(r, n), M(r, i), M(r, o), M(o, s), M(s, a), M(s, u), d && d.m(s, null), e[40](s), e[41](o), M(r, l), M(r, c), e[43](t), g || (b = [
|
4252
|
+
X(
|
4251
4253
|
n,
|
4252
4254
|
"click",
|
4253
4255
|
/*click_handler_1*/
|
4254
4256
|
e[37]
|
4255
4257
|
),
|
4256
|
-
|
4257
|
-
|
4258
|
+
X(
|
4259
|
+
s,
|
4258
4260
|
"mousedown",
|
4259
4261
|
/*handleMouseDown*/
|
4260
4262
|
e[13]
|
4261
4263
|
),
|
4262
|
-
|
4263
|
-
|
4264
|
+
X(
|
4265
|
+
s,
|
4264
4266
|
"mouseleave",
|
4265
4267
|
/*handleMouseLeave*/
|
4266
4268
|
e[14]
|
4267
4269
|
),
|
4268
|
-
|
4269
|
-
|
4270
|
+
X(
|
4271
|
+
s,
|
4270
4272
|
"mouseup",
|
4271
4273
|
/*handleMouseUp*/
|
4272
4274
|
e[15]
|
4273
4275
|
),
|
4274
|
-
|
4275
|
-
|
4276
|
+
X(
|
4277
|
+
s,
|
4276
4278
|
"mousemove",
|
4277
4279
|
/*handleMouseMove*/
|
4278
4280
|
e[16]
|
4279
4281
|
),
|
4280
|
-
|
4282
|
+
X(s, "click", Yr(
|
4281
4283
|
/*click_handler*/
|
4282
4284
|
e[36]
|
4283
4285
|
)),
|
4284
|
-
|
4286
|
+
X(
|
4285
4287
|
c,
|
4286
4288
|
"click",
|
4287
4289
|
/*click_handler_4*/
|
@@ -4289,198 +4291,198 @@ function co(e) {
|
|
4289
4291
|
)
|
4290
4292
|
], g = !0);
|
4291
4293
|
},
|
4292
|
-
p(
|
4294
|
+
p(C, E) {
|
4293
4295
|
/*sliderdata*/
|
4294
|
-
|
4296
|
+
C[9].length > 0 ? d ? d.p(C, E) : (d = Gt(C), d.c(), d.m(s, null)) : d && (d.d(1), d = null), E[0] & /*location*/
|
4295
4297
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4296
|
-
|
4298
|
+
C[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", m), E[0] & /*location*/
|
4297
4299
|
1 && f !== (f = /*location*/
|
4298
|
-
|
4300
|
+
C[0] === "headerMain" ? "max-width: auto" : void 0) && S(r, "style", f), E[0] & /*location*/
|
4299
4301
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4300
|
-
(
|
4302
|
+
(C[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
|
4301
4303
|
},
|
4302
4304
|
i: $,
|
4303
4305
|
o: $,
|
4304
|
-
d(
|
4305
|
-
|
4306
|
+
d(C) {
|
4307
|
+
C && U(t), d && d.d(), e[40](null), e[41](null), e[43](null), g = !1, K(b);
|
4306
4308
|
}
|
4307
4309
|
};
|
4308
4310
|
}
|
4309
|
-
function
|
4310
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
4311
|
-
|
4312
|
-
let
|
4313
|
-
const
|
4311
|
+
function mo(e, t, r) {
|
4312
|
+
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: o = "defaultEvent" } = t, { actionevent: s = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: C = "false" } = t, { categoriesicon: E = "false" } = t, { lobbyiconimage: w = "" } = t, { mygamesiconimage: O = "" } = t, { mbsource: L = "" } = t, v;
|
4313
|
+
ao({ withLocale: "en", translations: {} });
|
4314
|
+
let H = !1, R = 0, D = 0;
|
4315
|
+
const te = (h) => {
|
4314
4316
|
var x, I;
|
4315
|
-
h.preventDefault(),
|
4316
|
-
}, xr = (h) => {
|
4317
|
-
h.preventDefault(), S = !1, _ == null || _.classList.remove("dragging");
|
4318
|
-
}, Cr = (h) => {
|
4319
|
-
S = !1, _ == null || _.classList.remove("dragging");
|
4317
|
+
h.preventDefault(), H = !0, v == null || v.classList.add("dragging"), R = h.pageX - ((x = v == null ? void 0 : v.offsetLeft) != null ? x : 0), D = (I = v == null ? void 0 : v.scrollLeft) != null ? I : 0;
|
4320
4318
|
}, wr = (h) => {
|
4321
|
-
|
4319
|
+
h.preventDefault(), H = !1, v == null || v.classList.remove("dragging");
|
4320
|
+
}, Cr = (h) => {
|
4321
|
+
H = !1, v == null || v.classList.remove("dragging");
|
4322
|
+
}, Hr = (h) => {
|
4323
|
+
if (!H || !v)
|
4322
4324
|
return;
|
4323
4325
|
h.preventDefault();
|
4324
|
-
const I = (h.pageX -
|
4325
|
-
r(5,
|
4326
|
-
},
|
4326
|
+
const I = (h.pageX - v.offsetLeft - R) * 2.5;
|
4327
|
+
r(5, v.scrollLeft = D - I, v);
|
4328
|
+
}, Sr = () => {
|
4327
4329
|
fetch(f).then((x) => x.json()).then((x) => {
|
4328
4330
|
Object.keys(x).forEach((I) => {
|
4329
|
-
|
4331
|
+
Ot(I, x[I]);
|
4330
4332
|
});
|
4331
4333
|
}).catch((x) => {
|
4332
4334
|
console.log(x);
|
4333
4335
|
});
|
4334
4336
|
};
|
4335
|
-
Object.keys(
|
4336
|
-
|
4337
|
+
Object.keys(Ft).forEach((h) => {
|
4338
|
+
Ot(h, Ft[h]);
|
4337
4339
|
});
|
4338
|
-
let
|
4339
|
-
var
|
4340
|
-
if (!(h.subGroups &&
|
4341
|
-
if (
|
4340
|
+
let Q, pe, Ge, V, ge = [], He = [], re = [], N, ke = (h, x, I, q, W) => {
|
4341
|
+
var J;
|
4342
|
+
if (!(h.subGroups && q === null)) {
|
4343
|
+
if (Se(), r(6, Q = x), r(6, Q), W != "secondary") {
|
4342
4344
|
window.postMessage(
|
4343
4345
|
{
|
4344
|
-
type:
|
4346
|
+
type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4345
4347
|
buzz: "1",
|
4346
4348
|
itemId: h.id,
|
4347
4349
|
index: x,
|
4348
4350
|
item: h,
|
4349
4351
|
path: h.path,
|
4350
4352
|
externalLink: h.externalLink || !1,
|
4351
|
-
target: ((
|
4353
|
+
target: ((J = h.attrs) == null ? void 0 : J.target) || null
|
4352
4354
|
},
|
4353
4355
|
window.location.href
|
4354
|
-
), r(7,
|
4356
|
+
), r(7, pe = null), r(8, Ge = null);
|
4355
4357
|
return;
|
4356
4358
|
}
|
4357
|
-
r(7,
|
4359
|
+
r(7, pe = q), r(7, pe), r(8, Ge = pe), window.postMessage(
|
4358
4360
|
{
|
4359
|
-
type:
|
4361
|
+
type: s,
|
4360
4362
|
itemId: I.id,
|
4361
|
-
subIndex:
|
4363
|
+
subIndex: q,
|
4362
4364
|
subItem: I
|
4363
4365
|
},
|
4364
4366
|
window.location.href
|
4365
4367
|
);
|
4366
4368
|
}
|
4367
|
-
}, ht = () => {
|
4368
|
-
N && (te.length !== Z ? r(12, N.scrollLeft -= 250, N) : r(12, N.scrollLeft = 0, N));
|
4369
4369
|
}, ct = () => {
|
4370
|
-
N && (
|
4370
|
+
N && (re.length !== Q ? r(12, N.scrollLeft -= 250, N) : r(12, N.scrollLeft = 0, N));
|
4371
|
+
}, ft = () => {
|
4372
|
+
N && (re.length !== Q ? r(12, N.scrollLeft += 250, N) : r(12, N.scrollLeft = 0, N));
|
4371
4373
|
};
|
4372
|
-
const
|
4373
|
-
h.data.type == "SliderData" && h.data.identity == m && (r(9,
|
4374
|
-
x.path.endsWith("/casino") && (r(6,
|
4374
|
+
const mt = (h) => {
|
4375
|
+
h.data.type == "SliderData" && h.data.identity == m && (r(9, ge = h.data.data), r(11, re = new Array(ge.length).fill(!1)), C == "true" && Br()), h.data.type == "GoToHomepage" && ge.forEach((x, I) => {
|
4376
|
+
x.path.endsWith("/casino") && (r(6, Q = I), r(6, Q));
|
4375
4377
|
});
|
4376
|
-
},
|
4377
|
-
|
4378
|
-
},
|
4378
|
+
}, Tr = () => {
|
4379
|
+
lo(b);
|
4380
|
+
}, Ar = (h, x, I) => {
|
4379
4381
|
if (u == "secondaryMenu" && n && i && b && h.id) {
|
4380
|
-
let
|
4381
|
-
fetch(
|
4382
|
-
|
4382
|
+
let q = new URL(`${n}/v1/casino/groups/${i}/${h.id}/subGroups?language=${b}`);
|
4383
|
+
fetch(q.href).then((W) => W.json()).then((W) => {
|
4384
|
+
W.index = x, r(10, He = He.concat(W)), C == "false" && window.postMessage(
|
4383
4385
|
{
|
4384
|
-
type:
|
4386
|
+
type: s,
|
4385
4387
|
itemId: h.id,
|
4386
4388
|
index: x,
|
4387
4389
|
item: h
|
4388
4390
|
},
|
4389
4391
|
window.location.href
|
4390
4392
|
);
|
4391
|
-
const
|
4392
|
-
|
4393
|
-
|
4394
|
-
}),
|
4393
|
+
const J = [];
|
4394
|
+
He.map((Ur) => (Ur.items.forEach((dt) => {
|
4395
|
+
J.find((Gr) => dt.id == Gr) || J.push(dt.id);
|
4396
|
+
}), J.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: J }, window.location.href);
|
4395
4397
|
}).then(() => {
|
4396
|
-
|
4398
|
+
v.querySelectorAll(".DropDown") && Se();
|
4397
4399
|
});
|
4398
4400
|
}
|
4399
|
-
u == "headerMain" && window.postMessage({ type:
|
4400
|
-
},
|
4401
|
-
const h =
|
4401
|
+
u == "headerMain" && window.postMessage({ type: s, item: h }, window.location.href);
|
4402
|
+
}, Se = () => {
|
4403
|
+
const h = v.querySelectorAll(".DropDown");
|
4402
4404
|
document.activeElement.blur(), N.classList.add("isScrolling");
|
4403
4405
|
for (let x = 0; x < h.length; x++)
|
4404
4406
|
h[x].style.transform = "translateX(-" + N.scrollLeft + "px)";
|
4405
4407
|
N.classList.remove("isScrolling");
|
4406
|
-
},
|
4407
|
-
|
4408
|
+
}, Br = () => {
|
4409
|
+
ge.forEach((h, x) => {
|
4408
4410
|
var I;
|
4409
|
-
((I = h == null ? void 0 : h.subGroups) == null ? void 0 : I.count) > 0 && (r(11,
|
4411
|
+
((I = h == null ? void 0 : h.subGroups) == null ? void 0 : I.count) > 0 && (r(11, re[x] = !0, re), Ar(h, x));
|
4410
4412
|
});
|
4411
|
-
},
|
4413
|
+
}, Ir = (h) => {
|
4412
4414
|
let x = "";
|
4413
4415
|
return h.id === "LOBBY" ? x = w : h.id === "MYGAMES" && (x = O), h.icon || x;
|
4414
4416
|
};
|
4415
|
-
|
4417
|
+
rn(() => (window.addEventListener("message", mt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4416
4418
|
() => {
|
4417
|
-
N.addEventListener("scroll",
|
4419
|
+
N.addEventListener("scroll", Se);
|
4418
4420
|
},
|
4419
4421
|
500
|
4420
4422
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4421
|
-
window.removeEventListener("message",
|
4423
|
+
window.removeEventListener("message", mt), v.removeEventListener("scroll", Se);
|
4422
4424
|
}));
|
4423
|
-
function
|
4424
|
-
|
4425
|
+
function Mr(h) {
|
4426
|
+
nn.call(this, e, h);
|
4425
4427
|
}
|
4426
|
-
const
|
4427
|
-
|
4428
|
-
},
|
4429
|
-
|
4428
|
+
const Lr = () => ct(), Nr = (h, x, I, q, W) => {
|
4429
|
+
ke(h, x, I, q, "secondary"), W.stopPropagation();
|
4430
|
+
}, Pr = (h, x, I) => {
|
4431
|
+
ke(h, x, null, null, "main"), I.preventDefault();
|
4430
4432
|
};
|
4431
|
-
function
|
4432
|
-
|
4433
|
-
|
4433
|
+
function Or(h) {
|
4434
|
+
ve[h ? "unshift" : "push"](() => {
|
4435
|
+
v = h, r(5, v);
|
4434
4436
|
});
|
4435
4437
|
}
|
4436
|
-
function
|
4437
|
-
|
4438
|
+
function Fr(h) {
|
4439
|
+
ve[h ? "unshift" : "push"](() => {
|
4438
4440
|
N = h, r(12, N);
|
4439
4441
|
});
|
4440
4442
|
}
|
4441
|
-
const
|
4442
|
-
function
|
4443
|
-
|
4444
|
-
|
4443
|
+
const Rr = () => ft();
|
4444
|
+
function Dr(h) {
|
4445
|
+
ve[h ? "unshift" : "push"](() => {
|
4446
|
+
V = h, r(4, V);
|
4445
4447
|
});
|
4446
4448
|
}
|
4447
4449
|
return e.$$set = (h) => {
|
4448
|
-
"endpoint" in h && r(21, n = h.endpoint), "datasource" in h && r(22, i = h.datasource), "onclickeventname" in h && r(23,
|
4450
|
+
"endpoint" in h && r(21, n = h.endpoint), "datasource" in h && r(22, i = h.datasource), "onclickeventname" in h && r(23, o = h.onclickeventname), "actionevent" in h && r(24, s = h.actionevent), "favoritesnumber" in h && r(25, a = h.favoritesnumber), "location" in h && r(0, u = h.location), "clientstyling" in h && r(26, l = h.clientstyling), "clientstylingurl" in h && r(27, c = h.clientstylingurl), "identity" in h && r(28, m = h.identity), "translationurl" in h && r(29, f = h.translationurl), "isprimarymenu" in h && r(30, p = h.isprimarymenu), "issecondarymenu" in h && r(31, g = h.issecondarymenu), "lang" in h && r(32, b = h.lang), "activeindex" in h && r(1, d = h.activeindex), "showsubgroups" in h && r(2, C = h.showsubgroups), "categoriesicon" in h && r(3, E = h.categoriesicon), "lobbyiconimage" in h && r(33, w = h.lobbyiconimage), "mygamesiconimage" in h && r(34, O = h.mygamesiconimage), "mbsource" in h && r(35, L = h.mbsource);
|
4449
4451
|
}, e.$$.update = () => {
|
4450
4452
|
e.$$.dirty[0] & /*activeindex*/
|
4451
4453
|
2, e.$$.dirty[0] & /*translationurl*/
|
4452
|
-
536870912 && f &&
|
4453
|
-
67108880 && l &&
|
4454
|
-
134217744 && c &&
|
4454
|
+
536870912 && f && Sr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4455
|
+
67108880 && l && V && bn(V, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4456
|
+
134217744 && c && V && yn(V, c), e.$$.dirty[0] & /*customStylingContainer*/
|
4455
4457
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4456
|
-
16 && L &&
|
4457
|
-
2 && b &&
|
4458
|
+
16 && L && V && vn(V, `${L}.Style`), e.$$.dirty[1] & /*lang*/
|
4459
|
+
2 && b && Tr();
|
4458
4460
|
}, [
|
4459
4461
|
u,
|
4460
4462
|
d,
|
4461
|
-
|
4463
|
+
C,
|
4462
4464
|
E,
|
4463
|
-
|
4464
|
-
|
4465
|
-
|
4466
|
-
de,
|
4467
|
-
De,
|
4465
|
+
V,
|
4466
|
+
v,
|
4467
|
+
Q,
|
4468
4468
|
pe,
|
4469
|
-
|
4470
|
-
|
4469
|
+
Ge,
|
4470
|
+
ge,
|
4471
|
+
He,
|
4472
|
+
re,
|
4471
4473
|
N,
|
4472
|
-
|
4473
|
-
xr,
|
4474
|
-
Cr,
|
4474
|
+
te,
|
4475
4475
|
wr,
|
4476
|
-
|
4477
|
-
|
4476
|
+
Cr,
|
4477
|
+
Hr,
|
4478
|
+
ke,
|
4478
4479
|
ct,
|
4479
|
-
|
4480
|
+
ft,
|
4481
|
+
Ir,
|
4480
4482
|
n,
|
4481
4483
|
i,
|
4482
|
-
s,
|
4483
4484
|
o,
|
4485
|
+
s,
|
4484
4486
|
a,
|
4485
4487
|
l,
|
4486
4488
|
c,
|
@@ -4492,24 +4494,24 @@ function fo(e, t, r) {
|
|
4492
4494
|
w,
|
4493
4495
|
O,
|
4494
4496
|
L,
|
4495
|
-
Ir,
|
4496
4497
|
Mr,
|
4497
4498
|
Lr,
|
4498
4499
|
Nr,
|
4499
4500
|
Pr,
|
4500
4501
|
Or,
|
4501
4502
|
Fr,
|
4502
|
-
Rr
|
4503
|
+
Rr,
|
4504
|
+
Dr
|
4503
4505
|
];
|
4504
4506
|
}
|
4505
|
-
class
|
4507
|
+
class po extends pn {
|
4506
4508
|
constructor(t) {
|
4507
|
-
super(),
|
4509
|
+
super(), mn(
|
4508
4510
|
this,
|
4509
4511
|
t,
|
4512
|
+
mo,
|
4510
4513
|
fo,
|
4511
|
-
|
4512
|
-
zt,
|
4514
|
+
Zt,
|
4513
4515
|
{
|
4514
4516
|
endpoint: 21,
|
4515
4517
|
datasource: 22,
|
@@ -4531,7 +4533,7 @@ class mo extends dn {
|
|
4531
4533
|
mygamesiconimage: 34,
|
4532
4534
|
mbsource: 35
|
4533
4535
|
},
|
4534
|
-
|
4536
|
+
uo,
|
4535
4537
|
[-1, -1, -1]
|
4536
4538
|
);
|
4537
4539
|
}
|
@@ -4650,7 +4652,7 @@ class mo extends dn {
|
|
4650
4652
|
this.$$set({ mbsource: t }), B();
|
4651
4653
|
}
|
4652
4654
|
}
|
4653
|
-
|
4655
|
+
dn(po, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4654
4656
|
export {
|
4655
|
-
|
4657
|
+
po as default
|
4656
4658
|
};
|