@everymatrix/casino-slider 1.53.0 → 1.53.10

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