@everymatrix/casino-slider 1.53.11 → 1.54.0

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