@everymatrix/casino-slider 1.77.20 → 1.77.21
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-YB4J0l7q.js → CasinoSlider-DL_bvtZw.js} +943 -937
- package/components/{CasinoSlider-DNBcWZ7N.js → CasinoSlider-JyVDKB5k.js} +945 -939
- 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-CHWPu6Yw.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
|
48
|
-
function
|
49
|
-
return e === t ? !0 : (
|
47
|
+
let Te;
|
48
|
+
function _t(e, t) {
|
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 Xr(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
|
-
function
|
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 Yr(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 v(
|
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
237
|
v(d[p - 1]);
|
238
|
-
return
|
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 cn(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
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" && (qt = 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:
|
366
|
+
props: bt(gt({}, this.$$d), {
|
367
367
|
$$slots: r,
|
368
368
|
$$scope: {
|
369
369
|
ctx: []
|
@@ -372,23 +372,23 @@ typeof HTMLElement == "function" && (qt = 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" && (qt = 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" && (qt = 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 fn(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 mn {
|
|
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 mn {
|
|
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 mn {
|
|
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 gn(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 bn(e, t, r) {
|
|
543
543
|
});
|
544
544
|
}
|
545
545
|
}
|
546
|
-
const
|
547
|
-
function
|
546
|
+
const ie = [];
|
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
|
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
|
609
|
+
function En(e) {
|
610
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
|
-
function
|
618
|
+
function Cn(e) {
|
619
619
|
var t = Object.prototype.toString.call(e);
|
620
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
620
|
+
return t === "[object RegExp]" || t === "[object Date]" || Tn(e);
|
621
621
|
}
|
622
|
-
var
|
623
|
-
function
|
624
|
-
return e.$$typeof ===
|
622
|
+
var Hn = typeof Symbol == "function" && Symbol.for, Sn = Hn ? Symbol.for("react.element") : 60103;
|
623
|
+
function Tn(e) {
|
624
|
+
return e.$$typeof === Sn;
|
625
625
|
}
|
626
|
-
function
|
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,43 +716,43 @@ function On(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
|
-
function
|
754
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
755
|
-
return typeof
|
739
|
+
function er(e, t, r) {
|
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
|
761
|
-
var r = e.length === 1 ?
|
762
|
-
return
|
746
|
+
function Gn(e, t) {
|
747
|
+
var r = e.length === 1 ? Un : er;
|
748
|
+
return tr(e, this, r, t.cache.create(), t.serializer);
|
763
749
|
}
|
764
|
-
function
|
765
|
-
return
|
750
|
+
function kn(e, t) {
|
751
|
+
return tr(e, this, er, t.cache.create(), t.serializer);
|
766
752
|
}
|
767
|
-
var
|
753
|
+
var $n = function() {
|
768
754
|
return JSON.stringify(arguments);
|
769
|
-
},
|
755
|
+
}, jn = (
|
770
756
|
/** @class */
|
771
757
|
function() {
|
772
758
|
function e() {
|
@@ -778,61 +764,71 @@ var Gn = function() {
|
|
778
764
|
this.cache[t] = r;
|
779
765
|
}, e;
|
780
766
|
}()
|
781
|
-
),
|
767
|
+
), Vn = {
|
782
768
|
create: function() {
|
783
|
-
return new
|
769
|
+
return new jn();
|
784
770
|
}
|
785
|
-
},
|
786
|
-
variadic:
|
787
|
-
},
|
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;
|
788
784
|
(function(e) {
|
789
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";
|
790
786
|
})(y || (y = {}));
|
791
|
-
var
|
787
|
+
var T;
|
792
788
|
(function(e) {
|
793
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";
|
794
|
-
})(
|
795
|
-
var
|
790
|
+
})(T || (T = {}));
|
791
|
+
var ue;
|
796
792
|
(function(e) {
|
797
793
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
798
|
-
})(
|
799
|
-
function
|
800
|
-
return e.type ===
|
801
|
-
}
|
802
|
-
function jn(e) {
|
803
|
-
return e.type === A.argument;
|
804
|
-
}
|
805
|
-
function er(e) {
|
806
|
-
return e.type === A.number;
|
794
|
+
})(ue || (ue = {}));
|
795
|
+
function wt(e) {
|
796
|
+
return e.type === T.literal;
|
807
797
|
}
|
808
|
-
function
|
809
|
-
return e.type ===
|
798
|
+
function Xn(e) {
|
799
|
+
return e.type === T.argument;
|
810
800
|
}
|
811
801
|
function rr(e) {
|
812
|
-
return e.type ===
|
802
|
+
return e.type === T.number;
|
813
803
|
}
|
814
804
|
function nr(e) {
|
815
|
-
return e.type ===
|
805
|
+
return e.type === T.date;
|
816
806
|
}
|
817
807
|
function ir(e) {
|
818
|
-
return e.type ===
|
819
|
-
}
|
820
|
-
function Vn(e) {
|
821
|
-
return e.type === A.pound;
|
808
|
+
return e.type === T.time;
|
822
809
|
}
|
823
810
|
function or(e) {
|
824
|
-
return e.type ===
|
811
|
+
return e.type === T.select;
|
825
812
|
}
|
826
813
|
function sr(e) {
|
827
|
-
return
|
814
|
+
return e.type === T.plural;
|
828
815
|
}
|
829
|
-
function Je(e) {
|
830
|
-
return !!(e && typeof e == "object" && e.type === le.dateTime);
|
831
|
-
}
|
832
|
-
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xn = /(?:[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;
|
833
816
|
function Wn(e) {
|
817
|
+
return e.type === T.pound;
|
818
|
+
}
|
819
|
+
function ar(e) {
|
820
|
+
return e.type === T.tag;
|
821
|
+
}
|
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);
|
827
|
+
}
|
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) {
|
834
830
|
var t = {};
|
835
|
-
return e.replace(
|
831
|
+
return e.replace(zn, function(r) {
|
836
832
|
var n = r.length;
|
837
833
|
switch (r[0]) {
|
838
834
|
case "G":
|
@@ -921,17 +917,27 @@ function Wn(e) {
|
|
921
917
|
return "";
|
922
918
|
}), t;
|
923
919
|
}
|
924
|
-
var
|
925
|
-
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) {
|
926
932
|
if (e.length === 0)
|
927
933
|
throw new Error("Number skeleton cannot be empty");
|
928
|
-
for (var t = e.split(
|
934
|
+
for (var t = e.split(Qn).filter(function(f) {
|
929
935
|
return f.length > 0;
|
930
936
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
931
|
-
var
|
932
|
-
if (
|
937
|
+
var o = i[n], s = o.split("/");
|
938
|
+
if (s.length === 0)
|
933
939
|
throw new Error("Invalid number skeleton");
|
934
|
-
for (var a =
|
940
|
+
for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
|
935
941
|
var m = c[l];
|
936
942
|
if (m.length === 0)
|
937
943
|
throw new Error("Invalid number skeleton");
|
@@ -940,17 +946,17 @@ function Zn(e) {
|
|
940
946
|
}
|
941
947
|
return r;
|
942
948
|
}
|
943
|
-
function
|
949
|
+
function Jn(e) {
|
944
950
|
return e.replace(/^(.*?)-/, "");
|
945
951
|
}
|
946
|
-
var
|
947
|
-
function
|
952
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
953
|
+
function Ht(e) {
|
948
954
|
var t = {};
|
949
|
-
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) {
|
950
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)), "";
|
951
957
|
}), t;
|
952
958
|
}
|
953
|
-
function
|
959
|
+
function fr(e) {
|
954
960
|
switch (e) {
|
955
961
|
case "sign-auto":
|
956
962
|
return {
|
@@ -990,7 +996,7 @@ function hr(e) {
|
|
990
996
|
};
|
991
997
|
}
|
992
998
|
}
|
993
|
-
function
|
999
|
+
function Kn(e) {
|
994
1000
|
var t;
|
995
1001
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
996
1002
|
notation: "engineering"
|
@@ -998,17 +1004,17 @@ function Jn(e) {
|
|
998
1004
|
notation: "scientific"
|
999
1005
|
}, e = e.slice(1)), t) {
|
1000
1006
|
var r = e.slice(0, 2);
|
1001
|
-
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))
|
1002
1008
|
throw new Error("Malformed concise eng/scientific notation");
|
1003
1009
|
t.minimumIntegerDigits = e.length;
|
1004
1010
|
}
|
1005
1011
|
return t;
|
1006
1012
|
}
|
1007
|
-
function
|
1008
|
-
var t = {}, r =
|
1013
|
+
function St(e) {
|
1014
|
+
var t = {}, r = fr(e);
|
1009
1015
|
return r || t;
|
1010
1016
|
}
|
1011
|
-
function
|
1017
|
+
function ei(e) {
|
1012
1018
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1013
1019
|
var i = n[r];
|
1014
1020
|
switch (i.stem) {
|
@@ -1032,7 +1038,7 @@ function Yn(e) {
|
|
1032
1038
|
continue;
|
1033
1039
|
case "measure-unit":
|
1034
1040
|
case "unit":
|
1035
|
-
t.style = "unit", t.unit =
|
1041
|
+
t.style = "unit", t.unit = Jn(i.options[0]);
|
1036
1042
|
continue;
|
1037
1043
|
case "compact-short":
|
1038
1044
|
case "K":
|
@@ -1043,13 +1049,13 @@ function Yn(e) {
|
|
1043
1049
|
t.notation = "compact", t.compactDisplay = "long";
|
1044
1050
|
continue;
|
1045
1051
|
case "scientific":
|
1046
|
-
t =
|
1047
|
-
return
|
1052
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
1053
|
+
return A(A({}, u), St(l));
|
1048
1054
|
}, {}));
|
1049
1055
|
continue;
|
1050
1056
|
case "engineering":
|
1051
|
-
t =
|
1052
|
-
return
|
1057
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
1058
|
+
return A(A({}, u), St(l));
|
1053
1059
|
}, {}));
|
1054
1060
|
continue;
|
1055
1061
|
case "notation-simple":
|
@@ -1094,7 +1100,7 @@ function Yn(e) {
|
|
1094
1100
|
case "integer-width":
|
1095
1101
|
if (i.options.length > 1)
|
1096
1102
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1097
|
-
i.options[0].replace(
|
1103
|
+
i.options[0].replace(Yn, function(u, l, c, m, f, p) {
|
1098
1104
|
if (l)
|
1099
1105
|
t.minimumIntegerDigits = c.length;
|
1100
1106
|
else {
|
@@ -1107,32 +1113,32 @@ function Yn(e) {
|
|
1107
1113
|
});
|
1108
1114
|
continue;
|
1109
1115
|
}
|
1110
|
-
if (
|
1116
|
+
if (cr.test(i.stem)) {
|
1111
1117
|
t.minimumIntegerDigits = i.stem.length;
|
1112
1118
|
continue;
|
1113
1119
|
}
|
1114
|
-
if (
|
1120
|
+
if (Ct.test(i.stem)) {
|
1115
1121
|
if (i.options.length > 1)
|
1116
1122
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1117
|
-
i.stem.replace(
|
1123
|
+
i.stem.replace(Ct, function(u, l, c, m, f, p) {
|
1118
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), "";
|
1119
1125
|
});
|
1120
|
-
var
|
1121
|
-
|
1126
|
+
var o = i.options[0];
|
1127
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Ht(o)));
|
1122
1128
|
continue;
|
1123
1129
|
}
|
1124
|
-
if (
|
1125
|
-
t =
|
1130
|
+
if (hr.test(i.stem)) {
|
1131
|
+
t = A(A({}, t), Ht(i.stem));
|
1126
1132
|
continue;
|
1127
1133
|
}
|
1128
|
-
var
|
1129
|
-
|
1130
|
-
var a =
|
1131
|
-
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));
|
1132
1138
|
}
|
1133
1139
|
return t;
|
1134
1140
|
}
|
1135
|
-
var
|
1141
|
+
var Ae = {
|
1136
1142
|
"001": [
|
1137
1143
|
"H",
|
1138
1144
|
"h"
|
@@ -2547,23 +2553,23 @@ var Te = {
|
|
2547
2553
|
"h"
|
2548
2554
|
]
|
2549
2555
|
};
|
2550
|
-
function
|
2556
|
+
function ti(e, t) {
|
2551
2557
|
for (var r = "", n = 0; n < e.length; n++) {
|
2552
2558
|
var i = e.charAt(n);
|
2553
2559
|
if (i === "j") {
|
2554
|
-
for (var
|
2555
|
-
|
2556
|
-
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);
|
2557
2563
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2558
2564
|
r += u;
|
2559
|
-
for (;
|
2565
|
+
for (; s-- > 0; )
|
2560
2566
|
r = l + r;
|
2561
2567
|
} else
|
2562
2568
|
i === "J" ? r += "H" : r += i;
|
2563
2569
|
}
|
2564
2570
|
return r;
|
2565
2571
|
}
|
2566
|
-
function
|
2572
|
+
function ri(e) {
|
2567
2573
|
var t = e.hourCycle;
|
2568
2574
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2569
2575
|
e.hourCycles && // @ts-ignore
|
@@ -2582,23 +2588,23 @@ function ei(e) {
|
|
2582
2588
|
}
|
2583
2589
|
var r = e.language, n;
|
2584
2590
|
r !== "root" && (n = e.maximize().region);
|
2585
|
-
var i =
|
2591
|
+
var i = Ae[n || ""] || Ae[r || ""] || Ae["".concat(r, "-001")] || Ae["001"];
|
2586
2592
|
return i[0];
|
2587
2593
|
}
|
2588
|
-
var
|
2594
|
+
var ze, ni = new RegExp("^".concat(ur.source, "*")), ii = new RegExp("".concat(ur.source, "*$"));
|
2589
2595
|
function _(e, t) {
|
2590
2596
|
return { start: e, end: t };
|
2591
2597
|
}
|
2592
|
-
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) {
|
2593
2599
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2594
|
-
},
|
2600
|
+
}, et = !0;
|
2595
2601
|
try {
|
2596
|
-
var
|
2597
|
-
|
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";
|
2598
2604
|
} catch (e) {
|
2599
|
-
|
2605
|
+
et = !1;
|
2600
2606
|
}
|
2601
|
-
var
|
2607
|
+
var Tt = oi ? (
|
2602
2608
|
// Native
|
2603
2609
|
function(t, r, n) {
|
2604
2610
|
return t.startsWith(r, n);
|
@@ -2608,31 +2614,31 @@ var Ht = ni ? (
|
|
2608
2614
|
function(t, r, n) {
|
2609
2615
|
return t.slice(n, n + r.length) === r;
|
2610
2616
|
}
|
2611
|
-
),
|
2617
|
+
), tt = si ? String.fromCodePoint : (
|
2612
2618
|
// IE11
|
2613
2619
|
function() {
|
2614
2620
|
for (var t = [], r = 0; r < arguments.length; r++)
|
2615
2621
|
t[r] = arguments[r];
|
2616
|
-
for (var n = "", i = t.length,
|
2617
|
-
if (
|
2618
|
-
throw RangeError(
|
2619
|
-
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);
|
2620
2626
|
}
|
2621
2627
|
return n;
|
2622
2628
|
}
|
2623
|
-
),
|
2629
|
+
), At = (
|
2624
2630
|
// native
|
2625
|
-
|
2631
|
+
ai ? Object.fromEntries : (
|
2626
2632
|
// Ponyfill
|
2627
2633
|
function(t) {
|
2628
2634
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
2629
|
-
var
|
2630
|
-
r[
|
2635
|
+
var o = i[n], s = o[0], a = o[1];
|
2636
|
+
r[s] = a;
|
2631
2637
|
}
|
2632
2638
|
return r;
|
2633
2639
|
}
|
2634
2640
|
)
|
2635
|
-
),
|
2641
|
+
), mr = li ? (
|
2636
2642
|
// Native
|
2637
2643
|
function(t, r) {
|
2638
2644
|
return t.codePointAt(r);
|
@@ -2642,11 +2648,11 @@ var Ht = ni ? (
|
|
2642
2648
|
function(t, r) {
|
2643
2649
|
var n = t.length;
|
2644
2650
|
if (!(r < 0 || r >= n)) {
|
2645
|
-
var i = t.charCodeAt(r),
|
2646
|
-
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;
|
2647
2653
|
}
|
2648
2654
|
}
|
2649
|
-
),
|
2655
|
+
), di = ui ? (
|
2650
2656
|
// Native
|
2651
2657
|
function(t) {
|
2652
2658
|
return t.trimStart();
|
@@ -2654,9 +2660,9 @@ var Ht = ni ? (
|
|
2654
2660
|
) : (
|
2655
2661
|
// Ponyfill
|
2656
2662
|
function(t) {
|
2657
|
-
return t.replace(
|
2663
|
+
return t.replace(ni, "");
|
2658
2664
|
}
|
2659
|
-
),
|
2665
|
+
), pi = hi ? (
|
2660
2666
|
// Native
|
2661
2667
|
function(t) {
|
2662
2668
|
return t.trimEnd();
|
@@ -2664,32 +2670,32 @@ var Ht = ni ? (
|
|
2664
2670
|
) : (
|
2665
2671
|
// Ponyfill
|
2666
2672
|
function(t) {
|
2667
|
-
return t.replace(
|
2673
|
+
return t.replace(ii, "");
|
2668
2674
|
}
|
2669
2675
|
);
|
2670
|
-
function
|
2676
|
+
function dr(e, t) {
|
2671
2677
|
return new RegExp(e, t);
|
2672
2678
|
}
|
2673
|
-
var
|
2674
|
-
if (
|
2675
|
-
var
|
2676
|
-
|
2679
|
+
var rt;
|
2680
|
+
if (et) {
|
2681
|
+
var Bt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2682
|
+
rt = function(t, r) {
|
2677
2683
|
var n;
|
2678
|
-
|
2679
|
-
var i =
|
2684
|
+
Bt.lastIndex = r;
|
2685
|
+
var i = Bt.exec(t);
|
2680
2686
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2681
2687
|
};
|
2682
2688
|
} else
|
2683
|
-
|
2689
|
+
rt = function(t, r) {
|
2684
2690
|
for (var n = []; ; ) {
|
2685
|
-
var i =
|
2686
|
-
if (i === void 0 ||
|
2691
|
+
var i = mr(t, r);
|
2692
|
+
if (i === void 0 || pr(i) || vi(i))
|
2687
2693
|
break;
|
2688
2694
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2689
2695
|
}
|
2690
|
-
return
|
2696
|
+
return tt.apply(void 0, n);
|
2691
2697
|
};
|
2692
|
-
var
|
2698
|
+
var gi = (
|
2693
2699
|
/** @class */
|
2694
2700
|
function() {
|
2695
2701
|
function e(t, r) {
|
@@ -2701,35 +2707,35 @@ var di = (
|
|
2701
2707
|
return this.parseMessage(0, "", !1);
|
2702
2708
|
}, e.prototype.parseMessage = function(t, r, n) {
|
2703
2709
|
for (var i = []; !this.isEOF(); ) {
|
2704
|
-
var
|
2705
|
-
if (
|
2706
|
-
var
|
2707
|
-
if (
|
2708
|
-
return
|
2709
|
-
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);
|
2710
2716
|
} else {
|
2711
|
-
if (
|
2717
|
+
if (o === 125 && t > 0)
|
2712
2718
|
break;
|
2713
|
-
if (
|
2719
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2714
2720
|
var a = this.clonePosition();
|
2715
2721
|
this.bump(), i.push({
|
2716
|
-
type:
|
2722
|
+
type: T.pound,
|
2717
2723
|
location: _(a, this.clonePosition())
|
2718
2724
|
});
|
2719
|
-
} else if (
|
2725
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2720
2726
|
if (n)
|
2721
2727
|
break;
|
2722
2728
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
2723
|
-
} else if (
|
2724
|
-
var
|
2725
|
-
if (
|
2726
|
-
return
|
2727
|
-
i.push(
|
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);
|
2728
2734
|
} else {
|
2729
|
-
var
|
2730
|
-
if (
|
2731
|
-
return
|
2732
|
-
i.push(
|
2735
|
+
var s = this.parseLiteral(t, r);
|
2736
|
+
if (s.err)
|
2737
|
+
return s;
|
2738
|
+
i.push(s.val);
|
2733
2739
|
}
|
2734
2740
|
}
|
2735
2741
|
}
|
@@ -2741,26 +2747,26 @@ var di = (
|
|
2741
2747
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2742
2748
|
return {
|
2743
2749
|
val: {
|
2744
|
-
type:
|
2750
|
+
type: T.literal,
|
2745
2751
|
value: "<".concat(i, "/>"),
|
2746
2752
|
location: _(n, this.clonePosition())
|
2747
2753
|
},
|
2748
2754
|
err: null
|
2749
2755
|
};
|
2750
2756
|
if (this.bumpIf(">")) {
|
2751
|
-
var
|
2752
|
-
if (
|
2753
|
-
return
|
2754
|
-
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();
|
2755
2761
|
if (this.bumpIf("</")) {
|
2756
|
-
if (this.isEOF() || !
|
2762
|
+
if (this.isEOF() || !nt(this.char()))
|
2757
2763
|
return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
|
2758
2764
|
var u = this.clonePosition(), l = this.parseTagName();
|
2759
2765
|
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2760
2766
|
val: {
|
2761
|
-
type:
|
2767
|
+
type: T.tag,
|
2762
2768
|
value: i,
|
2763
|
-
children:
|
2769
|
+
children: s,
|
2764
2770
|
location: _(n, this.clonePosition())
|
2765
2771
|
},
|
2766
2772
|
err: null
|
@@ -2771,21 +2777,21 @@ var di = (
|
|
2771
2777
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
2772
2778
|
}, e.prototype.parseTagName = function() {
|
2773
2779
|
var t = this.offset();
|
2774
|
-
for (this.bump(); !this.isEOF() &&
|
2780
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
2775
2781
|
this.bump();
|
2776
2782
|
return this.message.slice(t, this.offset());
|
2777
2783
|
}, e.prototype.parseLiteral = function(t, r) {
|
2778
2784
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
2779
|
-
var
|
2780
|
-
if (s) {
|
2781
|
-
i += s;
|
2782
|
-
continue;
|
2783
|
-
}
|
2784
|
-
var o = this.tryParseUnquoted(t, r);
|
2785
|
+
var o = this.tryParseQuote(r);
|
2785
2786
|
if (o) {
|
2786
2787
|
i += o;
|
2787
2788
|
continue;
|
2788
2789
|
}
|
2790
|
+
var s = this.tryParseUnquoted(t, r);
|
2791
|
+
if (s) {
|
2792
|
+
i += s;
|
2793
|
+
continue;
|
2794
|
+
}
|
2789
2795
|
var a = this.tryParseLeftAngleBracket();
|
2790
2796
|
if (a) {
|
2791
2797
|
i += a;
|
@@ -2795,12 +2801,12 @@ var di = (
|
|
2795
2801
|
}
|
2796
2802
|
var u = _(n, this.clonePosition());
|
2797
2803
|
return {
|
2798
|
-
val: { type:
|
2804
|
+
val: { type: T.literal, value: i, location: u },
|
2799
2805
|
err: null
|
2800
2806
|
};
|
2801
2807
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2802
2808
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2803
|
-
!
|
2809
|
+
!bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2804
2810
|
}, e.prototype.tryParseQuote = function(t) {
|
2805
2811
|
if (this.isEOF() || this.char() !== 39)
|
2806
2812
|
return null;
|
@@ -2834,12 +2840,12 @@ var di = (
|
|
2834
2840
|
r.push(n);
|
2835
2841
|
this.bump();
|
2836
2842
|
}
|
2837
|
-
return
|
2843
|
+
return tt.apply(void 0, r);
|
2838
2844
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2839
2845
|
if (this.isEOF())
|
2840
2846
|
return null;
|
2841
2847
|
var n = this.char();
|
2842
|
-
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));
|
2843
2849
|
}, e.prototype.parseArgument = function(t, r) {
|
2844
2850
|
var n = this.clonePosition();
|
2845
2851
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2855,7 +2861,7 @@ var di = (
|
|
2855
2861
|
case 125:
|
2856
2862
|
return this.bump(), {
|
2857
2863
|
val: {
|
2858
|
-
type:
|
2864
|
+
type: T.argument,
|
2859
2865
|
// value does not include the opening and closing braces.
|
2860
2866
|
value: i,
|
2861
2867
|
location: _(n, this.clonePosition())
|
@@ -2868,15 +2874,15 @@ var di = (
|
|
2868
2874
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
2869
2875
|
}
|
2870
2876
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2871
|
-
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;
|
2872
2878
|
this.bumpTo(i);
|
2873
|
-
var
|
2874
|
-
return { value: n, location:
|
2879
|
+
var o = this.clonePosition(), s = _(t, o);
|
2880
|
+
return { value: n, location: s };
|
2875
2881
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2876
|
-
var
|
2882
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2877
2883
|
switch (a) {
|
2878
2884
|
case "":
|
2879
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, _(
|
2885
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, u));
|
2880
2886
|
case "number":
|
2881
2887
|
case "date":
|
2882
2888
|
case "time": {
|
@@ -2887,7 +2893,7 @@ var di = (
|
|
2887
2893
|
var c = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
2888
2894
|
if (m.err)
|
2889
2895
|
return m;
|
2890
|
-
var f =
|
2896
|
+
var f = pi(m.val);
|
2891
2897
|
if (f.length === 0)
|
2892
2898
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
2893
2899
|
var p = _(c, this.clonePosition());
|
@@ -2897,25 +2903,25 @@ var di = (
|
|
2897
2903
|
if (g.err)
|
2898
2904
|
return g;
|
2899
2905
|
var b = _(i, this.clonePosition());
|
2900
|
-
if (l &&
|
2901
|
-
var d =
|
2906
|
+
if (l && Tt(l == null ? void 0 : l.style, "::", 0)) {
|
2907
|
+
var d = di(l.style.slice(2));
|
2902
2908
|
if (a === "number") {
|
2903
2909
|
var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
|
2904
2910
|
return m.err ? m : {
|
2905
|
-
val: { type:
|
2911
|
+
val: { type: T.number, value: n, location: b, style: m.val },
|
2906
2912
|
err: null
|
2907
2913
|
};
|
2908
2914
|
} else {
|
2909
2915
|
if (d.length === 0)
|
2910
2916
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
2911
|
-
var
|
2912
|
-
this.locale && (
|
2917
|
+
var C = d;
|
2918
|
+
this.locale && (C = ti(d, this.locale));
|
2913
2919
|
var f = {
|
2914
|
-
type:
|
2915
|
-
pattern:
|
2920
|
+
type: ue.dateTime,
|
2921
|
+
pattern: C,
|
2916
2922
|
location: l.styleLocation,
|
2917
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2918
|
-
}, E = a === "date" ?
|
2923
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(C) : {}
|
2924
|
+
}, E = a === "date" ? T.date : T.time;
|
2919
2925
|
return {
|
2920
2926
|
val: { type: E, value: n, location: b, style: f },
|
2921
2927
|
err: null
|
@@ -2924,10 +2930,10 @@ var di = (
|
|
2924
2930
|
}
|
2925
2931
|
return {
|
2926
2932
|
val: {
|
2927
|
-
type: a === "number" ?
|
2933
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
2928
2934
|
value: n,
|
2929
2935
|
location: b,
|
2930
|
-
style: (
|
2936
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
2931
2937
|
},
|
2932
2938
|
err: null
|
2933
2939
|
};
|
@@ -2937,7 +2943,7 @@ var di = (
|
|
2937
2943
|
case "select": {
|
2938
2944
|
var w = this.clonePosition();
|
2939
2945
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2940
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(w,
|
2946
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(w, Le({}, w)));
|
2941
2947
|
this.bumpSpace();
|
2942
2948
|
var O = this.parseIdentifierIfPossible(), L = 0;
|
2943
2949
|
if (a !== "select" && O.value === "offset") {
|
@@ -2955,29 +2961,29 @@ var di = (
|
|
2955
2961
|
var g = this.tryParseArgumentClose(i);
|
2956
2962
|
if (g.err)
|
2957
2963
|
return g;
|
2958
|
-
var
|
2964
|
+
var H = _(i, this.clonePosition());
|
2959
2965
|
return a === "select" ? {
|
2960
2966
|
val: {
|
2961
|
-
type:
|
2967
|
+
type: T.select,
|
2962
2968
|
value: n,
|
2963
|
-
options:
|
2964
|
-
location:
|
2969
|
+
options: At(v.val),
|
2970
|
+
location: H
|
2965
2971
|
},
|
2966
2972
|
err: null
|
2967
2973
|
} : {
|
2968
2974
|
val: {
|
2969
|
-
type:
|
2975
|
+
type: T.plural,
|
2970
2976
|
value: n,
|
2971
|
-
options:
|
2977
|
+
options: At(v.val),
|
2972
2978
|
offset: L,
|
2973
2979
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2974
|
-
location:
|
2980
|
+
location: H
|
2975
2981
|
},
|
2976
2982
|
err: null
|
2977
2983
|
};
|
2978
2984
|
}
|
2979
2985
|
default:
|
2980
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, _(
|
2986
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(s, u));
|
2981
2987
|
}
|
2982
2988
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2983
2989
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
@@ -3019,21 +3025,21 @@ var di = (
|
|
3019
3025
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3020
3026
|
var n = [];
|
3021
3027
|
try {
|
3022
|
-
n =
|
3028
|
+
n = qn(t);
|
3023
3029
|
} catch (i) {
|
3024
3030
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
3025
3031
|
}
|
3026
3032
|
return {
|
3027
3033
|
val: {
|
3028
|
-
type:
|
3034
|
+
type: ue.number,
|
3029
3035
|
tokens: n,
|
3030
3036
|
location: r,
|
3031
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3037
|
+
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
3032
3038
|
},
|
3033
3039
|
err: null
|
3034
3040
|
};
|
3035
3041
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3036
|
-
for (var
|
3042
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
3037
3043
|
if (l.length === 0) {
|
3038
3044
|
var m = this.clonePosition();
|
3039
3045
|
if (r !== "select" && this.bumpIf("=")) {
|
@@ -3046,7 +3052,7 @@ var di = (
|
|
3046
3052
|
}
|
3047
3053
|
if (u.has(l))
|
3048
3054
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
3049
|
-
l === "other" && (
|
3055
|
+
l === "other" && (s = !0), this.bumpSpace();
|
3050
3056
|
var p = this.clonePosition();
|
3051
3057
|
if (!this.bumpIf("{"))
|
3052
3058
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
@@ -3062,21 +3068,21 @@ var di = (
|
|
3062
3068
|
value: g.val,
|
3063
3069
|
location: _(p, this.clonePosition())
|
3064
3070
|
}
|
3065
|
-
]), u.add(l), this.bumpSpace(),
|
3071
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
3066
3072
|
}
|
3067
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
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 };
|
3068
3074
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3069
3075
|
var n = 1, i = this.clonePosition();
|
3070
3076
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
3071
|
-
for (var
|
3077
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
3072
3078
|
var a = this.char();
|
3073
3079
|
if (a >= 48 && a <= 57)
|
3074
|
-
|
3080
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
3075
3081
|
else
|
3076
3082
|
break;
|
3077
3083
|
}
|
3078
3084
|
var u = _(i, this.clonePosition());
|
3079
|
-
return
|
3085
|
+
return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3080
3086
|
}, e.prototype.offset = function() {
|
3081
3087
|
return this.position.offset;
|
3082
3088
|
}, e.prototype.isEOF = function() {
|
@@ -3091,7 +3097,7 @@ var di = (
|
|
3091
3097
|
var t = this.position.offset;
|
3092
3098
|
if (t >= this.message.length)
|
3093
3099
|
throw Error("out of bound");
|
3094
|
-
var r =
|
3100
|
+
var r = mr(this.message, t);
|
3095
3101
|
if (r === void 0)
|
3096
3102
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3097
3103
|
return r;
|
@@ -3110,7 +3116,7 @@ var di = (
|
|
3110
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);
|
3111
3117
|
}
|
3112
3118
|
}, e.prototype.bumpIf = function(t) {
|
3113
|
-
if (
|
3119
|
+
if (Tt(this.message, t, this.offset())) {
|
3114
3120
|
for (var r = 0; r < t.length; r++)
|
3115
3121
|
this.bump();
|
3116
3122
|
return !0;
|
@@ -3132,7 +3138,7 @@ var di = (
|
|
3132
3138
|
break;
|
3133
3139
|
}
|
3134
3140
|
}, e.prototype.bumpSpace = function() {
|
3135
|
-
for (; !this.isEOF() &&
|
3141
|
+
for (; !this.isEOF() && pr(this.char()); )
|
3136
3142
|
this.bump();
|
3137
3143
|
}, e.prototype.peek = function() {
|
3138
3144
|
if (this.isEOF())
|
@@ -3142,97 +3148,97 @@ var di = (
|
|
3142
3148
|
}, e;
|
3143
3149
|
}()
|
3144
3150
|
);
|
3145
|
-
function
|
3151
|
+
function nt(e) {
|
3146
3152
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3147
3153
|
}
|
3148
|
-
function
|
3149
|
-
return
|
3154
|
+
function bi(e) {
|
3155
|
+
return nt(e) || e === 47;
|
3150
3156
|
}
|
3151
|
-
function
|
3157
|
+
function yi(e) {
|
3152
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;
|
3153
3159
|
}
|
3154
|
-
function
|
3160
|
+
function pr(e) {
|
3155
3161
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3156
3162
|
}
|
3157
|
-
function
|
3163
|
+
function vi(e) {
|
3158
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;
|
3159
3165
|
}
|
3160
|
-
function
|
3166
|
+
function it(e) {
|
3161
3167
|
e.forEach(function(t) {
|
3162
|
-
if (delete t.location,
|
3168
|
+
if (delete t.location, or(t) || sr(t))
|
3163
3169
|
for (var r in t.options)
|
3164
|
-
delete t.options[r].location,
|
3170
|
+
delete t.options[r].location, it(t.options[r].value);
|
3165
3171
|
else
|
3166
|
-
|
3172
|
+
rr(t) && lr(t.style) || (nr(t) || ir(t)) && Ke(t.style) ? delete t.style.location : ar(t) && it(t.children);
|
3167
3173
|
});
|
3168
3174
|
}
|
3169
|
-
function
|
3170
|
-
t === void 0 && (t = {}), t =
|
3171
|
-
var r = new
|
3175
|
+
function _i(e, t) {
|
3176
|
+
t === void 0 && (t = {}), t = Le({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3177
|
+
var r = new gi(e, t).parse();
|
3172
3178
|
if (r.err) {
|
3173
3179
|
var n = SyntaxError(y[r.err.kind]);
|
3174
3180
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3175
3181
|
}
|
3176
|
-
return t != null && t.captureLocation ||
|
3182
|
+
return t != null && t.captureLocation || it(r.val), r.val;
|
3177
3183
|
}
|
3178
|
-
var
|
3184
|
+
var he;
|
3179
3185
|
(function(e) {
|
3180
3186
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3181
|
-
})(
|
3182
|
-
var
|
3187
|
+
})(he || (he = {}));
|
3188
|
+
var Re = (
|
3183
3189
|
/** @class */
|
3184
3190
|
function(e) {
|
3185
|
-
|
3191
|
+
Fe(t, e);
|
3186
3192
|
function t(r, n, i) {
|
3187
|
-
var
|
3188
|
-
return
|
3193
|
+
var o = e.call(this, r) || this;
|
3194
|
+
return o.code = n, o.originalMessage = i, o;
|
3189
3195
|
}
|
3190
3196
|
return t.prototype.toString = function() {
|
3191
3197
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3192
3198
|
}, t;
|
3193
3199
|
}(Error)
|
3194
|
-
),
|
3200
|
+
), It = (
|
3195
3201
|
/** @class */
|
3196
3202
|
function(e) {
|
3197
|
-
|
3198
|
-
function t(r, n, i,
|
3199
|
-
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;
|
3200
3206
|
}
|
3201
3207
|
return t;
|
3202
|
-
}(
|
3203
|
-
),
|
3208
|
+
}(Re)
|
3209
|
+
), Ei = (
|
3204
3210
|
/** @class */
|
3205
3211
|
function(e) {
|
3206
|
-
|
3212
|
+
Fe(t, e);
|
3207
3213
|
function t(r, n, i) {
|
3208
|
-
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;
|
3209
3215
|
}
|
3210
3216
|
return t;
|
3211
|
-
}(
|
3212
|
-
),
|
3217
|
+
}(Re)
|
3218
|
+
), xi = (
|
3213
3219
|
/** @class */
|
3214
3220
|
function(e) {
|
3215
|
-
|
3221
|
+
Fe(t, e);
|
3216
3222
|
function t(r, n) {
|
3217
|
-
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;
|
3218
3224
|
}
|
3219
3225
|
return t;
|
3220
|
-
}(
|
3226
|
+
}(Re)
|
3221
3227
|
), F;
|
3222
3228
|
(function(e) {
|
3223
3229
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3224
3230
|
})(F || (F = {}));
|
3225
|
-
function
|
3231
|
+
function wi(e) {
|
3226
3232
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3227
3233
|
var n = t[t.length - 1];
|
3228
3234
|
return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
|
3229
3235
|
}, []);
|
3230
3236
|
}
|
3231
|
-
function
|
3237
|
+
function Ci(e) {
|
3232
3238
|
return typeof e == "function";
|
3233
3239
|
}
|
3234
|
-
function
|
3235
|
-
if (e.length === 1 &&
|
3240
|
+
function Ie(e, t, r, n, i, o, s) {
|
3241
|
+
if (e.length === 1 && wt(e[0]))
|
3236
3242
|
return [
|
3237
3243
|
{
|
3238
3244
|
type: F.literal,
|
@@ -3241,60 +3247,60 @@ function Be(e, t, r, n, i, s, o) {
|
|
3241
3247
|
];
|
3242
3248
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
3243
3249
|
var c = l[u];
|
3244
|
-
if (
|
3250
|
+
if (wt(c)) {
|
3245
3251
|
a.push({
|
3246
3252
|
type: F.literal,
|
3247
3253
|
value: c.value
|
3248
3254
|
});
|
3249
3255
|
continue;
|
3250
3256
|
}
|
3251
|
-
if (
|
3252
|
-
typeof
|
3257
|
+
if (Wn(c)) {
|
3258
|
+
typeof o == "number" && a.push({
|
3253
3259
|
type: F.literal,
|
3254
|
-
value: r.getNumberFormat(t).format(
|
3260
|
+
value: r.getNumberFormat(t).format(o)
|
3255
3261
|
});
|
3256
3262
|
continue;
|
3257
3263
|
}
|
3258
3264
|
var m = c.value;
|
3259
3265
|
if (!(i && m in i))
|
3260
|
-
throw new
|
3266
|
+
throw new xi(m, s);
|
3261
3267
|
var f = i[m];
|
3262
|
-
if (
|
3268
|
+
if (Xn(c)) {
|
3263
3269
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3264
3270
|
type: typeof f == "string" ? F.literal : F.object,
|
3265
3271
|
value: f
|
3266
3272
|
});
|
3267
3273
|
continue;
|
3268
3274
|
}
|
3269
|
-
if (
|
3270
|
-
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;
|
3271
3277
|
a.push({
|
3272
3278
|
type: F.literal,
|
3273
3279
|
value: r.getDateTimeFormat(t, p).format(f)
|
3274
3280
|
});
|
3275
3281
|
continue;
|
3276
3282
|
}
|
3277
|
-
if (
|
3278
|
-
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;
|
3279
3285
|
a.push({
|
3280
3286
|
type: F.literal,
|
3281
3287
|
value: r.getDateTimeFormat(t, p).format(f)
|
3282
3288
|
});
|
3283
3289
|
continue;
|
3284
3290
|
}
|
3285
|
-
if (
|
3286
|
-
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;
|
3287
3293
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
3288
3294
|
type: F.literal,
|
3289
3295
|
value: r.getNumberFormat(t, p).format(f)
|
3290
3296
|
});
|
3291
3297
|
continue;
|
3292
3298
|
}
|
3293
|
-
if (
|
3299
|
+
if (ar(c)) {
|
3294
3300
|
var g = c.children, b = c.value, d = i[b];
|
3295
|
-
if (!
|
3296
|
-
throw new
|
3297
|
-
var
|
3301
|
+
if (!Ci(d))
|
3302
|
+
throw new Ei(b, "function", s);
|
3303
|
+
var C = Ie(g, t, r, n, i, o), E = d(C.map(function(L) {
|
3298
3304
|
return L.value;
|
3299
3305
|
}));
|
3300
3306
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(L) {
|
@@ -3304,42 +3310,42 @@ function Be(e, t, r, n, i, s, o) {
|
|
3304
3310
|
};
|
3305
3311
|
}));
|
3306
3312
|
}
|
3307
|
-
if (
|
3313
|
+
if (or(c)) {
|
3308
3314
|
var w = c.options[f] || c.options.other;
|
3309
3315
|
if (!w)
|
3310
|
-
throw new
|
3311
|
-
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));
|
3312
3318
|
continue;
|
3313
3319
|
}
|
3314
|
-
if (
|
3320
|
+
if (sr(c)) {
|
3315
3321
|
var w = c.options["=".concat(f)];
|
3316
3322
|
if (!w) {
|
3317
3323
|
if (!Intl.PluralRules)
|
3318
|
-
throw new
|
3324
|
+
throw new Re(`Intl.PluralRules is not available in this environment.
|
3319
3325
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3320
|
-
`,
|
3326
|
+
`, he.MISSING_INTL_API, s);
|
3321
3327
|
var O = r.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
|
3322
3328
|
w = c.options[O] || c.options.other;
|
3323
3329
|
}
|
3324
3330
|
if (!w)
|
3325
|
-
throw new
|
3326
|
-
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)));
|
3327
3333
|
continue;
|
3328
3334
|
}
|
3329
3335
|
}
|
3330
|
-
return
|
3336
|
+
return wi(a);
|
3331
3337
|
}
|
3332
|
-
function
|
3333
|
-
return t ?
|
3334
|
-
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;
|
3335
3341
|
}, {})) : e;
|
3336
3342
|
}
|
3337
|
-
function
|
3343
|
+
function Si(e, t) {
|
3338
3344
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3339
|
-
return r[n] =
|
3340
|
-
},
|
3345
|
+
return r[n] = Hi(e[n], t[n]), r;
|
3346
|
+
}, j({}, e)) : e;
|
3341
3347
|
}
|
3342
|
-
function
|
3348
|
+
function Ze(e) {
|
3343
3349
|
return {
|
3344
3350
|
create: function() {
|
3345
3351
|
return {
|
@@ -3353,50 +3359,50 @@ function We(e) {
|
|
3353
3359
|
}
|
3354
3360
|
};
|
3355
3361
|
}
|
3356
|
-
function
|
3362
|
+
function Ti(e) {
|
3357
3363
|
return e === void 0 && (e = {
|
3358
3364
|
number: {},
|
3359
3365
|
dateTime: {},
|
3360
3366
|
pluralRules: {}
|
3361
3367
|
}), {
|
3362
|
-
getNumberFormat:
|
3368
|
+
getNumberFormat: Xe(function() {
|
3363
3369
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3364
3370
|
r[n] = arguments[n];
|
3365
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3371
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
3366
3372
|
}, {
|
3367
|
-
cache:
|
3368
|
-
strategy:
|
3373
|
+
cache: Ze(e.number),
|
3374
|
+
strategy: We.variadic
|
3369
3375
|
}),
|
3370
|
-
getDateTimeFormat:
|
3376
|
+
getDateTimeFormat: Xe(function() {
|
3371
3377
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3372
3378
|
r[n] = arguments[n];
|
3373
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3379
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ve([void 0], r, !1)))();
|
3374
3380
|
}, {
|
3375
|
-
cache:
|
3376
|
-
strategy:
|
3381
|
+
cache: Ze(e.dateTime),
|
3382
|
+
strategy: We.variadic
|
3377
3383
|
}),
|
3378
|
-
getPluralRules:
|
3384
|
+
getPluralRules: Xe(function() {
|
3379
3385
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3380
3386
|
r[n] = arguments[n];
|
3381
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3387
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ve([void 0], r, !1)))();
|
3382
3388
|
}, {
|
3383
|
-
cache:
|
3384
|
-
strategy:
|
3389
|
+
cache: Ze(e.pluralRules),
|
3390
|
+
strategy: We.variadic
|
3385
3391
|
})
|
3386
3392
|
};
|
3387
3393
|
}
|
3388
|
-
var
|
3394
|
+
var Ai = (
|
3389
3395
|
/** @class */
|
3390
3396
|
function() {
|
3391
3397
|
function e(t, r, n, i) {
|
3392
3398
|
r === void 0 && (r = e.defaultLocale);
|
3393
|
-
var
|
3399
|
+
var o = this;
|
3394
3400
|
if (this.formatterCache = {
|
3395
3401
|
number: {},
|
3396
3402
|
dateTime: {},
|
3397
3403
|
pluralRules: {}
|
3398
3404
|
}, this.format = function(u) {
|
3399
|
-
var l =
|
3405
|
+
var l = o.formatToParts(u);
|
3400
3406
|
if (l.length === 1)
|
3401
3407
|
return l[0].value;
|
3402
3408
|
var c = l.reduce(function(m, f) {
|
@@ -3404,26 +3410,26 @@ var Si = (
|
|
3404
3410
|
}, []);
|
3405
3411
|
return c.length <= 1 ? c[0] || "" : c;
|
3406
3412
|
}, this.formatToParts = function(u) {
|
3407
|
-
return
|
3413
|
+
return Ie(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
3408
3414
|
}, this.resolvedOptions = function() {
|
3409
3415
|
var u;
|
3410
3416
|
return {
|
3411
|
-
locale: ((u =
|
3417
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3412
3418
|
};
|
3413
3419
|
}, this.getAst = function() {
|
3414
|
-
return
|
3420
|
+
return o.ast;
|
3415
3421
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
3416
3422
|
if (this.message = t, !e.__parse)
|
3417
3423
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3418
|
-
var
|
3419
|
-
|
3420
|
-
var a =
|
3421
|
-
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 }));
|
3422
3428
|
} else
|
3423
3429
|
this.ast = t;
|
3424
3430
|
if (!Array.isArray(this.ast))
|
3425
3431
|
throw new TypeError("A message must be provided as a String or AST.");
|
3426
|
-
this.formats =
|
3432
|
+
this.formats = Si(e.formats, n), this.formatters = i && i.formatters || Ti(this.formatterCache);
|
3427
3433
|
}
|
3428
3434
|
return Object.defineProperty(e, "defaultLocale", {
|
3429
3435
|
get: function() {
|
@@ -3436,7 +3442,7 @@ var Si = (
|
|
3436
3442
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3437
3443
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3438
3444
|
}
|
3439
|
-
}, e.__parse =
|
3445
|
+
}, e.__parse = _i, e.formats = {
|
3440
3446
|
number: {
|
3441
3447
|
integer: {
|
3442
3448
|
maximumFractionDigits: 0
|
@@ -3497,7 +3503,7 @@ var Si = (
|
|
3497
3503
|
}, e;
|
3498
3504
|
}()
|
3499
3505
|
);
|
3500
|
-
function
|
3506
|
+
function Bi(e, t) {
|
3501
3507
|
if (t == null)
|
3502
3508
|
return;
|
3503
3509
|
if (t in e)
|
@@ -3507,9 +3513,9 @@ function Ti(e, t) {
|
|
3507
3513
|
for (let i = 0; i < r.length; i++)
|
3508
3514
|
if (typeof n == "object") {
|
3509
3515
|
if (i > 0) {
|
3510
|
-
const
|
3511
|
-
if (
|
3512
|
-
n = n[
|
3516
|
+
const o = r.slice(i, r.length).join(".");
|
3517
|
+
if (o in n) {
|
3518
|
+
n = n[o];
|
3513
3519
|
break;
|
3514
3520
|
}
|
3515
3521
|
}
|
@@ -3518,92 +3524,92 @@ function Ti(e, t) {
|
|
3518
3524
|
n = void 0;
|
3519
3525
|
return n;
|
3520
3526
|
}
|
3521
|
-
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) => {
|
3522
3528
|
if (t == null)
|
3523
3529
|
return;
|
3524
|
-
if (t in
|
3525
|
-
return
|
3526
|
-
const r =
|
3530
|
+
if (t in z && e in z[t])
|
3531
|
+
return z[t][e];
|
3532
|
+
const r = De(t);
|
3527
3533
|
for (let n = 0; n < r.length; n++) {
|
3528
|
-
const i = r[n],
|
3529
|
-
if (
|
3530
|
-
return
|
3534
|
+
const i = r[n], o = Li(i, e);
|
3535
|
+
if (o)
|
3536
|
+
return Ii(e, t, o);
|
3531
3537
|
}
|
3532
3538
|
};
|
3533
|
-
let
|
3534
|
-
const
|
3535
|
-
function
|
3536
|
-
return
|
3539
|
+
let ut;
|
3540
|
+
const me = Oe({});
|
3541
|
+
function Mi(e) {
|
3542
|
+
return ut[e] || null;
|
3537
3543
|
}
|
3538
|
-
function
|
3539
|
-
return e in
|
3544
|
+
function br(e) {
|
3545
|
+
return e in ut;
|
3540
3546
|
}
|
3541
|
-
function
|
3542
|
-
if (!
|
3547
|
+
function Li(e, t) {
|
3548
|
+
if (!br(e))
|
3543
3549
|
return null;
|
3544
|
-
const r =
|
3545
|
-
return
|
3550
|
+
const r = Mi(e);
|
3551
|
+
return Bi(r, t);
|
3546
3552
|
}
|
3547
|
-
function
|
3553
|
+
function Ni(e) {
|
3548
3554
|
if (e == null)
|
3549
3555
|
return;
|
3550
|
-
const t =
|
3556
|
+
const t = De(e);
|
3551
3557
|
for (let r = 0; r < t.length; r++) {
|
3552
3558
|
const n = t[r];
|
3553
|
-
if (
|
3559
|
+
if (br(n))
|
3554
3560
|
return n;
|
3555
3561
|
}
|
3556
3562
|
}
|
3557
|
-
function
|
3558
|
-
delete
|
3563
|
+
function yr(e, ...t) {
|
3564
|
+
delete z[e], me.update((r) => (r[e] = Fn.all([r[e] || {}, ...t]), r));
|
3559
3565
|
}
|
3560
|
-
|
3561
|
-
[
|
3566
|
+
fe(
|
3567
|
+
[me],
|
3562
3568
|
([e]) => Object.keys(e)
|
3563
3569
|
);
|
3564
|
-
|
3565
|
-
const
|
3566
|
-
function
|
3567
|
-
|
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];
|
3568
3574
|
}
|
3569
|
-
function
|
3570
|
-
return
|
3575
|
+
function vr(e) {
|
3576
|
+
return Me[e];
|
3571
3577
|
}
|
3572
|
-
function
|
3573
|
-
return
|
3574
|
-
const r =
|
3578
|
+
function Oi(e) {
|
3579
|
+
return De(e).map((t) => {
|
3580
|
+
const r = vr(t);
|
3575
3581
|
return [t, r ? [...r] : []];
|
3576
3582
|
}).filter(([, t]) => t.length > 0);
|
3577
3583
|
}
|
3578
|
-
function
|
3579
|
-
return e == null ? !1 :
|
3584
|
+
function ot(e) {
|
3585
|
+
return e == null ? !1 : De(e).some(
|
3580
3586
|
(t) => {
|
3581
3587
|
var r;
|
3582
|
-
return (r =
|
3588
|
+
return (r = vr(t)) == null ? void 0 : r.size;
|
3583
3589
|
}
|
3584
3590
|
);
|
3585
3591
|
}
|
3586
|
-
function
|
3592
|
+
function Fi(e, t) {
|
3587
3593
|
return Promise.all(
|
3588
|
-
t.map((n) => (
|
3589
|
-
).then((n) =>
|
3590
|
-
}
|
3591
|
-
const
|
3592
|
-
function
|
3593
|
-
if (!
|
3594
|
-
return e in
|
3595
|
-
const t =
|
3596
|
-
return
|
3594
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
3595
|
+
).then((n) => yr(e, ...n));
|
3596
|
+
}
|
3597
|
+
const be = {};
|
3598
|
+
function _r(e) {
|
3599
|
+
if (!ot(e))
|
3600
|
+
return e in be ? be[e] : Promise.resolve();
|
3601
|
+
const t = Oi(e);
|
3602
|
+
return be[e] = Promise.all(
|
3597
3603
|
t.map(
|
3598
|
-
([r, n]) =>
|
3604
|
+
([r, n]) => Fi(r, n)
|
3599
3605
|
)
|
3600
3606
|
).then(() => {
|
3601
|
-
if (
|
3602
|
-
return
|
3603
|
-
delete
|
3604
|
-
}),
|
3607
|
+
if (ot(e))
|
3608
|
+
return _r(e);
|
3609
|
+
delete be[e];
|
3610
|
+
}), be[e];
|
3605
3611
|
}
|
3606
|
-
const
|
3612
|
+
const Ri = {
|
3607
3613
|
number: {
|
3608
3614
|
scientific: { notation: "scientific" },
|
3609
3615
|
engineering: { notation: "engineering" },
|
@@ -3632,150 +3638,150 @@ const Oi = {
|
|
3632
3638
|
timeZoneName: "short"
|
3633
3639
|
}
|
3634
3640
|
}
|
3635
|
-
},
|
3641
|
+
}, Di = {
|
3636
3642
|
fallbackLocale: null,
|
3637
3643
|
loadingDelay: 200,
|
3638
|
-
formats:
|
3644
|
+
formats: Ri,
|
3639
3645
|
warnOnMissingMessages: !0,
|
3640
3646
|
handleMissingMessage: void 0,
|
3641
3647
|
ignoreTag: !0
|
3642
|
-
},
|
3643
|
-
function
|
3644
|
-
return
|
3648
|
+
}, Ui = Di;
|
3649
|
+
function ce() {
|
3650
|
+
return Ui;
|
3645
3651
|
}
|
3646
|
-
const
|
3647
|
-
var
|
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) => {
|
3648
3654
|
for (var r in t || (t = {}))
|
3649
|
-
|
3650
|
-
if (
|
3651
|
-
for (var r of
|
3652
|
-
|
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]);
|
3653
3659
|
return e;
|
3654
|
-
},
|
3655
|
-
let
|
3656
|
-
const
|
3657
|
-
function
|
3660
|
+
}, Wi = (e, t) => ki(e, $i(t));
|
3661
|
+
let st;
|
3662
|
+
const Ne = Oe(null);
|
3663
|
+
function Nt(e) {
|
3658
3664
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3659
3665
|
}
|
3660
|
-
function
|
3661
|
-
const r =
|
3662
|
-
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;
|
3663
3669
|
}
|
3664
|
-
function
|
3665
|
-
return
|
3670
|
+
function ee() {
|
3671
|
+
return st != null ? st : void 0;
|
3666
3672
|
}
|
3667
|
-
|
3668
|
-
|
3673
|
+
Ne.subscribe((e) => {
|
3674
|
+
st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3669
3675
|
});
|
3670
|
-
const
|
3671
|
-
if (e &&
|
3672
|
-
const { loadingDelay: t } =
|
3676
|
+
const zi = (e) => {
|
3677
|
+
if (e && Ni(e) && ot(e)) {
|
3678
|
+
const { loadingDelay: t } = ce();
|
3673
3679
|
let r;
|
3674
|
-
return typeof window != "undefined" &&
|
3675
|
-
() =>
|
3680
|
+
return typeof window != "undefined" && ee() != null && t ? r = window.setTimeout(
|
3681
|
+
() => Qe.set(!0),
|
3676
3682
|
t
|
3677
|
-
) :
|
3678
|
-
|
3683
|
+
) : Qe.set(!0), _r(e).then(() => {
|
3684
|
+
Ne.set(e);
|
3679
3685
|
}).finally(() => {
|
3680
|
-
clearTimeout(r),
|
3686
|
+
clearTimeout(r), Qe.set(!1);
|
3681
3687
|
});
|
3682
3688
|
}
|
3683
|
-
return
|
3684
|
-
},
|
3685
|
-
set:
|
3686
|
-
}),
|
3689
|
+
return Ne.set(e);
|
3690
|
+
}, Z = Wi(Xi({}, Ne), {
|
3691
|
+
set: zi
|
3692
|
+
}), Ue = (e) => {
|
3687
3693
|
const t = /* @__PURE__ */ Object.create(null);
|
3688
3694
|
return (n) => {
|
3689
3695
|
const i = JSON.stringify(n);
|
3690
3696
|
return i in t ? t[i] : t[i] = e(n);
|
3691
3697
|
};
|
3692
3698
|
};
|
3693
|
-
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) => {
|
3694
3700
|
for (var r in t || (t = {}))
|
3695
|
-
|
3696
|
-
if (
|
3697
|
-
for (var r of
|
3698
|
-
|
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]);
|
3699
3705
|
return e;
|
3700
|
-
},
|
3706
|
+
}, de = (e, t) => {
|
3701
3707
|
var r = {};
|
3702
3708
|
for (var n in e)
|
3703
|
-
|
3704
|
-
if (e != null &&
|
3705
|
-
for (var n of
|
3706
|
-
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]);
|
3707
3713
|
return r;
|
3708
3714
|
};
|
3709
|
-
const
|
3710
|
-
const { formats: r } =
|
3715
|
+
const we = (e, t) => {
|
3716
|
+
const { formats: r } = ce();
|
3711
3717
|
if (e in r && t in r[e])
|
3712
3718
|
return r[e][t];
|
3713
3719
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3714
|
-
},
|
3720
|
+
}, Qi = Ue(
|
3715
3721
|
(e) => {
|
3716
|
-
var t = e, { locale: r, format: n } = t, i =
|
3722
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
3717
3723
|
if (r == null)
|
3718
3724
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3719
|
-
return n && (i =
|
3725
|
+
return n && (i = we("number", n)), new Intl.NumberFormat(r, i);
|
3720
3726
|
}
|
3721
|
-
),
|
3727
|
+
), qi = Ue(
|
3722
3728
|
(e) => {
|
3723
|
-
var t = e, { locale: r, format: n } = t, i =
|
3729
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
3724
3730
|
if (r == null)
|
3725
3731
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3726
|
-
return n ? i =
|
3732
|
+
return n ? i = we("date", n) : Object.keys(i).length === 0 && (i = we("date", "short")), new Intl.DateTimeFormat(r, i);
|
3727
3733
|
}
|
3728
|
-
),
|
3734
|
+
), Ji = Ue(
|
3729
3735
|
(e) => {
|
3730
|
-
var t = e, { locale: r, format: n } = t, i =
|
3736
|
+
var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
|
3731
3737
|
if (r == null)
|
3732
3738
|
throw new Error(
|
3733
3739
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3734
3740
|
);
|
3735
|
-
return n ? i =
|
3741
|
+
return n ? i = we("time", n) : Object.keys(i).length === 0 && (i = we("time", "short")), new Intl.DateTimeFormat(r, i);
|
3736
3742
|
}
|
3737
|
-
),
|
3743
|
+
), Yi = (e = {}) => {
|
3738
3744
|
var t = e, {
|
3739
|
-
locale: r =
|
3740
|
-
} = t, n =
|
3745
|
+
locale: r = ee()
|
3746
|
+
} = t, n = de(t, [
|
3741
3747
|
"locale"
|
3742
3748
|
]);
|
3743
|
-
return
|
3744
|
-
},
|
3749
|
+
return Qi(ht({ locale: r }, n));
|
3750
|
+
}, Ki = (e = {}) => {
|
3745
3751
|
var t = e, {
|
3746
|
-
locale: r =
|
3747
|
-
} = t, n =
|
3752
|
+
locale: r = ee()
|
3753
|
+
} = t, n = de(t, [
|
3748
3754
|
"locale"
|
3749
3755
|
]);
|
3750
|
-
return
|
3751
|
-
},
|
3756
|
+
return qi(ht({ locale: r }, n));
|
3757
|
+
}, eo = (e = {}) => {
|
3752
3758
|
var t = e, {
|
3753
|
-
locale: r =
|
3754
|
-
} = t, n =
|
3759
|
+
locale: r = ee()
|
3760
|
+
} = t, n = de(t, [
|
3755
3761
|
"locale"
|
3756
3762
|
]);
|
3757
|
-
return
|
3758
|
-
},
|
3763
|
+
return Ji(ht({ locale: r }, n));
|
3764
|
+
}, to = Ue(
|
3759
3765
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3760
|
-
(e, t =
|
3761
|
-
ignoreTag:
|
3766
|
+
(e, t = ee()) => new Ai(e, t, ce().formats, {
|
3767
|
+
ignoreTag: ce().ignoreTag
|
3762
3768
|
})
|
3763
|
-
),
|
3764
|
-
var r, n, i,
|
3765
|
-
let
|
3766
|
-
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);
|
3767
3773
|
const {
|
3768
3774
|
values: a,
|
3769
|
-
locale: u =
|
3775
|
+
locale: u = ee(),
|
3770
3776
|
default: l
|
3771
|
-
} =
|
3777
|
+
} = s;
|
3772
3778
|
if (u == null)
|
3773
3779
|
throw new Error(
|
3774
3780
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3775
3781
|
);
|
3776
|
-
let c =
|
3782
|
+
let c = gr(e, u);
|
3777
3783
|
if (!c)
|
3778
|
-
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;
|
3779
3785
|
else if (typeof c != "string")
|
3780
3786
|
return console.warn(
|
3781
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.`
|
@@ -3784,7 +3790,7 @@ const xe = (e, t) => {
|
|
3784
3790
|
return c;
|
3785
3791
|
let m = c;
|
3786
3792
|
try {
|
3787
|
-
m =
|
3793
|
+
m = to(c, u).format(a);
|
3788
3794
|
} catch (f) {
|
3789
3795
|
f instanceof Error && console.warn(
|
3790
3796
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3792,24 +3798,24 @@ const xe = (e, t) => {
|
|
3792
3798
|
);
|
3793
3799
|
}
|
3794
3800
|
return m;
|
3795
|
-
},
|
3796
|
-
|
3797
|
-
|
3798
|
-
|
3799
|
-
|
3800
|
-
|
3801
|
-
function
|
3802
|
-
|
3803
|
-
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));
|
3804
3810
|
});
|
3805
3811
|
}
|
3806
|
-
function
|
3807
|
-
|
3812
|
+
function Ot(e, t) {
|
3813
|
+
yr(e, t);
|
3808
3814
|
}
|
3809
|
-
function
|
3810
|
-
|
3815
|
+
function lo(e) {
|
3816
|
+
Z.set(e);
|
3811
3817
|
}
|
3812
|
-
const
|
3818
|
+
const Ft = {
|
3813
3819
|
en: {
|
3814
3820
|
login: "Login",
|
3815
3821
|
register: "Register",
|
@@ -3866,115 +3872,115 @@ const Pt = {
|
|
3866
3872
|
deposit: "Deposit"
|
3867
3873
|
}
|
3868
3874
|
};
|
3869
|
-
function
|
3870
|
-
|
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}');
|
3871
3877
|
}
|
3872
|
-
function
|
3878
|
+
function Rt(e, t, r) {
|
3873
3879
|
const n = e.slice();
|
3874
3880
|
return n[57] = t[r], n[59] = r, n;
|
3875
3881
|
}
|
3876
|
-
function
|
3882
|
+
function Dt(e, t, r) {
|
3877
3883
|
const n = e.slice();
|
3878
3884
|
return n[60] = t[r], n;
|
3879
3885
|
}
|
3880
|
-
function
|
3886
|
+
function Ut(e, t, r) {
|
3881
3887
|
const n = e.slice();
|
3882
3888
|
return n[63] = t[r], n[65] = r, n;
|
3883
3889
|
}
|
3884
|
-
function
|
3885
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
3890
|
+
function Gt(e) {
|
3891
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ae(
|
3886
3892
|
/*sliderdata*/
|
3887
3893
|
e[9]
|
3888
3894
|
);
|
3889
|
-
const
|
3895
|
+
const o = (s) => (
|
3890
3896
|
/*category*/
|
3891
|
-
|
3897
|
+
s[57].id
|
3892
3898
|
);
|
3893
|
-
for (let
|
3894
|
-
let a =
|
3895
|
-
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));
|
3896
3902
|
}
|
3897
3903
|
return {
|
3898
3904
|
c() {
|
3899
|
-
for (let
|
3900
|
-
t[
|
3901
|
-
n =
|
3905
|
+
for (let s = 0; s < t.length; s += 1)
|
3906
|
+
t[s].c();
|
3907
|
+
n = _e();
|
3902
3908
|
},
|
3903
|
-
m(
|
3909
|
+
m(s, a) {
|
3904
3910
|
for (let u = 0; u < t.length; u += 1)
|
3905
|
-
t[u] && t[u].m(
|
3906
|
-
k(
|
3911
|
+
t[u] && t[u].m(s, a);
|
3912
|
+
k(s, n, a);
|
3907
3913
|
},
|
3908
|
-
p(
|
3914
|
+
p(s, a) {
|
3909
3915
|
a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
3910
|
-
1183695 && (i =
|
3916
|
+
1183695 && (i = ae(
|
3911
3917
|
/*sliderdata*/
|
3912
|
-
|
3913
|
-
), t =
|
3918
|
+
s[9]
|
3919
|
+
), t = Jt(t, a, o, 1, s, i, r, n.parentNode, qt, Wt, n, Rt));
|
3914
3920
|
},
|
3915
|
-
d(
|
3916
|
-
|
3921
|
+
d(s) {
|
3922
|
+
s && U(n);
|
3917
3923
|
for (let a = 0; a < t.length; a += 1)
|
3918
|
-
t[a].d(
|
3924
|
+
t[a].d(s);
|
3919
3925
|
}
|
3920
3926
|
};
|
3921
3927
|
}
|
3922
|
-
function
|
3928
|
+
function ho(e) {
|
3923
3929
|
let t, r = (
|
3924
3930
|
/*category*/
|
3925
3931
|
e[57].name + ""
|
3926
3932
|
), n;
|
3927
3933
|
return {
|
3928
3934
|
c() {
|
3929
|
-
t = P("button"), n = Ce(r),
|
3935
|
+
t = P("button"), n = Ce(r), S(t, "class", "CategoryButton");
|
3930
3936
|
},
|
3931
|
-
m(i,
|
3932
|
-
k(i, t,
|
3937
|
+
m(i, o) {
|
3938
|
+
k(i, t, o), M(t, n);
|
3933
3939
|
},
|
3934
|
-
p(i,
|
3935
|
-
|
3940
|
+
p(i, o) {
|
3941
|
+
o[0] & /*sliderdata*/
|
3936
3942
|
512 && r !== (r = /*category*/
|
3937
|
-
i[57].name + "") &&
|
3943
|
+
i[57].name + "") && lt(n, r);
|
3938
3944
|
},
|
3939
3945
|
d(i) {
|
3940
3946
|
i && U(t);
|
3941
3947
|
}
|
3942
3948
|
};
|
3943
3949
|
}
|
3944
|
-
function
|
3950
|
+
function co(e) {
|
3945
3951
|
let t, r = (
|
3946
3952
|
/*category*/
|
3947
3953
|
e[57].label + ""
|
3948
3954
|
), n, i;
|
3949
3955
|
return {
|
3950
3956
|
c() {
|
3951
|
-
t = P("a"), n = Ce(r),
|
3957
|
+
t = P("a"), n = Ce(r), S(t, "href", i = /*category*/
|
3952
3958
|
e[57].path);
|
3953
3959
|
},
|
3954
|
-
m(
|
3955
|
-
k(
|
3960
|
+
m(o, s) {
|
3961
|
+
k(o, t, s), M(t, n);
|
3956
3962
|
},
|
3957
|
-
p(
|
3958
|
-
|
3963
|
+
p(o, s) {
|
3964
|
+
s[0] & /*sliderdata*/
|
3959
3965
|
512 && r !== (r = /*category*/
|
3960
|
-
|
3966
|
+
o[57].label + "") && lt(n, r), s[0] & /*sliderdata*/
|
3961
3967
|
512 && i !== (i = /*category*/
|
3962
|
-
|
3968
|
+
o[57].path) && S(t, "href", i);
|
3963
3969
|
},
|
3964
|
-
d(
|
3965
|
-
|
3970
|
+
d(o) {
|
3971
|
+
o && U(t);
|
3966
3972
|
}
|
3967
3973
|
};
|
3968
3974
|
}
|
3969
|
-
function
|
3975
|
+
function kt(e) {
|
3970
3976
|
let t, r = (
|
3971
3977
|
/*subGroupsData*/
|
3972
3978
|
e[10].length > 0 && /*showsubgroups*/
|
3973
|
-
e[2] == "true" &&
|
3979
|
+
e[2] == "true" && $t(e)
|
3974
3980
|
);
|
3975
3981
|
return {
|
3976
3982
|
c() {
|
3977
|
-
r && r.c(), t =
|
3983
|
+
r && r.c(), t = _e();
|
3978
3984
|
},
|
3979
3985
|
m(n, i) {
|
3980
3986
|
r && r.m(n, i), k(n, t, i);
|
@@ -3982,60 +3988,60 @@ function Ut(e) {
|
|
3982
3988
|
p(n, i) {
|
3983
3989
|
/*subGroupsData*/
|
3984
3990
|
n[10].length > 0 && /*showsubgroups*/
|
3985
|
-
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);
|
3986
3992
|
},
|
3987
3993
|
d(n) {
|
3988
3994
|
n && U(t), r && r.d(n);
|
3989
3995
|
}
|
3990
3996
|
};
|
3991
3997
|
}
|
3992
|
-
function
|
3993
|
-
let t, r =
|
3998
|
+
function $t(e) {
|
3999
|
+
let t, r = ae(
|
3994
4000
|
/*subGroupsData*/
|
3995
4001
|
e[10]
|
3996
4002
|
), n = [];
|
3997
4003
|
for (let i = 0; i < r.length; i += 1)
|
3998
|
-
n[i] =
|
4004
|
+
n[i] = Xt(Dt(e, r, i));
|
3999
4005
|
return {
|
4000
4006
|
c() {
|
4001
4007
|
t = P("ul");
|
4002
4008
|
for (let i = 0; i < n.length; i += 1)
|
4003
4009
|
n[i].c();
|
4004
|
-
|
4010
|
+
S(t, "class", "DropDown");
|
4005
4011
|
},
|
4006
|
-
m(i,
|
4007
|
-
k(i, t,
|
4008
|
-
for (let
|
4009
|
-
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);
|
4010
4016
|
},
|
4011
|
-
p(i,
|
4012
|
-
if (
|
4017
|
+
p(i, o) {
|
4018
|
+
if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
4013
4019
|
133056) {
|
4014
|
-
r =
|
4020
|
+
r = ae(
|
4015
4021
|
/*subGroupsData*/
|
4016
4022
|
i[10]
|
4017
4023
|
);
|
4018
|
-
let
|
4019
|
-
for (
|
4020
|
-
const a =
|
4021
|
-
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));
|
4022
4028
|
}
|
4023
|
-
for (;
|
4024
|
-
n[
|
4029
|
+
for (; s < n.length; s += 1)
|
4030
|
+
n[s].d(1);
|
4025
4031
|
n.length = r.length;
|
4026
4032
|
}
|
4027
4033
|
},
|
4028
4034
|
d(i) {
|
4029
|
-
i && U(t),
|
4035
|
+
i && U(t), Jr(n, i);
|
4030
4036
|
}
|
4031
4037
|
};
|
4032
4038
|
}
|
4033
|
-
function
|
4039
|
+
function jt(e) {
|
4034
4040
|
var c;
|
4035
4041
|
let t, r, n = (
|
4036
4042
|
/*subGroupItem*/
|
4037
4043
|
((c = e[63]) == null ? void 0 : c.name) + ""
|
4038
|
-
), i,
|
4044
|
+
), i, o, s, a, u;
|
4039
4045
|
function l(...m) {
|
4040
4046
|
return (
|
4041
4047
|
/*click_handler_2*/
|
@@ -4054,7 +4060,7 @@ function kt(e) {
|
|
4054
4060
|
}
|
4055
4061
|
return {
|
4056
4062
|
c() {
|
4057
|
-
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*/
|
4058
4064
|
(e[59] == /*activeIndex*/
|
4059
4065
|
e[6] && /*activeSubIndex*/
|
4060
4066
|
(e[7] == /*subindex*/
|
@@ -4063,95 +4069,95 @@ function kt(e) {
|
|
4063
4069
|
e[65]) ? "active" : ""));
|
4064
4070
|
},
|
4065
4071
|
m(m, f) {
|
4066
|
-
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);
|
4067
4073
|
},
|
4068
4074
|
p(m, f) {
|
4069
4075
|
var p;
|
4070
4076
|
e = m, f[0] & /*subGroupsData*/
|
4071
4077
|
1024 && n !== (n = /*subGroupItem*/
|
4072
|
-
((p = e[63]) == null ? void 0 : p.name) + "") &&
|
4073
|
-
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*/
|
4074
4080
|
(e[59] == /*activeIndex*/
|
4075
4081
|
e[6] && /*activeSubIndex*/
|
4076
4082
|
(e[7] == /*subindex*/
|
4077
4083
|
e[65] || /*prevSubIndex*/
|
4078
4084
|
e[8] == /*subindex*/
|
4079
|
-
e[65]) ? "active" : "")) &&
|
4085
|
+
e[65]) ? "active" : "")) && S(r, "class", o);
|
4080
4086
|
},
|
4081
4087
|
d(m) {
|
4082
4088
|
m && U(t), a = !1, u();
|
4083
4089
|
}
|
4084
4090
|
};
|
4085
4091
|
}
|
4086
|
-
function
|
4092
|
+
function Vt(e, t) {
|
4087
4093
|
let r, n, i = (
|
4088
4094
|
/*index*/
|
4089
4095
|
t[59] == /*subGroup*/
|
4090
|
-
t[60].index &&
|
4096
|
+
t[60].index && jt(t)
|
4091
4097
|
);
|
4092
4098
|
return {
|
4093
4099
|
key: e,
|
4094
4100
|
first: null,
|
4095
4101
|
c() {
|
4096
|
-
r =
|
4102
|
+
r = _e(), i && i.c(), n = _e(), this.first = r;
|
4097
4103
|
},
|
4098
|
-
m(
|
4099
|
-
k(
|
4104
|
+
m(o, s) {
|
4105
|
+
k(o, r, s), i && i.m(o, s), k(o, n, s);
|
4100
4106
|
},
|
4101
|
-
p(
|
4102
|
-
t =
|
4107
|
+
p(o, s) {
|
4108
|
+
t = o, /*index*/
|
4103
4109
|
t[59] == /*subGroup*/
|
4104
|
-
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);
|
4105
4111
|
},
|
4106
|
-
d(
|
4107
|
-
|
4112
|
+
d(o) {
|
4113
|
+
o && (U(r), U(n)), i && i.d(o);
|
4108
4114
|
}
|
4109
4115
|
};
|
4110
4116
|
}
|
4111
|
-
function
|
4112
|
-
let t = [], r = /* @__PURE__ */ new Map(), n, i =
|
4117
|
+
function Xt(e) {
|
4118
|
+
let t = [], r = /* @__PURE__ */ new Map(), n, i = ae(
|
4113
4119
|
/*subGroup*/
|
4114
4120
|
e[60].items
|
4115
4121
|
);
|
4116
|
-
const
|
4122
|
+
const o = (s) => (
|
4117
4123
|
/*subGroupItem*/
|
4118
|
-
|
4124
|
+
s[63].id
|
4119
4125
|
);
|
4120
|
-
for (let
|
4121
|
-
let a =
|
4122
|
-
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));
|
4123
4129
|
}
|
4124
4130
|
return {
|
4125
4131
|
c() {
|
4126
|
-
for (let
|
4127
|
-
t[
|
4128
|
-
n =
|
4132
|
+
for (let s = 0; s < t.length; s += 1)
|
4133
|
+
t[s].c();
|
4134
|
+
n = _e();
|
4129
4135
|
},
|
4130
|
-
m(
|
4136
|
+
m(s, a) {
|
4131
4137
|
for (let u = 0; u < t.length; u += 1)
|
4132
|
-
t[u] && t[u].m(
|
4133
|
-
k(
|
4138
|
+
t[u] && t[u].m(s, a);
|
4139
|
+
k(s, n, a);
|
4134
4140
|
},
|
4135
|
-
p(
|
4141
|
+
p(s, a) {
|
4136
4142
|
a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
4137
|
-
133056 && (i =
|
4143
|
+
133056 && (i = ae(
|
4138
4144
|
/*subGroup*/
|
4139
|
-
|
4140
|
-
), t =
|
4145
|
+
s[60].items
|
4146
|
+
), t = Jt(t, a, o, 1, s, i, r, n.parentNode, qt, Vt, n, Ut));
|
4141
4147
|
},
|
4142
|
-
d(
|
4143
|
-
|
4148
|
+
d(s) {
|
4149
|
+
s && U(n);
|
4144
4150
|
for (let a = 0; a < t.length; a += 1)
|
4145
|
-
t[a].d(
|
4151
|
+
t[a].d(s);
|
4146
4152
|
}
|
4147
4153
|
};
|
4148
4154
|
}
|
4149
|
-
function
|
4150
|
-
let r, n, i,
|
4155
|
+
function Wt(e, t) {
|
4156
|
+
let r, n, i, o, s, a, u, l, c, m, f;
|
4151
4157
|
function p(E, w) {
|
4152
4158
|
return (
|
4153
4159
|
/*location*/
|
4154
|
-
E[0] === "headerMain" ?
|
4160
|
+
E[0] === "headerMain" ? co : ho
|
4155
4161
|
);
|
4156
4162
|
}
|
4157
4163
|
let g = p(t), b = g(t), d = (
|
@@ -4159,9 +4165,9 @@ function Vt(e, t) {
|
|
4159
4165
|
t[11][
|
4160
4166
|
/*index*/
|
4161
4167
|
t[59]
|
4162
|
-
] == !0 &&
|
4168
|
+
] == !0 && kt(t)
|
4163
4169
|
);
|
4164
|
-
function
|
4170
|
+
function C(...E) {
|
4165
4171
|
return (
|
4166
4172
|
/*click_handler_3*/
|
4167
4173
|
t[39](
|
@@ -4178,12 +4184,12 @@ function Vt(e, t) {
|
|
4178
4184
|
first: null,
|
4179
4185
|
c() {
|
4180
4186
|
var E, w;
|
4181
|
-
r = P("li"), n = P("div"), i = P("img"), a =
|
4182
|
-
(t[3] === "true" ? "" : "DisplayNone")),
|
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*/
|
4183
4189
|
t[20](
|
4184
4190
|
/*category*/
|
4185
4191
|
t[57]
|
4186
|
-
)) ||
|
4192
|
+
)) || S(i, "src", s), S(n, "class", "CategoryIcon"), S(r, "class", c = "CarouselItem " + /*activeindex*/
|
4187
4193
|
(((E = t[1]) == null ? void 0 : E.toString().indexOf("$")) > -1 ? (
|
4188
4194
|
/*activeindex*/
|
4189
4195
|
((w = t[1]) == null ? void 0 : w.split("$").pop()) == /*category*/
|
@@ -4196,22 +4202,22 @@ function Vt(e, t) {
|
|
4196
4202
|
(t[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = r;
|
4197
4203
|
},
|
4198
4204
|
m(E, w) {
|
4199
|
-
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);
|
4200
4206
|
},
|
4201
4207
|
p(E, w) {
|
4202
4208
|
var O, L;
|
4203
4209
|
t = E, w[0] & /*categoriesicon*/
|
4204
|
-
8 &&
|
4205
|
-
(t[3] === "true" ? "" : "DisplayNone")) &&
|
4206
|
-
512 && !
|
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*/
|
4207
4213
|
t[20](
|
4208
4214
|
/*category*/
|
4209
4215
|
t[57]
|
4210
|
-
)) &&
|
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*/
|
4211
4217
|
t[11][
|
4212
4218
|
/*index*/
|
4213
4219
|
t[59]
|
4214
|
-
] == !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*/
|
4215
4221
|
515 && c !== (c = "CarouselItem " + /*activeindex*/
|
4216
4222
|
(((O = t[1]) == null ? void 0 : O.toString().indexOf("$")) > -1 ? (
|
4217
4223
|
/*activeindex*/
|
@@ -4222,62 +4228,62 @@ function Vt(e, t) {
|
|
4222
4228
|
t[1] == /*category*/
|
4223
4229
|
t[57].id ? "active" : ""
|
4224
4230
|
)) + " " + /*location*/
|
4225
|
-
(t[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
4231
|
+
(t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", c);
|
4226
4232
|
},
|
4227
4233
|
d(E) {
|
4228
4234
|
E && U(r), b.d(), d && d.d(), m = !1, f();
|
4229
4235
|
}
|
4230
4236
|
};
|
4231
4237
|
}
|
4232
|
-
function
|
4233
|
-
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 = (
|
4234
4240
|
/*sliderdata*/
|
4235
|
-
e[9].length > 0 &&
|
4241
|
+
e[9].length > 0 && Gt(e)
|
4236
4242
|
);
|
4237
4243
|
return {
|
4238
4244
|
c() {
|
4239
|
-
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 =
|
4240
|
-
e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
4241
|
-
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*/
|
4242
4248
|
(e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
4243
4249
|
},
|
4244
|
-
m(
|
4245
|
-
k(
|
4246
|
-
|
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(
|
4247
4253
|
n,
|
4248
4254
|
"click",
|
4249
4255
|
/*click_handler_1*/
|
4250
4256
|
e[37]
|
4251
4257
|
),
|
4252
|
-
|
4253
|
-
|
4258
|
+
X(
|
4259
|
+
s,
|
4254
4260
|
"mousedown",
|
4255
4261
|
/*handleMouseDown*/
|
4256
4262
|
e[13]
|
4257
4263
|
),
|
4258
|
-
|
4259
|
-
|
4264
|
+
X(
|
4265
|
+
s,
|
4260
4266
|
"mouseleave",
|
4261
4267
|
/*handleMouseLeave*/
|
4262
4268
|
e[14]
|
4263
4269
|
),
|
4264
|
-
|
4265
|
-
|
4270
|
+
X(
|
4271
|
+
s,
|
4266
4272
|
"mouseup",
|
4267
4273
|
/*handleMouseUp*/
|
4268
4274
|
e[15]
|
4269
4275
|
),
|
4270
|
-
|
4271
|
-
|
4276
|
+
X(
|
4277
|
+
s,
|
4272
4278
|
"mousemove",
|
4273
4279
|
/*handleMouseMove*/
|
4274
4280
|
e[16]
|
4275
4281
|
),
|
4276
|
-
|
4282
|
+
X(s, "click", Yr(
|
4277
4283
|
/*click_handler*/
|
4278
4284
|
e[36]
|
4279
4285
|
)),
|
4280
|
-
|
4286
|
+
X(
|
4281
4287
|
c,
|
4282
4288
|
"click",
|
4283
4289
|
/*click_handler_4*/
|
@@ -4285,198 +4291,198 @@ function ho(e) {
|
|
4285
4291
|
)
|
4286
4292
|
], g = !0);
|
4287
4293
|
},
|
4288
|
-
p(
|
4294
|
+
p(C, E) {
|
4289
4295
|
/*sliderdata*/
|
4290
|
-
|
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*/
|
4291
4297
|
1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
|
4292
|
-
|
4298
|
+
C[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", m), E[0] & /*location*/
|
4293
4299
|
1 && f !== (f = /*location*/
|
4294
|
-
|
4300
|
+
C[0] === "headerMain" ? "max-width: auto" : void 0) && S(r, "style", f), E[0] & /*location*/
|
4295
4301
|
1 && p !== (p = "CarouselWrapper " + /*location*/
|
4296
|
-
(
|
4302
|
+
(C[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
|
4297
4303
|
},
|
4298
4304
|
i: $,
|
4299
4305
|
o: $,
|
4300
|
-
d(
|
4301
|
-
|
4306
|
+
d(C) {
|
4307
|
+
C && U(t), d && d.d(), e[40](null), e[41](null), e[43](null), g = !1, K(b);
|
4302
4308
|
}
|
4303
4309
|
};
|
4304
4310
|
}
|
4305
|
-
function
|
4306
|
-
let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname:
|
4307
|
-
|
4308
|
-
let
|
4309
|
-
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) => {
|
4310
4316
|
var x, I;
|
4311
|
-
h.preventDefault(),
|
4312
|
-
},
|
4313
|
-
h.preventDefault(),
|
4314
|
-
}, xr = (h) => {
|
4315
|
-
S = !1, v == null || v.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;
|
4318
|
+
}, wr = (h) => {
|
4319
|
+
h.preventDefault(), H = !1, v == null || v.classList.remove("dragging");
|
4316
4320
|
}, Cr = (h) => {
|
4317
|
-
|
4321
|
+
H = !1, v == null || v.classList.remove("dragging");
|
4322
|
+
}, Hr = (h) => {
|
4323
|
+
if (!H || !v)
|
4318
4324
|
return;
|
4319
4325
|
h.preventDefault();
|
4320
4326
|
const I = (h.pageX - v.offsetLeft - R) * 2.5;
|
4321
4327
|
r(5, v.scrollLeft = D - I, v);
|
4322
|
-
},
|
4328
|
+
}, Sr = () => {
|
4323
4329
|
fetch(f).then((x) => x.json()).then((x) => {
|
4324
4330
|
Object.keys(x).forEach((I) => {
|
4325
|
-
|
4331
|
+
Ot(I, x[I]);
|
4326
4332
|
});
|
4327
4333
|
}).catch((x) => {
|
4328
4334
|
console.log(x);
|
4329
4335
|
});
|
4330
4336
|
};
|
4331
|
-
Object.keys(
|
4332
|
-
|
4337
|
+
Object.keys(Ft).forEach((h) => {
|
4338
|
+
Ot(h, Ft[h]);
|
4333
4339
|
});
|
4334
|
-
let
|
4335
|
-
var
|
4336
|
-
if (!(h.subGroups &&
|
4337
|
-
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") {
|
4338
4344
|
window.postMessage(
|
4339
4345
|
{
|
4340
|
-
type:
|
4346
|
+
type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
4341
4347
|
buzz: "1",
|
4342
4348
|
itemId: h.id,
|
4343
4349
|
index: x,
|
4344
4350
|
item: h,
|
4345
4351
|
path: h.path,
|
4346
4352
|
externalLink: h.externalLink || !1,
|
4347
|
-
target: ((
|
4353
|
+
target: ((J = h.attrs) == null ? void 0 : J.target) || null
|
4348
4354
|
},
|
4349
4355
|
window.location.href
|
4350
|
-
), r(7,
|
4356
|
+
), r(7, pe = null), r(8, Ge = null);
|
4351
4357
|
return;
|
4352
4358
|
}
|
4353
|
-
r(7,
|
4359
|
+
r(7, pe = q), r(7, pe), r(8, Ge = pe), window.postMessage(
|
4354
4360
|
{
|
4355
|
-
type:
|
4361
|
+
type: s,
|
4356
4362
|
itemId: I.id,
|
4357
|
-
subIndex:
|
4363
|
+
subIndex: q,
|
4358
4364
|
subItem: I
|
4359
4365
|
},
|
4360
4366
|
window.location.href
|
4361
4367
|
);
|
4362
4368
|
}
|
4363
|
-
},
|
4364
|
-
N && (
|
4365
|
-
},
|
4366
|
-
N && (
|
4369
|
+
}, ct = () => {
|
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));
|
4367
4373
|
};
|
4368
|
-
const
|
4369
|
-
h.data.type == "SliderData" && h.data.identity == m && (r(9,
|
4370
|
-
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));
|
4371
4377
|
});
|
4372
|
-
},
|
4373
|
-
|
4374
|
-
},
|
4378
|
+
}, Tr = () => {
|
4379
|
+
lo(b);
|
4380
|
+
}, Ar = (h, x, I) => {
|
4375
4381
|
if (u == "secondaryMenu" && n && i && b && h.id) {
|
4376
|
-
let
|
4377
|
-
fetch(
|
4378
|
-
|
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(
|
4379
4385
|
{
|
4380
|
-
type:
|
4386
|
+
type: s,
|
4381
4387
|
itemId: h.id,
|
4382
4388
|
index: x,
|
4383
4389
|
item: h
|
4384
4390
|
},
|
4385
4391
|
window.location.href
|
4386
4392
|
);
|
4387
|
-
const
|
4388
|
-
|
4389
|
-
|
4390
|
-
}),
|
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);
|
4391
4397
|
}).then(() => {
|
4392
|
-
v.querySelectorAll(".DropDown") &&
|
4398
|
+
v.querySelectorAll(".DropDown") && Se();
|
4393
4399
|
});
|
4394
4400
|
}
|
4395
|
-
u == "headerMain" && window.postMessage({ type:
|
4396
|
-
},
|
4401
|
+
u == "headerMain" && window.postMessage({ type: s, item: h }, window.location.href);
|
4402
|
+
}, Se = () => {
|
4397
4403
|
const h = v.querySelectorAll(".DropDown");
|
4398
4404
|
document.activeElement.blur(), N.classList.add("isScrolling");
|
4399
4405
|
for (let x = 0; x < h.length; x++)
|
4400
4406
|
h[x].style.transform = "translateX(-" + N.scrollLeft + "px)";
|
4401
4407
|
N.classList.remove("isScrolling");
|
4402
|
-
},
|
4403
|
-
|
4408
|
+
}, Br = () => {
|
4409
|
+
ge.forEach((h, x) => {
|
4404
4410
|
var I;
|
4405
|
-
((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));
|
4406
4412
|
});
|
4407
|
-
},
|
4413
|
+
}, Ir = (h) => {
|
4408
4414
|
let x = "";
|
4409
4415
|
return h.id === "LOBBY" ? x = w : h.id === "MYGAMES" && (x = O), h.icon || x;
|
4410
4416
|
};
|
4411
|
-
|
4417
|
+
rn(() => (window.addEventListener("message", mt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
|
4412
4418
|
() => {
|
4413
|
-
N.addEventListener("scroll",
|
4419
|
+
N.addEventListener("scroll", Se);
|
4414
4420
|
},
|
4415
4421
|
500
|
4416
4422
|
), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
|
4417
|
-
window.removeEventListener("message",
|
4423
|
+
window.removeEventListener("message", mt), v.removeEventListener("scroll", Se);
|
4418
4424
|
}));
|
4419
|
-
function
|
4420
|
-
|
4425
|
+
function Mr(h) {
|
4426
|
+
nn.call(this, e, h);
|
4421
4427
|
}
|
4422
|
-
const
|
4423
|
-
|
4424
|
-
},
|
4425
|
-
|
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();
|
4426
4432
|
};
|
4427
|
-
function
|
4428
|
-
|
4433
|
+
function Or(h) {
|
4434
|
+
ve[h ? "unshift" : "push"](() => {
|
4429
4435
|
v = h, r(5, v);
|
4430
4436
|
});
|
4431
4437
|
}
|
4432
|
-
function
|
4433
|
-
|
4438
|
+
function Fr(h) {
|
4439
|
+
ve[h ? "unshift" : "push"](() => {
|
4434
4440
|
N = h, r(12, N);
|
4435
4441
|
});
|
4436
4442
|
}
|
4437
|
-
const
|
4438
|
-
function
|
4439
|
-
|
4440
|
-
|
4443
|
+
const Rr = () => ft();
|
4444
|
+
function Dr(h) {
|
4445
|
+
ve[h ? "unshift" : "push"](() => {
|
4446
|
+
V = h, r(4, V);
|
4441
4447
|
});
|
4442
4448
|
}
|
4443
4449
|
return e.$$set = (h) => {
|
4444
|
-
"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);
|
4445
4451
|
}, e.$$.update = () => {
|
4446
4452
|
e.$$.dirty[0] & /*activeindex*/
|
4447
4453
|
2, e.$$.dirty[0] & /*translationurl*/
|
4448
|
-
536870912 && f &&
|
4449
|
-
67108880 && l &&
|
4450
|
-
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*/
|
4451
4457
|
16 | e.$$.dirty[1] & /*mbsource*/
|
4452
|
-
16 && L &&
|
4453
|
-
2 && b &&
|
4458
|
+
16 && L && V && vn(V, `${L}.Style`), e.$$.dirty[1] & /*lang*/
|
4459
|
+
2 && b && Tr();
|
4454
4460
|
}, [
|
4455
4461
|
u,
|
4456
4462
|
d,
|
4457
|
-
|
4463
|
+
C,
|
4458
4464
|
E,
|
4459
|
-
|
4465
|
+
V,
|
4460
4466
|
v,
|
4461
|
-
|
4462
|
-
de,
|
4463
|
-
De,
|
4467
|
+
Q,
|
4464
4468
|
pe,
|
4465
|
-
|
4466
|
-
|
4469
|
+
Ge,
|
4470
|
+
ge,
|
4471
|
+
He,
|
4472
|
+
re,
|
4467
4473
|
N,
|
4468
|
-
|
4469
|
-
|
4470
|
-
xr,
|
4474
|
+
te,
|
4475
|
+
wr,
|
4471
4476
|
Cr,
|
4472
|
-
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4477
|
+
Hr,
|
4478
|
+
ke,
|
4479
|
+
ct,
|
4480
|
+
ft,
|
4481
|
+
Ir,
|
4476
4482
|
n,
|
4477
4483
|
i,
|
4478
|
-
s,
|
4479
4484
|
o,
|
4485
|
+
s,
|
4480
4486
|
a,
|
4481
4487
|
l,
|
4482
4488
|
c,
|
@@ -4488,24 +4494,24 @@ function co(e, t, r) {
|
|
4488
4494
|
w,
|
4489
4495
|
O,
|
4490
4496
|
L,
|
4491
|
-
Br,
|
4492
|
-
Ir,
|
4493
4497
|
Mr,
|
4494
4498
|
Lr,
|
4495
4499
|
Nr,
|
4496
4500
|
Pr,
|
4497
4501
|
Or,
|
4498
|
-
Fr
|
4502
|
+
Fr,
|
4503
|
+
Rr,
|
4504
|
+
Dr
|
4499
4505
|
];
|
4500
4506
|
}
|
4501
|
-
class
|
4507
|
+
class po extends pn {
|
4502
4508
|
constructor(t) {
|
4503
|
-
super(),
|
4509
|
+
super(), mn(
|
4504
4510
|
this,
|
4505
4511
|
t,
|
4506
|
-
|
4507
|
-
|
4508
|
-
|
4512
|
+
mo,
|
4513
|
+
fo,
|
4514
|
+
Zt,
|
4509
4515
|
{
|
4510
4516
|
endpoint: 21,
|
4511
4517
|
datasource: 22,
|
@@ -4527,7 +4533,7 @@ class fo extends mn {
|
|
4527
4533
|
mygamesiconimage: 34,
|
4528
4534
|
mbsource: 35
|
4529
4535
|
},
|
4530
|
-
|
4536
|
+
uo,
|
4531
4537
|
[-1, -1, -1]
|
4532
4538
|
);
|
4533
4539
|
}
|
@@ -4646,7 +4652,7 @@ class fo extends mn {
|
|
4646
4652
|
this.$$set({ mbsource: t }), B();
|
4647
4653
|
}
|
4648
4654
|
}
|
4649
|
-
|
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);
|
4650
4656
|
export {
|
4651
|
-
|
4657
|
+
po as default
|
4652
4658
|
};
|