@everymatrix/casino-tournaments-controller 1.54.0 → 1.54.4

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 (20) hide show
  1. package/components/{CasinoTournamentsController-BRHh1Qjt.js → CasinoTournamentsController-B6mh3T8V.js} +1170 -1211
  2. package/components/{CasinoTournamentsFilterController-DLpCI6AW.js → CasinoTournamentsFilterController-crq752J3.js} +1 -1
  3. package/components/{CasinoTournamentsListController-CkqQPCZb.js → CasinoTournamentsListController-BHaCpLNs.js} +12 -12
  4. package/components/{CasinoTournamentsThumbnail-BmY3slCQ.js → CasinoTournamentsThumbnail-BpY5tzvh.js} +1 -1
  5. package/components/{CasinoTournamentsThumbnailController-BM-oOy9w.js → CasinoTournamentsThumbnailController-CmauHmt0.js} +369 -386
  6. package/components/{CasinoTournamentsThumbnailDuration-U4e250jT.js → CasinoTournamentsThumbnailDuration-Bl9YXTWz.js} +1 -1
  7. package/components/{CasinoTournamentsThumbnailGamesSlider-yRwAgdKd.js → CasinoTournamentsThumbnailGamesSlider-7LdDhi2Q.js} +1 -1
  8. package/components/{CasinoTournamentsThumbnailPrizes-CxecGedD.js → CasinoTournamentsThumbnailPrizes-nDu0SMUv.js} +1 -1
  9. package/esnext/casino-tournaments-controller.js +14 -0
  10. package/package.json +10 -12
  11. package/components/CasinoTournamentsController-C_KNfkit.cjs +0 -14
  12. package/components/CasinoTournamentsFilterController-pSaDVRpk.cjs +0 -1
  13. package/components/CasinoTournamentsListController-CKXsySHE.cjs +0 -13
  14. package/components/CasinoTournamentsThumbnail-CTilgcJR.cjs +0 -4
  15. package/components/CasinoTournamentsThumbnailController-D7yd4p3c.cjs +0 -1
  16. package/components/CasinoTournamentsThumbnailDuration-YauqtylV.cjs +0 -1
  17. package/components/CasinoTournamentsThumbnailGamesSlider-Vv2VY9lf.cjs +0 -1
  18. package/components/CasinoTournamentsThumbnailPrizes-BrpTWmKe.cjs +0 -1
  19. package/es2015/casino-tournaments-controller.cjs +0 -1
  20. package/es2015/casino-tournaments-controller.js +0 -16
@@ -1,82 +1,53 @@
1
- var Bn = Object.defineProperty, Pn = Object.defineProperties;
2
- var Cn = Object.getOwnPropertyDescriptors;
3
- var mr = Object.getOwnPropertySymbols;
4
- var On = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable;
5
- var Rt = (e, t, r) => t in e ? Bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pr = (e, t) => {
6
- for (var r in t || (t = {}))
7
- On.call(t, r) && Rt(e, r, t[r]);
8
- if (mr)
9
- for (var r of mr(t))
10
- In.call(t, r) && Rt(e, r, t[r]);
11
- return e;
12
- }, br = (e, t) => Pn(e, Cn(t));
13
- var fe = (e, t, r) => Rt(e, typeof t != "symbol" ? t + "" : t, r);
14
- var Le = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
16
- try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, s = (l) => {
22
- try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function ce() {
1
+ function fe() {
31
2
  }
32
- function Vr(e) {
3
+ function Fr(e) {
33
4
  return e();
34
5
  }
35
- function gr() {
6
+ function fr() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function ht(e) {
39
- e.forEach(Vr);
9
+ function ut(e) {
10
+ e.forEach(Fr);
40
11
  }
41
- function St(e) {
12
+ function wt(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Xr(e, t) {
15
+ function Ur(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let pt;
48
- function _s(e, t) {
49
- return e === t ? !0 : (pt || (pt = document.createElement("a")), pt.href = t, e === pt.href);
18
+ let dt;
19
+ function ls(e, t) {
20
+ return e === t ? !0 : (dt || (dt = document.createElement("a")), dt.href = t, e === dt.href);
50
21
  }
51
- function Ln(e) {
22
+ function _n(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function zr(e, ...t) {
25
+ function Gr(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
58
- return ce;
29
+ return fe;
59
30
  }
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
33
  }
63
- function Nn(e, t, r) {
64
- e.$$.on_destroy.push(zr(t, r));
34
+ function xn(e, t, r) {
35
+ e.$$.on_destroy.push(Gr(t, r));
65
36
  }
66
- function xs(e) {
67
- return e && St(e.destroy) ? e.destroy : ce;
37
+ function hs(e) {
38
+ return e && wt(e.destroy) ? e.destroy : fe;
68
39
  }
69
40
  function re(e, t) {
70
41
  e.appendChild(t);
71
42
  }
72
- function Mn(e, t, r) {
73
- const n = Rn(e);
43
+ function wn(e, t, r) {
44
+ const n = Tn(e);
74
45
  if (!n.getElementById(t)) {
75
46
  const i = z("style");
76
- i.id = t, i.textContent = r, Dn(n, i);
47
+ i.id = t, i.textContent = r, Sn(n, i);
77
48
  }
78
49
  }
79
- function Rn(e) {
50
+ function Tn(e) {
80
51
  if (!e) return document;
81
52
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
82
53
  return t && /** @type {ShadowRoot} */
@@ -85,39 +56,39 @@ function Rn(e) {
85
56
  t
86
57
  ) : e.ownerDocument;
87
58
  }
88
- function Dn(e, t) {
59
+ function Sn(e, t) {
89
60
  return re(
90
61
  /** @type {Document} */
91
62
  e.head || e,
92
63
  t
93
64
  ), t.sheet;
94
65
  }
95
- function de(e, t, r) {
66
+ function ce(e, t, r) {
96
67
  e.insertBefore(t, r || null);
97
68
  }
98
69
  function ne(e) {
99
70
  e.parentNode && e.parentNode.removeChild(e);
100
71
  }
101
- function ws(e, t) {
72
+ function fs(e, t) {
102
73
  for (let r = 0; r < e.length; r += 1)
103
74
  e[r] && e[r].d(t);
104
75
  }
105
76
  function z(e) {
106
77
  return document.createElement(e);
107
78
  }
108
- function Ts(e) {
79
+ function cs(e) {
109
80
  return document.createElementNS("http://www.w3.org/2000/svg", e);
110
81
  }
111
- function Ne(e) {
82
+ function Ie(e) {
112
83
  return document.createTextNode(e);
113
84
  }
114
- function Xt() {
115
- return Ne(" ");
85
+ function $t() {
86
+ return Ie(" ");
116
87
  }
117
- function Fn() {
118
- return Ne("");
88
+ function An() {
89
+ return Ie("");
119
90
  }
120
- function zt(e, t, r, n) {
91
+ function kt(e, t, r, n) {
121
92
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
122
93
  }
123
94
  function U(e, t, r) {
@@ -127,38 +98,38 @@ function w(e, t, r) {
127
98
  const n = t.toLowerCase();
128
99
  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
100
  }
130
- function Un(e) {
101
+ function Hn(e) {
131
102
  return Array.from(e.childNodes);
132
103
  }
133
- function st(e, t) {
104
+ function it(e, t) {
134
105
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
135
106
  t);
136
107
  }
137
- function Ss(e, t, r, n) {
108
+ function ds(e, t, r, n) {
138
109
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
139
110
  }
140
- let bt;
141
- function Gn() {
142
- if (bt === void 0) {
143
- bt = !1;
111
+ let mt;
112
+ function Bn() {
113
+ if (mt === void 0) {
114
+ mt = !1;
144
115
  try {
145
- typeof window != "undefined" && window.parent && window.parent.document;
146
- } catch (e) {
147
- bt = !0;
116
+ typeof window < "u" && window.parent && window.parent.document;
117
+ } catch {
118
+ mt = !0;
148
119
  }
149
120
  }
150
- return bt;
121
+ return mt;
151
122
  }
152
- function As(e, t) {
123
+ function ms(e, t) {
153
124
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
154
125
  const n = z("iframe");
155
126
  n.setAttribute(
156
127
  "style",
157
128
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
158
129
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
159
- const i = Gn();
130
+ const i = Bn();
160
131
  let o;
161
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = zt(
132
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = kt(
162
133
  window,
163
134
  "message",
164
135
  /** @param {MessageEvent} event */
@@ -166,15 +137,15 @@ function As(e, t) {
166
137
  s.source === n.contentWindow && t();
167
138
  }
168
139
  )) : (n.src = "about:blank", n.onload = () => {
169
- o = zt(n.contentWindow, "resize", t), t();
140
+ o = kt(n.contentWindow, "resize", t), t();
170
141
  }), re(e, n), () => {
171
142
  (i || o && n.contentWindow) && o(), ne(n);
172
143
  };
173
144
  }
174
- function Hs(e, t, r) {
145
+ function ps(e, t, r) {
175
146
  e.classList.toggle(t, !!r);
176
147
  }
177
- function jn(e) {
148
+ function Pn(e) {
178
149
  const t = {};
179
150
  return e.childNodes.forEach(
180
151
  /** @param {Element} node */
@@ -183,248 +154,244 @@ function jn(e) {
183
154
  }
184
155
  ), t;
185
156
  }
186
- let at;
187
- function ot(e) {
188
- at = e;
157
+ let ot;
158
+ function nt(e) {
159
+ ot = e;
189
160
  }
190
- function $n() {
191
- if (!at) throw new Error("Function called outside component initialization");
192
- return at;
161
+ function Cn() {
162
+ if (!ot) throw new Error("Function called outside component initialization");
163
+ return ot;
193
164
  }
194
- function kn(e) {
195
- $n().$$.on_mount.push(e);
165
+ function On(e) {
166
+ Cn().$$.on_mount.push(e);
196
167
  }
197
- const $e = [], Wt = [];
198
- let ke = [];
199
- const yr = [], Vn = /* @__PURE__ */ Promise.resolve();
200
- let qt = !1;
201
- function Xn() {
202
- qt || (qt = !0, Vn.then(F));
168
+ const Ge = [], Vt = [];
169
+ let je = [];
170
+ const cr = [], In = /* @__PURE__ */ Promise.resolve();
171
+ let Xt = !1;
172
+ function Ln() {
173
+ Xt || (Xt = !0, In.then(F));
203
174
  }
204
- function Zt(e) {
205
- ke.push(e);
175
+ function zt(e) {
176
+ je.push(e);
206
177
  }
207
- const Dt = /* @__PURE__ */ new Set();
208
- let Ge = 0;
178
+ const Nt = /* @__PURE__ */ new Set();
179
+ let Fe = 0;
209
180
  function F() {
210
- if (Ge !== 0)
181
+ if (Fe !== 0)
211
182
  return;
212
- const e = at;
183
+ const e = ot;
213
184
  do {
214
185
  try {
215
- for (; Ge < $e.length; ) {
216
- const t = $e[Ge];
217
- Ge++, ot(t), zn(t.$$);
186
+ for (; Fe < Ge.length; ) {
187
+ const t = Ge[Fe];
188
+ Fe++, nt(t), Nn(t.$$);
218
189
  }
219
190
  } catch (t) {
220
- throw $e.length = 0, Ge = 0, t;
191
+ throw Ge.length = 0, Fe = 0, t;
221
192
  }
222
- for (ot(null), $e.length = 0, Ge = 0; Wt.length; ) Wt.pop()();
223
- for (let t = 0; t < ke.length; t += 1) {
224
- const r = ke[t];
225
- Dt.has(r) || (Dt.add(r), r());
193
+ for (nt(null), Ge.length = 0, Fe = 0; Vt.length; ) Vt.pop()();
194
+ for (let t = 0; t < je.length; t += 1) {
195
+ const r = je[t];
196
+ Nt.has(r) || (Nt.add(r), r());
226
197
  }
227
- ke.length = 0;
228
- } while ($e.length);
229
- for (; yr.length; )
230
- yr.pop()();
231
- qt = !1, Dt.clear(), ot(e);
198
+ je.length = 0;
199
+ } while (Ge.length);
200
+ for (; cr.length; )
201
+ cr.pop()();
202
+ Xt = !1, Nt.clear(), nt(e);
232
203
  }
233
- function zn(e) {
204
+ function Nn(e) {
234
205
  if (e.fragment !== null) {
235
- e.update(), ht(e.before_update);
206
+ e.update(), ut(e.before_update);
236
207
  const t = e.dirty;
237
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Zt);
208
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
238
209
  }
239
210
  }
240
- function Wn(e) {
211
+ function Mn(e) {
241
212
  const t = [], r = [];
242
- ke.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ke = t;
213
+ je.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), je = t;
243
214
  }
244
- const qn = /* @__PURE__ */ new Set();
245
- function Zn(e, t) {
246
- e && e.i && (qn.delete(e), e.i(t));
215
+ const Rn = /* @__PURE__ */ new Set();
216
+ function Dn(e, t) {
217
+ e && e.i && (Rn.delete(e), e.i(t));
247
218
  }
248
- function Bs(e) {
249
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
219
+ function bs(e) {
220
+ return e?.length !== void 0 ? e : Array.from(e);
250
221
  }
251
- function Jn(e, t, r) {
222
+ function Fn(e, t, r) {
252
223
  const { fragment: n, after_update: i } = e.$$;
253
- n && n.m(t, r), Zt(() => {
254
- const o = e.$$.on_mount.map(Vr).filter(St);
255
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ht(o), e.$$.on_mount = [];
256
- }), i.forEach(Zt);
224
+ n && n.m(t, r), zt(() => {
225
+ const o = e.$$.on_mount.map(Fr).filter(wt);
226
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ut(o), e.$$.on_mount = [];
227
+ }), i.forEach(zt);
257
228
  }
258
- function Qn(e, t) {
229
+ function Un(e, t) {
259
230
  const r = e.$$;
260
- r.fragment !== null && (Wn(r.after_update), ht(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
231
+ r.fragment !== null && (Mn(r.after_update), ut(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
261
232
  }
262
- function Yn(e, t) {
263
- e.$$.dirty[0] === -1 && ($e.push(e), Xn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
233
+ function Gn(e, t) {
234
+ e.$$.dirty[0] === -1 && (Ge.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
264
235
  }
265
- function Kn(e, t, r, n, i, o, s = null, a = [-1]) {
266
- const l = at;
267
- ot(e);
268
- const u = e.$$ = {
236
+ function jn(e, t, r, n, i, o, s = null, a = [-1]) {
237
+ const f = ot;
238
+ nt(e);
239
+ const h = e.$$ = {
269
240
  fragment: null,
270
241
  ctx: [],
271
242
  // state
272
243
  props: o,
273
- update: ce,
244
+ update: fe,
274
245
  not_equal: i,
275
- bound: gr(),
246
+ bound: fr(),
276
247
  // lifecycle
277
248
  on_mount: [],
278
249
  on_destroy: [],
279
250
  on_disconnect: [],
280
251
  before_update: [],
281
252
  after_update: [],
282
- context: new Map(t.context || (l ? l.$$.context : [])),
253
+ context: new Map(t.context || (f ? f.$$.context : [])),
283
254
  // everything else
284
- callbacks: gr(),
255
+ callbacks: fr(),
285
256
  dirty: a,
286
257
  skip_bound: !1,
287
- root: t.target || l.$$.root
258
+ root: t.target || f.$$.root
288
259
  };
289
- s && s(u.root);
260
+ s && s(h.root);
290
261
  let c = !1;
291
- if (u.ctx = r ? r(e, t.props || {}, (d, p, ..._) => {
262
+ if (h.ctx = r ? r(e, t.props || {}, (d, p, ..._) => {
292
263
  const O = _.length ? _[0] : p;
293
- return u.ctx && i(u.ctx[d], u.ctx[d] = O) && (!u.skip_bound && u.bound[d] && u.bound[d](O), c && Yn(e, d)), p;
294
- }) : [], u.update(), c = !0, ht(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
264
+ return h.ctx && i(h.ctx[d], h.ctx[d] = O) && (!h.skip_bound && h.bound[d] && h.bound[d](O), c && Gn(e, d)), p;
265
+ }) : [], h.update(), c = !0, ut(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
295
266
  if (t.hydrate) {
296
- const d = Un(t.target);
297
- u.fragment && u.fragment.l(d), d.forEach(ne);
267
+ const d = Hn(t.target);
268
+ h.fragment && h.fragment.l(d), d.forEach(ne);
298
269
  } else
299
- u.fragment && u.fragment.c();
300
- t.intro && Zn(e.$$.fragment), Jn(e, t.target, t.anchor), F();
270
+ h.fragment && h.fragment.c();
271
+ t.intro && Dn(e.$$.fragment), Fn(e, t.target, t.anchor), F();
301
272
  }
302
- ot(l);
303
- }
304
- let Wr;
305
- typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
306
- constructor(t, r, n) {
307
- super();
308
- /** The Svelte component constructor */
309
- fe(this, "$$ctor");
310
- /** Slots */
311
- fe(this, "$$s");
312
- /** The Svelte component instance */
313
- fe(this, "$$c");
314
- /** Whether or not the custom element is connected */
315
- fe(this, "$$cn", !1);
316
- /** Component props data */
317
- fe(this, "$$d", {});
318
- /** `true` if currently in the process of reflecting component props back to attributes */
319
- fe(this, "$$r", !1);
320
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
321
- fe(this, "$$p_d", {});
322
- /** @type {Record<string, Function[]>} Event listeners */
323
- fe(this, "$$l", {});
324
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
325
- fe(this, "$$l_u", /* @__PURE__ */ new Map());
326
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
273
+ nt(f);
274
+ }
275
+ let jr;
276
+ typeof HTMLElement == "function" && (jr = class extends HTMLElement {
277
+ /** The Svelte component constructor */
278
+ $$ctor;
279
+ /** Slots */
280
+ $$s;
281
+ /** The Svelte component instance */
282
+ $$c;
283
+ /** Whether or not the custom element is connected */
284
+ $$cn = !1;
285
+ /** Component props data */
286
+ $$d = {};
287
+ /** `true` if currently in the process of reflecting component props back to attributes */
288
+ $$r = !1;
289
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
290
+ $$p_d = {};
291
+ /** @type {Record<string, Function[]>} Event listeners */
292
+ $$l = {};
293
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
294
+ $$l_u = /* @__PURE__ */ new Map();
295
+ constructor(e, t, r) {
296
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
327
297
  }
328
- addEventListener(t, r, n) {
329
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
330
- const i = this.$$c.$on(t, r);
331
- this.$$l_u.set(r, i);
298
+ addEventListener(e, t, r) {
299
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
300
+ const n = this.$$c.$on(e, t);
301
+ this.$$l_u.set(t, n);
332
302
  }
333
- super.addEventListener(t, r, n);
303
+ super.addEventListener(e, t, r);
334
304
  }
335
- removeEventListener(t, r, n) {
336
- if (super.removeEventListener(t, r, n), this.$$c) {
337
- const i = this.$$l_u.get(r);
338
- i && (i(), this.$$l_u.delete(r));
305
+ removeEventListener(e, t, r) {
306
+ if (super.removeEventListener(e, t, r), this.$$c) {
307
+ const n = this.$$l_u.get(t);
308
+ n && (n(), this.$$l_u.delete(t));
339
309
  }
340
310
  }
341
- connectedCallback() {
342
- return Le(this, null, function* () {
343
- if (this.$$cn = !0, !this.$$c) {
344
- let t = function(o) {
345
- return () => {
346
- let s;
347
- return {
348
- c: function() {
349
- s = z("slot"), o !== "default" && U(s, "name", o);
350
- },
351
- /**
352
- * @param {HTMLElement} target
353
- * @param {HTMLElement} [anchor]
354
- */
355
- m: function(u, c) {
356
- de(u, s, c);
357
- },
358
- d: function(u) {
359
- u && ne(s);
360
- }
361
- };
311
+ async connectedCallback() {
312
+ if (this.$$cn = !0, !this.$$c) {
313
+ let e = function(i) {
314
+ return () => {
315
+ let o;
316
+ return {
317
+ c: function() {
318
+ o = z("slot"), i !== "default" && U(o, "name", i);
319
+ },
320
+ /**
321
+ * @param {HTMLElement} target
322
+ * @param {HTMLElement} [anchor]
323
+ */
324
+ m: function(f, h) {
325
+ ce(f, o, h);
326
+ },
327
+ d: function(f) {
328
+ f && ne(o);
329
+ }
362
330
  };
363
331
  };
364
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
365
- return;
366
- const r = {}, n = jn(this);
367
- for (const o of this.$$s)
368
- o in n && (r[o] = [t(o)]);
369
- for (const o of this.attributes) {
370
- const s = this.$$g_p(o.name);
371
- s in this.$$d || (this.$$d[s] = vt(s, o.value, this.$$p_d, "toProp"));
332
+ };
333
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
334
+ return;
335
+ const t = {}, r = Pn(this);
336
+ for (const i of this.$$s)
337
+ i in r && (t[i] = [e(i)]);
338
+ for (const i of this.attributes) {
339
+ const o = this.$$g_p(i.name);
340
+ o in this.$$d || (this.$$d[o] = gt(o, i.value, this.$$p_d, "toProp"));
341
+ }
342
+ for (const i in this.$$p_d)
343
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
344
+ this.$$c = new this.$$ctor({
345
+ target: this.shadowRoot || this,
346
+ props: {
347
+ ...this.$$d,
348
+ $$slots: t,
349
+ $$scope: {
350
+ ctx: []
351
+ }
372
352
  }
373
- for (const o in this.$$p_d)
374
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
375
- this.$$c = new this.$$ctor({
376
- target: this.shadowRoot || this,
377
- props: br(pr({}, this.$$d), {
378
- $$slots: r,
379
- $$scope: {
380
- ctx: []
381
- }
382
- })
383
- });
384
- const i = () => {
385
- this.$$r = !0;
386
- for (const o in this.$$p_d)
387
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
388
- const s = vt(
389
- o,
390
- this.$$d[o],
391
- this.$$p_d,
392
- "toAttribute"
393
- );
394
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
395
- }
396
- this.$$r = !1;
397
- };
398
- this.$$c.$$.after_update.push(i), i();
399
- for (const o in this.$$l)
400
- for (const s of this.$$l[o]) {
401
- const a = this.$$c.$on(o, s);
402
- this.$$l_u.set(s, a);
353
+ });
354
+ const n = () => {
355
+ this.$$r = !0;
356
+ for (const i in this.$$p_d)
357
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
358
+ const o = gt(
359
+ i,
360
+ this.$$d[i],
361
+ this.$$p_d,
362
+ "toAttribute"
363
+ );
364
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
403
365
  }
404
- this.$$l = {};
405
- }
406
- });
366
+ this.$$r = !1;
367
+ };
368
+ this.$$c.$$.after_update.push(n), n();
369
+ for (const i in this.$$l)
370
+ for (const o of this.$$l[i]) {
371
+ const s = this.$$c.$on(i, o);
372
+ this.$$l_u.set(o, s);
373
+ }
374
+ this.$$l = {};
375
+ }
407
376
  }
408
377
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
409
378
  // and setting attributes through setAttribute etc, this is helpful
410
- attributeChangedCallback(t, r, n) {
411
- var i;
412
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = vt(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
379
+ attributeChangedCallback(e, t, r) {
380
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = gt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
413
381
  }
414
382
  disconnectedCallback() {
415
383
  this.$$cn = !1, Promise.resolve().then(() => {
416
384
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
417
385
  });
418
386
  }
419
- $$g_p(t) {
387
+ $$g_p(e) {
420
388
  return Object.keys(this.$$p_d).find(
421
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
422
- ) || t;
389
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
390
+ ) || e;
423
391
  }
424
392
  });
425
- function vt(e, t, r, n) {
426
- var o;
427
- const i = (o = r[e]) == null ? void 0 : o.type;
393
+ function gt(e, t, r, n) {
394
+ const i = r[e]?.type;
428
395
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
429
396
  return t;
430
397
  if (n === "toAttribute")
@@ -435,7 +402,7 @@ function vt(e, t, r, n) {
435
402
  case "Boolean":
436
403
  return t ? "" : null;
437
404
  case "Number":
438
- return t == null ? null : t;
405
+ return t ?? null;
439
406
  default:
440
407
  return t;
441
408
  }
@@ -452,8 +419,8 @@ function vt(e, t, r, n) {
452
419
  return t;
453
420
  }
454
421
  }
455
- function ei(e, t, r, n, i, o) {
456
- let s = class extends Wr {
422
+ function $n(e, t, r, n, i, o) {
423
+ let s = class extends jr {
457
424
  constructor() {
458
425
  super(e, r, i), this.$$p_d = t;
459
426
  }
@@ -468,43 +435,39 @@ function ei(e, t, r, n, i, o) {
468
435
  get() {
469
436
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
470
437
  },
471
- set(l) {
472
- var u;
473
- l = vt(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
438
+ set(f) {
439
+ f = gt(a, f, t), this.$$d[a] = f, this.$$c?.$set({ [a]: f });
474
440
  }
475
441
  });
476
442
  }), n.forEach((a) => {
477
443
  Object.defineProperty(s.prototype, a, {
478
444
  get() {
479
- var l;
480
- return (l = this.$$c) == null ? void 0 : l[a];
445
+ return this.$$c?.[a];
481
446
  }
482
447
  });
483
448
  }), e.element = /** @type {any} */
484
449
  s, s;
485
450
  }
486
- class ti {
487
- constructor() {
488
- /**
489
- * ### PRIVATE API
490
- *
491
- * Do not use, may change at any time
492
- *
493
- * @type {any}
494
- */
495
- fe(this, "$$");
496
- /**
497
- * ### PRIVATE API
498
- *
499
- * Do not use, may change at any time
500
- *
501
- * @type {any}
502
- */
503
- fe(this, "$$set");
504
- }
451
+ class kn {
452
+ /**
453
+ * ### PRIVATE API
454
+ *
455
+ * Do not use, may change at any time
456
+ *
457
+ * @type {any}
458
+ */
459
+ $$ = void 0;
460
+ /**
461
+ * ### PRIVATE API
462
+ *
463
+ * Do not use, may change at any time
464
+ *
465
+ * @type {any}
466
+ */
467
+ $$set = void 0;
505
468
  /** @returns {void} */
506
469
  $destroy() {
507
- Qn(this, 1), this.$destroy = ce;
470
+ Un(this, 1), this.$destroy = fe;
508
471
  }
509
472
  /**
510
473
  * @template {Extract<keyof Events, string>} K
@@ -513,8 +476,8 @@ class ti {
513
476
  * @returns {() => void}
514
477
  */
515
478
  $on(t, r) {
516
- if (!St(r))
517
- return ce;
479
+ if (!wt(r))
480
+ return fe;
518
481
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
519
482
  return n.push(r), () => {
520
483
  const i = n.indexOf(r);
@@ -526,22 +489,22 @@ class ti {
526
489
  * @returns {void}
527
490
  */
528
491
  $set(t) {
529
- this.$$set && !Ln(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
492
+ this.$$set && !_n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
530
493
  }
531
494
  }
532
- const ri = "4";
533
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ri);
534
- var Jt = function(e, t) {
535
- return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
495
+ const Vn = "4";
496
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vn);
497
+ var Wt = function(e, t) {
498
+ return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
536
499
  r.__proto__ = n;
537
500
  } || function(r, n) {
538
501
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
539
- }, Jt(e, t);
502
+ }, Wt(e, t);
540
503
  };
541
- function we(e, t) {
504
+ function xe(e, t) {
542
505
  if (typeof t != "function" && t !== null)
543
506
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
544
- Jt(e, t);
507
+ Wt(e, t);
545
508
  function r() {
546
509
  this.constructor = e;
547
510
  }
@@ -556,7 +519,7 @@ var P = function() {
556
519
  return t;
557
520
  }, P.apply(this, arguments);
558
521
  };
559
- function ni(e, t) {
522
+ function Xn(e, t) {
560
523
  var r = {};
561
524
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
562
525
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -564,7 +527,7 @@ function ni(e, t) {
564
527
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
565
528
  return r;
566
529
  }
567
- function Qt(e) {
530
+ function qt(e) {
568
531
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
569
532
  if (r) return r.call(e);
570
533
  if (e && typeof e.length == "number") return {
@@ -574,7 +537,7 @@ function Qt(e) {
574
537
  };
575
538
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
576
539
  }
577
- function Yt(e, t) {
540
+ function Zt(e, t) {
578
541
  var r = typeof Symbol == "function" && e[Symbol.iterator];
579
542
  if (!r) return e;
580
543
  var n = r.call(e), i, o = [], s;
@@ -591,21 +554,21 @@ function Yt(e, t) {
591
554
  }
592
555
  return o;
593
556
  }
594
- function Ve(e, t, r) {
557
+ function $e(e, t, r) {
595
558
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
596
559
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
597
560
  return e.concat(o || Array.prototype.slice.call(t));
598
561
  }
599
- function xe(e) {
562
+ function _e(e) {
600
563
  return typeof e == "function";
601
564
  }
602
- function qr(e) {
565
+ function $r(e) {
603
566
  var t = function(n) {
604
567
  Error.call(n), n.stack = new Error().stack;
605
568
  }, r = e(t);
606
569
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
607
570
  }
608
- var Ft = qr(function(e) {
571
+ var Mt = $r(function(e) {
609
572
  return function(r) {
610
573
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
611
574
  ` + r.map(function(n, i) {
@@ -614,13 +577,13 @@ var Ft = qr(function(e) {
614
577
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
615
578
  };
616
579
  });
617
- function Kt(e, t) {
580
+ function Jt(e, t) {
618
581
  if (e) {
619
582
  var r = e.indexOf(t);
620
583
  0 <= r && e.splice(r, 1);
621
584
  }
622
585
  }
623
- var At = function() {
586
+ var Tt = function() {
624
587
  function e(t) {
625
588
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
626
589
  }
@@ -632,15 +595,15 @@ var At = function() {
632
595
  if (s)
633
596
  if (this._parentage = null, Array.isArray(s))
634
597
  try {
635
- for (var a = Qt(s), l = a.next(); !l.done; l = a.next()) {
636
- var u = l.value;
637
- u.remove(this);
598
+ for (var a = qt(s), f = a.next(); !f.done; f = a.next()) {
599
+ var h = f.value;
600
+ h.remove(this);
638
601
  }
639
602
  } catch (B) {
640
603
  t = { error: B };
641
604
  } finally {
642
605
  try {
643
- l && !l.done && (r = a.return) && r.call(a);
606
+ f && !f.done && (r = a.return) && r.call(a);
644
607
  } finally {
645
608
  if (t) throw t.error;
646
609
  }
@@ -648,22 +611,22 @@ var At = function() {
648
611
  else
649
612
  s.remove(this);
650
613
  var c = this.initialTeardown;
651
- if (xe(c))
614
+ if (_e(c))
652
615
  try {
653
616
  c();
654
617
  } catch (B) {
655
- o = B instanceof Ft ? B.errors : [B];
618
+ o = B instanceof Mt ? B.errors : [B];
656
619
  }
657
620
  var d = this._finalizers;
658
621
  if (d) {
659
622
  this._finalizers = null;
660
623
  try {
661
- for (var p = Qt(d), _ = p.next(); !_.done; _ = p.next()) {
624
+ for (var p = qt(d), _ = p.next(); !_.done; _ = p.next()) {
662
625
  var O = _.value;
663
626
  try {
664
- vr(O);
627
+ dr(O);
665
628
  } catch (B) {
666
- o = o != null ? o : [], B instanceof Ft ? o = Ve(Ve([], Yt(o)), Yt(B.errors)) : o.push(B);
629
+ o = o ?? [], B instanceof Mt ? o = $e($e([], Zt(o)), Zt(B.errors)) : o.push(B);
667
630
  }
668
631
  }
669
632
  } catch (B) {
@@ -677,13 +640,13 @@ var At = function() {
677
640
  }
678
641
  }
679
642
  if (o)
680
- throw new Ft(o);
643
+ throw new Mt(o);
681
644
  }
682
645
  }, e.prototype.add = function(t) {
683
646
  var r;
684
647
  if (t && t !== this)
685
648
  if (this.closed)
686
- vr(t);
649
+ dr(t);
687
650
  else {
688
651
  if (t instanceof e) {
689
652
  if (t.closed || t._hasParent(this))
@@ -700,56 +663,56 @@ var At = function() {
700
663
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
701
664
  }, e.prototype._removeParent = function(t) {
702
665
  var r = this._parentage;
703
- r === t ? this._parentage = null : Array.isArray(r) && Kt(r, t);
666
+ r === t ? this._parentage = null : Array.isArray(r) && Jt(r, t);
704
667
  }, e.prototype.remove = function(t) {
705
668
  var r = this._finalizers;
706
- r && Kt(r, t), t instanceof e && t._removeParent(this);
669
+ r && Jt(r, t), t instanceof e && t._removeParent(this);
707
670
  }, e.EMPTY = function() {
708
671
  var t = new e();
709
672
  return t.closed = !0, t;
710
673
  }(), e;
711
- }(), Zr = At.EMPTY;
712
- function Jr(e) {
713
- return e instanceof At || e && "closed" in e && xe(e.remove) && xe(e.add) && xe(e.unsubscribe);
674
+ }(), kr = Tt.EMPTY;
675
+ function Vr(e) {
676
+ return e instanceof Tt || e && "closed" in e && _e(e.remove) && _e(e.add) && _e(e.unsubscribe);
714
677
  }
715
- function vr(e) {
716
- xe(e) ? e() : e.unsubscribe();
678
+ function dr(e) {
679
+ _e(e) ? e() : e.unsubscribe();
717
680
  }
718
- var ii = {
681
+ var zn = {
719
682
  onUnhandledError: null,
720
683
  onStoppedNotification: null,
721
684
  Promise: void 0,
722
685
  useDeprecatedSynchronousErrorHandling: !1,
723
686
  useDeprecatedNextContext: !1
724
- }, oi = {
687
+ }, Wn = {
725
688
  setTimeout: function(e, t) {
726
689
  for (var r = [], n = 2; n < arguments.length; n++)
727
690
  r[n - 2] = arguments[n];
728
- return setTimeout.apply(void 0, Ve([e, t], Yt(r)));
691
+ return setTimeout.apply(void 0, $e([e, t], Zt(r)));
729
692
  },
730
693
  clearTimeout: function(e) {
731
694
  return clearTimeout(e);
732
695
  },
733
696
  delegate: void 0
734
697
  };
735
- function si(e) {
736
- oi.setTimeout(function() {
698
+ function qn(e) {
699
+ Wn.setTimeout(function() {
737
700
  throw e;
738
701
  });
739
702
  }
740
- function Er() {
703
+ function mr() {
741
704
  }
742
- function Et(e) {
705
+ function yt(e) {
743
706
  e();
744
707
  }
745
- var Qr = function(e) {
746
- we(t, e);
708
+ var Xr = function(e) {
709
+ xe(t, e);
747
710
  function t(r) {
748
711
  var n = e.call(this) || this;
749
- return n.isStopped = !1, r ? (n.destination = r, Jr(r) && r.add(n)) : n.destination = li, n;
712
+ return n.isStopped = !1, r ? (n.destination = r, Vr(r) && r.add(n)) : n.destination = Qn, n;
750
713
  }
751
714
  return t.create = function(r, n, i) {
752
- return new er(r, n, i);
715
+ return new Qt(r, n, i);
753
716
  }, t.prototype.next = function(r) {
754
717
  this.isStopped || this._next(r);
755
718
  }, t.prototype.error = function(r) {
@@ -773,7 +736,7 @@ var Qr = function(e) {
773
736
  this.unsubscribe();
774
737
  }
775
738
  }, t;
776
- }(At), ai = function() {
739
+ }(Tt), Zn = function() {
777
740
  function e(t) {
778
741
  this.partialObserver = t;
779
742
  }
@@ -783,7 +746,7 @@ var Qr = function(e) {
783
746
  try {
784
747
  r.next(t);
785
748
  } catch (n) {
786
- gt(n);
749
+ pt(n);
787
750
  }
788
751
  }, e.prototype.error = function(t) {
789
752
  var r = this.partialObserver;
@@ -791,56 +754,56 @@ var Qr = function(e) {
791
754
  try {
792
755
  r.error(t);
793
756
  } catch (n) {
794
- gt(n);
757
+ pt(n);
795
758
  }
796
759
  else
797
- gt(t);
760
+ pt(t);
798
761
  }, e.prototype.complete = function() {
799
762
  var t = this.partialObserver;
800
763
  if (t.complete)
801
764
  try {
802
765
  t.complete();
803
766
  } catch (r) {
804
- gt(r);
767
+ pt(r);
805
768
  }
806
769
  }, e;
807
- }(), er = function(e) {
808
- we(t, e);
770
+ }(), Qt = function(e) {
771
+ xe(t, e);
809
772
  function t(r, n, i) {
810
773
  var o = e.call(this) || this, s;
811
- return xe(r) || !r ? s = {
812
- next: r != null ? r : void 0,
813
- error: n != null ? n : void 0,
814
- complete: i != null ? i : void 0
815
- } : s = r, o.destination = new ai(s), o;
774
+ return _e(r) || !r ? s = {
775
+ next: r ?? void 0,
776
+ error: n ?? void 0,
777
+ complete: i ?? void 0
778
+ } : s = r, o.destination = new Zn(s), o;
816
779
  }
817
780
  return t;
818
- }(Qr);
819
- function gt(e) {
820
- si(e);
781
+ }(Xr);
782
+ function pt(e) {
783
+ qn(e);
821
784
  }
822
- function ui(e) {
785
+ function Jn(e) {
823
786
  throw e;
824
787
  }
825
- var li = {
788
+ var Qn = {
826
789
  closed: !0,
827
- next: Er,
828
- error: ui,
829
- complete: Er
830
- }, hi = function() {
790
+ next: mr,
791
+ error: Jn,
792
+ complete: mr
793
+ }, Yn = function() {
831
794
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
832
795
  }();
833
- function fi(e) {
796
+ function Kn(e) {
834
797
  return e;
835
798
  }
836
- function ci(e) {
837
- return e.length === 0 ? fi : e.length === 1 ? e[0] : function(r) {
799
+ function ei(e) {
800
+ return e.length === 0 ? Kn : e.length === 1 ? e[0] : function(r) {
838
801
  return e.reduce(function(n, i) {
839
802
  return i(n);
840
803
  }, r);
841
804
  };
842
805
  }
843
- var _r = function() {
806
+ var pr = function() {
844
807
  function e(t) {
845
808
  t && (this._subscribe = t);
846
809
  }
@@ -848,10 +811,10 @@ var _r = function() {
848
811
  var r = new e();
849
812
  return r.source = this, r.operator = t, r;
850
813
  }, e.prototype.subscribe = function(t, r, n) {
851
- var i = this, o = mi(t) ? t : new er(t, r, n);
852
- return Et(function() {
853
- var s = i, a = s.operator, l = s.source;
854
- o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
814
+ var i = this, o = ri(t) ? t : new Qt(t, r, n);
815
+ return yt(function() {
816
+ var s = i, a = s.operator, f = s.source;
817
+ o.add(a ? a.call(o, f) : f ? i._subscribe(o) : i._trySubscribe(o));
855
818
  }), o;
856
819
  }, e.prototype._trySubscribe = function(t) {
857
820
  try {
@@ -861,13 +824,13 @@ var _r = function() {
861
824
  }
862
825
  }, e.prototype.forEach = function(t, r) {
863
826
  var n = this;
864
- return r = xr(r), new r(function(i, o) {
865
- var s = new er({
827
+ return r = br(r), new r(function(i, o) {
828
+ var s = new Qt({
866
829
  next: function(a) {
867
830
  try {
868
831
  t(a);
869
- } catch (l) {
870
- o(l), s.unsubscribe();
832
+ } catch (f) {
833
+ o(f), s.unsubscribe();
871
834
  }
872
835
  },
873
836
  error: o,
@@ -878,15 +841,15 @@ var _r = function() {
878
841
  }, e.prototype._subscribe = function(t) {
879
842
  var r;
880
843
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
881
- }, e.prototype[hi] = function() {
844
+ }, e.prototype[Yn] = function() {
882
845
  return this;
883
846
  }, e.prototype.pipe = function() {
884
847
  for (var t = [], r = 0; r < arguments.length; r++)
885
848
  t[r] = arguments[r];
886
- return ci(t)(this);
849
+ return ei(t)(this);
887
850
  }, e.prototype.toPromise = function(t) {
888
851
  var r = this;
889
- return t = xr(t), new t(function(n, i) {
852
+ return t = br(t), new t(function(n, i) {
890
853
  var o;
891
854
  r.subscribe(function(s) {
892
855
  return o = s;
@@ -900,45 +863,45 @@ var _r = function() {
900
863
  return new e(t);
901
864
  }, e;
902
865
  }();
903
- function xr(e) {
866
+ function br(e) {
904
867
  var t;
905
- return (t = e != null ? e : ii.Promise) !== null && t !== void 0 ? t : Promise;
868
+ return (t = e ?? zn.Promise) !== null && t !== void 0 ? t : Promise;
906
869
  }
907
- function di(e) {
908
- return e && xe(e.next) && xe(e.error) && xe(e.complete);
870
+ function ti(e) {
871
+ return e && _e(e.next) && _e(e.error) && _e(e.complete);
909
872
  }
910
- function mi(e) {
911
- return e && e instanceof Qr || di(e) && Jr(e);
873
+ function ri(e) {
874
+ return e && e instanceof Xr || ti(e) && Vr(e);
912
875
  }
913
- var pi = qr(function(e) {
876
+ var ni = $r(function(e) {
914
877
  return function() {
915
878
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
916
879
  };
917
- }), Yr = function(e) {
918
- we(t, e);
880
+ }), zr = function(e) {
881
+ xe(t, e);
919
882
  function t() {
920
883
  var r = e.call(this) || this;
921
884
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
922
885
  }
923
886
  return t.prototype.lift = function(r) {
924
- var n = new wr(this, this);
887
+ var n = new gr(this, this);
925
888
  return n.operator = r, n;
926
889
  }, t.prototype._throwIfClosed = function() {
927
890
  if (this.closed)
928
- throw new pi();
891
+ throw new ni();
929
892
  }, t.prototype.next = function(r) {
930
893
  var n = this;
931
- Et(function() {
894
+ yt(function() {
932
895
  var i, o;
933
896
  if (n._throwIfClosed(), !n.isStopped) {
934
897
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
935
898
  try {
936
- for (var s = Qt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
937
- var l = a.value;
938
- l.next(r);
899
+ for (var s = qt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
900
+ var f = a.value;
901
+ f.next(r);
939
902
  }
940
- } catch (u) {
941
- i = { error: u };
903
+ } catch (h) {
904
+ i = { error: h };
942
905
  } finally {
943
906
  try {
944
907
  a && !a.done && (o = s.return) && o.call(s);
@@ -950,7 +913,7 @@ var pi = qr(function(e) {
950
913
  });
951
914
  }, t.prototype.error = function(r) {
952
915
  var n = this;
953
- Et(function() {
916
+ yt(function() {
954
917
  if (n._throwIfClosed(), !n.isStopped) {
955
918
  n.hasError = n.isStopped = !0, n.thrownError = r;
956
919
  for (var i = n.observers; i.length; )
@@ -959,7 +922,7 @@ var pi = qr(function(e) {
959
922
  });
960
923
  }, t.prototype.complete = function() {
961
924
  var r = this;
962
- Et(function() {
925
+ yt(function() {
963
926
  if (r._throwIfClosed(), !r.isStopped) {
964
927
  r.isStopped = !0;
965
928
  for (var n = r.observers; n.length; )
@@ -981,20 +944,20 @@ var pi = qr(function(e) {
981
944
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
982
945
  }, t.prototype._innerSubscribe = function(r) {
983
946
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
984
- return o || s ? Zr : (this.currentObservers = null, a.push(r), new At(function() {
985
- n.currentObservers = null, Kt(a, r);
947
+ return o || s ? kr : (this.currentObservers = null, a.push(r), new Tt(function() {
948
+ n.currentObservers = null, Jt(a, r);
986
949
  }));
987
950
  }, t.prototype._checkFinalizedStatuses = function(r) {
988
951
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
989
952
  i ? r.error(o) : s && r.complete();
990
953
  }, t.prototype.asObservable = function() {
991
- var r = new _r();
954
+ var r = new pr();
992
955
  return r.source = this, r;
993
956
  }, t.create = function(r, n) {
994
- return new wr(r, n);
957
+ return new gr(r, n);
995
958
  }, t;
996
- }(_r), wr = function(e) {
997
- we(t, e);
959
+ }(pr), gr = function(e) {
960
+ xe(t, e);
998
961
  function t(r, n) {
999
962
  var i = e.call(this) || this;
1000
963
  return i.destination = r, i.source = n, i;
@@ -1010,215 +973,215 @@ var pi = qr(function(e) {
1010
973
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1011
974
  }, t.prototype._subscribe = function(r) {
1012
975
  var n, i;
1013
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zr;
976
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : kr;
1014
977
  }, t;
1015
- }(Yr), Kr = {
978
+ }(zr), Wr = {
1016
979
  now: function() {
1017
- return (Kr.delegate || Date).now();
980
+ return (Wr.delegate || Date).now();
1018
981
  },
1019
982
  delegate: void 0
1020
- }, bi = function(e) {
1021
- we(t, e);
983
+ }, ii = function(e) {
984
+ xe(t, e);
1022
985
  function t(r, n, i) {
1023
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kr);
986
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Wr);
1024
987
  var o = e.call(this) || this;
1025
988
  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;
1026
989
  }
1027
990
  return t.prototype.next = function(r) {
1028
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1029
- i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
991
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, f = n._windowTime;
992
+ i || (o.push(r), !s && o.push(a.now() + f)), this._trimBuffer(), e.prototype.next.call(this, r);
1030
993
  }, t.prototype._subscribe = function(r) {
1031
994
  this._throwIfClosed(), this._trimBuffer();
1032
- 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)
1033
- r.next(a[l]);
995
+ 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)
996
+ r.next(a[f]);
1034
997
  return this._checkFinalizedStatuses(r), n;
1035
998
  }, t.prototype._trimBuffer = function() {
1036
999
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1037
1000
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1038
- for (var l = i.now(), u = 0, c = 1; c < o.length && o[c] <= l; c += 2)
1039
- u = c;
1040
- u && o.splice(0, u + 1);
1001
+ for (var f = i.now(), h = 0, c = 1; c < o.length && o[c] <= f; c += 2)
1002
+ h = c;
1003
+ h && o.splice(0, h + 1);
1041
1004
  }
1042
1005
  }, t;
1043
- }(Yr);
1044
- const Tr = [], Sr = {}, gi = (e, t = 0) => {
1045
- if (Tr.indexOf(e) == -1) {
1046
- const r = new bi(t);
1047
- Sr[e] = r, Tr.push(e);
1006
+ }(zr);
1007
+ const yr = [], vr = {}, oi = (e, t = 0) => {
1008
+ if (yr.indexOf(e) == -1) {
1009
+ const r = new ii(t);
1010
+ vr[e] = r, yr.push(e);
1048
1011
  }
1049
- return Sr[e];
1050
- }, je = [];
1051
- function yi(e, t) {
1012
+ return vr[e];
1013
+ }, Ue = [];
1014
+ function si(e, t) {
1052
1015
  return {
1053
- subscribe: Ht(e, t).subscribe
1016
+ subscribe: St(e, t).subscribe
1054
1017
  };
1055
1018
  }
1056
- function Ht(e, t = ce) {
1019
+ function St(e, t = fe) {
1057
1020
  let r;
1058
1021
  const n = /* @__PURE__ */ new Set();
1059
1022
  function i(a) {
1060
- if (Xr(e, a) && (e = a, r)) {
1061
- const l = !je.length;
1062
- for (const u of n)
1063
- u[1](), je.push(u, e);
1064
- if (l) {
1065
- for (let u = 0; u < je.length; u += 2)
1066
- je[u][0](je[u + 1]);
1067
- je.length = 0;
1023
+ if (Ur(e, a) && (e = a, r)) {
1024
+ const f = !Ue.length;
1025
+ for (const h of n)
1026
+ h[1](), Ue.push(h, e);
1027
+ if (f) {
1028
+ for (let h = 0; h < Ue.length; h += 2)
1029
+ Ue[h][0](Ue[h + 1]);
1030
+ Ue.length = 0;
1068
1031
  }
1069
1032
  }
1070
1033
  }
1071
1034
  function o(a) {
1072
1035
  i(a(e));
1073
1036
  }
1074
- function s(a, l = ce) {
1075
- const u = [a, l];
1076
- return n.add(u), n.size === 1 && (r = t(i, o) || ce), a(e), () => {
1077
- n.delete(u), n.size === 0 && r && (r(), r = null);
1037
+ function s(a, f = fe) {
1038
+ const h = [a, f];
1039
+ return n.add(h), n.size === 1 && (r = t(i, o) || fe), a(e), () => {
1040
+ n.delete(h), n.size === 0 && r && (r(), r = null);
1078
1041
  };
1079
1042
  }
1080
1043
  return { set: i, update: o, subscribe: s };
1081
1044
  }
1082
- function Ze(e, t, r) {
1045
+ function We(e, t, r) {
1083
1046
  const n = !Array.isArray(e), i = n ? [e] : e;
1084
1047
  if (!i.every(Boolean))
1085
1048
  throw new Error("derived() expects stores as input, got a falsy value");
1086
1049
  const o = t.length < 2;
1087
- return yi(r, (s, a) => {
1088
- let l = !1;
1089
- const u = [];
1090
- let c = 0, d = ce;
1050
+ return si(r, (s, a) => {
1051
+ let f = !1;
1052
+ const h = [];
1053
+ let c = 0, d = fe;
1091
1054
  const p = () => {
1092
1055
  if (c)
1093
1056
  return;
1094
1057
  d();
1095
- const O = t(n ? u[0] : u, s, a);
1096
- o ? s(O) : d = St(O) ? O : ce;
1058
+ const O = t(n ? h[0] : h, s, a);
1059
+ o ? s(O) : d = wt(O) ? O : fe;
1097
1060
  }, _ = i.map(
1098
- (O, B) => zr(
1061
+ (O, B) => Gr(
1099
1062
  O,
1100
1063
  (ee) => {
1101
- u[B] = ee, c &= ~(1 << B), l && p();
1064
+ h[B] = ee, c &= ~(1 << B), f && p();
1102
1065
  },
1103
1066
  () => {
1104
1067
  c |= 1 << B;
1105
1068
  }
1106
1069
  )
1107
1070
  );
1108
- return l = !0, p(), function() {
1109
- ht(_), d(), l = !1;
1071
+ return f = !0, p(), function() {
1072
+ ut(_), d(), f = !1;
1110
1073
  };
1111
1074
  });
1112
1075
  }
1113
- var vi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
1114
- function Ei(e) {
1076
+ var ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1077
+ function ui(e) {
1115
1078
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1116
1079
  }
1117
- var _i = function(t) {
1118
- return xi(t) && !wi(t);
1080
+ var li = function(t) {
1081
+ return hi(t) && !fi(t);
1119
1082
  };
1120
- function xi(e) {
1083
+ function hi(e) {
1121
1084
  return !!e && typeof e == "object";
1122
1085
  }
1123
- function wi(e) {
1086
+ function fi(e) {
1124
1087
  var t = Object.prototype.toString.call(e);
1125
- return t === "[object RegExp]" || t === "[object Date]" || Ai(e);
1088
+ return t === "[object RegExp]" || t === "[object Date]" || mi(e);
1126
1089
  }
1127
- var Ti = typeof Symbol == "function" && Symbol.for, Si = Ti ? Symbol.for("react.element") : 60103;
1128
- function Ai(e) {
1129
- return e.$$typeof === Si;
1090
+ var ci = typeof Symbol == "function" && Symbol.for, di = ci ? Symbol.for("react.element") : 60103;
1091
+ function mi(e) {
1092
+ return e.$$typeof === di;
1130
1093
  }
1131
- function Hi(e) {
1094
+ function pi(e) {
1132
1095
  return Array.isArray(e) ? [] : {};
1133
1096
  }
1134
- function ut(e, t) {
1135
- return t.clone !== !1 && t.isMergeableObject(e) ? Xe(Hi(e), e, t) : e;
1097
+ function st(e, t) {
1098
+ return t.clone !== !1 && t.isMergeableObject(e) ? ke(pi(e), e, t) : e;
1136
1099
  }
1137
- function Bi(e, t, r) {
1100
+ function bi(e, t, r) {
1138
1101
  return e.concat(t).map(function(n) {
1139
- return ut(n, r);
1102
+ return st(n, r);
1140
1103
  });
1141
1104
  }
1142
- function Pi(e, t) {
1105
+ function gi(e, t) {
1143
1106
  if (!t.customMerge)
1144
- return Xe;
1107
+ return ke;
1145
1108
  var r = t.customMerge(e);
1146
- return typeof r == "function" ? r : Xe;
1109
+ return typeof r == "function" ? r : ke;
1147
1110
  }
1148
- function Ci(e) {
1111
+ function yi(e) {
1149
1112
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1150
1113
  return Object.propertyIsEnumerable.call(e, t);
1151
1114
  }) : [];
1152
1115
  }
1153
- function Ar(e) {
1154
- return Object.keys(e).concat(Ci(e));
1116
+ function Er(e) {
1117
+ return Object.keys(e).concat(yi(e));
1155
1118
  }
1156
- function en(e, t) {
1119
+ function qr(e, t) {
1157
1120
  try {
1158
1121
  return t in e;
1159
- } catch (r) {
1122
+ } catch {
1160
1123
  return !1;
1161
1124
  }
1162
1125
  }
1163
- function Oi(e, t) {
1164
- return en(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1126
+ function vi(e, t) {
1127
+ return qr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1165
1128
  }
1166
- function Ii(e, t, r) {
1129
+ function Ei(e, t, r) {
1167
1130
  var n = {};
1168
- return r.isMergeableObject(e) && Ar(e).forEach(function(i) {
1169
- n[i] = ut(e[i], r);
1170
- }), Ar(t).forEach(function(i) {
1171
- Oi(e, i) || (en(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pi(i, r)(e[i], t[i], r) : n[i] = ut(t[i], r));
1131
+ return r.isMergeableObject(e) && Er(e).forEach(function(i) {
1132
+ n[i] = st(e[i], r);
1133
+ }), Er(t).forEach(function(i) {
1134
+ vi(e, i) || (qr(e, i) && r.isMergeableObject(t[i]) ? n[i] = gi(i, r)(e[i], t[i], r) : n[i] = st(t[i], r));
1172
1135
  }), n;
1173
1136
  }
1174
- function Xe(e, t, r) {
1175
- r = r || {}, r.arrayMerge = r.arrayMerge || Bi, r.isMergeableObject = r.isMergeableObject || _i, r.cloneUnlessOtherwiseSpecified = ut;
1137
+ function ke(e, t, r) {
1138
+ r = r || {}, r.arrayMerge = r.arrayMerge || bi, r.isMergeableObject = r.isMergeableObject || li, r.cloneUnlessOtherwiseSpecified = st;
1176
1139
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1177
- return o ? n ? r.arrayMerge(e, t, r) : Ii(e, t, r) : ut(t, r);
1140
+ return o ? n ? r.arrayMerge(e, t, r) : Ei(e, t, r) : st(t, r);
1178
1141
  }
1179
- Xe.all = function(t, r) {
1142
+ ke.all = function(t, r) {
1180
1143
  if (!Array.isArray(t))
1181
1144
  throw new Error("first argument should be an array");
1182
1145
  return t.reduce(function(n, i) {
1183
- return Xe(n, i, r);
1146
+ return ke(n, i, r);
1184
1147
  }, {});
1185
1148
  };
1186
- var Li = Xe, Ni = Li;
1187
- const Mi = /* @__PURE__ */ Ei(Ni);
1188
- function Ut(e, t) {
1189
- var r = t && t.cache ? t.cache : $i, n = t && t.serializer ? t.serializer : Gi, i = t && t.strategy ? t.strategy : Di;
1149
+ var _i = ke, xi = _i;
1150
+ const wi = /* @__PURE__ */ ui(xi);
1151
+ function Rt(e, t) {
1152
+ var r = t && t.cache ? t.cache : Ci, n = t && t.serializer ? t.serializer : Bi, i = t && t.strategy ? t.strategy : Si;
1190
1153
  return i(e, {
1191
1154
  cache: r,
1192
1155
  serializer: n
1193
1156
  });
1194
1157
  }
1195
- function Ri(e) {
1158
+ function Ti(e) {
1196
1159
  return e == null || typeof e == "number" || typeof e == "boolean";
1197
1160
  }
1198
- function tn(e, t, r, n) {
1199
- var i = Ri(n) ? n : r(n), o = t.get(i);
1200
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1161
+ function Zr(e, t, r, n) {
1162
+ var i = Ti(n) ? n : r(n), o = t.get(i);
1163
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1201
1164
  }
1202
- function rn(e, t, r) {
1165
+ function Jr(e, t, r) {
1203
1166
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1204
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1167
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1205
1168
  }
1206
- function hr(e, t, r, n, i) {
1169
+ function ar(e, t, r, n, i) {
1207
1170
  return r.bind(t, e, n, i);
1208
1171
  }
1209
- function Di(e, t) {
1210
- var r = e.length === 1 ? tn : rn;
1211
- return hr(e, this, r, t.cache.create(), t.serializer);
1172
+ function Si(e, t) {
1173
+ var r = e.length === 1 ? Zr : Jr;
1174
+ return ar(e, this, r, t.cache.create(), t.serializer);
1212
1175
  }
1213
- function Fi(e, t) {
1214
- return hr(e, this, rn, t.cache.create(), t.serializer);
1176
+ function Ai(e, t) {
1177
+ return ar(e, this, Jr, t.cache.create(), t.serializer);
1215
1178
  }
1216
- function Ui(e, t) {
1217
- return hr(e, this, tn, t.cache.create(), t.serializer);
1179
+ function Hi(e, t) {
1180
+ return ar(e, this, Zr, t.cache.create(), t.serializer);
1218
1181
  }
1219
- var Gi = function() {
1182
+ var Bi = function() {
1220
1183
  return JSON.stringify(arguments);
1221
- }, ji = (
1184
+ }, Pi = (
1222
1185
  /** @class */
1223
1186
  function() {
1224
1187
  function e() {
@@ -1230,13 +1193,13 @@ var Gi = function() {
1230
1193
  this.cache[t] = r;
1231
1194
  }, e;
1232
1195
  }()
1233
- ), $i = {
1196
+ ), Ci = {
1234
1197
  create: function() {
1235
- return new ji();
1198
+ return new Pi();
1236
1199
  }
1237
- }, Gt = {
1238
- variadic: Fi,
1239
- monadic: Ui
1200
+ }, Dt = {
1201
+ variadic: Ai,
1202
+ monadic: Hi
1240
1203
  }, A;
1241
1204
  (function(e) {
1242
1205
  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";
@@ -1245,47 +1208,47 @@ var D;
1245
1208
  (function(e) {
1246
1209
  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";
1247
1210
  })(D || (D = {}));
1248
- var ze;
1211
+ var Ve;
1249
1212
  (function(e) {
1250
1213
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1251
- })(ze || (ze = {}));
1252
- function Hr(e) {
1214
+ })(Ve || (Ve = {}));
1215
+ function _r(e) {
1253
1216
  return e.type === D.literal;
1254
1217
  }
1255
- function ki(e) {
1218
+ function Oi(e) {
1256
1219
  return e.type === D.argument;
1257
1220
  }
1258
- function nn(e) {
1221
+ function Qr(e) {
1259
1222
  return e.type === D.number;
1260
1223
  }
1261
- function on(e) {
1224
+ function Yr(e) {
1262
1225
  return e.type === D.date;
1263
1226
  }
1264
- function sn(e) {
1227
+ function Kr(e) {
1265
1228
  return e.type === D.time;
1266
1229
  }
1267
- function an(e) {
1230
+ function en(e) {
1268
1231
  return e.type === D.select;
1269
1232
  }
1270
- function un(e) {
1233
+ function tn(e) {
1271
1234
  return e.type === D.plural;
1272
1235
  }
1273
- function Vi(e) {
1236
+ function Ii(e) {
1274
1237
  return e.type === D.pound;
1275
1238
  }
1276
- function ln(e) {
1239
+ function rn(e) {
1277
1240
  return e.type === D.tag;
1278
1241
  }
1279
- function hn(e) {
1280
- return !!(e && typeof e == "object" && e.type === ze.number);
1242
+ function nn(e) {
1243
+ return !!(e && typeof e == "object" && e.type === Ve.number);
1281
1244
  }
1282
- function tr(e) {
1283
- return !!(e && typeof e == "object" && e.type === ze.dateTime);
1245
+ function Yt(e) {
1246
+ return !!(e && typeof e == "object" && e.type === Ve.dateTime);
1284
1247
  }
1285
- var fn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1286
- function zi(e) {
1248
+ var on = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Li = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1249
+ function Ni(e) {
1287
1250
  var t = {};
1288
- return e.replace(Xi, function(r) {
1251
+ return e.replace(Li, function(r) {
1289
1252
  var n = r.length;
1290
1253
  switch (r[0]) {
1291
1254
  case "G":
@@ -1374,36 +1337,36 @@ function zi(e) {
1374
1337
  return "";
1375
1338
  }), t;
1376
1339
  }
1377
- var Wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1378
- function qi(e) {
1340
+ var Mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1341
+ function Ri(e) {
1379
1342
  if (e.length === 0)
1380
1343
  throw new Error("Number skeleton cannot be empty");
1381
- for (var t = e.split(Wi).filter(function(p) {
1344
+ for (var t = e.split(Mi).filter(function(p) {
1382
1345
  return p.length > 0;
1383
1346
  }), r = [], n = 0, i = t; n < i.length; n++) {
1384
1347
  var o = i[n], s = o.split("/");
1385
1348
  if (s.length === 0)
1386
1349
  throw new Error("Invalid number skeleton");
1387
- for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
1388
- var d = c[u];
1350
+ for (var a = s[0], f = s.slice(1), h = 0, c = f; h < c.length; h++) {
1351
+ var d = c[h];
1389
1352
  if (d.length === 0)
1390
1353
  throw new Error("Invalid number skeleton");
1391
1354
  }
1392
- r.push({ stem: a, options: l });
1355
+ r.push({ stem: a, options: f });
1393
1356
  }
1394
1357
  return r;
1395
1358
  }
1396
- function Zi(e) {
1359
+ function Di(e) {
1397
1360
  return e.replace(/^(.*?)-/, "");
1398
1361
  }
1399
- var Br = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cn = /^(@+)?(\+|#+)?[rs]?$/g, Ji = /(\*)(0+)|(#+)(0+)|(0+)/g, dn = /^(0+)$/;
1400
- function Pr(e) {
1362
+ var xr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sn = /^(@+)?(\+|#+)?[rs]?$/g, Fi = /(\*)(0+)|(#+)(0+)|(0+)/g, an = /^(0+)$/;
1363
+ function wr(e) {
1401
1364
  var t = {};
1402
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cn, function(r, n, i) {
1365
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(sn, function(r, n, i) {
1403
1366
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1404
1367
  }), t;
1405
1368
  }
1406
- function mn(e) {
1369
+ function un(e) {
1407
1370
  switch (e) {
1408
1371
  case "sign-auto":
1409
1372
  return {
@@ -1443,7 +1406,7 @@ function mn(e) {
1443
1406
  };
1444
1407
  }
1445
1408
  }
1446
- function Qi(e) {
1409
+ function Ui(e) {
1447
1410
  var t;
1448
1411
  if (e[0] === "E" && e[1] === "E" ? (t = {
1449
1412
  notation: "engineering"
@@ -1451,17 +1414,17 @@ function Qi(e) {
1451
1414
  notation: "scientific"
1452
1415
  }, e = e.slice(1)), t) {
1453
1416
  var r = e.slice(0, 2);
1454
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dn.test(e))
1417
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !an.test(e))
1455
1418
  throw new Error("Malformed concise eng/scientific notation");
1456
1419
  t.minimumIntegerDigits = e.length;
1457
1420
  }
1458
1421
  return t;
1459
1422
  }
1460
- function Cr(e) {
1461
- var t = {}, r = mn(e);
1423
+ function Tr(e) {
1424
+ var t = {}, r = un(e);
1462
1425
  return r || t;
1463
1426
  }
1464
- function Yi(e) {
1427
+ function Gi(e) {
1465
1428
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1466
1429
  var i = n[r];
1467
1430
  switch (i.stem) {
@@ -1485,7 +1448,7 @@ function Yi(e) {
1485
1448
  continue;
1486
1449
  case "measure-unit":
1487
1450
  case "unit":
1488
- t.style = "unit", t.unit = Zi(i.options[0]);
1451
+ t.style = "unit", t.unit = Di(i.options[0]);
1489
1452
  continue;
1490
1453
  case "compact-short":
1491
1454
  case "K":
@@ -1496,13 +1459,13 @@ function Yi(e) {
1496
1459
  t.notation = "compact", t.compactDisplay = "long";
1497
1460
  continue;
1498
1461
  case "scientific":
1499
- t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1500
- return P(P({}, l), Cr(u));
1462
+ t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(f, h) {
1463
+ return P(P({}, f), Tr(h));
1501
1464
  }, {}));
1502
1465
  continue;
1503
1466
  case "engineering":
1504
- t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1505
- return P(P({}, l), Cr(u));
1467
+ t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(f, h) {
1468
+ return P(P({}, f), Tr(h));
1506
1469
  }, {}));
1507
1470
  continue;
1508
1471
  case "notation-simple":
@@ -1547,8 +1510,8 @@ function Yi(e) {
1547
1510
  case "integer-width":
1548
1511
  if (i.options.length > 1)
1549
1512
  throw new RangeError("integer-width stems only accept a single optional option");
1550
- i.options[0].replace(Ji, function(l, u, c, d, p, _) {
1551
- if (u)
1513
+ i.options[0].replace(Fi, function(f, h, c, d, p, _) {
1514
+ if (h)
1552
1515
  t.minimumIntegerDigits = c.length;
1553
1516
  else {
1554
1517
  if (d && p)
@@ -1560,32 +1523,32 @@ function Yi(e) {
1560
1523
  });
1561
1524
  continue;
1562
1525
  }
1563
- if (dn.test(i.stem)) {
1526
+ if (an.test(i.stem)) {
1564
1527
  t.minimumIntegerDigits = i.stem.length;
1565
1528
  continue;
1566
1529
  }
1567
- if (Br.test(i.stem)) {
1530
+ if (xr.test(i.stem)) {
1568
1531
  if (i.options.length > 1)
1569
1532
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1570
- i.stem.replace(Br, function(l, u, c, d, p, _) {
1571
- return c === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && _ ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1533
+ i.stem.replace(xr, function(f, h, c, d, p, _) {
1534
+ return c === "*" ? t.minimumFractionDigits = h.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && _ ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + _.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1572
1535
  });
1573
1536
  var o = i.options[0];
1574
- o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Pr(o)));
1537
+ o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), wr(o)));
1575
1538
  continue;
1576
1539
  }
1577
- if (cn.test(i.stem)) {
1578
- t = P(P({}, t), Pr(i.stem));
1540
+ if (sn.test(i.stem)) {
1541
+ t = P(P({}, t), wr(i.stem));
1579
1542
  continue;
1580
1543
  }
1581
- var s = mn(i.stem);
1544
+ var s = un(i.stem);
1582
1545
  s && (t = P(P({}, t), s));
1583
- var a = Qi(i.stem);
1546
+ var a = Ui(i.stem);
1584
1547
  a && (t = P(P({}, t), a));
1585
1548
  }
1586
1549
  return t;
1587
1550
  }
1588
- var yt = {
1551
+ var bt = {
1589
1552
  "001": [
1590
1553
  "H",
1591
1554
  "h"
@@ -3000,22 +2963,22 @@ var yt = {
3000
2963
  "h"
3001
2964
  ]
3002
2965
  };
3003
- function Ki(e, t) {
2966
+ function ji(e, t) {
3004
2967
  for (var r = "", n = 0; n < e.length; n++) {
3005
2968
  var i = e.charAt(n);
3006
2969
  if (i === "j") {
3007
2970
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3008
2971
  o++, n++;
3009
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = eo(t);
3010
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3011
- r += l;
2972
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), f = "a", h = $i(t);
2973
+ for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
2974
+ r += f;
3012
2975
  for (; s-- > 0; )
3013
- r = u + r;
2976
+ r = h + r;
3014
2977
  } else i === "J" ? r += "H" : r += i;
3015
2978
  }
3016
2979
  return r;
3017
2980
  }
3018
- function eo(e) {
2981
+ function $i(e) {
3019
2982
  var t = e.hourCycle;
3020
2983
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3021
2984
  e.hourCycles && // @ts-ignore
@@ -3034,23 +2997,23 @@ function eo(e) {
3034
2997
  }
3035
2998
  var r = e.language, n;
3036
2999
  r !== "root" && (n = e.maximize().region);
3037
- var i = yt[n || ""] || yt[r || ""] || yt["".concat(r, "-001")] || yt["001"];
3000
+ var i = bt[n || ""] || bt[r || ""] || bt["".concat(r, "-001")] || bt["001"];
3038
3001
  return i[0];
3039
3002
  }
3040
- var jt, to = new RegExp("^".concat(fn.source, "*")), ro = new RegExp("".concat(fn.source, "*$"));
3003
+ var Ft, ki = new RegExp("^".concat(on.source, "*")), Vi = new RegExp("".concat(on.source, "*$"));
3041
3004
  function H(e, t) {
3042
3005
  return { start: e, end: t };
3043
3006
  }
3044
- var no = !!String.prototype.startsWith && "_a".startsWith("a", 1), io = !!String.fromCodePoint, oo = !!Object.fromEntries, so = !!String.prototype.codePointAt, ao = !!String.prototype.trimStart, uo = !!String.prototype.trimEnd, lo = !!Number.isSafeInteger, ho = lo ? Number.isSafeInteger : function(e) {
3007
+ var Xi = !!String.prototype.startsWith && "_a".startsWith("a", 1), zi = !!String.fromCodePoint, Wi = !!Object.fromEntries, qi = !!String.prototype.codePointAt, Zi = !!String.prototype.trimStart, Ji = !!String.prototype.trimEnd, Qi = !!Number.isSafeInteger, Yi = Qi ? Number.isSafeInteger : function(e) {
3045
3008
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3046
- }, rr = !0;
3009
+ }, Kt = !0;
3047
3010
  try {
3048
- var fo = bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3049
- rr = ((jt = fo.exec("a")) === null || jt === void 0 ? void 0 : jt[0]) === "a";
3050
- } catch (e) {
3051
- rr = !1;
3011
+ var Ki = hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3012
+ Kt = ((Ft = Ki.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
3013
+ } catch {
3014
+ Kt = !1;
3052
3015
  }
3053
- var Or = no ? (
3016
+ var Sr = Xi ? (
3054
3017
  // Native
3055
3018
  function(t, r, n) {
3056
3019
  return t.startsWith(r, n);
@@ -3060,7 +3023,7 @@ var Or = no ? (
3060
3023
  function(t, r, n) {
3061
3024
  return t.slice(n, n + r.length) === r;
3062
3025
  }
3063
- ), nr = io ? String.fromCodePoint : (
3026
+ ), er = zi ? String.fromCodePoint : (
3064
3027
  // IE11
3065
3028
  function() {
3066
3029
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3072,9 +3035,9 @@ var Or = no ? (
3072
3035
  }
3073
3036
  return n;
3074
3037
  }
3075
- ), Ir = (
3038
+ ), Ar = (
3076
3039
  // native
3077
- oo ? Object.fromEntries : (
3040
+ Wi ? Object.fromEntries : (
3078
3041
  // Ponyfill
3079
3042
  function(t) {
3080
3043
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3084,7 +3047,7 @@ var Or = no ? (
3084
3047
  return r;
3085
3048
  }
3086
3049
  )
3087
- ), pn = so ? (
3050
+ ), ln = qi ? (
3088
3051
  // Native
3089
3052
  function(t, r) {
3090
3053
  return t.codePointAt(r);
@@ -3098,7 +3061,7 @@ var Or = no ? (
3098
3061
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3099
3062
  }
3100
3063
  }
3101
- ), co = ao ? (
3064
+ ), eo = Zi ? (
3102
3065
  // Native
3103
3066
  function(t) {
3104
3067
  return t.trimStart();
@@ -3106,9 +3069,9 @@ var Or = no ? (
3106
3069
  ) : (
3107
3070
  // Ponyfill
3108
3071
  function(t) {
3109
- return t.replace(to, "");
3072
+ return t.replace(ki, "");
3110
3073
  }
3111
- ), mo = uo ? (
3074
+ ), to = Ji ? (
3112
3075
  // Native
3113
3076
  function(t) {
3114
3077
  return t.trimEnd();
@@ -3116,32 +3079,32 @@ var Or = no ? (
3116
3079
  ) : (
3117
3080
  // Ponyfill
3118
3081
  function(t) {
3119
- return t.replace(ro, "");
3082
+ return t.replace(Vi, "");
3120
3083
  }
3121
3084
  );
3122
- function bn(e, t) {
3085
+ function hn(e, t) {
3123
3086
  return new RegExp(e, t);
3124
3087
  }
3125
- var ir;
3126
- if (rr) {
3127
- var Lr = bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3128
- ir = function(t, r) {
3088
+ var tr;
3089
+ if (Kt) {
3090
+ var Hr = hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3091
+ tr = function(t, r) {
3129
3092
  var n;
3130
- Lr.lastIndex = r;
3131
- var i = Lr.exec(t);
3093
+ Hr.lastIndex = r;
3094
+ var i = Hr.exec(t);
3132
3095
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3133
3096
  };
3134
3097
  } else
3135
- ir = function(t, r) {
3098
+ tr = function(t, r) {
3136
3099
  for (var n = []; ; ) {
3137
- var i = pn(t, r);
3138
- if (i === void 0 || gn(i) || yo(i))
3100
+ var i = ln(t, r);
3101
+ if (i === void 0 || fn(i) || oo(i))
3139
3102
  break;
3140
3103
  n.push(i), r += i >= 65536 ? 2 : 1;
3141
3104
  }
3142
- return nr.apply(void 0, n);
3105
+ return er.apply(void 0, n);
3143
3106
  };
3144
- var po = (
3107
+ var ro = (
3145
3108
  /** @class */
3146
3109
  function() {
3147
3110
  function e(t, r) {
@@ -3172,7 +3135,7 @@ var po = (
3172
3135
  if (n)
3173
3136
  break;
3174
3137
  return this.error(A.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
3175
- } else if (o === 60 && !this.ignoreTag && or(this.peek() || 0)) {
3138
+ } else if (o === 60 && !this.ignoreTag && rr(this.peek() || 0)) {
3176
3139
  var s = this.parseTag(t, r);
3177
3140
  if (s.err)
3178
3141
  return s;
@@ -3205,10 +3168,10 @@ var po = (
3205
3168
  return o;
3206
3169
  var s = o.val, a = this.clonePosition();
3207
3170
  if (this.bumpIf("</")) {
3208
- if (this.isEOF() || !or(this.char()))
3171
+ if (this.isEOF() || !rr(this.char()))
3209
3172
  return this.error(A.INVALID_TAG, H(a, this.clonePosition()));
3210
- var l = this.clonePosition(), u = this.parseTagName();
3211
- return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, H(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3173
+ var f = this.clonePosition(), h = this.parseTagName();
3174
+ return i !== h ? this.error(A.UNMATCHED_CLOSING_TAG, H(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3212
3175
  val: {
3213
3176
  type: D.tag,
3214
3177
  value: i,
@@ -3223,7 +3186,7 @@ var po = (
3223
3186
  return this.error(A.INVALID_TAG, H(n, this.clonePosition()));
3224
3187
  }, e.prototype.parseTagName = function() {
3225
3188
  var t = this.offset();
3226
- for (this.bump(); !this.isEOF() && go(this.char()); )
3189
+ for (this.bump(); !this.isEOF() && io(this.char()); )
3227
3190
  this.bump();
3228
3191
  return this.message.slice(t, this.offset());
3229
3192
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3245,14 +3208,14 @@ var po = (
3245
3208
  }
3246
3209
  break;
3247
3210
  }
3248
- var l = H(n, this.clonePosition());
3211
+ var f = H(n, this.clonePosition());
3249
3212
  return {
3250
- val: { type: D.literal, value: i, location: l },
3213
+ val: { type: D.literal, value: i, location: f },
3251
3214
  err: null
3252
3215
  };
3253
3216
  }, e.prototype.tryParseLeftAngleBracket = function() {
3254
3217
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3255
- !bo(this.peek() || 0)) ? (this.bump(), "<") : null;
3218
+ !no(this.peek() || 0)) ? (this.bump(), "<") : null;
3256
3219
  }, e.prototype.tryParseQuote = function(t) {
3257
3220
  if (this.isEOF() || this.char() !== 39)
3258
3221
  return null;
@@ -3286,12 +3249,12 @@ var po = (
3286
3249
  r.push(n);
3287
3250
  this.bump();
3288
3251
  }
3289
- return nr.apply(void 0, r);
3252
+ return er.apply(void 0, r);
3290
3253
  }, e.prototype.tryParseUnquoted = function(t, r) {
3291
3254
  if (this.isEOF())
3292
3255
  return null;
3293
3256
  var n = this.char();
3294
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), nr(n));
3257
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), er(n));
3295
3258
  }, e.prototype.parseArgument = function(t, r) {
3296
3259
  var n = this.clonePosition();
3297
3260
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3320,39 +3283,39 @@ var po = (
3320
3283
  return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
3321
3284
  }
3322
3285
  }, e.prototype.parseIdentifierIfPossible = function() {
3323
- var t = this.clonePosition(), r = this.offset(), n = ir(this.message, r), i = r + n.length;
3286
+ var t = this.clonePosition(), r = this.offset(), n = tr(this.message, r), i = r + n.length;
3324
3287
  this.bumpTo(i);
3325
3288
  var o = this.clonePosition(), s = H(t, o);
3326
3289
  return { value: n, location: s };
3327
3290
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3328
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3291
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
3329
3292
  switch (a) {
3330
3293
  case "":
3331
- return this.error(A.EXPECT_ARGUMENT_TYPE, H(s, l));
3294
+ return this.error(A.EXPECT_ARGUMENT_TYPE, H(s, f));
3332
3295
  case "number":
3333
3296
  case "date":
3334
3297
  case "time": {
3335
3298
  this.bumpSpace();
3336
- var u = null;
3299
+ var h = null;
3337
3300
  if (this.bumpIf(",")) {
3338
3301
  this.bumpSpace();
3339
3302
  var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
3340
3303
  if (d.err)
3341
3304
  return d;
3342
- var p = mo(d.val);
3305
+ var p = to(d.val);
3343
3306
  if (p.length === 0)
3344
3307
  return this.error(A.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
3345
3308
  var _ = H(c, this.clonePosition());
3346
- u = { style: p, styleLocation: _ };
3309
+ h = { style: p, styleLocation: _ };
3347
3310
  }
3348
3311
  var O = this.tryParseArgumentClose(i);
3349
3312
  if (O.err)
3350
3313
  return O;
3351
3314
  var B = H(i, this.clonePosition());
3352
- if (u && Or(u == null ? void 0 : u.style, "::", 0)) {
3353
- var ee = co(u.style.slice(2));
3315
+ if (h && Sr(h?.style, "::", 0)) {
3316
+ var ee = eo(h.style.slice(2));
3354
3317
  if (a === "number") {
3355
- var d = this.parseNumberSkeletonFromString(ee, u.styleLocation);
3318
+ var d = this.parseNumberSkeletonFromString(ee, h.styleLocation);
3356
3319
  return d.err ? d : {
3357
3320
  val: { type: D.number, value: n, location: B, style: d.val },
3358
3321
  err: null
@@ -3360,13 +3323,13 @@ var po = (
3360
3323
  } else {
3361
3324
  if (ee.length === 0)
3362
3325
  return this.error(A.EXPECT_DATE_TIME_SKELETON, B);
3363
- var me = ee;
3364
- this.locale && (me = Ki(ee, this.locale));
3326
+ var de = ee;
3327
+ this.locale && (de = ji(ee, this.locale));
3365
3328
  var p = {
3366
- type: ze.dateTime,
3367
- pattern: me,
3368
- location: u.styleLocation,
3369
- parsedOptions: this.shouldParseSkeletons ? zi(me) : {}
3329
+ type: Ve.dateTime,
3330
+ pattern: de,
3331
+ location: h.styleLocation,
3332
+ parsedOptions: this.shouldParseSkeletons ? Ni(de) : {}
3370
3333
  }, ie = a === "date" ? D.date : D.time;
3371
3334
  return {
3372
3335
  val: { type: ie, value: n, location: B, style: p },
@@ -3379,7 +3342,7 @@ var po = (
3379
3342
  type: a === "number" ? D.number : a === "date" ? D.date : D.time,
3380
3343
  value: n,
3381
3344
  location: B,
3382
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3345
+ style: (o = h?.style) !== null && o !== void 0 ? o : null
3383
3346
  },
3384
3347
  err: null
3385
3348
  };
@@ -3407,29 +3370,29 @@ var po = (
3407
3370
  var O = this.tryParseArgumentClose(i);
3408
3371
  if (O.err)
3409
3372
  return O;
3410
- var ge = H(i, this.clonePosition());
3373
+ var be = H(i, this.clonePosition());
3411
3374
  return a === "select" ? {
3412
3375
  val: {
3413
3376
  type: D.select,
3414
3377
  value: n,
3415
- options: Ir(le.val),
3416
- location: ge
3378
+ options: Ar(le.val),
3379
+ location: be
3417
3380
  },
3418
3381
  err: null
3419
3382
  } : {
3420
3383
  val: {
3421
3384
  type: D.plural,
3422
3385
  value: n,
3423
- options: Ir(le.val),
3386
+ options: Ar(le.val),
3424
3387
  offset: Z,
3425
3388
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3426
- location: ge
3389
+ location: be
3427
3390
  },
3428
3391
  err: null
3429
3392
  };
3430
3393
  }
3431
3394
  default:
3432
- return this.error(A.INVALID_ARGUMENT_TYPE, H(s, l));
3395
+ return this.error(A.INVALID_ARGUMENT_TYPE, H(s, f));
3433
3396
  }
3434
3397
  }, e.prototype.tryParseArgumentClose = function(t) {
3435
3398
  return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3471,34 +3434,34 @@ var po = (
3471
3434
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3472
3435
  var n = [];
3473
3436
  try {
3474
- n = qi(t);
3475
- } catch (i) {
3437
+ n = Ri(t);
3438
+ } catch {
3476
3439
  return this.error(A.INVALID_NUMBER_SKELETON, r);
3477
3440
  }
3478
3441
  return {
3479
3442
  val: {
3480
- type: ze.number,
3443
+ type: Ve.number,
3481
3444
  tokens: n,
3482
3445
  location: r,
3483
- parsedOptions: this.shouldParseSkeletons ? Yi(n) : {}
3446
+ parsedOptions: this.shouldParseSkeletons ? Gi(n) : {}
3484
3447
  },
3485
3448
  err: null
3486
3449
  };
3487
3450
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3488
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3489
- if (u.length === 0) {
3451
+ for (var o, s = !1, a = [], f = /* @__PURE__ */ new Set(), h = i.value, c = i.location; ; ) {
3452
+ if (h.length === 0) {
3490
3453
  var d = this.clonePosition();
3491
3454
  if (r !== "select" && this.bumpIf("=")) {
3492
3455
  var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3493
3456
  if (p.err)
3494
3457
  return p;
3495
- c = H(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
3458
+ c = H(d, this.clonePosition()), h = this.message.slice(d.offset, this.offset());
3496
3459
  } else
3497
3460
  break;
3498
3461
  }
3499
- if (l.has(u))
3462
+ if (f.has(h))
3500
3463
  return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3501
- u === "other" && (s = !0), this.bumpSpace();
3464
+ h === "other" && (s = !0), this.bumpSpace();
3502
3465
  var _ = this.clonePosition();
3503
3466
  if (!this.bumpIf("{"))
3504
3467
  return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
@@ -3509,12 +3472,12 @@ var po = (
3509
3472
  if (B.err)
3510
3473
  return B;
3511
3474
  a.push([
3512
- u,
3475
+ h,
3513
3476
  {
3514
3477
  value: O.val,
3515
3478
  location: H(_, this.clonePosition())
3516
3479
  }
3517
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
3480
+ ]), f.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, c = o.location;
3518
3481
  }
3519
3482
  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 };
3520
3483
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3527,8 +3490,8 @@ var po = (
3527
3490
  else
3528
3491
  break;
3529
3492
  }
3530
- var l = H(i, this.clonePosition());
3531
- return o ? (s *= n, ho(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3493
+ var f = H(i, this.clonePosition());
3494
+ return o ? (s *= n, Yi(s) ? { val: s, err: null } : this.error(r, f)) : this.error(t, f);
3532
3495
  }, e.prototype.offset = function() {
3533
3496
  return this.position.offset;
3534
3497
  }, e.prototype.isEOF = function() {
@@ -3543,7 +3506,7 @@ var po = (
3543
3506
  var t = this.position.offset;
3544
3507
  if (t >= this.message.length)
3545
3508
  throw Error("out of bound");
3546
- var r = pn(this.message, t);
3509
+ var r = ln(this.message, t);
3547
3510
  if (r === void 0)
3548
3511
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3549
3512
  return r;
@@ -3562,7 +3525,7 @@ var po = (
3562
3525
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3563
3526
  }
3564
3527
  }, e.prototype.bumpIf = function(t) {
3565
- if (Or(this.message, t, this.offset())) {
3528
+ if (Sr(this.message, t, this.offset())) {
3566
3529
  for (var r = 0; r < t.length; r++)
3567
3530
  this.bump();
3568
3531
  return !0;
@@ -3584,56 +3547,56 @@ var po = (
3584
3547
  break;
3585
3548
  }
3586
3549
  }, e.prototype.bumpSpace = function() {
3587
- for (; !this.isEOF() && gn(this.char()); )
3550
+ for (; !this.isEOF() && fn(this.char()); )
3588
3551
  this.bump();
3589
3552
  }, e.prototype.peek = function() {
3590
3553
  if (this.isEOF())
3591
3554
  return null;
3592
3555
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3593
- return n != null ? n : null;
3556
+ return n ?? null;
3594
3557
  }, e;
3595
3558
  }()
3596
3559
  );
3597
- function or(e) {
3560
+ function rr(e) {
3598
3561
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3599
3562
  }
3600
- function bo(e) {
3601
- return or(e) || e === 47;
3563
+ function no(e) {
3564
+ return rr(e) || e === 47;
3602
3565
  }
3603
- function go(e) {
3566
+ function io(e) {
3604
3567
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3605
3568
  }
3606
- function gn(e) {
3569
+ function fn(e) {
3607
3570
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3608
3571
  }
3609
- function yo(e) {
3572
+ function oo(e) {
3610
3573
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3611
3574
  }
3612
- function sr(e) {
3575
+ function nr(e) {
3613
3576
  e.forEach(function(t) {
3614
- if (delete t.location, an(t) || un(t))
3577
+ if (delete t.location, en(t) || tn(t))
3615
3578
  for (var r in t.options)
3616
- delete t.options[r].location, sr(t.options[r].value);
3617
- else nn(t) && hn(t.style) || (on(t) || sn(t)) && tr(t.style) ? delete t.style.location : ln(t) && sr(t.children);
3579
+ delete t.options[r].location, nr(t.options[r].value);
3580
+ else Qr(t) && nn(t.style) || (Yr(t) || Kr(t)) && Yt(t.style) ? delete t.style.location : rn(t) && nr(t.children);
3618
3581
  });
3619
3582
  }
3620
- function vo(e, t) {
3583
+ function so(e, t) {
3621
3584
  t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3622
- var r = new po(e, t).parse();
3585
+ var r = new ro(e, t).parse();
3623
3586
  if (r.err) {
3624
3587
  var n = SyntaxError(A[r.err.kind]);
3625
3588
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3626
3589
  }
3627
- return t != null && t.captureLocation || sr(r.val), r.val;
3590
+ return t?.captureLocation || nr(r.val), r.val;
3628
3591
  }
3629
- var We;
3592
+ var Xe;
3630
3593
  (function(e) {
3631
3594
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3632
- })(We || (We = {}));
3633
- var Bt = (
3595
+ })(Xe || (Xe = {}));
3596
+ var At = (
3634
3597
  /** @class */
3635
3598
  function(e) {
3636
- we(t, e);
3599
+ xe(t, e);
3637
3600
  function t(r, n, i) {
3638
3601
  var o = e.call(this, r) || this;
3639
3602
  return o.code = n, o.originalMessage = i, o;
@@ -3642,64 +3605,64 @@ var Bt = (
3642
3605
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3643
3606
  }, t;
3644
3607
  }(Error)
3645
- ), Nr = (
3608
+ ), Br = (
3646
3609
  /** @class */
3647
3610
  function(e) {
3648
- we(t, e);
3611
+ xe(t, e);
3649
3612
  function t(r, n, i, o) {
3650
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), We.INVALID_VALUE, o) || this;
3613
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, o) || this;
3651
3614
  }
3652
3615
  return t;
3653
- }(Bt)
3654
- ), Eo = (
3616
+ }(At)
3617
+ ), ao = (
3655
3618
  /** @class */
3656
3619
  function(e) {
3657
- we(t, e);
3620
+ xe(t, e);
3658
3621
  function t(r, n, i) {
3659
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), We.INVALID_VALUE, i) || this;
3622
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Xe.INVALID_VALUE, i) || this;
3660
3623
  }
3661
3624
  return t;
3662
- }(Bt)
3663
- ), _o = (
3625
+ }(At)
3626
+ ), uo = (
3664
3627
  /** @class */
3665
3628
  function(e) {
3666
- we(t, e);
3629
+ xe(t, e);
3667
3630
  function t(r, n) {
3668
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), We.MISSING_VALUE, n) || this;
3631
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Xe.MISSING_VALUE, n) || this;
3669
3632
  }
3670
3633
  return t;
3671
- }(Bt)
3634
+ }(At)
3672
3635
  ), K;
3673
3636
  (function(e) {
3674
3637
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3675
3638
  })(K || (K = {}));
3676
- function xo(e) {
3639
+ function lo(e) {
3677
3640
  return e.length < 2 ? e : e.reduce(function(t, r) {
3678
3641
  var n = t[t.length - 1];
3679
3642
  return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
3680
3643
  }, []);
3681
3644
  }
3682
- function wo(e) {
3645
+ function ho(e) {
3683
3646
  return typeof e == "function";
3684
3647
  }
3685
- function _t(e, t, r, n, i, o, s) {
3686
- if (e.length === 1 && Hr(e[0]))
3648
+ function vt(e, t, r, n, i, o, s) {
3649
+ if (e.length === 1 && _r(e[0]))
3687
3650
  return [
3688
3651
  {
3689
3652
  type: K.literal,
3690
3653
  value: e[0].value
3691
3654
  }
3692
3655
  ];
3693
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3694
- var c = u[l];
3695
- if (Hr(c)) {
3656
+ for (var a = [], f = 0, h = e; f < h.length; f++) {
3657
+ var c = h[f];
3658
+ if (_r(c)) {
3696
3659
  a.push({
3697
3660
  type: K.literal,
3698
3661
  value: c.value
3699
3662
  });
3700
3663
  continue;
3701
3664
  }
3702
- if (Vi(c)) {
3665
+ if (Ii(c)) {
3703
3666
  typeof o == "number" && a.push({
3704
3667
  type: K.literal,
3705
3668
  value: r.getNumberFormat(t).format(o)
@@ -3708,44 +3671,44 @@ function _t(e, t, r, n, i, o, s) {
3708
3671
  }
3709
3672
  var d = c.value;
3710
3673
  if (!(i && d in i))
3711
- throw new _o(d, s);
3674
+ throw new uo(d, s);
3712
3675
  var p = i[d];
3713
- if (ki(c)) {
3676
+ if (Oi(c)) {
3714
3677
  (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3715
3678
  type: typeof p == "string" ? K.literal : K.object,
3716
3679
  value: p
3717
3680
  });
3718
3681
  continue;
3719
3682
  }
3720
- if (on(c)) {
3721
- var _ = typeof c.style == "string" ? n.date[c.style] : tr(c.style) ? c.style.parsedOptions : void 0;
3683
+ if (Yr(c)) {
3684
+ var _ = typeof c.style == "string" ? n.date[c.style] : Yt(c.style) ? c.style.parsedOptions : void 0;
3722
3685
  a.push({
3723
3686
  type: K.literal,
3724
3687
  value: r.getDateTimeFormat(t, _).format(p)
3725
3688
  });
3726
3689
  continue;
3727
3690
  }
3728
- if (sn(c)) {
3729
- var _ = typeof c.style == "string" ? n.time[c.style] : tr(c.style) ? c.style.parsedOptions : n.time.medium;
3691
+ if (Kr(c)) {
3692
+ var _ = typeof c.style == "string" ? n.time[c.style] : Yt(c.style) ? c.style.parsedOptions : n.time.medium;
3730
3693
  a.push({
3731
3694
  type: K.literal,
3732
3695
  value: r.getDateTimeFormat(t, _).format(p)
3733
3696
  });
3734
3697
  continue;
3735
3698
  }
3736
- if (nn(c)) {
3737
- var _ = typeof c.style == "string" ? n.number[c.style] : hn(c.style) ? c.style.parsedOptions : void 0;
3699
+ if (Qr(c)) {
3700
+ var _ = typeof c.style == "string" ? n.number[c.style] : nn(c.style) ? c.style.parsedOptions : void 0;
3738
3701
  _ && _.scale && (p = p * (_.scale || 1)), a.push({
3739
3702
  type: K.literal,
3740
3703
  value: r.getNumberFormat(t, _).format(p)
3741
3704
  });
3742
3705
  continue;
3743
3706
  }
3744
- if (ln(c)) {
3707
+ if (rn(c)) {
3745
3708
  var O = c.children, B = c.value, ee = i[B];
3746
- if (!wo(ee))
3747
- throw new Eo(B, "function", s);
3748
- var me = _t(O, t, r, n, i, o), ie = ee(me.map(function(Z) {
3709
+ if (!ho(ee))
3710
+ throw new ao(B, "function", s);
3711
+ var de = vt(O, t, r, n, i, o), ie = ee(de.map(function(Z) {
3749
3712
  return Z.value;
3750
3713
  }));
3751
3714
  Array.isArray(ie) || (ie = [ie]), a.push.apply(a, ie.map(function(Z) {
@@ -3755,42 +3718,42 @@ function _t(e, t, r, n, i, o, s) {
3755
3718
  };
3756
3719
  }));
3757
3720
  }
3758
- if (an(c)) {
3721
+ if (en(c)) {
3759
3722
  var M = c.options[p] || c.options.other;
3760
3723
  if (!M)
3761
- throw new Nr(c.value, p, Object.keys(c.options), s);
3762
- a.push.apply(a, _t(M.value, t, r, n, i));
3724
+ throw new Br(c.value, p, Object.keys(c.options), s);
3725
+ a.push.apply(a, vt(M.value, t, r, n, i));
3763
3726
  continue;
3764
3727
  }
3765
- if (un(c)) {
3728
+ if (tn(c)) {
3766
3729
  var M = c.options["=".concat(p)];
3767
3730
  if (!M) {
3768
3731
  if (!Intl.PluralRules)
3769
- throw new Bt(`Intl.PluralRules is not available in this environment.
3732
+ throw new At(`Intl.PluralRules is not available in this environment.
3770
3733
  Try polyfilling it using "@formatjs/intl-pluralrules"
3771
- `, We.MISSING_INTL_API, s);
3734
+ `, Xe.MISSING_INTL_API, s);
3772
3735
  var $ = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
3773
3736
  M = c.options[$] || c.options.other;
3774
3737
  }
3775
3738
  if (!M)
3776
- throw new Nr(c.value, p, Object.keys(c.options), s);
3777
- a.push.apply(a, _t(M.value, t, r, n, i, p - (c.offset || 0)));
3739
+ throw new Br(c.value, p, Object.keys(c.options), s);
3740
+ a.push.apply(a, vt(M.value, t, r, n, i, p - (c.offset || 0)));
3778
3741
  continue;
3779
3742
  }
3780
3743
  }
3781
- return xo(a);
3744
+ return lo(a);
3782
3745
  }
3783
- function To(e, t) {
3746
+ function fo(e, t) {
3784
3747
  return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3785
3748
  return r[n] = P(P({}, e[n]), t[n] || {}), r;
3786
3749
  }, {})) : e;
3787
3750
  }
3788
- function So(e, t) {
3751
+ function co(e, t) {
3789
3752
  return t ? Object.keys(e).reduce(function(r, n) {
3790
- return r[n] = To(e[n], t[n]), r;
3753
+ return r[n] = fo(e[n], t[n]), r;
3791
3754
  }, P({}, e)) : e;
3792
3755
  }
3793
- function $t(e) {
3756
+ function Ut(e) {
3794
3757
  return {
3795
3758
  create: function() {
3796
3759
  return {
@@ -3804,39 +3767,39 @@ function $t(e) {
3804
3767
  }
3805
3768
  };
3806
3769
  }
3807
- function Ao(e) {
3770
+ function mo(e) {
3808
3771
  return e === void 0 && (e = {
3809
3772
  number: {},
3810
3773
  dateTime: {},
3811
3774
  pluralRules: {}
3812
3775
  }), {
3813
- getNumberFormat: Ut(function() {
3776
+ getNumberFormat: Rt(function() {
3814
3777
  for (var t, r = [], n = 0; n < arguments.length; n++)
3815
3778
  r[n] = arguments[n];
3816
- return new ((t = Intl.NumberFormat).bind.apply(t, Ve([void 0], r, !1)))();
3779
+ return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
3817
3780
  }, {
3818
- cache: $t(e.number),
3819
- strategy: Gt.variadic
3781
+ cache: Ut(e.number),
3782
+ strategy: Dt.variadic
3820
3783
  }),
3821
- getDateTimeFormat: Ut(function() {
3784
+ getDateTimeFormat: Rt(function() {
3822
3785
  for (var t, r = [], n = 0; n < arguments.length; n++)
3823
3786
  r[n] = arguments[n];
3824
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ve([void 0], r, !1)))();
3787
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
3825
3788
  }, {
3826
- cache: $t(e.dateTime),
3827
- strategy: Gt.variadic
3789
+ cache: Ut(e.dateTime),
3790
+ strategy: Dt.variadic
3828
3791
  }),
3829
- getPluralRules: Ut(function() {
3792
+ getPluralRules: Rt(function() {
3830
3793
  for (var t, r = [], n = 0; n < arguments.length; n++)
3831
3794
  r[n] = arguments[n];
3832
- return new ((t = Intl.PluralRules).bind.apply(t, Ve([void 0], r, !1)))();
3795
+ return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
3833
3796
  }, {
3834
- cache: $t(e.pluralRules),
3835
- strategy: Gt.variadic
3797
+ cache: Ut(e.pluralRules),
3798
+ strategy: Dt.variadic
3836
3799
  })
3837
3800
  };
3838
3801
  }
3839
- var Ho = (
3802
+ var po = (
3840
3803
  /** @class */
3841
3804
  function() {
3842
3805
  function e(t, r, n, i) {
@@ -3846,20 +3809,20 @@ var Ho = (
3846
3809
  number: {},
3847
3810
  dateTime: {},
3848
3811
  pluralRules: {}
3849
- }, this.format = function(l) {
3850
- var u = o.formatToParts(l);
3851
- if (u.length === 1)
3852
- return u[0].value;
3853
- var c = u.reduce(function(d, p) {
3812
+ }, this.format = function(f) {
3813
+ var h = o.formatToParts(f);
3814
+ if (h.length === 1)
3815
+ return h[0].value;
3816
+ var c = h.reduce(function(d, p) {
3854
3817
  return !d.length || p.type !== K.literal || typeof d[d.length - 1] != "string" ? d.push(p.value) : d[d.length - 1] += p.value, d;
3855
3818
  }, []);
3856
3819
  return c.length <= 1 ? c[0] || "" : c;
3857
- }, this.formatToParts = function(l) {
3858
- return _t(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3820
+ }, this.formatToParts = function(f) {
3821
+ return vt(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3859
3822
  }, this.resolvedOptions = function() {
3860
- var l;
3823
+ var f;
3861
3824
  return {
3862
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3825
+ locale: ((f = o.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3863
3826
  };
3864
3827
  }, this.getAst = function() {
3865
3828
  return o.ast;
@@ -3868,13 +3831,13 @@ var Ho = (
3868
3831
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3869
3832
  var s = i || {};
3870
3833
  s.formatters;
3871
- var a = ni(s, ["formatters"]);
3834
+ var a = Xn(s, ["formatters"]);
3872
3835
  this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3873
3836
  } else
3874
3837
  this.ast = t;
3875
3838
  if (!Array.isArray(this.ast))
3876
3839
  throw new TypeError("A message must be provided as a String or AST.");
3877
- this.formats = So(e.formats, n), this.formatters = i && i.formatters || Ao(this.formatterCache);
3840
+ this.formats = co(e.formats, n), this.formatters = i && i.formatters || mo(this.formatterCache);
3878
3841
  }
3879
3842
  return Object.defineProperty(e, "defaultLocale", {
3880
3843
  get: function() {
@@ -3883,11 +3846,11 @@ var Ho = (
3883
3846
  enumerable: !1,
3884
3847
  configurable: !0
3885
3848
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3886
- if (typeof Intl.Locale != "undefined") {
3849
+ if (!(typeof Intl.Locale > "u")) {
3887
3850
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3888
3851
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3889
3852
  }
3890
- }, e.__parse = vo, e.formats = {
3853
+ }, e.__parse = so, e.formats = {
3891
3854
  number: {
3892
3855
  integer: {
3893
3856
  maximumFractionDigits: 0
@@ -3948,7 +3911,7 @@ var Ho = (
3948
3911
  }, e;
3949
3912
  }()
3950
3913
  );
3951
- function Bo(e, t) {
3914
+ function bo(e, t) {
3952
3915
  if (t == null)
3953
3916
  return;
3954
3917
  if (t in e)
@@ -3969,92 +3932,92 @@ function Bo(e, t) {
3969
3932
  n = void 0;
3970
3933
  return n;
3971
3934
  }
3972
- const Ae = {}, Po = (e, t, r) => r && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = r), r), yn = (e, t) => {
3935
+ const Se = {}, go = (e, t, r) => r && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = r), r), cn = (e, t) => {
3973
3936
  if (t == null)
3974
3937
  return;
3975
- if (t in Ae && e in Ae[t])
3976
- return Ae[t][e];
3977
- const r = Pt(t);
3938
+ if (t in Se && e in Se[t])
3939
+ return Se[t][e];
3940
+ const r = Ht(t);
3978
3941
  for (let n = 0; n < r.length; n++) {
3979
- const i = r[n], o = Oo(i, e);
3942
+ const i = r[n], o = vo(i, e);
3980
3943
  if (o)
3981
- return Po(e, t, o);
3944
+ return go(e, t, o);
3982
3945
  }
3983
3946
  };
3984
- let fr;
3985
- const Je = Ht({});
3986
- function Co(e) {
3987
- return fr[e] || null;
3947
+ let ur;
3948
+ const qe = St({});
3949
+ function yo(e) {
3950
+ return ur[e] || null;
3988
3951
  }
3989
- function vn(e) {
3990
- return e in fr;
3952
+ function dn(e) {
3953
+ return e in ur;
3991
3954
  }
3992
- function Oo(e, t) {
3993
- if (!vn(e))
3955
+ function vo(e, t) {
3956
+ if (!dn(e))
3994
3957
  return null;
3995
- const r = Co(e);
3996
- return Bo(r, t);
3958
+ const r = yo(e);
3959
+ return bo(r, t);
3997
3960
  }
3998
- function Io(e) {
3961
+ function Eo(e) {
3999
3962
  if (e == null)
4000
3963
  return;
4001
- const t = Pt(e);
3964
+ const t = Ht(e);
4002
3965
  for (let r = 0; r < t.length; r++) {
4003
3966
  const n = t[r];
4004
- if (vn(n))
3967
+ if (dn(n))
4005
3968
  return n;
4006
3969
  }
4007
3970
  }
4008
- function En(e, ...t) {
4009
- delete Ae[e], Je.update((r) => (r[e] = Mi.all([r[e] || {}, ...t]), r));
3971
+ function mn(e, ...t) {
3972
+ delete Se[e], qe.update((r) => (r[e] = wi.all([r[e] || {}, ...t]), r));
4010
3973
  }
4011
- Ze(
4012
- [Je],
3974
+ We(
3975
+ [qe],
4013
3976
  ([e]) => Object.keys(e)
4014
3977
  );
4015
- Je.subscribe((e) => fr = e);
4016
- const xt = {};
4017
- function Lo(e, t) {
4018
- xt[e].delete(t), xt[e].size === 0 && delete xt[e];
3978
+ qe.subscribe((e) => ur = e);
3979
+ const Et = {};
3980
+ function _o(e, t) {
3981
+ Et[e].delete(t), Et[e].size === 0 && delete Et[e];
4019
3982
  }
4020
- function _n(e) {
4021
- return xt[e];
3983
+ function pn(e) {
3984
+ return Et[e];
4022
3985
  }
4023
- function No(e) {
4024
- return Pt(e).map((t) => {
4025
- const r = _n(t);
3986
+ function xo(e) {
3987
+ return Ht(e).map((t) => {
3988
+ const r = pn(t);
4026
3989
  return [t, r ? [...r] : []];
4027
3990
  }).filter(([, t]) => t.length > 0);
4028
3991
  }
4029
- function ar(e) {
4030
- return e == null ? !1 : Pt(e).some(
3992
+ function ir(e) {
3993
+ return e == null ? !1 : Ht(e).some(
4031
3994
  (t) => {
4032
3995
  var r;
4033
- return (r = _n(t)) == null ? void 0 : r.size;
3996
+ return (r = pn(t)) == null ? void 0 : r.size;
4034
3997
  }
4035
3998
  );
4036
3999
  }
4037
- function Mo(e, t) {
4000
+ function wo(e, t) {
4038
4001
  return Promise.all(
4039
- t.map((n) => (Lo(e, n), n().then((i) => i.default || i)))
4040
- ).then((n) => En(e, ...n));
4041
- }
4042
- const it = {};
4043
- function xn(e) {
4044
- if (!ar(e))
4045
- return e in it ? it[e] : Promise.resolve();
4046
- const t = No(e);
4047
- return it[e] = Promise.all(
4002
+ t.map((n) => (_o(e, n), n().then((i) => i.default || i)))
4003
+ ).then((n) => mn(e, ...n));
4004
+ }
4005
+ const rt = {};
4006
+ function bn(e) {
4007
+ if (!ir(e))
4008
+ return e in rt ? rt[e] : Promise.resolve();
4009
+ const t = xo(e);
4010
+ return rt[e] = Promise.all(
4048
4011
  t.map(
4049
- ([r, n]) => Mo(r, n)
4012
+ ([r, n]) => wo(r, n)
4050
4013
  )
4051
4014
  ).then(() => {
4052
- if (ar(e))
4053
- return xn(e);
4054
- delete it[e];
4055
- }), it[e];
4015
+ if (ir(e))
4016
+ return bn(e);
4017
+ delete rt[e];
4018
+ }), rt[e];
4056
4019
  }
4057
- const Ro = {
4020
+ const To = {
4058
4021
  number: {
4059
4022
  scientific: { notation: "scientific" },
4060
4023
  engineering: { notation: "engineering" },
@@ -4083,150 +4046,150 @@ const Ro = {
4083
4046
  timeZoneName: "short"
4084
4047
  }
4085
4048
  }
4086
- }, Do = {
4049
+ }, So = {
4087
4050
  fallbackLocale: null,
4088
4051
  loadingDelay: 200,
4089
- formats: Ro,
4052
+ formats: To,
4090
4053
  warnOnMissingMessages: !0,
4091
4054
  handleMissingMessage: void 0,
4092
4055
  ignoreTag: !0
4093
- }, Fo = Do;
4094
- function qe() {
4095
- return Fo;
4056
+ }, Ao = So;
4057
+ function ze() {
4058
+ return Ao;
4096
4059
  }
4097
- const kt = Ht(!1);
4098
- var Uo = Object.defineProperty, Go = Object.defineProperties, jo = Object.getOwnPropertyDescriptors, Mr = Object.getOwnPropertySymbols, $o = Object.prototype.hasOwnProperty, ko = Object.prototype.propertyIsEnumerable, Rr = (e, t, r) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vo = (e, t) => {
4060
+ const Gt = St(!1);
4061
+ var Ho = Object.defineProperty, Bo = Object.defineProperties, Po = Object.getOwnPropertyDescriptors, Pr = Object.getOwnPropertySymbols, Co = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, Cr = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Io = (e, t) => {
4099
4062
  for (var r in t)
4100
- $o.call(t, r) && Rr(e, r, t[r]);
4101
- if (Mr)
4102
- for (var r of Mr(t))
4103
- ko.call(t, r) && Rr(e, r, t[r]);
4063
+ Co.call(t, r) && Cr(e, r, t[r]);
4064
+ if (Pr)
4065
+ for (var r of Pr(t))
4066
+ Oo.call(t, r) && Cr(e, r, t[r]);
4104
4067
  return e;
4105
- }, Xo = (e, t) => Go(e, jo(t));
4106
- let ur;
4107
- const wt = Ht(null);
4108
- function Dr(e) {
4068
+ }, Lo = (e, t) => Bo(e, Po(t));
4069
+ let or;
4070
+ const _t = St(null);
4071
+ function Or(e) {
4109
4072
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4110
4073
  }
4111
- function Pt(e, t = qe().fallbackLocale) {
4112
- const r = Dr(e);
4113
- return t ? [.../* @__PURE__ */ new Set([...r, ...Dr(t)])] : r;
4074
+ function Ht(e, t = ze().fallbackLocale) {
4075
+ const r = Or(e);
4076
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Or(t)])] : r;
4114
4077
  }
4115
- function Me() {
4116
- return ur != null ? ur : void 0;
4078
+ function Le() {
4079
+ return or ?? void 0;
4117
4080
  }
4118
- wt.subscribe((e) => {
4119
- ur = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4081
+ _t.subscribe((e) => {
4082
+ or = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4120
4083
  });
4121
- const zo = (e) => {
4122
- if (e && Io(e) && ar(e)) {
4123
- const { loadingDelay: t } = qe();
4084
+ const No = (e) => {
4085
+ if (e && Eo(e) && ir(e)) {
4086
+ const { loadingDelay: t } = ze();
4124
4087
  let r;
4125
- return typeof window != "undefined" && Me() != null && t ? r = window.setTimeout(
4126
- () => kt.set(!0),
4088
+ return typeof window < "u" && Le() != null && t ? r = window.setTimeout(
4089
+ () => Gt.set(!0),
4127
4090
  t
4128
- ) : kt.set(!0), xn(e).then(() => {
4129
- wt.set(e);
4091
+ ) : Gt.set(!0), bn(e).then(() => {
4092
+ _t.set(e);
4130
4093
  }).finally(() => {
4131
- clearTimeout(r), kt.set(!1);
4094
+ clearTimeout(r), Gt.set(!1);
4132
4095
  });
4133
4096
  }
4134
- return wt.set(e);
4135
- }, He = Xo(Vo({}, wt), {
4136
- set: zo
4137
- }), Ct = (e) => {
4097
+ return _t.set(e);
4098
+ }, Ae = Lo(Io({}, _t), {
4099
+ set: No
4100
+ }), Bt = (e) => {
4138
4101
  const t = /* @__PURE__ */ Object.create(null);
4139
4102
  return (n) => {
4140
4103
  const i = JSON.stringify(n);
4141
4104
  return i in t ? t[i] : t[i] = e(n);
4142
4105
  };
4143
4106
  };
4144
- var Wo = Object.defineProperty, Tt = Object.getOwnPropertySymbols, wn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, Fr = (e, t, r) => t in e ? Wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, cr = (e, t) => {
4107
+ var Mo = Object.defineProperty, xt = Object.getOwnPropertySymbols, gn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable, Ir = (e, t, r) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lr = (e, t) => {
4145
4108
  for (var r in t || (t = {}))
4146
- wn.call(t, r) && Fr(e, r, t[r]);
4147
- if (Tt)
4148
- for (var r of Tt(t))
4149
- Tn.call(t, r) && Fr(e, r, t[r]);
4109
+ gn.call(t, r) && Ir(e, r, t[r]);
4110
+ if (xt)
4111
+ for (var r of xt(t))
4112
+ yn.call(t, r) && Ir(e, r, t[r]);
4150
4113
  return e;
4151
- }, Qe = (e, t) => {
4114
+ }, Ze = (e, t) => {
4152
4115
  var r = {};
4153
4116
  for (var n in e)
4154
- wn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4155
- if (e != null && Tt)
4156
- for (var n of Tt(e))
4157
- t.indexOf(n) < 0 && Tn.call(e, n) && (r[n] = e[n]);
4117
+ gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4118
+ if (e != null && xt)
4119
+ for (var n of xt(e))
4120
+ t.indexOf(n) < 0 && yn.call(e, n) && (r[n] = e[n]);
4158
4121
  return r;
4159
4122
  };
4160
- const lt = (e, t) => {
4161
- const { formats: r } = qe();
4123
+ const at = (e, t) => {
4124
+ const { formats: r } = ze();
4162
4125
  if (e in r && t in r[e])
4163
4126
  return r[e][t];
4164
4127
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4165
- }, qo = Ct(
4128
+ }, Ro = Bt(
4166
4129
  (e) => {
4167
- var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
4130
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4168
4131
  if (r == null)
4169
4132
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4170
- return n && (i = lt("number", n)), new Intl.NumberFormat(r, i);
4133
+ return n && (i = at("number", n)), new Intl.NumberFormat(r, i);
4171
4134
  }
4172
- ), Zo = Ct(
4135
+ ), Do = Bt(
4173
4136
  (e) => {
4174
- var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
4137
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4175
4138
  if (r == null)
4176
4139
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4177
- return n ? i = lt("date", n) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(r, i);
4140
+ return n ? i = at("date", n) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(r, i);
4178
4141
  }
4179
- ), Jo = Ct(
4142
+ ), Fo = Bt(
4180
4143
  (e) => {
4181
- var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
4144
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4182
4145
  if (r == null)
4183
4146
  throw new Error(
4184
4147
  '[svelte-i18n] A "locale" must be set to format time values'
4185
4148
  );
4186
- return n ? i = lt("time", n) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(r, i);
4149
+ return n ? i = at("time", n) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(r, i);
4187
4150
  }
4188
- ), Qo = (e = {}) => {
4151
+ ), Uo = (e = {}) => {
4189
4152
  var t = e, {
4190
- locale: r = Me()
4191
- } = t, n = Qe(t, [
4153
+ locale: r = Le()
4154
+ } = t, n = Ze(t, [
4192
4155
  "locale"
4193
4156
  ]);
4194
- return qo(cr({ locale: r }, n));
4195
- }, Yo = (e = {}) => {
4157
+ return Ro(lr({ locale: r }, n));
4158
+ }, Go = (e = {}) => {
4196
4159
  var t = e, {
4197
- locale: r = Me()
4198
- } = t, n = Qe(t, [
4160
+ locale: r = Le()
4161
+ } = t, n = Ze(t, [
4199
4162
  "locale"
4200
4163
  ]);
4201
- return Zo(cr({ locale: r }, n));
4202
- }, Ko = (e = {}) => {
4164
+ return Do(lr({ locale: r }, n));
4165
+ }, jo = (e = {}) => {
4203
4166
  var t = e, {
4204
- locale: r = Me()
4205
- } = t, n = Qe(t, [
4167
+ locale: r = Le()
4168
+ } = t, n = Ze(t, [
4206
4169
  "locale"
4207
4170
  ]);
4208
- return Jo(cr({ locale: r }, n));
4209
- }, es = Ct(
4171
+ return Fo(lr({ locale: r }, n));
4172
+ }, $o = Bt(
4210
4173
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4211
- (e, t = Me()) => new Ho(e, t, qe().formats, {
4212
- ignoreTag: qe().ignoreTag
4174
+ (e, t = Le()) => new po(e, t, ze().formats, {
4175
+ ignoreTag: ze().ignoreTag
4213
4176
  })
4214
- ), ts = (e, t = {}) => {
4177
+ ), ko = (e, t = {}) => {
4215
4178
  var r, n, i, o;
4216
4179
  let s = t;
4217
4180
  typeof e == "object" && (s = e, e = s.id);
4218
4181
  const {
4219
4182
  values: a,
4220
- locale: l = Me(),
4221
- default: u
4183
+ locale: f = Le(),
4184
+ default: h
4222
4185
  } = s;
4223
- if (l == null)
4186
+ if (f == null)
4224
4187
  throw new Error(
4225
4188
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4226
4189
  );
4227
- let c = yn(e, l);
4190
+ let c = cn(e, f);
4228
4191
  if (!c)
4229
- c = (o = (i = (n = (r = qe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4192
+ c = (o = (i = (n = (r = ze()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4230
4193
  else if (typeof c != "string")
4231
4194
  return console.warn(
4232
4195
  `[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.`
@@ -4235,7 +4198,7 @@ const lt = (e, t) => {
4235
4198
  return c;
4236
4199
  let d = c;
4237
4200
  try {
4238
- d = es(c, l).format(a);
4201
+ d = $o(c, f).format(a);
4239
4202
  } catch (p) {
4240
4203
  p instanceof Error && console.warn(
4241
4204
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4243,25 +4206,25 @@ const lt = (e, t) => {
4243
4206
  );
4244
4207
  }
4245
4208
  return d;
4246
- }, rs = (e, t) => Ko(t).format(e), ns = (e, t) => Yo(t).format(e), is = (e, t) => Qo(t).format(e), os = (e, t = Me()) => yn(e, t), ss = Ze([He, Je], () => ts);
4247
- Ze([He], () => rs);
4248
- Ze([He], () => ns);
4249
- Ze([He], () => is);
4250
- Ze([He, Je], () => os);
4251
- window.emWidgets = { topic: gi };
4252
- const Ps = (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)), as = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4253
- function us({ withLocale: e, translations: t }) {
4254
- He.subscribe((r) => {
4255
- r == null && (Je.set(t), He.set(e));
4209
+ }, Vo = (e, t) => jo(t).format(e), Xo = (e, t) => Go(t).format(e), zo = (e, t) => Uo(t).format(e), Wo = (e, t = Le()) => cn(e, t), qo = We([Ae, qe], () => ko);
4210
+ We([Ae], () => Vo);
4211
+ We([Ae], () => Xo);
4212
+ We([Ae], () => zo);
4213
+ We([Ae, qe], () => Wo);
4214
+ window.emWidgets = { topic: oi };
4215
+ const gs = (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)), Zo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4216
+ function Jo({ withLocale: e, translations: t }) {
4217
+ Ae.subscribe((r) => {
4218
+ r == null && (qe.set(t), Ae.set(e));
4256
4219
  });
4257
4220
  }
4258
- function Vt(e, t) {
4259
- En(e, t);
4221
+ function jt(e, t) {
4222
+ mn(e, t);
4260
4223
  }
4261
- function Ur(e) {
4262
- He.set(e);
4224
+ function Lr(e) {
4225
+ Ae.set(e);
4263
4226
  }
4264
- const Gr = {
4227
+ const Nr = {
4265
4228
  en: {
4266
4229
  500: "500 - Internal server error",
4267
4230
  showMore: "Show more",
@@ -4329,7 +4292,7 @@ const Gr = {
4329
4292
  noTournaments: "No tournaments found"
4330
4293
  }
4331
4294
  };
4332
- var lr = { exports: {} };
4295
+ var sr = { exports: {} };
4333
4296
  /** @license
4334
4297
  * eventsource.js
4335
4298
  * Available under MIT License (MIT)
@@ -4337,22 +4300,22 @@ var lr = { exports: {} };
4337
4300
  */
4338
4301
  (function(e, t) {
4339
4302
  (function(r) {
4340
- 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, p = r.Response, _ = r.TextDecoder, O = r.TextEncoder, B = r.AbortController;
4341
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
4342
- u.readyState = "complete";
4303
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, f = r.EventSource, h = r.document, c = r.Promise, d = r.fetch, p = r.Response, _ = r.TextDecoder, O = r.TextEncoder, B = r.AbortController;
4304
+ if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(u) {
4305
+ h.readyState = "complete";
4343
4306
  }, !1)), o == null && a != null && (o = function() {
4344
4307
  return new a("Microsoft.XMLHTTP");
4345
- }), Object.create == null && (Object.create = function(h) {
4308
+ }), Object.create == null && (Object.create = function(u) {
4346
4309
  function b() {
4347
4310
  }
4348
- return b.prototype = h, new b();
4311
+ return b.prototype = u, new b();
4349
4312
  }), Date.now || (Date.now = function() {
4350
4313
  return (/* @__PURE__ */ new Date()).getTime();
4351
4314
  }), B == null) {
4352
4315
  var ee = d;
4353
- d = function(h, b) {
4316
+ d = function(u, b) {
4354
4317
  var g = b.signal;
4355
- return ee(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
4318
+ return ee(u, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
4356
4319
  var v = m.body.getReader();
4357
4320
  return g._reader = v, g._aborted && g._reader.cancel(), {
4358
4321
  status: m.status,
@@ -4374,10 +4337,10 @@ var lr = { exports: {} };
4374
4337
  };
4375
4338
  };
4376
4339
  }
4377
- function me() {
4340
+ function de() {
4378
4341
  this.bitsNeeded = 0, this.codePoint = 0;
4379
4342
  }
4380
- me.prototype.decode = function(h) {
4343
+ de.prototype.decode = function(u) {
4381
4344
  function b(C, L, E) {
4382
4345
  if (E === 1)
4383
4346
  return C >= 128 >> L && C << L <= 2047;
@@ -4396,8 +4359,8 @@ var lr = { exports: {} };
4396
4359
  return 3;
4397
4360
  throw new Error();
4398
4361
  }
4399
- for (var m = 65533, v = "", y = this.bitsNeeded, x = this.codePoint, R = 0; R < h.length; R += 1) {
4400
- var T = h[R];
4362
+ for (var m = 65533, v = "", y = this.bitsNeeded, x = this.codePoint, R = 0; R < u.length; R += 1) {
4363
+ var T = u[R];
4401
4364
  y !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, y - 6, g(y, x))) && (y = 0, x = m, v += String.fromCharCode(x)), y === 0 ? (T >= 0 && T <= 127 ? (y = 0, x = T) : T >= 192 && T <= 223 ? (y = 6 * 1, x = T & 31) : T >= 224 && T <= 239 ? (y = 6 * 2, x = T & 15) : T >= 240 && T <= 247 ? (y = 6 * 3, x = T & 7) : (y = 0, x = m), y !== 0 && !b(x, y, g(y, x)) && (y = 0, x = m)) : (y -= 6, x = x << 6 | T & 63), y === 0 && (x <= 65535 ? v += String.fromCharCode(x) : (v += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
4402
4365
  }
4403
4366
  return this.bitsNeeded = y, this.codePoint = x, v;
@@ -4405,18 +4368,18 @@ var lr = { exports: {} };
4405
4368
  var ie = function() {
4406
4369
  try {
4407
4370
  return new _().decode(new O().encode("test"), { stream: !0 }) === "test";
4408
- } catch (h) {
4409
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4371
+ } catch (u) {
4372
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + u);
4410
4373
  }
4411
4374
  return !1;
4412
4375
  };
4413
- (_ == null || O == null || !ie()) && (_ = me);
4376
+ (_ == null || O == null || !ie()) && (_ = de);
4414
4377
  var M = function() {
4415
4378
  };
4416
- function $(h) {
4417
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = M, this.onload = M, this.onerror = M, this.onreadystatechange = M, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = M;
4379
+ function $(u) {
4380
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = M, this.onload = M, this.onerror = M, this.onreadystatechange = M, this._contentType = "", this._xhr = u, this._sendTimeout = 0, this._abort = M;
4418
4381
  }
4419
- $.prototype.open = function(h, b) {
4382
+ $.prototype.open = function(u, b) {
4420
4383
  this._abort(!0);
4421
4384
  var g = this, m = this._xhr, v = 1, y = 0;
4422
4385
  this._abort = function(E) {
@@ -4424,16 +4387,16 @@ var lr = { exports: {} };
4424
4387
  };
4425
4388
  var x = function() {
4426
4389
  if (v === 1) {
4427
- var E = 0, f = "", S = void 0;
4390
+ var E = 0, l = "", S = void 0;
4428
4391
  if ("contentType" in m)
4429
- E = 200, f = "OK", S = m.contentType;
4392
+ E = 200, l = "OK", S = m.contentType;
4430
4393
  else
4431
4394
  try {
4432
- E = m.status, f = m.statusText, S = m.getResponseHeader("Content-Type");
4433
- } catch (N) {
4434
- E = 0, f = "", S = void 0;
4395
+ E = m.status, l = m.statusText, S = m.getResponseHeader("Content-Type");
4396
+ } catch {
4397
+ E = 0, l = "", S = void 0;
4435
4398
  }
4436
- E !== 0 && (v = 2, g.readyState = 2, g.status = E, g.statusText = f, g._contentType = S, g.onreadystatechange());
4399
+ E !== 0 && (v = 2, g.readyState = 2, g.status = E, g.statusText = l, g._contentType = S, g.onreadystatechange());
4437
4400
  }
4438
4401
  }, R = function() {
4439
4402
  if (x(), v === 2 || v === 3) {
@@ -4441,20 +4404,20 @@ var lr = { exports: {} };
4441
4404
  var E = "";
4442
4405
  try {
4443
4406
  E = m.responseText;
4444
- } catch (f) {
4407
+ } catch {
4445
4408
  }
4446
4409
  g.readyState = 3, g.responseText = E, g.onprogress();
4447
4410
  }
4448
- }, T = function(E, f) {
4449
- if ((f == null || f.preventDefault == null) && (f = {
4411
+ }, T = function(E, l) {
4412
+ if ((l == null || l.preventDefault == null) && (l = {
4450
4413
  preventDefault: M
4451
4414
  }), R(), v === 1 || v === 2 || v === 3) {
4452
4415
  if (v = 4, y !== 0 && (i(y), y = 0), g.readyState = 4, E === "load")
4453
- g.onload(f);
4416
+ g.onload(l);
4454
4417
  else if (E === "error")
4455
- g.onerror(f);
4418
+ g.onerror(l);
4456
4419
  else if (E === "abort")
4457
- g.onabort(f);
4420
+ g.onabort(l);
4458
4421
  else
4459
4422
  throw new TypeError();
4460
4423
  g.onreadystatechange();
@@ -4474,23 +4437,23 @@ var lr = { exports: {} };
4474
4437
  T("abort", E);
4475
4438
  }), "onprogress" in m && (m.onprogress = R), "onreadystatechange" in m && (m.onreadystatechange = function(E) {
4476
4439
  C(E);
4477
- }), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(h, b, !0), "readyState" in m && (y = n(function() {
4440
+ }), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(u, b, !0), "readyState" in m && (y = n(function() {
4478
4441
  L();
4479
4442
  }, 0));
4480
4443
  }, $.prototype.abort = function() {
4481
4444
  this._abort(!1);
4482
- }, $.prototype.getResponseHeader = function(h) {
4445
+ }, $.prototype.getResponseHeader = function(u) {
4483
4446
  return this._contentType;
4484
- }, $.prototype.setRequestHeader = function(h, b) {
4447
+ }, $.prototype.setRequestHeader = function(u, b) {
4485
4448
  var g = this._xhr;
4486
- "setRequestHeader" in g && g.setRequestHeader(h, b);
4449
+ "setRequestHeader" in g && g.setRequestHeader(u, b);
4487
4450
  }, $.prototype.getAllResponseHeaders = function() {
4488
4451
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4489
4452
  }, $.prototype.send = function() {
4490
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4491
- var h = this;
4492
- h._sendTimeout = n(function() {
4493
- h._sendTimeout = 0, h.send();
4453
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && h != null && h.readyState != null && h.readyState !== "complete") {
4454
+ var u = this;
4455
+ u._sendTimeout = n(function() {
4456
+ u._sendTimeout = 0, u.send();
4494
4457
  }, 4);
4495
4458
  return;
4496
4459
  }
@@ -4502,55 +4465,55 @@ var lr = { exports: {} };
4502
4465
  throw g;
4503
4466
  }
4504
4467
  };
4505
- function Z(h) {
4506
- return h.replace(/[A-Z]/g, function(b) {
4468
+ function Z(u) {
4469
+ return u.replace(/[A-Z]/g, function(b) {
4507
4470
  return String.fromCharCode(b.charCodeAt(0) + 32);
4508
4471
  });
4509
4472
  }
4510
- function le(h) {
4511
- for (var b = /* @__PURE__ */ Object.create(null), g = h.split(`\r
4473
+ function le(u) {
4474
+ for (var b = /* @__PURE__ */ Object.create(null), g = u.split(`\r
4512
4475
  `), m = 0; m < g.length; m += 1) {
4513
4476
  var v = g[m], y = v.split(": "), x = y.shift(), R = y.join(": ");
4514
4477
  b[Z(x)] = R;
4515
4478
  }
4516
4479
  this._map = b;
4517
4480
  }
4518
- le.prototype.get = function(h) {
4519
- return this._map[Z(h)];
4481
+ le.prototype.get = function(u) {
4482
+ return this._map[Z(u)];
4520
4483
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4521
- function ge() {
4484
+ function be() {
4522
4485
  }
4523
- ge.prototype.open = function(h, b, g, m, v, y, x) {
4524
- h.open("GET", v);
4486
+ be.prototype.open = function(u, b, g, m, v, y, x) {
4487
+ u.open("GET", v);
4525
4488
  var R = 0;
4526
- h.onprogress = function() {
4527
- var C = h.responseText, L = C.slice(R);
4489
+ u.onprogress = function() {
4490
+ var C = u.responseText, L = C.slice(R);
4528
4491
  R += L.length, g(L);
4529
- }, h.onerror = function(C) {
4492
+ }, u.onerror = function(C) {
4530
4493
  C.preventDefault(), m(new Error("NetworkError"));
4531
- }, h.onload = function() {
4494
+ }, u.onload = function() {
4532
4495
  m(null);
4533
- }, h.onabort = function() {
4496
+ }, u.onabort = function() {
4534
4497
  m(null);
4535
- }, h.onreadystatechange = function() {
4536
- if (h.readyState === o.HEADERS_RECEIVED) {
4537
- var C = h.status, L = h.statusText, E = h.getResponseHeader("Content-Type"), f = h.getAllResponseHeaders();
4538
- b(C, L, E, new le(f));
4498
+ }, u.onreadystatechange = function() {
4499
+ if (u.readyState === o.HEADERS_RECEIVED) {
4500
+ var C = u.status, L = u.statusText, E = u.getResponseHeader("Content-Type"), l = u.getAllResponseHeaders();
4501
+ b(C, L, E, new le(l));
4539
4502
  }
4540
- }, h.withCredentials = y;
4503
+ }, u.withCredentials = y;
4541
4504
  for (var T in x)
4542
- Object.prototype.hasOwnProperty.call(x, T) && h.setRequestHeader(T, x[T]);
4543
- return h.send(), h;
4505
+ Object.prototype.hasOwnProperty.call(x, T) && u.setRequestHeader(T, x[T]);
4506
+ return u.send(), u;
4544
4507
  };
4545
- function Re(h) {
4546
- this._headers = h;
4508
+ function Ne(u) {
4509
+ this._headers = u;
4547
4510
  }
4548
- Re.prototype.get = function(h) {
4549
- return this._headers.get(h);
4511
+ Ne.prototype.get = function(u) {
4512
+ return this._headers.get(u);
4550
4513
  };
4551
- function Be() {
4514
+ function He() {
4552
4515
  }
4553
- Be.prototype.open = function(h, b, g, m, v, y, x) {
4516
+ He.prototype.open = function(u, b, g, m, v, y, x) {
4554
4517
  var R = null, T = new B(), C = T.signal, L = new _();
4555
4518
  return d(v, {
4556
4519
  headers: x,
@@ -4558,11 +4521,11 @@ var lr = { exports: {} };
4558
4521
  signal: C,
4559
4522
  cache: "no-store"
4560
4523
  }).then(function(E) {
4561
- return R = E.body.getReader(), b(E.status, E.statusText, E.headers.get("Content-Type"), new Re(E.headers)), new c(function(f, S) {
4524
+ return R = E.body.getReader(), b(E.status, E.statusText, E.headers.get("Content-Type"), new Ne(E.headers)), new c(function(l, S) {
4562
4525
  var N = function() {
4563
4526
  R.read().then(function(I) {
4564
4527
  if (I.done)
4565
- f(void 0);
4528
+ l(void 0);
4566
4529
  else {
4567
4530
  var k = L.decode(I.value, { stream: !0 });
4568
4531
  g(k), N();
@@ -4580,202 +4543,202 @@ var lr = { exports: {} };
4580
4543
  m(E);
4581
4544
  }), {
4582
4545
  abort: function() {
4583
- R != null && R.cancel(), T.abort();
4546
+ R?.cancel(), T.abort();
4584
4547
  }
4585
4548
  };
4586
4549
  };
4587
- function pe() {
4550
+ function me() {
4588
4551
  this._listeners = /* @__PURE__ */ Object.create(null);
4589
4552
  }
4590
- function Pe(h) {
4553
+ function Be(u) {
4591
4554
  n(function() {
4592
- throw h;
4555
+ throw u;
4593
4556
  }, 0);
4594
4557
  }
4595
- pe.prototype.dispatchEvent = function(h) {
4596
- h.target = this;
4597
- var b = this._listeners[h.type];
4558
+ me.prototype.dispatchEvent = function(u) {
4559
+ u.target = this;
4560
+ var b = this._listeners[u.type];
4598
4561
  if (b != null)
4599
4562
  for (var g = b.length, m = 0; m < g; m += 1) {
4600
4563
  var v = b[m];
4601
4564
  try {
4602
- typeof v.handleEvent == "function" ? v.handleEvent(h) : v.call(this, h);
4565
+ typeof v.handleEvent == "function" ? v.handleEvent(u) : v.call(this, u);
4603
4566
  } catch (y) {
4604
- Pe(y);
4567
+ Be(y);
4605
4568
  }
4606
4569
  }
4607
- }, pe.prototype.addEventListener = function(h, b) {
4608
- h = String(h);
4609
- var g = this._listeners, m = g[h];
4610
- m == null && (m = [], g[h] = m);
4570
+ }, me.prototype.addEventListener = function(u, b) {
4571
+ u = String(u);
4572
+ var g = this._listeners, m = g[u];
4573
+ m == null && (m = [], g[u] = m);
4611
4574
  for (var v = !1, y = 0; y < m.length; y += 1)
4612
4575
  m[y] === b && (v = !0);
4613
4576
  v || m.push(b);
4614
- }, pe.prototype.removeEventListener = function(h, b) {
4615
- h = String(h);
4616
- var g = this._listeners, m = g[h];
4577
+ }, me.prototype.removeEventListener = function(u, b) {
4578
+ u = String(u);
4579
+ var g = this._listeners, m = g[u];
4617
4580
  if (m != null) {
4618
4581
  for (var v = [], y = 0; y < m.length; y += 1)
4619
4582
  m[y] !== b && v.push(m[y]);
4620
- v.length === 0 ? delete g[h] : g[h] = v;
4583
+ v.length === 0 ? delete g[u] : g[u] = v;
4621
4584
  }
4622
4585
  };
4623
- function te(h) {
4624
- this.type = h, this.target = void 0;
4586
+ function te(u) {
4587
+ this.type = u, this.target = void 0;
4625
4588
  }
4626
- function ft(h, b) {
4627
- te.call(this, h), this.data = b.data, this.lastEventId = b.lastEventId;
4589
+ function lt(u, b) {
4590
+ te.call(this, u), this.data = b.data, this.lastEventId = b.lastEventId;
4628
4591
  }
4629
- ft.prototype = Object.create(te.prototype);
4630
- function Ce(h, b) {
4631
- te.call(this, h), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4592
+ lt.prototype = Object.create(te.prototype);
4593
+ function Pe(u, b) {
4594
+ te.call(this, u), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4632
4595
  }
4633
- Ce.prototype = Object.create(te.prototype);
4634
- function Ye(h, b) {
4635
- te.call(this, h), this.error = b.error;
4596
+ Pe.prototype = Object.create(te.prototype);
4597
+ function Je(u, b) {
4598
+ te.call(this, u), this.error = b.error;
4636
4599
  }
4637
- Ye.prototype = Object.create(te.prototype);
4638
- var Oe = -1, W = 0, he = 1, ye = 2, oe = -1, se = 0, ve = 1, Ke = 2, be = 3, et = /^text\/event\-stream(;.*)?$/i, ct = 1e3, Ot = 18e6, tt = function(h, b) {
4639
- var g = h == null ? b : parseInt(h, 10);
4640
- return g !== g && (g = b), De(g);
4641
- }, De = function(h) {
4642
- return Math.min(Math.max(h, ct), Ot);
4643
- }, Te = function(h, b, g) {
4600
+ Je.prototype = Object.create(te.prototype);
4601
+ var Ce = -1, W = 0, he = 1, ge = 2, oe = -1, se = 0, ye = 1, Qe = 2, pe = 3, Ye = /^text\/event\-stream(;.*)?$/i, ht = 1e3, Pt = 18e6, Ke = function(u, b) {
4602
+ var g = u == null ? b : parseInt(u, 10);
4603
+ return g !== g && (g = b), Me(g);
4604
+ }, Me = function(u) {
4605
+ return Math.min(Math.max(u, ht), Pt);
4606
+ }, we = function(u, b, g) {
4644
4607
  try {
4645
- typeof b == "function" && b.call(h, g);
4608
+ typeof b == "function" && b.call(u, g);
4646
4609
  } catch (m) {
4647
- Pe(m);
4610
+ Be(m);
4648
4611
  }
4649
4612
  };
4650
- function J(h, b) {
4651
- 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, dt(this, h, b);
4613
+ function J(u, b) {
4614
+ 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, ft(this, u, b);
4652
4615
  }
4653
- function It() {
4616
+ function Ct() {
4654
4617
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4655
4618
  }
4656
- var Lt = d != null && p != null && "body" in p.prototype;
4657
- function dt(h, b, g) {
4619
+ var Ot = d != null && p != null && "body" in p.prototype;
4620
+ function ft(u, b, g) {
4658
4621
  b = String(b);
4659
- var m = !!g.withCredentials, v = g.lastEventIdQueryParameterName || "lastEventId", y = De(1e3), x = tt(g.heartbeatTimeout, 45e3), R = "", T = y, C = !1, L = 0, E = g.headers || {}, f = g.Transport, S = Lt && f == null ? void 0 : new $(f != null ? new f() : It()), N = f != null && typeof f != "string" ? new f() : S == null ? new Be() : new ge(), I = void 0, k = 0, q = Oe, Se = "", rt = "", G = "", mt = "", Q = se, Nt = 0, Ie = 0, An = function(V, j, ae, ue) {
4622
+ var m = !!g.withCredentials, v = g.lastEventIdQueryParameterName || "lastEventId", y = Me(1e3), x = Ke(g.heartbeatTimeout, 45e3), R = "", T = y, C = !1, L = 0, E = g.headers || {}, l = g.Transport, S = Ot && l == null ? void 0 : new $(l != null ? new l() : Ct()), N = l != null && typeof l != "string" ? new l() : S == null ? new He() : new be(), I = void 0, k = 0, q = Ce, Te = "", et = "", G = "", ct = "", Q = se, It = 0, Oe = 0, vn = function(V, j, ae, ue) {
4660
4623
  if (q === W)
4661
- if (V === 200 && ae != null && et.test(ae)) {
4662
- q = he, C = Date.now(), T = y, h.readyState = he;
4663
- var Y = new Ce("open", {
4624
+ if (V === 200 && ae != null && Ye.test(ae)) {
4625
+ q = he, C = Date.now(), T = y, u.readyState = he;
4626
+ var Y = new Pe("open", {
4664
4627
  status: V,
4665
4628
  statusText: j,
4666
4629
  headers: ue
4667
4630
  });
4668
- h.dispatchEvent(Y), Te(h, h.onopen, Y);
4631
+ u.dispatchEvent(Y), we(u, u.onopen, Y);
4669
4632
  } else {
4670
4633
  var X = "";
4671
- 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.", Mt();
4672
- var Y = new Ce("error", {
4634
+ 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.", Lt();
4635
+ var Y = new Pe("error", {
4673
4636
  status: V,
4674
4637
  statusText: j,
4675
4638
  headers: ue
4676
4639
  });
4677
- h.dispatchEvent(Y), Te(h, h.onerror, Y), console.error(X);
4640
+ u.dispatchEvent(Y), we(u, u.onerror, Y), console.error(X);
4678
4641
  }
4679
- }, Hn = function(V) {
4642
+ }, En = function(V) {
4680
4643
  if (q === he) {
4681
4644
  for (var j = -1, ae = 0; ae < V.length; ae += 1) {
4682
4645
  var ue = V.charCodeAt(ae);
4683
4646
  (ue === 10 || ue === 13) && (j = ae);
4684
4647
  }
4685
- var Y = (j !== -1 ? mt : "") + V.slice(0, j + 1);
4686
- mt = (j === -1 ? mt : "") + V.slice(j + 1), V !== "" && (C = Date.now(), L += V.length);
4648
+ var Y = (j !== -1 ? ct : "") + V.slice(0, j + 1);
4649
+ ct = (j === -1 ? ct : "") + V.slice(j + 1), V !== "" && (C = Date.now(), L += V.length);
4687
4650
  for (var X = 0; X < Y.length; X += 1) {
4688
4651
  var ue = Y.charCodeAt(X);
4689
4652
  if (Q === oe && ue === 10)
4690
4653
  Q = se;
4691
4654
  else if (Q === oe && (Q = se), ue === 13 || ue === 10) {
4692
4655
  if (Q !== se) {
4693
- Q === ve && (Ie = X + 1);
4694
- var Ee = Y.slice(Nt, Ie - 1), _e = Y.slice(Ie + (Ie < X && Y.charCodeAt(Ie) === 32 ? 1 : 0), X);
4695
- Ee === "data" ? (Se += `
4696
- `, Se += _e) : Ee === "id" ? rt = _e : Ee === "event" ? G = _e : Ee === "retry" ? (y = tt(_e, y), T = y) : Ee === "heartbeatTimeout" && (x = tt(_e, x), k !== 0 && (i(k), k = n(function() {
4697
- nt();
4656
+ Q === ye && (Oe = X + 1);
4657
+ var ve = Y.slice(It, Oe - 1), Ee = Y.slice(Oe + (Oe < X && Y.charCodeAt(Oe) === 32 ? 1 : 0), X);
4658
+ ve === "data" ? (Te += `
4659
+ `, Te += Ee) : ve === "id" ? et = Ee : ve === "event" ? G = Ee : ve === "retry" ? (y = Ke(Ee, y), T = y) : ve === "heartbeatTimeout" && (x = Ke(Ee, x), k !== 0 && (i(k), k = n(function() {
4660
+ tt();
4698
4661
  }, x)));
4699
4662
  }
4700
4663
  if (Q === se) {
4701
- if (Se !== "") {
4702
- R = rt, G === "" && (G = "message");
4703
- var Ue = new ft(G, {
4704
- data: Se.slice(1),
4705
- lastEventId: rt
4664
+ if (Te !== "") {
4665
+ R = et, G === "" && (G = "message");
4666
+ var De = new lt(G, {
4667
+ data: Te.slice(1),
4668
+ lastEventId: et
4706
4669
  });
4707
- 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 === ye)
4670
+ if (u.dispatchEvent(De), G === "open" ? we(u, u.onopen, De) : G === "message" ? we(u, u.onmessage, De) : G === "error" && we(u, u.onerror, De), q === ge)
4708
4671
  return;
4709
4672
  }
4710
- Se = "", G = "";
4673
+ Te = "", G = "";
4711
4674
  }
4712
4675
  Q = ue === 13 ? oe : se;
4713
4676
  } else
4714
- Q === se && (Nt = X, Q = ve), Q === ve ? ue === 58 && (Ie = X + 1, Q = Ke) : Q === Ke && (Q = be);
4677
+ Q === se && (It = X, Q = ye), Q === ye ? ue === 58 && (Oe = X + 1, Q = Qe) : Q === Qe && (Q = pe);
4715
4678
  }
4716
4679
  }
4717
- }, dr = function(V) {
4680
+ }, hr = function(V) {
4718
4681
  if (q === he || q === W) {
4719
- q = Oe, k !== 0 && (i(k), k = 0), k = n(function() {
4720
- nt();
4721
- }, T), T = De(Math.min(y * 16, T * 2)), h.readyState = W;
4722
- var j = new Ye("error", { error: V });
4723
- h.dispatchEvent(j), Te(h, h.onerror, j), V != null && console.error(V);
4682
+ q = Ce, k !== 0 && (i(k), k = 0), k = n(function() {
4683
+ tt();
4684
+ }, T), T = Me(Math.min(y * 16, T * 2)), u.readyState = W;
4685
+ var j = new Je("error", { error: V });
4686
+ u.dispatchEvent(j), we(u, u.onerror, j), V != null && console.error(V);
4724
4687
  }
4725
- }, Mt = function() {
4726
- q = ye, I != null && (I.abort(), I = void 0), k !== 0 && (i(k), k = 0), h.readyState = ye;
4727
- }, nt = function() {
4728
- if (k = 0, q !== Oe) {
4688
+ }, Lt = function() {
4689
+ q = ge, I != null && (I.abort(), I = void 0), k !== 0 && (i(k), k = 0), u.readyState = ge;
4690
+ }, tt = function() {
4691
+ if (k = 0, q !== Ce) {
4729
4692
  if (!C && I != null)
4730
- dr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
4693
+ hr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
4731
4694
  else {
4732
4695
  var V = Math.max((C || Date.now()) + x - Date.now(), 1);
4733
4696
  C = !1, k = n(function() {
4734
- nt();
4697
+ tt();
4735
4698
  }, V);
4736
4699
  }
4737
4700
  return;
4738
4701
  }
4739
4702
  C = !1, L = 0, k = n(function() {
4740
- nt();
4741
- }, x), q = W, Se = "", G = "", rt = R, mt = "", Nt = 0, Ie = 0, Q = se;
4703
+ tt();
4704
+ }, x), q = W, Te = "", G = "", et = R, ct = "", It = 0, Oe = 0, Q = se;
4742
4705
  var j = b;
4743
4706
  if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && R !== "") {
4744
4707
  var ae = b.indexOf("?");
4745
- j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Ue) {
4746
- return Ue === v ? "" : _e;
4708
+ j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, De) {
4709
+ return De === v ? "" : Ee;
4747
4710
  }), j += (b.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(R);
4748
4711
  }
4749
- var ue = h.withCredentials, Y = {};
4712
+ var ue = u.withCredentials, Y = {};
4750
4713
  Y.Accept = "text/event-stream";
4751
- var X = h.headers;
4714
+ var X = u.headers;
4752
4715
  if (X != null)
4753
- for (var Ee in X)
4754
- Object.prototype.hasOwnProperty.call(X, Ee) && (Y[Ee] = X[Ee]);
4716
+ for (var ve in X)
4717
+ Object.prototype.hasOwnProperty.call(X, ve) && (Y[ve] = X[ve]);
4755
4718
  try {
4756
- I = N.open(S, An, Hn, dr, j, ue, Y);
4757
- } catch (_e) {
4758
- throw Mt(), _e;
4719
+ I = N.open(S, vn, En, hr, j, ue, Y);
4720
+ } catch (Ee) {
4721
+ throw Lt(), Ee;
4759
4722
  }
4760
4723
  };
4761
- h.url = b, h.readyState = W, h.withCredentials = m, h.headers = E, h._close = Mt, nt();
4724
+ u.url = b, u.readyState = W, u.withCredentials = m, u.headers = E, u._close = Lt, tt();
4762
4725
  }
4763
- J.prototype = Object.create(pe.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ye, J.prototype.close = function() {
4726
+ J.prototype = Object.create(me.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ge, J.prototype.close = function() {
4764
4727
  this._close();
4765
- }, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ye, J.prototype.withCredentials = void 0;
4766
- var Fe = l;
4767
- o != null && (l == null || !("withCredentials" in l.prototype)) && (Fe = J), function(h) {
4728
+ }, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ge, J.prototype.withCredentials = void 0;
4729
+ var Re = f;
4730
+ o != null && (f == null || !("withCredentials" in f.prototype)) && (Re = J), function(u) {
4768
4731
  {
4769
- var b = h(t);
4732
+ var b = u(t);
4770
4733
  b !== void 0 && (e.exports = b);
4771
4734
  }
4772
- }(function(h) {
4773
- h.EventSourcePolyfill = J, h.NativeEventSource = l, h.EventSource = Fe;
4735
+ }(function(u) {
4736
+ u.EventSourcePolyfill = J, u.NativeEventSource = f, u.EventSource = Re;
4774
4737
  });
4775
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : vi : globalThis);
4776
- })(lr, lr.exports);
4777
- var ls = lr.exports;
4778
- if (typeof window != "undefined") {
4738
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ai : globalThis);
4739
+ })(sr, sr.exports);
4740
+ var Qo = sr.exports;
4741
+ if (typeof window < "u") {
4779
4742
  let e = function(t) {
4780
4743
  return function(...r) {
4781
4744
  try {
@@ -4787,11 +4750,11 @@ if (typeof window != "undefined") {
4787
4750
  }
4788
4751
  };
4789
4752
  };
4790
- customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-DLpCI6AW.js").then(({ default: t }) => {
4753
+ customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-crq752J3.js").then(({ default: t }) => {
4791
4754
  !customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
4792
4755
  });
4793
4756
  }
4794
- if (typeof window != "undefined") {
4757
+ if (typeof window < "u") {
4795
4758
  let e = function(t) {
4796
4759
  return function(...r) {
4797
4760
  try {
@@ -4803,64 +4766,64 @@ if (typeof window != "undefined") {
4803
4766
  }
4804
4767
  };
4805
4768
  };
4806
- customElements.define = e(customElements.define), import("./CasinoTournamentsListController-CkqQPCZb.js").then(({ default: t }) => {
4769
+ customElements.define = e(customElements.define), import("./CasinoTournamentsListController-BHaCpLNs.js").then(({ default: t }) => {
4807
4770
  !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
4808
4771
  });
4809
4772
  }
4810
- const jr = (e) => e.length > 0 && e != "false";
4811
- function hs(e) {
4812
- Mn(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}");
4773
+ const Mr = (e) => e.length > 0 && e != "false";
4774
+ function Yo(e) {
4775
+ wn(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}");
4813
4776
  }
4814
- function fs(e) {
4777
+ function Ko(e) {
4815
4778
  let t, r, n, i, o, s, a = (
4816
4779
  /*filtersLoaded*/
4817
- e[19] && $r(e)
4780
+ e[19] && Rr(e)
4818
4781
  );
4819
- function l(p, _) {
4782
+ function f(p, _) {
4820
4783
  return (
4821
4784
  /*tournamentsNumber*/
4822
- p[20] == 0 ? ms : ds
4785
+ p[20] == 0 ? rs : ts
4823
4786
  );
4824
4787
  }
4825
- let u = l(e), c = u(e), d = !/*allTournamentsShown*/
4826
- e[21] && kr(e);
4788
+ let h = f(e), c = h(e), d = !/*allTournamentsShown*/
4789
+ e[21] && Dr(e);
4827
4790
  return {
4828
4791
  c() {
4829
- t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = Xt(), o = z("div"), c.c(), s = Xt(), 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");
4792
+ t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = $t(), o = z("div"), c.c(), s = $t(), 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");
4830
4793
  },
4831
4794
  m(p, _) {
4832
- de(p, t, _), 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);
4795
+ ce(p, t, _), 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);
4833
4796
  },
4834
4797
  p(p, _) {
4835
4798
  /*filtersLoaded*/
4836
- p[19] ? a ? a.p(p, _) : (a = $r(p), a.c(), a.m(n, null)) : a && (a.d(1), a = null), u === (u = l(p)) && c ? c.p(p, _) : (c.d(1), c = u(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4837
- p[21] ? d && (d.d(1), d = null) : d ? d.p(p, _) : (d = kr(p), d.c(), d.m(r, null));
4799
+ p[19] ? a ? a.p(p, _) : (a = Rr(p), a.c(), a.m(n, null)) : a && (a.d(1), a = null), h === (h = f(p)) && c ? c.p(p, _) : (c.d(1), c = h(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4800
+ p[21] ? d && (d.d(1), d = null) : d ? d.p(p, _) : (d = Dr(p), d.c(), d.m(r, null));
4838
4801
  },
4839
4802
  d(p) {
4840
4803
  p && ne(t), a && a.d(), c.d(), d && d.d();
4841
4804
  }
4842
4805
  };
4843
4806
  }
4844
- function cs(e) {
4807
+ function es(e) {
4845
4808
  let t, r = (
4846
4809
  /*$_*/
4847
4810
  e[22]("500") + ""
4848
4811
  ), n, i, o, s;
4849
4812
  return {
4850
4813
  c() {
4851
- t = z("p"), n = Ne(r), i = Xt(), o = z("p"), s = Ne(
4814
+ t = z("p"), n = Ie(r), i = $t(), o = z("p"), s = Ie(
4852
4815
  /*error*/
4853
4816
  e[17]
4854
4817
  );
4855
4818
  },
4856
- m(a, l) {
4857
- de(a, t, l), re(t, n), de(a, i, l), de(a, o, l), re(o, s);
4819
+ m(a, f) {
4820
+ ce(a, t, f), re(t, n), ce(a, i, f), ce(a, o, f), re(o, s);
4858
4821
  },
4859
- p(a, l) {
4860
- l[0] & /*$_*/
4822
+ p(a, f) {
4823
+ f[0] & /*$_*/
4861
4824
  4194304 && r !== (r = /*$_*/
4862
- a[22]("500") + "") && st(n, r), l[0] & /*error*/
4863
- 131072 && st(
4825
+ a[22]("500") + "") && it(n, r), f[0] & /*error*/
4826
+ 131072 && it(
4864
4827
  s,
4865
4828
  /*error*/
4866
4829
  a[17]
@@ -4871,7 +4834,7 @@ function cs(e) {
4871
4834
  }
4872
4835
  };
4873
4836
  }
4874
- function $r(e) {
4837
+ function Rr(e) {
4875
4838
  let t;
4876
4839
  return {
4877
4840
  c() {
@@ -4890,7 +4853,7 @@ function $r(e) {
4890
4853
  "translationurl",
4891
4854
  /*translationurl*/
4892
4855
  e[4]
4893
- ), w(t, "filters", ys), w(
4856
+ ), w(t, "filters", ss), w(
4894
4857
  t,
4895
4858
  "activefilters",
4896
4859
  /*filters*/
@@ -4898,7 +4861,7 @@ function $r(e) {
4898
4861
  ), w(t, "exportparts", "FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem");
4899
4862
  },
4900
4863
  m(r, n) {
4901
- de(r, t, n);
4864
+ ce(r, t, n);
4902
4865
  },
4903
4866
  p(r, n) {
4904
4867
  n[0] & /*clientstyling*/
@@ -4932,7 +4895,7 @@ function $r(e) {
4932
4895
  }
4933
4896
  };
4934
4897
  }
4935
- function ds(e) {
4898
+ function ts(e) {
4936
4899
  let t;
4937
4900
  return {
4938
4901
  c() {
@@ -5012,7 +4975,7 @@ function ds(e) {
5012
4975
  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`);
5013
4976
  },
5014
4977
  m(r, n) {
5015
- de(r, t, n);
4978
+ ce(r, t, n);
5016
4979
  },
5017
4980
  p(r, n) {
5018
4981
  n[0] & /*clientstyling*/
@@ -5106,21 +5069,21 @@ function ds(e) {
5106
5069
  }
5107
5070
  };
5108
5071
  }
5109
- function ms(e) {
5072
+ function rs(e) {
5110
5073
  let t;
5111
5074
  function r(o, s) {
5112
5075
  return (
5113
5076
  /*isLoading*/
5114
- o[18] ? bs : ps
5077
+ o[18] ? is : ns
5115
5078
  );
5116
5079
  }
5117
5080
  let n = r(e), i = n(e);
5118
5081
  return {
5119
5082
  c() {
5120
- i.c(), t = Fn();
5083
+ i.c(), t = An();
5121
5084
  },
5122
5085
  m(o, s) {
5123
- i.m(o, s), de(o, t, s);
5086
+ i.m(o, s), ce(o, t, s);
5124
5087
  },
5125
5088
  p(o, s) {
5126
5089
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
@@ -5130,83 +5093,83 @@ function ms(e) {
5130
5093
  }
5131
5094
  };
5132
5095
  }
5133
- function ps(e) {
5096
+ function ns(e) {
5134
5097
  let t, r = (
5135
5098
  /*$_*/
5136
5099
  e[22]("noTournaments") + ""
5137
5100
  ), n;
5138
5101
  return {
5139
5102
  c() {
5140
- t = z("p"), n = Ne(r), U(t, "class", "NoTournaments"), U(t, "part", "NoTournaments");
5103
+ t = z("p"), n = Ie(r), U(t, "class", "NoTournaments"), U(t, "part", "NoTournaments");
5141
5104
  },
5142
5105
  m(i, o) {
5143
- de(i, t, o), re(t, n);
5106
+ ce(i, t, o), re(t, n);
5144
5107
  },
5145
5108
  p(i, o) {
5146
5109
  o[0] & /*$_*/
5147
5110
  4194304 && r !== (r = /*$_*/
5148
- i[22]("noTournaments") + "") && st(n, r);
5111
+ i[22]("noTournaments") + "") && it(n, r);
5149
5112
  },
5150
5113
  d(i) {
5151
5114
  i && ne(t);
5152
5115
  }
5153
5116
  };
5154
5117
  }
5155
- function bs(e) {
5118
+ function is(e) {
5156
5119
  let t, r = (
5157
5120
  /*$_*/
5158
5121
  e[22]("loading") + ""
5159
5122
  ), n;
5160
5123
  return {
5161
5124
  c() {
5162
- t = z("p"), n = Ne(r), U(t, "class", "LoadingMessage"), U(t, "part", "LoadingMessage");
5125
+ t = z("p"), n = Ie(r), U(t, "class", "LoadingMessage"), U(t, "part", "LoadingMessage");
5163
5126
  },
5164
5127
  m(i, o) {
5165
- de(i, t, o), re(t, n);
5128
+ ce(i, t, o), re(t, n);
5166
5129
  },
5167
5130
  p(i, o) {
5168
5131
  o[0] & /*$_*/
5169
5132
  4194304 && r !== (r = /*$_*/
5170
- i[22]("loading") + "") && st(n, r);
5133
+ i[22]("loading") + "") && it(n, r);
5171
5134
  },
5172
5135
  d(i) {
5173
5136
  i && ne(t);
5174
5137
  }
5175
5138
  };
5176
5139
  }
5177
- function kr(e) {
5140
+ function Dr(e) {
5178
5141
  let t, r, n, i = (
5179
5142
  /*$_*/
5180
5143
  e[22]("showMore") + ""
5181
5144
  ), o, s, a;
5182
5145
  return {
5183
5146
  c() {
5184
- 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");
5147
+ t = z("div"), r = z("div"), n = z("button"), o = Ie(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");
5185
5148
  },
5186
- m(l, u) {
5187
- de(l, t, u), re(t, r), re(r, n), re(n, o), s || (a = zt(
5149
+ m(f, h) {
5150
+ ce(f, t, h), re(t, r), re(r, n), re(n, o), s || (a = kt(
5188
5151
  n,
5189
5152
  "click",
5190
5153
  /*click_handler*/
5191
5154
  e[32]
5192
5155
  ), s = !0);
5193
5156
  },
5194
- p(l, u) {
5195
- u[0] & /*$_*/
5157
+ p(f, h) {
5158
+ h[0] & /*$_*/
5196
5159
  4194304 && i !== (i = /*$_*/
5197
- l[22]("showMore") + "") && st(o, i);
5160
+ f[22]("showMore") + "") && it(o, i);
5198
5161
  },
5199
- d(l) {
5200
- l && ne(t), s = !1, a();
5162
+ d(f) {
5163
+ f && ne(t), s = !1, a();
5201
5164
  }
5202
5165
  };
5203
5166
  }
5204
- function gs(e) {
5167
+ function os(e) {
5205
5168
  let t;
5206
5169
  function r(o, s) {
5207
5170
  return (
5208
5171
  /*hasErrors*/
5209
- o[16] ? cs : fs
5172
+ o[16] ? es : Ko
5210
5173
  );
5211
5174
  }
5212
5175
  let n = r(e), i = n(e);
@@ -5215,45 +5178,45 @@ function gs(e) {
5215
5178
  t = z("div"), i.c();
5216
5179
  },
5217
5180
  m(o, s) {
5218
- de(o, t, s), i.m(t, null), e[33](t);
5181
+ ce(o, t, s), i.m(t, null), e[33](t);
5219
5182
  },
5220
5183
  p(o, s) {
5221
5184
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
5222
5185
  },
5223
- i: ce,
5224
- o: ce,
5186
+ i: fe,
5187
+ o: fe,
5225
5188
  d(o) {
5226
5189
  o && ne(t), i.d(), e[33](null);
5227
5190
  }
5228
5191
  };
5229
5192
  }
5230
- let ys = "All,Scheduled,Ongoing,Finished";
5231
- function vs(e, t, r) {
5193
+ let ss = "All,Scheduled,Ongoing,Finished";
5194
+ function as(e, t, r) {
5232
5195
  let n;
5233
- Nn(e, ss, (f) => r(22, n = f));
5234
- 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: p = "" } = t, { registerevent: _ = "" } = t, { loginurl: O = "" } = t, { registerurl: B = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: me = "false" } = t, { sorttype: ie = "" } = t, { sortorder: M = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: ge = "" } = t, { delaybeforeload: Re = 1e3 } = t, Be = !1, pe = "", Pe = !1, te = "", ft = window.navigator.userAgent, Ce = !0, Ye = !1, Oe = !1, W, he = 0, ye = !1, oe = 6, se = !0, ve = [], Ke, be, et = !1, ct;
5235
- us({ withLocale: "en", translations: {} });
5236
- const Ot = () => {
5237
- fetch(l).then((S) => S.json()).then((S) => {
5238
- ct = S, Object.keys(S).forEach((N) => {
5239
- Vt(N, S[N]);
5196
+ xn(e, qo, (l) => r(22, n = l));
5197
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: f = "" } = t, { numberoftournaments: h = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: p = "" } = t, { registerevent: _ = "" } = t, { loginurl: O = "" } = t, { registerurl: B = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: de = "false" } = t, { sorttype: ie = "" } = t, { sortorder: M = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: be = "" } = t, { delaybeforeload: Ne = 1e3 } = t, He = !1, me = "", Be = !1, te = "", lt = window.navigator.userAgent, Pe = !0, Je = !1, Ce = !1, W, he = 0, ge = !1, oe = 6, se = !0, ye = [], Qe, pe, Ye = !1, ht;
5198
+ Jo({ withLocale: "en", translations: {} });
5199
+ const Pt = () => {
5200
+ fetch(f).then((S) => S.json()).then((S) => {
5201
+ ht = S, Object.keys(S).forEach((N) => {
5202
+ jt(N, S[N]);
5240
5203
  });
5241
5204
  }).catch((S) => {
5242
5205
  console.log(S);
5243
5206
  });
5244
- }, tt = (f) => {
5245
- f && Object.keys(f).forEach((S) => {
5246
- Vt(S, f[S]);
5207
+ }, Ke = (l) => {
5208
+ l && Object.keys(l).forEach((S) => {
5209
+ jt(S, l[S]);
5247
5210
  });
5248
5211
  };
5249
- Object.keys(Gr).forEach((f) => {
5250
- Vt(f, Gr[f]);
5212
+ Object.keys(Nr).forEach((l) => {
5213
+ jt(l, Nr[l]);
5251
5214
  });
5252
- const De = (f) => {
5253
- f.data && f.data.type === "UserSessionID" && (Pe = !0, r(30, te = f.data.session), f.data.userid, J(s, 0, oe)), f.data && f.data.type === "TournamentsFiltersSelected" && (ve = f.data.filters, J(s, 0, oe)), f.data && f.data.type === "TournamentThumbnailMounted" && tt(ct);
5254
- }, Te = (f) => f == "Scheduled" ? "Unstarted" : f == "Ongoing" ? "Running" : "Closing|Closed", J = (f, S, N) => Le(this, null, function* () {
5255
- r(18, Ce = !0), r(20, he = 0);
5256
- const I = yield dt(f, S, N);
5215
+ const Me = (l) => {
5216
+ l.data && l.data.type === "UserSessionID" && (Be = !0, r(30, te = l.data.session), l.data.userid, J(s, 0, oe)), l.data && l.data.type === "TournamentsFiltersSelected" && (ye = l.data.filters, J(s, 0, oe)), l.data && l.data.type === "TournamentThumbnailMounted" && Ke(ht);
5217
+ }, we = (l) => l == "Scheduled" ? "Unstarted" : l == "Ongoing" ? "Running" : "Closing|Closed", J = async (l, S, N) => {
5218
+ r(18, Pe = !0), r(20, he = 0);
5219
+ const I = await ft(l, S, N);
5257
5220
  setTimeout(
5258
5221
  () => {
5259
5222
  window.postMessage(
@@ -5265,9 +5228,9 @@ function vs(e, t, r) {
5265
5228
  );
5266
5229
  },
5267
5230
  50
5268
- ), r(18, Ce = !1);
5269
- }), It = (f, S, N) => Le(this, null, function* () {
5270
- const I = yield dt(f, S, N);
5231
+ ), r(18, Pe = !1);
5232
+ }, Ct = async (l, S, N) => {
5233
+ const I = await ft(l, S, N);
5271
5234
  window.postMessage(
5272
5235
  {
5273
5236
  type: "TournamentListShowMore",
@@ -5275,24 +5238,24 @@ function vs(e, t, r) {
5275
5238
  },
5276
5239
  window.location.href
5277
5240
  );
5278
- }), Lt = () => {
5279
- const f = /* @__PURE__ */ new Date();
5280
- return $ ? f.setDate(f.getDate() - Number($)) : f.setMonth(f.getMonth() - 1), f.toISOString().substring(0, 10);
5281
- }, dt = (f, S, N) => Le(this, null, function* () {
5282
- let I = new URL(`${f}/v1/tournaments`), k = new Headers();
5241
+ }, Ot = () => {
5242
+ const l = /* @__PURE__ */ new Date();
5243
+ return $ ? l.setDate(l.getDate() - Number($)) : l.setMonth(l.getMonth() - 1), l.toISOString().substring(0, 10);
5244
+ }, ft = async (l, S, N) => {
5245
+ let I = new URL(`${l}/v1/tournaments`), k = new Headers();
5283
5246
  I.searchParams.append("pagination", `offset=${S},limit=${N}`), I.searchParams.append("sortField", "StartTime"), I.searchParams.append("sortOrder", M || "desc"), I.searchParams.append("language", a);
5284
- const q = { StartTimeAfter: Lt() };
5285
- !jr(i) && Z === "false" && (q.tags = "no-role-set"), ve.length > 0 && ve[0] != "All" && (q.state = ve.map((G) => Te(G)).join("|"));
5286
- const Se = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
5287
- return I.searchParams.append("filter", Se), I.searchParams.append("platform", as(ft)), ie && I.searchParams.append("sortType", ie), Pe && k.append("X-SessionID", te), fetch(I, {
5247
+ const q = { StartTimeAfter: Ot() };
5248
+ !Mr(i) && Z === "false" && (q.tags = "no-role-set"), ye.length > 0 && ye[0] != "All" && (q.state = ye.map((G) => we(G)).join("|"));
5249
+ const Te = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
5250
+ return I.searchParams.append("filter", Te), I.searchParams.append("platform", Zo(lt)), ie && I.searchParams.append("sortType", ie), Be && k.append("X-SessionID", te), fetch(I, {
5288
5251
  method: "GET",
5289
5252
  headers: k,
5290
5253
  cache: "no-cache"
5291
- }).then((G) => G.json()).then((G) => (Ke = I.searchParams.toString(), r(20, he = G.total), oe >= he ? r(21, se = !0) : r(21, se = !1), Oe || h(), G));
5292
- }), Fe = (f) => {
5293
- if (f.type != "message")
5254
+ }).then((G) => G.json()).then((G) => (Qe = I.searchParams.toString(), r(20, he = G.total), oe >= he ? r(21, se = !0) : r(21, se = !1), Ce || u(), G));
5255
+ }, Re = (l) => {
5256
+ if (l.type != "message")
5294
5257
  return;
5295
- let S = f.data;
5258
+ let S = l.data;
5296
5259
  if (S)
5297
5260
  try {
5298
5261
  let N = JSON.parse(S);
@@ -5315,25 +5278,25 @@ function vs(e, t, r) {
5315
5278
  } catch (N) {
5316
5279
  console.error(N);
5317
5280
  }
5318
- }, h = () => {
5319
- Oe = !0, setTimeout(
5281
+ }, u = () => {
5282
+ Ce = !0, setTimeout(
5320
5283
  () => {
5321
- Oe = !1;
5284
+ Ce = !1;
5322
5285
  },
5323
5286
  1e3
5324
- ), be && (be.removeEventListener("message", Fe), be.close());
5325
- let f = `${s}/v1/tournaments/updates?${Ke}`;
5326
- be = new ls.EventSourcePolyfill(
5327
- f,
5287
+ ), pe && (pe.removeEventListener("message", Re), pe.close());
5288
+ let l = `${s}/v1/tournaments/updates?${Qe}`;
5289
+ pe = new Qo.EventSourcePolyfill(
5290
+ l,
5328
5291
  {
5329
5292
  headers: {
5330
5293
  accept: "text/event-stream",
5331
5294
  "X-SessionId": i
5332
5295
  }
5333
5296
  }
5334
- ), typeof be != "undefined" && be.addEventListener("message", Fe);
5335
- }, b = () => Le(this, null, function* () {
5336
- let f = oe;
5297
+ ), typeof pe < "u" && pe.addEventListener("message", Re);
5298
+ }, b = async () => {
5299
+ let l = oe;
5337
5300
  const S = parseInt(c, 10);
5338
5301
  oe += S, window.postMessage(
5339
5302
  {
@@ -5342,24 +5305,24 @@ function vs(e, t, r) {
5342
5305
  limit: oe
5343
5306
  },
5344
5307
  window.location.href
5345
- ), yield It(s, f, S), oe >= he && r(21, se = !0);
5346
- }), g = () => (s || (r(17, pe = "Endpoint is missing! Please provide a valid endpointURL."), r(16, Be = !0), console.error(pe)), (!a || a.length != 2) && (r(17, pe = "Language is missing! Please provide a valid language (alpha2code)"), r(16, Be = !0), console.error(pe)), Be), m = () => {
5347
- if (!ye) return !1;
5348
- g() || (oe = parseInt(u, 10), Ur(a), J(s, 0, oe));
5308
+ ), await Ct(s, l, S), oe >= he && r(21, se = !0);
5309
+ }, g = () => (s || (r(17, me = "Endpoint is missing! Please provide a valid endpointURL."), r(16, He = !0), console.error(me)), (!a || a.length != 2) && (r(17, me = "Language is missing! Please provide a valid language (alpha2code)"), r(16, He = !0), console.error(me)), He), m = () => {
5310
+ if (!ge) return !1;
5311
+ g() || (oe = parseInt(h, 10), Lr(a), J(s, 0, oe));
5349
5312
  }, v = () => {
5350
- Ur(a);
5313
+ Lr(a);
5351
5314
  }, y = () => {
5352
- ve = d.split(","), r(19, Ye = !0);
5315
+ ye = d.split(","), r(19, Je = !0);
5353
5316
  }, x = () => {
5354
- jr(i) ? (Pe = !0, r(30, te = i)) : (Pe = !1, r(30, te = ""));
5355
- }, R = () => Le(this, null, function* () {
5356
- et || (et = !0, yield m(), et = !1);
5357
- }), T = () => {
5358
- let f = document.createElement("style");
5359
- f.innerHTML = le, W.appendChild(f);
5317
+ Mr(i) ? (Be = !0, r(30, te = i)) : (Be = !1, r(30, te = ""));
5318
+ }, R = async () => {
5319
+ Ye || (Ye = !0, await m(), Ye = !1);
5320
+ }, T = () => {
5321
+ let l = document.createElement("style");
5322
+ l.innerHTML = le, W.appendChild(l);
5360
5323
  }, C = () => {
5361
- let f = new URL(ge), S = document.createElement("style");
5362
- fetch(f.href).then((N) => N.text()).then((N) => {
5324
+ let l = new URL(be), S = document.createElement("style");
5325
+ fetch(l.href).then((N) => N.text()).then((N) => {
5363
5326
  S.innerHTML = N, setTimeout(
5364
5327
  () => {
5365
5328
  W.appendChild(S);
@@ -5372,55 +5335,55 @@ function vs(e, t, r) {
5372
5335
  );
5373
5336
  });
5374
5337
  };
5375
- kn(() => (setTimeout(
5338
+ On(() => (setTimeout(
5376
5339
  () => {
5377
- r(31, ye = !0);
5340
+ r(31, ge = !0);
5378
5341
  },
5379
- Re
5380
- ), window.addEventListener("message", De, !1), () => {
5381
- window.removeEventListener("message", De), be && (be.removeEventListener("message", Fe), be.close());
5342
+ Ne
5343
+ ), window.addEventListener("message", Me, !1), () => {
5344
+ window.removeEventListener("message", Me), pe && (pe.removeEventListener("message", Re), pe.close());
5382
5345
  }));
5383
5346
  const L = () => b();
5384
- function E(f) {
5385
- Wt[f ? "unshift" : "push"](() => {
5386
- W = f, r(15, W);
5347
+ function E(l) {
5348
+ Vt[l ? "unshift" : "push"](() => {
5349
+ W = l, r(15, W);
5387
5350
  });
5388
5351
  }
5389
- return e.$$set = (f) => {
5390
- "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, p = f.loginevent), "registerevent" in f && r(8, _ = f.registerevent), "loginurl" in f && r(9, O = f.loginurl), "registerurl" in f && r(10, B = f.registerurl), "currency" in f && r(11, ee = f.currency), "keepbrowsercontext" in f && r(12, me = f.keepbrowsercontext), "sorttype" in f && r(25, ie = f.sorttype), "sortorder" in f && r(26, M = 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);
5352
+ return e.$$set = (l) => {
5353
+ "session" in l && r(0, i = l.session), "userid" in l && r(1, o = l.userid), "endpoint" in l && r(2, s = l.endpoint), "lang" in l && r(3, a = l.lang), "translationurl" in l && r(4, f = l.translationurl), "numberoftournaments" in l && r(5, h = l.numberoftournaments), "showmorestep" in l && r(24, c = l.showmorestep), "filters" in l && r(6, d = l.filters), "loginevent" in l && r(7, p = l.loginevent), "registerevent" in l && r(8, _ = l.registerevent), "loginurl" in l && r(9, O = l.loginurl), "registerurl" in l && r(10, B = l.registerurl), "currency" in l && r(11, ee = l.currency), "keepbrowsercontext" in l && r(12, de = l.keepbrowsercontext), "sorttype" in l && r(25, ie = l.sorttype), "sortorder" in l && r(26, M = l.sortorder), "starttimeafter" in l && r(27, $ = l.starttimeafter), "showanonymoustournaments" in l && r(28, Z = l.showanonymoustournaments), "clientstyling" in l && r(13, le = l.clientstyling), "clientstylingurl" in l && r(14, be = l.clientstylingurl), "delaybeforeload" in l && r(29, Ne = l.delaybeforeload);
5391
5354
  }, e.$$.update = () => {
5392
5355
  e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
5393
5356
  40960 && W && le && T(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
5394
- 49152 && W && ge && C(), e.$$.dirty[0] & /*userid*/
5357
+ 49152 && W && be && C(), e.$$.dirty[0] & /*userid*/
5395
5358
  2, e.$$.dirty[0] & /*filters*/
5396
5359
  64 && d && y(), e.$$.dirty[0] & /*lang*/
5397
5360
  8 && a && v(), e.$$.dirty[0] & /*translationurl*/
5398
- 16 && l && Ot(), e.$$.dirty[1] & /*isMounted*/
5399
- 1 && ye && m(), e.$$.dirty[0] & /*session*/
5361
+ 16 && f && Pt(), e.$$.dirty[1] & /*isMounted*/
5362
+ 1 && ge && m(), e.$$.dirty[0] & /*session*/
5400
5363
  1 && (i === "" || i) && x(), e.$$.dirty[0] & /*sessionID*/
5401
5364
  1073741824 && (te === "" || te) && R(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
5402
- 285212716 && s && u && c && a && Z && R();
5365
+ 285212716 && s && h && c && a && Z && R();
5403
5366
  }, [
5404
5367
  i,
5405
5368
  o,
5406
5369
  s,
5407
5370
  a,
5408
- l,
5409
- u,
5371
+ f,
5372
+ h,
5410
5373
  d,
5411
5374
  p,
5412
5375
  _,
5413
5376
  O,
5414
5377
  B,
5415
5378
  ee,
5416
- me,
5379
+ de,
5417
5380
  le,
5418
- ge,
5381
+ be,
5419
5382
  W,
5420
- Be,
5421
- pe,
5422
- Ce,
5423
- Ye,
5383
+ He,
5384
+ me,
5385
+ Pe,
5386
+ Je,
5424
5387
  he,
5425
5388
  se,
5426
5389
  n,
@@ -5430,21 +5393,21 @@ function vs(e, t, r) {
5430
5393
  M,
5431
5394
  $,
5432
5395
  Z,
5433
- Re,
5396
+ Ne,
5434
5397
  te,
5435
- ye,
5398
+ ge,
5436
5399
  L,
5437
5400
  E
5438
5401
  ];
5439
5402
  }
5440
- class Sn extends ti {
5403
+ class us extends kn {
5441
5404
  constructor(t) {
5442
- super(), Kn(
5405
+ super(), jn(
5443
5406
  this,
5444
5407
  t,
5445
- vs,
5446
- gs,
5447
- Xr,
5408
+ as,
5409
+ os,
5410
+ Ur,
5448
5411
  {
5449
5412
  session: 0,
5450
5413
  userid: 1,
@@ -5468,7 +5431,7 @@ class Sn extends ti {
5468
5431
  clientstylingurl: 14,
5469
5432
  delaybeforeload: 29
5470
5433
  },
5471
- hs,
5434
+ Yo,
5472
5435
  [-1, -1, -1]
5473
5436
  );
5474
5437
  }
@@ -5599,49 +5562,45 @@ class Sn extends ti {
5599
5562
  this.$$set({ delaybeforeload: t }), F();
5600
5563
  }
5601
5564
  }
5602
- ei(Sn, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5603
- const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5604
- __proto__: null,
5605
- default: Sn
5606
- }, Symbol.toStringTag, { value: "Module" }));
5565
+ $n(us, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5607
5566
  export {
5608
- ss as $,
5609
- xs as A,
5610
- St as B,
5611
- ht as C,
5612
- Ss as D,
5613
- Je as E,
5614
- as as F,
5615
- Hs as G,
5616
- Zt as H,
5617
- As as I,
5618
- _s as J,
5619
- Cs as K,
5620
- ti as S,
5621
- En as a,
5622
- Mn as b,
5623
- ei as c,
5567
+ qo as $,
5568
+ hs as A,
5569
+ wt as B,
5570
+ ut as C,
5571
+ ds as D,
5572
+ qe as E,
5573
+ Zo as F,
5574
+ ps as G,
5575
+ zt as H,
5576
+ ms as I,
5577
+ ls as J,
5578
+ us as K,
5579
+ kn as S,
5580
+ mn as a,
5581
+ wn as b,
5582
+ $n as c,
5624
5583
  U as d,
5625
5584
  z as e,
5626
5585
  F as f,
5627
- Ps as g,
5628
- de as h,
5629
- Kn as i,
5586
+ gs as g,
5587
+ ce as h,
5588
+ jn as i,
5630
5589
  ne as j,
5631
- Nn as k,
5632
- Bs as l,
5633
- Xt as m,
5634
- ce as n,
5590
+ xn as k,
5591
+ bs as l,
5592
+ $t as m,
5593
+ fe as n,
5635
5594
  re as o,
5636
- st as p,
5637
- ws as q,
5638
- zt as r,
5639
- Xr as s,
5640
- Ne as t,
5641
- Wt as u,
5642
- Ts as v,
5643
- kn as w,
5644
- Fn as x,
5595
+ it as p,
5596
+ fs as q,
5597
+ kt as r,
5598
+ Ur as s,
5599
+ Ie as t,
5600
+ Vt as u,
5601
+ cs as v,
5602
+ On as w,
5603
+ An as x,
5645
5604
  w as y,
5646
- He as z
5605
+ Ae as z
5647
5606
  };