@everymatrix/casino-promotions 1.53.12 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,93 @@
1
- function J() {
1
+ var _n = Object.defineProperty, gn = Object.defineProperties;
2
+ var vn = Object.getOwnPropertyDescriptors;
3
+ var Ht = Object.getOwnPropertySymbols;
4
+ var yn = Object.prototype.hasOwnProperty, xn = Object.prototype.propertyIsEnumerable;
5
+ var Qe = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bt = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ yn.call(t, r) && Qe(e, r, t[r]);
8
+ if (Ht)
9
+ for (var r of Ht(t))
10
+ xn.call(t, r) && Qe(e, r, t[r]);
11
+ return e;
12
+ }, Pt = (e, t) => gn(e, vn(t));
13
+ var Z = (e, t, r) => Qe(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var Je = (e, t, r) => new Promise((n, i) => {
15
+ var o = (l) => {
16
+ try {
17
+ a(r.next(l));
18
+ } catch (u) {
19
+ i(u);
20
+ }
21
+ }, s = (l) => {
22
+ try {
23
+ a(r.throw(l));
24
+ } catch (u) {
25
+ i(u);
26
+ }
27
+ }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
+ a((r = r.apply(e, t)).next());
29
+ });
30
+ function Y() {
2
31
  }
3
- function mr(e) {
32
+ function yr(e) {
4
33
  return e();
5
34
  }
6
- function wt() {
35
+ function At() {
7
36
  return /* @__PURE__ */ Object.create(null);
8
37
  }
9
- function Ee(e) {
10
- e.forEach(mr);
38
+ function we(e) {
39
+ e.forEach(yr);
11
40
  }
12
- function Ne(e) {
41
+ function Le(e) {
13
42
  return typeof e == "function";
14
43
  }
15
- function dr(e, t) {
44
+ function xr(e, t) {
16
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
46
  }
18
- let Le;
19
- function ae(e, t) {
20
- return e === t ? !0 : (Le || (Le = document.createElement("a")), Le.href = t, e === Le.href);
47
+ let Ie;
48
+ function le(e, t) {
49
+ return e === t ? !0 : (Ie || (Ie = document.createElement("a")), Ie.href = t, e === Ie.href);
21
50
  }
22
- function Tt(e) {
51
+ function Ot(e) {
23
52
  return e.split(",").map((t) => t.trim().split(" ").filter(Boolean));
24
53
  }
25
- function bt(e, t) {
26
- const r = Tt(e.srcset), n = Tt(t || "");
54
+ function vt(e, t) {
55
+ const r = Ot(e.srcset), n = Ot(t || "");
27
56
  return n.length === r.length && n.every(
28
57
  ([i, o], s) => o === r[s][1] && // We need to test both ways because Vite will create an a full URL with
29
58
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
30
59
  // relative URLs inside srcset are not automatically resolved to absolute URLs by
31
60
  // browsers (in contrast to img.src). This means both SSR and DOM code could
32
61
  // contain relative or absolute URLs.
33
- (ae(r[s][0], i) || ae(i, r[s][0]))
62
+ (le(r[s][0], i) || le(i, r[s][0]))
34
63
  );
35
64
  }
36
- function cn(e) {
65
+ function En(e) {
37
66
  return Object.keys(e).length === 0;
38
67
  }
39
- function br(e, ...t) {
68
+ function Er(e, ...t) {
40
69
  if (e == null) {
41
70
  for (const n of t)
42
71
  n(void 0);
43
- return J;
72
+ return Y;
44
73
  }
45
74
  const r = e.subscribe(...t);
46
75
  return r.unsubscribe ? () => r.unsubscribe() : r;
47
76
  }
48
- function fn(e, t, r) {
49
- e.$$.on_destroy.push(br(t, r));
77
+ function wn(e, t, r) {
78
+ e.$$.on_destroy.push(Er(t, r));
50
79
  }
51
80
  function d(e, t) {
52
81
  e.appendChild(t);
53
82
  }
54
- function pn(e, t, r) {
55
- const n = mn(e);
83
+ function Tn(e, t, r) {
84
+ const n = Sn(e);
56
85
  if (!n.getElementById(t)) {
57
86
  const i = g("style");
58
- i.id = t, i.textContent = r, dn(n, i);
87
+ i.id = t, i.textContent = r, Hn(n, i);
59
88
  }
60
89
  }
61
- function mn(e) {
90
+ function Sn(e) {
62
91
  if (!e) return document;
63
92
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
64
93
  return t && /** @type {ShadowRoot} */
@@ -67,7 +96,7 @@ function mn(e) {
67
96
  t
68
97
  ) : e.ownerDocument;
69
98
  }
70
- function dn(e, t) {
99
+ function Hn(e, t) {
71
100
  return d(
72
101
  /** @type {Document} */
73
102
  e.head || e,
@@ -80,57 +109,57 @@ function D(e, t, r) {
80
109
  function M(e) {
81
110
  e.parentNode && e.parentNode.removeChild(e);
82
111
  }
83
- function _e(e, t) {
112
+ function ge(e, t) {
84
113
  for (let r = 0; r < e.length; r += 1)
85
114
  e[r] && e[r].d(t);
86
115
  }
87
116
  function g(e) {
88
117
  return document.createElement(e);
89
118
  }
90
- function ee(e) {
119
+ function te(e) {
91
120
  return document.createTextNode(e);
92
121
  }
93
122
  function F() {
94
- return ee(" ");
123
+ return te(" ");
95
124
  }
96
- function _t() {
97
- return ee("");
125
+ function yt() {
126
+ return te("");
98
127
  }
99
- function re(e, t, r, n) {
128
+ function ne(e, t, r, n) {
100
129
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
101
130
  }
102
131
  function m(e, t, r) {
103
132
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
104
133
  }
105
- function bn(e) {
134
+ function Bn(e) {
106
135
  return Array.from(e.childNodes);
107
136
  }
108
- function ue(e, t) {
137
+ function he(e, t) {
109
138
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
110
139
  t);
111
140
  }
112
- let Ie;
113
- function _n() {
114
- if (Ie === void 0) {
115
- Ie = !1;
141
+ let Me;
142
+ function Pn() {
143
+ if (Me === void 0) {
144
+ Me = !1;
116
145
  try {
117
- typeof window < "u" && window.parent && window.parent.document;
118
- } catch {
119
- Ie = !0;
146
+ typeof window != "undefined" && window.parent && window.parent.document;
147
+ } catch (e) {
148
+ Me = !0;
120
149
  }
121
150
  }
122
- return Ie;
151
+ return Me;
123
152
  }
124
- function gn(e, t) {
153
+ function An(e, t) {
125
154
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
126
155
  const n = g("iframe");
127
156
  n.setAttribute(
128
157
  "style",
129
158
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
130
159
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
131
- const i = _n();
160
+ const i = Pn();
132
161
  let o;
133
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = re(
162
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = ne(
134
163
  window,
135
164
  "message",
136
165
  /** @param {MessageEvent} event */
@@ -138,15 +167,15 @@ function gn(e, t) {
138
167
  s.source === n.contentWindow && t();
139
168
  }
140
169
  )) : (n.src = "about:blank", n.onload = () => {
141
- o = re(n.contentWindow, "resize", t), t();
170
+ o = ne(n.contentWindow, "resize", t), t();
142
171
  }), d(e, n), () => {
143
172
  (i || o && n.contentWindow) && o(), M(n);
144
173
  };
145
174
  }
146
- function St(e, t, r) {
175
+ function Ct(e, t, r) {
147
176
  e.classList.toggle(t, !!r);
148
177
  }
149
- function vn(e) {
178
+ function On(e) {
150
179
  const t = {};
151
180
  return e.childNodes.forEach(
152
181
  /** @param {Element} node */
@@ -155,99 +184,99 @@ function vn(e) {
155
184
  }
156
185
  ), t;
157
186
  }
158
- let Ae;
159
- function Pe(e) {
160
- Ae = e;
187
+ let Oe;
188
+ function Ae(e) {
189
+ Oe = e;
161
190
  }
162
- function yn() {
163
- if (!Ae) throw new Error("Function called outside component initialization");
164
- return Ae;
191
+ function Cn() {
192
+ if (!Oe) throw new Error("Function called outside component initialization");
193
+ return Oe;
165
194
  }
166
- function xn(e) {
167
- yn().$$.on_mount.push(e);
195
+ function Nn(e) {
196
+ Cn().$$.on_mount.push(e);
168
197
  }
169
- const pe = [], me = [];
170
- let de = [];
171
- const Ht = [], _r = /* @__PURE__ */ Promise.resolve();
172
- let rt = !1;
173
- function gr() {
174
- rt || (rt = !0, _r.then(Q));
198
+ const me = [], de = [];
199
+ let be = [];
200
+ const Nt = [], wr = /* @__PURE__ */ Promise.resolve();
201
+ let ot = !1;
202
+ function Tr() {
203
+ ot || (ot = !0, wr.then(J));
175
204
  }
176
- function En() {
177
- return gr(), _r;
205
+ function Ln() {
206
+ return Tr(), wr;
178
207
  }
179
- function Ge(e) {
180
- de.push(e);
208
+ function $e(e) {
209
+ be.push(e);
181
210
  }
182
- const qe = /* @__PURE__ */ new Set();
183
- let ce = 0;
184
- function Q() {
185
- if (ce !== 0)
211
+ const Ye = /* @__PURE__ */ new Set();
212
+ let fe = 0;
213
+ function J() {
214
+ if (fe !== 0)
186
215
  return;
187
- const e = Ae;
216
+ const e = Oe;
188
217
  do {
189
218
  try {
190
- for (; ce < pe.length; ) {
191
- const t = pe[ce];
192
- ce++, Pe(t), wn(t.$$);
219
+ for (; fe < me.length; ) {
220
+ const t = me[fe];
221
+ fe++, Ae(t), In(t.$$);
193
222
  }
194
223
  } catch (t) {
195
- throw pe.length = 0, ce = 0, t;
224
+ throw me.length = 0, fe = 0, t;
196
225
  }
197
- for (Pe(null), pe.length = 0, ce = 0; me.length; ) me.pop()();
198
- for (let t = 0; t < de.length; t += 1) {
199
- const r = de[t];
200
- qe.has(r) || (qe.add(r), r());
226
+ for (Ae(null), me.length = 0, fe = 0; de.length; ) de.pop()();
227
+ for (let t = 0; t < be.length; t += 1) {
228
+ const r = be[t];
229
+ Ye.has(r) || (Ye.add(r), r());
201
230
  }
202
- de.length = 0;
203
- } while (pe.length);
204
- for (; Ht.length; )
205
- Ht.pop()();
206
- rt = !1, qe.clear(), Pe(e);
231
+ be.length = 0;
232
+ } while (me.length);
233
+ for (; Nt.length; )
234
+ Nt.pop()();
235
+ ot = !1, Ye.clear(), Ae(e);
207
236
  }
208
- function wn(e) {
237
+ function In(e) {
209
238
  if (e.fragment !== null) {
210
- e.update(), Ee(e.before_update);
239
+ e.update(), we(e.before_update);
211
240
  const t = e.dirty;
212
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
241
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
213
242
  }
214
243
  }
215
- function Tn(e) {
244
+ function Mn(e) {
216
245
  const t = [], r = [];
217
- de.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), de = t;
246
+ be.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), be = t;
218
247
  }
219
- const Sn = /* @__PURE__ */ new Set();
220
- function Hn(e, t) {
221
- e && e.i && (Sn.delete(e), e.i(t));
248
+ const Rn = /* @__PURE__ */ new Set();
249
+ function Dn(e, t) {
250
+ e && e.i && (Rn.delete(e), e.i(t));
222
251
  }
223
- function Z(e) {
224
- return e?.length !== void 0 ? e : Array.from(e);
252
+ function q(e) {
253
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
225
254
  }
226
- function Bn(e, t, r) {
255
+ function Fn(e, t, r) {
227
256
  const { fragment: n, after_update: i } = e.$$;
228
- n && n.m(t, r), Ge(() => {
229
- const o = e.$$.on_mount.map(mr).filter(Ne);
230
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ee(o), e.$$.on_mount = [];
231
- }), i.forEach(Ge);
257
+ n && n.m(t, r), $e(() => {
258
+ const o = e.$$.on_mount.map(yr).filter(Le);
259
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : we(o), e.$$.on_mount = [];
260
+ }), i.forEach($e);
232
261
  }
233
- function Pn(e, t) {
262
+ function Un(e, t) {
234
263
  const r = e.$$;
235
- r.fragment !== null && (Tn(r.after_update), Ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
264
+ r.fragment !== null && (Mn(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
236
265
  }
237
- function An(e, t) {
238
- e.$$.dirty[0] === -1 && (pe.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
266
+ function kn(e, t) {
267
+ e.$$.dirty[0] === -1 && (me.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
239
268
  }
240
- function On(e, t, r, n, i, o, s = null, a = [-1]) {
241
- const l = Ae;
242
- Pe(e);
269
+ function Gn(e, t, r, n, i, o, s = null, a = [-1]) {
270
+ const l = Oe;
271
+ Ae(e);
243
272
  const u = e.$$ = {
244
273
  fragment: null,
245
274
  ctx: [],
246
275
  // state
247
276
  props: o,
248
- update: J,
277
+ update: Y,
249
278
  not_equal: i,
250
- bound: wt(),
279
+ bound: At(),
251
280
  // lifecycle
252
281
  on_mount: [],
253
282
  on_destroy: [],
@@ -256,7 +285,7 @@ function On(e, t, r, n, i, o, s = null, a = [-1]) {
256
285
  after_update: [],
257
286
  context: new Map(t.context || (l ? l.$$.context : [])),
258
287
  // everything else
259
- callbacks: wt(),
288
+ callbacks: At(),
260
289
  dirty: a,
261
290
  skip_bound: !1,
262
291
  root: t.target || l.$$.root
@@ -265,137 +294,141 @@ function On(e, t, r, n, i, o, s = null, a = [-1]) {
265
294
  let h = !1;
266
295
  if (u.ctx = r(e, t.props || {}, (c, f, ...b) => {
267
296
  const v = b.length ? b[0] : f;
268
- return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && An(e, c)), f;
269
- }), u.update(), h = !0, Ee(u.before_update), u.fragment = n(u.ctx), t.target) {
297
+ return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && kn(e, c)), f;
298
+ }), u.update(), h = !0, we(u.before_update), u.fragment = n(u.ctx), t.target) {
270
299
  if (t.hydrate) {
271
- const c = bn(t.target);
300
+ const c = Bn(t.target);
272
301
  u.fragment && u.fragment.l(c), c.forEach(M);
273
302
  } else
274
303
  u.fragment && u.fragment.c();
275
- t.intro && Hn(e.$$.fragment), Bn(e, t.target, t.anchor), Q();
304
+ t.intro && Dn(e.$$.fragment), Fn(e, t.target, t.anchor), J();
276
305
  }
277
- Pe(l);
278
- }
279
- let vr;
280
- typeof HTMLElement == "function" && (vr = class extends HTMLElement {
281
- /** The Svelte component constructor */
282
- $$ctor;
283
- /** Slots */
284
- $$s;
285
- /** The Svelte component instance */
286
- $$c;
287
- /** Whether or not the custom element is connected */
288
- $$cn = !1;
289
- /** Component props data */
290
- $$d = {};
291
- /** `true` if currently in the process of reflecting component props back to attributes */
292
- $$r = !1;
293
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
294
- $$p_d = {};
295
- /** @type {Record<string, Function[]>} Event listeners */
296
- $$l = {};
297
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
298
- $$l_u = /* @__PURE__ */ new Map();
299
- constructor(e, t, r) {
300
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
306
+ Ae(l);
307
+ }
308
+ let Sr;
309
+ typeof HTMLElement == "function" && (Sr = class extends HTMLElement {
310
+ constructor(t, r, n) {
311
+ super();
312
+ /** The Svelte component constructor */
313
+ Z(this, "$$ctor");
314
+ /** Slots */
315
+ Z(this, "$$s");
316
+ /** The Svelte component instance */
317
+ Z(this, "$$c");
318
+ /** Whether or not the custom element is connected */
319
+ Z(this, "$$cn", !1);
320
+ /** Component props data */
321
+ Z(this, "$$d", {});
322
+ /** `true` if currently in the process of reflecting component props back to attributes */
323
+ Z(this, "$$r", !1);
324
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
325
+ Z(this, "$$p_d", {});
326
+ /** @type {Record<string, Function[]>} Event listeners */
327
+ Z(this, "$$l", {});
328
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
329
+ Z(this, "$$l_u", /* @__PURE__ */ new Map());
330
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
301
331
  }
302
- addEventListener(e, t, r) {
303
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
304
- const n = this.$$c.$on(e, t);
305
- this.$$l_u.set(t, n);
332
+ addEventListener(t, r, n) {
333
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
334
+ const i = this.$$c.$on(t, r);
335
+ this.$$l_u.set(r, i);
306
336
  }
307
- super.addEventListener(e, t, r);
337
+ super.addEventListener(t, r, n);
308
338
  }
309
- removeEventListener(e, t, r) {
310
- if (super.removeEventListener(e, t, r), this.$$c) {
311
- const n = this.$$l_u.get(t);
312
- n && (n(), this.$$l_u.delete(t));
339
+ removeEventListener(t, r, n) {
340
+ if (super.removeEventListener(t, r, n), this.$$c) {
341
+ const i = this.$$l_u.get(r);
342
+ i && (i(), this.$$l_u.delete(r));
313
343
  }
314
344
  }
315
- async connectedCallback() {
316
- if (this.$$cn = !0, !this.$$c) {
317
- let e = function(i) {
318
- return () => {
319
- let o;
320
- return {
321
- c: function() {
322
- o = g("slot"), i !== "default" && m(o, "name", i);
323
- },
324
- /**
325
- * @param {HTMLElement} target
326
- * @param {HTMLElement} [anchor]
327
- */
328
- m: function(l, u) {
329
- D(l, o, u);
330
- },
331
- d: function(l) {
332
- l && M(o);
333
- }
345
+ connectedCallback() {
346
+ return Je(this, null, function* () {
347
+ if (this.$$cn = !0, !this.$$c) {
348
+ let t = function(o) {
349
+ return () => {
350
+ let s;
351
+ return {
352
+ c: function() {
353
+ s = g("slot"), o !== "default" && m(s, "name", o);
354
+ },
355
+ /**
356
+ * @param {HTMLElement} target
357
+ * @param {HTMLElement} [anchor]
358
+ */
359
+ m: function(u, h) {
360
+ D(u, s, h);
361
+ },
362
+ d: function(u) {
363
+ u && M(s);
364
+ }
365
+ };
334
366
  };
335
367
  };
336
- };
337
- if (await Promise.resolve(), !this.$$cn || this.$$c)
338
- return;
339
- const t = {}, r = vn(this);
340
- for (const i of this.$$s)
341
- i in r && (t[i] = [e(i)]);
342
- for (const i of this.attributes) {
343
- const o = this.$$g_p(i.name);
344
- o in this.$$d || (this.$$d[o] = De(o, i.value, this.$$p_d, "toProp"));
345
- }
346
- for (const i in this.$$p_d)
347
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
348
- this.$$c = new this.$$ctor({
349
- target: this.shadowRoot || this,
350
- props: {
351
- ...this.$$d,
352
- $$slots: t,
353
- $$scope: {
354
- ctx: []
355
- }
368
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
369
+ return;
370
+ const r = {}, n = On(this);
371
+ for (const o of this.$$s)
372
+ o in n && (r[o] = [t(o)]);
373
+ for (const o of this.attributes) {
374
+ const s = this.$$g_p(o.name);
375
+ s in this.$$d || (this.$$d[s] = Fe(s, o.value, this.$$p_d, "toProp"));
356
376
  }
357
- });
358
- const n = () => {
359
- this.$$r = !0;
360
- for (const i in this.$$p_d)
361
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
362
- const o = De(
363
- i,
364
- this.$$d[i],
365
- this.$$p_d,
366
- "toAttribute"
367
- );
368
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
377
+ for (const o in this.$$p_d)
378
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
379
+ this.$$c = new this.$$ctor({
380
+ target: this.shadowRoot || this,
381
+ props: Pt(Bt({}, this.$$d), {
382
+ $$slots: r,
383
+ $$scope: {
384
+ ctx: []
385
+ }
386
+ })
387
+ });
388
+ const i = () => {
389
+ this.$$r = !0;
390
+ for (const o in this.$$p_d)
391
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
392
+ const s = Fe(
393
+ o,
394
+ this.$$d[o],
395
+ this.$$p_d,
396
+ "toAttribute"
397
+ );
398
+ s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
399
+ }
400
+ this.$$r = !1;
401
+ };
402
+ this.$$c.$$.after_update.push(i), i();
403
+ for (const o in this.$$l)
404
+ for (const s of this.$$l[o]) {
405
+ const a = this.$$c.$on(o, s);
406
+ this.$$l_u.set(s, a);
369
407
  }
370
- this.$$r = !1;
371
- };
372
- this.$$c.$$.after_update.push(n), n();
373
- for (const i in this.$$l)
374
- for (const o of this.$$l[i]) {
375
- const s = this.$$c.$on(i, o);
376
- this.$$l_u.set(o, s);
377
- }
378
- this.$$l = {};
379
- }
408
+ this.$$l = {};
409
+ }
410
+ });
380
411
  }
381
412
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
382
413
  // and setting attributes through setAttribute etc, this is helpful
383
- attributeChangedCallback(e, t, r) {
384
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = De(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
414
+ attributeChangedCallback(t, r, n) {
415
+ var i;
416
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
385
417
  }
386
418
  disconnectedCallback() {
387
419
  this.$$cn = !1, Promise.resolve().then(() => {
388
420
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
389
421
  });
390
422
  }
391
- $$g_p(e) {
423
+ $$g_p(t) {
392
424
  return Object.keys(this.$$p_d).find(
393
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
394
- ) || e;
425
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
426
+ ) || t;
395
427
  }
396
428
  });
397
- function De(e, t, r, n) {
398
- const i = r[e]?.type;
429
+ function Fe(e, t, r, n) {
430
+ var o;
431
+ const i = (o = r[e]) == null ? void 0 : o.type;
399
432
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
400
433
  return t;
401
434
  if (n === "toAttribute")
@@ -406,7 +439,7 @@ function De(e, t, r, n) {
406
439
  case "Boolean":
407
440
  return t ? "" : null;
408
441
  case "Number":
409
- return t ?? null;
442
+ return t == null ? null : t;
410
443
  default:
411
444
  return t;
412
445
  }
@@ -423,8 +456,8 @@ function De(e, t, r, n) {
423
456
  return t;
424
457
  }
425
458
  }
426
- function Cn(e, t, r, n, i, o) {
427
- let s = class extends vr {
459
+ function $n(e, t, r, n, i, o) {
460
+ let s = class extends Sr {
428
461
  constructor() {
429
462
  super(e, r, i), this.$$p_d = t;
430
463
  }
@@ -440,38 +473,42 @@ function Cn(e, t, r, n, i, o) {
440
473
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
441
474
  },
442
475
  set(l) {
443
- l = De(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
476
+ var u;
477
+ l = Fe(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
444
478
  }
445
479
  });
446
480
  }), n.forEach((a) => {
447
481
  Object.defineProperty(s.prototype, a, {
448
482
  get() {
449
- return this.$$c?.[a];
483
+ var l;
484
+ return (l = this.$$c) == null ? void 0 : l[a];
450
485
  }
451
486
  });
452
487
  }), e.element = /** @type {any} */
453
488
  s, s;
454
489
  }
455
- class Nn {
456
- /**
457
- * ### PRIVATE API
458
- *
459
- * Do not use, may change at any time
460
- *
461
- * @type {any}
462
- */
463
- $$ = void 0;
464
- /**
465
- * ### PRIVATE API
466
- *
467
- * Do not use, may change at any time
468
- *
469
- * @type {any}
470
- */
471
- $$set = void 0;
490
+ class jn {
491
+ constructor() {
492
+ /**
493
+ * ### PRIVATE API
494
+ *
495
+ * Do not use, may change at any time
496
+ *
497
+ * @type {any}
498
+ */
499
+ Z(this, "$$");
500
+ /**
501
+ * ### PRIVATE API
502
+ *
503
+ * Do not use, may change at any time
504
+ *
505
+ * @type {any}
506
+ */
507
+ Z(this, "$$set");
508
+ }
472
509
  /** @returns {void} */
473
510
  $destroy() {
474
- Pn(this, 1), this.$destroy = J;
511
+ Un(this, 1), this.$destroy = Y;
475
512
  }
476
513
  /**
477
514
  * @template {Extract<keyof Events, string>} K
@@ -480,8 +517,8 @@ class Nn {
480
517
  * @returns {() => void}
481
518
  */
482
519
  $on(t, r) {
483
- if (!Ne(r))
484
- return J;
520
+ if (!Le(r))
521
+ return Y;
485
522
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
486
523
  return n.push(r), () => {
487
524
  const i = n.indexOf(r);
@@ -493,60 +530,60 @@ class Nn {
493
530
  * @returns {void}
494
531
  */
495
532
  $set(t) {
496
- this.$$set && !cn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
533
+ this.$$set && !En(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
497
534
  }
498
535
  }
499
- const Ln = "4";
500
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ln);
501
- const fe = [];
502
- function In(e, t) {
536
+ const Vn = "4";
537
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vn);
538
+ const pe = [];
539
+ function zn(e, t) {
503
540
  return {
504
- subscribe: Ve(e, t).subscribe
541
+ subscribe: ze(e, t).subscribe
505
542
  };
506
543
  }
507
- function Ve(e, t = J) {
544
+ function ze(e, t = Y) {
508
545
  let r;
509
546
  const n = /* @__PURE__ */ new Set();
510
547
  function i(a) {
511
- if (dr(e, a) && (e = a, r)) {
512
- const l = !fe.length;
548
+ if (xr(e, a) && (e = a, r)) {
549
+ const l = !pe.length;
513
550
  for (const u of n)
514
- u[1](), fe.push(u, e);
551
+ u[1](), pe.push(u, e);
515
552
  if (l) {
516
- for (let u = 0; u < fe.length; u += 2)
517
- fe[u][0](fe[u + 1]);
518
- fe.length = 0;
553
+ for (let u = 0; u < pe.length; u += 2)
554
+ pe[u][0](pe[u + 1]);
555
+ pe.length = 0;
519
556
  }
520
557
  }
521
558
  }
522
559
  function o(a) {
523
560
  i(a(e));
524
561
  }
525
- function s(a, l = J) {
562
+ function s(a, l = Y) {
526
563
  const u = [a, l];
527
- return n.add(u), n.size === 1 && (r = t(i, o) || J), a(e), () => {
564
+ return n.add(u), n.size === 1 && (r = t(i, o) || Y), a(e), () => {
528
565
  n.delete(u), n.size === 0 && r && (r(), r = null);
529
566
  };
530
567
  }
531
568
  return { set: i, update: o, subscribe: s };
532
569
  }
533
- function we(e, t, r) {
570
+ function Te(e, t, r) {
534
571
  const n = !Array.isArray(e), i = n ? [e] : e;
535
572
  if (!i.every(Boolean))
536
573
  throw new Error("derived() expects stores as input, got a falsy value");
537
574
  const o = t.length < 2;
538
- return In(r, (s, a) => {
575
+ return zn(r, (s, a) => {
539
576
  let l = !1;
540
577
  const u = [];
541
- let h = 0, c = J;
578
+ let h = 0, c = Y;
542
579
  const f = () => {
543
580
  if (h)
544
581
  return;
545
582
  c();
546
583
  const v = t(n ? u[0] : u, s, a);
547
- o ? s(v) : c = Ne(v) ? v : J;
584
+ o ? s(v) : c = Le(v) ? v : Y;
548
585
  }, b = i.map(
549
- (v, _) => br(
586
+ (v, _) => Er(
550
587
  v,
551
588
  (O) => {
552
589
  u[_] = O, h &= ~(1 << _), l && f();
@@ -557,95 +594,95 @@ function we(e, t, r) {
557
594
  )
558
595
  );
559
596
  return l = !0, f(), function() {
560
- Ee(b), c(), l = !1;
597
+ we(b), c(), l = !1;
561
598
  };
562
599
  });
563
600
  }
564
- function Mn(e) {
601
+ function Xn(e) {
565
602
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
566
603
  }
567
- var Rn = function(t) {
568
- return Dn(t) && !Fn(t);
604
+ var Wn = function(t) {
605
+ return Zn(t) && !qn(t);
569
606
  };
570
- function Dn(e) {
607
+ function Zn(e) {
571
608
  return !!e && typeof e == "object";
572
609
  }
573
- function Fn(e) {
610
+ function qn(e) {
574
611
  var t = Object.prototype.toString.call(e);
575
- return t === "[object RegExp]" || t === "[object Date]" || Gn(e);
612
+ return t === "[object RegExp]" || t === "[object Date]" || Yn(e);
576
613
  }
577
- var kn = typeof Symbol == "function" && Symbol.for, Un = kn ? Symbol.for("react.element") : 60103;
578
- function Gn(e) {
579
- return e.$$typeof === Un;
614
+ var Qn = typeof Symbol == "function" && Symbol.for, Jn = Qn ? Symbol.for("react.element") : 60103;
615
+ function Yn(e) {
616
+ return e.$$typeof === Jn;
580
617
  }
581
- function $n(e) {
618
+ function Kn(e) {
582
619
  return Array.isArray(e) ? [] : {};
583
620
  }
584
- function Oe(e, t) {
585
- return t.clone !== !1 && t.isMergeableObject(e) ? ge($n(e), e, t) : e;
621
+ function Ce(e, t) {
622
+ return t.clone !== !1 && t.isMergeableObject(e) ? ve(Kn(e), e, t) : e;
586
623
  }
587
- function jn(e, t, r) {
624
+ function ei(e, t, r) {
588
625
  return e.concat(t).map(function(n) {
589
- return Oe(n, r);
626
+ return Ce(n, r);
590
627
  });
591
628
  }
592
- function Vn(e, t) {
629
+ function ti(e, t) {
593
630
  if (!t.customMerge)
594
- return ge;
631
+ return ve;
595
632
  var r = t.customMerge(e);
596
- return typeof r == "function" ? r : ge;
633
+ return typeof r == "function" ? r : ve;
597
634
  }
598
- function zn(e) {
635
+ function ri(e) {
599
636
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
600
637
  return Object.propertyIsEnumerable.call(e, t);
601
638
  }) : [];
602
639
  }
603
- function Bt(e) {
604
- return Object.keys(e).concat(zn(e));
640
+ function Lt(e) {
641
+ return Object.keys(e).concat(ri(e));
605
642
  }
606
- function yr(e, t) {
643
+ function Hr(e, t) {
607
644
  try {
608
645
  return t in e;
609
- } catch {
646
+ } catch (r) {
610
647
  return !1;
611
648
  }
612
649
  }
613
- function Xn(e, t) {
614
- return yr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
650
+ function ni(e, t) {
651
+ return Hr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
615
652
  }
616
- function Wn(e, t, r) {
653
+ function ii(e, t, r) {
617
654
  var n = {};
618
- return r.isMergeableObject(e) && Bt(e).forEach(function(i) {
619
- n[i] = Oe(e[i], r);
620
- }), Bt(t).forEach(function(i) {
621
- Xn(e, i) || (yr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vn(i, r)(e[i], t[i], r) : n[i] = Oe(t[i], r));
655
+ return r.isMergeableObject(e) && Lt(e).forEach(function(i) {
656
+ n[i] = Ce(e[i], r);
657
+ }), Lt(t).forEach(function(i) {
658
+ ni(e, i) || (Hr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ti(i, r)(e[i], t[i], r) : n[i] = Ce(t[i], r));
622
659
  }), n;
623
660
  }
624
- function ge(e, t, r) {
625
- r = r || {}, r.arrayMerge = r.arrayMerge || jn, r.isMergeableObject = r.isMergeableObject || Rn, r.cloneUnlessOtherwiseSpecified = Oe;
661
+ function ve(e, t, r) {
662
+ r = r || {}, r.arrayMerge = r.arrayMerge || ei, r.isMergeableObject = r.isMergeableObject || Wn, r.cloneUnlessOtherwiseSpecified = Ce;
626
663
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
627
- return o ? n ? r.arrayMerge(e, t, r) : Wn(e, t, r) : Oe(t, r);
664
+ return o ? n ? r.arrayMerge(e, t, r) : ii(e, t, r) : Ce(t, r);
628
665
  }
629
- ge.all = function(t, r) {
666
+ ve.all = function(t, r) {
630
667
  if (!Array.isArray(t))
631
668
  throw new Error("first argument should be an array");
632
669
  return t.reduce(function(n, i) {
633
- return ge(n, i, r);
670
+ return ve(n, i, r);
634
671
  }, {});
635
672
  };
636
- var Zn = ge, qn = Zn;
637
- const Qn = /* @__PURE__ */ Mn(qn);
638
- var nt = function(e, t) {
639
- return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
673
+ var oi = ve, si = oi;
674
+ const ai = /* @__PURE__ */ Xn(si);
675
+ var st = function(e, t) {
676
+ return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
640
677
  r.__proto__ = n;
641
678
  } || function(r, n) {
642
679
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
643
- }, nt(e, t);
680
+ }, st(e, t);
644
681
  };
645
- function ne(e, t) {
682
+ function ie(e, t) {
646
683
  if (typeof t != "function" && t !== null)
647
684
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
648
- nt(e, t);
685
+ st(e, t);
649
686
  function r() {
650
687
  this.constructor = e;
651
688
  }
@@ -660,7 +697,7 @@ var A = function() {
660
697
  return t;
661
698
  }, A.apply(this, arguments);
662
699
  };
663
- function Jn(e, t) {
700
+ function li(e, t) {
664
701
  var r = {};
665
702
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
666
703
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -668,7 +705,7 @@ function Jn(e, t) {
668
705
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
669
706
  return r;
670
707
  }
671
- function it(e) {
708
+ function at(e) {
672
709
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
673
710
  if (r) return r.call(e);
674
711
  if (e && typeof e.length == "number") return {
@@ -678,7 +715,7 @@ function it(e) {
678
715
  };
679
716
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
680
717
  }
681
- function ot(e, t) {
718
+ function lt(e, t) {
682
719
  var r = typeof Symbol == "function" && e[Symbol.iterator];
683
720
  if (!r) return e;
684
721
  var n = r.call(e), i, o = [], s;
@@ -695,45 +732,45 @@ function ot(e, t) {
695
732
  }
696
733
  return o;
697
734
  }
698
- function be(e, t, r) {
735
+ function _e(e, t, r) {
699
736
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
700
737
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
701
738
  return e.concat(o || Array.prototype.slice.call(t));
702
739
  }
703
- function Qe(e, t) {
704
- var r = t && t.cache ? t.cache : ii, n = t && t.serializer ? t.serializer : ri, i = t && t.strategy ? t.strategy : Kn;
740
+ function Ke(e, t) {
741
+ var r = t && t.cache ? t.cache : di, n = t && t.serializer ? t.serializer : pi, i = t && t.strategy ? t.strategy : hi;
705
742
  return i(e, {
706
743
  cache: r,
707
744
  serializer: n
708
745
  });
709
746
  }
710
- function Yn(e) {
747
+ function ui(e) {
711
748
  return e == null || typeof e == "number" || typeof e == "boolean";
712
749
  }
713
- function xr(e, t, r, n) {
714
- var i = Yn(n) ? n : r(n), o = t.get(i);
715
- return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
750
+ function Br(e, t, r, n) {
751
+ var i = ui(n) ? n : r(n), o = t.get(i);
752
+ return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
716
753
  }
717
- function Er(e, t, r) {
754
+ function Pr(e, t, r) {
718
755
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
719
- return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
756
+ return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
720
757
  }
721
- function gt(e, t, r, n, i) {
758
+ function xt(e, t, r, n, i) {
722
759
  return r.bind(t, e, n, i);
723
760
  }
724
- function Kn(e, t) {
725
- var r = e.length === 1 ? xr : Er;
726
- return gt(e, this, r, t.cache.create(), t.serializer);
761
+ function hi(e, t) {
762
+ var r = e.length === 1 ? Br : Pr;
763
+ return xt(e, this, r, t.cache.create(), t.serializer);
727
764
  }
728
- function ei(e, t) {
729
- return gt(e, this, Er, t.cache.create(), t.serializer);
765
+ function ci(e, t) {
766
+ return xt(e, this, Pr, t.cache.create(), t.serializer);
730
767
  }
731
- function ti(e, t) {
732
- return gt(e, this, xr, t.cache.create(), t.serializer);
768
+ function fi(e, t) {
769
+ return xt(e, this, Br, t.cache.create(), t.serializer);
733
770
  }
734
- var ri = function() {
771
+ var pi = function() {
735
772
  return JSON.stringify(arguments);
736
- }, ni = (
773
+ }, mi = (
737
774
  /** @class */
738
775
  function() {
739
776
  function e() {
@@ -745,13 +782,13 @@ var ri = function() {
745
782
  this.cache[t] = r;
746
783
  }, e;
747
784
  }()
748
- ), ii = {
785
+ ), di = {
749
786
  create: function() {
750
- return new ni();
787
+ return new mi();
751
788
  }
752
- }, Je = {
753
- variadic: ei,
754
- monadic: ti
789
+ }, et = {
790
+ variadic: ci,
791
+ monadic: fi
755
792
  }, H;
756
793
  (function(e) {
757
794
  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";
@@ -760,47 +797,47 @@ var R;
760
797
  (function(e) {
761
798
  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";
762
799
  })(R || (R = {}));
763
- var ve;
800
+ var ye;
764
801
  (function(e) {
765
802
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
766
- })(ve || (ve = {}));
767
- function Pt(e) {
803
+ })(ye || (ye = {}));
804
+ function It(e) {
768
805
  return e.type === R.literal;
769
806
  }
770
- function oi(e) {
807
+ function bi(e) {
771
808
  return e.type === R.argument;
772
809
  }
773
- function wr(e) {
810
+ function Ar(e) {
774
811
  return e.type === R.number;
775
812
  }
776
- function Tr(e) {
813
+ function Or(e) {
777
814
  return e.type === R.date;
778
815
  }
779
- function Sr(e) {
816
+ function Cr(e) {
780
817
  return e.type === R.time;
781
818
  }
782
- function Hr(e) {
819
+ function Nr(e) {
783
820
  return e.type === R.select;
784
821
  }
785
- function Br(e) {
822
+ function Lr(e) {
786
823
  return e.type === R.plural;
787
824
  }
788
- function si(e) {
825
+ function _i(e) {
789
826
  return e.type === R.pound;
790
827
  }
791
- function Pr(e) {
828
+ function Ir(e) {
792
829
  return e.type === R.tag;
793
830
  }
794
- function Ar(e) {
795
- return !!(e && typeof e == "object" && e.type === ve.number);
831
+ function Mr(e) {
832
+ return !!(e && typeof e == "object" && e.type === ye.number);
796
833
  }
797
- function st(e) {
798
- return !!(e && typeof e == "object" && e.type === ve.dateTime);
834
+ function ut(e) {
835
+ return !!(e && typeof e == "object" && e.type === ye.dateTime);
799
836
  }
800
- var Or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[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;
801
- function li(e) {
837
+ var Rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gi = /(?:[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;
838
+ function vi(e) {
802
839
  var t = {};
803
- return e.replace(ai, function(r) {
840
+ return e.replace(gi, function(r) {
804
841
  var n = r.length;
805
842
  switch (r[0]) {
806
843
  case "G":
@@ -889,11 +926,11 @@ function li(e) {
889
926
  return "";
890
927
  }), t;
891
928
  }
892
- var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
893
- function hi(e) {
929
+ var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
930
+ function xi(e) {
894
931
  if (e.length === 0)
895
932
  throw new Error("Number skeleton cannot be empty");
896
- for (var t = e.split(ui).filter(function(f) {
933
+ for (var t = e.split(yi).filter(function(f) {
897
934
  return f.length > 0;
898
935
  }), r = [], n = 0, i = t; n < i.length; n++) {
899
936
  var o = i[n], s = o.split("/");
@@ -908,17 +945,17 @@ function hi(e) {
908
945
  }
909
946
  return r;
910
947
  }
911
- function ci(e) {
948
+ function Ei(e) {
912
949
  return e.replace(/^(.*?)-/, "");
913
950
  }
914
- var At = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, fi = /(\*)(0+)|(#+)(0+)|(0+)/g, Nr = /^(0+)$/;
915
- function Ot(e) {
951
+ var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dr = /^(@+)?(\+|#+)?[rs]?$/g, wi = /(\*)(0+)|(#+)(0+)|(0+)/g, Fr = /^(0+)$/;
952
+ function Rt(e) {
916
953
  var t = {};
917
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, i) {
954
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dr, function(r, n, i) {
918
955
  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)), "";
919
956
  }), t;
920
957
  }
921
- function Lr(e) {
958
+ function Ur(e) {
922
959
  switch (e) {
923
960
  case "sign-auto":
924
961
  return {
@@ -958,7 +995,7 @@ function Lr(e) {
958
995
  };
959
996
  }
960
997
  }
961
- function pi(e) {
998
+ function Ti(e) {
962
999
  var t;
963
1000
  if (e[0] === "E" && e[1] === "E" ? (t = {
964
1001
  notation: "engineering"
@@ -966,17 +1003,17 @@ function pi(e) {
966
1003
  notation: "scientific"
967
1004
  }, e = e.slice(1)), t) {
968
1005
  var r = e.slice(0, 2);
969
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nr.test(e))
1006
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Fr.test(e))
970
1007
  throw new Error("Malformed concise eng/scientific notation");
971
1008
  t.minimumIntegerDigits = e.length;
972
1009
  }
973
1010
  return t;
974
1011
  }
975
- function Ct(e) {
976
- var t = {}, r = Lr(e);
1012
+ function Dt(e) {
1013
+ var t = {}, r = Ur(e);
977
1014
  return r || t;
978
1015
  }
979
- function mi(e) {
1016
+ function Si(e) {
980
1017
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
981
1018
  var i = n[r];
982
1019
  switch (i.stem) {
@@ -1000,7 +1037,7 @@ function mi(e) {
1000
1037
  continue;
1001
1038
  case "measure-unit":
1002
1039
  case "unit":
1003
- t.style = "unit", t.unit = ci(i.options[0]);
1040
+ t.style = "unit", t.unit = Ei(i.options[0]);
1004
1041
  continue;
1005
1042
  case "compact-short":
1006
1043
  case "K":
@@ -1012,12 +1049,12 @@ function mi(e) {
1012
1049
  continue;
1013
1050
  case "scientific":
1014
1051
  t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1015
- return A(A({}, l), Ct(u));
1052
+ return A(A({}, l), Dt(u));
1016
1053
  }, {}));
1017
1054
  continue;
1018
1055
  case "engineering":
1019
1056
  t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1020
- return A(A({}, l), Ct(u));
1057
+ return A(A({}, l), Dt(u));
1021
1058
  }, {}));
1022
1059
  continue;
1023
1060
  case "notation-simple":
@@ -1062,7 +1099,7 @@ function mi(e) {
1062
1099
  case "integer-width":
1063
1100
  if (i.options.length > 1)
1064
1101
  throw new RangeError("integer-width stems only accept a single optional option");
1065
- i.options[0].replace(fi, function(l, u, h, c, f, b) {
1102
+ i.options[0].replace(wi, function(l, u, h, c, f, b) {
1066
1103
  if (u)
1067
1104
  t.minimumIntegerDigits = h.length;
1068
1105
  else {
@@ -1075,32 +1112,32 @@ function mi(e) {
1075
1112
  });
1076
1113
  continue;
1077
1114
  }
1078
- if (Nr.test(i.stem)) {
1115
+ if (Fr.test(i.stem)) {
1079
1116
  t.minimumIntegerDigits = i.stem.length;
1080
1117
  continue;
1081
1118
  }
1082
- if (At.test(i.stem)) {
1119
+ if (Mt.test(i.stem)) {
1083
1120
  if (i.options.length > 1)
1084
1121
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1085
- i.stem.replace(At, function(l, u, h, c, f, b) {
1122
+ i.stem.replace(Mt, function(l, u, h, c, f, b) {
1086
1123
  return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1087
1124
  });
1088
1125
  var o = i.options[0];
1089
- o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Ot(o)));
1126
+ o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Rt(o)));
1090
1127
  continue;
1091
1128
  }
1092
- if (Cr.test(i.stem)) {
1093
- t = A(A({}, t), Ot(i.stem));
1129
+ if (Dr.test(i.stem)) {
1130
+ t = A(A({}, t), Rt(i.stem));
1094
1131
  continue;
1095
1132
  }
1096
- var s = Lr(i.stem);
1133
+ var s = Ur(i.stem);
1097
1134
  s && (t = A(A({}, t), s));
1098
- var a = pi(i.stem);
1135
+ var a = Ti(i.stem);
1099
1136
  a && (t = A(A({}, t), a));
1100
1137
  }
1101
1138
  return t;
1102
1139
  }
1103
- var Me = {
1140
+ var Re = {
1104
1141
  "001": [
1105
1142
  "H",
1106
1143
  "h"
@@ -2515,13 +2552,13 @@ var Me = {
2515
2552
  "h"
2516
2553
  ]
2517
2554
  };
2518
- function di(e, t) {
2555
+ function Hi(e, t) {
2519
2556
  for (var r = "", n = 0; n < e.length; n++) {
2520
2557
  var i = e.charAt(n);
2521
2558
  if (i === "j") {
2522
2559
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2523
2560
  o++, n++;
2524
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = bi(t);
2561
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Bi(t);
2525
2562
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2526
2563
  r += l;
2527
2564
  for (; s-- > 0; )
@@ -2530,7 +2567,7 @@ function di(e, t) {
2530
2567
  }
2531
2568
  return r;
2532
2569
  }
2533
- function bi(e) {
2570
+ function Bi(e) {
2534
2571
  var t = e.hourCycle;
2535
2572
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2536
2573
  e.hourCycles && // @ts-ignore
@@ -2549,23 +2586,23 @@ function bi(e) {
2549
2586
  }
2550
2587
  var r = e.language, n;
2551
2588
  r !== "root" && (n = e.maximize().region);
2552
- var i = Me[n || ""] || Me[r || ""] || Me["".concat(r, "-001")] || Me["001"];
2589
+ var i = Re[n || ""] || Re[r || ""] || Re["".concat(r, "-001")] || Re["001"];
2553
2590
  return i[0];
2554
2591
  }
2555
- var Ye, _i = new RegExp("^".concat(Or.source, "*")), gi = new RegExp("".concat(Or.source, "*$"));
2592
+ var tt, Pi = new RegExp("^".concat(Rr.source, "*")), Ai = new RegExp("".concat(Rr.source, "*$"));
2556
2593
  function B(e, t) {
2557
2594
  return { start: e, end: t };
2558
2595
  }
2559
- var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), yi = !!String.fromCodePoint, xi = !!Object.fromEntries, Ei = !!String.prototype.codePointAt, wi = !!String.prototype.trimStart, Ti = !!String.prototype.trimEnd, Si = !!Number.isSafeInteger, Hi = Si ? Number.isSafeInteger : function(e) {
2596
+ var Oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ci = !!String.fromCodePoint, Ni = !!Object.fromEntries, Li = !!String.prototype.codePointAt, Ii = !!String.prototype.trimStart, Mi = !!String.prototype.trimEnd, Ri = !!Number.isSafeInteger, Di = Ri ? Number.isSafeInteger : function(e) {
2560
2597
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2561
- }, at = !0;
2598
+ }, ht = !0;
2562
2599
  try {
2563
- var Bi = Mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2564
- at = ((Ye = Bi.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
2565
- } catch {
2566
- at = !1;
2600
+ var Fi = Gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2601
+ ht = ((tt = Fi.exec("a")) === null || tt === void 0 ? void 0 : tt[0]) === "a";
2602
+ } catch (e) {
2603
+ ht = !1;
2567
2604
  }
2568
- var Nt = vi ? (
2605
+ var Ft = Oi ? (
2569
2606
  // Native
2570
2607
  function(t, r, n) {
2571
2608
  return t.startsWith(r, n);
@@ -2575,7 +2612,7 @@ var Nt = vi ? (
2575
2612
  function(t, r, n) {
2576
2613
  return t.slice(n, n + r.length) === r;
2577
2614
  }
2578
- ), lt = yi ? String.fromCodePoint : (
2615
+ ), ct = Ci ? String.fromCodePoint : (
2579
2616
  // IE11
2580
2617
  function() {
2581
2618
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2587,9 +2624,9 @@ var Nt = vi ? (
2587
2624
  }
2588
2625
  return n;
2589
2626
  }
2590
- ), Lt = (
2627
+ ), Ut = (
2591
2628
  // native
2592
- xi ? Object.fromEntries : (
2629
+ Ni ? Object.fromEntries : (
2593
2630
  // Ponyfill
2594
2631
  function(t) {
2595
2632
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2599,7 +2636,7 @@ var Nt = vi ? (
2599
2636
  return r;
2600
2637
  }
2601
2638
  )
2602
- ), Ir = Ei ? (
2639
+ ), kr = Li ? (
2603
2640
  // Native
2604
2641
  function(t, r) {
2605
2642
  return t.codePointAt(r);
@@ -2613,7 +2650,7 @@ var Nt = vi ? (
2613
2650
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2614
2651
  }
2615
2652
  }
2616
- ), Pi = wi ? (
2653
+ ), Ui = Ii ? (
2617
2654
  // Native
2618
2655
  function(t) {
2619
2656
  return t.trimStart();
@@ -2621,9 +2658,9 @@ var Nt = vi ? (
2621
2658
  ) : (
2622
2659
  // Ponyfill
2623
2660
  function(t) {
2624
- return t.replace(_i, "");
2661
+ return t.replace(Pi, "");
2625
2662
  }
2626
- ), Ai = Ti ? (
2663
+ ), ki = Mi ? (
2627
2664
  // Native
2628
2665
  function(t) {
2629
2666
  return t.trimEnd();
@@ -2631,32 +2668,32 @@ var Nt = vi ? (
2631
2668
  ) : (
2632
2669
  // Ponyfill
2633
2670
  function(t) {
2634
- return t.replace(gi, "");
2671
+ return t.replace(Ai, "");
2635
2672
  }
2636
2673
  );
2637
- function Mr(e, t) {
2674
+ function Gr(e, t) {
2638
2675
  return new RegExp(e, t);
2639
2676
  }
2640
- var ut;
2641
- if (at) {
2642
- var It = Mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2643
- ut = function(t, r) {
2677
+ var ft;
2678
+ if (ht) {
2679
+ var kt = Gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2680
+ ft = function(t, r) {
2644
2681
  var n;
2645
- It.lastIndex = r;
2646
- var i = It.exec(t);
2682
+ kt.lastIndex = r;
2683
+ var i = kt.exec(t);
2647
2684
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2648
2685
  };
2649
2686
  } else
2650
- ut = function(t, r) {
2687
+ ft = function(t, r) {
2651
2688
  for (var n = []; ; ) {
2652
- var i = Ir(t, r);
2653
- if (i === void 0 || Rr(i) || Li(i))
2689
+ var i = kr(t, r);
2690
+ if (i === void 0 || $r(i) || Vi(i))
2654
2691
  break;
2655
2692
  n.push(i), r += i >= 65536 ? 2 : 1;
2656
2693
  }
2657
- return lt.apply(void 0, n);
2694
+ return ct.apply(void 0, n);
2658
2695
  };
2659
- var Oi = (
2696
+ var Gi = (
2660
2697
  /** @class */
2661
2698
  function() {
2662
2699
  function e(t, r) {
@@ -2687,7 +2724,7 @@ var Oi = (
2687
2724
  if (n)
2688
2725
  break;
2689
2726
  return this.error(H.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
2690
- } else if (o === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
2727
+ } else if (o === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
2691
2728
  var s = this.parseTag(t, r);
2692
2729
  if (s.err)
2693
2730
  return s;
@@ -2720,7 +2757,7 @@ var Oi = (
2720
2757
  return o;
2721
2758
  var s = o.val, a = this.clonePosition();
2722
2759
  if (this.bumpIf("</")) {
2723
- if (this.isEOF() || !ht(this.char()))
2760
+ if (this.isEOF() || !pt(this.char()))
2724
2761
  return this.error(H.INVALID_TAG, B(a, this.clonePosition()));
2725
2762
  var l = this.clonePosition(), u = this.parseTagName();
2726
2763
  return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, B(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -2738,7 +2775,7 @@ var Oi = (
2738
2775
  return this.error(H.INVALID_TAG, B(n, this.clonePosition()));
2739
2776
  }, e.prototype.parseTagName = function() {
2740
2777
  var t = this.offset();
2741
- for (this.bump(); !this.isEOF() && Ni(this.char()); )
2778
+ for (this.bump(); !this.isEOF() && ji(this.char()); )
2742
2779
  this.bump();
2743
2780
  return this.message.slice(t, this.offset());
2744
2781
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2767,7 +2804,7 @@ var Oi = (
2767
2804
  };
2768
2805
  }, e.prototype.tryParseLeftAngleBracket = function() {
2769
2806
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2770
- !Ci(this.peek() || 0)) ? (this.bump(), "<") : null;
2807
+ !$i(this.peek() || 0)) ? (this.bump(), "<") : null;
2771
2808
  }, e.prototype.tryParseQuote = function(t) {
2772
2809
  if (this.isEOF() || this.char() !== 39)
2773
2810
  return null;
@@ -2801,12 +2838,12 @@ var Oi = (
2801
2838
  r.push(n);
2802
2839
  this.bump();
2803
2840
  }
2804
- return lt.apply(void 0, r);
2841
+ return ct.apply(void 0, r);
2805
2842
  }, e.prototype.tryParseUnquoted = function(t, r) {
2806
2843
  if (this.isEOF())
2807
2844
  return null;
2808
2845
  var n = this.char();
2809
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), lt(n));
2846
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ct(n));
2810
2847
  }, e.prototype.parseArgument = function(t, r) {
2811
2848
  var n = this.clonePosition();
2812
2849
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2835,7 +2872,7 @@ var Oi = (
2835
2872
  return this.error(H.MALFORMED_ARGUMENT, B(n, this.clonePosition()));
2836
2873
  }
2837
2874
  }, e.prototype.parseIdentifierIfPossible = function() {
2838
- var t = this.clonePosition(), r = this.offset(), n = ut(this.message, r), i = r + n.length;
2875
+ var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
2839
2876
  this.bumpTo(i);
2840
2877
  var o = this.clonePosition(), s = B(t, o);
2841
2878
  return { value: n, location: s };
@@ -2854,7 +2891,7 @@ var Oi = (
2854
2891
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2855
2892
  if (c.err)
2856
2893
  return c;
2857
- var f = Ai(c.val);
2894
+ var f = ki(c.val);
2858
2895
  if (f.length === 0)
2859
2896
  return this.error(H.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
2860
2897
  var b = B(h, this.clonePosition());
@@ -2864,8 +2901,8 @@ var Oi = (
2864
2901
  if (v.err)
2865
2902
  return v;
2866
2903
  var _ = B(i, this.clonePosition());
2867
- if (u && Nt(u?.style, "::", 0)) {
2868
- var O = Pi(u.style.slice(2));
2904
+ if (u && Ft(u == null ? void 0 : u.style, "::", 0)) {
2905
+ var O = Ui(u.style.slice(2));
2869
2906
  if (a === "number") {
2870
2907
  var c = this.parseNumberSkeletonFromString(O, u.styleLocation);
2871
2908
  return c.err ? c : {
@@ -2876,12 +2913,12 @@ var Oi = (
2876
2913
  if (O.length === 0)
2877
2914
  return this.error(H.EXPECT_DATE_TIME_SKELETON, _);
2878
2915
  var I = O;
2879
- this.locale && (I = di(O, this.locale));
2916
+ this.locale && (I = Hi(O, this.locale));
2880
2917
  var f = {
2881
- type: ve.dateTime,
2918
+ type: ye.dateTime,
2882
2919
  pattern: I,
2883
2920
  location: u.styleLocation,
2884
- parsedOptions: this.shouldParseSkeletons ? li(I) : {}
2921
+ parsedOptions: this.shouldParseSkeletons ? vi(I) : {}
2885
2922
  }, C = a === "date" ? R.date : R.time;
2886
2923
  return {
2887
2924
  val: { type: C, value: n, location: _, style: f },
@@ -2894,7 +2931,7 @@ var Oi = (
2894
2931
  type: a === "number" ? R.number : a === "date" ? R.date : R.time,
2895
2932
  value: n,
2896
2933
  location: _,
2897
- style: (o = u?.style) !== null && o !== void 0 ? o : null
2934
+ style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2898
2935
  },
2899
2936
  err: null
2900
2937
  };
@@ -2906,17 +2943,17 @@ var Oi = (
2906
2943
  if (this.bumpSpace(), !this.bumpIf(","))
2907
2944
  return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, B(N, A({}, N)));
2908
2945
  this.bumpSpace();
2909
- var U = this.parseIdentifierIfPossible(), P = 0;
2910
- if (a !== "select" && U.value === "offset") {
2946
+ var k = this.parseIdentifierIfPossible(), P = 0;
2947
+ if (a !== "select" && k.value === "offset") {
2911
2948
  if (!this.bumpIf(":"))
2912
2949
  return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B(this.clonePosition(), this.clonePosition()));
2913
2950
  this.bumpSpace();
2914
2951
  var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2915
2952
  if (c.err)
2916
2953
  return c;
2917
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), P = c.val;
2954
+ this.bumpSpace(), k = this.parseIdentifierIfPossible(), P = c.val;
2918
2955
  }
2919
- var y = this.tryParsePluralOrSelectOptions(t, a, r, U);
2956
+ var y = this.tryParsePluralOrSelectOptions(t, a, r, k);
2920
2957
  if (y.err)
2921
2958
  return y;
2922
2959
  var v = this.tryParseArgumentClose(i);
@@ -2927,7 +2964,7 @@ var Oi = (
2927
2964
  val: {
2928
2965
  type: R.select,
2929
2966
  value: n,
2930
- options: Lt(y.val),
2967
+ options: Ut(y.val),
2931
2968
  location: x
2932
2969
  },
2933
2970
  err: null
@@ -2935,7 +2972,7 @@ var Oi = (
2935
2972
  val: {
2936
2973
  type: R.plural,
2937
2974
  value: n,
2938
- options: Lt(y.val),
2975
+ options: Ut(y.val),
2939
2976
  offset: P,
2940
2977
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2941
2978
  location: x
@@ -2986,16 +3023,16 @@ var Oi = (
2986
3023
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2987
3024
  var n = [];
2988
3025
  try {
2989
- n = hi(t);
2990
- } catch {
3026
+ n = xi(t);
3027
+ } catch (i) {
2991
3028
  return this.error(H.INVALID_NUMBER_SKELETON, r);
2992
3029
  }
2993
3030
  return {
2994
3031
  val: {
2995
- type: ve.number,
3032
+ type: ye.number,
2996
3033
  tokens: n,
2997
3034
  location: r,
2998
- parsedOptions: this.shouldParseSkeletons ? mi(n) : {}
3035
+ parsedOptions: this.shouldParseSkeletons ? Si(n) : {}
2999
3036
  },
3000
3037
  err: null
3001
3038
  };
@@ -3043,7 +3080,7 @@ var Oi = (
3043
3080
  break;
3044
3081
  }
3045
3082
  var l = B(i, this.clonePosition());
3046
- return o ? (s *= n, Hi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3083
+ return o ? (s *= n, Di(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3047
3084
  }, e.prototype.offset = function() {
3048
3085
  return this.position.offset;
3049
3086
  }, e.prototype.isEOF = function() {
@@ -3058,7 +3095,7 @@ var Oi = (
3058
3095
  var t = this.position.offset;
3059
3096
  if (t >= this.message.length)
3060
3097
  throw Error("out of bound");
3061
- var r = Ir(this.message, t);
3098
+ var r = kr(this.message, t);
3062
3099
  if (r === void 0)
3063
3100
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3064
3101
  return r;
@@ -3077,7 +3114,7 @@ var Oi = (
3077
3114
  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);
3078
3115
  }
3079
3116
  }, e.prototype.bumpIf = function(t) {
3080
- if (Nt(this.message, t, this.offset())) {
3117
+ if (Ft(this.message, t, this.offset())) {
3081
3118
  for (var r = 0; r < t.length; r++)
3082
3119
  this.bump();
3083
3120
  return !0;
@@ -3099,56 +3136,56 @@ var Oi = (
3099
3136
  break;
3100
3137
  }
3101
3138
  }, e.prototype.bumpSpace = function() {
3102
- for (; !this.isEOF() && Rr(this.char()); )
3139
+ for (; !this.isEOF() && $r(this.char()); )
3103
3140
  this.bump();
3104
3141
  }, e.prototype.peek = function() {
3105
3142
  if (this.isEOF())
3106
3143
  return null;
3107
3144
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3108
- return n ?? null;
3145
+ return n != null ? n : null;
3109
3146
  }, e;
3110
3147
  }()
3111
3148
  );
3112
- function ht(e) {
3149
+ function pt(e) {
3113
3150
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3114
3151
  }
3115
- function Ci(e) {
3116
- return ht(e) || e === 47;
3152
+ function $i(e) {
3153
+ return pt(e) || e === 47;
3117
3154
  }
3118
- function Ni(e) {
3155
+ function ji(e) {
3119
3156
  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;
3120
3157
  }
3121
- function Rr(e) {
3158
+ function $r(e) {
3122
3159
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3123
3160
  }
3124
- function Li(e) {
3161
+ function Vi(e) {
3125
3162
  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;
3126
3163
  }
3127
- function ct(e) {
3164
+ function mt(e) {
3128
3165
  e.forEach(function(t) {
3129
- if (delete t.location, Hr(t) || Br(t))
3166
+ if (delete t.location, Nr(t) || Lr(t))
3130
3167
  for (var r in t.options)
3131
- delete t.options[r].location, ct(t.options[r].value);
3132
- else wr(t) && Ar(t.style) || (Tr(t) || Sr(t)) && st(t.style) ? delete t.style.location : Pr(t) && ct(t.children);
3168
+ delete t.options[r].location, mt(t.options[r].value);
3169
+ else Ar(t) && Mr(t.style) || (Or(t) || Cr(t)) && ut(t.style) ? delete t.style.location : Ir(t) && mt(t.children);
3133
3170
  });
3134
3171
  }
3135
- function Ii(e, t) {
3172
+ function zi(e, t) {
3136
3173
  t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3137
- var r = new Oi(e, t).parse();
3174
+ var r = new Gi(e, t).parse();
3138
3175
  if (r.err) {
3139
3176
  var n = SyntaxError(H[r.err.kind]);
3140
3177
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3141
3178
  }
3142
- return t?.captureLocation || ct(r.val), r.val;
3179
+ return t != null && t.captureLocation || mt(r.val), r.val;
3143
3180
  }
3144
- var ye;
3181
+ var xe;
3145
3182
  (function(e) {
3146
3183
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3147
- })(ye || (ye = {}));
3148
- var ze = (
3184
+ })(xe || (xe = {}));
3185
+ var Xe = (
3149
3186
  /** @class */
3150
3187
  function(e) {
3151
- ne(t, e);
3188
+ ie(t, e);
3152
3189
  function t(r, n, i) {
3153
3190
  var o = e.call(this, r) || this;
3154
3191
  return o.code = n, o.originalMessage = i, o;
@@ -3157,48 +3194,48 @@ var ze = (
3157
3194
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3158
3195
  }, t;
3159
3196
  }(Error)
3160
- ), Mt = (
3197
+ ), Gt = (
3161
3198
  /** @class */
3162
3199
  function(e) {
3163
- ne(t, e);
3200
+ ie(t, e);
3164
3201
  function t(r, n, i, o) {
3165
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ye.INVALID_VALUE, o) || this;
3202
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), xe.INVALID_VALUE, o) || this;
3166
3203
  }
3167
3204
  return t;
3168
- }(ze)
3169
- ), Mi = (
3205
+ }(Xe)
3206
+ ), Xi = (
3170
3207
  /** @class */
3171
3208
  function(e) {
3172
- ne(t, e);
3209
+ ie(t, e);
3173
3210
  function t(r, n, i) {
3174
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ye.INVALID_VALUE, i) || this;
3211
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), xe.INVALID_VALUE, i) || this;
3175
3212
  }
3176
3213
  return t;
3177
- }(ze)
3178
- ), Ri = (
3214
+ }(Xe)
3215
+ ), Wi = (
3179
3216
  /** @class */
3180
3217
  function(e) {
3181
- ne(t, e);
3218
+ ie(t, e);
3182
3219
  function t(r, n) {
3183
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ye.MISSING_VALUE, n) || this;
3220
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), xe.MISSING_VALUE, n) || this;
3184
3221
  }
3185
3222
  return t;
3186
- }(ze)
3223
+ }(Xe)
3187
3224
  ), X;
3188
3225
  (function(e) {
3189
3226
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3190
3227
  })(X || (X = {}));
3191
- function Di(e) {
3228
+ function Zi(e) {
3192
3229
  return e.length < 2 ? e : e.reduce(function(t, r) {
3193
3230
  var n = t[t.length - 1];
3194
3231
  return !n || n.type !== X.literal || r.type !== X.literal ? t.push(r) : n.value += r.value, t;
3195
3232
  }, []);
3196
3233
  }
3197
- function Fi(e) {
3234
+ function qi(e) {
3198
3235
  return typeof e == "function";
3199
3236
  }
3200
- function Fe(e, t, r, n, i, o, s) {
3201
- if (e.length === 1 && Pt(e[0]))
3237
+ function Ue(e, t, r, n, i, o, s) {
3238
+ if (e.length === 1 && It(e[0]))
3202
3239
  return [
3203
3240
  {
3204
3241
  type: X.literal,
@@ -3207,14 +3244,14 @@ function Fe(e, t, r, n, i, o, s) {
3207
3244
  ];
3208
3245
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3209
3246
  var h = u[l];
3210
- if (Pt(h)) {
3247
+ if (It(h)) {
3211
3248
  a.push({
3212
3249
  type: X.literal,
3213
3250
  value: h.value
3214
3251
  });
3215
3252
  continue;
3216
3253
  }
3217
- if (si(h)) {
3254
+ if (_i(h)) {
3218
3255
  typeof o == "number" && a.push({
3219
3256
  type: X.literal,
3220
3257
  value: r.getNumberFormat(t).format(o)
@@ -3223,44 +3260,44 @@ function Fe(e, t, r, n, i, o, s) {
3223
3260
  }
3224
3261
  var c = h.value;
3225
3262
  if (!(i && c in i))
3226
- throw new Ri(c, s);
3263
+ throw new Wi(c, s);
3227
3264
  var f = i[c];
3228
- if (oi(h)) {
3265
+ if (bi(h)) {
3229
3266
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3230
3267
  type: typeof f == "string" ? X.literal : X.object,
3231
3268
  value: f
3232
3269
  });
3233
3270
  continue;
3234
3271
  }
3235
- if (Tr(h)) {
3236
- var b = typeof h.style == "string" ? n.date[h.style] : st(h.style) ? h.style.parsedOptions : void 0;
3272
+ if (Or(h)) {
3273
+ var b = typeof h.style == "string" ? n.date[h.style] : ut(h.style) ? h.style.parsedOptions : void 0;
3237
3274
  a.push({
3238
3275
  type: X.literal,
3239
3276
  value: r.getDateTimeFormat(t, b).format(f)
3240
3277
  });
3241
3278
  continue;
3242
3279
  }
3243
- if (Sr(h)) {
3244
- var b = typeof h.style == "string" ? n.time[h.style] : st(h.style) ? h.style.parsedOptions : n.time.medium;
3280
+ if (Cr(h)) {
3281
+ var b = typeof h.style == "string" ? n.time[h.style] : ut(h.style) ? h.style.parsedOptions : n.time.medium;
3245
3282
  a.push({
3246
3283
  type: X.literal,
3247
3284
  value: r.getDateTimeFormat(t, b).format(f)
3248
3285
  });
3249
3286
  continue;
3250
3287
  }
3251
- if (wr(h)) {
3252
- var b = typeof h.style == "string" ? n.number[h.style] : Ar(h.style) ? h.style.parsedOptions : void 0;
3288
+ if (Ar(h)) {
3289
+ var b = typeof h.style == "string" ? n.number[h.style] : Mr(h.style) ? h.style.parsedOptions : void 0;
3253
3290
  b && b.scale && (f = f * (b.scale || 1)), a.push({
3254
3291
  type: X.literal,
3255
3292
  value: r.getNumberFormat(t, b).format(f)
3256
3293
  });
3257
3294
  continue;
3258
3295
  }
3259
- if (Pr(h)) {
3296
+ if (Ir(h)) {
3260
3297
  var v = h.children, _ = h.value, O = i[_];
3261
- if (!Fi(O))
3262
- throw new Mi(_, "function", s);
3263
- var I = Fe(v, t, r, n, i, o), C = O(I.map(function(P) {
3298
+ if (!qi(O))
3299
+ throw new Xi(_, "function", s);
3300
+ var I = Ue(v, t, r, n, i, o), C = O(I.map(function(P) {
3264
3301
  return P.value;
3265
3302
  }));
3266
3303
  Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(P) {
@@ -3270,42 +3307,42 @@ function Fe(e, t, r, n, i, o, s) {
3270
3307
  };
3271
3308
  }));
3272
3309
  }
3273
- if (Hr(h)) {
3310
+ if (Nr(h)) {
3274
3311
  var N = h.options[f] || h.options.other;
3275
3312
  if (!N)
3276
- throw new Mt(h.value, f, Object.keys(h.options), s);
3277
- a.push.apply(a, Fe(N.value, t, r, n, i));
3313
+ throw new Gt(h.value, f, Object.keys(h.options), s);
3314
+ a.push.apply(a, Ue(N.value, t, r, n, i));
3278
3315
  continue;
3279
3316
  }
3280
- if (Br(h)) {
3317
+ if (Lr(h)) {
3281
3318
  var N = h.options["=".concat(f)];
3282
3319
  if (!N) {
3283
3320
  if (!Intl.PluralRules)
3284
- throw new ze(`Intl.PluralRules is not available in this environment.
3321
+ throw new Xe(`Intl.PluralRules is not available in this environment.
3285
3322
  Try polyfilling it using "@formatjs/intl-pluralrules"
3286
- `, ye.MISSING_INTL_API, s);
3287
- var U = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3288
- N = h.options[U] || h.options.other;
3323
+ `, xe.MISSING_INTL_API, s);
3324
+ var k = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3325
+ N = h.options[k] || h.options.other;
3289
3326
  }
3290
3327
  if (!N)
3291
- throw new Mt(h.value, f, Object.keys(h.options), s);
3292
- a.push.apply(a, Fe(N.value, t, r, n, i, f - (h.offset || 0)));
3328
+ throw new Gt(h.value, f, Object.keys(h.options), s);
3329
+ a.push.apply(a, Ue(N.value, t, r, n, i, f - (h.offset || 0)));
3293
3330
  continue;
3294
3331
  }
3295
3332
  }
3296
- return Di(a);
3333
+ return Zi(a);
3297
3334
  }
3298
- function ki(e, t) {
3335
+ function Qi(e, t) {
3299
3336
  return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3300
3337
  return r[n] = A(A({}, e[n]), t[n] || {}), r;
3301
3338
  }, {})) : e;
3302
3339
  }
3303
- function Ui(e, t) {
3340
+ function Ji(e, t) {
3304
3341
  return t ? Object.keys(e).reduce(function(r, n) {
3305
- return r[n] = ki(e[n], t[n]), r;
3342
+ return r[n] = Qi(e[n], t[n]), r;
3306
3343
  }, A({}, e)) : e;
3307
3344
  }
3308
- function Ke(e) {
3345
+ function rt(e) {
3309
3346
  return {
3310
3347
  create: function() {
3311
3348
  return {
@@ -3319,39 +3356,39 @@ function Ke(e) {
3319
3356
  }
3320
3357
  };
3321
3358
  }
3322
- function Gi(e) {
3359
+ function Yi(e) {
3323
3360
  return e === void 0 && (e = {
3324
3361
  number: {},
3325
3362
  dateTime: {},
3326
3363
  pluralRules: {}
3327
3364
  }), {
3328
- getNumberFormat: Qe(function() {
3365
+ getNumberFormat: Ke(function() {
3329
3366
  for (var t, r = [], n = 0; n < arguments.length; n++)
3330
3367
  r[n] = arguments[n];
3331
- return new ((t = Intl.NumberFormat).bind.apply(t, be([void 0], r, !1)))();
3368
+ return new ((t = Intl.NumberFormat).bind.apply(t, _e([void 0], r, !1)))();
3332
3369
  }, {
3333
- cache: Ke(e.number),
3334
- strategy: Je.variadic
3370
+ cache: rt(e.number),
3371
+ strategy: et.variadic
3335
3372
  }),
3336
- getDateTimeFormat: Qe(function() {
3373
+ getDateTimeFormat: Ke(function() {
3337
3374
  for (var t, r = [], n = 0; n < arguments.length; n++)
3338
3375
  r[n] = arguments[n];
3339
- return new ((t = Intl.DateTimeFormat).bind.apply(t, be([void 0], r, !1)))();
3376
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, _e([void 0], r, !1)))();
3340
3377
  }, {
3341
- cache: Ke(e.dateTime),
3342
- strategy: Je.variadic
3378
+ cache: rt(e.dateTime),
3379
+ strategy: et.variadic
3343
3380
  }),
3344
- getPluralRules: Qe(function() {
3381
+ getPluralRules: Ke(function() {
3345
3382
  for (var t, r = [], n = 0; n < arguments.length; n++)
3346
3383
  r[n] = arguments[n];
3347
- return new ((t = Intl.PluralRules).bind.apply(t, be([void 0], r, !1)))();
3384
+ return new ((t = Intl.PluralRules).bind.apply(t, _e([void 0], r, !1)))();
3348
3385
  }, {
3349
- cache: Ke(e.pluralRules),
3350
- strategy: Je.variadic
3386
+ cache: rt(e.pluralRules),
3387
+ strategy: et.variadic
3351
3388
  })
3352
3389
  };
3353
3390
  }
3354
- var $i = (
3391
+ var Ki = (
3355
3392
  /** @class */
3356
3393
  function() {
3357
3394
  function e(t, r, n, i) {
@@ -3370,7 +3407,7 @@ var $i = (
3370
3407
  }, []);
3371
3408
  return h.length <= 1 ? h[0] || "" : h;
3372
3409
  }, this.formatToParts = function(l) {
3373
- return Fe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3410
+ return Ue(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3374
3411
  }, this.resolvedOptions = function() {
3375
3412
  var l;
3376
3413
  return {
@@ -3383,13 +3420,13 @@ var $i = (
3383
3420
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3384
3421
  var s = i || {};
3385
3422
  s.formatters;
3386
- var a = Jn(s, ["formatters"]);
3423
+ var a = li(s, ["formatters"]);
3387
3424
  this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3388
3425
  } else
3389
3426
  this.ast = t;
3390
3427
  if (!Array.isArray(this.ast))
3391
3428
  throw new TypeError("A message must be provided as a String or AST.");
3392
- this.formats = Ui(e.formats, n), this.formatters = i && i.formatters || Gi(this.formatterCache);
3429
+ this.formats = Ji(e.formats, n), this.formatters = i && i.formatters || Yi(this.formatterCache);
3393
3430
  }
3394
3431
  return Object.defineProperty(e, "defaultLocale", {
3395
3432
  get: function() {
@@ -3398,11 +3435,11 @@ var $i = (
3398
3435
  enumerable: !1,
3399
3436
  configurable: !0
3400
3437
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3401
- if (!(typeof Intl.Locale > "u")) {
3438
+ if (typeof Intl.Locale != "undefined") {
3402
3439
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3403
3440
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3404
3441
  }
3405
- }, e.__parse = Ii, e.formats = {
3442
+ }, e.__parse = zi, e.formats = {
3406
3443
  number: {
3407
3444
  integer: {
3408
3445
  maximumFractionDigits: 0
@@ -3463,7 +3500,7 @@ var $i = (
3463
3500
  }, e;
3464
3501
  }()
3465
3502
  );
3466
- function ji(e, t) {
3503
+ function eo(e, t) {
3467
3504
  if (t == null)
3468
3505
  return;
3469
3506
  if (t in e)
@@ -3484,92 +3521,92 @@ function ji(e, t) {
3484
3521
  n = void 0;
3485
3522
  return n;
3486
3523
  }
3487
- const se = {}, Vi = (e, t, r) => r && (t in se || (se[t] = {}), e in se[t] || (se[t][e] = r), r), Dr = (e, t) => {
3524
+ const ae = {}, to = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = r), r), jr = (e, t) => {
3488
3525
  if (t == null)
3489
3526
  return;
3490
- if (t in se && e in se[t])
3491
- return se[t][e];
3492
- const r = Xe(t);
3527
+ if (t in ae && e in ae[t])
3528
+ return ae[t][e];
3529
+ const r = We(t);
3493
3530
  for (let n = 0; n < r.length; n++) {
3494
- const i = r[n], o = Xi(i, e);
3531
+ const i = r[n], o = no(i, e);
3495
3532
  if (o)
3496
- return Vi(e, t, o);
3533
+ return to(e, t, o);
3497
3534
  }
3498
3535
  };
3499
- let vt;
3500
- const Te = Ve({});
3501
- function zi(e) {
3502
- return vt[e] || null;
3536
+ let Et;
3537
+ const Se = ze({});
3538
+ function ro(e) {
3539
+ return Et[e] || null;
3503
3540
  }
3504
- function Fr(e) {
3505
- return e in vt;
3541
+ function Vr(e) {
3542
+ return e in Et;
3506
3543
  }
3507
- function Xi(e, t) {
3508
- if (!Fr(e))
3544
+ function no(e, t) {
3545
+ if (!Vr(e))
3509
3546
  return null;
3510
- const r = zi(e);
3511
- return ji(r, t);
3547
+ const r = ro(e);
3548
+ return eo(r, t);
3512
3549
  }
3513
- function Wi(e) {
3550
+ function io(e) {
3514
3551
  if (e == null)
3515
3552
  return;
3516
- const t = Xe(e);
3553
+ const t = We(e);
3517
3554
  for (let r = 0; r < t.length; r++) {
3518
3555
  const n = t[r];
3519
- if (Fr(n))
3556
+ if (Vr(n))
3520
3557
  return n;
3521
3558
  }
3522
3559
  }
3523
- function kr(e, ...t) {
3524
- delete se[e], Te.update((r) => (r[e] = Qn.all([r[e] || {}, ...t]), r));
3560
+ function zr(e, ...t) {
3561
+ delete ae[e], Se.update((r) => (r[e] = ai.all([r[e] || {}, ...t]), r));
3525
3562
  }
3526
- we(
3527
- [Te],
3563
+ Te(
3564
+ [Se],
3528
3565
  ([e]) => Object.keys(e)
3529
3566
  );
3530
- Te.subscribe((e) => vt = e);
3567
+ Se.subscribe((e) => Et = e);
3531
3568
  const ke = {};
3532
- function Zi(e, t) {
3569
+ function oo(e, t) {
3533
3570
  ke[e].delete(t), ke[e].size === 0 && delete ke[e];
3534
3571
  }
3535
- function Ur(e) {
3572
+ function Xr(e) {
3536
3573
  return ke[e];
3537
3574
  }
3538
- function qi(e) {
3539
- return Xe(e).map((t) => {
3540
- const r = Ur(t);
3575
+ function so(e) {
3576
+ return We(e).map((t) => {
3577
+ const r = Xr(t);
3541
3578
  return [t, r ? [...r] : []];
3542
3579
  }).filter(([, t]) => t.length > 0);
3543
3580
  }
3544
- function ft(e) {
3545
- return e == null ? !1 : Xe(e).some(
3581
+ function dt(e) {
3582
+ return e == null ? !1 : We(e).some(
3546
3583
  (t) => {
3547
3584
  var r;
3548
- return (r = Ur(t)) == null ? void 0 : r.size;
3585
+ return (r = Xr(t)) == null ? void 0 : r.size;
3549
3586
  }
3550
3587
  );
3551
3588
  }
3552
- function Qi(e, t) {
3589
+ function ao(e, t) {
3553
3590
  return Promise.all(
3554
- t.map((n) => (Zi(e, n), n().then((i) => i.default || i)))
3555
- ).then((n) => kr(e, ...n));
3556
- }
3557
- const Be = {};
3558
- function Gr(e) {
3559
- if (!ft(e))
3560
- return e in Be ? Be[e] : Promise.resolve();
3561
- const t = qi(e);
3562
- return Be[e] = Promise.all(
3591
+ t.map((n) => (oo(e, n), n().then((i) => i.default || i)))
3592
+ ).then((n) => zr(e, ...n));
3593
+ }
3594
+ const Pe = {};
3595
+ function Wr(e) {
3596
+ if (!dt(e))
3597
+ return e in Pe ? Pe[e] : Promise.resolve();
3598
+ const t = so(e);
3599
+ return Pe[e] = Promise.all(
3563
3600
  t.map(
3564
- ([r, n]) => Qi(r, n)
3601
+ ([r, n]) => ao(r, n)
3565
3602
  )
3566
3603
  ).then(() => {
3567
- if (ft(e))
3568
- return Gr(e);
3569
- delete Be[e];
3570
- }), Be[e];
3604
+ if (dt(e))
3605
+ return Wr(e);
3606
+ delete Pe[e];
3607
+ }), Pe[e];
3571
3608
  }
3572
- const Ji = {
3609
+ const lo = {
3573
3610
  number: {
3574
3611
  scientific: { notation: "scientific" },
3575
3612
  engineering: { notation: "engineering" },
@@ -3598,150 +3635,150 @@ const Ji = {
3598
3635
  timeZoneName: "short"
3599
3636
  }
3600
3637
  }
3601
- }, Yi = {
3638
+ }, uo = {
3602
3639
  fallbackLocale: null,
3603
3640
  loadingDelay: 200,
3604
- formats: Ji,
3641
+ formats: lo,
3605
3642
  warnOnMissingMessages: !0,
3606
3643
  handleMissingMessage: void 0,
3607
3644
  ignoreTag: !0
3608
- }, Ki = Yi;
3609
- function xe() {
3610
- return Ki;
3645
+ }, ho = uo;
3646
+ function Ee() {
3647
+ return ho;
3611
3648
  }
3612
- const et = Ve(!1);
3613
- var eo = Object.defineProperty, to = Object.defineProperties, ro = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, no = Object.prototype.hasOwnProperty, io = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oo = (e, t) => {
3649
+ const nt = ze(!1);
3650
+ var co = Object.defineProperty, fo = Object.defineProperties, po = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, mo = Object.prototype.hasOwnProperty, bo = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _o = (e, t) => {
3614
3651
  for (var r in t)
3615
- no.call(t, r) && Dt(e, r, t[r]);
3616
- if (Rt)
3617
- for (var r of Rt(t))
3618
- io.call(t, r) && Dt(e, r, t[r]);
3652
+ mo.call(t, r) && jt(e, r, t[r]);
3653
+ if ($t)
3654
+ for (var r of $t(t))
3655
+ bo.call(t, r) && jt(e, r, t[r]);
3619
3656
  return e;
3620
- }, so = (e, t) => to(e, ro(t));
3621
- let pt;
3622
- const $e = Ve(null);
3623
- function Ft(e) {
3657
+ }, go = (e, t) => fo(e, po(t));
3658
+ let bt;
3659
+ const je = ze(null);
3660
+ function Vt(e) {
3624
3661
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3625
3662
  }
3626
- function Xe(e, t = xe().fallbackLocale) {
3627
- const r = Ft(e);
3628
- return t ? [.../* @__PURE__ */ new Set([...r, ...Ft(t)])] : r;
3663
+ function We(e, t = Ee().fallbackLocale) {
3664
+ const r = Vt(e);
3665
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Vt(t)])] : r;
3629
3666
  }
3630
- function he() {
3631
- return pt ?? void 0;
3667
+ function ce() {
3668
+ return bt != null ? bt : void 0;
3632
3669
  }
3633
- $e.subscribe((e) => {
3634
- pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3670
+ je.subscribe((e) => {
3671
+ bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3635
3672
  });
3636
- const ao = (e) => {
3637
- if (e && Wi(e) && ft(e)) {
3638
- const { loadingDelay: t } = xe();
3673
+ const vo = (e) => {
3674
+ if (e && io(e) && dt(e)) {
3675
+ const { loadingDelay: t } = Ee();
3639
3676
  let r;
3640
- return typeof window < "u" && he() != null && t ? r = window.setTimeout(
3641
- () => et.set(!0),
3677
+ return typeof window != "undefined" && ce() != null && t ? r = window.setTimeout(
3678
+ () => nt.set(!0),
3642
3679
  t
3643
- ) : et.set(!0), Gr(e).then(() => {
3644
- $e.set(e);
3680
+ ) : nt.set(!0), Wr(e).then(() => {
3681
+ je.set(e);
3645
3682
  }).finally(() => {
3646
- clearTimeout(r), et.set(!1);
3683
+ clearTimeout(r), nt.set(!1);
3647
3684
  });
3648
3685
  }
3649
- return $e.set(e);
3650
- }, le = so(oo({}, $e), {
3651
- set: ao
3652
- }), We = (e) => {
3686
+ return je.set(e);
3687
+ }, ue = go(_o({}, je), {
3688
+ set: vo
3689
+ }), Ze = (e) => {
3653
3690
  const t = /* @__PURE__ */ Object.create(null);
3654
3691
  return (n) => {
3655
3692
  const i = JSON.stringify(n);
3656
3693
  return i in t ? t[i] : t[i] = e(n);
3657
3694
  };
3658
3695
  };
3659
- var lo = Object.defineProperty, je = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
3696
+ var yo = Object.defineProperty, Ve = Object.getOwnPropertySymbols, Zr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
3660
3697
  for (var r in t || (t = {}))
3661
- $r.call(t, r) && kt(e, r, t[r]);
3662
- if (je)
3663
- for (var r of je(t))
3664
- jr.call(t, r) && kt(e, r, t[r]);
3698
+ Zr.call(t, r) && zt(e, r, t[r]);
3699
+ if (Ve)
3700
+ for (var r of Ve(t))
3701
+ qr.call(t, r) && zt(e, r, t[r]);
3665
3702
  return e;
3666
- }, Se = (e, t) => {
3703
+ }, He = (e, t) => {
3667
3704
  var r = {};
3668
3705
  for (var n in e)
3669
- $r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3670
- if (e != null && je)
3671
- for (var n of je(e))
3672
- t.indexOf(n) < 0 && jr.call(e, n) && (r[n] = e[n]);
3706
+ Zr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3707
+ if (e != null && Ve)
3708
+ for (var n of Ve(e))
3709
+ t.indexOf(n) < 0 && qr.call(e, n) && (r[n] = e[n]);
3673
3710
  return r;
3674
3711
  };
3675
- const Ce = (e, t) => {
3676
- const { formats: r } = xe();
3712
+ const Ne = (e, t) => {
3713
+ const { formats: r } = Ee();
3677
3714
  if (e in r && t in r[e])
3678
3715
  return r[e][t];
3679
3716
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3680
- }, uo = We(
3717
+ }, xo = Ze(
3681
3718
  (e) => {
3682
- var t = e, { locale: r, format: n } = t, i = Se(t, ["locale", "format"]);
3719
+ var t = e, { locale: r, format: n } = t, i = He(t, ["locale", "format"]);
3683
3720
  if (r == null)
3684
3721
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3685
- return n && (i = Ce("number", n)), new Intl.NumberFormat(r, i);
3722
+ return n && (i = Ne("number", n)), new Intl.NumberFormat(r, i);
3686
3723
  }
3687
- ), ho = We(
3724
+ ), Eo = Ze(
3688
3725
  (e) => {
3689
- var t = e, { locale: r, format: n } = t, i = Se(t, ["locale", "format"]);
3726
+ var t = e, { locale: r, format: n } = t, i = He(t, ["locale", "format"]);
3690
3727
  if (r == null)
3691
3728
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3692
- return n ? i = Ce("date", n) : Object.keys(i).length === 0 && (i = Ce("date", "short")), new Intl.DateTimeFormat(r, i);
3729
+ return n ? i = Ne("date", n) : Object.keys(i).length === 0 && (i = Ne("date", "short")), new Intl.DateTimeFormat(r, i);
3693
3730
  }
3694
- ), co = We(
3731
+ ), wo = Ze(
3695
3732
  (e) => {
3696
- var t = e, { locale: r, format: n } = t, i = Se(t, ["locale", "format"]);
3733
+ var t = e, { locale: r, format: n } = t, i = He(t, ["locale", "format"]);
3697
3734
  if (r == null)
3698
3735
  throw new Error(
3699
3736
  '[svelte-i18n] A "locale" must be set to format time values'
3700
3737
  );
3701
- return n ? i = Ce("time", n) : Object.keys(i).length === 0 && (i = Ce("time", "short")), new Intl.DateTimeFormat(r, i);
3738
+ return n ? i = Ne("time", n) : Object.keys(i).length === 0 && (i = Ne("time", "short")), new Intl.DateTimeFormat(r, i);
3702
3739
  }
3703
- ), fo = (e = {}) => {
3740
+ ), To = (e = {}) => {
3704
3741
  var t = e, {
3705
- locale: r = he()
3706
- } = t, n = Se(t, [
3742
+ locale: r = ce()
3743
+ } = t, n = He(t, [
3707
3744
  "locale"
3708
3745
  ]);
3709
- return uo(yt({ locale: r }, n));
3710
- }, po = (e = {}) => {
3746
+ return xo(wt({ locale: r }, n));
3747
+ }, So = (e = {}) => {
3711
3748
  var t = e, {
3712
- locale: r = he()
3713
- } = t, n = Se(t, [
3749
+ locale: r = ce()
3750
+ } = t, n = He(t, [
3714
3751
  "locale"
3715
3752
  ]);
3716
- return ho(yt({ locale: r }, n));
3717
- }, mo = (e = {}) => {
3753
+ return Eo(wt({ locale: r }, n));
3754
+ }, Ho = (e = {}) => {
3718
3755
  var t = e, {
3719
- locale: r = he()
3720
- } = t, n = Se(t, [
3756
+ locale: r = ce()
3757
+ } = t, n = He(t, [
3721
3758
  "locale"
3722
3759
  ]);
3723
- return co(yt({ locale: r }, n));
3724
- }, bo = We(
3760
+ return wo(wt({ locale: r }, n));
3761
+ }, Bo = Ze(
3725
3762
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3726
- (e, t = he()) => new $i(e, t, xe().formats, {
3727
- ignoreTag: xe().ignoreTag
3763
+ (e, t = ce()) => new Ki(e, t, Ee().formats, {
3764
+ ignoreTag: Ee().ignoreTag
3728
3765
  })
3729
- ), _o = (e, t = {}) => {
3766
+ ), Po = (e, t = {}) => {
3730
3767
  var r, n, i, o;
3731
3768
  let s = t;
3732
3769
  typeof e == "object" && (s = e, e = s.id);
3733
3770
  const {
3734
3771
  values: a,
3735
- locale: l = he(),
3772
+ locale: l = ce(),
3736
3773
  default: u
3737
3774
  } = s;
3738
3775
  if (l == null)
3739
3776
  throw new Error(
3740
3777
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3741
3778
  );
3742
- let h = Dr(e, l);
3779
+ let h = jr(e, l);
3743
3780
  if (!h)
3744
- h = (o = (i = (n = (r = xe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3781
+ h = (o = (i = (n = (r = Ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3745
3782
  else if (typeof h != "string")
3746
3783
  return console.warn(
3747
3784
  `[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.`
@@ -3750,7 +3787,7 @@ const Ce = (e, t) => {
3750
3787
  return h;
3751
3788
  let c = h;
3752
3789
  try {
3753
- c = bo(h, l).format(a);
3790
+ c = Bo(h, l).format(a);
3754
3791
  } catch (f) {
3755
3792
  f instanceof Error && console.warn(
3756
3793
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3758,32 +3795,32 @@ const Ce = (e, t) => {
3758
3795
  );
3759
3796
  }
3760
3797
  return c;
3761
- }, go = (e, t) => mo(t).format(e), vo = (e, t) => po(t).format(e), yo = (e, t) => fo(t).format(e), xo = (e, t = he()) => Dr(e, t), Eo = we([le, Te], () => _o);
3762
- we([le], () => go);
3763
- we([le], () => vo);
3764
- we([le], () => yo);
3765
- we([le, Te], () => xo);
3766
- function wo({ withLocale: e, translations: t }) {
3767
- le.subscribe((r) => {
3768
- r == null && (Te.set(t), le.set(e));
3798
+ }, Ao = (e, t) => Ho(t).format(e), Oo = (e, t) => So(t).format(e), Co = (e, t) => To(t).format(e), No = (e, t = ce()) => jr(e, t), Lo = Te([ue, Se], () => Po);
3799
+ Te([ue], () => Ao);
3800
+ Te([ue], () => Oo);
3801
+ Te([ue], () => Co);
3802
+ Te([ue, Se], () => No);
3803
+ function Io({ withLocale: e, translations: t }) {
3804
+ ue.subscribe((r) => {
3805
+ r == null && (Se.set(t), ue.set(e));
3769
3806
  });
3770
3807
  }
3771
- function Ut(e, t) {
3772
- kr(e, t);
3808
+ function Xt(e, t) {
3809
+ zr(e, t);
3773
3810
  }
3774
- function To(e) {
3775
- le.set(e);
3811
+ function Mo(e) {
3812
+ ue.set(e);
3776
3813
  }
3777
- function te(e) {
3814
+ function re(e) {
3778
3815
  return typeof e == "function";
3779
3816
  }
3780
- function Vr(e) {
3817
+ function Qr(e) {
3781
3818
  var t = function(n) {
3782
3819
  Error.call(n), n.stack = new Error().stack;
3783
3820
  }, r = e(t);
3784
3821
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
3785
3822
  }
3786
- var tt = Vr(function(e) {
3823
+ var it = Qr(function(e) {
3787
3824
  return function(r) {
3788
3825
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
3789
3826
  ` + r.map(function(n, i) {
@@ -3792,13 +3829,13 @@ var tt = Vr(function(e) {
3792
3829
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
3793
3830
  };
3794
3831
  });
3795
- function mt(e, t) {
3832
+ function _t(e, t) {
3796
3833
  if (e) {
3797
3834
  var r = e.indexOf(t);
3798
3835
  0 <= r && e.splice(r, 1);
3799
3836
  }
3800
3837
  }
3801
- var Ze = function() {
3838
+ var qe = function() {
3802
3839
  function e(t) {
3803
3840
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
3804
3841
  }
@@ -3810,7 +3847,7 @@ var Ze = function() {
3810
3847
  if (s)
3811
3848
  if (this._parentage = null, Array.isArray(s))
3812
3849
  try {
3813
- for (var a = it(s), l = a.next(); !l.done; l = a.next()) {
3850
+ for (var a = at(s), l = a.next(); !l.done; l = a.next()) {
3814
3851
  var u = l.value;
3815
3852
  u.remove(this);
3816
3853
  }
@@ -3826,22 +3863,22 @@ var Ze = function() {
3826
3863
  else
3827
3864
  s.remove(this);
3828
3865
  var h = this.initialTeardown;
3829
- if (te(h))
3866
+ if (re(h))
3830
3867
  try {
3831
3868
  h();
3832
3869
  } catch (_) {
3833
- o = _ instanceof tt ? _.errors : [_];
3870
+ o = _ instanceof it ? _.errors : [_];
3834
3871
  }
3835
3872
  var c = this._finalizers;
3836
3873
  if (c) {
3837
3874
  this._finalizers = null;
3838
3875
  try {
3839
- for (var f = it(c), b = f.next(); !b.done; b = f.next()) {
3876
+ for (var f = at(c), b = f.next(); !b.done; b = f.next()) {
3840
3877
  var v = b.value;
3841
3878
  try {
3842
- Gt(v);
3879
+ Wt(v);
3843
3880
  } catch (_) {
3844
- o = o ?? [], _ instanceof tt ? o = be(be([], ot(o)), ot(_.errors)) : o.push(_);
3881
+ o = o != null ? o : [], _ instanceof it ? o = _e(_e([], lt(o)), lt(_.errors)) : o.push(_);
3845
3882
  }
3846
3883
  }
3847
3884
  } catch (_) {
@@ -3855,13 +3892,13 @@ var Ze = function() {
3855
3892
  }
3856
3893
  }
3857
3894
  if (o)
3858
- throw new tt(o);
3895
+ throw new it(o);
3859
3896
  }
3860
3897
  }, e.prototype.add = function(t) {
3861
3898
  var r;
3862
3899
  if (t && t !== this)
3863
3900
  if (this.closed)
3864
- Gt(t);
3901
+ Wt(t);
3865
3902
  else {
3866
3903
  if (t instanceof e) {
3867
3904
  if (t.closed || t._hasParent(this))
@@ -3878,56 +3915,56 @@ var Ze = function() {
3878
3915
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
3879
3916
  }, e.prototype._removeParent = function(t) {
3880
3917
  var r = this._parentage;
3881
- r === t ? this._parentage = null : Array.isArray(r) && mt(r, t);
3918
+ r === t ? this._parentage = null : Array.isArray(r) && _t(r, t);
3882
3919
  }, e.prototype.remove = function(t) {
3883
3920
  var r = this._finalizers;
3884
- r && mt(r, t), t instanceof e && t._removeParent(this);
3921
+ r && _t(r, t), t instanceof e && t._removeParent(this);
3885
3922
  }, e.EMPTY = function() {
3886
3923
  var t = new e();
3887
3924
  return t.closed = !0, t;
3888
3925
  }(), e;
3889
- }(), zr = Ze.EMPTY;
3890
- function Xr(e) {
3891
- return e instanceof Ze || e && "closed" in e && te(e.remove) && te(e.add) && te(e.unsubscribe);
3926
+ }(), Jr = qe.EMPTY;
3927
+ function Yr(e) {
3928
+ return e instanceof qe || e && "closed" in e && re(e.remove) && re(e.add) && re(e.unsubscribe);
3892
3929
  }
3893
- function Gt(e) {
3894
- te(e) ? e() : e.unsubscribe();
3930
+ function Wt(e) {
3931
+ re(e) ? e() : e.unsubscribe();
3895
3932
  }
3896
- var So = {
3933
+ var Ro = {
3897
3934
  onUnhandledError: null,
3898
3935
  onStoppedNotification: null,
3899
3936
  Promise: void 0,
3900
3937
  useDeprecatedSynchronousErrorHandling: !1,
3901
3938
  useDeprecatedNextContext: !1
3902
- }, Ho = {
3939
+ }, Do = {
3903
3940
  setTimeout: function(e, t) {
3904
3941
  for (var r = [], n = 2; n < arguments.length; n++)
3905
3942
  r[n - 2] = arguments[n];
3906
- return setTimeout.apply(void 0, be([e, t], ot(r)));
3943
+ return setTimeout.apply(void 0, _e([e, t], lt(r)));
3907
3944
  },
3908
3945
  clearTimeout: function(e) {
3909
3946
  return clearTimeout(e);
3910
3947
  },
3911
3948
  delegate: void 0
3912
3949
  };
3913
- function Bo(e) {
3914
- Ho.setTimeout(function() {
3950
+ function Fo(e) {
3951
+ Do.setTimeout(function() {
3915
3952
  throw e;
3916
3953
  });
3917
3954
  }
3918
- function $t() {
3955
+ function Zt() {
3919
3956
  }
3920
- function Ue(e) {
3957
+ function Ge(e) {
3921
3958
  e();
3922
3959
  }
3923
- var Wr = function(e) {
3924
- ne(t, e);
3960
+ var Kr = function(e) {
3961
+ ie(t, e);
3925
3962
  function t(r) {
3926
3963
  var n = e.call(this) || this;
3927
- return n.isStopped = !1, r ? (n.destination = r, Xr(r) && r.add(n)) : n.destination = Oo, n;
3964
+ return n.isStopped = !1, r ? (n.destination = r, Yr(r) && r.add(n)) : n.destination = Go, n;
3928
3965
  }
3929
3966
  return t.create = function(r, n, i) {
3930
- return new dt(r, n, i);
3967
+ return new gt(r, n, i);
3931
3968
  }, t.prototype.next = function(r) {
3932
3969
  this.isStopped || this._next(r);
3933
3970
  }, t.prototype.error = function(r) {
@@ -3951,7 +3988,7 @@ var Wr = function(e) {
3951
3988
  this.unsubscribe();
3952
3989
  }
3953
3990
  }, t;
3954
- }(Ze), Po = function() {
3991
+ }(qe), Uo = function() {
3955
3992
  function e(t) {
3956
3993
  this.partialObserver = t;
3957
3994
  }
@@ -3961,7 +3998,7 @@ var Wr = function(e) {
3961
3998
  try {
3962
3999
  r.next(t);
3963
4000
  } catch (n) {
3964
- Re(n);
4001
+ De(n);
3965
4002
  }
3966
4003
  }, e.prototype.error = function(t) {
3967
4004
  var r = this.partialObserver;
@@ -3969,56 +4006,56 @@ var Wr = function(e) {
3969
4006
  try {
3970
4007
  r.error(t);
3971
4008
  } catch (n) {
3972
- Re(n);
4009
+ De(n);
3973
4010
  }
3974
4011
  else
3975
- Re(t);
4012
+ De(t);
3976
4013
  }, e.prototype.complete = function() {
3977
4014
  var t = this.partialObserver;
3978
4015
  if (t.complete)
3979
4016
  try {
3980
4017
  t.complete();
3981
4018
  } catch (r) {
3982
- Re(r);
4019
+ De(r);
3983
4020
  }
3984
4021
  }, e;
3985
- }(), dt = function(e) {
3986
- ne(t, e);
4022
+ }(), gt = function(e) {
4023
+ ie(t, e);
3987
4024
  function t(r, n, i) {
3988
4025
  var o = e.call(this) || this, s;
3989
- return te(r) || !r ? s = {
3990
- next: r ?? void 0,
3991
- error: n ?? void 0,
3992
- complete: i ?? void 0
3993
- } : s = r, o.destination = new Po(s), o;
4026
+ return re(r) || !r ? s = {
4027
+ next: r != null ? r : void 0,
4028
+ error: n != null ? n : void 0,
4029
+ complete: i != null ? i : void 0
4030
+ } : s = r, o.destination = new Uo(s), o;
3994
4031
  }
3995
4032
  return t;
3996
- }(Wr);
3997
- function Re(e) {
3998
- Bo(e);
4033
+ }(Kr);
4034
+ function De(e) {
4035
+ Fo(e);
3999
4036
  }
4000
- function Ao(e) {
4037
+ function ko(e) {
4001
4038
  throw e;
4002
4039
  }
4003
- var Oo = {
4040
+ var Go = {
4004
4041
  closed: !0,
4005
- next: $t,
4006
- error: Ao,
4007
- complete: $t
4008
- }, Co = function() {
4042
+ next: Zt,
4043
+ error: ko,
4044
+ complete: Zt
4045
+ }, $o = function() {
4009
4046
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4010
4047
  }();
4011
- function No(e) {
4048
+ function jo(e) {
4012
4049
  return e;
4013
4050
  }
4014
- function Lo(e) {
4015
- return e.length === 0 ? No : e.length === 1 ? e[0] : function(r) {
4051
+ function Vo(e) {
4052
+ return e.length === 0 ? jo : e.length === 1 ? e[0] : function(r) {
4016
4053
  return e.reduce(function(n, i) {
4017
4054
  return i(n);
4018
4055
  }, r);
4019
4056
  };
4020
4057
  }
4021
- var jt = function() {
4058
+ var qt = function() {
4022
4059
  function e(t) {
4023
4060
  t && (this._subscribe = t);
4024
4061
  }
@@ -4026,8 +4063,8 @@ var jt = function() {
4026
4063
  var r = new e();
4027
4064
  return r.source = this, r.operator = t, r;
4028
4065
  }, e.prototype.subscribe = function(t, r, n) {
4029
- var i = this, o = Mo(t) ? t : new dt(t, r, n);
4030
- return Ue(function() {
4066
+ var i = this, o = Xo(t) ? t : new gt(t, r, n);
4067
+ return Ge(function() {
4031
4068
  var s = i, a = s.operator, l = s.source;
4032
4069
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4033
4070
  }), o;
@@ -4039,8 +4076,8 @@ var jt = function() {
4039
4076
  }
4040
4077
  }, e.prototype.forEach = function(t, r) {
4041
4078
  var n = this;
4042
- return r = Vt(r), new r(function(i, o) {
4043
- var s = new dt({
4079
+ return r = Qt(r), new r(function(i, o) {
4080
+ var s = new gt({
4044
4081
  next: function(a) {
4045
4082
  try {
4046
4083
  t(a);
@@ -4056,15 +4093,15 @@ var jt = function() {
4056
4093
  }, e.prototype._subscribe = function(t) {
4057
4094
  var r;
4058
4095
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
4059
- }, e.prototype[Co] = function() {
4096
+ }, e.prototype[$o] = function() {
4060
4097
  return this;
4061
4098
  }, e.prototype.pipe = function() {
4062
4099
  for (var t = [], r = 0; r < arguments.length; r++)
4063
4100
  t[r] = arguments[r];
4064
- return Lo(t)(this);
4101
+ return Vo(t)(this);
4065
4102
  }, e.prototype.toPromise = function(t) {
4066
4103
  var r = this;
4067
- return t = Vt(t), new t(function(n, i) {
4104
+ return t = Qt(t), new t(function(n, i) {
4068
4105
  var o;
4069
4106
  r.subscribe(function(s) {
4070
4107
  return o = s;
@@ -4078,40 +4115,40 @@ var jt = function() {
4078
4115
  return new e(t);
4079
4116
  }, e;
4080
4117
  }();
4081
- function Vt(e) {
4118
+ function Qt(e) {
4082
4119
  var t;
4083
- return (t = e ?? So.Promise) !== null && t !== void 0 ? t : Promise;
4120
+ return (t = e != null ? e : Ro.Promise) !== null && t !== void 0 ? t : Promise;
4084
4121
  }
4085
- function Io(e) {
4086
- return e && te(e.next) && te(e.error) && te(e.complete);
4122
+ function zo(e) {
4123
+ return e && re(e.next) && re(e.error) && re(e.complete);
4087
4124
  }
4088
- function Mo(e) {
4089
- return e && e instanceof Wr || Io(e) && Xr(e);
4125
+ function Xo(e) {
4126
+ return e && e instanceof Kr || zo(e) && Yr(e);
4090
4127
  }
4091
- var Ro = Vr(function(e) {
4128
+ var Wo = Qr(function(e) {
4092
4129
  return function() {
4093
4130
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4094
4131
  };
4095
- }), Zr = function(e) {
4096
- ne(t, e);
4132
+ }), en = function(e) {
4133
+ ie(t, e);
4097
4134
  function t() {
4098
4135
  var r = e.call(this) || this;
4099
4136
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
4100
4137
  }
4101
4138
  return t.prototype.lift = function(r) {
4102
- var n = new zt(this, this);
4139
+ var n = new Jt(this, this);
4103
4140
  return n.operator = r, n;
4104
4141
  }, t.prototype._throwIfClosed = function() {
4105
4142
  if (this.closed)
4106
- throw new Ro();
4143
+ throw new Wo();
4107
4144
  }, t.prototype.next = function(r) {
4108
4145
  var n = this;
4109
- Ue(function() {
4146
+ Ge(function() {
4110
4147
  var i, o;
4111
4148
  if (n._throwIfClosed(), !n.isStopped) {
4112
4149
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
4113
4150
  try {
4114
- for (var s = it(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4151
+ for (var s = at(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4115
4152
  var l = a.value;
4116
4153
  l.next(r);
4117
4154
  }
@@ -4128,7 +4165,7 @@ var Ro = Vr(function(e) {
4128
4165
  });
4129
4166
  }, t.prototype.error = function(r) {
4130
4167
  var n = this;
4131
- Ue(function() {
4168
+ Ge(function() {
4132
4169
  if (n._throwIfClosed(), !n.isStopped) {
4133
4170
  n.hasError = n.isStopped = !0, n.thrownError = r;
4134
4171
  for (var i = n.observers; i.length; )
@@ -4137,7 +4174,7 @@ var Ro = Vr(function(e) {
4137
4174
  });
4138
4175
  }, t.prototype.complete = function() {
4139
4176
  var r = this;
4140
- Ue(function() {
4177
+ Ge(function() {
4141
4178
  if (r._throwIfClosed(), !r.isStopped) {
4142
4179
  r.isStopped = !0;
4143
4180
  for (var n = r.observers; n.length; )
@@ -4159,20 +4196,20 @@ var Ro = Vr(function(e) {
4159
4196
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4160
4197
  }, t.prototype._innerSubscribe = function(r) {
4161
4198
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4162
- return o || s ? zr : (this.currentObservers = null, a.push(r), new Ze(function() {
4163
- n.currentObservers = null, mt(a, r);
4199
+ return o || s ? Jr : (this.currentObservers = null, a.push(r), new qe(function() {
4200
+ n.currentObservers = null, _t(a, r);
4164
4201
  }));
4165
4202
  }, t.prototype._checkFinalizedStatuses = function(r) {
4166
4203
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
4167
4204
  i ? r.error(o) : s && r.complete();
4168
4205
  }, t.prototype.asObservable = function() {
4169
- var r = new jt();
4206
+ var r = new qt();
4170
4207
  return r.source = this, r;
4171
4208
  }, t.create = function(r, n) {
4172
- return new zt(r, n);
4209
+ return new Jt(r, n);
4173
4210
  }, t;
4174
- }(jt), zt = function(e) {
4175
- ne(t, e);
4211
+ }(qt), Jt = function(e) {
4212
+ ie(t, e);
4176
4213
  function t(r, n) {
4177
4214
  var i = e.call(this) || this;
4178
4215
  return i.destination = r, i.source = n, i;
@@ -4188,17 +4225,17 @@ var Ro = Vr(function(e) {
4188
4225
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
4189
4226
  }, t.prototype._subscribe = function(r) {
4190
4227
  var n, i;
4191
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : zr;
4228
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Jr;
4192
4229
  }, t;
4193
- }(Zr), qr = {
4230
+ }(en), tn = {
4194
4231
  now: function() {
4195
- return (qr.delegate || Date).now();
4232
+ return (tn.delegate || Date).now();
4196
4233
  },
4197
4234
  delegate: void 0
4198
- }, Do = function(e) {
4199
- ne(t, e);
4235
+ }, Zo = function(e) {
4236
+ ie(t, e);
4200
4237
  function t(r, n, i) {
4201
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = qr);
4238
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = tn);
4202
4239
  var o = e.call(this) || this;
4203
4240
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
4204
4241
  }
@@ -4218,16 +4255,16 @@ var Ro = Vr(function(e) {
4218
4255
  u && o.splice(0, u + 1);
4219
4256
  }
4220
4257
  }, t;
4221
- }(Zr);
4222
- const Xt = [], Wt = {}, Fo = (e, t = 0) => {
4223
- if (Xt.indexOf(e) == -1) {
4224
- const r = new Do(t);
4225
- Wt[e] = r, Xt.push(e);
4258
+ }(en);
4259
+ const Yt = [], Kt = {}, qo = (e, t = 0) => {
4260
+ if (Yt.indexOf(e) == -1) {
4261
+ const r = new Zo(t);
4262
+ Kt[e] = r, Yt.push(e);
4226
4263
  }
4227
- return Wt[e];
4264
+ return Kt[e];
4228
4265
  };
4229
- window.emWidgets = { topic: Fo };
4230
- const ko = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Zt = {
4266
+ window.emWidgets = { topic: qo };
4267
+ const Qo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", er = {
4231
4268
  en: {
4232
4269
  promotionsTitle: "Promotions",
4233
4270
  promotionsButton: "More Info",
@@ -4306,120 +4343,120 @@ const ko = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase(
4306
4343
  promotionsTerms: "Terms and Conditions"
4307
4344
  }
4308
4345
  };
4309
- function Uo(e) {
4310
- pn(e, "svelte-13skimd", '*,*::before,*::after{padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.text--ellipsis>*{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.promotion__filter{background-color:var(--emw--color-700, #003D5D);padding:6px 80px;border-radius:var(--emw--border-radius-medium, 10px);display:flex;justify-content:center;width:max-content;margin:0 auto;margin-bottom:20px;margin-top:20px}@media screen and (max-width: 1200px){.promotion__filter{width:100%;justify-content:unset;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;margin:0 auto;margin-bottom:20px;margin-top:20px}}.promotion__filter .tab-list{list-style:none;margin:0;padding:0;display:flex;gap:60px}@media screen and (max-width: 1200px){.promotion__filter .tab-list{margin:0 auto}}.promotion__filter .tab-item{position:relative;cursor:pointer}.promotion__filter .tab-item button{text-decoration:none;color:var(--emw--color-white, white);font-size:var(--emw--font-size-medium, 20px);display:inline-block;margin:8px 0px;background-color:transparent;border:0;cursor:pointer}.promotion__filter .tab-item button:hover{color:var(--emw--color-primary, #22B04E)}.promotion__filter .tab-item.active button{color:var(--emw--color-primary, #22B04E)}.promotion__filter .tab-item.active::after{content:"";position:absolute;left:50%;bottom:-5px;transform:translateX(-50%);width:50px;height:2px;background-color:var(--emw--color-white, white)}.promotion__wrapper{min-height:100vh;background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.promotion__section{min-height:100vh;width:100%;background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.promotions{margin:0 auto;max-width:1300px;padding:24px 0;color:var(--emw--color-white, #FFFFFF)}@media screen and (max-width: 1300px){.promotions{padding:24px 2.4%}}.promotions__title{font-size:22px;font-weight:normal;margin-bottom:18px;color:var(--emw--color-contrast)}.promotions__grid{display:grid;grid-auto-rows:220px;grid-template-columns:1fr;grid-row-gap:16px}.md .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(2, 1fr);grid-gap:20px}.xl .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(3, 1fr);grid-gap:30px}.promotions__none{padding:50px 0;text-align:center;font-size:30px}.promo{display:flex;position:relative;flex-direction:column;justify-content:flex-end;width:100%;height:auto;padding:12px 8px;border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;overflow:hidden;transition:all 150ms ease}.promo:hover{border:1px solid var(--emw--color-white, #FFFFFF)}.promo__picture{position:absolute;width:100%;height:100%;top:0;left:0;z-index:0}.promo__picture img{width:100%;height:100%;object-fit:cover;border-radius:5px}.promo__picture::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:rgb(0, 0, 0);background:linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(7, 7, 42, 0.2) 90%)}.promo__details{padding:0 10px 13px 17px;z-index:5}.promo__title{display:inline-block;margin-bottom:6px;font-size:18px;font-weight:normal}.promo__content{margin-bottom:15px;font-size:14px}.promo__button{font-size:14px;text-transform:uppercase;padding:10px 20px;background:none;color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF);border-radius:5px;cursor:pointer;transition:all 150ms ease}.promo__button:hover{background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.page{display:none;margin:0 auto;width:80%;margin-bottom:40px}.page__body_title{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.page--open{max-width:1000px;flex-direction:column;display:flex;position:relative;justify-content:center}.page__header{align-items:stretch;text-decoration:underline;text-align:center}.page__header img{width:90%;margin:2%;border-radius:5px;box-shadow:rgba(220, 220, 220, 0.414) 0px 8px 24px}.page__tab{padding:0px 30px;background-color:grey;border-radius:5px;cursor:pointer;margin:35px 0px;display:flex;justify-content:space-between;align-items:center;transition:all 150ms ease}.page__tab .active{-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg);-moz-transition:all 0.5s linear;-webkit-transition:all 0.5s linear;transition:all 0.5s linear}.page__tab p{font-size:20px;outline:0}.page__tab p:focus{-webkit-transform:rotate(95deg);-ms-transform:rotate(95deg);transform:rotate(95deg)}.page__tab:hover{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.page__tabContentWrapper.hidden{display:none}.page__close{height:40px;cursor:pointer;transition:all 150ms ease;color:var(--emw--color-contrast, #FFFFFF);background-color:rgba(20, 20, 32, 0.3);border-radius:50%;width:max-content;font-size:75%}.page__close:hover{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.modal{display:none;justify-content:center;align-items:center;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}.modal--open{display:flex}.modal__backdrop{position:absolute;background-color:var(--emw--casino-contrast, var(--emw--color-background, #07072A));opacity:0.6;width:100%;height:100%;z-index:105}.modal__content{position:relative;display:flex;flex-direction:column;width:100%;background-color:var(--emw--color-gray-50, #F9F8F8);z-index:110;border-radius:5px}.md .modal__content{width:700px;height:70%}.modal__close{position:absolute;width:36px;height:36px;top:10px;right:10px;z-index:110;cursor:pointer;transition:all 150ms ease;color:var(--emw--color-white, #FFFFFF);background-color:rgba(20, 20, 32, 0.3);border-radius:50%}.modal__close:hover{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839))}.modal__picture img{width:100%;height:200px;object-fit:cover;border-top:3px solid var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));border-top-left-radius:5px;border-top-right-radius:5px}.md .modal__picture img{height:300px}.modal__body{padding:16px 8px;color:var(--emw--color-black, #000000);height:calc(100vh - 200px);overflow-y:auto;border-top-left-radius:5px;border-top-right-radius:5px}.modal__body_title{font-size:18px;margin-bottom:10px;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.modal__body_content{font-size:14px;line-height:1.3}.modal__body_content *{margin-bottom:8px}.md .modal__body{height:calc(100vh - 300px);padding:22px 8%}.lg .modal__body{padding:30px 40px}.modal__tabs{position:relative;display:inline-flex;width:100%;flex-wrap:nowrap;gap:14px;white-space:nowrap;overflow-x:auto;margin-bottom:20px}.modal__tabs::before{content:"";position:absolute;bottom:4px;left:0;width:100%;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6);z-index:125}.modal__tab{background:none;border:none;padding:8px 0;color:var(--emw--color-gray-150, #828282);font-size:14px;cursor:pointer;transition:all 150ms ease}.modal__tab--active{position:relative;color:var(--emw--casino-contrast, var(--emw--color-contrast, #07072A));z-index:130}.modal__tab--active:before{content:"";left:0;bottom:-4px;position:absolute;width:100%;height:2px;background-color:var(--emw--casino-contrast, var(--emw--color-background, #07072A))}.modal__tab:hover{color:var(--emw--casino-contrast, var(--emw--color-contrast, #07072A))}');
4346
+ function Jo(e) {
4347
+ Tn(e, "svelte-13skimd", '*,*::before,*::after{padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.text--ellipsis>*{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.promotion__filter{background-color:var(--emw--color-700, #003D5D);padding:6px 80px;border-radius:var(--emw--border-radius-medium, 10px);display:flex;justify-content:center;width:max-content;margin:0 auto;margin-bottom:20px;margin-top:20px}@media screen and (max-width: 1200px){.promotion__filter{width:100%;justify-content:unset;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;margin:0 auto;margin-bottom:20px;margin-top:20px}}.promotion__filter .tab-list{list-style:none;margin:0;padding:0;display:flex;gap:60px}@media screen and (max-width: 1200px){.promotion__filter .tab-list{margin:0 auto}}.promotion__filter .tab-item{position:relative;cursor:pointer}.promotion__filter .tab-item button{text-decoration:none;color:var(--emw--color-white, white);font-size:var(--emw--font-size-medium, 20px);display:inline-block;margin:8px 0px;background-color:transparent;border:0;cursor:pointer}.promotion__filter .tab-item button:hover{color:var(--emw--color-primary, #22B04E)}.promotion__filter .tab-item.active button{color:var(--emw--color-primary, #22B04E)}.promotion__filter .tab-item.active::after{content:"";position:absolute;left:50%;bottom:-5px;transform:translateX(-50%);width:50px;height:2px;background-color:var(--emw--color-white, white)}.promotion__wrapper{min-height:100vh;background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.promotion__section{min-height:100vh;width:100%;background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.promotions{margin:0 auto;max-width:1300px;padding:24px 0;color:var(--emw--color-white, #FFFFFF)}@media screen and (max-width: 1300px){.promotions{padding:24px 2.4%}}.promotions__title{font-size:22px;font-weight:normal;margin-bottom:18px;color:var(--emw--color-contrast)}.promotions__grid{display:grid;grid-auto-rows:220px;grid-template-columns:1fr;grid-row-gap:16px}.md .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(2, 1fr);grid-gap:20px}.xl .promotions__grid{grid-auto-rows:260px;grid-template-columns:repeat(3, 1fr);grid-gap:30px}.promotions__none{padding:50px 0;text-align:center;font-size:30px}.promo{display:flex;position:relative;flex-direction:column;justify-content:flex-end;width:100%;height:auto;padding:12px 8px;border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;overflow:hidden;transition:all 150ms ease}.promo:hover{border:1px solid var(--emw--color-white, #FFFFFF)}.promo__picture{position:absolute;width:100%;height:100%;top:0;left:0;z-index:0}.promo__picture img{width:100%;height:100%;object-fit:cover;border-radius:5px}.promo__picture::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:rgb(0, 0, 0);background:linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(7, 7, 42, 0.2) 90%)}.promo__details{padding:0 10px 13px 17px;z-index:5}.promo__title{display:inline-block;margin-bottom:6px;font-size:18px;font-weight:normal}.promo__content{margin-bottom:15px;font-size:14px}.promo__button{font-size:14px;text-transform:uppercase;padding:10px 20px;background:none;color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF);border-radius:5px;cursor:pointer;transition:all 150ms ease}.promo__button:hover{background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.page{display:none;margin:0 auto;width:80%;margin-bottom:40px}.page__body_title{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.page--open{max-width:1000px;flex-direction:column;display:flex;position:relative;justify-content:center}.page__header{align-items:stretch;text-decoration:underline;text-align:center}.page__header img{width:90%;margin:2%;border-radius:5px;box-shadow:rgba(220, 220, 220, 0.414) 0px 8px 24px}.page__tab{padding:0px 30px;background-color:grey;border-radius:5px;cursor:pointer;margin:35px 0px;display:flex;justify-content:space-between;align-items:center;transition:all 150ms ease}.page__tab .active{-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg);-moz-transition:all 0.5s linear;-webkit-transition:all 0.5s linear;transition:all 0.5s linear}.page__tab p{font-size:20px;outline:0}.page__tab p:focus{-webkit-transform:rotate(95deg);-ms-transform:rotate(95deg);transform:rotate(95deg)}.page__tab:hover{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.page__tabContentWrapper.hidden{display:none}.page__close{height:40px;cursor:pointer;transition:all 150ms ease;color:var(--emw--color-contrast, #FFFFFF);background-color:rgba(20, 20, 32, 0.3);border-radius:50%;width:max-content;font-size:75%}.page__close:hover{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.modal{display:none;justify-content:center;align-items:center;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100}.modal--open{display:flex}.modal__backdrop{position:absolute;background-color:var(--emw--casino-contrast, var(--emw--color-background, #07072A));opacity:0.6;width:100%;height:100%;z-index:105}.modal__content{position:relative;display:flex;flex-direction:column;width:100%;background-color:var(--emw--color-gray-50, #F9F8F8);z-index:110;border-radius:5px}.md .modal__content{width:700px;height:70%}.modal__close{position:absolute;width:36px;height:36px;top:10px;right:10px;z-index:110;cursor:pointer;transition:all 150ms ease;color:var(--emw--color-white, #FFFFFF);background-color:rgba(20, 20, 32, 0.3);border-radius:50%}.modal__close:hover{color:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839))}.modal__picture img{width:100%;height:200px;object-fit:cover;border-top:3px solid var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));border-top-left-radius:5px;border-top-right-radius:5px}.md .modal__picture img{height:300px}.modal__body{padding:16px 8px;color:var(--emw--color-black, #000000);height:calc(100vh - 200px);overflow-y:auto;border-top-left-radius:5px;border-top-right-radius:5px}.modal__body_title{font-size:18px;margin-bottom:10px;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.modal__body_content{font-size:14px;line-height:1.3}.modal__body_content *{margin-bottom:8px}.md .modal__body{height:calc(100vh - 300px);padding:22px 8%}.lg .modal__body{padding:30px 40px}.modal__tabs{position:relative;display:inline-flex;width:100%;flex-wrap:nowrap;gap:14px;white-space:nowrap;overflow-x:auto;margin-bottom:20px}.modal__tabs::before{content:"";position:absolute;bottom:4px;left:0;width:100%;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6);z-index:125}.modal__tab{background:none;border:none;padding:8px 0;color:var(--emw--color-gray-150, #828282);font-size:14px;cursor:pointer;transition:all 150ms ease}.modal__tab--active{position:relative;color:var(--emw--casino-contrast, var(--emw--color-contrast, #07072A));z-index:130}.modal__tab--active:before{content:"";left:0;bottom:-4px;position:absolute;width:100%;height:2px;background-color:var(--emw--casino-contrast, var(--emw--color-background, #07072A))}.modal__tab:hover{color:var(--emw--casino-contrast, var(--emw--color-contrast, #07072A))}');
4311
4348
  }
4312
- function qt(e, t, r) {
4349
+ function tr(e, t, r) {
4313
4350
  const n = e.slice();
4314
4351
  return n[52] = t[r], n;
4315
4352
  }
4316
- function Qt(e, t, r) {
4353
+ function rr(e, t, r) {
4317
4354
  const n = e.slice();
4318
4355
  return n[55] = t[r], n[57] = r, n;
4319
4356
  }
4320
- function Jt(e, t, r) {
4357
+ function nr(e, t, r) {
4321
4358
  const n = e.slice();
4322
4359
  return n[52] = t[r], n;
4323
4360
  }
4324
- function Yt(e, t, r) {
4361
+ function ir(e, t, r) {
4325
4362
  const n = e.slice();
4326
4363
  return n[60] = t[r], n;
4327
4364
  }
4328
- function Kt(e, t, r) {
4365
+ function or(e, t, r) {
4329
4366
  const n = e.slice();
4330
4367
  return n[52] = t[r], n;
4331
4368
  }
4332
- function er(e, t, r) {
4369
+ function sr(e, t, r) {
4333
4370
  const n = e.slice();
4334
4371
  return n[65] = t[r], n;
4335
4372
  }
4336
- function tr(e) {
4337
- let t, r, n, i, o, s, a, l, u, h, c, f, b, v, _, O, I, C, N, U, P, y, x, E, S, L, q, He, j = (
4373
+ function ar(e) {
4374
+ let t, r, n, i, o, s, a, l, u, h, c, f, b, v, _, O, I, C, N, k, P, y, x, E, S, L, Q, Be, j = (
4338
4375
  /*isPageOpen*/
4339
- e[7] !== !0 && rr(e)
4340
- ), Y = Z(
4376
+ e[7] !== !0 && lr(e)
4377
+ ), K = q(
4341
4378
  /*promoDetailsSources*/
4342
4379
  e[11]
4343
- ), k = [];
4344
- for (let w = 0; w < Y.length; w += 1)
4345
- k[w] = lr(Jt(e, Y, w));
4346
- let K = Z(
4380
+ ), U = [];
4381
+ for (let w = 0; w < K.length; w += 1)
4382
+ U[w] = mr(nr(e, K, w));
4383
+ let ee = q(
4347
4384
  /*promoDetailsTabs*/
4348
4385
  e[12]
4349
4386
  ), G = [];
4350
- for (let w = 0; w < K.length; w += 1)
4351
- G[w] = ur(Qt(e, K, w));
4387
+ for (let w = 0; w < ee.length; w += 1)
4388
+ G[w] = dr(rr(e, ee, w));
4352
4389
  let V = (
4353
4390
  /*isPageOpen*/
4354
- e[7] == !0 && hr(e)
4391
+ e[7] == !0 && br(e)
4355
4392
  );
4356
4393
  return {
4357
4394
  c() {
4358
4395
  t = g("section"), r = g("div"), j && j.c(), n = F(), i = g("div"), o = g("div"), s = F(), a = g("div"), l = g("div"), l.innerHTML = '<svg class="w-6 h-6" 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="M6 18L18 6M6 6l12 12"></path></svg>', u = F(), h = g("div"), c = g("picture");
4359
- for (let w = 0; w < k.length; w += 1)
4360
- k[w].c();
4396
+ for (let w = 0; w < U.length; w += 1)
4397
+ U[w].c();
4361
4398
  f = F(), b = g("img"), _ = F(), O = g("div"), I = g("div"), C = g("ul");
4362
4399
  for (let w = 0; w < G.length; w += 1)
4363
4400
  G[w].c();
4364
- N = F(), U = g("div"), P = g("h3"), y = F(), x = g("div"), E = F(), V && V.c(), m(o, "class", "modal__backdrop"), m(l, "class", "modal__close"), ae(b.src, v = /*promoDetailsImage*/
4401
+ N = F(), k = g("div"), P = g("h3"), y = F(), x = g("div"), E = F(), V && V.c(), m(o, "class", "modal__backdrop"), m(l, "class", "modal__close"), le(b.src, v = /*promoDetailsImage*/
4365
4402
  e[10]) || m(b, "src", v), m(
4366
4403
  b,
4367
4404
  "alt",
4368
4405
  /*promoDetailsTitle*/
4369
4406
  e[8]
4370
- ), m(c, "class", "modal__picture"), m(h, "class", "modal__header"), m(C, "class", "modal__tabs"), m(P, "class", "modal__body_title"), m(x, "class", "modal__tab_content"), m(U, "class", "modal__tabContentWrapper"), m(I, "class", "modal__body_content"), m(O, "class", "modal__body"), m(a, "class", "modal__content"), m(i, "class", "promo__modal modal"), m(r, "class", S = "promotions " + /*currentBreakpoint*/
4371
- e[5]), Ge(() => (
4407
+ ), m(c, "class", "modal__picture"), m(h, "class", "modal__header"), m(C, "class", "modal__tabs"), m(P, "class", "modal__body_title"), m(x, "class", "modal__tab_content"), m(k, "class", "modal__tabContentWrapper"), m(I, "class", "modal__body_content"), m(O, "class", "modal__body"), m(a, "class", "modal__content"), m(i, "class", "promo__modal modal"), m(r, "class", S = "promotions " + /*currentBreakpoint*/
4408
+ e[5]), $e(() => (
4372
4409
  /*div9_elementresize_handler*/
4373
4410
  e[37].call(r)
4374
4411
  )), m(t, "class", "promotion__section");
4375
4412
  },
4376
4413
  m(w, z) {
4377
4414
  D(w, t, z), d(t, r), j && j.m(r, null), d(r, n), d(r, i), d(i, o), d(i, s), d(i, a), d(a, l), d(a, u), d(a, h), d(h, c);
4378
- for (let T = 0; T < k.length; T += 1)
4379
- k[T] && k[T].m(c, null);
4415
+ for (let T = 0; T < U.length; T += 1)
4416
+ U[T] && U[T].m(c, null);
4380
4417
  d(c, f), d(c, b), d(a, _), d(a, O), d(O, I), d(I, C);
4381
4418
  for (let T = 0; T < G.length; T += 1)
4382
4419
  G[T] && G[T].m(C, null);
4383
- d(I, N), d(I, U), d(U, P), P.innerHTML = /*promoDetailsTitle*/
4384
- e[8], d(U, y), d(U, x), x.innerHTML = /*promoDetailsContent*/
4385
- e[9], e[34](I), d(r, E), V && V.m(r, null), L = gn(
4420
+ d(I, N), d(I, k), d(k, P), P.innerHTML = /*promoDetailsTitle*/
4421
+ e[8], d(k, y), d(k, x), x.innerHTML = /*promoDetailsContent*/
4422
+ e[9], e[34](I), d(r, E), V && V.m(r, null), L = An(
4386
4423
  r,
4387
4424
  /*div9_elementresize_handler*/
4388
4425
  e[37].bind(r)
4389
- ), e[38](r), q || (He = [
4390
- re(
4426
+ ), e[38](r), Q || (Be = [
4427
+ ne(
4391
4428
  o,
4392
4429
  "click",
4393
4430
  /*closePromo*/
4394
4431
  e[21]
4395
4432
  ),
4396
- re(
4433
+ ne(
4397
4434
  l,
4398
4435
  "click",
4399
4436
  /*closePromo*/
4400
4437
  e[21]
4401
4438
  )
4402
- ], q = !0);
4439
+ ], Q = !0);
4403
4440
  },
4404
4441
  p(w, z) {
4405
4442
  if (/*isPageOpen*/
4406
- w[7] !== !0 ? j ? j.p(w, z) : (j = rr(w), j.c(), j.m(r, n)) : j && (j.d(1), j = null), z[0] & /*promoDetailsSources*/
4443
+ w[7] !== !0 ? j ? j.p(w, z) : (j = lr(w), j.c(), j.m(r, n)) : j && (j.d(1), j = null), z[0] & /*promoDetailsSources*/
4407
4444
  2048) {
4408
- Y = Z(
4445
+ K = q(
4409
4446
  /*promoDetailsSources*/
4410
4447
  w[11]
4411
4448
  );
4412
4449
  let T;
4413
- for (T = 0; T < Y.length; T += 1) {
4414
- const ie = Jt(w, Y, T);
4415
- k[T] ? k[T].p(ie, z) : (k[T] = lr(ie), k[T].c(), k[T].m(c, f));
4450
+ for (T = 0; T < K.length; T += 1) {
4451
+ const oe = nr(w, K, T);
4452
+ U[T] ? U[T].p(oe, z) : (U[T] = mr(oe), U[T].c(), U[T].m(c, f));
4416
4453
  }
4417
- for (; T < k.length; T += 1)
4418
- k[T].d(1);
4419
- k.length = Y.length;
4454
+ for (; T < U.length; T += 1)
4455
+ U[T].d(1);
4456
+ U.length = K.length;
4420
4457
  }
4421
4458
  if (z[0] & /*promoDetailsImage*/
4422
- 1024 && !ae(b.src, v = /*promoDetailsImage*/
4459
+ 1024 && !le(b.src, v = /*promoDetailsImage*/
4423
4460
  w[10]) && m(b, "src", v), z[0] & /*promoDetailsTitle*/
4424
4461
  256 && m(
4425
4462
  b,
@@ -4428,51 +4465,51 @@ function tr(e) {
4428
4465
  w[8]
4429
4466
  ), z[0] & /*switchTabContent, promoDetailsTabs*/
4430
4467
  4198400) {
4431
- K = Z(
4468
+ ee = q(
4432
4469
  /*promoDetailsTabs*/
4433
4470
  w[12]
4434
4471
  );
4435
4472
  let T;
4436
- for (T = 0; T < K.length; T += 1) {
4437
- const ie = Qt(w, K, T);
4438
- G[T] ? G[T].p(ie, z) : (G[T] = ur(ie), G[T].c(), G[T].m(C, null));
4473
+ for (T = 0; T < ee.length; T += 1) {
4474
+ const oe = rr(w, ee, T);
4475
+ G[T] ? G[T].p(oe, z) : (G[T] = dr(oe), G[T].c(), G[T].m(C, null));
4439
4476
  }
4440
4477
  for (; T < G.length; T += 1)
4441
4478
  G[T].d(1);
4442
- G.length = K.length;
4479
+ G.length = ee.length;
4443
4480
  }
4444
4481
  z[0] & /*promoDetailsTitle*/
4445
4482
  256 && (P.innerHTML = /*promoDetailsTitle*/
4446
4483
  w[8]), z[0] & /*promoDetailsContent*/
4447
4484
  512 && (x.innerHTML = /*promoDetailsContent*/
4448
4485
  w[9]), /*isPageOpen*/
4449
- w[7] == !0 ? V ? V.p(w, z) : (V = hr(w), V.c(), V.m(r, null)) : V && (V.d(1), V = null), z[0] & /*currentBreakpoint*/
4486
+ w[7] == !0 ? V ? V.p(w, z) : (V = br(w), V.c(), V.m(r, null)) : V && (V.d(1), V = null), z[0] & /*currentBreakpoint*/
4450
4487
  32 && S !== (S = "promotions " + /*currentBreakpoint*/
4451
4488
  w[5]) && m(r, "class", S);
4452
4489
  },
4453
4490
  d(w) {
4454
- w && M(t), j && j.d(), _e(k, w), _e(G, w), e[34](null), V && V.d(), L(), e[38](null), q = !1, Ee(He);
4491
+ w && M(t), j && j.d(), ge(U, w), ge(G, w), e[34](null), V && V.d(), L(), e[38](null), Q = !1, we(Be);
4455
4492
  }
4456
4493
  };
4457
4494
  }
4458
- function rr(e) {
4495
+ function lr(e) {
4459
4496
  let t, r = (
4460
4497
  /*$_*/
4461
4498
  e[19]("promotionsTitle") + ""
4462
4499
  ), n, i, o, s, a = (
4463
4500
  /*promotionsfilter*/
4464
- e[0] === "true" && nr(e)
4501
+ e[0] === "true" && ur(e)
4465
4502
  );
4466
4503
  function l(c, f) {
4467
4504
  return (
4468
4505
  /*promotions*/
4469
- c[2].length > 0 ? $o : Go
4506
+ c[2].length > 0 ? Ko : Yo
4470
4507
  );
4471
4508
  }
4472
4509
  let u = l(e), h = u(e);
4473
4510
  return {
4474
4511
  c() {
4475
- t = g("h1"), n = ee(r), i = F(), a && a.c(), o = F(), h.c(), s = _t(), m(t, "class", "promotions__title");
4512
+ t = g("h1"), n = te(r), i = F(), a && a.c(), o = F(), h.c(), s = yt(), m(t, "class", "promotions__title");
4476
4513
  },
4477
4514
  m(c, f) {
4478
4515
  D(c, t, f), d(t, n), D(c, i, f), a && a.m(c, f), D(c, o, f), h.m(c, f), D(c, s, f);
@@ -4480,21 +4517,21 @@ function rr(e) {
4480
4517
  p(c, f) {
4481
4518
  f[0] & /*$_*/
4482
4519
  524288 && r !== (r = /*$_*/
4483
- c[19]("promotionsTitle") + "") && ue(n, r), /*promotionsfilter*/
4484
- c[0] === "true" ? a ? a.p(c, f) : (a = nr(c), a.c(), a.m(o.parentNode, o)) : a && (a.d(1), a = null), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(s.parentNode, s)));
4520
+ c[19]("promotionsTitle") + "") && he(n, r), /*promotionsfilter*/
4521
+ c[0] === "true" ? a ? a.p(c, f) : (a = ur(c), a.c(), a.m(o.parentNode, o)) : a && (a.d(1), a = null), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(s.parentNode, s)));
4485
4522
  },
4486
4523
  d(c) {
4487
4524
  c && (M(t), M(i), M(o), M(s)), a && a.d(c), h.d(c);
4488
4525
  }
4489
4526
  };
4490
4527
  }
4491
- function nr(e) {
4492
- let t, r, n = Z(
4528
+ function ur(e) {
4529
+ let t, r, n = q(
4493
4530
  /*availableCategories*/
4494
4531
  e[14]
4495
4532
  ), i = [];
4496
4533
  for (let o = 0; o < n.length; o += 1)
4497
- i[o] = ir(er(e, n, o));
4534
+ i[o] = hr(sr(e, n, o));
4498
4535
  return {
4499
4536
  c() {
4500
4537
  t = g("div"), r = g("ul");
@@ -4510,14 +4547,14 @@ function nr(e) {
4510
4547
  p(o, s) {
4511
4548
  if (s[0] & /*activeTab, availableCategories, handleFilter*/
4512
4549
  8413184) {
4513
- n = Z(
4550
+ n = q(
4514
4551
  /*availableCategories*/
4515
4552
  o[14]
4516
4553
  );
4517
4554
  let a;
4518
4555
  for (a = 0; a < n.length; a += 1) {
4519
- const l = er(o, n, a);
4520
- i[a] ? i[a].p(l, s) : (i[a] = ir(l), i[a].c(), i[a].m(r, null));
4556
+ const l = sr(o, n, a);
4557
+ i[a] ? i[a].p(l, s) : (i[a] = hr(l), i[a].c(), i[a].m(r, null));
4521
4558
  }
4522
4559
  for (; a < i.length; a += 1)
4523
4560
  i[a].d(1);
@@ -4525,11 +4562,11 @@ function nr(e) {
4525
4562
  }
4526
4563
  },
4527
4564
  d(o) {
4528
- o && M(t), _e(i, o);
4565
+ o && M(t), ge(i, o);
4529
4566
  }
4530
4567
  };
4531
4568
  }
4532
- function ir(e) {
4569
+ function hr(e) {
4533
4570
  let t, r, n = (
4534
4571
  /*category*/
4535
4572
  e[65].charAt(0).toUpperCase() + /*category*/
@@ -4546,18 +4583,18 @@ function ir(e) {
4546
4583
  }
4547
4584
  return {
4548
4585
  c() {
4549
- t = g("li"), r = g("button"), i = ee(n), o = F(), m(t, "class", s = "tab-item " + /*activeTab*/
4586
+ t = g("li"), r = g("button"), i = te(n), o = F(), m(t, "class", s = "tab-item " + /*activeTab*/
4550
4587
  (e[13] === /*category*/
4551
4588
  e[65] ? "active" : ""));
4552
4589
  },
4553
4590
  m(h, c) {
4554
- D(h, t, c), d(t, r), d(r, i), d(t, o), a || (l = re(r, "click", u), a = !0);
4591
+ D(h, t, c), d(t, r), d(r, i), d(t, o), a || (l = ne(r, "click", u), a = !0);
4555
4592
  },
4556
4593
  p(h, c) {
4557
4594
  e = h, c[0] & /*availableCategories*/
4558
4595
  16384 && n !== (n = /*category*/
4559
4596
  e[65].charAt(0).toUpperCase() + /*category*/
4560
- e[65].slice(1).toLowerCase() + "") && ue(i, n), c[0] & /*activeTab, availableCategories*/
4597
+ e[65].slice(1).toLowerCase() + "") && he(i, n), c[0] & /*activeTab, availableCategories*/
4561
4598
  24576 && s !== (s = "tab-item " + /*activeTab*/
4562
4599
  (e[13] === /*category*/
4563
4600
  e[65] ? "active" : "")) && m(t, "class", s);
@@ -4567,14 +4604,14 @@ function ir(e) {
4567
4604
  }
4568
4605
  };
4569
4606
  }
4570
- function Go(e) {
4607
+ function Yo(e) {
4571
4608
  let t, r = (
4572
4609
  /*$_*/
4573
4610
  e[19]("promotionsNone") + ""
4574
4611
  ), n;
4575
4612
  return {
4576
4613
  c() {
4577
- t = g("p"), n = ee(r), m(t, "class", "promotions__none");
4614
+ t = g("p"), n = te(r), m(t, "class", "promotions__none");
4578
4615
  },
4579
4616
  m(i, o) {
4580
4617
  D(i, t, o), d(t, n);
@@ -4582,20 +4619,20 @@ function Go(e) {
4582
4619
  p(i, o) {
4583
4620
  o[0] & /*$_*/
4584
4621
  524288 && r !== (r = /*$_*/
4585
- i[19]("promotionsNone") + "") && ue(n, r);
4622
+ i[19]("promotionsNone") + "") && he(n, r);
4586
4623
  },
4587
4624
  d(i) {
4588
4625
  i && M(t);
4589
4626
  }
4590
4627
  };
4591
4628
  }
4592
- function $o(e) {
4593
- let t, r = Z(
4629
+ function Ko(e) {
4630
+ let t, r = q(
4594
4631
  /*promotions*/
4595
4632
  e[2]
4596
4633
  ), n = [];
4597
4634
  for (let i = 0; i < r.length; i += 1)
4598
- n[i] = ar(Yt(e, r, i));
4635
+ n[i] = pr(ir(e, r, i));
4599
4636
  return {
4600
4637
  c() {
4601
4638
  t = g("div");
@@ -4611,14 +4648,14 @@ function $o(e) {
4611
4648
  p(i, o) {
4612
4649
  if (o[0] & /*openPromo, promotions, $_, activeTab*/
4613
4650
  1581060) {
4614
- r = Z(
4651
+ r = q(
4615
4652
  /*promotions*/
4616
4653
  i[2]
4617
4654
  );
4618
4655
  let s;
4619
4656
  for (s = 0; s < r.length; s += 1) {
4620
- const a = Yt(i, r, s);
4621
- n[s] ? n[s].p(a, o) : (n[s] = ar(a), n[s].c(), n[s].m(t, null));
4657
+ const a = ir(i, r, s);
4658
+ n[s] ? n[s].p(a, o) : (n[s] = pr(a), n[s].c(), n[s].m(t, null));
4622
4659
  }
4623
4660
  for (; s < n.length; s += 1)
4624
4661
  n[s].d(1);
@@ -4626,11 +4663,11 @@ function $o(e) {
4626
4663
  }
4627
4664
  },
4628
4665
  d(i) {
4629
- i && M(t), _e(n, i);
4666
+ i && M(t), ge(n, i);
4630
4667
  }
4631
4668
  };
4632
4669
  }
4633
- function or(e) {
4670
+ function cr(e) {
4634
4671
  let t, r, n, i, o, s, a, l, u, h = (
4635
4672
  /*promotion*/
4636
4673
  e[60].title + ""
@@ -4640,18 +4677,18 @@ function or(e) {
4640
4677
  ), v, _, O = (
4641
4678
  /*$_*/
4642
4679
  e[19]("promotionsButton") + ""
4643
- ), I, C, N, U, P = Z(
4680
+ ), I, C, N, k, P = q(
4644
4681
  /*promotion*/
4645
4682
  e[60].image.sources
4646
4683
  ), y = [];
4647
4684
  for (let x = 0; x < P.length; x += 1)
4648
- y[x] = sr(Kt(e, P, x));
4685
+ y[x] = fr(or(e, P, x));
4649
4686
  return {
4650
4687
  c() {
4651
4688
  t = g("div"), r = g("picture");
4652
4689
  for (let x = 0; x < y.length; x += 1)
4653
4690
  y[x].c();
4654
- n = F(), i = g("img"), a = F(), l = g("div"), u = g("h2"), c = F(), f = g("div"), v = F(), _ = g("button"), I = ee(O), C = F(), ae(i.src, o = /*promotion*/
4691
+ n = F(), i = g("img"), a = F(), l = g("div"), u = g("h2"), c = F(), f = g("div"), v = F(), _ = g("button"), I = te(O), C = F(), le(i.src, o = /*promotion*/
4655
4692
  e[60].image.src) || m(i, "src", o), m(i, "alt", s = /*promotion*/
4656
4693
  e[60].title), m(r, "class", "promo__picture"), m(u, "class", "promo__title"), m(f, "class", "promo__content text--ellipsis"), m(_, "class", "promo__button"), m(_, "part", "promo__button"), m(l, "class", "promo__details"), m(t, "class", "promo"), m(t, "part", "promo");
4657
4694
  },
@@ -4659,8 +4696,8 @@ function or(e) {
4659
4696
  D(x, t, E), d(t, r);
4660
4697
  for (let S = 0; S < y.length; S += 1)
4661
4698
  y[S] && y[S].m(r, null);
4662
- d(r, n), d(r, i), d(t, a), d(t, l), d(l, u), u.innerHTML = h, d(l, c), d(l, f), f.innerHTML = b, d(l, v), d(l, _), d(_, I), d(t, C), N || (U = re(_, "click", function() {
4663
- Ne(
4699
+ d(r, n), d(r, i), d(t, a), d(t, l), d(l, u), u.innerHTML = h, d(l, c), d(l, f), f.innerHTML = b, d(l, v), d(l, _), d(_, I), d(t, C), N || (k = ne(_, "click", function() {
4700
+ Le(
4664
4701
  /*openPromo*/
4665
4702
  e[20](
4666
4703
  /*promotion*/
@@ -4675,21 +4712,21 @@ function or(e) {
4675
4712
  p(x, E) {
4676
4713
  if (e = x, E[0] & /*promotions*/
4677
4714
  4) {
4678
- P = Z(
4715
+ P = q(
4679
4716
  /*promotion*/
4680
4717
  e[60].image.sources
4681
4718
  );
4682
4719
  let S;
4683
4720
  for (S = 0; S < P.length; S += 1) {
4684
- const L = Kt(e, P, S);
4685
- y[S] ? y[S].p(L, E) : (y[S] = sr(L), y[S].c(), y[S].m(r, n));
4721
+ const L = or(e, P, S);
4722
+ y[S] ? y[S].p(L, E) : (y[S] = fr(L), y[S].c(), y[S].m(r, n));
4686
4723
  }
4687
4724
  for (; S < y.length; S += 1)
4688
4725
  y[S].d(1);
4689
4726
  y.length = P.length;
4690
4727
  }
4691
4728
  E[0] & /*promotions*/
4692
- 4 && !ae(i.src, o = /*promotion*/
4729
+ 4 && !le(i.src, o = /*promotion*/
4693
4730
  e[60].image.src) && m(i, "src", o), E[0] & /*promotions*/
4694
4731
  4 && s !== (s = /*promotion*/
4695
4732
  e[60].title) && m(i, "alt", s), E[0] & /*promotions*/
@@ -4698,18 +4735,18 @@ function or(e) {
4698
4735
  4 && b !== (b = /*promotion*/
4699
4736
  e[60].content.split("</p>")[0] + "") && (f.innerHTML = b), E[0] & /*$_*/
4700
4737
  524288 && O !== (O = /*$_*/
4701
- e[19]("promotionsButton") + "") && ue(I, O);
4738
+ e[19]("promotionsButton") + "") && he(I, O);
4702
4739
  },
4703
4740
  d(x) {
4704
- x && M(t), _e(y, x), N = !1, U();
4741
+ x && M(t), ge(y, x), N = !1, k();
4705
4742
  }
4706
4743
  };
4707
4744
  }
4708
- function sr(e) {
4745
+ function fr(e) {
4709
4746
  let t, r, n;
4710
4747
  return {
4711
4748
  c() {
4712
- t = g("source"), bt(t, r = /*imgSource*/
4749
+ t = g("source"), vt(t, r = /*imgSource*/
4713
4750
  e[52].pictureSource) || m(t, "srcset", r), m(t, "media", n = "(" + /*imgSource*/
4714
4751
  e[52].media + ")");
4715
4752
  },
@@ -4728,7 +4765,7 @@ function sr(e) {
4728
4765
  }
4729
4766
  };
4730
4767
  }
4731
- function ar(e) {
4768
+ function pr(e) {
4732
4769
  let t = (
4733
4770
  /*promotion*/
4734
4771
  e[60].categories.includes(
@@ -4736,10 +4773,10 @@ function ar(e) {
4736
4773
  e[13]
4737
4774
  ) || /*activeTab*/
4738
4775
  e[13] === "all"
4739
- ), r, n = t && or(e);
4776
+ ), r, n = t && cr(e);
4740
4777
  return {
4741
4778
  c() {
4742
- n && n.c(), r = _t();
4779
+ n && n.c(), r = yt();
4743
4780
  },
4744
4781
  m(i, o) {
4745
4782
  n && n.m(i, o), D(i, r, o);
@@ -4751,18 +4788,18 @@ function ar(e) {
4751
4788
  /*activeTab*/
4752
4789
  i[13]
4753
4790
  ) || /*activeTab*/
4754
- i[13] === "all"), t ? n ? n.p(i, o) : (n = or(i), n.c(), n.m(r.parentNode, r)) : n && (n.d(1), n = null);
4791
+ i[13] === "all"), t ? n ? n.p(i, o) : (n = cr(i), n.c(), n.m(r.parentNode, r)) : n && (n.d(1), n = null);
4755
4792
  },
4756
4793
  d(i) {
4757
4794
  i && M(r), n && n.d(i);
4758
4795
  }
4759
4796
  };
4760
4797
  }
4761
- function lr(e) {
4798
+ function mr(e) {
4762
4799
  let t, r, n;
4763
4800
  return {
4764
4801
  c() {
4765
- t = g("source"), bt(t, r = /*imgSource*/
4802
+ t = g("source"), vt(t, r = /*imgSource*/
4766
4803
  e[52].pictureSource) || m(t, "srcset", r), m(t, "media", n = "(" + /*imgSource*/
4767
4804
  e[52].media + ")");
4768
4805
  },
@@ -4781,19 +4818,19 @@ function lr(e) {
4781
4818
  }
4782
4819
  };
4783
4820
  }
4784
- function ur(e) {
4821
+ function dr(e) {
4785
4822
  let t, r = (
4786
4823
  /*tab*/
4787
4824
  e[55].tabDesc + ""
4788
4825
  ), n, i, o;
4789
4826
  return {
4790
4827
  c() {
4791
- t = g("li"), n = ee(r), m(t, "class", "modal__tab"), m(t, "id", `tab-${/*index*/
4828
+ t = g("li"), n = te(r), m(t, "class", "modal__tab"), m(t, "id", `tab-${/*index*/
4792
4829
  e[57]}`);
4793
4830
  },
4794
4831
  m(s, a) {
4795
- D(s, t, a), d(t, n), i || (o = re(t, "click", function() {
4796
- Ne(
4832
+ D(s, t, a), d(t, n), i || (o = ne(t, "click", function() {
4833
+ Le(
4797
4834
  /*switchTabContent*/
4798
4835
  e[22](
4799
4836
  /*tab*/
@@ -4812,33 +4849,33 @@ function ur(e) {
4812
4849
  p(s, a) {
4813
4850
  e = s, a[0] & /*promoDetailsTabs*/
4814
4851
  4096 && r !== (r = /*tab*/
4815
- e[55].tabDesc + "") && ue(n, r);
4852
+ e[55].tabDesc + "") && he(n, r);
4816
4853
  },
4817
4854
  d(s) {
4818
4855
  s && M(t), i = !1, o();
4819
4856
  }
4820
4857
  };
4821
4858
  }
4822
- function hr(e) {
4859
+ function br(e) {
4823
4860
  let t, r, n, i, o = (
4824
4861
  /*$_*/
4825
4862
  e[19]("promotionsBack") + ""
4826
- ), s, a, l, u, h, c, f, b, v, _, O, I, C, N, U, P = Z(
4863
+ ), s, a, l, u, h, c, f, b, v, _, O, I, C, N, k, P = q(
4827
4864
  /*promoDetailsSources*/
4828
4865
  e[11]
4829
4866
  ), y = [];
4830
4867
  for (let E = 0; E < P.length; E += 1)
4831
- y[E] = cr(qt(e, P, E));
4868
+ y[E] = _r(tr(e, P, E));
4832
4869
  let x = (
4833
4870
  /*promoDetailsTabs*/
4834
- e[12].length > 0 && fr(e)
4871
+ e[12].length > 0 && gr(e)
4835
4872
  );
4836
4873
  return {
4837
4874
  c() {
4838
- t = g("div"), r = g("div"), n = g("h1"), i = ee("< "), s = ee(o), a = F(), l = g("div"), u = g("h1"), h = F(), c = g("picture");
4875
+ t = g("div"), r = g("div"), n = g("h1"), i = te("< "), s = te(o), a = F(), l = g("div"), u = g("h1"), h = F(), c = g("picture");
4839
4876
  for (let E = 0; E < y.length; E += 1)
4840
4877
  y[E].c();
4841
- f = F(), b = g("img"), _ = F(), O = g("div"), I = g("div"), C = g("ul"), x && x.c(), m(r, "class", "page__close"), m(u, "class", "page__body_title"), ae(b.src, v = /*promoDetailsImage*/
4878
+ f = F(), b = g("img"), _ = F(), O = g("div"), I = g("div"), C = g("ul"), x && x.c(), m(r, "class", "page__close"), m(u, "class", "page__body_title"), le(b.src, v = /*promoDetailsImage*/
4842
4879
  e[10]) || m(b, "src", v), m(
4843
4880
  b,
4844
4881
  "alt",
@@ -4851,7 +4888,7 @@ function hr(e) {
4851
4888
  e[8], d(l, h), d(l, c);
4852
4889
  for (let L = 0; L < y.length; L += 1)
4853
4890
  y[L] && y[L].m(c, null);
4854
- d(c, f), d(c, b), d(t, _), d(t, O), d(O, I), d(I, C), x && x.m(C, null), e[36](I), N || (U = re(
4891
+ d(c, f), d(c, b), d(t, _), d(t, O), d(O, I), d(I, C), x && x.m(C, null), e[36](I), N || (k = ne(
4855
4892
  r,
4856
4893
  "click",
4857
4894
  /*closePromo*/
@@ -4861,25 +4898,25 @@ function hr(e) {
4861
4898
  p(E, S) {
4862
4899
  if (S[0] & /*$_*/
4863
4900
  524288 && o !== (o = /*$_*/
4864
- E[19]("promotionsBack") + "") && ue(s, o), S[0] & /*promoDetailsTitle*/
4901
+ E[19]("promotionsBack") + "") && he(s, o), S[0] & /*promoDetailsTitle*/
4865
4902
  256 && (u.innerHTML = /*promoDetailsTitle*/
4866
4903
  E[8]), S[0] & /*promoDetailsSources*/
4867
4904
  2048) {
4868
- P = Z(
4905
+ P = q(
4869
4906
  /*promoDetailsSources*/
4870
4907
  E[11]
4871
4908
  );
4872
4909
  let L;
4873
4910
  for (L = 0; L < P.length; L += 1) {
4874
- const q = qt(E, P, L);
4875
- y[L] ? y[L].p(q, S) : (y[L] = cr(q), y[L].c(), y[L].m(c, f));
4911
+ const Q = tr(E, P, L);
4912
+ y[L] ? y[L].p(Q, S) : (y[L] = _r(Q), y[L].c(), y[L].m(c, f));
4876
4913
  }
4877
4914
  for (; L < y.length; L += 1)
4878
4915
  y[L].d(1);
4879
4916
  y.length = P.length;
4880
4917
  }
4881
4918
  S[0] & /*promoDetailsImage*/
4882
- 1024 && !ae(b.src, v = /*promoDetailsImage*/
4919
+ 1024 && !le(b.src, v = /*promoDetailsImage*/
4883
4920
  E[10]) && m(b, "src", v), S[0] & /*promoDetailsTitle*/
4884
4921
  256 && m(
4885
4922
  b,
@@ -4887,18 +4924,18 @@ function hr(e) {
4887
4924
  /*promoDetailsTitle*/
4888
4925
  E[8]
4889
4926
  ), /*promoDetailsTabs*/
4890
- E[12].length > 0 ? x ? x.p(E, S) : (x = fr(E), x.c(), x.m(C, null)) : x && (x.d(1), x = null);
4927
+ E[12].length > 0 ? x ? x.p(E, S) : (x = gr(E), x.c(), x.m(C, null)) : x && (x.d(1), x = null);
4891
4928
  },
4892
4929
  d(E) {
4893
- E && M(t), _e(y, E), x && x.d(), e[36](null), N = !1, U();
4930
+ E && M(t), ge(y, E), x && x.d(), e[36](null), N = !1, k();
4894
4931
  }
4895
4932
  };
4896
4933
  }
4897
- function cr(e) {
4934
+ function _r(e) {
4898
4935
  let t, r, n;
4899
4936
  return {
4900
4937
  c() {
4901
- t = g("source"), bt(t, r = /*imgSource*/
4938
+ t = g("source"), vt(t, r = /*imgSource*/
4902
4939
  e[52].pictureSource) || m(t, "srcset", r), m(t, "media", n = "(" + /*imgSource*/
4903
4940
  e[52].media + ")");
4904
4941
  },
@@ -4917,17 +4954,17 @@ function cr(e) {
4917
4954
  }
4918
4955
  };
4919
4956
  }
4920
- function fr(e) {
4957
+ function gr(e) {
4921
4958
  let t, r, n = (
4922
4959
  /*promoDetailsTabs*/
4923
4960
  e[12][0].tabContent + ""
4924
4961
  ), i, o, s = (
4925
4962
  /*promoDetailsTabs*/
4926
- e[12][1] && pr(e)
4963
+ e[12][1] && vr(e)
4927
4964
  );
4928
4965
  return {
4929
4966
  c() {
4930
- t = g("div"), r = g("div"), i = F(), s && s.c(), o = _t(), m(r, "class", "page__tab_content"), m(t, "class", "page__tabContentWrapper");
4967
+ t = g("div"), r = g("div"), i = F(), s && s.c(), o = yt(), m(r, "class", "page__tab_content"), m(t, "class", "page__tabContentWrapper");
4931
4968
  },
4932
4969
  m(a, l) {
4933
4970
  D(a, t, l), d(t, r), r.innerHTML = n, D(a, i, l), s && s.m(a, l), D(a, o, l);
@@ -4936,14 +4973,14 @@ function fr(e) {
4936
4973
  l[0] & /*promoDetailsTabs*/
4937
4974
  4096 && n !== (n = /*promoDetailsTabs*/
4938
4975
  a[12][0].tabContent + "") && (r.innerHTML = n), /*promoDetailsTabs*/
4939
- a[12][1] ? s ? s.p(a, l) : (s = pr(a), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
4976
+ a[12][1] ? s ? s.p(a, l) : (s = vr(a), s.c(), s.m(o.parentNode, o)) : s && (s.d(1), s = null);
4940
4977
  },
4941
4978
  d(a) {
4942
4979
  a && (M(t), M(i), M(o)), s && s.d(a);
4943
4980
  }
4944
4981
  };
4945
4982
  }
4946
- function pr(e) {
4983
+ function vr(e) {
4947
4984
  let t, r, n = (
4948
4985
  /*$_*/
4949
4986
  e[19]("promotionsTerms") + ""
@@ -4953,7 +4990,7 @@ function pr(e) {
4953
4990
  ), c, f, b;
4954
4991
  return {
4955
4992
  c() {
4956
- t = g("div"), r = g("h4"), i = ee(n), o = F(), s = g("p"), s.textContent = "∇", a = F(), l = g("div"), u = g("div"), St(
4993
+ t = g("div"), r = g("h4"), i = te(n), o = F(), s = g("p"), s.textContent = "∇", a = F(), l = g("div"), u = g("div"), Ct(
4957
4994
  s,
4958
4995
  "active",
4959
4996
  /*active*/
@@ -4962,7 +4999,7 @@ function pr(e) {
4962
4999
  (e[15] ? "" : "hidden"));
4963
5000
  },
4964
5001
  m(v, _) {
4965
- D(v, t, _), d(t, r), d(r, i), d(t, o), d(t, s), D(v, a, _), D(v, l, _), d(l, u), u.innerHTML = h, f || (b = re(
5002
+ D(v, t, _), d(t, r), d(r, i), d(t, o), d(t, s), D(v, a, _), D(v, l, _), d(l, u), u.innerHTML = h, f || (b = ne(
4966
5003
  t,
4967
5004
  "click",
4968
5005
  /*click_handler_1*/
@@ -4972,8 +5009,8 @@ function pr(e) {
4972
5009
  p(v, _) {
4973
5010
  _[0] & /*$_*/
4974
5011
  524288 && n !== (n = /*$_*/
4975
- v[19]("promotionsTerms") + "") && ue(i, n), _[0] & /*active*/
4976
- 262144 && St(
5012
+ v[19]("promotionsTerms") + "") && he(i, n), _[0] & /*active*/
5013
+ 262144 && Ct(
4977
5014
  s,
4978
5015
  "active",
4979
5016
  /*active*/
@@ -4989,10 +5026,10 @@ function pr(e) {
4989
5026
  }
4990
5027
  };
4991
5028
  }
4992
- function jo(e) {
5029
+ function es(e) {
4993
5030
  let t, r = (
4994
5031
  /*isLoading*/
4995
- e[4] !== !0 && tr(e)
5032
+ e[4] !== !0 && ar(e)
4996
5033
  );
4997
5034
  return {
4998
5035
  c() {
@@ -5003,45 +5040,45 @@ function jo(e) {
5003
5040
  },
5004
5041
  p(n, i) {
5005
5042
  /*isLoading*/
5006
- n[4] !== !0 ? r ? r.p(n, i) : (r = tr(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
5043
+ n[4] !== !0 ? r ? r.p(n, i) : (r = ar(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
5007
5044
  },
5008
- i: J,
5009
- o: J,
5045
+ i: Y,
5046
+ o: Y,
5010
5047
  d(n) {
5011
5048
  n && M(t), r && r.d(), e[39](null);
5012
5049
  }
5013
5050
  };
5014
5051
  }
5015
- function Vo(e, t, r) {
5052
+ function ts(e, t, r) {
5016
5053
  let n;
5017
- fn(e, Eo, (p) => r(19, n = p));
5018
- let { endpoint: i = "" } = t, { lang: o = "" } = t, { env: s = "" } = t, { userroles: a = "" } = t, { promotionsfilter: l = "true" } = t, { translationurl: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { modalpromotion: f = "" } = t, b, v = !1, _ = [], O, I, C, N = "", U = window.navigator.userAgent, P = !1, y, x = "", E = "", S = {}, L = [], q = [], He = "all", j = [], Y = !1, k, K, G;
5019
- wo({ withLocale: "en", translations: {} });
5054
+ wn(e, Lo, (p) => r(19, n = p));
5055
+ let { endpoint: i = "" } = t, { lang: o = "" } = t, { env: s = "" } = t, { userroles: a = "" } = t, { promotionsfilter: l = "true" } = t, { translationurl: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { modalpromotion: f = "" } = t, b, v = !1, _ = [], O, I, C, N = "", k = window.navigator.userAgent, P = !1, y, x = "", E = "", S = {}, L = [], Q = [], Be = "all", j = [], K = !1, U, ee, G;
5056
+ Io({ withLocale: "en", translations: {} });
5020
5057
  const V = () => {
5021
5058
  fetch(u).then(($) => $.json()).then(($) => {
5022
5059
  Object.keys($).forEach((W) => {
5023
- Ut(W, $[W]);
5060
+ Xt(W, $[W]);
5024
5061
  });
5025
5062
  }).catch(($) => {
5026
5063
  console.log($);
5027
5064
  });
5028
5065
  };
5029
- Object.keys(Zt).forEach((p) => {
5030
- Ut(p, Zt[p]);
5066
+ Object.keys(er).forEach((p) => {
5067
+ Xt(p, er[p]);
5031
5068
  });
5032
5069
  const w = () => {
5033
5070
  r(4, v = !0);
5034
5071
  let p = new URL(`${i}/${o}/promotions?env=${s}`);
5035
5072
  p.searchParams.append("userRoles", a);
5036
- let $ = ko(U);
5073
+ let $ = Qo(k);
5037
5074
  $ && ($ === "PC" ? p.searchParams.append("device", "dk") : p.searchParams.append("device", "mtWeb")), fetch(p.href).then((W) => W.json()).then((W) => {
5038
5075
  r(4, v = !1), r(2, _ = W);
5039
- let oe = /* @__PURE__ */ new Set();
5040
- _.forEach((un) => {
5041
- un.categories.forEach((hn) => {
5042
- oe.add(hn);
5076
+ let se = /* @__PURE__ */ new Set();
5077
+ _.forEach((dn) => {
5078
+ dn.categories.forEach((bn) => {
5079
+ se.add(bn);
5043
5080
  });
5044
- }), r(14, j = Array.from(oe)), j.unshift("all");
5081
+ }), r(14, j = Array.from(se)), j.unshift("all");
5045
5082
  }).catch((W) => {
5046
5083
  r(4, v = !1), console.error(W);
5047
5084
  });
@@ -5053,16 +5090,16 @@ function Vo(e, t, r) {
5053
5090
  break;
5054
5091
  }
5055
5092
  }, T = () => {
5056
- ie(_.find((p) => p.slug == N));
5057
- }, ie = async (p) => {
5058
- f == "true" ? (r(8, x = p.title), r(9, E = p.content), r(10, S = p.image.src), r(11, L = p.image.sources), r(12, q = [
5093
+ oe(_.find((p) => p.slug == N));
5094
+ }, oe = (p) => Je(this, null, function* () {
5095
+ f == "true" ? (r(8, x = p.title), r(9, E = p.content), r(10, S = p.image.src), r(11, L = p.image.sources), r(12, Q = [
5059
5096
  {
5060
5097
  order: "0",
5061
5098
  tabContent: E,
5062
5099
  tabDesc: "Description"
5063
5100
  },
5064
5101
  ...p.tabs
5065
- ]), y = C.querySelector(".modal"), window.document.querySelector("body"), y.classList.add("modal--open"), window.postMessage({ type: "DisableScroll" }, window.location.href), await En(), xt(q[0], 0)) : (r(7, P = !0), r(8, x = p.title), r(9, E = p.content), r(10, S = p.image.src), r(11, L = p.image.sources), r(12, q = [
5102
+ ]), y = C.querySelector(".modal"), window.document.querySelector("body"), y.classList.add("modal--open"), window.postMessage({ type: "DisableScroll" }, window.location.href), yield Ln(), Tt(Q[0], 0)) : (r(7, P = !0), r(8, x = p.title), r(9, E = p.content), r(10, S = p.image.src), r(11, L = p.image.sources), r(12, Q = [
5066
5103
  {
5067
5104
  order: "0",
5068
5105
  tabContent: E,
@@ -5077,7 +5114,7 @@ function Vo(e, t, r) {
5077
5114
  },
5078
5115
  window.location.href
5079
5116
  )), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "PromotionsWidget" });
5080
- }, Qr = () => {
5117
+ }), rn = () => {
5081
5118
  f == "true" ? (y = C.querySelector(".modal"), window.document.querySelector("body"), y.classList.remove("modal--open"), window.postMessage({ type: "EnableScroll" }, window.location.href)) : (r(7, P = !1), window.postMessage(
5082
5119
  {
5083
5120
  type: "handlePromotionPage",
@@ -5085,26 +5122,26 @@ function Vo(e, t, r) {
5085
5122
  },
5086
5123
  window.location.href
5087
5124
  ));
5088
- }, xt = (p, $) => {
5089
- k.querySelector(".modal__tab_content").innerHTML = p.tabContent;
5090
- let W = k.querySelectorAll(".modal__tab");
5091
- for (let oe = 0; oe < W.length; oe++)
5092
- W[oe].classList.remove("modal__tab--active");
5093
- k.querySelector(`#tab-${$}`).classList.add("modal__tab--active");
5094
- }, Jr = {
5125
+ }, Tt = (p, $) => {
5126
+ U.querySelector(".modal__tab_content").innerHTML = p.tabContent;
5127
+ let W = U.querySelectorAll(".modal__tab");
5128
+ for (let se = 0; se < W.length; se++)
5129
+ W[se].classList.remove("modal__tab--active");
5130
+ U.querySelector(`#tab-${$}`).classList.add("modal__tab--active");
5131
+ }, nn = {
5095
5132
  sm: 640,
5096
5133
  md: 768,
5097
5134
  lg: 1024,
5098
5135
  xl: 1280,
5099
5136
  xxl: 1536
5100
- }, Et = (p) => {
5101
- r(13, He = p);
5102
- }, Yr = () => {
5103
- To(o);
5104
- }, Kr = () => {
5137
+ }, St = (p) => {
5138
+ r(13, Be = p);
5139
+ }, on = () => {
5140
+ Mo(o);
5141
+ }, sn = () => {
5105
5142
  let p = document.createElement("style");
5106
5143
  p.innerHTML = h, b.appendChild(p);
5107
- }, en = () => {
5144
+ }, an = () => {
5108
5145
  let p = document.createElement("style");
5109
5146
  fetch(new URL(c)).then(($) => $.text()).then(($) => {
5110
5147
  p.innerHTML = $, setTimeout(
@@ -5115,33 +5152,33 @@ function Vo(e, t, r) {
5115
5152
  );
5116
5153
  });
5117
5154
  };
5118
- xn(() => (window.addEventListener("message", z, !1), () => {
5155
+ Nn(() => (window.addEventListener("message", z, !1), () => {
5119
5156
  window.removeEventListener("message", z);
5120
5157
  }));
5121
- const tn = (p) => Et(p);
5122
- function rn(p) {
5123
- me[p ? "unshift" : "push"](() => {
5124
- k = p, r(16, k);
5158
+ const ln = (p) => St(p);
5159
+ function un(p) {
5160
+ de[p ? "unshift" : "push"](() => {
5161
+ U = p, r(16, U);
5125
5162
  });
5126
5163
  }
5127
- const nn = () => {
5128
- r(15, Y = !Y), r(18, G = !G);
5164
+ const hn = () => {
5165
+ r(15, K = !K), r(18, G = !G);
5129
5166
  };
5130
- function on(p) {
5131
- me[p ? "unshift" : "push"](() => {
5132
- K = p, r(17, K);
5167
+ function cn(p) {
5168
+ de[p ? "unshift" : "push"](() => {
5169
+ ee = p, r(17, ee);
5133
5170
  });
5134
5171
  }
5135
- function sn() {
5172
+ function fn() {
5136
5173
  O = this.clientWidth, r(3, O);
5137
5174
  }
5138
- function an(p) {
5139
- me[p ? "unshift" : "push"](() => {
5175
+ function pn(p) {
5176
+ de[p ? "unshift" : "push"](() => {
5140
5177
  C = p, r(6, C);
5141
5178
  });
5142
5179
  }
5143
- function ln(p) {
5144
- me[p ? "unshift" : "push"](() => {
5180
+ function mn(p) {
5181
+ de[p ? "unshift" : "push"](() => {
5145
5182
  b = p, r(1, b);
5146
5183
  });
5147
5184
  }
@@ -5149,20 +5186,20 @@ function Vo(e, t, r) {
5149
5186
  "endpoint" in p && r(24, i = p.endpoint), "lang" in p && r(25, o = p.lang), "env" in p && r(26, s = p.env), "userroles" in p && r(27, a = p.userroles), "promotionsfilter" in p && r(0, l = p.promotionsfilter), "translationurl" in p && r(28, u = p.translationurl), "clientstyling" in p && r(29, h = p.clientstyling), "clientstylingurl" in p && r(30, c = p.clientstylingurl), "modalpromotion" in p && r(31, f = p.modalpromotion);
5150
5187
  }, e.$$.update = () => {
5151
5188
  e.$$.dirty[0] & /*elementWidth*/
5152
- 8 && r(5, I = Object.entries(Jr).reduce(
5189
+ 8 && r(5, I = Object.entries(nn).reduce(
5153
5190
  (p, [$, W]) => {
5154
- const oe = O >= W ? $ : "";
5155
- return [...p, oe];
5191
+ const se = O >= W ? $ : "";
5192
+ return [...p, se];
5156
5193
  },
5157
5194
  []
5158
5195
  ).join(" ")), e.$$.dirty[0] & /*lang*/
5159
- 33554432 && o && Yr(), e.$$.dirty[0] & /*translationurl*/
5196
+ 33554432 && o && on(), e.$$.dirty[0] & /*translationurl*/
5160
5197
  268435456 && u && V(), e.$$.dirty[0] & /*promotions*/
5161
5198
  4 | e.$$.dirty[1] & /*promotionPath*/
5162
5199
  2 && N && _ && T(), e.$$.dirty[0] & /*endpoint, lang, env, userroles*/
5163
5200
  251658240 && i && o && s && a && w(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5164
- 536870914 && h && b && Kr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5165
- 1073741826 && c && b && en();
5201
+ 536870914 && h && b && sn(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5202
+ 1073741826 && c && b && an();
5166
5203
  }, [
5167
5204
  l,
5168
5205
  b,
@@ -5176,18 +5213,18 @@ function Vo(e, t, r) {
5176
5213
  E,
5177
5214
  S,
5178
5215
  L,
5179
- q,
5180
- He,
5216
+ Q,
5217
+ Be,
5181
5218
  j,
5182
- Y,
5183
- k,
5184
5219
  K,
5220
+ U,
5221
+ ee,
5185
5222
  G,
5186
5223
  n,
5187
- ie,
5188
- Qr,
5189
- xt,
5190
- Et,
5224
+ oe,
5225
+ rn,
5226
+ Tt,
5227
+ St,
5191
5228
  i,
5192
5229
  o,
5193
5230
  s,
@@ -5197,23 +5234,23 @@ function Vo(e, t, r) {
5197
5234
  c,
5198
5235
  f,
5199
5236
  N,
5200
- tn,
5201
- rn,
5202
- nn,
5203
- on,
5204
- sn,
5205
- an,
5206
- ln
5237
+ ln,
5238
+ un,
5239
+ hn,
5240
+ cn,
5241
+ fn,
5242
+ pn,
5243
+ mn
5207
5244
  ];
5208
5245
  }
5209
- class zo extends Nn {
5246
+ class rs extends jn {
5210
5247
  constructor(t) {
5211
- super(), On(
5248
+ super(), Gn(
5212
5249
  this,
5213
5250
  t,
5214
- Vo,
5215
- jo,
5216
- dr,
5251
+ ts,
5252
+ es,
5253
+ xr,
5217
5254
  {
5218
5255
  endpoint: 24,
5219
5256
  lang: 25,
@@ -5225,7 +5262,7 @@ class zo extends Nn {
5225
5262
  clientstylingurl: 30,
5226
5263
  modalpromotion: 31
5227
5264
  },
5228
- Uo,
5265
+ Jo,
5229
5266
  [-1, -1, -1]
5230
5267
  );
5231
5268
  }
@@ -5233,58 +5270,58 @@ class zo extends Nn {
5233
5270
  return this.$$.ctx[24];
5234
5271
  }
5235
5272
  set endpoint(t) {
5236
- this.$$set({ endpoint: t }), Q();
5273
+ this.$$set({ endpoint: t }), J();
5237
5274
  }
5238
5275
  get lang() {
5239
5276
  return this.$$.ctx[25];
5240
5277
  }
5241
5278
  set lang(t) {
5242
- this.$$set({ lang: t }), Q();
5279
+ this.$$set({ lang: t }), J();
5243
5280
  }
5244
5281
  get env() {
5245
5282
  return this.$$.ctx[26];
5246
5283
  }
5247
5284
  set env(t) {
5248
- this.$$set({ env: t }), Q();
5285
+ this.$$set({ env: t }), J();
5249
5286
  }
5250
5287
  get userroles() {
5251
5288
  return this.$$.ctx[27];
5252
5289
  }
5253
5290
  set userroles(t) {
5254
- this.$$set({ userroles: t }), Q();
5291
+ this.$$set({ userroles: t }), J();
5255
5292
  }
5256
5293
  get promotionsfilter() {
5257
5294
  return this.$$.ctx[0];
5258
5295
  }
5259
5296
  set promotionsfilter(t) {
5260
- this.$$set({ promotionsfilter: t }), Q();
5297
+ this.$$set({ promotionsfilter: t }), J();
5261
5298
  }
5262
5299
  get translationurl() {
5263
5300
  return this.$$.ctx[28];
5264
5301
  }
5265
5302
  set translationurl(t) {
5266
- this.$$set({ translationurl: t }), Q();
5303
+ this.$$set({ translationurl: t }), J();
5267
5304
  }
5268
5305
  get clientstyling() {
5269
5306
  return this.$$.ctx[29];
5270
5307
  }
5271
5308
  set clientstyling(t) {
5272
- this.$$set({ clientstyling: t }), Q();
5309
+ this.$$set({ clientstyling: t }), J();
5273
5310
  }
5274
5311
  get clientstylingurl() {
5275
5312
  return this.$$.ctx[30];
5276
5313
  }
5277
5314
  set clientstylingurl(t) {
5278
- this.$$set({ clientstylingurl: t }), Q();
5315
+ this.$$set({ clientstylingurl: t }), J();
5279
5316
  }
5280
5317
  get modalpromotion() {
5281
5318
  return this.$$.ctx[31];
5282
5319
  }
5283
5320
  set modalpromotion(t) {
5284
- this.$$set({ modalpromotion: t }), Q();
5321
+ this.$$set({ modalpromotion: t }), J();
5285
5322
  }
5286
5323
  }
5287
- Cn(zo, { endpoint: {}, lang: {}, env: {}, userroles: {}, promotionsfilter: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, modalpromotion: {} }, [], [], !0);
5324
+ $n(rs, { endpoint: {}, lang: {}, env: {}, userroles: {}, promotionsfilter: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, modalpromotion: {} }, [], [], !0);
5288
5325
  export {
5289
- zo as C
5326
+ rs as default
5290
5327
  };