@everymatrix/casino-tournaments-controller 1.53.11 → 1.54.0

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