@everymatrix/casino-tournaments-controller 1.67.0 → 1.68.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.
Files changed (40) hide show
  1. package/components/CasinoTournamentsController-C99E3MCm.cjs +27 -0
  2. package/components/{CasinoTournamentsController-BULZ_y4b.js → CasinoTournamentsController-CtQ0SbZ1.js} +974 -934
  3. package/components/{CasinoTournamentsController-2bTwgvFF.js → CasinoTournamentsController-Dv0w6uxv.js} +1042 -1002
  4. package/components/CasinoTournamentsFilterController-CA_x2Klb.js +531 -0
  5. package/components/CasinoTournamentsFilterController-D8z30hIO.cjs +1 -0
  6. package/components/{CasinoTournamentsFilterController-CoqpuR3P.js → CasinoTournamentsFilterController-ZPodzMjS.js} +164 -169
  7. package/components/{CasinoTournamentsListController-DuHpRjLq.js → CasinoTournamentsListController-BYjVebPq.js} +960 -958
  8. package/components/CasinoTournamentsListController-CMsPWeSH.cjs +13 -0
  9. package/components/{CasinoTournamentsListController-DT6zQNpY.js → CasinoTournamentsListController-CWtG_Kjm.js} +960 -958
  10. package/components/{CasinoTournamentsThumbnail-lBi843NX.js → CasinoTournamentsThumbnail-DIFGhQrc.js} +185 -193
  11. package/components/{CasinoTournamentsThumbnail-CueG5cos.js → CasinoTournamentsThumbnail-Dtfyse7r.js} +185 -193
  12. package/components/{CasinoTournamentsThumbnail-BWfbNcYT.cjs → CasinoTournamentsThumbnail-zXFGDGG1.cjs} +2 -2
  13. package/components/CasinoTournamentsThumbnailController-Cjehrx7D.cjs +1 -0
  14. package/components/{CasinoTournamentsThumbnailController-eBnrMpwv.js → CasinoTournamentsThumbnailController-DChZllZ4.js} +470 -434
  15. package/components/{CasinoTournamentsThumbnailController-CBp3ylH6.js → CasinoTournamentsThumbnailController-cPtKiglf.js} +397 -361
  16. package/components/{CasinoTournamentsThumbnailDuration-B87YJ1nA.js → CasinoTournamentsThumbnailDuration-CRqfmGfU.js} +156 -162
  17. package/components/{CasinoTournamentsThumbnailDuration-CEChJpk4.js → CasinoTournamentsThumbnailDuration-DFTngt18.js} +154 -160
  18. package/components/CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs +1 -0
  19. package/components/CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js +434 -0
  20. package/components/CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs +1 -0
  21. package/components/CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js +434 -0
  22. package/components/CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js +307 -0
  23. package/components/CasinoTournamentsThumbnailPrizes-C1nsvr3R.js +307 -0
  24. package/components/CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs +1 -0
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/components/CasinoTournamentsController-CYyTUNIz.cjs +0 -27
  30. package/components/CasinoTournamentsFilterController-DXDkdo0S.js +0 -536
  31. package/components/CasinoTournamentsFilterController-DjLEXDTC.cjs +0 -1
  32. package/components/CasinoTournamentsListController-DWgmnfOc.cjs +0 -13
  33. package/components/CasinoTournamentsThumbnailController-CE8cLaj5.cjs +0 -1
  34. package/components/CasinoTournamentsThumbnailDuration-DYI4yj5n.cjs +0 -1
  35. package/components/CasinoTournamentsThumbnailGamesSlider-DODIM4Fk.js +0 -442
  36. package/components/CasinoTournamentsThumbnailGamesSlider-DWAgOpLA.cjs +0 -1
  37. package/components/CasinoTournamentsThumbnailGamesSlider-LtmE1Ho2.js +0 -442
  38. package/components/CasinoTournamentsThumbnailPrizes-BpQPVoHy.cjs +0 -1
  39. package/components/CasinoTournamentsThumbnailPrizes-CWqeOB0q.js +0 -315
  40. package/components/CasinoTournamentsThumbnailPrizes-DBsFGpAH.js +0 -315
@@ -10,24 +10,24 @@ var Ft = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writ
10
10
  Rn.call(t, r) && Ft(e, r, t[r]);
11
11
  return e;
12
12
  }, _r = (e, t) => Ln(e, Nn(t));
13
- var fe = (e, t, r) => (Ft(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var Le = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
13
+ var he = (e, t, r) => (Ft(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var Me = (e, t, r) => new Promise((n, i) => {
15
+ var o = (f) => {
16
16
  try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
17
+ a(r.next(f));
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
- }, s = (l) => {
21
+ }, s = (f) => {
22
22
  try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
23
+ a(r.throw(f));
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
27
+ }, a = (f) => f.done ? n(f.value) : Promise.resolve(f.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
- function ce() {
30
+ function fe() {
31
31
  }
32
32
  function qr(e) {
33
33
  return e();
@@ -35,18 +35,18 @@ function qr(e) {
35
35
  function Er() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function lt(e) {
38
+ function ht(e) {
39
39
  e.forEach(qr);
40
40
  }
41
- function At(e) {
41
+ function Ht(e) {
42
42
  return typeof e == "function";
43
43
  }
44
44
  function Zr(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let mt;
48
- function Ss(e, t) {
49
- return e === t ? !0 : (mt || (mt = document.createElement("a")), mt.href = t, e === mt.href);
47
+ let bt;
48
+ function Ps(e, t) {
49
+ return e === t ? !0 : (bt || (bt = document.createElement("a")), bt.href = t, e === bt.href);
50
50
  }
51
51
  function Dn(e) {
52
52
  return Object.keys(e).length === 0;
@@ -55,7 +55,7 @@ function Jr(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const n of t)
57
57
  n(void 0);
58
- return ce;
58
+ return fe;
59
59
  }
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
@@ -63,16 +63,16 @@ function Jr(e, ...t) {
63
63
  function Fn(e, t, r) {
64
64
  e.$$.on_destroy.push(Jr(t, r));
65
65
  }
66
- function As(e) {
67
- return e && At(e.destroy) ? e.destroy : ce;
66
+ function Bs(e) {
67
+ return e && Ht(e.destroy) ? e.destroy : fe;
68
68
  }
69
- function re(e, t) {
69
+ function te(e, t) {
70
70
  e.appendChild(t);
71
71
  }
72
72
  function Un(e, t, r) {
73
73
  const n = Gn(e);
74
74
  if (!n.getElementById(t)) {
75
- const i = z("style");
75
+ const i = X("style");
76
76
  i.id = t, i.textContent = r, jn(n, i);
77
77
  }
78
78
  }
@@ -87,72 +87,72 @@ function Gn(e) {
87
87
  ) : e.ownerDocument;
88
88
  }
89
89
  function jn(e, t) {
90
- return re(
90
+ return te(
91
91
  /** @type {Document} */
92
92
  e.head || e,
93
93
  t
94
94
  ), t.sheet;
95
95
  }
96
- function de(e, t, r) {
96
+ function ce(e, t, r) {
97
97
  e.insertBefore(t, r || null);
98
98
  }
99
- function ne(e) {
99
+ function re(e) {
100
100
  e.parentNode && e.parentNode.removeChild(e);
101
101
  }
102
- function Hs(e, t) {
102
+ function Os(e, t) {
103
103
  for (let r = 0; r < e.length; r += 1)
104
104
  e[r] && e[r].d(t);
105
105
  }
106
- function z(e) {
106
+ function X(e) {
107
107
  return document.createElement(e);
108
108
  }
109
- function Ps(e) {
109
+ function Cs(e) {
110
110
  return document.createElementNS("http://www.w3.org/2000/svg", e);
111
111
  }
112
- function Ne(e) {
112
+ function Re(e) {
113
113
  return document.createTextNode(e);
114
114
  }
115
115
  function qt() {
116
- return Ne(" ");
116
+ return Re(" ");
117
117
  }
118
118
  function $n() {
119
- return Ne("");
119
+ return Re("");
120
120
  }
121
121
  function Zt(e, t, r, n) {
122
122
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
123
123
  }
124
- function U(e, t, r) {
124
+ function F(e, t, r) {
125
125
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
126
126
  }
127
- function w(e, t, r) {
127
+ function x(e, t, r) {
128
128
  const n = t.toLowerCase();
129
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : U(e, t, r);
129
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : F(e, t, r);
130
130
  }
131
131
  function kn(e) {
132
132
  return Array.from(e.childNodes);
133
133
  }
134
- function ot(e, t) {
134
+ function st(e, t) {
135
135
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
136
136
  t);
137
137
  }
138
- function Os(e, t, r, n) {
138
+ function Is(e, t, r, n) {
139
139
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
140
140
  }
141
- let bt;
141
+ let gt;
142
142
  function Vn() {
143
- if (bt === void 0) {
144
- bt = !1;
143
+ if (gt === void 0) {
144
+ gt = !1;
145
145
  try {
146
146
  typeof window != "undefined" && window.parent && window.parent.document;
147
147
  } catch (e) {
148
- bt = !0;
148
+ gt = !0;
149
149
  }
150
150
  }
151
- return bt;
151
+ return gt;
152
152
  }
153
- function Bs(e, t) {
153
+ function Ls(e, t) {
154
154
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
155
- const n = z("iframe");
155
+ const n = X("iframe");
156
156
  n.setAttribute(
157
157
  "style",
158
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;"
@@ -168,11 +168,11 @@ function Bs(e, t) {
168
168
  }
169
169
  )) : (n.src = "about:blank", n.onload = () => {
170
170
  o = Zt(n.contentWindow, "resize", t), t();
171
- }), re(e, n), () => {
172
- (i || o && n.contentWindow) && o(), ne(n);
171
+ }), te(e, n), () => {
172
+ (i || o && n.contentWindow) && o(), re(n);
173
173
  };
174
174
  }
175
- function Cs(e, t, r) {
175
+ function Ns(e, t, r) {
176
176
  e.classList.toggle(t, !!r);
177
177
  }
178
178
  function Xn(e) {
@@ -184,14 +184,14 @@ function Xn(e) {
184
184
  }
185
185
  ), t;
186
186
  }
187
- let st;
188
- function it(e) {
189
- st = e;
187
+ let at;
188
+ function ot(e) {
189
+ at = e;
190
190
  }
191
191
  function zn() {
192
- if (!st)
192
+ if (!at)
193
193
  throw new Error("Function called outside component initialization");
194
- return st;
194
+ return at;
195
195
  }
196
196
  function Wn(e) {
197
197
  zn().$$.on_mount.push(e);
@@ -201,27 +201,27 @@ let ke = [];
201
201
  const xr = [], qn = /* @__PURE__ */ Promise.resolve();
202
202
  let Qt = !1;
203
203
  function Zn() {
204
- Qt || (Qt = !0, qn.then(D));
204
+ Qt || (Qt = !0, qn.then(N));
205
205
  }
206
206
  function Yt(e) {
207
207
  ke.push(e);
208
208
  }
209
209
  const Ut = /* @__PURE__ */ new Set();
210
210
  let Ge = 0;
211
- function D() {
211
+ function N() {
212
212
  if (Ge !== 0)
213
213
  return;
214
- const e = st;
214
+ const e = at;
215
215
  do {
216
216
  try {
217
217
  for (; Ge < $e.length; ) {
218
218
  const t = $e[Ge];
219
- Ge++, it(t), Jn(t.$$);
219
+ Ge++, ot(t), Jn(t.$$);
220
220
  }
221
221
  } catch (t) {
222
222
  throw $e.length = 0, Ge = 0, t;
223
223
  }
224
- for (it(null), $e.length = 0, Ge = 0; Jt.length; )
224
+ for (ot(null), $e.length = 0, Ge = 0; Jt.length; )
225
225
  Jt.pop()();
226
226
  for (let t = 0; t < ke.length; t += 1) {
227
227
  const r = ke[t];
@@ -231,11 +231,11 @@ function D() {
231
231
  } while ($e.length);
232
232
  for (; xr.length; )
233
233
  xr.pop()();
234
- Qt = !1, Ut.clear(), it(e);
234
+ Qt = !1, Ut.clear(), ot(e);
235
235
  }
236
236
  function Jn(e) {
237
237
  if (e.fragment !== null) {
238
- e.update(), lt(e.before_update);
238
+ e.update(), ht(e.before_update);
239
239
  const t = e.dirty;
240
240
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Yt);
241
241
  }
@@ -248,32 +248,32 @@ const Yn = /* @__PURE__ */ new Set();
248
248
  function Kn(e, t) {
249
249
  e && e.i && (Yn.delete(e), e.i(t));
250
250
  }
251
- function Is(e) {
251
+ function Ms(e) {
252
252
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
253
253
  }
254
254
  function ei(e, t, r) {
255
255
  const { fragment: n, after_update: i } = e.$$;
256
256
  n && n.m(t, r), Yt(() => {
257
- const o = e.$$.on_mount.map(qr).filter(At);
258
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : lt(o), e.$$.on_mount = [];
257
+ const o = e.$$.on_mount.map(qr).filter(Ht);
258
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ht(o), e.$$.on_mount = [];
259
259
  }), i.forEach(Yt);
260
260
  }
261
261
  function ti(e, t) {
262
262
  const r = e.$$;
263
- r.fragment !== null && (Qn(r.after_update), lt(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
263
+ r.fragment !== null && (Qn(r.after_update), ht(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
264
264
  }
265
265
  function ri(e, t) {
266
266
  e.$$.dirty[0] === -1 && ($e.push(e), Zn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
267
267
  }
268
268
  function ni(e, t, r, n, i, o, s = null, a = [-1]) {
269
- const l = st;
270
- it(e);
271
- const u = e.$$ = {
269
+ const f = at;
270
+ ot(e);
271
+ const l = e.$$ = {
272
272
  fragment: null,
273
273
  ctx: [],
274
274
  // state
275
275
  props: o,
276
- update: ce,
276
+ update: fe,
277
277
  not_equal: i,
278
278
  bound: Er(),
279
279
  // lifecycle
@@ -282,50 +282,50 @@ function ni(e, t, r, n, i, o, s = null, a = [-1]) {
282
282
  on_disconnect: [],
283
283
  before_update: [],
284
284
  after_update: [],
285
- context: new Map(t.context || (l ? l.$$.context : [])),
285
+ context: new Map(t.context || (f ? f.$$.context : [])),
286
286
  // everything else
287
287
  callbacks: Er(),
288
288
  dirty: a,
289
289
  skip_bound: !1,
290
- root: t.target || l.$$.root
290
+ root: t.target || f.$$.root
291
291
  };
292
- s && s(u.root);
292
+ s && s(l.root);
293
293
  let c = !1;
294
- if (u.ctx = r ? r(e, t.props || {}, (d, m, ...E) => {
295
- const B = E.length ? E[0] : m;
296
- return u.ctx && i(u.ctx[d], u.ctx[d] = B) && (!u.skip_bound && u.bound[d] && u.bound[d](B), c && ri(e, d)), m;
297
- }) : [], u.update(), c = !0, lt(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
294
+ if (l.ctx = r ? r(e, t.props || {}, (d, p, ...E) => {
295
+ const B = E.length ? E[0] : p;
296
+ return l.ctx && i(l.ctx[d], l.ctx[d] = B) && (!l.skip_bound && l.bound[d] && l.bound[d](B), c && ri(e, d)), p;
297
+ }) : [], l.update(), c = !0, ht(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
298
298
  if (t.hydrate) {
299
299
  const d = kn(t.target);
300
- u.fragment && u.fragment.l(d), d.forEach(ne);
300
+ l.fragment && l.fragment.l(d), d.forEach(re);
301
301
  } else
302
- u.fragment && u.fragment.c();
303
- t.intro && Kn(e.$$.fragment), ei(e, t.target, t.anchor), D();
302
+ l.fragment && l.fragment.c();
303
+ t.intro && Kn(e.$$.fragment), ei(e, t.target, t.anchor), N();
304
304
  }
305
- it(l);
305
+ ot(f);
306
306
  }
307
307
  let Qr;
308
308
  typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
309
309
  constructor(t, r, n) {
310
310
  super();
311
311
  /** The Svelte component constructor */
312
- fe(this, "$$ctor");
312
+ he(this, "$$ctor");
313
313
  /** Slots */
314
- fe(this, "$$s");
314
+ he(this, "$$s");
315
315
  /** The Svelte component instance */
316
- fe(this, "$$c");
316
+ he(this, "$$c");
317
317
  /** Whether or not the custom element is connected */
318
- fe(this, "$$cn", !1);
318
+ he(this, "$$cn", !1);
319
319
  /** Component props data */
320
- fe(this, "$$d", {});
320
+ he(this, "$$d", {});
321
321
  /** `true` if currently in the process of reflecting component props back to attributes */
322
- fe(this, "$$r", !1);
322
+ he(this, "$$r", !1);
323
323
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
324
- fe(this, "$$p_d", {});
324
+ he(this, "$$p_d", {});
325
325
  /** @type {Record<string, Function[]>} Event listeners */
326
- fe(this, "$$l", {});
326
+ he(this, "$$l", {});
327
327
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
328
- fe(this, "$$l_u", /* @__PURE__ */ new Map());
328
+ he(this, "$$l_u", /* @__PURE__ */ new Map());
329
329
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
330
330
  }
331
331
  addEventListener(t, r, n) {
@@ -342,24 +342,24 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
342
342
  }
343
343
  }
344
344
  connectedCallback() {
345
- return Le(this, null, function* () {
345
+ return Me(this, null, function* () {
346
346
  if (this.$$cn = !0, !this.$$c) {
347
347
  let t = function(o) {
348
348
  return () => {
349
349
  let s;
350
350
  return {
351
351
  c: function() {
352
- s = z("slot"), o !== "default" && U(s, "name", o);
352
+ s = X("slot"), o !== "default" && F(s, "name", o);
353
353
  },
354
354
  /**
355
355
  * @param {HTMLElement} target
356
356
  * @param {HTMLElement} [anchor]
357
357
  */
358
- m: function(u, c) {
359
- de(u, s, c);
358
+ m: function(l, c) {
359
+ ce(l, s, c);
360
360
  },
361
- d: function(u) {
362
- u && ne(s);
361
+ d: function(l) {
362
+ l && re(s);
363
363
  }
364
364
  };
365
365
  };
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
371
371
  o in n && (r[o] = [t(o)]);
372
372
  for (const o of this.attributes) {
373
373
  const s = this.$$g_p(o.name);
374
- s in this.$$d || (this.$$d[s] = yt(s, o.value, this.$$p_d, "toProp"));
374
+ s in this.$$d || (this.$$d[s] = _t(s, o.value, this.$$p_d, "toProp"));
375
375
  }
376
376
  for (const o in this.$$p_d)
377
377
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -388,7 +388,7 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
388
388
  this.$$r = !0;
389
389
  for (const o in this.$$p_d)
390
390
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
391
- const s = yt(
391
+ const s = _t(
392
392
  o,
393
393
  this.$$d[o],
394
394
  this.$$p_d,
@@ -412,7 +412,7 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
412
412
  // and setting attributes through setAttribute etc, this is helpful
413
413
  attributeChangedCallback(t, r, n) {
414
414
  var i;
415
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = yt(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
415
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = _t(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
416
416
  }
417
417
  disconnectedCallback() {
418
418
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -425,7 +425,7 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
425
425
  ) || t;
426
426
  }
427
427
  });
428
- function yt(e, t, r, n) {
428
+ function _t(e, t, r, n) {
429
429
  var o;
430
430
  const i = (o = r[e]) == null ? void 0 : o.type;
431
431
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -471,16 +471,16 @@ function ii(e, t, r, n, i, o) {
471
471
  get() {
472
472
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
473
473
  },
474
- set(l) {
475
- var u;
476
- l = yt(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
474
+ set(f) {
475
+ var l;
476
+ f = _t(a, f, t), this.$$d[a] = f, (l = this.$$c) == null || l.$set({ [a]: f });
477
477
  }
478
478
  });
479
479
  }), n.forEach((a) => {
480
480
  Object.defineProperty(s.prototype, a, {
481
481
  get() {
482
- var l;
483
- return (l = this.$$c) == null ? void 0 : l[a];
482
+ var f;
483
+ return (f = this.$$c) == null ? void 0 : f[a];
484
484
  }
485
485
  });
486
486
  }), e.element = /** @type {any} */
@@ -495,7 +495,7 @@ class oi {
495
495
  *
496
496
  * @type {any}
497
497
  */
498
- fe(this, "$$");
498
+ he(this, "$$");
499
499
  /**
500
500
  * ### PRIVATE API
501
501
  *
@@ -503,11 +503,11 @@ class oi {
503
503
  *
504
504
  * @type {any}
505
505
  */
506
- fe(this, "$$set");
506
+ he(this, "$$set");
507
507
  }
508
508
  /** @returns {void} */
509
509
  $destroy() {
510
- ti(this, 1), this.$destroy = ce;
510
+ ti(this, 1), this.$destroy = fe;
511
511
  }
512
512
  /**
513
513
  * @template {Extract<keyof Events, string>} K
@@ -516,8 +516,8 @@ class oi {
516
516
  * @returns {() => void}
517
517
  */
518
518
  $on(t, r) {
519
- if (!At(r))
520
- return ce;
519
+ if (!Ht(r))
520
+ return fe;
521
521
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
522
522
  return n.push(r), () => {
523
523
  const i = n.indexOf(r);
@@ -556,7 +556,7 @@ var Kt = function(e, t) {
556
556
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
557
557
  }, Kt(e, t);
558
558
  };
559
- function ht(e, t) {
559
+ function ft(e, t) {
560
560
  if (typeof t != "function" && t !== null)
561
561
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
562
562
  Kt(e, t);
@@ -627,7 +627,7 @@ function nr(e, t) {
627
627
  0 <= r && e.splice(r, 1);
628
628
  }
629
629
  }
630
- var Ht = function() {
630
+ var Pt = function() {
631
631
  function e(t) {
632
632
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
633
633
  }
@@ -639,15 +639,15 @@ var Ht = function() {
639
639
  if (s)
640
640
  if (this._parentage = null, Array.isArray(s))
641
641
  try {
642
- for (var a = er(s), l = a.next(); !l.done; l = a.next()) {
643
- var u = l.value;
644
- u.remove(this);
642
+ for (var a = er(s), f = a.next(); !f.done; f = a.next()) {
643
+ var l = f.value;
644
+ l.remove(this);
645
645
  }
646
- } catch (P) {
647
- t = { error: P };
646
+ } catch (H) {
647
+ t = { error: H };
648
648
  } finally {
649
649
  try {
650
- l && !l.done && (r = a.return) && r.call(a);
650
+ f && !f.done && (r = a.return) && r.call(a);
651
651
  } finally {
652
652
  if (t)
653
653
  throw t.error;
@@ -659,26 +659,26 @@ var Ht = function() {
659
659
  if (we(c))
660
660
  try {
661
661
  c();
662
- } catch (P) {
663
- o = P instanceof Gt ? P.errors : [P];
662
+ } catch (H) {
663
+ o = H instanceof Gt ? H.errors : [H];
664
664
  }
665
665
  var d = this._finalizers;
666
666
  if (d) {
667
667
  this._finalizers = null;
668
668
  try {
669
- for (var m = er(d), E = m.next(); !E.done; E = m.next()) {
669
+ for (var p = er(d), E = p.next(); !E.done; E = p.next()) {
670
670
  var B = E.value;
671
671
  try {
672
672
  wr(B);
673
- } catch (P) {
674
- o = o != null ? o : [], P instanceof Gt ? o = rr(rr([], tr(o)), tr(P.errors)) : o.push(P);
673
+ } catch (H) {
674
+ o = o != null ? o : [], H instanceof Gt ? o = rr(rr([], tr(o)), tr(H.errors)) : o.push(H);
675
675
  }
676
676
  }
677
- } catch (P) {
678
- n = { error: P };
677
+ } catch (H) {
678
+ n = { error: H };
679
679
  } finally {
680
680
  try {
681
- E && !E.done && (i = m.return) && i.call(m);
681
+ E && !E.done && (i = p.return) && i.call(p);
682
682
  } finally {
683
683
  if (n)
684
684
  throw n.error;
@@ -717,9 +717,9 @@ var Ht = function() {
717
717
  var t = new e();
718
718
  return t.closed = !0, t;
719
719
  }(), e;
720
- }(), Kr = Ht.EMPTY;
720
+ }(), Kr = Pt.EMPTY;
721
721
  function en(e) {
722
- return e instanceof Ht || e && "closed" in e && we(e.remove) && we(e.add) && we(e.unsubscribe);
722
+ return e instanceof Pt || e && "closed" in e && we(e.remove) && we(e.add) && we(e.unsubscribe);
723
723
  }
724
724
  function wr(e) {
725
725
  we(e) ? e() : e.unsubscribe();
@@ -744,11 +744,11 @@ function li(e) {
744
744
  }
745
745
  function Tr() {
746
746
  }
747
- function _t(e) {
747
+ function Et(e) {
748
748
  e();
749
749
  }
750
750
  var tn = function(e) {
751
- ht(t, e);
751
+ ft(t, e);
752
752
  function t(r) {
753
753
  var n = e.call(this) || this;
754
754
  return n.isStopped = !1, r ? (n.destination = r, en(r) && r.add(n)) : n.destination = ci, n;
@@ -778,7 +778,7 @@ var tn = function(e) {
778
778
  this.unsubscribe();
779
779
  }
780
780
  }, t;
781
- }(Ht), hi = function() {
781
+ }(Pt), hi = function() {
782
782
  function e(t) {
783
783
  this.partialObserver = t;
784
784
  }
@@ -788,7 +788,7 @@ var tn = function(e) {
788
788
  try {
789
789
  r.next(t);
790
790
  } catch (n) {
791
- gt(n);
791
+ vt(n);
792
792
  }
793
793
  }, e.prototype.error = function(t) {
794
794
  var r = this.partialObserver;
@@ -796,21 +796,21 @@ var tn = function(e) {
796
796
  try {
797
797
  r.error(t);
798
798
  } catch (n) {
799
- gt(n);
799
+ vt(n);
800
800
  }
801
801
  else
802
- gt(t);
802
+ vt(t);
803
803
  }, e.prototype.complete = function() {
804
804
  var t = this.partialObserver;
805
805
  if (t.complete)
806
806
  try {
807
807
  t.complete();
808
808
  } catch (r) {
809
- gt(r);
809
+ vt(r);
810
810
  }
811
811
  }, e;
812
812
  }(), ir = function(e) {
813
- ht(t, e);
813
+ ft(t, e);
814
814
  function t(r, n, i) {
815
815
  var o = e.call(this) || this, s;
816
816
  return we(r) || !r ? s = {
@@ -821,7 +821,7 @@ var tn = function(e) {
821
821
  }
822
822
  return t;
823
823
  }(tn);
824
- function gt(e) {
824
+ function vt(e) {
825
825
  li(e);
826
826
  }
827
827
  function fi(e) {
@@ -854,9 +854,9 @@ var Sr = function() {
854
854
  return r.source = this, r.operator = t, r;
855
855
  }, e.prototype.subscribe = function(t, r, n) {
856
856
  var i = this, o = gi(t) ? t : new ir(t, r, n);
857
- return _t(function() {
858
- var s = i, a = s.operator, l = s.source;
859
- o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
857
+ return Et(function() {
858
+ var s = i, a = s.operator, f = s.source;
859
+ o.add(a ? a.call(o, f) : f ? i._subscribe(o) : i._trySubscribe(o));
860
860
  }), o;
861
861
  }, e.prototype._trySubscribe = function(t) {
862
862
  try {
@@ -871,8 +871,8 @@ var Sr = function() {
871
871
  next: function(a) {
872
872
  try {
873
873
  t(a);
874
- } catch (l) {
875
- o(l), s.unsubscribe();
874
+ } catch (f) {
875
+ o(f), s.unsubscribe();
876
876
  }
877
877
  },
878
878
  error: o,
@@ -920,7 +920,7 @@ var vi = Yr(function(e) {
920
920
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
921
921
  };
922
922
  }), rn = function(e) {
923
- ht(t, e);
923
+ ft(t, e);
924
924
  function t() {
925
925
  var r = e.call(this) || this;
926
926
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
@@ -933,17 +933,17 @@ var vi = Yr(function(e) {
933
933
  throw new vi();
934
934
  }, t.prototype.next = function(r) {
935
935
  var n = this;
936
- _t(function() {
936
+ Et(function() {
937
937
  var i, o;
938
938
  if (n._throwIfClosed(), !n.isStopped) {
939
939
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
940
940
  try {
941
941
  for (var s = er(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
942
- var l = a.value;
943
- l.next(r);
942
+ var f = a.value;
943
+ f.next(r);
944
944
  }
945
- } catch (u) {
946
- i = { error: u };
945
+ } catch (l) {
946
+ i = { error: l };
947
947
  } finally {
948
948
  try {
949
949
  a && !a.done && (o = s.return) && o.call(s);
@@ -956,7 +956,7 @@ var vi = Yr(function(e) {
956
956
  });
957
957
  }, t.prototype.error = function(r) {
958
958
  var n = this;
959
- _t(function() {
959
+ Et(function() {
960
960
  if (n._throwIfClosed(), !n.isStopped) {
961
961
  n.hasError = n.isStopped = !0, n.thrownError = r;
962
962
  for (var i = n.observers; i.length; )
@@ -965,7 +965,7 @@ var vi = Yr(function(e) {
965
965
  });
966
966
  }, t.prototype.complete = function() {
967
967
  var r = this;
968
- _t(function() {
968
+ Et(function() {
969
969
  if (r._throwIfClosed(), !r.isStopped) {
970
970
  r.isStopped = !0;
971
971
  for (var n = r.observers; n.length; )
@@ -987,7 +987,7 @@ var vi = Yr(function(e) {
987
987
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
988
988
  }, t.prototype._innerSubscribe = function(r) {
989
989
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
990
- return o || s ? Kr : (this.currentObservers = null, a.push(r), new Ht(function() {
990
+ return o || s ? Kr : (this.currentObservers = null, a.push(r), new Pt(function() {
991
991
  n.currentObservers = null, nr(a, r);
992
992
  }));
993
993
  }, t.prototype._checkFinalizedStatuses = function(r) {
@@ -1000,7 +1000,7 @@ var vi = Yr(function(e) {
1000
1000
  return new Hr(r, n);
1001
1001
  }, t;
1002
1002
  }(Sr), Hr = function(e) {
1003
- ht(t, e);
1003
+ ft(t, e);
1004
1004
  function t(r, n) {
1005
1005
  var i = e.call(this) || this;
1006
1006
  return i.destination = r, i.source = n, i;
@@ -1024,52 +1024,52 @@ var vi = Yr(function(e) {
1024
1024
  },
1025
1025
  delegate: void 0
1026
1026
  }, yi = function(e) {
1027
- ht(t, e);
1027
+ ft(t, e);
1028
1028
  function t(r, n, i) {
1029
1029
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nn);
1030
1030
  var o = e.call(this) || this;
1031
1031
  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;
1032
1032
  }
1033
1033
  return t.prototype.next = function(r) {
1034
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1035
- i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1034
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, f = n._windowTime;
1035
+ i || (o.push(r), !s && o.push(a.now() + f)), this._trimBuffer(), e.prototype.next.call(this, r);
1036
1036
  }, t.prototype._subscribe = function(r) {
1037
1037
  this._throwIfClosed(), this._trimBuffer();
1038
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
1039
- r.next(a[l]);
1038
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), f = 0; f < a.length && !r.closed; f += o ? 1 : 2)
1039
+ r.next(a[f]);
1040
1040
  return this._checkFinalizedStatuses(r), n;
1041
1041
  }, t.prototype._trimBuffer = function() {
1042
1042
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1043
1043
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1044
- for (var l = i.now(), u = 0, c = 1; c < o.length && o[c] <= l; c += 2)
1045
- u = c;
1046
- u && o.splice(0, u + 1);
1044
+ for (var f = i.now(), l = 0, c = 1; c < o.length && o[c] <= f; c += 2)
1045
+ l = c;
1046
+ l && o.splice(0, l + 1);
1047
1047
  }
1048
1048
  }, t;
1049
1049
  }(rn);
1050
- const Pr = [], Or = {}, _i = (e, t = 0) => {
1050
+ const Pr = [], Br = {}, _i = (e, t = 0) => {
1051
1051
  if (Pr.indexOf(e) == -1) {
1052
1052
  const r = new yi(t);
1053
- Or[e] = r, Pr.push(e);
1053
+ Br[e] = r, Pr.push(e);
1054
1054
  }
1055
- return Or[e];
1055
+ return Br[e];
1056
1056
  }, je = [];
1057
1057
  function Ei(e, t) {
1058
1058
  return {
1059
- subscribe: Pt(e, t).subscribe
1059
+ subscribe: Bt(e, t).subscribe
1060
1060
  };
1061
1061
  }
1062
- function Pt(e, t = ce) {
1062
+ function Bt(e, t = fe) {
1063
1063
  let r;
1064
1064
  const n = /* @__PURE__ */ new Set();
1065
1065
  function i(a) {
1066
1066
  if (Zr(e, a) && (e = a, r)) {
1067
- const l = !je.length;
1068
- for (const u of n)
1069
- u[1](), je.push(u, e);
1070
- if (l) {
1071
- for (let u = 0; u < je.length; u += 2)
1072
- je[u][0](je[u + 1]);
1067
+ const f = !je.length;
1068
+ for (const l of n)
1069
+ l[1](), je.push(l, e);
1070
+ if (f) {
1071
+ for (let l = 0; l < je.length; l += 2)
1072
+ je[l][0](je[l + 1]);
1073
1073
  je.length = 0;
1074
1074
  }
1075
1075
  }
@@ -1077,10 +1077,10 @@ function Pt(e, t = ce) {
1077
1077
  function o(a) {
1078
1078
  i(a(e));
1079
1079
  }
1080
- function s(a, l = ce) {
1081
- const u = [a, l];
1082
- return n.add(u), n.size === 1 && (r = t(i, o) || ce), a(e), () => {
1083
- n.delete(u), n.size === 0 && r && (r(), r = null);
1080
+ function s(a, f = fe) {
1081
+ const l = [a, f];
1082
+ return n.add(l), n.size === 1 && (r = t(i, o) || fe), a(e), () => {
1083
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1084
1084
  };
1085
1085
  }
1086
1086
  return { set: i, update: o, subscribe: s };
@@ -1091,28 +1091,28 @@ function qe(e, t, r) {
1091
1091
  throw new Error("derived() expects stores as input, got a falsy value");
1092
1092
  const o = t.length < 2;
1093
1093
  return Ei(r, (s, a) => {
1094
- let l = !1;
1095
- const u = [];
1096
- let c = 0, d = ce;
1097
- const m = () => {
1094
+ let f = !1;
1095
+ const l = [];
1096
+ let c = 0, d = fe;
1097
+ const p = () => {
1098
1098
  if (c)
1099
1099
  return;
1100
1100
  d();
1101
- const B = t(n ? u[0] : u, s, a);
1102
- o ? s(B) : d = At(B) ? B : ce;
1101
+ const B = t(n ? l[0] : l, s, a);
1102
+ o ? s(B) : d = Ht(B) ? B : fe;
1103
1103
  }, E = i.map(
1104
- (B, P) => Jr(
1104
+ (B, H) => Jr(
1105
1105
  B,
1106
- (ee) => {
1107
- u[P] = ee, c &= ~(1 << P), l && m();
1106
+ (Y) => {
1107
+ l[H] = Y, c &= ~(1 << H), f && p();
1108
1108
  },
1109
1109
  () => {
1110
- c |= 1 << P;
1110
+ c |= 1 << H;
1111
1111
  }
1112
1112
  )
1113
1113
  );
1114
- return l = !0, m(), function() {
1115
- lt(E), d(), l = !1;
1114
+ return f = !0, p(), function() {
1115
+ ht(E), d(), f = !1;
1116
1116
  };
1117
1117
  });
1118
1118
  }
@@ -1128,21 +1128,21 @@ function Si(e) {
1128
1128
  }
1129
1129
  function Ai(e) {
1130
1130
  var t = Object.prototype.toString.call(e);
1131
- return t === "[object RegExp]" || t === "[object Date]" || Oi(e);
1131
+ return t === "[object RegExp]" || t === "[object Date]" || Bi(e);
1132
1132
  }
1133
1133
  var Hi = typeof Symbol == "function" && Symbol.for, Pi = Hi ? Symbol.for("react.element") : 60103;
1134
- function Oi(e) {
1134
+ function Bi(e) {
1135
1135
  return e.$$typeof === Pi;
1136
1136
  }
1137
- function Bi(e) {
1137
+ function Oi(e) {
1138
1138
  return Array.isArray(e) ? [] : {};
1139
1139
  }
1140
- function at(e, t) {
1141
- return t.clone !== !1 && t.isMergeableObject(e) ? Ve(Bi(e), e, t) : e;
1140
+ function ut(e, t) {
1141
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ve(Oi(e), e, t) : e;
1142
1142
  }
1143
1143
  function Ci(e, t, r) {
1144
1144
  return e.concat(t).map(function(n) {
1145
- return at(n, r);
1145
+ return ut(n, r);
1146
1146
  });
1147
1147
  }
1148
1148
  function Ii(e, t) {
@@ -1156,7 +1156,7 @@ function Li(e) {
1156
1156
  return Object.propertyIsEnumerable.call(e, t);
1157
1157
  }) : [];
1158
1158
  }
1159
- function Br(e) {
1159
+ function Or(e) {
1160
1160
  return Object.keys(e).concat(Li(e));
1161
1161
  }
1162
1162
  function on(e, t) {
@@ -1171,16 +1171,16 @@ function Ni(e, t) {
1171
1171
  }
1172
1172
  function Mi(e, t, r) {
1173
1173
  var n = {};
1174
- return r.isMergeableObject(e) && Br(e).forEach(function(i) {
1175
- n[i] = at(e[i], r);
1176
- }), Br(t).forEach(function(i) {
1177
- Ni(e, i) || (on(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ii(i, r)(e[i], t[i], r) : n[i] = at(t[i], r));
1174
+ return r.isMergeableObject(e) && Or(e).forEach(function(i) {
1175
+ n[i] = ut(e[i], r);
1176
+ }), Or(t).forEach(function(i) {
1177
+ Ni(e, i) || (on(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ii(i, r)(e[i], t[i], r) : n[i] = ut(t[i], r));
1178
1178
  }), n;
1179
1179
  }
1180
1180
  function Ve(e, t, r) {
1181
- r = r || {}, r.arrayMerge = r.arrayMerge || Ci, r.isMergeableObject = r.isMergeableObject || Ti, r.cloneUnlessOtherwiseSpecified = at;
1181
+ r = r || {}, r.arrayMerge = r.arrayMerge || Ci, r.isMergeableObject = r.isMergeableObject || Ti, r.cloneUnlessOtherwiseSpecified = ut;
1182
1182
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1183
- return o ? n ? r.arrayMerge(e, t, r) : Mi(e, t, r) : at(t, r);
1183
+ return o ? n ? r.arrayMerge(e, t, r) : Mi(e, t, r) : ut(t, r);
1184
1184
  }
1185
1185
  Ve.all = function(t, r) {
1186
1186
  if (!Array.isArray(t))
@@ -1208,15 +1208,15 @@ function Ot(e, t) {
1208
1208
  }
1209
1209
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1210
1210
  }
1211
- var ye = function() {
1212
- return ye = Object.assign || function(t) {
1211
+ var ve = function() {
1212
+ return ve = Object.assign || function(t) {
1213
1213
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1214
1214
  r = arguments[n];
1215
1215
  for (var o in r)
1216
1216
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1217
1217
  }
1218
1218
  return t;
1219
- }, ye.apply(this, arguments);
1219
+ }, ve.apply(this, arguments);
1220
1220
  };
1221
1221
  function Ui(e, t) {
1222
1222
  var r = {};
@@ -1281,54 +1281,54 @@ var Vi = function() {
1281
1281
  }
1282
1282
  }, kt = {
1283
1283
  variadic: ki
1284
- }, wt = function() {
1285
- return wt = Object.assign || function(t) {
1284
+ }, Tt = function() {
1285
+ return Tt = Object.assign || function(t) {
1286
1286
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1287
1287
  r = arguments[n];
1288
1288
  for (var o in r)
1289
1289
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1290
1290
  }
1291
1291
  return t;
1292
- }, wt.apply(this, arguments);
1292
+ }, Tt.apply(this, arguments);
1293
1293
  };
1294
- var A;
1294
+ var S;
1295
1295
  (function(e) {
1296
1296
  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";
1297
- })(A || (A = {}));
1298
- var R;
1297
+ })(S || (S = {}));
1298
+ var M;
1299
1299
  (function(e) {
1300
1300
  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";
1301
- })(R || (R = {}));
1301
+ })(M || (M = {}));
1302
1302
  var Xe;
1303
1303
  (function(e) {
1304
1304
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1305
1305
  })(Xe || (Xe = {}));
1306
1306
  function Cr(e) {
1307
- return e.type === R.literal;
1307
+ return e.type === M.literal;
1308
1308
  }
1309
1309
  function Wi(e) {
1310
- return e.type === R.argument;
1310
+ return e.type === M.argument;
1311
1311
  }
1312
1312
  function un(e) {
1313
- return e.type === R.number;
1313
+ return e.type === M.number;
1314
1314
  }
1315
1315
  function ln(e) {
1316
- return e.type === R.date;
1316
+ return e.type === M.date;
1317
1317
  }
1318
1318
  function hn(e) {
1319
- return e.type === R.time;
1319
+ return e.type === M.time;
1320
1320
  }
1321
1321
  function fn(e) {
1322
- return e.type === R.select;
1322
+ return e.type === M.select;
1323
1323
  }
1324
1324
  function cn(e) {
1325
- return e.type === R.plural;
1325
+ return e.type === M.plural;
1326
1326
  }
1327
1327
  function qi(e) {
1328
- return e.type === R.pound;
1328
+ return e.type === M.pound;
1329
1329
  }
1330
1330
  function dn(e) {
1331
- return e.type === R.tag;
1331
+ return e.type === M.tag;
1332
1332
  }
1333
1333
  function pn(e) {
1334
1334
  return !!(e && typeof e == "object" && e.type === Xe.number);
@@ -1428,32 +1428,32 @@ function Ji(e) {
1428
1428
  return "";
1429
1429
  }), t;
1430
1430
  }
1431
- var F = function() {
1432
- return F = Object.assign || function(t) {
1431
+ var R = function() {
1432
+ return R = Object.assign || function(t) {
1433
1433
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1434
1434
  r = arguments[n];
1435
1435
  for (var o in r)
1436
1436
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1437
1437
  }
1438
1438
  return t;
1439
- }, F.apply(this, arguments);
1439
+ }, R.apply(this, arguments);
1440
1440
  };
1441
1441
  var Qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1442
1442
  function Yi(e) {
1443
1443
  if (e.length === 0)
1444
1444
  throw new Error("Number skeleton cannot be empty");
1445
- for (var t = e.split(Qi).filter(function(m) {
1446
- return m.length > 0;
1445
+ for (var t = e.split(Qi).filter(function(p) {
1446
+ return p.length > 0;
1447
1447
  }), r = [], n = 0, i = t; n < i.length; n++) {
1448
1448
  var o = i[n], s = o.split("/");
1449
1449
  if (s.length === 0)
1450
1450
  throw new Error("Invalid number skeleton");
1451
- for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
1452
- var d = c[u];
1451
+ for (var a = s[0], f = s.slice(1), l = 0, c = f; l < c.length; l++) {
1452
+ var d = c[l];
1453
1453
  if (d.length === 0)
1454
1454
  throw new Error("Invalid number skeleton");
1455
1455
  }
1456
- r.push({ stem: a, options: l });
1456
+ r.push({ stem: a, options: f });
1457
1457
  }
1458
1458
  return r;
1459
1459
  }
@@ -1560,13 +1560,13 @@ function ro(e) {
1560
1560
  t.notation = "compact", t.compactDisplay = "long";
1561
1561
  continue;
1562
1562
  case "scientific":
1563
- t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1564
- return F(F({}, l), Nr(u));
1563
+ t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(f, l) {
1564
+ return R(R({}, f), Nr(l));
1565
1565
  }, {}));
1566
1566
  continue;
1567
1567
  case "engineering":
1568
- t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1569
- return F(F({}, l), Nr(u));
1568
+ t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(f, l) {
1569
+ return R(R({}, f), Nr(l));
1570
1570
  }, {}));
1571
1571
  continue;
1572
1572
  case "notation-simple":
@@ -1611,11 +1611,11 @@ function ro(e) {
1611
1611
  case "integer-width":
1612
1612
  if (i.options.length > 1)
1613
1613
  throw new RangeError("integer-width stems only accept a single optional option");
1614
- i.options[0].replace(eo, function(l, u, c, d, m, E) {
1615
- if (u)
1614
+ i.options[0].replace(eo, function(f, l, c, d, p, E) {
1615
+ if (l)
1616
1616
  t.minimumIntegerDigits = c.length;
1617
1617
  else {
1618
- if (d && m)
1618
+ if (d && p)
1619
1619
  throw new Error("We currently do not support maximum integer digits");
1620
1620
  if (E)
1621
1621
  throw new Error("We currently do not support exact integer digits");
@@ -1631,25 +1631,25 @@ function ro(e) {
1631
1631
  if (Ir.test(i.stem)) {
1632
1632
  if (i.options.length > 1)
1633
1633
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1634
- i.stem.replace(Ir, function(l, u, c, d, m, E) {
1635
- return c === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && E ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1634
+ i.stem.replace(Ir, function(f, l, c, d, p, E) {
1635
+ return c === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && E ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + E.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1636
1636
  });
1637
1637
  var o = i.options[0];
1638
- o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), Lr(o)));
1638
+ o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Lr(o)));
1639
1639
  continue;
1640
1640
  }
1641
1641
  if (bn.test(i.stem)) {
1642
- t = F(F({}, t), Lr(i.stem));
1642
+ t = R(R({}, t), Lr(i.stem));
1643
1643
  continue;
1644
1644
  }
1645
1645
  var s = vn(i.stem);
1646
- s && (t = F(F({}, t), s));
1646
+ s && (t = R(R({}, t), s));
1647
1647
  var a = to(i.stem);
1648
- a && (t = F(F({}, t), a));
1648
+ a && (t = R(R({}, t), a));
1649
1649
  }
1650
1650
  return t;
1651
1651
  }
1652
- var vt = {
1652
+ var yt = {
1653
1653
  "001": [
1654
1654
  "H",
1655
1655
  "h"
@@ -3070,11 +3070,11 @@ function no(e, t) {
3070
3070
  if (i === "j") {
3071
3071
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3072
3072
  o++, n++;
3073
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = io(t);
3074
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3075
- r += l;
3073
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), f = "a", l = io(t);
3074
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
3075
+ r += f;
3076
3076
  for (; s-- > 0; )
3077
- r = u + r;
3077
+ r = l + r;
3078
3078
  } else
3079
3079
  i === "J" ? r += "H" : r += i;
3080
3080
  }
@@ -3099,11 +3099,11 @@ function io(e) {
3099
3099
  }
3100
3100
  var r = e.language, n;
3101
3101
  r !== "root" && (n = e.maximize().region);
3102
- var i = vt[n || ""] || vt[r || ""] || vt["".concat(r, "-001")] || vt["001"];
3102
+ var i = yt[n || ""] || yt[r || ""] || yt["".concat(r, "-001")] || yt["001"];
3103
3103
  return i[0];
3104
3104
  }
3105
3105
  var Vt, oo = new RegExp("^".concat(mn.source, "*")), so = new RegExp("".concat(mn.source, "*$"));
3106
- function H(e, t) {
3106
+ function A(e, t) {
3107
3107
  return { start: e, end: t };
3108
3108
  }
3109
3109
  var ao = !!String.prototype.startsWith && "_a".startsWith("a", 1), uo = !!String.fromCodePoint, lo = !!Object.fromEntries, ho = !!String.prototype.codePointAt, fo = !!String.prototype.trimStart, co = !!String.prototype.trimEnd, po = !!Number.isSafeInteger, mo = po ? Number.isSafeInteger : function(e) {
@@ -3230,13 +3230,13 @@ var yo = (
3230
3230
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3231
3231
  var a = this.clonePosition();
3232
3232
  this.bump(), i.push({
3233
- type: R.pound,
3234
- location: H(a, this.clonePosition())
3233
+ type: M.pound,
3234
+ location: A(a, this.clonePosition())
3235
3235
  });
3236
3236
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3237
3237
  if (n)
3238
3238
  break;
3239
- return this.error(A.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
3239
+ return this.error(S.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
3240
3240
  } else if (o === 60 && !this.ignoreTag && hr(this.peek() || 0)) {
3241
3241
  var s = this.parseTag(t, r);
3242
3242
  if (s.err)
@@ -3258,9 +3258,9 @@ var yo = (
3258
3258
  if (this.bumpSpace(), this.bumpIf("/>"))
3259
3259
  return {
3260
3260
  val: {
3261
- type: R.literal,
3261
+ type: M.literal,
3262
3262
  value: "<".concat(i, "/>"),
3263
- location: H(n, this.clonePosition())
3263
+ location: A(n, this.clonePosition())
3264
3264
  },
3265
3265
  err: null
3266
3266
  };
@@ -3271,21 +3271,21 @@ var yo = (
3271
3271
  var s = o.val, a = this.clonePosition();
3272
3272
  if (this.bumpIf("</")) {
3273
3273
  if (this.isEOF() || !hr(this.char()))
3274
- return this.error(A.INVALID_TAG, H(a, this.clonePosition()));
3275
- var l = this.clonePosition(), u = this.parseTagName();
3276
- return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, H(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3274
+ return this.error(S.INVALID_TAG, A(a, this.clonePosition()));
3275
+ var f = this.clonePosition(), l = this.parseTagName();
3276
+ return i !== l ? this.error(S.UNMATCHED_CLOSING_TAG, A(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3277
3277
  val: {
3278
- type: R.tag,
3278
+ type: M.tag,
3279
3279
  value: i,
3280
3280
  children: s,
3281
- location: H(n, this.clonePosition())
3281
+ location: A(n, this.clonePosition())
3282
3282
  },
3283
3283
  err: null
3284
- } : this.error(A.INVALID_TAG, H(a, this.clonePosition())));
3284
+ } : this.error(S.INVALID_TAG, A(a, this.clonePosition())));
3285
3285
  } else
3286
- return this.error(A.UNCLOSED_TAG, H(n, this.clonePosition()));
3286
+ return this.error(S.UNCLOSED_TAG, A(n, this.clonePosition()));
3287
3287
  } else
3288
- return this.error(A.INVALID_TAG, H(n, this.clonePosition()));
3288
+ return this.error(S.INVALID_TAG, A(n, this.clonePosition()));
3289
3289
  }, e.prototype.parseTagName = function() {
3290
3290
  var t = this.offset();
3291
3291
  for (this.bump(); !this.isEOF() && Eo(this.char()); )
@@ -3310,9 +3310,9 @@ var yo = (
3310
3310
  }
3311
3311
  break;
3312
3312
  }
3313
- var l = H(n, this.clonePosition());
3313
+ var f = A(n, this.clonePosition());
3314
3314
  return {
3315
- val: { type: R.literal, value: i, location: l },
3315
+ val: { type: M.literal, value: i, location: f },
3316
3316
  err: null
3317
3317
  };
3318
3318
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -3360,91 +3360,91 @@ var yo = (
3360
3360
  }, e.prototype.parseArgument = function(t, r) {
3361
3361
  var n = this.clonePosition();
3362
3362
  if (this.bump(), this.bumpSpace(), this.isEOF())
3363
- return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition()));
3363
+ return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
3364
3364
  if (this.char() === 125)
3365
- return this.bump(), this.error(A.EMPTY_ARGUMENT, H(n, this.clonePosition()));
3365
+ return this.bump(), this.error(S.EMPTY_ARGUMENT, A(n, this.clonePosition()));
3366
3366
  var i = this.parseIdentifierIfPossible().value;
3367
3367
  if (!i)
3368
- return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
3368
+ return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
3369
3369
  if (this.bumpSpace(), this.isEOF())
3370
- return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition()));
3370
+ return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
3371
3371
  switch (this.char()) {
3372
3372
  case 125:
3373
3373
  return this.bump(), {
3374
3374
  val: {
3375
- type: R.argument,
3375
+ type: M.argument,
3376
3376
  // value does not include the opening and closing braces.
3377
3377
  value: i,
3378
- location: H(n, this.clonePosition())
3378
+ location: A(n, this.clonePosition())
3379
3379
  },
3380
3380
  err: null
3381
3381
  };
3382
3382
  case 44:
3383
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3383
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3384
3384
  default:
3385
- return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
3385
+ return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
3386
3386
  }
3387
3387
  }, e.prototype.parseIdentifierIfPossible = function() {
3388
3388
  var t = this.clonePosition(), r = this.offset(), n = lr(this.message, r), i = r + n.length;
3389
3389
  this.bumpTo(i);
3390
- var o = this.clonePosition(), s = H(t, o);
3390
+ var o = this.clonePosition(), s = A(t, o);
3391
3391
  return { value: n, location: s };
3392
3392
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3393
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3393
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
3394
3394
  switch (a) {
3395
3395
  case "":
3396
- return this.error(A.EXPECT_ARGUMENT_TYPE, H(s, l));
3396
+ return this.error(S.EXPECT_ARGUMENT_TYPE, A(s, f));
3397
3397
  case "number":
3398
3398
  case "date":
3399
3399
  case "time": {
3400
3400
  this.bumpSpace();
3401
- var u = null;
3401
+ var l = null;
3402
3402
  if (this.bumpIf(",")) {
3403
3403
  this.bumpSpace();
3404
3404
  var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
3405
3405
  if (d.err)
3406
3406
  return d;
3407
- var m = vo(d.val);
3408
- if (m.length === 0)
3409
- return this.error(A.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
3410
- var E = H(c, this.clonePosition());
3411
- u = { style: m, styleLocation: E };
3407
+ var p = vo(d.val);
3408
+ if (p.length === 0)
3409
+ return this.error(S.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
3410
+ var E = A(c, this.clonePosition());
3411
+ l = { style: p, styleLocation: E };
3412
3412
  }
3413
3413
  var B = this.tryParseArgumentClose(i);
3414
3414
  if (B.err)
3415
3415
  return B;
3416
- var P = H(i, this.clonePosition());
3417
- if (u && Mr(u == null ? void 0 : u.style, "::", 0)) {
3418
- var ee = go(u.style.slice(2));
3416
+ var H = A(i, this.clonePosition());
3417
+ if (l && Mr(l == null ? void 0 : l.style, "::", 0)) {
3418
+ var Y = go(l.style.slice(2));
3419
3419
  if (a === "number") {
3420
- var d = this.parseNumberSkeletonFromString(ee, u.styleLocation);
3420
+ var d = this.parseNumberSkeletonFromString(Y, l.styleLocation);
3421
3421
  return d.err ? d : {
3422
- val: { type: R.number, value: n, location: P, style: d.val },
3422
+ val: { type: M.number, value: n, location: H, style: d.val },
3423
3423
  err: null
3424
3424
  };
3425
3425
  } else {
3426
- if (ee.length === 0)
3427
- return this.error(A.EXPECT_DATE_TIME_SKELETON, P);
3428
- var pe = ee;
3429
- this.locale && (pe = no(ee, this.locale));
3430
- var m = {
3426
+ if (Y.length === 0)
3427
+ return this.error(S.EXPECT_DATE_TIME_SKELETON, H);
3428
+ var de = Y;
3429
+ this.locale && (de = no(Y, this.locale));
3430
+ var p = {
3431
3431
  type: Xe.dateTime,
3432
- pattern: pe,
3433
- location: u.styleLocation,
3434
- parsedOptions: this.shouldParseSkeletons ? Ji(pe) : {}
3435
- }, ie = a === "date" ? R.date : R.time;
3432
+ pattern: de,
3433
+ location: l.styleLocation,
3434
+ parsedOptions: this.shouldParseSkeletons ? Ji(de) : {}
3435
+ }, ne = a === "date" ? M.date : M.time;
3436
3436
  return {
3437
- val: { type: ie, value: n, location: P, style: m },
3437
+ val: { type: ne, value: n, location: H, style: p },
3438
3438
  err: null
3439
3439
  };
3440
3440
  }
3441
3441
  }
3442
3442
  return {
3443
3443
  val: {
3444
- type: a === "number" ? R.number : a === "date" ? R.date : R.time,
3444
+ type: a === "number" ? M.number : a === "date" ? M.date : M.time,
3445
3445
  value: n,
3446
- location: P,
3447
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3446
+ location: H,
3447
+ style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
3448
3448
  },
3449
3449
  err: null
3450
3450
  };
@@ -3452,30 +3452,30 @@ var yo = (
3452
3452
  case "plural":
3453
3453
  case "selectordinal":
3454
3454
  case "select": {
3455
- var N = this.clonePosition();
3455
+ var I = this.clonePosition();
3456
3456
  if (this.bumpSpace(), !this.bumpIf(","))
3457
- return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, H(N, wt({}, N)));
3457
+ return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, A(I, Tt({}, I)));
3458
3458
  this.bumpSpace();
3459
- var $ = this.parseIdentifierIfPossible(), Z = 0;
3460
- if (a !== "select" && $.value === "offset") {
3459
+ var j = this.parseIdentifierIfPossible(), q = 0;
3460
+ if (a !== "select" && j.value === "offset") {
3461
3461
  if (!this.bumpIf(":"))
3462
- return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
3462
+ return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
3463
3463
  this.bumpSpace();
3464
- var d = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3464
+ var d = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3465
3465
  if (d.err)
3466
3466
  return d;
3467
- this.bumpSpace(), $ = this.parseIdentifierIfPossible(), Z = d.val;
3467
+ this.bumpSpace(), j = this.parseIdentifierIfPossible(), q = d.val;
3468
3468
  }
3469
- var le = this.tryParsePluralOrSelectOptions(t, a, r, $);
3469
+ var le = this.tryParsePluralOrSelectOptions(t, a, r, j);
3470
3470
  if (le.err)
3471
3471
  return le;
3472
3472
  var B = this.tryParseArgumentClose(i);
3473
3473
  if (B.err)
3474
3474
  return B;
3475
- var ge = H(i, this.clonePosition());
3475
+ var ge = A(i, this.clonePosition());
3476
3476
  return a === "select" ? {
3477
3477
  val: {
3478
- type: R.select,
3478
+ type: M.select,
3479
3479
  value: n,
3480
3480
  options: Rr(le.val),
3481
3481
  location: ge
@@ -3483,10 +3483,10 @@ var yo = (
3483
3483
  err: null
3484
3484
  } : {
3485
3485
  val: {
3486
- type: R.plural,
3486
+ type: M.plural,
3487
3487
  value: n,
3488
3488
  options: Rr(le.val),
3489
- offset: Z,
3489
+ offset: q,
3490
3490
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3491
3491
  location: ge
3492
3492
  },
@@ -3494,10 +3494,10 @@ var yo = (
3494
3494
  };
3495
3495
  }
3496
3496
  default:
3497
- return this.error(A.INVALID_ARGUMENT_TYPE, H(s, l));
3497
+ return this.error(S.INVALID_ARGUMENT_TYPE, A(s, f));
3498
3498
  }
3499
3499
  }, e.prototype.tryParseArgumentClose = function(t) {
3500
- return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3500
+ return this.isEOF() || this.char() !== 125 ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3501
3501
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3502
3502
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3503
3503
  var n = this.char();
@@ -3506,7 +3506,7 @@ var yo = (
3506
3506
  this.bump();
3507
3507
  var i = this.clonePosition();
3508
3508
  if (!this.bumpUntil("'"))
3509
- return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
3509
+ return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(i, this.clonePosition()));
3510
3510
  this.bump();
3511
3511
  break;
3512
3512
  }
@@ -3538,7 +3538,7 @@ var yo = (
3538
3538
  try {
3539
3539
  n = Yi(t);
3540
3540
  } catch (i) {
3541
- return this.error(A.INVALID_NUMBER_SKELETON, r);
3541
+ return this.error(S.INVALID_NUMBER_SKELETON, r);
3542
3542
  }
3543
3543
  return {
3544
3544
  val: {
@@ -3550,38 +3550,38 @@ var yo = (
3550
3550
  err: null
3551
3551
  };
3552
3552
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3553
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3554
- if (u.length === 0) {
3553
+ for (var o, s = !1, a = [], f = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
3554
+ if (l.length === 0) {
3555
3555
  var d = this.clonePosition();
3556
3556
  if (r !== "select" && this.bumpIf("=")) {
3557
- var m = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3558
- if (m.err)
3559
- return m;
3560
- c = H(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
3557
+ var p = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR, S.INVALID_PLURAL_ARGUMENT_SELECTOR);
3558
+ if (p.err)
3559
+ return p;
3560
+ c = A(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
3561
3561
  } else
3562
3562
  break;
3563
3563
  }
3564
- if (l.has(u))
3565
- return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3566
- u === "other" && (s = !0), this.bumpSpace();
3564
+ if (f.has(l))
3565
+ return this.error(r === "select" ? S.DUPLICATE_SELECT_ARGUMENT_SELECTOR : S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3566
+ l === "other" && (s = !0), this.bumpSpace();
3567
3567
  var E = this.clonePosition();
3568
3568
  if (!this.bumpIf("{"))
3569
- return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
3569
+ return this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
3570
3570
  var B = this.parseMessage(t + 1, r, n);
3571
3571
  if (B.err)
3572
3572
  return B;
3573
- var P = this.tryParseArgumentClose(E);
3574
- if (P.err)
3575
- return P;
3573
+ var H = this.tryParseArgumentClose(E);
3574
+ if (H.err)
3575
+ return H;
3576
3576
  a.push([
3577
- u,
3577
+ l,
3578
3578
  {
3579
3579
  value: B.val,
3580
- location: H(E, this.clonePosition())
3580
+ location: A(E, this.clonePosition())
3581
3581
  }
3582
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
3582
+ ]), f.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
3583
3583
  }
3584
- return a.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(A.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3584
+ return a.length === 0 ? this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR : S.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(S.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3585
3585
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3586
3586
  var n = 1, i = this.clonePosition();
3587
3587
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3592,8 +3592,8 @@ var yo = (
3592
3592
  else
3593
3593
  break;
3594
3594
  }
3595
- var l = H(i, this.clonePosition());
3596
- return o ? (s *= n, mo(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3595
+ var f = A(i, this.clonePosition());
3596
+ return o ? (s *= n, mo(s) ? { val: s, err: null } : this.error(r, f)) : this.error(t, f);
3597
3597
  }, e.prototype.offset = function() {
3598
3598
  return this.position.offset;
3599
3599
  }, e.prototype.isEOF = function() {
@@ -3684,10 +3684,10 @@ function fr(e) {
3684
3684
  });
3685
3685
  }
3686
3686
  function wo(e, t) {
3687
- t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3687
+ t === void 0 && (t = {}), t = Tt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3688
3688
  var r = new yo(e, t).parse();
3689
3689
  if (r.err) {
3690
- var n = SyntaxError(A[r.err.kind]);
3690
+ var n = SyntaxError(S[r.err.kind]);
3691
3691
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3692
3692
  }
3693
3693
  return t != null && t.captureLocation || fr(r.val), r.val;
@@ -3696,7 +3696,7 @@ var ze;
3696
3696
  (function(e) {
3697
3697
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3698
3698
  })(ze || (ze = {}));
3699
- var Bt = (
3699
+ var Ct = (
3700
3700
  /** @class */
3701
3701
  function(e) {
3702
3702
  Ot(t, e);
@@ -3716,7 +3716,7 @@ var Bt = (
3716
3716
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ze.INVALID_VALUE, o) || this;
3717
3717
  }
3718
3718
  return t;
3719
- }(Bt)
3719
+ }(Ct)
3720
3720
  ), To = (
3721
3721
  /** @class */
3722
3722
  function(e) {
@@ -3725,7 +3725,7 @@ var Bt = (
3725
3725
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ze.INVALID_VALUE, i) || this;
3726
3726
  }
3727
3727
  return t;
3728
- }(Bt)
3728
+ }(Ct)
3729
3729
  ), So = (
3730
3730
  /** @class */
3731
3731
  function(e) {
@@ -3734,40 +3734,40 @@ var Bt = (
3734
3734
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ze.MISSING_VALUE, n) || this;
3735
3735
  }
3736
3736
  return t;
3737
- }(Bt)
3738
- ), K;
3737
+ }(Ct)
3738
+ ), Q;
3739
3739
  (function(e) {
3740
3740
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3741
- })(K || (K = {}));
3741
+ })(Q || (Q = {}));
3742
3742
  function Ao(e) {
3743
3743
  return e.length < 2 ? e : e.reduce(function(t, r) {
3744
3744
  var n = t[t.length - 1];
3745
- return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
3745
+ return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
3746
3746
  }, []);
3747
3747
  }
3748
3748
  function Ho(e) {
3749
3749
  return typeof e == "function";
3750
3750
  }
3751
- function Et(e, t, r, n, i, o, s) {
3751
+ function xt(e, t, r, n, i, o, s) {
3752
3752
  if (e.length === 1 && Cr(e[0]))
3753
3753
  return [
3754
3754
  {
3755
- type: K.literal,
3755
+ type: Q.literal,
3756
3756
  value: e[0].value
3757
3757
  }
3758
3758
  ];
3759
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3760
- var c = u[l];
3759
+ for (var a = [], f = 0, l = e; f < l.length; f++) {
3760
+ var c = l[f];
3761
3761
  if (Cr(c)) {
3762
3762
  a.push({
3763
- type: K.literal,
3763
+ type: Q.literal,
3764
3764
  value: c.value
3765
3765
  });
3766
3766
  continue;
3767
3767
  }
3768
3768
  if (qi(c)) {
3769
3769
  typeof o == "number" && a.push({
3770
- type: K.literal,
3770
+ type: Q.literal,
3771
3771
  value: r.getNumberFormat(t).format(o)
3772
3772
  });
3773
3773
  continue;
@@ -3775,86 +3775,86 @@ function Et(e, t, r, n, i, o, s) {
3775
3775
  var d = c.value;
3776
3776
  if (!(i && d in i))
3777
3777
  throw new So(d, s);
3778
- var m = i[d];
3778
+ var p = i[d];
3779
3779
  if (Wi(c)) {
3780
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3781
- type: typeof m == "string" ? K.literal : K.object,
3782
- value: m
3780
+ (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3781
+ type: typeof p == "string" ? Q.literal : Q.object,
3782
+ value: p
3783
3783
  });
3784
3784
  continue;
3785
3785
  }
3786
3786
  if (ln(c)) {
3787
3787
  var E = typeof c.style == "string" ? n.date[c.style] : sr(c.style) ? c.style.parsedOptions : void 0;
3788
3788
  a.push({
3789
- type: K.literal,
3790
- value: r.getDateTimeFormat(t, E).format(m)
3789
+ type: Q.literal,
3790
+ value: r.getDateTimeFormat(t, E).format(p)
3791
3791
  });
3792
3792
  continue;
3793
3793
  }
3794
3794
  if (hn(c)) {
3795
3795
  var E = typeof c.style == "string" ? n.time[c.style] : sr(c.style) ? c.style.parsedOptions : n.time.medium;
3796
3796
  a.push({
3797
- type: K.literal,
3798
- value: r.getDateTimeFormat(t, E).format(m)
3797
+ type: Q.literal,
3798
+ value: r.getDateTimeFormat(t, E).format(p)
3799
3799
  });
3800
3800
  continue;
3801
3801
  }
3802
3802
  if (un(c)) {
3803
3803
  var E = typeof c.style == "string" ? n.number[c.style] : pn(c.style) ? c.style.parsedOptions : void 0;
3804
- E && E.scale && (m = m * (E.scale || 1)), a.push({
3805
- type: K.literal,
3806
- value: r.getNumberFormat(t, E).format(m)
3804
+ E && E.scale && (p = p * (E.scale || 1)), a.push({
3805
+ type: Q.literal,
3806
+ value: r.getNumberFormat(t, E).format(p)
3807
3807
  });
3808
3808
  continue;
3809
3809
  }
3810
3810
  if (dn(c)) {
3811
- var B = c.children, P = c.value, ee = i[P];
3812
- if (!Ho(ee))
3813
- throw new To(P, "function", s);
3814
- var pe = Et(B, t, r, n, i, o), ie = ee(pe.map(function(Z) {
3815
- return Z.value;
3811
+ var B = c.children, H = c.value, Y = i[H];
3812
+ if (!Ho(Y))
3813
+ throw new To(H, "function", s);
3814
+ var de = xt(B, t, r, n, i, o), ne = Y(de.map(function(q) {
3815
+ return q.value;
3816
3816
  }));
3817
- Array.isArray(ie) || (ie = [ie]), a.push.apply(a, ie.map(function(Z) {
3817
+ Array.isArray(ne) || (ne = [ne]), a.push.apply(a, ne.map(function(q) {
3818
3818
  return {
3819
- type: typeof Z == "string" ? K.literal : K.object,
3820
- value: Z
3819
+ type: typeof q == "string" ? Q.literal : Q.object,
3820
+ value: q
3821
3821
  };
3822
3822
  }));
3823
3823
  }
3824
3824
  if (fn(c)) {
3825
- var N = c.options[m] || c.options.other;
3826
- if (!N)
3827
- throw new Fr(c.value, m, Object.keys(c.options), s);
3828
- a.push.apply(a, Et(N.value, t, r, n, i));
3825
+ var I = c.options[p] || c.options.other;
3826
+ if (!I)
3827
+ throw new Fr(c.value, p, Object.keys(c.options), s);
3828
+ a.push.apply(a, xt(I.value, t, r, n, i));
3829
3829
  continue;
3830
3830
  }
3831
3831
  if (cn(c)) {
3832
- var N = c.options["=".concat(m)];
3833
- if (!N) {
3832
+ var I = c.options["=".concat(p)];
3833
+ if (!I) {
3834
3834
  if (!Intl.PluralRules)
3835
- throw new Bt(`Intl.PluralRules is not available in this environment.
3835
+ throw new Ct(`Intl.PluralRules is not available in this environment.
3836
3836
  Try polyfilling it using "@formatjs/intl-pluralrules"
3837
3837
  `, ze.MISSING_INTL_API, s);
3838
- var $ = r.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
3839
- N = c.options[$] || c.options.other;
3838
+ var j = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
3839
+ I = c.options[j] || c.options.other;
3840
3840
  }
3841
- if (!N)
3842
- throw new Fr(c.value, m, Object.keys(c.options), s);
3843
- a.push.apply(a, Et(N.value, t, r, n, i, m - (c.offset || 0)));
3841
+ if (!I)
3842
+ throw new Fr(c.value, p, Object.keys(c.options), s);
3843
+ a.push.apply(a, xt(I.value, t, r, n, i, p - (c.offset || 0)));
3844
3844
  continue;
3845
3845
  }
3846
3846
  }
3847
3847
  return Ao(a);
3848
3848
  }
3849
3849
  function Po(e, t) {
3850
- return t ? ye(ye(ye({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3851
- return r[n] = ye(ye({}, e[n]), t[n] || {}), r;
3850
+ return t ? ve(ve(ve({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3851
+ return r[n] = ve(ve({}, e[n]), t[n] || {}), r;
3852
3852
  }, {})) : e;
3853
3853
  }
3854
- function Oo(e, t) {
3854
+ function Bo(e, t) {
3855
3855
  return t ? Object.keys(e).reduce(function(r, n) {
3856
3856
  return r[n] = Po(e[n], t[n]), r;
3857
- }, ye({}, e)) : e;
3857
+ }, ve({}, e)) : e;
3858
3858
  }
3859
3859
  function Xt(e) {
3860
3860
  return {
@@ -3870,7 +3870,7 @@ function Xt(e) {
3870
3870
  }
3871
3871
  };
3872
3872
  }
3873
- function Bo(e) {
3873
+ function Oo(e) {
3874
3874
  return e === void 0 && (e = {
3875
3875
  number: {},
3876
3876
  dateTime: {},
@@ -3912,20 +3912,20 @@ var Co = (
3912
3912
  number: {},
3913
3913
  dateTime: {},
3914
3914
  pluralRules: {}
3915
- }, this.format = function(l) {
3916
- var u = o.formatToParts(l);
3917
- if (u.length === 1)
3918
- return u[0].value;
3919
- var c = u.reduce(function(d, m) {
3920
- return !d.length || m.type !== K.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
3915
+ }, this.format = function(f) {
3916
+ var l = o.formatToParts(f);
3917
+ if (l.length === 1)
3918
+ return l[0].value;
3919
+ var c = l.reduce(function(d, p) {
3920
+ return !d.length || p.type !== Q.literal || typeof d[d.length - 1] != "string" ? d.push(p.value) : d[d.length - 1] += p.value, d;
3921
3921
  }, []);
3922
3922
  return c.length <= 1 ? c[0] || "" : c;
3923
- }, this.formatToParts = function(l) {
3924
- return Et(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3923
+ }, this.formatToParts = function(f) {
3924
+ return xt(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3925
3925
  }, this.resolvedOptions = function() {
3926
- var l;
3926
+ var f;
3927
3927
  return {
3928
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3928
+ locale: ((f = o.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3929
3929
  };
3930
3930
  }, this.getAst = function() {
3931
3931
  return o.ast;
@@ -3935,12 +3935,12 @@ var Co = (
3935
3935
  var s = i || {};
3936
3936
  s.formatters;
3937
3937
  var a = Ui(s, ["formatters"]);
3938
- this.ast = e.__parse(t, ye(ye({}, a), { locale: this.resolvedLocale }));
3938
+ this.ast = e.__parse(t, ve(ve({}, a), { locale: this.resolvedLocale }));
3939
3939
  } else
3940
3940
  this.ast = t;
3941
3941
  if (!Array.isArray(this.ast))
3942
3942
  throw new TypeError("A message must be provided as a String or AST.");
3943
- this.formats = Oo(e.formats, n), this.formatters = i && i.formatters || Bo(this.formatterCache);
3943
+ this.formats = Bo(e.formats, n), this.formatters = i && i.formatters || Oo(this.formatterCache);
3944
3944
  }
3945
3945
  return Object.defineProperty(e, "defaultLocale", {
3946
3946
  get: function() {
@@ -4035,12 +4035,12 @@ function Io(e, t) {
4035
4035
  n = void 0;
4036
4036
  return n;
4037
4037
  }
4038
- const Ae = {}, Lo = (e, t, r) => r && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = r), r), xn = (e, t) => {
4038
+ const He = {}, Lo = (e, t, r) => r && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = r), r), xn = (e, t) => {
4039
4039
  if (t == null)
4040
4040
  return;
4041
- if (t in Ae && e in Ae[t])
4042
- return Ae[t][e];
4043
- const r = Ct(t);
4041
+ if (t in He && e in He[t])
4042
+ return He[t][e];
4043
+ const r = It(t);
4044
4044
  for (let n = 0; n < r.length; n++) {
4045
4045
  const i = r[n], o = Mo(i, e);
4046
4046
  if (o)
@@ -4048,7 +4048,7 @@ const Ae = {}, Lo = (e, t, r) => r && (t in Ae || (Ae[t] = {}), e in Ae[t] || (A
4048
4048
  }
4049
4049
  };
4050
4050
  let mr;
4051
- const Ze = Pt({});
4051
+ const Ze = Bt({});
4052
4052
  function No(e) {
4053
4053
  return mr[e] || null;
4054
4054
  }
@@ -4064,7 +4064,7 @@ function Mo(e, t) {
4064
4064
  function Ro(e) {
4065
4065
  if (e == null)
4066
4066
  return;
4067
- const t = Ct(e);
4067
+ const t = It(e);
4068
4068
  for (let r = 0; r < t.length; r++) {
4069
4069
  const n = t[r];
4070
4070
  if (wn(n))
@@ -4072,28 +4072,28 @@ function Ro(e) {
4072
4072
  }
4073
4073
  }
4074
4074
  function Tn(e, ...t) {
4075
- delete Ae[e], Ze.update((r) => (r[e] = Fi.all([r[e] || {}, ...t]), r));
4075
+ delete He[e], Ze.update((r) => (r[e] = Fi.all([r[e] || {}, ...t]), r));
4076
4076
  }
4077
4077
  qe(
4078
4078
  [Ze],
4079
4079
  ([e]) => Object.keys(e)
4080
4080
  );
4081
4081
  Ze.subscribe((e) => mr = e);
4082
- const xt = {};
4082
+ const wt = {};
4083
4083
  function Do(e, t) {
4084
- xt[e].delete(t), xt[e].size === 0 && delete xt[e];
4084
+ wt[e].delete(t), wt[e].size === 0 && delete wt[e];
4085
4085
  }
4086
4086
  function Sn(e) {
4087
- return xt[e];
4087
+ return wt[e];
4088
4088
  }
4089
4089
  function Fo(e) {
4090
- return Ct(e).map((t) => {
4090
+ return It(e).map((t) => {
4091
4091
  const r = Sn(t);
4092
4092
  return [t, r ? [...r] : []];
4093
4093
  }).filter(([, t]) => t.length > 0);
4094
4094
  }
4095
4095
  function cr(e) {
4096
- return e == null ? !1 : Ct(e).some(
4096
+ return e == null ? !1 : It(e).some(
4097
4097
  (t) => {
4098
4098
  var r;
4099
4099
  return (r = Sn(t)) == null ? void 0 : r.size;
@@ -4105,20 +4105,20 @@ function Uo(e, t) {
4105
4105
  t.map((n) => (Do(e, n), n().then((i) => i.default || i)))
4106
4106
  ).then((n) => Tn(e, ...n));
4107
4107
  }
4108
- const nt = {};
4108
+ const it = {};
4109
4109
  function An(e) {
4110
4110
  if (!cr(e))
4111
- return e in nt ? nt[e] : Promise.resolve();
4111
+ return e in it ? it[e] : Promise.resolve();
4112
4112
  const t = Fo(e);
4113
- return nt[e] = Promise.all(
4113
+ return it[e] = Promise.all(
4114
4114
  t.map(
4115
4115
  ([r, n]) => Uo(r, n)
4116
4116
  )
4117
4117
  ).then(() => {
4118
4118
  if (cr(e))
4119
4119
  return An(e);
4120
- delete nt[e];
4121
- }), nt[e];
4120
+ delete it[e];
4121
+ }), it[e];
4122
4122
  }
4123
4123
  const Go = {
4124
4124
  number: {
@@ -4160,7 +4160,7 @@ const Go = {
4160
4160
  function We() {
4161
4161
  return $o;
4162
4162
  }
4163
- const zt = Pt(!1);
4163
+ const zt = Bt(!1);
4164
4164
  var ko = Object.defineProperty, Vo = Object.defineProperties, Xo = Object.getOwnPropertyDescriptors, Ur = Object.getOwnPropertySymbols, zo = Object.prototype.hasOwnProperty, Wo = Object.prototype.propertyIsEnumerable, Gr = (e, t, r) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qo = (e, t) => {
4165
4165
  for (var r in t || (t = {}))
4166
4166
  zo.call(t, r) && Gr(e, r, t[r]);
@@ -4170,111 +4170,111 @@ var ko = Object.defineProperty, Vo = Object.defineProperties, Xo = Object.getOwn
4170
4170
  return e;
4171
4171
  }, Zo = (e, t) => Vo(e, Xo(t));
4172
4172
  let dr;
4173
- const Tt = Pt(null);
4173
+ const St = Bt(null);
4174
4174
  function jr(e) {
4175
4175
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4176
4176
  }
4177
- function Ct(e, t = We().fallbackLocale) {
4177
+ function It(e, t = We().fallbackLocale) {
4178
4178
  const r = jr(e);
4179
4179
  return t ? [.../* @__PURE__ */ new Set([...r, ...jr(t)])] : r;
4180
4180
  }
4181
- function Me() {
4181
+ function De() {
4182
4182
  return dr != null ? dr : void 0;
4183
4183
  }
4184
- Tt.subscribe((e) => {
4184
+ St.subscribe((e) => {
4185
4185
  dr = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4186
4186
  });
4187
4187
  const Jo = (e) => {
4188
4188
  if (e && Ro(e) && cr(e)) {
4189
4189
  const { loadingDelay: t } = We();
4190
4190
  let r;
4191
- return typeof window != "undefined" && Me() != null && t ? r = window.setTimeout(
4191
+ return typeof window != "undefined" && De() != null && t ? r = window.setTimeout(
4192
4192
  () => zt.set(!0),
4193
4193
  t
4194
4194
  ) : zt.set(!0), An(e).then(() => {
4195
- Tt.set(e);
4195
+ St.set(e);
4196
4196
  }).finally(() => {
4197
4197
  clearTimeout(r), zt.set(!1);
4198
4198
  });
4199
4199
  }
4200
- return Tt.set(e);
4201
- }, He = Zo(qo({}, Tt), {
4200
+ return St.set(e);
4201
+ }, Pe = Zo(qo({}, St), {
4202
4202
  set: Jo
4203
- }), It = (e) => {
4203
+ }), Lt = (e) => {
4204
4204
  const t = /* @__PURE__ */ Object.create(null);
4205
4205
  return (n) => {
4206
4206
  const i = JSON.stringify(n);
4207
4207
  return i in t ? t[i] : t[i] = e(n);
4208
4208
  };
4209
4209
  };
4210
- var Qo = Object.defineProperty, St = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, $r = (e, t, r) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, br = (e, t) => {
4210
+ var Qo = Object.defineProperty, At = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, $r = (e, t, r) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, br = (e, t) => {
4211
4211
  for (var r in t || (t = {}))
4212
4212
  Hn.call(t, r) && $r(e, r, t[r]);
4213
- if (St)
4214
- for (var r of St(t))
4213
+ if (At)
4214
+ for (var r of At(t))
4215
4215
  Pn.call(t, r) && $r(e, r, t[r]);
4216
4216
  return e;
4217
4217
  }, Je = (e, t) => {
4218
4218
  var r = {};
4219
4219
  for (var n in e)
4220
4220
  Hn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4221
- if (e != null && St)
4222
- for (var n of St(e))
4221
+ if (e != null && At)
4222
+ for (var n of At(e))
4223
4223
  t.indexOf(n) < 0 && Pn.call(e, n) && (r[n] = e[n]);
4224
4224
  return r;
4225
4225
  };
4226
- const ut = (e, t) => {
4226
+ const lt = (e, t) => {
4227
4227
  const { formats: r } = We();
4228
4228
  if (e in r && t in r[e])
4229
4229
  return r[e][t];
4230
4230
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4231
- }, Yo = It(
4231
+ }, Yo = Lt(
4232
4232
  (e) => {
4233
4233
  var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
4234
4234
  if (r == null)
4235
4235
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4236
- return n && (i = ut("number", n)), new Intl.NumberFormat(r, i);
4236
+ return n && (i = lt("number", n)), new Intl.NumberFormat(r, i);
4237
4237
  }
4238
- ), Ko = It(
4238
+ ), Ko = Lt(
4239
4239
  (e) => {
4240
4240
  var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
4241
4241
  if (r == null)
4242
4242
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4243
- return n ? i = ut("date", n) : Object.keys(i).length === 0 && (i = ut("date", "short")), new Intl.DateTimeFormat(r, i);
4243
+ return n ? i = lt("date", n) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(r, i);
4244
4244
  }
4245
- ), es = It(
4245
+ ), es = Lt(
4246
4246
  (e) => {
4247
4247
  var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
4248
4248
  if (r == null)
4249
4249
  throw new Error(
4250
4250
  '[svelte-i18n] A "locale" must be set to format time values'
4251
4251
  );
4252
- return n ? i = ut("time", n) : Object.keys(i).length === 0 && (i = ut("time", "short")), new Intl.DateTimeFormat(r, i);
4252
+ return n ? i = lt("time", n) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(r, i);
4253
4253
  }
4254
4254
  ), ts = (e = {}) => {
4255
4255
  var t = e, {
4256
- locale: r = Me()
4256
+ locale: r = De()
4257
4257
  } = t, n = Je(t, [
4258
4258
  "locale"
4259
4259
  ]);
4260
4260
  return Yo(br({ locale: r }, n));
4261
4261
  }, rs = (e = {}) => {
4262
4262
  var t = e, {
4263
- locale: r = Me()
4263
+ locale: r = De()
4264
4264
  } = t, n = Je(t, [
4265
4265
  "locale"
4266
4266
  ]);
4267
4267
  return Ko(br({ locale: r }, n));
4268
4268
  }, ns = (e = {}) => {
4269
4269
  var t = e, {
4270
- locale: r = Me()
4270
+ locale: r = De()
4271
4271
  } = t, n = Je(t, [
4272
4272
  "locale"
4273
4273
  ]);
4274
4274
  return es(br({ locale: r }, n));
4275
- }, is = It(
4275
+ }, is = Lt(
4276
4276
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4277
- (e, t = Me()) => new Co(e, t, We().formats, {
4277
+ (e, t = De()) => new Co(e, t, We().formats, {
4278
4278
  ignoreTag: We().ignoreTag
4279
4279
  })
4280
4280
  ), os = (e, t = {}) => {
@@ -4283,16 +4283,16 @@ const ut = (e, t) => {
4283
4283
  typeof e == "object" && (s = e, e = s.id);
4284
4284
  const {
4285
4285
  values: a,
4286
- locale: l = Me(),
4287
- default: u
4286
+ locale: f = De(),
4287
+ default: l
4288
4288
  } = s;
4289
- if (l == null)
4289
+ if (f == null)
4290
4290
  throw new Error(
4291
4291
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4292
4292
  );
4293
- let c = xn(e, l);
4293
+ let c = xn(e, f);
4294
4294
  if (!c)
4295
- c = (o = (i = (n = (r = We()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4295
+ c = (o = (i = (n = (r = We()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4296
4296
  else if (typeof c != "string")
4297
4297
  return console.warn(
4298
4298
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4301,31 +4301,31 @@ const ut = (e, t) => {
4301
4301
  return c;
4302
4302
  let d = c;
4303
4303
  try {
4304
- d = is(c, l).format(a);
4305
- } catch (m) {
4306
- m instanceof Error && console.warn(
4304
+ d = is(c, f).format(a);
4305
+ } catch (p) {
4306
+ p instanceof Error && console.warn(
4307
4307
  `[svelte-i18n] Message "${e}" has syntax error:`,
4308
- m.message
4308
+ p.message
4309
4309
  );
4310
4310
  }
4311
4311
  return d;
4312
- }, ss = (e, t) => ns(t).format(e), as = (e, t) => rs(t).format(e), us = (e, t) => ts(t).format(e), ls = (e, t = Me()) => xn(e, t), hs = qe([He, Ze], () => os);
4313
- qe([He], () => ss);
4314
- qe([He], () => as);
4315
- qe([He], () => us);
4316
- qe([He, Ze], () => ls);
4312
+ }, ss = (e, t) => ns(t).format(e), as = (e, t) => rs(t).format(e), us = (e, t) => ts(t).format(e), ls = (e, t = De()) => xn(e, t), hs = qe([Pe, Ze], () => os);
4313
+ qe([Pe], () => ss);
4314
+ qe([Pe], () => as);
4315
+ qe([Pe], () => us);
4316
+ qe([Pe, Ze], () => ls);
4317
4317
  window.emWidgets = { topic: _i };
4318
- const Ls = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), fs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4318
+ const Rs = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), fs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4319
4319
  function cs({ withLocale: e, translations: t }) {
4320
- He.subscribe((r) => {
4321
- r == null && (Ze.set(t), He.set(e));
4320
+ Pe.subscribe((r) => {
4321
+ r == null && (Ze.set(t), Pe.set(e));
4322
4322
  });
4323
4323
  }
4324
4324
  function Wt(e, t) {
4325
4325
  Tn(e, t);
4326
4326
  }
4327
4327
  function kr(e) {
4328
- He.set(e);
4328
+ Pe.set(e);
4329
4329
  }
4330
4330
  const Vr = {
4331
4331
  en: {
@@ -4403,9 +4403,9 @@ var pr = { exports: {} };
4403
4403
  */
4404
4404
  (function(e, t) {
4405
4405
  (function(r) {
4406
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, c = r.Promise, d = r.fetch, m = r.Response, E = r.TextDecoder, B = r.TextEncoder, P = r.AbortController;
4407
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
4408
- u.readyState = "complete";
4406
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, f = r.EventSource, l = r.document, c = r.Promise, d = r.fetch, p = r.Response, E = r.TextDecoder, B = r.TextEncoder, H = r.AbortController;
4407
+ if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
4408
+ l.readyState = "complete";
4409
4409
  }, !1)), o == null && a != null && (o = function() {
4410
4410
  return new a("Microsoft.XMLHTTP");
4411
4411
  }), Object.create == null && (Object.create = function(h) {
@@ -4414,16 +4414,16 @@ var pr = { exports: {} };
4414
4414
  return b.prototype = h, new b();
4415
4415
  }), Date.now || (Date.now = function() {
4416
4416
  return (/* @__PURE__ */ new Date()).getTime();
4417
- }), P == null) {
4418
- var ee = d;
4417
+ }), H == null) {
4418
+ var Y = d;
4419
4419
  d = function(h, b) {
4420
4420
  var g = b.signal;
4421
- return ee(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(p) {
4422
- var y = p.body.getReader();
4421
+ return Y(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
4422
+ var y = m.body.getReader();
4423
4423
  return g._reader = y, g._aborted && g._reader.cancel(), {
4424
- status: p.status,
4425
- statusText: p.statusText,
4426
- headers: p.headers,
4424
+ status: m.status,
4425
+ statusText: m.statusText,
4426
+ headers: m.headers,
4427
4427
  body: {
4428
4428
  getReader: function() {
4429
4429
  return y;
@@ -4431,7 +4431,7 @@ var pr = { exports: {} };
4431
4431
  }
4432
4432
  };
4433
4433
  });
4434
- }, P = function() {
4434
+ }, H = function() {
4435
4435
  this.signal = {
4436
4436
  _reader: null,
4437
4437
  _aborted: !1
@@ -4440,35 +4440,35 @@ var pr = { exports: {} };
4440
4440
  };
4441
4441
  };
4442
4442
  }
4443
- function pe() {
4443
+ function de() {
4444
4444
  this.bitsNeeded = 0, this.codePoint = 0;
4445
4445
  }
4446
- pe.prototype.decode = function(h) {
4447
- function b(O, I, _) {
4448
- if (_ === 1)
4449
- return O >= 128 >> I && O << I <= 2047;
4450
- if (_ === 2)
4451
- return O >= 2048 >> I && O << I <= 55295 || O >= 57344 >> I && O << I <= 65535;
4452
- if (_ === 3)
4453
- return O >= 65536 >> I && O << I <= 1114111;
4446
+ de.prototype.decode = function(h) {
4447
+ function b(P, O, u) {
4448
+ if (u === 1)
4449
+ return P >= 128 >> O && P << O <= 2047;
4450
+ if (u === 2)
4451
+ return P >= 2048 >> O && P << O <= 55295 || P >= 57344 >> O && P << O <= 65535;
4452
+ if (u === 3)
4453
+ return P >= 65536 >> O && P << O <= 1114111;
4454
4454
  throw new Error();
4455
4455
  }
4456
- function g(O, I) {
4457
- if (O === 6 * 1)
4458
- return I >> 6 > 15 ? 3 : I > 31 ? 2 : 1;
4459
- if (O === 6 * 2)
4460
- return I > 15 ? 3 : 2;
4461
- if (O === 6 * 3)
4456
+ function g(P, O) {
4457
+ if (P === 6 * 1)
4458
+ return O >> 6 > 15 ? 3 : O > 31 ? 2 : 1;
4459
+ if (P === 6 * 2)
4460
+ return O > 15 ? 3 : 2;
4461
+ if (P === 6 * 3)
4462
4462
  return 3;
4463
4463
  throw new Error();
4464
4464
  }
4465
- for (var p = 65533, y = "", v = this.bitsNeeded, x = this.codePoint, M = 0; M < h.length; M += 1) {
4466
- var T = h[M];
4467
- v !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, v - 6, g(v, x))) && (v = 0, x = p, y += String.fromCharCode(x)), v === 0 ? (T >= 0 && T <= 127 ? (v = 0, x = T) : T >= 192 && T <= 223 ? (v = 6 * 1, x = T & 31) : T >= 224 && T <= 239 ? (v = 6 * 2, x = T & 15) : T >= 240 && T <= 247 ? (v = 6 * 3, x = T & 7) : (v = 0, x = p), v !== 0 && !b(x, v, g(v, x)) && (v = 0, x = p)) : (v -= 6, x = x << 6 | T & 63), v === 0 && (x <= 65535 ? y += String.fromCharCode(x) : (y += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), y += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
4465
+ for (var m = 65533, y = "", v = this.bitsNeeded, w = this.codePoint, L = 0; L < h.length; L += 1) {
4466
+ var T = h[L];
4467
+ v !== 0 && (T < 128 || T > 191 || !b(w << 6 | T & 63, v - 6, g(v, w))) && (v = 0, w = m, y += String.fromCharCode(w)), v === 0 ? (T >= 0 && T <= 127 ? (v = 0, w = T) : T >= 192 && T <= 223 ? (v = 6 * 1, w = T & 31) : T >= 224 && T <= 239 ? (v = 6 * 2, w = T & 15) : T >= 240 && T <= 247 ? (v = 6 * 3, w = T & 7) : (v = 0, w = m), v !== 0 && !b(w, v, g(v, w)) && (v = 0, w = m)) : (v -= 6, w = w << 6 | T & 63), v === 0 && (w <= 65535 ? y += String.fromCharCode(w) : (y += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), y += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
4468
4468
  }
4469
- return this.bitsNeeded = v, this.codePoint = x, y;
4469
+ return this.bitsNeeded = v, this.codePoint = w, y;
4470
4470
  };
4471
- var ie = function() {
4471
+ var ne = function() {
4472
4472
  try {
4473
4473
  return new E().decode(new B().encode("test"), { stream: !0 }) === "test";
4474
4474
  } catch (h) {
@@ -4476,84 +4476,84 @@ var pr = { exports: {} };
4476
4476
  }
4477
4477
  return !1;
4478
4478
  };
4479
- (E == null || B == null || !ie()) && (E = pe);
4480
- var N = function() {
4479
+ (E == null || B == null || !ne()) && (E = de);
4480
+ var I = function() {
4481
4481
  };
4482
- function $(h) {
4483
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = N, this.onload = N, this.onerror = N, this.onreadystatechange = N, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = N;
4482
+ function j(h) {
4483
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = I, this.onload = I, this.onerror = I, this.onreadystatechange = I, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = I;
4484
4484
  }
4485
- $.prototype.open = function(h, b) {
4485
+ j.prototype.open = function(h, b) {
4486
4486
  this._abort(!0);
4487
- var g = this, p = this._xhr, y = 1, v = 0;
4488
- this._abort = function(_) {
4489
- g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4, p.onload = N, p.onerror = N, p.onabort = N, p.onprogress = N, p.onreadystatechange = N, p.abort(), v !== 0 && (i(v), v = 0), _ || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), y = 0;
4487
+ var g = this, m = this._xhr, y = 1, v = 0;
4488
+ this._abort = function(u) {
4489
+ g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4, m.onload = I, m.onerror = I, m.onabort = I, m.onprogress = I, m.onreadystatechange = I, m.abort(), v !== 0 && (i(v), v = 0), u || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), y = 0;
4490
4490
  };
4491
- var x = function() {
4491
+ var w = function() {
4492
4492
  if (y === 1) {
4493
- var _ = 0, f = "", S = void 0;
4494
- if ("contentType" in p)
4495
- _ = 200, f = "OK", S = p.contentType;
4493
+ var u = 0, _ = "", C = void 0;
4494
+ if ("contentType" in m)
4495
+ u = 200, _ = "OK", C = m.contentType;
4496
4496
  else
4497
4497
  try {
4498
- _ = p.status, f = p.statusText, S = p.getResponseHeader("Content-Type");
4499
- } catch (L) {
4500
- _ = 0, f = "", S = void 0;
4498
+ u = m.status, _ = m.statusText, C = m.getResponseHeader("Content-Type");
4499
+ } catch (D) {
4500
+ u = 0, _ = "", C = void 0;
4501
4501
  }
4502
- _ !== 0 && (y = 2, g.readyState = 2, g.status = _, g.statusText = f, g._contentType = S, g.onreadystatechange());
4502
+ u !== 0 && (y = 2, g.readyState = 2, g.status = u, g.statusText = _, g._contentType = C, g.onreadystatechange());
4503
4503
  }
4504
- }, M = function() {
4505
- if (x(), y === 2 || y === 3) {
4504
+ }, L = function() {
4505
+ if (w(), y === 2 || y === 3) {
4506
4506
  y = 3;
4507
- var _ = "";
4507
+ var u = "";
4508
4508
  try {
4509
- _ = p.responseText;
4510
- } catch (f) {
4509
+ u = m.responseText;
4510
+ } catch (_) {
4511
4511
  }
4512
- g.readyState = 3, g.responseText = _, g.onprogress();
4512
+ g.readyState = 3, g.responseText = u, g.onprogress();
4513
4513
  }
4514
- }, T = function(_, f) {
4515
- if ((f == null || f.preventDefault == null) && (f = {
4516
- preventDefault: N
4517
- }), M(), y === 1 || y === 2 || y === 3) {
4518
- if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4, _ === "load")
4519
- g.onload(f);
4520
- else if (_ === "error")
4521
- g.onerror(f);
4522
- else if (_ === "abort")
4523
- g.onabort(f);
4514
+ }, T = function(u, _) {
4515
+ if ((_ == null || _.preventDefault == null) && (_ = {
4516
+ preventDefault: I
4517
+ }), L(), y === 1 || y === 2 || y === 3) {
4518
+ if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4, u === "load")
4519
+ g.onload(_);
4520
+ else if (u === "error")
4521
+ g.onerror(_);
4522
+ else if (u === "abort")
4523
+ g.onabort(_);
4524
4524
  else
4525
4525
  throw new TypeError();
4526
4526
  g.onreadystatechange();
4527
4527
  }
4528
- }, O = function(_) {
4529
- p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && T(p.responseText === "" ? "error" : "load", _) : p.readyState === 3 ? "onprogress" in p || M() : p.readyState === 2 && x());
4530
- }, I = function() {
4528
+ }, P = function(u) {
4529
+ m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && T(m.responseText === "" ? "error" : "load", u) : m.readyState === 3 ? "onprogress" in m || L() : m.readyState === 2 && w());
4530
+ }, O = function() {
4531
4531
  v = n(function() {
4532
- I();
4533
- }, 500), p.readyState === 3 && M();
4532
+ O();
4533
+ }, 500), m.readyState === 3 && L();
4534
4534
  };
4535
- "onload" in p && (p.onload = function(_) {
4536
- T("load", _);
4537
- }), "onerror" in p && (p.onerror = function(_) {
4538
- T("error", _);
4539
- }), "onabort" in p && (p.onabort = function(_) {
4540
- T("abort", _);
4541
- }), "onprogress" in p && (p.onprogress = M), "onreadystatechange" in p && (p.onreadystatechange = function(_) {
4542
- O(_);
4543
- }), ("contentType" in p || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(h, b, !0), "readyState" in p && (v = n(function() {
4544
- I();
4535
+ "onload" in m && (m.onload = function(u) {
4536
+ T("load", u);
4537
+ }), "onerror" in m && (m.onerror = function(u) {
4538
+ T("error", u);
4539
+ }), "onabort" in m && (m.onabort = function(u) {
4540
+ T("abort", u);
4541
+ }), "onprogress" in m && (m.onprogress = L), "onreadystatechange" in m && (m.onreadystatechange = function(u) {
4542
+ P(u);
4543
+ }), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(h, b, !0), "readyState" in m && (v = n(function() {
4544
+ O();
4545
4545
  }, 0));
4546
- }, $.prototype.abort = function() {
4546
+ }, j.prototype.abort = function() {
4547
4547
  this._abort(!1);
4548
- }, $.prototype.getResponseHeader = function(h) {
4548
+ }, j.prototype.getResponseHeader = function(h) {
4549
4549
  return this._contentType;
4550
- }, $.prototype.setRequestHeader = function(h, b) {
4550
+ }, j.prototype.setRequestHeader = function(h, b) {
4551
4551
  var g = this._xhr;
4552
4552
  "setRequestHeader" in g && g.setRequestHeader(h, b);
4553
- }, $.prototype.getAllResponseHeaders = function() {
4553
+ }, j.prototype.getAllResponseHeaders = function() {
4554
4554
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4555
- }, $.prototype.send = function() {
4556
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4555
+ }, j.prototype.send = function() {
4556
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4557
4557
  var h = this;
4558
4558
  h._sendTimeout = n(function() {
4559
4559
  h._sendTimeout = 0, h.send();
@@ -4568,89 +4568,89 @@ var pr = { exports: {} };
4568
4568
  throw g;
4569
4569
  }
4570
4570
  };
4571
- function Z(h) {
4571
+ function q(h) {
4572
4572
  return h.replace(/[A-Z]/g, function(b) {
4573
4573
  return String.fromCharCode(b.charCodeAt(0) + 32);
4574
4574
  });
4575
4575
  }
4576
4576
  function le(h) {
4577
4577
  for (var b = /* @__PURE__ */ Object.create(null), g = h.split(`\r
4578
- `), p = 0; p < g.length; p += 1) {
4579
- var y = g[p], v = y.split(": "), x = v.shift(), M = v.join(": ");
4580
- b[Z(x)] = M;
4578
+ `), m = 0; m < g.length; m += 1) {
4579
+ var y = g[m], v = y.split(": "), w = v.shift(), L = v.join(": ");
4580
+ b[q(w)] = L;
4581
4581
  }
4582
4582
  this._map = b;
4583
4583
  }
4584
4584
  le.prototype.get = function(h) {
4585
- return this._map[Z(h)];
4585
+ return this._map[q(h)];
4586
4586
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4587
4587
  function ge() {
4588
4588
  }
4589
- ge.prototype.open = function(h, b, g, p, y, v, x) {
4589
+ ge.prototype.open = function(h, b, g, m, y, v, w) {
4590
4590
  h.open("GET", y);
4591
- var M = 0;
4591
+ var L = 0;
4592
4592
  h.onprogress = function() {
4593
- var O = h.responseText, I = O.slice(M);
4594
- M += I.length, g(I);
4595
- }, h.onerror = function(O) {
4596
- O.preventDefault(), p(new Error("NetworkError"));
4593
+ var P = h.responseText, O = P.slice(L);
4594
+ L += O.length, g(O);
4595
+ }, h.onerror = function(P) {
4596
+ P.preventDefault(), m(new Error("NetworkError"));
4597
4597
  }, h.onload = function() {
4598
- p(null);
4598
+ m(null);
4599
4599
  }, h.onabort = function() {
4600
- p(null);
4600
+ m(null);
4601
4601
  }, h.onreadystatechange = function() {
4602
4602
  if (h.readyState === o.HEADERS_RECEIVED) {
4603
- var O = h.status, I = h.statusText, _ = h.getResponseHeader("Content-Type"), f = h.getAllResponseHeaders();
4604
- b(O, I, _, new le(f));
4603
+ var P = h.status, O = h.statusText, u = h.getResponseHeader("Content-Type"), _ = h.getAllResponseHeaders();
4604
+ b(P, O, u, new le(_));
4605
4605
  }
4606
4606
  }, h.withCredentials = v;
4607
- for (var T in x)
4608
- Object.prototype.hasOwnProperty.call(x, T) && h.setRequestHeader(T, x[T]);
4607
+ for (var T in w)
4608
+ Object.prototype.hasOwnProperty.call(w, T) && h.setRequestHeader(T, w[T]);
4609
4609
  return h.send(), h;
4610
4610
  };
4611
- function Re(h) {
4611
+ function Fe(h) {
4612
4612
  this._headers = h;
4613
4613
  }
4614
- Re.prototype.get = function(h) {
4614
+ Fe.prototype.get = function(h) {
4615
4615
  return this._headers.get(h);
4616
4616
  };
4617
- function Pe() {
4617
+ function Be() {
4618
4618
  }
4619
- Pe.prototype.open = function(h, b, g, p, y, v, x) {
4620
- var M = null, T = new P(), O = T.signal, I = new E();
4619
+ Be.prototype.open = function(h, b, g, m, y, v, w) {
4620
+ var L = null, T = new H(), P = T.signal, O = new E();
4621
4621
  return d(y, {
4622
- headers: x,
4622
+ headers: w,
4623
4623
  credentials: v ? "include" : "same-origin",
4624
- signal: O,
4624
+ signal: P,
4625
4625
  cache: "no-store"
4626
- }).then(function(_) {
4627
- return M = _.body.getReader(), b(_.status, _.statusText, _.headers.get("Content-Type"), new Re(_.headers)), new c(function(f, S) {
4628
- var L = function() {
4629
- M.read().then(function(C) {
4630
- if (C.done)
4631
- f(void 0);
4626
+ }).then(function(u) {
4627
+ return L = u.body.getReader(), b(u.status, u.statusText, u.headers.get("Content-Type"), new Fe(u.headers)), new c(function(_, C) {
4628
+ var D = function() {
4629
+ L.read().then(function(W) {
4630
+ if (W.done)
4631
+ _(void 0);
4632
4632
  else {
4633
- var k = I.decode(C.value, { stream: !0 });
4634
- g(k), L();
4633
+ var U = O.decode(W.value, { stream: !0 });
4634
+ g(U), D();
4635
4635
  }
4636
- }).catch(function(C) {
4637
- S(C);
4636
+ }).catch(function(W) {
4637
+ C(W);
4638
4638
  });
4639
4639
  };
4640
- L();
4640
+ D();
4641
4641
  });
4642
- }).catch(function(_) {
4643
- if (_.name !== "AbortError")
4644
- return _;
4645
- }).then(function(_) {
4646
- p(_);
4642
+ }).catch(function(u) {
4643
+ if (u.name !== "AbortError")
4644
+ return u;
4645
+ }).then(function(u) {
4646
+ m(u);
4647
4647
  }), {
4648
4648
  abort: function() {
4649
- M != null && M.cancel(), T.abort();
4649
+ L != null && L.cancel(), T.abort();
4650
4650
  }
4651
4651
  };
4652
4652
  };
4653
- function me() {
4653
+ function pe() {
4654
4654
  this._listeners = /* @__PURE__ */ Object.create(null);
4655
4655
  }
4656
4656
  function Oe(h) {
@@ -4658,189 +4658,212 @@ var pr = { exports: {} };
4658
4658
  throw h;
4659
4659
  }, 0);
4660
4660
  }
4661
- me.prototype.dispatchEvent = function(h) {
4661
+ pe.prototype.dispatchEvent = function(h) {
4662
4662
  h.target = this;
4663
4663
  var b = this._listeners[h.type];
4664
4664
  if (b != null)
4665
- for (var g = b.length, p = 0; p < g; p += 1) {
4666
- var y = b[p];
4665
+ for (var g = b.length, m = 0; m < g; m += 1) {
4666
+ var y = b[m];
4667
4667
  try {
4668
4668
  typeof y.handleEvent == "function" ? y.handleEvent(h) : y.call(this, h);
4669
4669
  } catch (v) {
4670
4670
  Oe(v);
4671
4671
  }
4672
4672
  }
4673
- }, me.prototype.addEventListener = function(h, b) {
4673
+ }, pe.prototype.addEventListener = function(h, b) {
4674
4674
  h = String(h);
4675
- var g = this._listeners, p = g[h];
4676
- p == null && (p = [], g[h] = p);
4677
- for (var y = !1, v = 0; v < p.length; v += 1)
4678
- p[v] === b && (y = !0);
4679
- y || p.push(b);
4680
- }, me.prototype.removeEventListener = function(h, b) {
4675
+ var g = this._listeners, m = g[h];
4676
+ m == null && (m = [], g[h] = m);
4677
+ for (var y = !1, v = 0; v < m.length; v += 1)
4678
+ m[v] === b && (y = !0);
4679
+ y || m.push(b);
4680
+ }, pe.prototype.removeEventListener = function(h, b) {
4681
4681
  h = String(h);
4682
- var g = this._listeners, p = g[h];
4683
- if (p != null) {
4684
- for (var y = [], v = 0; v < p.length; v += 1)
4685
- p[v] !== b && y.push(p[v]);
4682
+ var g = this._listeners, m = g[h];
4683
+ if (m != null) {
4684
+ for (var y = [], v = 0; v < m.length; v += 1)
4685
+ m[v] !== b && y.push(m[v]);
4686
4686
  y.length === 0 ? delete g[h] : g[h] = y;
4687
4687
  }
4688
4688
  };
4689
- function te(h) {
4689
+ function K(h) {
4690
4690
  this.type = h, this.target = void 0;
4691
4691
  }
4692
- function ft(h, b) {
4693
- te.call(this, h), this.data = b.data, this.lastEventId = b.lastEventId;
4692
+ function ct(h, b) {
4693
+ K.call(this, h), this.data = b.data, this.lastEventId = b.lastEventId;
4694
4694
  }
4695
- ft.prototype = Object.create(te.prototype);
4696
- function Be(h, b) {
4697
- te.call(this, h), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4695
+ ct.prototype = Object.create(K.prototype);
4696
+ function Ce(h, b) {
4697
+ K.call(this, h), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4698
4698
  }
4699
- Be.prototype = Object.create(te.prototype);
4699
+ Ce.prototype = Object.create(K.prototype);
4700
4700
  function Qe(h, b) {
4701
- te.call(this, h), this.error = b.error;
4701
+ K.call(this, h), this.error = b.error;
4702
4702
  }
4703
- Qe.prototype = Object.create(te.prototype);
4704
- var Ce = -1, W = 0, he = 1, ve = 2, oe = -1, se = 0, _e = 1, Ye = 2, be = 3, Ke = /^text\/event\-stream(;.*)?$/i, ct = 1e3, Lt = 18e6, et = function(h, b) {
4703
+ Qe.prototype = Object.create(K.prototype);
4704
+ var Ie = -1, ie = 0, z = 1, me = 2, Te = -1, $ = 0, Se = 1, Ae = 2, dt = 3, be = /^text\/event\-stream(;.*)?$/i, Ye = 1e3, pt = 18e6, Ke = function(h, b) {
4705
4705
  var g = h == null ? b : parseInt(h, 10);
4706
- return g !== g && (g = b), De(g);
4707
- }, De = function(h) {
4708
- return Math.min(Math.max(h, ct), Lt);
4709
- }, Te = function(h, b, g) {
4706
+ return g !== g && (g = b), et(g);
4707
+ }, et = function(h) {
4708
+ return Math.min(Math.max(h, Ye), pt);
4709
+ }, ye = function(h, b, g) {
4710
4710
  try {
4711
4711
  typeof b == "function" && b.call(h, g);
4712
- } catch (p) {
4713
- Oe(p);
4712
+ } catch (m) {
4713
+ Oe(m);
4714
4714
  }
4715
4715
  };
4716
- function J(h, b) {
4717
- me.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, dt(this, h, b);
4716
+ function oe(h, b) {
4717
+ pe.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Mt(this, h, b);
4718
4718
  }
4719
- function Nt() {
4719
+ function tt() {
4720
4720
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4721
4721
  }
4722
- var Mt = d != null && m != null && "body" in m.prototype;
4723
- function dt(h, b, g) {
4722
+ var Nt = d != null && p != null && "body" in p.prototype;
4723
+ function Mt(h, b, g) {
4724
4724
  b = String(b);
4725
- var p = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = De(1e3), x = et(g.heartbeatTimeout, 45e3), M = "", T = v, O = !1, I = 0, _ = g.headers || {}, f = g.Transport, S = Mt && f == null ? void 0 : new $(f != null ? new f() : Nt()), L = f != null && typeof f != "string" ? new f() : S == null ? new Pe() : new ge(), C = void 0, k = 0, q = Ce, Se = "", tt = "", G = "", pt = "", Q = se, Rt = 0, Ie = 0, Bn = function(V, j, ae, ue) {
4726
- if (q === W)
4727
- if (V === 200 && ae != null && Ke.test(ae)) {
4728
- q = he, O = Date.now(), T = v, h.readyState = he;
4729
- var Y = new Be("open", {
4730
- status: V,
4731
- statusText: j,
4725
+ var m = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = et(1e3), w = Ke(g.heartbeatTimeout, 45e3), L = "", T = v, P = !1, O = 0, u = g.headers || {}, _ = g.Transport, C = Nt && _ == null ? void 0 : new j(_ != null ? new _() : tt()), D = _ != null && typeof _ != "string" ? new _() : C == null ? new Be() : new ge(), W = void 0, U = 0, se = Ie, Le = "", ee = "", _e = "", mt = "", Z = $, Rt = 0, Ne = 0, On = function(k, G, ae, ue) {
4726
+ if (se === ie)
4727
+ if (k === 200 && ae != null && be.test(ae)) {
4728
+ se = z, P = Date.now(), T = v, h.readyState = z;
4729
+ var J = new Ce("open", {
4730
+ status: k,
4731
+ statusText: G,
4732
4732
  headers: ue
4733
4733
  });
4734
- h.dispatchEvent(Y), Te(h, h.onopen, Y);
4734
+ h.dispatchEvent(J), ye(h, h.onopen, J);
4735
4735
  } else {
4736
- var X = "";
4737
- V !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + j + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Dt();
4738
- var Y = new Be("error", {
4739
- status: V,
4740
- statusText: j,
4736
+ var V = "";
4737
+ k !== 200 ? (G && (G = G.replace(/\s+/g, " ")), V = "EventSource's response has a status " + k + " " + G + " that is not 200. Aborting the connection.") : V = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Dt();
4738
+ var J = new Ce("error", {
4739
+ status: k,
4740
+ statusText: G,
4741
4741
  headers: ue
4742
4742
  });
4743
- h.dispatchEvent(Y), Te(h, h.onerror, Y), console.error(X);
4743
+ h.dispatchEvent(J), ye(h, h.onerror, J), console.error(V);
4744
4744
  }
4745
- }, Cn = function(V) {
4746
- if (q === he) {
4747
- for (var j = -1, ae = 0; ae < V.length; ae += 1) {
4748
- var ue = V.charCodeAt(ae);
4749
- (ue === 10 || ue === 13) && (j = ae);
4745
+ }, Cn = function(k) {
4746
+ if (se === z) {
4747
+ for (var G = -1, ae = 0; ae < k.length; ae += 1) {
4748
+ var ue = k.charCodeAt(ae);
4749
+ (ue === 10 || ue === 13) && (G = ae);
4750
4750
  }
4751
- var Y = (j !== -1 ? pt : "") + V.slice(0, j + 1);
4752
- pt = (j === -1 ? pt : "") + V.slice(j + 1), V !== "" && (O = Date.now(), I += V.length);
4753
- for (var X = 0; X < Y.length; X += 1) {
4754
- var ue = Y.charCodeAt(X);
4755
- if (Q === oe && ue === 10)
4756
- Q = se;
4757
- else if (Q === oe && (Q = se), ue === 13 || ue === 10) {
4758
- if (Q !== se) {
4759
- Q === _e && (Ie = X + 1);
4760
- var Ee = Y.slice(Rt, Ie - 1), xe = Y.slice(Ie + (Ie < X && Y.charCodeAt(Ie) === 32 ? 1 : 0), X);
4761
- Ee === "data" ? (Se += `
4762
- `, Se += xe) : Ee === "id" ? tt = xe : Ee === "event" ? G = xe : Ee === "retry" ? (v = et(xe, v), T = v) : Ee === "heartbeatTimeout" && (x = et(xe, x), k !== 0 && (i(k), k = n(function() {
4763
- rt();
4764
- }, x)));
4751
+ var J = (G !== -1 ? mt : "") + k.slice(0, G + 1);
4752
+ mt = (G === -1 ? mt : "") + k.slice(G + 1), k !== "" && (P = Date.now(), O += k.length);
4753
+ for (var V = 0; V < J.length; V += 1) {
4754
+ var ue = J.charCodeAt(V);
4755
+ if (Z === Te && ue === 10)
4756
+ Z = $;
4757
+ else if (Z === Te && (Z = $), ue === 13 || ue === 10) {
4758
+ if (Z !== $) {
4759
+ Z === Se && (Ne = V + 1);
4760
+ var Ee = J.slice(Rt, Ne - 1), xe = J.slice(Ne + (Ne < V && J.charCodeAt(Ne) === 32 ? 1 : 0), V);
4761
+ Ee === "data" ? (Le += `
4762
+ `, Le += xe) : Ee === "id" ? ee = xe : Ee === "event" ? _e = xe : Ee === "retry" ? (v = Ke(xe, v), T = v) : Ee === "heartbeatTimeout" && (w = Ke(xe, w), U !== 0 && (i(U), U = n(function() {
4763
+ nt();
4764
+ }, w)));
4765
4765
  }
4766
- if (Q === se) {
4767
- if (Se !== "") {
4768
- M = tt, G === "" && (G = "message");
4769
- var Ue = new ft(G, {
4770
- data: Se.slice(1),
4771
- lastEventId: tt
4766
+ if (Z === $) {
4767
+ if (Le !== "") {
4768
+ L = ee, _e === "" && (_e = "message");
4769
+ var Ue = new ct(_e, {
4770
+ data: Le.slice(1),
4771
+ lastEventId: ee
4772
4772
  });
4773
- if (h.dispatchEvent(Ue), G === "open" ? Te(h, h.onopen, Ue) : G === "message" ? Te(h, h.onmessage, Ue) : G === "error" && Te(h, h.onerror, Ue), q === ve)
4773
+ if (h.dispatchEvent(Ue), _e === "open" ? ye(h, h.onopen, Ue) : _e === "message" ? ye(h, h.onmessage, Ue) : _e === "error" && ye(h, h.onerror, Ue), se === me)
4774
4774
  return;
4775
4775
  }
4776
- Se = "", G = "";
4776
+ Le = "", _e = "";
4777
4777
  }
4778
- Q = ue === 13 ? oe : se;
4778
+ Z = ue === 13 ? Te : $;
4779
4779
  } else
4780
- Q === se && (Rt = X, Q = _e), Q === _e ? ue === 58 && (Ie = X + 1, Q = Ye) : Q === Ye && (Q = be);
4780
+ Z === $ && (Rt = V, Z = Se), Z === Se ? ue === 58 && (Ne = V + 1, Z = Ae) : Z === Ae && (Z = dt);
4781
4781
  }
4782
4782
  }
4783
- }, gr = function(V) {
4784
- if (q === he || q === W) {
4785
- q = Ce, k !== 0 && (i(k), k = 0), k = n(function() {
4786
- rt();
4787
- }, T), T = De(Math.min(v * 16, T * 2)), h.readyState = W;
4788
- var j = new Qe("error", { error: V });
4789
- h.dispatchEvent(j), Te(h, h.onerror, j), V != null && console.error(V);
4783
+ }, gr = function(k) {
4784
+ if (se === z || se === ie) {
4785
+ se = Ie, U !== 0 && (i(U), U = 0), U = n(function() {
4786
+ nt();
4787
+ }, T), T = et(Math.min(v * 16, T * 2)), h.readyState = ie;
4788
+ var G = new Qe("error", { error: k });
4789
+ h.dispatchEvent(G), ye(h, h.onerror, G), k != null && console.error(k);
4790
4790
  }
4791
4791
  }, Dt = function() {
4792
- q = ve, C != null && (C.abort(), C = void 0), k !== 0 && (i(k), k = 0), h.readyState = ve;
4793
- }, rt = function() {
4794
- if (k = 0, q !== Ce) {
4795
- if (!O && C != null)
4796
- gr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : I + " chars received.") + " Reconnecting.")), C != null && (C.abort(), C = void 0);
4792
+ se = me, W != null && (W.abort(), W = void 0), U !== 0 && (i(U), U = 0), h.readyState = me;
4793
+ }, nt = function() {
4794
+ if (U = 0, se !== Ie) {
4795
+ if (!P && W != null)
4796
+ gr(new Error("No activity within " + w + " milliseconds. " + (se === ie ? "No response received." : O + " chars received.") + " Reconnecting.")), W != null && (W.abort(), W = void 0);
4797
4797
  else {
4798
- var V = Math.max((O || Date.now()) + x - Date.now(), 1);
4799
- O = !1, k = n(function() {
4800
- rt();
4801
- }, V);
4798
+ var k = Math.max((P || Date.now()) + w - Date.now(), 1);
4799
+ P = !1, U = n(function() {
4800
+ nt();
4801
+ }, k);
4802
4802
  }
4803
4803
  return;
4804
4804
  }
4805
- O = !1, I = 0, k = n(function() {
4806
- rt();
4807
- }, x), q = W, Se = "", G = "", tt = M, pt = "", Rt = 0, Ie = 0, Q = se;
4808
- var j = b;
4809
- if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && M !== "") {
4805
+ P = !1, O = 0, U = n(function() {
4806
+ nt();
4807
+ }, w), se = ie, Le = "", _e = "", ee = L, mt = "", Rt = 0, Ne = 0, Z = $;
4808
+ var G = b;
4809
+ if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && L !== "") {
4810
4810
  var ae = b.indexOf("?");
4811
- j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Ue) {
4811
+ G = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Ue) {
4812
4812
  return Ue === y ? "" : xe;
4813
- }), j += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(M);
4813
+ }), G += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(L);
4814
4814
  }
4815
- var ue = h.withCredentials, Y = {};
4816
- Y.Accept = "text/event-stream";
4817
- var X = h.headers;
4818
- if (X != null)
4819
- for (var Ee in X)
4820
- Object.prototype.hasOwnProperty.call(X, Ee) && (Y[Ee] = X[Ee]);
4815
+ var ue = h.withCredentials, J = {};
4816
+ J.Accept = "text/event-stream";
4817
+ var V = h.headers;
4818
+ if (V != null)
4819
+ for (var Ee in V)
4820
+ Object.prototype.hasOwnProperty.call(V, Ee) && (J[Ee] = V[Ee]);
4821
4821
  try {
4822
- C = L.open(S, Bn, Cn, gr, j, ue, Y);
4822
+ W = D.open(C, On, Cn, gr, G, ue, J);
4823
4823
  } catch (xe) {
4824
4824
  throw Dt(), xe;
4825
4825
  }
4826
4826
  };
4827
- h.url = b, h.readyState = W, h.withCredentials = p, h.headers = _, h._close = Dt, rt();
4827
+ h.url = b, h.readyState = ie, h.withCredentials = m, h.headers = u, h._close = Dt, nt();
4828
4828
  }
4829
- J.prototype = Object.create(me.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ve, J.prototype.close = function() {
4829
+ oe.prototype = Object.create(pe.prototype), oe.prototype.CONNECTING = ie, oe.prototype.OPEN = z, oe.prototype.CLOSED = me, oe.prototype.close = function() {
4830
4830
  this._close();
4831
- }, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ve, J.prototype.withCredentials = void 0;
4832
- var Fe = l;
4833
- o != null && (l == null || !("withCredentials" in l.prototype)) && (Fe = J), function(h) {
4831
+ }, oe.CONNECTING = ie, oe.OPEN = z, oe.CLOSED = me, oe.prototype.withCredentials = void 0;
4832
+ var rt = f;
4833
+ o != null && (f == null || !("withCredentials" in f.prototype)) && (rt = oe), function(h) {
4834
4834
  {
4835
4835
  var b = h(t);
4836
4836
  b !== void 0 && (e.exports = b);
4837
4837
  }
4838
4838
  }(function(h) {
4839
- h.EventSourcePolyfill = J, h.NativeEventSource = l, h.EventSource = Fe;
4839
+ h.EventSourcePolyfill = oe, h.NativeEventSource = f, h.EventSource = rt;
4840
4840
  });
4841
4841
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : xi : globalThis);
4842
4842
  })(pr, pr.exports);
4843
4843
  var ds = pr.exports;
4844
+ function ps(e, t) {
4845
+ if (e) {
4846
+ const r = document.createElement("style");
4847
+ r.innerHTML = t, e.appendChild(r);
4848
+ }
4849
+ }
4850
+ function ms(e, t) {
4851
+ const r = new URL(t);
4852
+ fetch(r.href).then((n) => n.text()).then((n) => {
4853
+ const i = document.createElement("style");
4854
+ i.innerHTML = n, e && e.appendChild(i);
4855
+ }).catch((n) => {
4856
+ console.error("There was an error while trying to load client styling from URL", n);
4857
+ });
4858
+ }
4859
+ function bs(e, t, r) {
4860
+ if (window.emMessageBus) {
4861
+ const n = document.createElement("style");
4862
+ window.emMessageBus.subscribe(t, (i) => {
4863
+ n.innerHTML = i, e && e.appendChild(n);
4864
+ });
4865
+ }
4866
+ }
4844
4867
  if (typeof window != "undefined") {
4845
4868
  let e = function(t) {
4846
4869
  return function(...r) {
@@ -4853,7 +4876,7 @@ if (typeof window != "undefined") {
4853
4876
  }
4854
4877
  };
4855
4878
  };
4856
- customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-CoqpuR3P.js").then(({ default: t }) => {
4879
+ customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-CA_x2Klb.js").then(({ default: t }) => {
4857
4880
  !customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
4858
4881
  });
4859
4882
  }
@@ -4869,71 +4892,71 @@ if (typeof window != "undefined") {
4869
4892
  }
4870
4893
  };
4871
4894
  };
4872
- customElements.define = e(customElements.define), import("./CasinoTournamentsListController-DT6zQNpY.js").then(({ default: t }) => {
4895
+ customElements.define = e(customElements.define), import("./CasinoTournamentsListController-CWtG_Kjm.js").then(({ default: t }) => {
4873
4896
  !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
4874
4897
  });
4875
4898
  }
4876
4899
  const Xr = (e) => e.length > 0 && e != "false";
4877
- function ps(e) {
4900
+ function gs(e) {
4878
4901
  Un(e, "svelte-v0e19m", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}");
4879
4902
  }
4880
- function ms(e) {
4903
+ function vs(e) {
4881
4904
  let t, r, n, i, o, s, a = (
4882
4905
  /*filtersLoaded*/
4883
- e[19] && zr(e)
4906
+ e[20] && zr(e)
4884
4907
  );
4885
- function l(m, E) {
4908
+ function f(p, E) {
4886
4909
  return (
4887
4910
  /*tournamentsNumber*/
4888
- m[20] == 0 ? vs : gs
4911
+ p[21] == 0 ? Es : _s
4889
4912
  );
4890
4913
  }
4891
- let u = l(e), c = u(e), d = !/*allTournamentsShown*/
4892
- e[21] && Wr(e);
4914
+ let l = f(e), c = l(e), d = !/*allTournamentsShown*/
4915
+ e[22] && Wr(e);
4893
4916
  return {
4894
4917
  c() {
4895
- t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = qt(), o = z("div"), c.c(), s = qt(), d && d.c(), U(n, "class", "FirstRow"), U(n, "part", "FirstRow"), U(o, "class", "SecondRow"), U(o, "part", "SecondRow"), U(r, "class", "Tournaments"), U(r, "part", "Tournaments"), U(t, "class", "TournamentsWrapper"), U(t, "part", "TournamentsWrapper");
4918
+ t = X("div"), r = X("div"), n = X("div"), a && a.c(), i = qt(), o = X("div"), c.c(), s = qt(), d && d.c(), F(n, "class", "FirstRow"), F(n, "part", "FirstRow"), F(o, "class", "SecondRow"), F(o, "part", "SecondRow"), F(r, "class", "Tournaments"), F(r, "part", "Tournaments"), F(t, "class", "TournamentsWrapper"), F(t, "part", "TournamentsWrapper");
4896
4919
  },
4897
- m(m, E) {
4898
- de(m, t, E), re(t, r), re(r, n), a && a.m(n, null), re(r, i), re(r, o), c.m(o, null), re(r, s), d && d.m(r, null);
4920
+ m(p, E) {
4921
+ ce(p, t, E), te(t, r), te(r, n), a && a.m(n, null), te(r, i), te(r, o), c.m(o, null), te(r, s), d && d.m(r, null);
4899
4922
  },
4900
- p(m, E) {
4923
+ p(p, E) {
4901
4924
  /*filtersLoaded*/
4902
- m[19] ? a ? a.p(m, E) : (a = zr(m), a.c(), a.m(n, null)) : a && (a.d(1), a = null), u === (u = l(m)) && c ? c.p(m, E) : (c.d(1), c = u(m), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4903
- m[21] ? d && (d.d(1), d = null) : d ? d.p(m, E) : (d = Wr(m), d.c(), d.m(r, null));
4925
+ p[20] ? a ? a.p(p, E) : (a = zr(p), a.c(), a.m(n, null)) : a && (a.d(1), a = null), l === (l = f(p)) && c ? c.p(p, E) : (c.d(1), c = l(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4926
+ p[22] ? d && (d.d(1), d = null) : d ? d.p(p, E) : (d = Wr(p), d.c(), d.m(r, null));
4904
4927
  },
4905
- d(m) {
4906
- m && ne(t), a && a.d(), c.d(), d && d.d();
4928
+ d(p) {
4929
+ p && re(t), a && a.d(), c.d(), d && d.d();
4907
4930
  }
4908
4931
  };
4909
4932
  }
4910
- function bs(e) {
4933
+ function ys(e) {
4911
4934
  let t, r = (
4912
4935
  /*$_*/
4913
- e[22]("500") + ""
4936
+ e[23]("500") + ""
4914
4937
  ), n, i, o, s;
4915
4938
  return {
4916
4939
  c() {
4917
- t = z("p"), n = Ne(r), i = qt(), o = z("p"), s = Ne(
4940
+ t = X("p"), n = Re(r), i = qt(), o = X("p"), s = Re(
4918
4941
  /*error*/
4919
- e[17]
4942
+ e[18]
4920
4943
  );
4921
4944
  },
4922
- m(a, l) {
4923
- de(a, t, l), re(t, n), de(a, i, l), de(a, o, l), re(o, s);
4945
+ m(a, f) {
4946
+ ce(a, t, f), te(t, n), ce(a, i, f), ce(a, o, f), te(o, s);
4924
4947
  },
4925
- p(a, l) {
4926
- l[0] & /*$_*/
4927
- 4194304 && r !== (r = /*$_*/
4928
- a[22]("500") + "") && ot(n, r), l[0] & /*error*/
4929
- 131072 && ot(
4948
+ p(a, f) {
4949
+ f[0] & /*$_*/
4950
+ 8388608 && r !== (r = /*$_*/
4951
+ a[23]("500") + "") && st(n, r), f[0] & /*error*/
4952
+ 262144 && st(
4930
4953
  s,
4931
4954
  /*error*/
4932
- a[17]
4955
+ a[18]
4933
4956
  );
4934
4957
  },
4935
4958
  d(a) {
4936
- a && (ne(t), ne(i), ne(o));
4959
+ a && (re(t), re(i), re(o));
4937
4960
  }
4938
4961
  };
4939
4962
  }
@@ -4941,52 +4964,63 @@ function zr(e) {
4941
4964
  let t;
4942
4965
  return {
4943
4966
  c() {
4944
- t = z("casino-tournaments-filter-controller"), w(
4967
+ t = X("casino-tournaments-filter-controller"), x(
4945
4968
  t,
4946
4969
  "clientstyling",
4947
4970
  /*clientstyling*/
4948
4971
  e[13]
4949
- ), w(
4972
+ ), x(
4950
4973
  t,
4951
4974
  "clientstylingurl",
4952
4975
  /*clientstylingurl*/
4953
4976
  e[14]
4954
- ), w(
4977
+ ), x(
4955
4978
  t,
4956
4979
  "translationurl",
4957
4980
  /*translationurl*/
4958
4981
  e[4]
4959
- ), w(t, "filters", xs), w(
4982
+ ), x(
4983
+ t,
4984
+ "mbsource",
4985
+ /*mbsource*/
4986
+ e[15]
4987
+ ), x(t, "filters", Ss), x(
4960
4988
  t,
4961
4989
  "activefilters",
4962
4990
  /*filters*/
4963
4991
  e[6]
4964
- ), w(t, "exportparts", "FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem");
4992
+ ), x(t, "exportparts", "FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem");
4965
4993
  },
4966
4994
  m(r, n) {
4967
- de(r, t, n);
4995
+ ce(r, t, n);
4968
4996
  },
4969
4997
  p(r, n) {
4970
4998
  n[0] & /*clientstyling*/
4971
- 8192 && w(
4999
+ 8192 && x(
4972
5000
  t,
4973
5001
  "clientstyling",
4974
5002
  /*clientstyling*/
4975
5003
  r[13]
4976
5004
  ), n[0] & /*clientstylingurl*/
4977
- 16384 && w(
5005
+ 16384 && x(
4978
5006
  t,
4979
5007
  "clientstylingurl",
4980
5008
  /*clientstylingurl*/
4981
5009
  r[14]
4982
5010
  ), n[0] & /*translationurl*/
4983
- 16 && w(
5011
+ 16 && x(
4984
5012
  t,
4985
5013
  "translationurl",
4986
5014
  /*translationurl*/
4987
5015
  r[4]
5016
+ ), n[0] & /*mbsource*/
5017
+ 32768 && x(
5018
+ t,
5019
+ "mbsource",
5020
+ /*mbsource*/
5021
+ r[15]
4988
5022
  ), n[0] & /*filters*/
4989
- 64 && w(
5023
+ 64 && x(
4990
5024
  t,
4991
5025
  "activefilters",
4992
5026
  /*filters*/
@@ -4994,173 +5028,184 @@ function zr(e) {
4994
5028
  );
4995
5029
  },
4996
5030
  d(r) {
4997
- r && ne(t);
5031
+ r && re(t);
4998
5032
  }
4999
5033
  };
5000
5034
  }
5001
- function gs(e) {
5035
+ function _s(e) {
5002
5036
  let t;
5003
5037
  return {
5004
5038
  c() {
5005
- t = z("casino-tournaments-list-controller"), w(
5039
+ t = X("casino-tournaments-list-controller"), x(
5006
5040
  t,
5007
5041
  "clientstyling",
5008
5042
  /*clientstyling*/
5009
5043
  e[13]
5010
- ), w(
5044
+ ), x(
5011
5045
  t,
5012
5046
  "clientstylingurl",
5013
5047
  /*clientstylingurl*/
5014
5048
  e[14]
5015
- ), w(
5049
+ ), x(
5016
5050
  t,
5017
5051
  "translationurl",
5018
5052
  /*translationurl*/
5019
5053
  e[4]
5020
- ), w(
5054
+ ), x(
5021
5055
  t,
5022
5056
  "userid",
5023
5057
  /*userid*/
5024
5058
  e[1]
5025
- ), w(
5059
+ ), x(
5026
5060
  t,
5027
5061
  "numberoftournaments",
5028
5062
  /*numberoftournaments*/
5029
5063
  e[5]
5030
- ), w(
5064
+ ), x(
5031
5065
  t,
5032
5066
  "loginurl",
5033
5067
  /*loginurl*/
5034
5068
  e[9]
5035
- ), w(
5069
+ ), x(
5036
5070
  t,
5037
5071
  "loginevent",
5038
5072
  /*loginevent*/
5039
5073
  e[7]
5040
- ), w(
5074
+ ), x(
5041
5075
  t,
5042
5076
  "registerurl",
5043
5077
  /*registerurl*/
5044
5078
  e[10]
5045
- ), w(
5079
+ ), x(
5046
5080
  t,
5047
5081
  "registerevent",
5048
5082
  /*registerevent*/
5049
5083
  e[8]
5050
- ), w(
5084
+ ), x(
5051
5085
  t,
5052
5086
  "lang",
5053
5087
  /*lang*/
5054
5088
  e[3]
5055
- ), w(
5089
+ ), x(
5056
5090
  t,
5057
5091
  "currency",
5058
5092
  /*currency*/
5059
5093
  e[11]
5060
- ), w(
5094
+ ), x(
5061
5095
  t,
5062
5096
  "keepbrowsercontext",
5063
5097
  /*keepbrowsercontext*/
5064
5098
  e[12]
5065
- ), w(
5099
+ ), x(
5100
+ t,
5101
+ "mbsource",
5102
+ /*mbsource*/
5103
+ e[15]
5104
+ ), x(
5066
5105
  t,
5067
5106
  "session",
5068
5107
  /*session*/
5069
5108
  e[0]
5070
- ), w(
5109
+ ), x(
5071
5110
  t,
5072
5111
  "endpoint",
5073
5112
  /*endpoint*/
5074
5113
  e[2]
5075
- ), w(t, "exportparts", `Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
5114
+ ), x(t, "exportparts", `Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
5076
5115
  TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
5077
5116
  TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
5078
5117
  TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`);
5079
5118
  },
5080
5119
  m(r, n) {
5081
- de(r, t, n);
5120
+ ce(r, t, n);
5082
5121
  },
5083
5122
  p(r, n) {
5084
5123
  n[0] & /*clientstyling*/
5085
- 8192 && w(
5124
+ 8192 && x(
5086
5125
  t,
5087
5126
  "clientstyling",
5088
5127
  /*clientstyling*/
5089
5128
  r[13]
5090
5129
  ), n[0] & /*clientstylingurl*/
5091
- 16384 && w(
5130
+ 16384 && x(
5092
5131
  t,
5093
5132
  "clientstylingurl",
5094
5133
  /*clientstylingurl*/
5095
5134
  r[14]
5096
5135
  ), n[0] & /*translationurl*/
5097
- 16 && w(
5136
+ 16 && x(
5098
5137
  t,
5099
5138
  "translationurl",
5100
5139
  /*translationurl*/
5101
5140
  r[4]
5102
5141
  ), n[0] & /*userid*/
5103
- 2 && w(
5142
+ 2 && x(
5104
5143
  t,
5105
5144
  "userid",
5106
5145
  /*userid*/
5107
5146
  r[1]
5108
5147
  ), n[0] & /*numberoftournaments*/
5109
- 32 && w(
5148
+ 32 && x(
5110
5149
  t,
5111
5150
  "numberoftournaments",
5112
5151
  /*numberoftournaments*/
5113
5152
  r[5]
5114
5153
  ), n[0] & /*loginurl*/
5115
- 512 && w(
5154
+ 512 && x(
5116
5155
  t,
5117
5156
  "loginurl",
5118
5157
  /*loginurl*/
5119
5158
  r[9]
5120
5159
  ), n[0] & /*loginevent*/
5121
- 128 && w(
5160
+ 128 && x(
5122
5161
  t,
5123
5162
  "loginevent",
5124
5163
  /*loginevent*/
5125
5164
  r[7]
5126
5165
  ), n[0] & /*registerurl*/
5127
- 1024 && w(
5166
+ 1024 && x(
5128
5167
  t,
5129
5168
  "registerurl",
5130
5169
  /*registerurl*/
5131
5170
  r[10]
5132
5171
  ), n[0] & /*registerevent*/
5133
- 256 && w(
5172
+ 256 && x(
5134
5173
  t,
5135
5174
  "registerevent",
5136
5175
  /*registerevent*/
5137
5176
  r[8]
5138
5177
  ), n[0] & /*lang*/
5139
- 8 && w(
5178
+ 8 && x(
5140
5179
  t,
5141
5180
  "lang",
5142
5181
  /*lang*/
5143
5182
  r[3]
5144
5183
  ), n[0] & /*currency*/
5145
- 2048 && w(
5184
+ 2048 && x(
5146
5185
  t,
5147
5186
  "currency",
5148
5187
  /*currency*/
5149
5188
  r[11]
5150
5189
  ), n[0] & /*keepbrowsercontext*/
5151
- 4096 && w(
5190
+ 4096 && x(
5152
5191
  t,
5153
5192
  "keepbrowsercontext",
5154
5193
  /*keepbrowsercontext*/
5155
5194
  r[12]
5195
+ ), n[0] & /*mbsource*/
5196
+ 32768 && x(
5197
+ t,
5198
+ "mbsource",
5199
+ /*mbsource*/
5200
+ r[15]
5156
5201
  ), n[0] & /*session*/
5157
- 1 && w(
5202
+ 1 && x(
5158
5203
  t,
5159
5204
  "session",
5160
5205
  /*session*/
5161
5206
  r[0]
5162
5207
  ), n[0] & /*endpoint*/
5163
- 4 && w(
5208
+ 4 && x(
5164
5209
  t,
5165
5210
  "endpoint",
5166
5211
  /*endpoint*/
@@ -5168,16 +5213,16 @@ function gs(e) {
5168
5213
  );
5169
5214
  },
5170
5215
  d(r) {
5171
- r && ne(t);
5216
+ r && re(t);
5172
5217
  }
5173
5218
  };
5174
5219
  }
5175
- function vs(e) {
5220
+ function Es(e) {
5176
5221
  let t;
5177
5222
  function r(o, s) {
5178
5223
  return (
5179
5224
  /*isLoading*/
5180
- o[18] ? _s : ys
5225
+ o[19] ? ws : xs
5181
5226
  );
5182
5227
  }
5183
5228
  let n = r(e), i = n(e);
@@ -5186,331 +5231,316 @@ function vs(e) {
5186
5231
  i.c(), t = $n();
5187
5232
  },
5188
5233
  m(o, s) {
5189
- i.m(o, s), de(o, t, s);
5234
+ i.m(o, s), ce(o, t, s);
5190
5235
  },
5191
5236
  p(o, s) {
5192
5237
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
5193
5238
  },
5194
5239
  d(o) {
5195
- o && ne(t), i.d(o);
5240
+ o && re(t), i.d(o);
5196
5241
  }
5197
5242
  };
5198
5243
  }
5199
- function ys(e) {
5244
+ function xs(e) {
5200
5245
  let t, r = (
5201
5246
  /*$_*/
5202
- e[22]("noTournaments") + ""
5247
+ e[23]("noTournaments") + ""
5203
5248
  ), n;
5204
5249
  return {
5205
5250
  c() {
5206
- t = z("p"), n = Ne(r), U(t, "class", "NoTournaments"), U(t, "part", "NoTournaments");
5251
+ t = X("p"), n = Re(r), F(t, "class", "NoTournaments"), F(t, "part", "NoTournaments");
5207
5252
  },
5208
5253
  m(i, o) {
5209
- de(i, t, o), re(t, n);
5254
+ ce(i, t, o), te(t, n);
5210
5255
  },
5211
5256
  p(i, o) {
5212
5257
  o[0] & /*$_*/
5213
- 4194304 && r !== (r = /*$_*/
5214
- i[22]("noTournaments") + "") && ot(n, r);
5258
+ 8388608 && r !== (r = /*$_*/
5259
+ i[23]("noTournaments") + "") && st(n, r);
5215
5260
  },
5216
5261
  d(i) {
5217
- i && ne(t);
5262
+ i && re(t);
5218
5263
  }
5219
5264
  };
5220
5265
  }
5221
- function _s(e) {
5266
+ function ws(e) {
5222
5267
  let t, r = (
5223
5268
  /*$_*/
5224
- e[22]("loading") + ""
5269
+ e[23]("loading") + ""
5225
5270
  ), n;
5226
5271
  return {
5227
5272
  c() {
5228
- t = z("p"), n = Ne(r), U(t, "class", "LoadingMessage"), U(t, "part", "LoadingMessage");
5273
+ t = X("p"), n = Re(r), F(t, "class", "LoadingMessage"), F(t, "part", "LoadingMessage");
5229
5274
  },
5230
5275
  m(i, o) {
5231
- de(i, t, o), re(t, n);
5276
+ ce(i, t, o), te(t, n);
5232
5277
  },
5233
5278
  p(i, o) {
5234
5279
  o[0] & /*$_*/
5235
- 4194304 && r !== (r = /*$_*/
5236
- i[22]("loading") + "") && ot(n, r);
5280
+ 8388608 && r !== (r = /*$_*/
5281
+ i[23]("loading") + "") && st(n, r);
5237
5282
  },
5238
5283
  d(i) {
5239
- i && ne(t);
5284
+ i && re(t);
5240
5285
  }
5241
5286
  };
5242
5287
  }
5243
5288
  function Wr(e) {
5244
5289
  let t, r, n, i = (
5245
5290
  /*$_*/
5246
- e[22]("showMore") + ""
5291
+ e[23]("showMore") + ""
5247
5292
  ), o, s, a;
5248
5293
  return {
5249
5294
  c() {
5250
- t = z("div"), r = z("div"), n = z("button"), o = Ne(i), U(n, "class", "ShowMoreButton"), U(n, "part", "ShowMoreButton"), U(n, "title", "Show More"), U(r, "class", "CenterButton"), U(r, "part", "CenterButton"), U(t, "class", "ThirdRow"), U(t, "part", "ThirdRow");
5295
+ t = X("div"), r = X("div"), n = X("button"), o = Re(i), F(n, "class", "ShowMoreButton"), F(n, "part", "ShowMoreButton"), F(n, "title", "Show More"), F(r, "class", "CenterButton"), F(r, "part", "CenterButton"), F(t, "class", "ThirdRow"), F(t, "part", "ThirdRow");
5251
5296
  },
5252
- m(l, u) {
5253
- de(l, t, u), re(t, r), re(r, n), re(n, o), s || (a = Zt(
5297
+ m(f, l) {
5298
+ ce(f, t, l), te(t, r), te(r, n), te(n, o), s || (a = Zt(
5254
5299
  n,
5255
5300
  "click",
5256
5301
  /*click_handler*/
5257
- e[32]
5302
+ e[33]
5258
5303
  ), s = !0);
5259
5304
  },
5260
- p(l, u) {
5261
- u[0] & /*$_*/
5262
- 4194304 && i !== (i = /*$_*/
5263
- l[22]("showMore") + "") && ot(o, i);
5305
+ p(f, l) {
5306
+ l[0] & /*$_*/
5307
+ 8388608 && i !== (i = /*$_*/
5308
+ f[23]("showMore") + "") && st(o, i);
5264
5309
  },
5265
- d(l) {
5266
- l && ne(t), s = !1, a();
5310
+ d(f) {
5311
+ f && re(t), s = !1, a();
5267
5312
  }
5268
5313
  };
5269
5314
  }
5270
- function Es(e) {
5315
+ function Ts(e) {
5271
5316
  let t;
5272
5317
  function r(o, s) {
5273
5318
  return (
5274
5319
  /*hasErrors*/
5275
- o[16] ? bs : ms
5320
+ o[17] ? ys : vs
5276
5321
  );
5277
5322
  }
5278
5323
  let n = r(e), i = n(e);
5279
5324
  return {
5280
5325
  c() {
5281
- t = z("div"), i.c();
5326
+ t = X("div"), i.c();
5282
5327
  },
5283
5328
  m(o, s) {
5284
- de(o, t, s), i.m(t, null), e[33](t);
5329
+ ce(o, t, s), i.m(t, null), e[34](t);
5285
5330
  },
5286
5331
  p(o, s) {
5287
5332
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
5288
5333
  },
5289
- i: ce,
5290
- o: ce,
5334
+ i: fe,
5335
+ o: fe,
5291
5336
  d(o) {
5292
- o && ne(t), i.d(), e[33](null);
5337
+ o && re(t), i.d(), e[34](null);
5293
5338
  }
5294
5339
  };
5295
5340
  }
5296
- let xs = "All,Scheduled,Ongoing,Finished";
5297
- function ws(e, t, r) {
5341
+ let Ss = "All,Scheduled,Ongoing,Finished";
5342
+ function As(e, t, r) {
5298
5343
  let n;
5299
- Fn(e, hs, (f) => r(22, n = f));
5300
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { numberoftournaments: u = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: m = "" } = t, { registerevent: E = "" } = t, { loginurl: B = "" } = t, { registerurl: P = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: pe = "false" } = t, { sorttype: ie = "" } = t, { sortorder: N = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: ge = "" } = t, { delaybeforeload: Re = 1e3 } = t, Pe = !1, me = "", Oe = !1, te = "", ft = window.navigator.userAgent, Be = !0, Qe = !1, Ce = !1, W, he = 0, ve = !1, oe = 6, se = !0, _e = [], Ye, be, Ke = !1, ct;
5344
+ Fn(e, hs, (u) => r(23, n = u));
5345
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: f = "" } = t, { numberoftournaments: l = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: p = "" } = t, { registerevent: E = "" } = t, { loginurl: B = "" } = t, { registerurl: H = "" } = t, { currency: Y = "EUR" } = t, { keepbrowsercontext: de = "false" } = t, { sorttype: ne = "" } = t, { sortorder: I = "" } = t, { starttimeafter: j = "" } = t, { showanonymoustournaments: q = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: ge = "" } = t, { delaybeforeload: Fe = 1e3 } = t, Be = !1, pe = "", Oe = !1, K = "", ct = window.navigator.userAgent, Ce = !0, Qe = !1, Ie = !1, { mbsource: ie } = t, z, me = 0, Te = !1, $ = 6, Se = !0, Ae = [], dt, be, Ye = !1, pt;
5301
5346
  cs({ withLocale: "en", translations: {} });
5302
- const Lt = () => {
5303
- fetch(l).then((S) => S.json()).then((S) => {
5304
- ct = S, Object.keys(S).forEach((L) => {
5305
- Wt(L, S[L]);
5347
+ const Ke = () => {
5348
+ fetch(f).then((_) => _.json()).then((_) => {
5349
+ pt = _, Object.keys(_).forEach((C) => {
5350
+ Wt(C, _[C]);
5306
5351
  });
5307
- }).catch((S) => {
5308
- console.log(S);
5352
+ }).catch((_) => {
5353
+ console.log(_);
5309
5354
  });
5310
- }, et = (f) => {
5311
- f && Object.keys(f).forEach((S) => {
5312
- Wt(S, f[S]);
5355
+ }, et = (u) => {
5356
+ u && Object.keys(u).forEach((_) => {
5357
+ Wt(_, u[_]);
5313
5358
  });
5314
5359
  };
5315
- Object.keys(Vr).forEach((f) => {
5316
- Wt(f, Vr[f]);
5360
+ Object.keys(Vr).forEach((u) => {
5361
+ Wt(u, Vr[u]);
5317
5362
  });
5318
- const De = (f) => {
5319
- f.data && f.data.type === "UserSessionID" && (Oe = !0, r(30, te = f.data.session), f.data.userid, J(s, 0, oe)), f.data && f.data.type === "TournamentsFiltersSelected" && (_e = f.data.filters, J(s, 0, oe)), f.data && f.data.type === "TournamentThumbnailMounted" && et(ct);
5320
- }, Te = (f) => f == "Scheduled" ? "Unstarted" : f == "Ongoing" ? "Running" : "Closing|Closed", J = (f, S, L) => Le(this, null, function* () {
5321
- r(18, Be = !0), r(20, he = 0);
5322
- const C = yield dt(f, S, L);
5363
+ const ye = (u) => {
5364
+ u.data && u.data.type === "UserSessionID" && (Oe = !0, r(31, K = u.data.session), u.data.userid, tt(s, 0, $)), u.data && u.data.type === "TournamentsFiltersSelected" && (Ae = u.data.filters, tt(s, 0, $)), u.data && u.data.type === "TournamentThumbnailMounted" && et(pt);
5365
+ }, oe = (u) => u == "Scheduled" ? "Unstarted" : u == "Ongoing" ? "Running" : "Closing|Closed", tt = (u, _, C) => Me(this, null, function* () {
5366
+ r(19, Ce = !0), r(21, me = 0);
5367
+ const D = yield rt(u, _, C);
5323
5368
  setTimeout(
5324
5369
  () => {
5325
5370
  window.postMessage(
5326
5371
  {
5327
5372
  type: "TournamentList",
5328
- tournamentList: C.items
5373
+ tournamentList: D.items
5329
5374
  },
5330
5375
  window.location.href
5331
5376
  );
5332
5377
  },
5333
5378
  50
5334
- ), r(18, Be = !1);
5335
- }), Nt = (f, S, L) => Le(this, null, function* () {
5336
- const C = yield dt(f, S, L);
5379
+ ), r(19, Ce = !1);
5380
+ }), Nt = (u, _, C) => Me(this, null, function* () {
5381
+ const D = yield rt(u, _, C);
5337
5382
  window.postMessage(
5338
5383
  {
5339
5384
  type: "TournamentListShowMore",
5340
- tournamentList: C.items
5385
+ tournamentList: D.items
5341
5386
  },
5342
5387
  window.location.href
5343
5388
  );
5344
5389
  }), Mt = () => {
5345
- const f = /* @__PURE__ */ new Date();
5346
- return $ ? f.setDate(f.getDate() - Number($)) : f.setMonth(f.getMonth() - 1), f.toISOString().substring(0, 10);
5347
- }, dt = (f, S, L) => Le(this, null, function* () {
5348
- let C = new URL(`${f}/v1/tournaments`), k = new Headers();
5349
- C.searchParams.append("pagination", `offset=${S},limit=${L}`), C.searchParams.append("sortField", "StartTime"), C.searchParams.append("sortOrder", N || "desc"), C.searchParams.append("language", a);
5350
- const q = { StartTimeAfter: Mt() };
5351
- !Xr(i) && Z === "false" && (q.tags = "no-role-set"), _e.length > 0 && _e[0] != "All" && (q.state = _e.map((G) => Te(G)).join("|"));
5352
- const Se = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
5353
- return C.searchParams.append("filter", Se), C.searchParams.append("platform", fs(ft)), ie && C.searchParams.append("sortType", ie), Oe && k.append("X-SessionID", te), fetch(C, {
5390
+ const u = /* @__PURE__ */ new Date();
5391
+ return j ? u.setDate(u.getDate() - Number(j)) : u.setMonth(u.getMonth() - 1), u.toISOString().substring(0, 10);
5392
+ }, rt = (u, _, C) => Me(this, null, function* () {
5393
+ let D = new URL(`${u}/v1/tournaments`), W = new Headers();
5394
+ D.searchParams.append("pagination", `offset=${_},limit=${C}`), D.searchParams.append("sortField", "StartTime"), D.searchParams.append("sortOrder", I || "desc"), D.searchParams.append("language", a);
5395
+ const U = { StartTimeAfter: Mt() };
5396
+ !Xr(i) && q === "false" && (U.tags = "no-role-set"), Ae.length > 0 && Ae[0] != "All" && (U.state = Ae.map((ee) => oe(ee)).join("|"));
5397
+ const se = Object.keys(U).map((ee) => `${ee}=${U[ee]}`).join(",");
5398
+ return D.searchParams.append("filter", se), D.searchParams.append("platform", fs(ct)), ne && D.searchParams.append("sortType", ne), Oe && W.append("X-SessionID", K), fetch(D, {
5354
5399
  method: "GET",
5355
- headers: k,
5400
+ headers: W,
5356
5401
  cache: "no-cache"
5357
- }).then((G) => G.json()).then((G) => (Ye = C.searchParams.toString(), r(20, he = G.total), oe >= he ? r(21, se = !0) : r(21, se = !1), Ce || h(), G));
5358
- }), Fe = (f) => {
5359
- if (f.type != "message")
5402
+ }).then((ee) => ee.json()).then((ee) => (dt = D.searchParams.toString(), r(21, me = ee.total), $ >= me ? r(22, Se = !0) : r(22, Se = !1), Ie || b(), ee));
5403
+ }), h = (u) => {
5404
+ if (u.type != "message")
5360
5405
  return;
5361
- let S = f.data;
5362
- if (S)
5406
+ let _ = u.data;
5407
+ if (_)
5363
5408
  try {
5364
- let L = JSON.parse(S);
5365
- if (!L || !L.item)
5409
+ let C = JSON.parse(_);
5410
+ if (!C || !C.item)
5366
5411
  return;
5367
- let C = L.item;
5368
- L.messageType == "TournamentUpdate" && window.postMessage(
5412
+ let D = C.item;
5413
+ C.messageType == "TournamentUpdate" && window.postMessage(
5369
5414
  {
5370
5415
  type: "UpdateTournamentView",
5371
- tournamentData: C
5416
+ tournamentData: D
5372
5417
  },
5373
5418
  window.location.href
5374
- ), L.messageType == "TournamentRemove" && window.postMessage(
5419
+ ), C.messageType == "TournamentRemove" && window.postMessage(
5375
5420
  {
5376
5421
  type: "TournamentList",
5377
- tournamentList: L.items
5422
+ tournamentList: C.items
5378
5423
  },
5379
5424
  window.location.href
5380
5425
  );
5381
- } catch (L) {
5382
- console.error(L);
5426
+ } catch (C) {
5427
+ console.error(C);
5383
5428
  }
5384
- }, h = () => {
5385
- Ce = !0, setTimeout(
5429
+ }, b = () => {
5430
+ Ie = !0, setTimeout(
5386
5431
  () => {
5387
- Ce = !1;
5432
+ Ie = !1;
5388
5433
  },
5389
5434
  1e3
5390
- ), be && (be.removeEventListener("message", Fe), be.close());
5391
- let f = `${s}/v1/tournaments/updates?${Ye}`;
5435
+ ), be && (be.removeEventListener("message", h), be.close());
5436
+ let u = `${s}/v1/tournaments/updates?${dt}`;
5392
5437
  be = new ds.EventSourcePolyfill(
5393
- f,
5438
+ u,
5394
5439
  {
5395
5440
  headers: {
5396
5441
  accept: "text/event-stream",
5397
5442
  "X-SessionId": i
5398
5443
  }
5399
5444
  }
5400
- ), typeof be != "undefined" && be.addEventListener("message", Fe);
5401
- }, b = () => Le(this, null, function* () {
5402
- let f = oe;
5403
- const S = parseInt(c, 10);
5404
- oe += S, window.postMessage(
5445
+ ), typeof be != "undefined" && be.addEventListener("message", h);
5446
+ }, g = () => Me(this, null, function* () {
5447
+ let u = $;
5448
+ const _ = parseInt(c, 10);
5449
+ $ += _, window.postMessage(
5405
5450
  {
5406
5451
  type: "TournamentsPagination",
5407
5452
  offset: 0,
5408
- limit: oe
5453
+ limit: $
5409
5454
  },
5410
5455
  window.location.href
5411
- ), yield Nt(s, f, S), oe >= he && r(21, se = !0);
5412
- }), g = () => (s || (r(17, me = "Endpoint is missing! Please provide a valid endpointURL."), r(16, Pe = !0), console.error(me)), (!a || a.length != 2) && (r(17, me = "Language is missing! Please provide a valid language (alpha2code)"), r(16, Pe = !0), console.error(me)), Pe), p = () => {
5413
- if (!ve)
5456
+ ), yield Nt(s, u, _), $ >= me && r(22, Se = !0);
5457
+ }), m = () => (s || (r(18, pe = "Endpoint is missing! Please provide a valid endpointURL."), r(17, Be = !0), console.error(pe)), (!a || a.length != 2) && (r(18, pe = "Language is missing! Please provide a valid language (alpha2code)"), r(17, Be = !0), console.error(pe)), Be), y = () => {
5458
+ if (!Te)
5414
5459
  return !1;
5415
- g() || (oe = parseInt(u, 10), kr(a), J(s, 0, oe));
5416
- }, y = () => {
5417
- kr(a);
5460
+ m() || ($ = parseInt(l, 10), kr(a), tt(s, 0, $));
5418
5461
  }, v = () => {
5419
- _e = d.split(","), r(19, Qe = !0);
5420
- }, x = () => {
5421
- Xr(i) ? (Oe = !0, r(30, te = i)) : (Oe = !1, r(30, te = ""));
5422
- }, M = () => Le(this, null, function* () {
5423
- Ke || (Ke = !0, yield p(), Ke = !1);
5424
- }), T = () => {
5425
- let f = document.createElement("style");
5426
- f.innerHTML = le, W.appendChild(f);
5427
- }, O = () => {
5428
- let f = new URL(ge), S = document.createElement("style");
5429
- fetch(f.href).then((L) => L.text()).then((L) => {
5430
- S.innerHTML = L, setTimeout(
5431
- () => {
5432
- W.appendChild(S);
5433
- },
5434
- 1
5435
- ), setTimeout(
5436
- () => {
5437
- },
5438
- 500
5439
- );
5440
- });
5441
- };
5462
+ kr(a);
5463
+ }, w = () => {
5464
+ Ae = d.split(","), r(20, Qe = !0);
5465
+ }, L = () => {
5466
+ Xr(i) ? (Oe = !0, r(31, K = i)) : (Oe = !1, r(31, K = ""));
5467
+ }, T = () => Me(this, null, function* () {
5468
+ Ye || (Ye = !0, yield y(), Ye = !1);
5469
+ });
5442
5470
  Wn(() => (setTimeout(
5443
5471
  () => {
5444
- r(31, ve = !0);
5472
+ r(32, Te = !0);
5445
5473
  },
5446
- Re
5447
- ), window.addEventListener("message", De, !1), () => {
5448
- window.removeEventListener("message", De), be && (be.removeEventListener("message", Fe), be.close());
5474
+ Fe
5475
+ ), window.addEventListener("message", ye, !1), () => {
5476
+ window.removeEventListener("message", ye), be && (be.removeEventListener("message", h), be.close());
5449
5477
  }));
5450
- const I = () => b();
5451
- function _(f) {
5452
- Jt[f ? "unshift" : "push"](() => {
5453
- W = f, r(15, W);
5478
+ const P = () => g();
5479
+ function O(u) {
5480
+ Jt[u ? "unshift" : "push"](() => {
5481
+ z = u, r(16, z);
5454
5482
  });
5455
5483
  }
5456
- return e.$$set = (f) => {
5457
- "session" in f && r(0, i = f.session), "userid" in f && r(1, o = f.userid), "endpoint" in f && r(2, s = f.endpoint), "lang" in f && r(3, a = f.lang), "translationurl" in f && r(4, l = f.translationurl), "numberoftournaments" in f && r(5, u = f.numberoftournaments), "showmorestep" in f && r(24, c = f.showmorestep), "filters" in f && r(6, d = f.filters), "loginevent" in f && r(7, m = f.loginevent), "registerevent" in f && r(8, E = f.registerevent), "loginurl" in f && r(9, B = f.loginurl), "registerurl" in f && r(10, P = f.registerurl), "currency" in f && r(11, ee = f.currency), "keepbrowsercontext" in f && r(12, pe = f.keepbrowsercontext), "sorttype" in f && r(25, ie = f.sorttype), "sortorder" in f && r(26, N = f.sortorder), "starttimeafter" in f && r(27, $ = f.starttimeafter), "showanonymoustournaments" in f && r(28, Z = f.showanonymoustournaments), "clientstyling" in f && r(13, le = f.clientstyling), "clientstylingurl" in f && r(14, ge = f.clientstylingurl), "delaybeforeload" in f && r(29, Re = f.delaybeforeload);
5484
+ return e.$$set = (u) => {
5485
+ "session" in u && r(0, i = u.session), "userid" in u && r(1, o = u.userid), "endpoint" in u && r(2, s = u.endpoint), "lang" in u && r(3, a = u.lang), "translationurl" in u && r(4, f = u.translationurl), "numberoftournaments" in u && r(5, l = u.numberoftournaments), "showmorestep" in u && r(25, c = u.showmorestep), "filters" in u && r(6, d = u.filters), "loginevent" in u && r(7, p = u.loginevent), "registerevent" in u && r(8, E = u.registerevent), "loginurl" in u && r(9, B = u.loginurl), "registerurl" in u && r(10, H = u.registerurl), "currency" in u && r(11, Y = u.currency), "keepbrowsercontext" in u && r(12, de = u.keepbrowsercontext), "sorttype" in u && r(26, ne = u.sorttype), "sortorder" in u && r(27, I = u.sortorder), "starttimeafter" in u && r(28, j = u.starttimeafter), "showanonymoustournaments" in u && r(29, q = u.showanonymoustournaments), "clientstyling" in u && r(13, le = u.clientstyling), "clientstylingurl" in u && r(14, ge = u.clientstylingurl), "delaybeforeload" in u && r(30, Fe = u.delaybeforeload), "mbsource" in u && r(15, ie = u.mbsource);
5458
5486
  }, e.$$.update = () => {
5459
- e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
5460
- 40960 && W && le && T(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
5461
- 49152 && W && ge && O(), e.$$.dirty[0] & /*userid*/
5487
+ e.$$.dirty[0] & /*userid*/
5462
5488
  2, e.$$.dirty[0] & /*filters*/
5463
- 64 && d && v(), e.$$.dirty[0] & /*lang*/
5464
- 8 && a && y(), e.$$.dirty[0] & /*translationurl*/
5465
- 16 && l && Lt(), e.$$.dirty[1] & /*isMounted*/
5466
- 1 && ve && p(), e.$$.dirty[0] & /*session*/
5467
- 1 && (i === "" || i) && x(), e.$$.dirty[0] & /*sessionID*/
5468
- 1073741824 && (te === "" || te) && M(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
5469
- 285212716 && s && u && c && a && Z && M();
5489
+ 64 && d && w(), e.$$.dirty[0] & /*lang*/
5490
+ 8 && a && v(), e.$$.dirty[0] & /*translationurl*/
5491
+ 16 && f && Ke(), e.$$.dirty[1] & /*isMounted*/
5492
+ 2 && Te && y(), e.$$.dirty[0] & /*session*/
5493
+ 1 && (i === "" || i) && L(), e.$$.dirty[1] & /*sessionID*/
5494
+ 1 && (K === "" || K) && T(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
5495
+ 570425388 && s && l && c && a && q && T(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5496
+ 73728 && le && z && ps(z, le), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5497
+ 81920 && ge && z && ms(z, ge), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5498
+ 98304 && ie && z && bs(z, `${ie}.Style`);
5470
5499
  }, [
5471
5500
  i,
5472
5501
  o,
5473
5502
  s,
5474
5503
  a,
5504
+ f,
5475
5505
  l,
5476
- u,
5477
5506
  d,
5478
- m,
5507
+ p,
5479
5508
  E,
5480
5509
  B,
5481
- P,
5482
- ee,
5483
- pe,
5510
+ H,
5511
+ Y,
5512
+ de,
5484
5513
  le,
5485
5514
  ge,
5486
- W,
5487
- Pe,
5488
- me,
5515
+ ie,
5516
+ z,
5489
5517
  Be,
5518
+ pe,
5519
+ Ce,
5490
5520
  Qe,
5491
- he,
5492
- se,
5521
+ me,
5522
+ Se,
5493
5523
  n,
5494
- b,
5524
+ g,
5495
5525
  c,
5496
- ie,
5497
- N,
5498
- $,
5499
- Z,
5500
- Re,
5501
- te,
5502
- ve,
5526
+ ne,
5503
5527
  I,
5504
- _
5528
+ j,
5529
+ q,
5530
+ Fe,
5531
+ K,
5532
+ Te,
5533
+ P,
5534
+ O
5505
5535
  ];
5506
5536
  }
5507
- class On extends oi {
5537
+ class Bn extends oi {
5508
5538
  constructor(t) {
5509
5539
  super(), ni(
5510
5540
  this,
5511
5541
  t,
5512
- ws,
5513
- Es,
5542
+ As,
5543
+ Ts,
5514
5544
  Zr,
5515
5545
  {
5516
5546
  session: 0,
@@ -5519,7 +5549,7 @@ class On extends oi {
5519
5549
  lang: 3,
5520
5550
  translationurl: 4,
5521
5551
  numberoftournaments: 5,
5522
- showmorestep: 24,
5552
+ showmorestep: 25,
5523
5553
  filters: 6,
5524
5554
  loginevent: 7,
5525
5555
  registerevent: 8,
@@ -5527,15 +5557,16 @@ class On extends oi {
5527
5557
  registerurl: 10,
5528
5558
  currency: 11,
5529
5559
  keepbrowsercontext: 12,
5530
- sorttype: 25,
5531
- sortorder: 26,
5532
- starttimeafter: 27,
5533
- showanonymoustournaments: 28,
5560
+ sorttype: 26,
5561
+ sortorder: 27,
5562
+ starttimeafter: 28,
5563
+ showanonymoustournaments: 29,
5534
5564
  clientstyling: 13,
5535
5565
  clientstylingurl: 14,
5536
- delaybeforeload: 29
5566
+ delaybeforeload: 30,
5567
+ mbsource: 15
5537
5568
  },
5538
- ps,
5569
+ gs,
5539
5570
  [-1, -1, -1]
5540
5571
  );
5541
5572
  }
@@ -5543,172 +5574,181 @@ class On extends oi {
5543
5574
  return this.$$.ctx[0];
5544
5575
  }
5545
5576
  set session(t) {
5546
- this.$$set({ session: t }), D();
5577
+ this.$$set({ session: t }), N();
5547
5578
  }
5548
5579
  get userid() {
5549
5580
  return this.$$.ctx[1];
5550
5581
  }
5551
5582
  set userid(t) {
5552
- this.$$set({ userid: t }), D();
5583
+ this.$$set({ userid: t }), N();
5553
5584
  }
5554
5585
  get endpoint() {
5555
5586
  return this.$$.ctx[2];
5556
5587
  }
5557
5588
  set endpoint(t) {
5558
- this.$$set({ endpoint: t }), D();
5589
+ this.$$set({ endpoint: t }), N();
5559
5590
  }
5560
5591
  get lang() {
5561
5592
  return this.$$.ctx[3];
5562
5593
  }
5563
5594
  set lang(t) {
5564
- this.$$set({ lang: t }), D();
5595
+ this.$$set({ lang: t }), N();
5565
5596
  }
5566
5597
  get translationurl() {
5567
5598
  return this.$$.ctx[4];
5568
5599
  }
5569
5600
  set translationurl(t) {
5570
- this.$$set({ translationurl: t }), D();
5601
+ this.$$set({ translationurl: t }), N();
5571
5602
  }
5572
5603
  get numberoftournaments() {
5573
5604
  return this.$$.ctx[5];
5574
5605
  }
5575
5606
  set numberoftournaments(t) {
5576
- this.$$set({ numberoftournaments: t }), D();
5607
+ this.$$set({ numberoftournaments: t }), N();
5577
5608
  }
5578
5609
  get showmorestep() {
5579
- return this.$$.ctx[24];
5610
+ return this.$$.ctx[25];
5580
5611
  }
5581
5612
  set showmorestep(t) {
5582
- this.$$set({ showmorestep: t }), D();
5613
+ this.$$set({ showmorestep: t }), N();
5583
5614
  }
5584
5615
  get filters() {
5585
5616
  return this.$$.ctx[6];
5586
5617
  }
5587
5618
  set filters(t) {
5588
- this.$$set({ filters: t }), D();
5619
+ this.$$set({ filters: t }), N();
5589
5620
  }
5590
5621
  get loginevent() {
5591
5622
  return this.$$.ctx[7];
5592
5623
  }
5593
5624
  set loginevent(t) {
5594
- this.$$set({ loginevent: t }), D();
5625
+ this.$$set({ loginevent: t }), N();
5595
5626
  }
5596
5627
  get registerevent() {
5597
5628
  return this.$$.ctx[8];
5598
5629
  }
5599
5630
  set registerevent(t) {
5600
- this.$$set({ registerevent: t }), D();
5631
+ this.$$set({ registerevent: t }), N();
5601
5632
  }
5602
5633
  get loginurl() {
5603
5634
  return this.$$.ctx[9];
5604
5635
  }
5605
5636
  set loginurl(t) {
5606
- this.$$set({ loginurl: t }), D();
5637
+ this.$$set({ loginurl: t }), N();
5607
5638
  }
5608
5639
  get registerurl() {
5609
5640
  return this.$$.ctx[10];
5610
5641
  }
5611
5642
  set registerurl(t) {
5612
- this.$$set({ registerurl: t }), D();
5643
+ this.$$set({ registerurl: t }), N();
5613
5644
  }
5614
5645
  get currency() {
5615
5646
  return this.$$.ctx[11];
5616
5647
  }
5617
5648
  set currency(t) {
5618
- this.$$set({ currency: t }), D();
5649
+ this.$$set({ currency: t }), N();
5619
5650
  }
5620
5651
  get keepbrowsercontext() {
5621
5652
  return this.$$.ctx[12];
5622
5653
  }
5623
5654
  set keepbrowsercontext(t) {
5624
- this.$$set({ keepbrowsercontext: t }), D();
5655
+ this.$$set({ keepbrowsercontext: t }), N();
5625
5656
  }
5626
5657
  get sorttype() {
5627
- return this.$$.ctx[25];
5658
+ return this.$$.ctx[26];
5628
5659
  }
5629
5660
  set sorttype(t) {
5630
- this.$$set({ sorttype: t }), D();
5661
+ this.$$set({ sorttype: t }), N();
5631
5662
  }
5632
5663
  get sortorder() {
5633
- return this.$$.ctx[26];
5664
+ return this.$$.ctx[27];
5634
5665
  }
5635
5666
  set sortorder(t) {
5636
- this.$$set({ sortorder: t }), D();
5667
+ this.$$set({ sortorder: t }), N();
5637
5668
  }
5638
5669
  get starttimeafter() {
5639
- return this.$$.ctx[27];
5670
+ return this.$$.ctx[28];
5640
5671
  }
5641
5672
  set starttimeafter(t) {
5642
- this.$$set({ starttimeafter: t }), D();
5673
+ this.$$set({ starttimeafter: t }), N();
5643
5674
  }
5644
5675
  get showanonymoustournaments() {
5645
- return this.$$.ctx[28];
5676
+ return this.$$.ctx[29];
5646
5677
  }
5647
5678
  set showanonymoustournaments(t) {
5648
- this.$$set({ showanonymoustournaments: t }), D();
5679
+ this.$$set({ showanonymoustournaments: t }), N();
5649
5680
  }
5650
5681
  get clientstyling() {
5651
5682
  return this.$$.ctx[13];
5652
5683
  }
5653
5684
  set clientstyling(t) {
5654
- this.$$set({ clientstyling: t }), D();
5685
+ this.$$set({ clientstyling: t }), N();
5655
5686
  }
5656
5687
  get clientstylingurl() {
5657
5688
  return this.$$.ctx[14];
5658
5689
  }
5659
5690
  set clientstylingurl(t) {
5660
- this.$$set({ clientstylingurl: t }), D();
5691
+ this.$$set({ clientstylingurl: t }), N();
5661
5692
  }
5662
5693
  get delaybeforeload() {
5663
- return this.$$.ctx[29];
5694
+ return this.$$.ctx[30];
5664
5695
  }
5665
5696
  set delaybeforeload(t) {
5666
- this.$$set({ delaybeforeload: t }), D();
5697
+ this.$$set({ delaybeforeload: t }), N();
5698
+ }
5699
+ get mbsource() {
5700
+ return this.$$.ctx[15];
5701
+ }
5702
+ set mbsource(t) {
5703
+ this.$$set({ mbsource: t }), N();
5667
5704
  }
5668
5705
  }
5669
- ii(On, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5670
- const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5706
+ ii(Bn, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {}, mbsource: {} }, [], [], !0);
5707
+ const Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5671
5708
  __proto__: null,
5672
- default: On
5709
+ default: Bn
5673
5710
  }, Symbol.toStringTag, { value: "Module" }));
5674
5711
  export {
5675
5712
  hs as $,
5676
- Ze as A,
5677
- As as B,
5678
- lt as C,
5679
- Ss as D,
5680
- At as E,
5681
- fs as F,
5682
- Os as G,
5683
- Cs as H,
5684
- Bs as I,
5685
- Yt as J,
5713
+ $n as A,
5714
+ x as B,
5715
+ Pe as C,
5716
+ Ze as D,
5717
+ Bs as E,
5718
+ ht as F,
5719
+ Ps as G,
5720
+ Ht as H,
5721
+ fs as I,
5722
+ Is as J,
5686
5723
  Ns as K,
5724
+ Ls as L,
5725
+ Yt as M,
5726
+ Ds as N,
5687
5727
  oi as S,
5688
5728
  Tn as a,
5689
5729
  Un as b,
5690
- de as c,
5691
- ne as d,
5692
- z as e,
5693
- D as f,
5694
- U as g,
5695
- Ls as h,
5730
+ ce as c,
5731
+ re as d,
5732
+ X as e,
5733
+ N as f,
5734
+ F as g,
5735
+ Rs as h,
5696
5736
  ni as i,
5697
5737
  Fn as j,
5698
- Is as k,
5699
- Hs as l,
5700
- ot as m,
5701
- ce as n,
5702
- re as o,
5703
- qt as p,
5704
- Jt as q,
5705
- Zt as r,
5738
+ Ms as k,
5739
+ Os as l,
5740
+ st as m,
5741
+ fe as n,
5742
+ Wn as o,
5743
+ te as p,
5744
+ qt as q,
5745
+ Jt as r,
5706
5746
  Zr as s,
5707
- Ne as t,
5708
- Ps as u,
5709
- ii as v,
5710
- Wn as w,
5711
- $n as x,
5712
- w as y,
5713
- He as z
5747
+ Re as t,
5748
+ Zt as u,
5749
+ Cs as v,
5750
+ ps as w,
5751
+ ms as x,
5752
+ bs as y,
5753
+ ii as z
5714
5754
  };