@everymatrix/tournaments-banner 0.2.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.
@@ -0,0 +1,1817 @@
1
+ var zt = Object.defineProperty, Ut = Object.defineProperties;
2
+ var Wt = Object.getOwnPropertyDescriptors;
3
+ var ct = Object.getOwnPropertySymbols;
4
+ var Bt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
5
+ var lt = (r, t, e) => t in r ? zt(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, ft = (r, t) => {
6
+ for (var e in t || (t = {}))
7
+ Bt.call(t, e) && lt(r, e, t[e]);
8
+ if (ct)
9
+ for (var e of ct(t))
10
+ Vt.call(t, e) && lt(r, e, t[e]);
11
+ return r;
12
+ }, dt = (r, t) => Ut(r, Wt(t));
13
+ var Ke = (r, t, e) => new Promise((n, a) => {
14
+ var o = (m) => {
15
+ try {
16
+ g(e.next(m));
17
+ } catch ($) {
18
+ a($);
19
+ }
20
+ }, d = (m) => {
21
+ try {
22
+ g(e.throw(m));
23
+ } catch ($) {
24
+ a($);
25
+ }
26
+ }, g = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(o, d);
27
+ g((e = e.apply(r, t)).next());
28
+ });
29
+ import { z as st, A as Dt, B as Gt, c as Mt, g as Ot, a as Xt, p as re, C as qt, D as Zt, E as ht, F as Qt, G as Ue, q as Ae, H as Jt, m as pe, j as C, I as Kt, J as er, i as pt, b as Ie, d as At, o as Fe, v as ne, K as tr, L as rr, h as vt, M as yt, r as We, N as nr, s as ir, e as Be, O as Re, f as je, t as mt, l as Ve, k as or, P as ar, $ as sr } from "./StatusBadge-vLV0XrQ8.js";
30
+ import { T as ur } from "./TournamentImage-jDlLsHTp.js";
31
+ typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
32
+ }, globalThis.customElements = { define() {
33
+ }, get() {
34
+ }, whenDefined() {
35
+ } });
36
+ const cr = (r, t) => {
37
+ window.postMessage(
38
+ dt(ft({}, t), {
39
+ type: r
40
+ }),
41
+ window.location.href
42
+ );
43
+ }, lr = (r, t) => {
44
+ cr(`Tournaments:${r}`, t);
45
+ }, fr = (r, t) => {
46
+ lr("viewTournamentDetails", {
47
+ tournamentId: r.id,
48
+ tournamentName: r.nameOrTitle
49
+ });
50
+ }, dr = (r) => {
51
+ const t = new Headers();
52
+ return r && t.append("X-SessionId", r), t;
53
+ }, hr = (r) => Ke(void 0, null, function* () {
54
+ var a, o, d;
55
+ const t = new URL(`${r.endpoint}/v1/tournaments`);
56
+ t.searchParams.append("language", r.language), t.searchParams.append("sortField", (a = r.sortField) != null ? a : "StartTime"), t.searchParams.append("sortOrder", (o = r.sortOrder) != null ? o : "desc"), t.searchParams.append("platform", r.platform);
57
+ const n = yield (yield fetch(t, { method: "GET", headers: dr(r.session) })).json();
58
+ return (d = n == null ? void 0 : n.items) != null ? d : [];
59
+ }), pr = (r) => Ke(void 0, null, function* () {
60
+ const t = yield hr(r), e = /* @__PURE__ */ new Date();
61
+ return t.filter((n) => new Date(n.exhibitionEndTime) > e);
62
+ });
63
+ var bt = { exports: {} };
64
+ /** @license
65
+ * eventsource.js
66
+ * Available under MIT License (MIT)
67
+ * https://github.com/Yaffle/EventSource/
68
+ */
69
+ (function(r, t) {
70
+ (function(e) {
71
+ var n = e.setTimeout, a = e.clearTimeout, o = e.XMLHttpRequest, d = e.XDomainRequest, g = e.ActiveXObject, m = e.EventSource, $ = e.document, L = e.Promise, H = e.fetch, Z = e.Response, z = e.TextDecoder, P = e.TextEncoder, X = e.AbortController;
72
+ if (typeof window != "undefined" && typeof $ != "undefined" && !("readyState" in $) && $.body == null && ($.readyState = "loading", window.addEventListener("load", function(i) {
73
+ $.readyState = "complete";
74
+ }, !1)), o == null && g != null && (o = function() {
75
+ return new g("Microsoft.XMLHTTP");
76
+ }), Object.create == null && (Object.create = function(i) {
77
+ function s() {
78
+ }
79
+ return s.prototype = i, new s();
80
+ }), Date.now || (Date.now = function() {
81
+ return (/* @__PURE__ */ new Date()).getTime();
82
+ }), X == null) {
83
+ var T = H;
84
+ H = function(i, s) {
85
+ var p = s.signal;
86
+ return T(i, { headers: s.headers, credentials: s.credentials, cache: s.cache }).then(function(l) {
87
+ var E = l.body.getReader();
88
+ return p._reader = E, p._aborted && p._reader.cancel(), {
89
+ status: l.status,
90
+ statusText: l.statusText,
91
+ headers: l.headers,
92
+ body: {
93
+ getReader: function() {
94
+ return E;
95
+ }
96
+ }
97
+ };
98
+ });
99
+ }, X = function() {
100
+ this.signal = {
101
+ _reader: null,
102
+ _aborted: !1
103
+ }, this.abort = function() {
104
+ this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
105
+ };
106
+ };
107
+ }
108
+ function M() {
109
+ this.bitsNeeded = 0, this.codePoint = 0;
110
+ }
111
+ M.prototype.decode = function(i) {
112
+ function s(k, G, D) {
113
+ if (D === 1)
114
+ return k >= 128 >> G && k << G <= 2047;
115
+ if (D === 2)
116
+ return k >= 2048 >> G && k << G <= 55295 || k >= 57344 >> G && k << G <= 65535;
117
+ if (D === 3)
118
+ return k >= 65536 >> G && k << G <= 1114111;
119
+ throw new Error();
120
+ }
121
+ function p(k, G) {
122
+ if (k === 6 * 1)
123
+ return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
124
+ if (k === 6 * 2)
125
+ return G > 15 ? 3 : 2;
126
+ if (k === 6 * 3)
127
+ return 3;
128
+ throw new Error();
129
+ }
130
+ for (var l = 65533, E = "", S = this.bitsNeeded, I = this.codePoint, J = 0; J < i.length; J += 1) {
131
+ var R = i[J];
132
+ S !== 0 && (R < 128 || R > 191 || !s(I << 6 | R & 63, S - 6, p(S, I))) && (S = 0, I = l, E += String.fromCharCode(I)), S === 0 ? (R >= 0 && R <= 127 ? (S = 0, I = R) : R >= 192 && R <= 223 ? (S = 6 * 1, I = R & 31) : R >= 224 && R <= 239 ? (S = 6 * 2, I = R & 15) : R >= 240 && R <= 247 ? (S = 6 * 3, I = R & 7) : (S = 0, I = l), S !== 0 && !s(I, S, p(S, I)) && (S = 0, I = l)) : (S -= 6, I = I << 6 | R & 63), S === 0 && (I <= 65535 ? E += String.fromCharCode(I) : (E += String.fromCharCode(55296 + (I - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (I - 65535 - 1 & 1023))));
133
+ }
134
+ return this.bitsNeeded = S, this.codePoint = I, E;
135
+ };
136
+ var j = function() {
137
+ try {
138
+ return new z().decode(new P().encode("test"), { stream: !0 }) === "test";
139
+ } catch (i) {
140
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + i);
141
+ }
142
+ return !1;
143
+ };
144
+ (z == null || P == null || !j()) && (z = M);
145
+ var x = function() {
146
+ };
147
+ function U(i) {
148
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = x, this.onload = x, this.onerror = x, this.onreadystatechange = x, this._contentType = "", this._xhr = i, this._sendTimeout = 0, this._abort = x;
149
+ }
150
+ U.prototype.open = function(i, s) {
151
+ this._abort(!0);
152
+ var p = this, l = this._xhr, E = 1, S = 0;
153
+ this._abort = function(D) {
154
+ p._sendTimeout !== 0 && (a(p._sendTimeout), p._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, l.onload = x, l.onerror = x, l.onabort = x, l.onprogress = x, l.onreadystatechange = x, l.abort(), S !== 0 && (a(S), S = 0), D || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), E = 0;
155
+ };
156
+ var I = function() {
157
+ if (E === 1) {
158
+ var D = 0, K = "", xe = void 0;
159
+ if ("contentType" in l)
160
+ D = 200, K = "OK", xe = l.contentType;
161
+ else
162
+ try {
163
+ D = l.status, K = l.statusText, xe = l.getResponseHeader("Content-Type");
164
+ } catch (Ye) {
165
+ D = 0, K = "", xe = void 0;
166
+ }
167
+ D !== 0 && (E = 2, p.readyState = 2, p.status = D, p.statusText = K, p._contentType = xe, p.onreadystatechange());
168
+ }
169
+ }, J = function() {
170
+ if (I(), E === 2 || E === 3) {
171
+ E = 3;
172
+ var D = "";
173
+ try {
174
+ D = l.responseText;
175
+ } catch (K) {
176
+ }
177
+ p.readyState = 3, p.responseText = D, p.onprogress();
178
+ }
179
+ }, R = function(D, K) {
180
+ if ((K == null || K.preventDefault == null) && (K = {
181
+ preventDefault: x
182
+ }), J(), E === 1 || E === 2 || E === 3) {
183
+ if (E = 4, S !== 0 && (a(S), S = 0), p.readyState = 4, D === "load")
184
+ p.onload(K);
185
+ else if (D === "error")
186
+ p.onerror(K);
187
+ else if (D === "abort")
188
+ p.onabort(K);
189
+ else
190
+ throw new TypeError();
191
+ p.onreadystatechange();
192
+ }
193
+ }, k = function(D) {
194
+ l != null && (l.readyState === 4 ? (!("onload" in l) || !("onerror" in l) || !("onabort" in l)) && R(l.responseText === "" ? "error" : "load", D) : l.readyState === 3 ? "onprogress" in l || J() : l.readyState === 2 && I());
195
+ }, G = function() {
196
+ S = n(function() {
197
+ G();
198
+ }, 500), l.readyState === 3 && J();
199
+ };
200
+ "onload" in l && (l.onload = function(D) {
201
+ R("load", D);
202
+ }), "onerror" in l && (l.onerror = function(D) {
203
+ R("error", D);
204
+ }), "onabort" in l && (l.onabort = function(D) {
205
+ R("abort", D);
206
+ }), "onprogress" in l && (l.onprogress = J), "onreadystatechange" in l && (l.onreadystatechange = function(D) {
207
+ k(D);
208
+ }), ("contentType" in l || !("ontimeout" in o.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), l.open(i, s, !0), "readyState" in l && (S = n(function() {
209
+ G();
210
+ }, 0));
211
+ }, U.prototype.abort = function() {
212
+ this._abort(!1);
213
+ }, U.prototype.getResponseHeader = function(i) {
214
+ return this._contentType;
215
+ }, U.prototype.setRequestHeader = function(i, s) {
216
+ var p = this._xhr;
217
+ "setRequestHeader" in p && p.setRequestHeader(i, s);
218
+ }, U.prototype.getAllResponseHeaders = function() {
219
+ return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
220
+ }, U.prototype.send = function() {
221
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && $ != null && $.readyState != null && $.readyState !== "complete") {
222
+ var i = this;
223
+ i._sendTimeout = n(function() {
224
+ i._sendTimeout = 0, i.send();
225
+ }, 4);
226
+ return;
227
+ }
228
+ var s = this._xhr;
229
+ "withCredentials" in s && (s.withCredentials = this.withCredentials);
230
+ try {
231
+ s.send(void 0);
232
+ } catch (p) {
233
+ throw p;
234
+ }
235
+ };
236
+ function ee(i) {
237
+ return i.replace(/[A-Z]/g, function(s) {
238
+ return String.fromCharCode(s.charCodeAt(0) + 32);
239
+ });
240
+ }
241
+ function oe(i) {
242
+ for (var s = /* @__PURE__ */ Object.create(null), p = i.split(`\r
243
+ `), l = 0; l < p.length; l += 1) {
244
+ var E = p[l], S = E.split(": "), I = S.shift(), J = S.join(": ");
245
+ s[ee(I)] = J;
246
+ }
247
+ this._map = s;
248
+ }
249
+ oe.prototype.get = function(i) {
250
+ return this._map[ee(i)];
251
+ }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
252
+ function le() {
253
+ }
254
+ le.prototype.open = function(i, s, p, l, E, S, I) {
255
+ i.open("GET", E);
256
+ var J = 0;
257
+ i.onprogress = function() {
258
+ var k = i.responseText, G = k.slice(J);
259
+ J += G.length, p(G);
260
+ }, i.onerror = function(k) {
261
+ k.preventDefault(), l(new Error("NetworkError"));
262
+ }, i.onload = function() {
263
+ l(null);
264
+ }, i.onabort = function() {
265
+ l(null);
266
+ }, i.onreadystatechange = function() {
267
+ if (i.readyState === o.HEADERS_RECEIVED) {
268
+ var k = i.status, G = i.statusText, D = i.getResponseHeader("Content-Type"), K = i.getAllResponseHeaders();
269
+ s(k, G, D, new oe(K));
270
+ }
271
+ }, i.withCredentials = S;
272
+ for (var R in I)
273
+ Object.prototype.hasOwnProperty.call(I, R) && i.setRequestHeader(R, I[R]);
274
+ return i.send(), i;
275
+ };
276
+ function se(i) {
277
+ this._headers = i;
278
+ }
279
+ se.prototype.get = function(i) {
280
+ return this._headers.get(i);
281
+ };
282
+ function ae() {
283
+ }
284
+ ae.prototype.open = function(i, s, p, l, E, S, I) {
285
+ var J = null, R = new X(), k = R.signal, G = new z();
286
+ return H(E, {
287
+ headers: I,
288
+ credentials: S ? "include" : "same-origin",
289
+ signal: k,
290
+ cache: "no-store"
291
+ }).then(function(D) {
292
+ return J = D.body.getReader(), s(D.status, D.statusText, D.headers.get("Content-Type"), new se(D.headers)), new L(function(K, xe) {
293
+ var Ye = function() {
294
+ J.read().then(function(_e) {
295
+ if (_e.done)
296
+ K(void 0);
297
+ else {
298
+ var ye = G.decode(_e.value, { stream: !0 });
299
+ p(ye), Ye();
300
+ }
301
+ }).catch(function(_e) {
302
+ xe(_e);
303
+ });
304
+ };
305
+ Ye();
306
+ });
307
+ }).catch(function(D) {
308
+ if (D.name !== "AbortError")
309
+ return D;
310
+ }).then(function(D) {
311
+ l(D);
312
+ }), {
313
+ abort: function() {
314
+ J != null && J.cancel(), R.abort();
315
+ }
316
+ };
317
+ };
318
+ function F() {
319
+ this._listeners = /* @__PURE__ */ Object.create(null);
320
+ }
321
+ function O(i) {
322
+ n(function() {
323
+ throw i;
324
+ }, 0);
325
+ }
326
+ F.prototype.dispatchEvent = function(i) {
327
+ i.target = this;
328
+ var s = this._listeners[i.type];
329
+ if (s != null)
330
+ for (var p = s.length, l = 0; l < p; l += 1) {
331
+ var E = s[l];
332
+ try {
333
+ typeof E.handleEvent == "function" ? E.handleEvent(i) : E.call(this, i);
334
+ } catch (S) {
335
+ O(S);
336
+ }
337
+ }
338
+ }, F.prototype.addEventListener = function(i, s) {
339
+ i = String(i);
340
+ var p = this._listeners, l = p[i];
341
+ l == null && (l = [], p[i] = l);
342
+ for (var E = !1, S = 0; S < l.length; S += 1)
343
+ l[S] === s && (E = !0);
344
+ E || l.push(s);
345
+ }, F.prototype.removeEventListener = function(i, s) {
346
+ i = String(i);
347
+ var p = this._listeners, l = p[i];
348
+ if (l != null) {
349
+ for (var E = [], S = 0; S < l.length; S += 1)
350
+ l[S] !== s && E.push(l[S]);
351
+ E.length === 0 ? delete p[i] : p[i] = E;
352
+ }
353
+ };
354
+ function q(i) {
355
+ this.type = i, this.target = void 0;
356
+ }
357
+ function ue(i, s) {
358
+ q.call(this, i), this.data = s.data, this.lastEventId = s.lastEventId;
359
+ }
360
+ ue.prototype = Object.create(q.prototype);
361
+ function v(i, s) {
362
+ q.call(this, i), this.status = s.status, this.statusText = s.statusText, this.headers = s.headers;
363
+ }
364
+ v.prototype = Object.create(q.prototype);
365
+ function f(i, s) {
366
+ q.call(this, i), this.error = s.error;
367
+ }
368
+ f.prototype = Object.create(q.prototype);
369
+ var u = -1, h = 0, c = 1, b = 2, w = -1, _ = 0, Y = 1, W = 2, te = 3, fe = /^text\/event\-stream(;.*)?$/i, ge = 1e3, y = 18e6, A = function(i, s) {
370
+ var p = i == null ? s : parseInt(i, 10);
371
+ return p !== p && (p = s), N(p);
372
+ }, N = function(i) {
373
+ return Math.min(Math.max(i, ge), y);
374
+ }, B = function(i, s, p) {
375
+ try {
376
+ typeof s == "function" && s.call(i, p);
377
+ } catch (l) {
378
+ O(l);
379
+ }
380
+ };
381
+ function V(i, s) {
382
+ F.call(this), s = s || {}, 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, we(this, i, s);
383
+ }
384
+ function ie() {
385
+ return o != null && "withCredentials" in o.prototype || d == null ? new o() : new d();
386
+ }
387
+ var Q = H != null && Z != null && "body" in Z.prototype;
388
+ function we(i, s, p) {
389
+ s = String(s);
390
+ var l = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", S = N(1e3), I = A(p.heartbeatTimeout, 45e3), J = "", R = S, k = !1, G = 0, D = p.headers || {}, K = p.Transport, xe = Q && K == null ? void 0 : new U(K != null ? new K() : ie()), Ye = K != null && typeof K != "string" ? new K() : xe == null ? new ae() : new le(), _e = void 0, ye = 0, Ee = u, Le = "", ke = "", De = "", ze = "", me = _, Qe = 0, $e = 0, Nt = function(de, ce, Se, Te) {
391
+ if (Ee === h)
392
+ if (de === 200 && Se != null && fe.test(Se)) {
393
+ Ee = c, k = Date.now(), R = S, i.readyState = c;
394
+ var be = new v("open", {
395
+ status: de,
396
+ statusText: ce,
397
+ headers: Te
398
+ });
399
+ i.dispatchEvent(be), B(i, i.onopen, be);
400
+ } else {
401
+ var he = "";
402
+ de !== 200 ? (ce && (ce = ce.replace(/\s+/g, " ")), he = "EventSource's response has a status " + de + " " + ce + " that is not 200. Aborting the connection.") : he = "EventSource's response has a Content-Type specifying an unsupported type: " + (Se == null ? "-" : Se.replace(/\s+/g, " ")) + ". Aborting the connection.", Je();
403
+ var be = new v("error", {
404
+ status: de,
405
+ statusText: ce,
406
+ headers: Te
407
+ });
408
+ i.dispatchEvent(be), B(i, i.onerror, be), console.error(he);
409
+ }
410
+ }, kt = function(de) {
411
+ if (Ee === c) {
412
+ for (var ce = -1, Se = 0; Se < de.length; Se += 1) {
413
+ var Te = de.charCodeAt(Se);
414
+ (Te === 10 || Te === 13) && (ce = Se);
415
+ }
416
+ var be = (ce !== -1 ? ze : "") + de.slice(0, ce + 1);
417
+ ze = (ce === -1 ? ze : "") + de.slice(ce + 1), de !== "" && (k = Date.now(), G += de.length);
418
+ for (var he = 0; he < be.length; he += 1) {
419
+ var Te = be.charCodeAt(he);
420
+ if (me === w && Te === 10)
421
+ me = _;
422
+ else if (me === w && (me = _), Te === 13 || Te === 10) {
423
+ if (me !== _) {
424
+ me === Y && ($e = he + 1);
425
+ var Me = be.slice(Qe, $e - 1), Oe = be.slice($e + ($e < he && be.charCodeAt($e) === 32 ? 1 : 0), he);
426
+ Me === "data" ? (Le += `
427
+ `, Le += Oe) : Me === "id" ? ke = Oe : Me === "event" ? De = Oe : Me === "retry" ? (S = A(Oe, S), R = S) : Me === "heartbeatTimeout" && (I = A(Oe, I), ye !== 0 && (a(ye), ye = n(function() {
428
+ He();
429
+ }, I)));
430
+ }
431
+ if (me === _) {
432
+ if (Le !== "") {
433
+ J = ke, De === "" && (De = "message");
434
+ var Pe = new ue(De, {
435
+ data: Le.slice(1),
436
+ lastEventId: ke
437
+ });
438
+ if (i.dispatchEvent(Pe), De === "open" ? B(i, i.onopen, Pe) : De === "message" ? B(i, i.onmessage, Pe) : De === "error" && B(i, i.onerror, Pe), Ee === b)
439
+ return;
440
+ }
441
+ Le = "", De = "";
442
+ }
443
+ me = Te === 13 ? w : _;
444
+ } else
445
+ me === _ && (Qe = he, me = Y), me === Y ? Te === 58 && ($e = he + 1, me = W) : me === W && (me = te);
446
+ }
447
+ }
448
+ }, ut = function(de) {
449
+ if (Ee === c || Ee === h) {
450
+ Ee = u, ye !== 0 && (a(ye), ye = 0), ye = n(function() {
451
+ He();
452
+ }, R), R = N(Math.min(S * 16, R * 2)), i.readyState = h;
453
+ var ce = new f("error", { error: de });
454
+ i.dispatchEvent(ce), B(i, i.onerror, ce), de != null && console.error(de);
455
+ }
456
+ }, Je = function() {
457
+ Ee = b, _e != null && (_e.abort(), _e = void 0), ye !== 0 && (a(ye), ye = 0), i.readyState = b;
458
+ }, He = function() {
459
+ if (ye = 0, Ee !== u) {
460
+ if (!k && _e != null)
461
+ ut(new Error("No activity within " + I + " milliseconds. " + (Ee === h ? "No response received." : G + " chars received.") + " Reconnecting.")), _e != null && (_e.abort(), _e = void 0);
462
+ else {
463
+ var de = Math.max((k || Date.now()) + I - Date.now(), 1);
464
+ k = !1, ye = n(function() {
465
+ He();
466
+ }, de);
467
+ }
468
+ return;
469
+ }
470
+ k = !1, G = 0, ye = n(function() {
471
+ He();
472
+ }, I), Ee = h, Le = "", De = "", ke = J, ze = "", Qe = 0, $e = 0, me = _;
473
+ var ce = s;
474
+ if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && J !== "") {
475
+ var Se = s.indexOf("?");
476
+ ce = Se === -1 ? s : s.slice(0, Se + 1) + s.slice(Se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Oe, Pe) {
477
+ return Pe === E ? "" : Oe;
478
+ }), ce += (s.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(J);
479
+ }
480
+ var Te = i.withCredentials, be = {};
481
+ be.Accept = "text/event-stream";
482
+ var he = i.headers;
483
+ if (he != null)
484
+ for (var Me in he)
485
+ Object.prototype.hasOwnProperty.call(he, Me) && (be[Me] = he[Me]);
486
+ try {
487
+ _e = Ye.open(xe, Nt, kt, ut, ce, Te, be);
488
+ } catch (Oe) {
489
+ throw Je(), Oe;
490
+ }
491
+ };
492
+ i.url = s, i.readyState = h, i.withCredentials = l, i.headers = D, i._close = Je, He();
493
+ }
494
+ V.prototype = Object.create(F.prototype), V.prototype.CONNECTING = h, V.prototype.OPEN = c, V.prototype.CLOSED = b, V.prototype.close = function() {
495
+ this._close();
496
+ }, V.CONNECTING = h, V.OPEN = c, V.CLOSED = b, V.prototype.withCredentials = void 0;
497
+ var ve = m;
498
+ o != null && (m == null || !("withCredentials" in m.prototype)) && (ve = V), function(i) {
499
+ {
500
+ var s = i(t);
501
+ s !== void 0 && (r.exports = s);
502
+ }
503
+ }(function(i) {
504
+ i.EventSourcePolyfill = V, i.NativeEventSource = m, i.EventSource = ve;
505
+ });
506
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : st : globalThis);
507
+ })(bt, bt.exports);
508
+ var Ct = { exports: {} };
509
+ (function(r, t) {
510
+ (function(e, n) {
511
+ r.exports = n();
512
+ })(st, function() {
513
+ var e = 1e3, n = 6e4, a = 36e5, o = "millisecond", d = "second", g = "minute", m = "hour", $ = "day", L = "week", H = "month", Z = "quarter", z = "year", P = "date", X = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
514
+ var f = ["th", "st", "nd", "rd"], u = v % 100;
515
+ return "[" + v + (f[(u - 20) % 10] || f[u] || f[0]) + "]";
516
+ } }, x = function(v, f, u) {
517
+ var h = String(v);
518
+ return !h || h.length >= f ? v : "" + Array(f + 1 - h.length).join(u) + v;
519
+ }, U = { s: x, z: function(v) {
520
+ var f = -v.utcOffset(), u = Math.abs(f), h = Math.floor(u / 60), c = u % 60;
521
+ return (f <= 0 ? "+" : "-") + x(h, 2, "0") + ":" + x(c, 2, "0");
522
+ }, m: function v(f, u) {
523
+ if (f.date() < u.date()) return -v(u, f);
524
+ var h = 12 * (u.year() - f.year()) + (u.month() - f.month()), c = f.clone().add(h, H), b = u - c < 0, w = f.clone().add(h + (b ? -1 : 1), H);
525
+ return +(-(h + (u - c) / (b ? c - w : w - c)) || 0);
526
+ }, a: function(v) {
527
+ return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
528
+ }, p: function(v) {
529
+ return { M: H, y: z, w: L, d: $, D: P, h: m, m: g, s: d, ms: o, Q: Z }[v] || String(v || "").toLowerCase().replace(/s$/, "");
530
+ }, u: function(v) {
531
+ return v === void 0;
532
+ } }, ee = "en", oe = {};
533
+ oe[ee] = j;
534
+ var le = "$isDayjsObject", se = function(v) {
535
+ return v instanceof q || !(!v || !v[le]);
536
+ }, ae = function v(f, u, h) {
537
+ var c;
538
+ if (!f) return ee;
539
+ if (typeof f == "string") {
540
+ var b = f.toLowerCase();
541
+ oe[b] && (c = b), u && (oe[b] = u, c = b);
542
+ var w = f.split("-");
543
+ if (!c && w.length > 1) return v(w[0]);
544
+ } else {
545
+ var _ = f.name;
546
+ oe[_] = f, c = _;
547
+ }
548
+ return !h && c && (ee = c), c || !h && ee;
549
+ }, F = function(v, f) {
550
+ if (se(v)) return v.clone();
551
+ var u = typeof f == "object" ? f : {};
552
+ return u.date = v, u.args = arguments, new q(u);
553
+ }, O = U;
554
+ O.l = ae, O.i = se, O.w = function(v, f) {
555
+ return F(v, { locale: f.$L, utc: f.$u, x: f.$x, $offset: f.$offset });
556
+ };
557
+ var q = function() {
558
+ function v(u) {
559
+ this.$L = ae(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[le] = !0;
560
+ }
561
+ var f = v.prototype;
562
+ return f.parse = function(u) {
563
+ this.$d = function(h) {
564
+ var c = h.date, b = h.utc;
565
+ if (c === null) return /* @__PURE__ */ new Date(NaN);
566
+ if (O.u(c)) return /* @__PURE__ */ new Date();
567
+ if (c instanceof Date) return new Date(c);
568
+ if (typeof c == "string" && !/Z$/i.test(c)) {
569
+ var w = c.match(T);
570
+ if (w) {
571
+ var _ = w[2] - 1 || 0, Y = (w[7] || "0").substring(0, 3);
572
+ return b ? new Date(Date.UTC(w[1], _, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, Y)) : new Date(w[1], _, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, Y);
573
+ }
574
+ }
575
+ return new Date(c);
576
+ }(u), this.init();
577
+ }, f.init = function() {
578
+ var u = this.$d;
579
+ this.$y = u.getFullYear(), this.$M = u.getMonth(), this.$D = u.getDate(), this.$W = u.getDay(), this.$H = u.getHours(), this.$m = u.getMinutes(), this.$s = u.getSeconds(), this.$ms = u.getMilliseconds();
580
+ }, f.$utils = function() {
581
+ return O;
582
+ }, f.isValid = function() {
583
+ return this.$d.toString() !== X;
584
+ }, f.isSame = function(u, h) {
585
+ var c = F(u);
586
+ return this.startOf(h) <= c && c <= this.endOf(h);
587
+ }, f.isAfter = function(u, h) {
588
+ return F(u) < this.startOf(h);
589
+ }, f.isBefore = function(u, h) {
590
+ return this.endOf(h) < F(u);
591
+ }, f.$g = function(u, h, c) {
592
+ return O.u(u) ? this[h] : this.set(c, u);
593
+ }, f.unix = function() {
594
+ return Math.floor(this.valueOf() / 1e3);
595
+ }, f.valueOf = function() {
596
+ return this.$d.getTime();
597
+ }, f.startOf = function(u, h) {
598
+ var c = this, b = !!O.u(h) || h, w = O.p(u), _ = function(N, B) {
599
+ var V = O.w(c.$u ? Date.UTC(c.$y, B, N) : new Date(c.$y, B, N), c);
600
+ return b ? V : V.endOf($);
601
+ }, Y = function(N, B) {
602
+ return O.w(c.toDate()[N].apply(c.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(B)), c);
603
+ }, W = this.$W, te = this.$M, fe = this.$D, ge = "set" + (this.$u ? "UTC" : "");
604
+ switch (w) {
605
+ case z:
606
+ return b ? _(1, 0) : _(31, 11);
607
+ case H:
608
+ return b ? _(1, te) : _(0, te + 1);
609
+ case L:
610
+ var y = this.$locale().weekStart || 0, A = (W < y ? W + 7 : W) - y;
611
+ return _(b ? fe - A : fe + (6 - A), te);
612
+ case $:
613
+ case P:
614
+ return Y(ge + "Hours", 0);
615
+ case m:
616
+ return Y(ge + "Minutes", 1);
617
+ case g:
618
+ return Y(ge + "Seconds", 2);
619
+ case d:
620
+ return Y(ge + "Milliseconds", 3);
621
+ default:
622
+ return this.clone();
623
+ }
624
+ }, f.endOf = function(u) {
625
+ return this.startOf(u, !1);
626
+ }, f.$set = function(u, h) {
627
+ var c, b = O.p(u), w = "set" + (this.$u ? "UTC" : ""), _ = (c = {}, c[$] = w + "Date", c[P] = w + "Date", c[H] = w + "Month", c[z] = w + "FullYear", c[m] = w + "Hours", c[g] = w + "Minutes", c[d] = w + "Seconds", c[o] = w + "Milliseconds", c)[b], Y = b === $ ? this.$D + (h - this.$W) : h;
628
+ if (b === H || b === z) {
629
+ var W = this.clone().set(P, 1);
630
+ W.$d[_](Y), W.init(), this.$d = W.set(P, Math.min(this.$D, W.daysInMonth())).$d;
631
+ } else _ && this.$d[_](Y);
632
+ return this.init(), this;
633
+ }, f.set = function(u, h) {
634
+ return this.clone().$set(u, h);
635
+ }, f.get = function(u) {
636
+ return this[O.p(u)]();
637
+ }, f.add = function(u, h) {
638
+ var c, b = this;
639
+ u = Number(u);
640
+ var w = O.p(h), _ = function(te) {
641
+ var fe = F(b);
642
+ return O.w(fe.date(fe.date() + Math.round(te * u)), b);
643
+ };
644
+ if (w === H) return this.set(H, this.$M + u);
645
+ if (w === z) return this.set(z, this.$y + u);
646
+ if (w === $) return _(1);
647
+ if (w === L) return _(7);
648
+ var Y = (c = {}, c[g] = n, c[m] = a, c[d] = e, c)[w] || 1, W = this.$d.getTime() + u * Y;
649
+ return O.w(W, this);
650
+ }, f.subtract = function(u, h) {
651
+ return this.add(-1 * u, h);
652
+ }, f.format = function(u) {
653
+ var h = this, c = this.$locale();
654
+ if (!this.isValid()) return c.invalidDate || X;
655
+ var b = u || "YYYY-MM-DDTHH:mm:ssZ", w = O.z(this), _ = this.$H, Y = this.$m, W = this.$M, te = c.weekdays, fe = c.months, ge = c.meridiem, y = function(B, V, ie, Q) {
656
+ return B && (B[V] || B(h, b)) || ie[V].slice(0, Q);
657
+ }, A = function(B) {
658
+ return O.s(_ % 12 || 12, B, "0");
659
+ }, N = ge || function(B, V, ie) {
660
+ var Q = B < 12 ? "AM" : "PM";
661
+ return ie ? Q.toLowerCase() : Q;
662
+ };
663
+ return b.replace(M, function(B, V) {
664
+ return V || function(ie) {
665
+ switch (ie) {
666
+ case "YY":
667
+ return String(h.$y).slice(-2);
668
+ case "YYYY":
669
+ return O.s(h.$y, 4, "0");
670
+ case "M":
671
+ return W + 1;
672
+ case "MM":
673
+ return O.s(W + 1, 2, "0");
674
+ case "MMM":
675
+ return y(c.monthsShort, W, fe, 3);
676
+ case "MMMM":
677
+ return y(fe, W);
678
+ case "D":
679
+ return h.$D;
680
+ case "DD":
681
+ return O.s(h.$D, 2, "0");
682
+ case "d":
683
+ return String(h.$W);
684
+ case "dd":
685
+ return y(c.weekdaysMin, h.$W, te, 2);
686
+ case "ddd":
687
+ return y(c.weekdaysShort, h.$W, te, 3);
688
+ case "dddd":
689
+ return te[h.$W];
690
+ case "H":
691
+ return String(_);
692
+ case "HH":
693
+ return O.s(_, 2, "0");
694
+ case "h":
695
+ return A(1);
696
+ case "hh":
697
+ return A(2);
698
+ case "a":
699
+ return N(_, Y, !0);
700
+ case "A":
701
+ return N(_, Y, !1);
702
+ case "m":
703
+ return String(Y);
704
+ case "mm":
705
+ return O.s(Y, 2, "0");
706
+ case "s":
707
+ return String(h.$s);
708
+ case "ss":
709
+ return O.s(h.$s, 2, "0");
710
+ case "SSS":
711
+ return O.s(h.$ms, 3, "0");
712
+ case "Z":
713
+ return w;
714
+ }
715
+ return null;
716
+ }(B) || w.replace(":", "");
717
+ });
718
+ }, f.utcOffset = function() {
719
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
720
+ }, f.diff = function(u, h, c) {
721
+ var b, w = this, _ = O.p(h), Y = F(u), W = (Y.utcOffset() - this.utcOffset()) * n, te = this - Y, fe = function() {
722
+ return O.m(w, Y);
723
+ };
724
+ switch (_) {
725
+ case z:
726
+ b = fe() / 12;
727
+ break;
728
+ case H:
729
+ b = fe();
730
+ break;
731
+ case Z:
732
+ b = fe() / 3;
733
+ break;
734
+ case L:
735
+ b = (te - W) / 6048e5;
736
+ break;
737
+ case $:
738
+ b = (te - W) / 864e5;
739
+ break;
740
+ case m:
741
+ b = te / a;
742
+ break;
743
+ case g:
744
+ b = te / n;
745
+ break;
746
+ case d:
747
+ b = te / e;
748
+ break;
749
+ default:
750
+ b = te;
751
+ }
752
+ return c ? b : O.a(b);
753
+ }, f.daysInMonth = function() {
754
+ return this.endOf(H).$D;
755
+ }, f.$locale = function() {
756
+ return oe[this.$L];
757
+ }, f.locale = function(u, h) {
758
+ if (!u) return this.$L;
759
+ var c = this.clone(), b = ae(u, h, !0);
760
+ return b && (c.$L = b), c;
761
+ }, f.clone = function() {
762
+ return O.w(this.$d, this);
763
+ }, f.toDate = function() {
764
+ return new Date(this.valueOf());
765
+ }, f.toJSON = function() {
766
+ return this.isValid() ? this.toISOString() : null;
767
+ }, f.toISOString = function() {
768
+ return this.$d.toISOString();
769
+ }, f.toString = function() {
770
+ return this.$d.toUTCString();
771
+ }, v;
772
+ }(), ue = q.prototype;
773
+ return F.prototype = ue, [["$ms", o], ["$s", d], ["$m", g], ["$H", m], ["$W", $], ["$M", H], ["$y", z], ["$D", P]].forEach(function(v) {
774
+ ue[v[1]] = function(f) {
775
+ return this.$g(f, v[0], v[1]);
776
+ };
777
+ }), F.extend = function(v, f) {
778
+ return v.$i || (v(f, q, F), v.$i = !0), F;
779
+ }, F.locale = ae, F.isDayjs = se, F.unix = function(v) {
780
+ return F(1e3 * v);
781
+ }, F.en = oe[ee], F.Ls = oe, F.p = {}, F;
782
+ });
783
+ })(Ct);
784
+ var vr = Ct.exports;
785
+ const yr = /* @__PURE__ */ Dt(vr);
786
+ var $t = { exports: {} };
787
+ (function(r, t) {
788
+ (function(e, n) {
789
+ r.exports = n();
790
+ })(st, function() {
791
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, o = /\d\d/, d = /\d\d?/, g = /\d*[^-_:/,()\s\d]+/, m = {}, $ = function(T) {
792
+ return (T = +T) + (T > 68 ? 1900 : 2e3);
793
+ }, L = function(T) {
794
+ return function(M) {
795
+ this[T] = +M;
796
+ };
797
+ }, H = [/[+-]\d\d:?(\d\d)?|Z/, function(T) {
798
+ (this.zone || (this.zone = {})).offset = function(M) {
799
+ if (!M || M === "Z") return 0;
800
+ var j = M.match(/([+-]|\d\d)/g), x = 60 * j[1] + (+j[2] || 0);
801
+ return x === 0 ? 0 : j[0] === "+" ? -x : x;
802
+ }(T);
803
+ }], Z = function(T) {
804
+ var M = m[T];
805
+ return M && (M.indexOf ? M : M.s.concat(M.f));
806
+ }, z = function(T, M) {
807
+ var j, x = m.meridiem;
808
+ if (x) {
809
+ for (var U = 1; U <= 24; U += 1) if (T.indexOf(x(U, 0, M)) > -1) {
810
+ j = U > 12;
811
+ break;
812
+ }
813
+ } else j = T === (M ? "pm" : "PM");
814
+ return j;
815
+ }, P = { A: [g, function(T) {
816
+ this.afternoon = z(T, !1);
817
+ }], a: [g, function(T) {
818
+ this.afternoon = z(T, !0);
819
+ }], Q: [a, function(T) {
820
+ this.month = 3 * (T - 1) + 1;
821
+ }], S: [a, function(T) {
822
+ this.milliseconds = 100 * +T;
823
+ }], SS: [o, function(T) {
824
+ this.milliseconds = 10 * +T;
825
+ }], SSS: [/\d{3}/, function(T) {
826
+ this.milliseconds = +T;
827
+ }], s: [d, L("seconds")], ss: [d, L("seconds")], m: [d, L("minutes")], mm: [d, L("minutes")], H: [d, L("hours")], h: [d, L("hours")], HH: [d, L("hours")], hh: [d, L("hours")], D: [d, L("day")], DD: [o, L("day")], Do: [g, function(T) {
828
+ var M = m.ordinal, j = T.match(/\d+/);
829
+ if (this.day = j[0], M) for (var x = 1; x <= 31; x += 1) M(x).replace(/\[|\]/g, "") === T && (this.day = x);
830
+ }], w: [d, L("week")], ww: [o, L("week")], M: [d, L("month")], MM: [o, L("month")], MMM: [g, function(T) {
831
+ var M = Z("months"), j = (Z("monthsShort") || M.map(function(x) {
832
+ return x.slice(0, 3);
833
+ })).indexOf(T) + 1;
834
+ if (j < 1) throw new Error();
835
+ this.month = j % 12 || j;
836
+ }], MMMM: [g, function(T) {
837
+ var M = Z("months").indexOf(T) + 1;
838
+ if (M < 1) throw new Error();
839
+ this.month = M % 12 || M;
840
+ }], Y: [/[+-]?\d+/, L("year")], YY: [o, function(T) {
841
+ this.year = $(T);
842
+ }], YYYY: [/\d{4}/, L("year")], Z: H, ZZ: H };
843
+ function X(T) {
844
+ var M, j;
845
+ M = T, j = m && m.formats;
846
+ for (var x = (T = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(F, O, q) {
847
+ var ue = q && q.toUpperCase();
848
+ return O || j[q] || e[q] || j[ue].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, f, u) {
849
+ return f || u.slice(1);
850
+ });
851
+ })).match(n), U = x.length, ee = 0; ee < U; ee += 1) {
852
+ var oe = x[ee], le = P[oe], se = le && le[0], ae = le && le[1];
853
+ x[ee] = ae ? { regex: se, parser: ae } : oe.replace(/^\[|\]$/g, "");
854
+ }
855
+ return function(F) {
856
+ for (var O = {}, q = 0, ue = 0; q < U; q += 1) {
857
+ var v = x[q];
858
+ if (typeof v == "string") ue += v.length;
859
+ else {
860
+ var f = v.regex, u = v.parser, h = F.slice(ue), c = f.exec(h)[0];
861
+ u.call(O, c), F = F.replace(c, "");
862
+ }
863
+ }
864
+ return function(b) {
865
+ var w = b.afternoon;
866
+ if (w !== void 0) {
867
+ var _ = b.hours;
868
+ w ? _ < 12 && (b.hours += 12) : _ === 12 && (b.hours = 0), delete b.afternoon;
869
+ }
870
+ }(O), O;
871
+ };
872
+ }
873
+ return function(T, M, j) {
874
+ j.p.customParseFormat = !0, T && T.parseTwoDigitYear && ($ = T.parseTwoDigitYear);
875
+ var x = M.prototype, U = x.parse;
876
+ x.parse = function(ee) {
877
+ var oe = ee.date, le = ee.utc, se = ee.args;
878
+ this.$u = le;
879
+ var ae = se[1];
880
+ if (typeof ae == "string") {
881
+ var F = se[2] === !0, O = se[3] === !0, q = F || O, ue = se[2];
882
+ O && (ue = se[2]), m = this.$locale(), !F && ue && (m = j.Ls[ue]), this.$d = function(h, c, b, w) {
883
+ try {
884
+ if (["x", "X"].indexOf(c) > -1) return new Date((c === "X" ? 1e3 : 1) * h);
885
+ var _ = X(c)(h), Y = _.year, W = _.month, te = _.day, fe = _.hours, ge = _.minutes, y = _.seconds, A = _.milliseconds, N = _.zone, B = _.week, V = /* @__PURE__ */ new Date(), ie = te || (Y || W ? 1 : V.getDate()), Q = Y || V.getFullYear(), we = 0;
886
+ Y && !W || (we = W > 0 ? W - 1 : V.getMonth());
887
+ var ve, i = fe || 0, s = ge || 0, p = y || 0, l = A || 0;
888
+ return N ? new Date(Date.UTC(Q, we, ie, i, s, p, l + 60 * N.offset * 1e3)) : b ? new Date(Date.UTC(Q, we, ie, i, s, p, l)) : (ve = new Date(Q, we, ie, i, s, p, l), B && (ve = w(ve).week(B).toDate()), ve);
889
+ } catch (E) {
890
+ return /* @__PURE__ */ new Date("");
891
+ }
892
+ }(oe, ae, le, j), this.init(), ue && ue !== !0 && (this.$L = this.locale(ue).$L), q && oe != this.format(ae) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
893
+ } else if (ae instanceof Array) for (var v = ae.length, f = 1; f <= v; f += 1) {
894
+ se[1] = ae[f - 1];
895
+ var u = j.apply(this, se);
896
+ if (u.isValid()) {
897
+ this.$d = u.$d, this.$L = u.$L, this.init();
898
+ break;
899
+ }
900
+ f === v && (this.$d = /* @__PURE__ */ new Date(""));
901
+ }
902
+ else U.call(this, ee);
903
+ };
904
+ };
905
+ });
906
+ })($t);
907
+ var mr = $t.exports;
908
+ const br = /* @__PURE__ */ Dt(mr);
909
+ yr.extend(br);
910
+ const gr = () => typeof window == "undefined", Ge = (r, t = !1) => {
911
+ if (typeof r == "boolean") return r;
912
+ if (r == null) return t;
913
+ if (typeof r == "number") return r !== 0;
914
+ const e = String(r).trim().toLowerCase();
915
+ return e === "" ? !0 : e !== "false" && e !== "0";
916
+ }, wr = {
917
+ en: {
918
+ bannerSlideLabel: "Tournament {index} of {total}",
919
+ bannerGoToSlide: "Go to tournament {index}"
920
+ },
921
+ tr: {
922
+ bannerSlideLabel: "Turnuva {index} / {total}",
923
+ bannerGoToSlide: "{index}. turnuvaya git"
924
+ },
925
+ da: {
926
+ bannerSlideLabel: "Turnering {index} af {total}",
927
+ bannerGoToSlide: "Gå til turnering {index}"
928
+ }
929
+ }, _r = 5e3, Sr = 1e3, Tr = !0, Er = !0, xr = !0, Dr = !0;
930
+ /*! *****************************************************************************
931
+ Copyright (c) Microsoft Corporation.
932
+
933
+ Permission to use, copy, modify, and/or distribute this software for any
934
+ purpose with or without fee is hereby granted.
935
+
936
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
937
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
938
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
939
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
940
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
941
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
942
+ PERFORMANCE OF THIS SOFTWARE.
943
+ ***************************************************************************** */
944
+ var tt = function(r, t) {
945
+ return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
946
+ e.__proto__ = n;
947
+ } || function(e, n) {
948
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
949
+ }, tt(r, t);
950
+ };
951
+ function Ne(r, t) {
952
+ if (typeof t != "function" && t !== null)
953
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
954
+ tt(r, t);
955
+ function e() {
956
+ this.constructor = r;
957
+ }
958
+ r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
959
+ }
960
+ function rt(r) {
961
+ var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
962
+ if (e) return e.call(r);
963
+ if (r && typeof r.length == "number") return {
964
+ next: function() {
965
+ return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
966
+ }
967
+ };
968
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
969
+ }
970
+ function nt(r, t) {
971
+ var e = typeof Symbol == "function" && r[Symbol.iterator];
972
+ if (!e) return r;
973
+ var n = e.call(r), a, o = [], d;
974
+ try {
975
+ for (; (t === void 0 || t-- > 0) && !(a = n.next()).done; ) o.push(a.value);
976
+ } catch (g) {
977
+ d = { error: g };
978
+ } finally {
979
+ try {
980
+ a && !a.done && (e = n.return) && e.call(n);
981
+ } finally {
982
+ if (d) throw d.error;
983
+ }
984
+ }
985
+ return o;
986
+ }
987
+ function it(r, t, e) {
988
+ if (arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
989
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
990
+ return r.concat(o || t);
991
+ }
992
+ function Ce(r) {
993
+ return typeof r == "function";
994
+ }
995
+ function Lt(r) {
996
+ var t = function(n) {
997
+ Error.call(n), n.stack = new Error().stack;
998
+ }, e = r(t);
999
+ return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
1000
+ }
1001
+ var et = Lt(function(r) {
1002
+ return function(e) {
1003
+ r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
1004
+ ` + e.map(function(n, a) {
1005
+ return a + 1 + ") " + n.toString();
1006
+ }).join(`
1007
+ `) : "", this.name = "UnsubscriptionError", this.errors = e;
1008
+ };
1009
+ });
1010
+ function ot(r, t) {
1011
+ if (r) {
1012
+ var e = r.indexOf(t);
1013
+ 0 <= e && r.splice(e, 1);
1014
+ }
1015
+ }
1016
+ var Ze = function() {
1017
+ function r(t) {
1018
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
1019
+ }
1020
+ return r.prototype.unsubscribe = function() {
1021
+ var t, e, n, a, o;
1022
+ if (!this.closed) {
1023
+ this.closed = !0;
1024
+ var d = this._parentage;
1025
+ if (d)
1026
+ if (this._parentage = null, Array.isArray(d))
1027
+ try {
1028
+ for (var g = rt(d), m = g.next(); !m.done; m = g.next()) {
1029
+ var $ = m.value;
1030
+ $.remove(this);
1031
+ }
1032
+ } catch (X) {
1033
+ t = { error: X };
1034
+ } finally {
1035
+ try {
1036
+ m && !m.done && (e = g.return) && e.call(g);
1037
+ } finally {
1038
+ if (t) throw t.error;
1039
+ }
1040
+ }
1041
+ else
1042
+ d.remove(this);
1043
+ var L = this.initialTeardown;
1044
+ if (Ce(L))
1045
+ try {
1046
+ L();
1047
+ } catch (X) {
1048
+ o = X instanceof et ? X.errors : [X];
1049
+ }
1050
+ var H = this._finalizers;
1051
+ if (H) {
1052
+ this._finalizers = null;
1053
+ try {
1054
+ for (var Z = rt(H), z = Z.next(); !z.done; z = Z.next()) {
1055
+ var P = z.value;
1056
+ try {
1057
+ gt(P);
1058
+ } catch (X) {
1059
+ o = o != null ? o : [], X instanceof et ? o = it(it([], nt(o)), nt(X.errors)) : o.push(X);
1060
+ }
1061
+ }
1062
+ } catch (X) {
1063
+ n = { error: X };
1064
+ } finally {
1065
+ try {
1066
+ z && !z.done && (a = Z.return) && a.call(Z);
1067
+ } finally {
1068
+ if (n) throw n.error;
1069
+ }
1070
+ }
1071
+ }
1072
+ if (o)
1073
+ throw new et(o);
1074
+ }
1075
+ }, r.prototype.add = function(t) {
1076
+ var e;
1077
+ if (t && t !== this)
1078
+ if (this.closed)
1079
+ gt(t);
1080
+ else {
1081
+ if (t instanceof r) {
1082
+ if (t.closed || t._hasParent(this))
1083
+ return;
1084
+ t._addParent(this);
1085
+ }
1086
+ (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
1087
+ }
1088
+ }, r.prototype._hasParent = function(t) {
1089
+ var e = this._parentage;
1090
+ return e === t || Array.isArray(e) && e.includes(t);
1091
+ }, r.prototype._addParent = function(t) {
1092
+ var e = this._parentage;
1093
+ this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
1094
+ }, r.prototype._removeParent = function(t) {
1095
+ var e = this._parentage;
1096
+ e === t ? this._parentage = null : Array.isArray(e) && ot(e, t);
1097
+ }, r.prototype.remove = function(t) {
1098
+ var e = this._finalizers;
1099
+ e && ot(e, t), t instanceof r && t._removeParent(this);
1100
+ }, r.EMPTY = function() {
1101
+ var t = new r();
1102
+ return t.closed = !0, t;
1103
+ }(), r;
1104
+ }(), Pt = Ze.EMPTY;
1105
+ function It(r) {
1106
+ return r instanceof Ze || r && "closed" in r && Ce(r.remove) && Ce(r.add) && Ce(r.unsubscribe);
1107
+ }
1108
+ function gt(r) {
1109
+ Ce(r) ? r() : r.unsubscribe();
1110
+ }
1111
+ var Mr = {
1112
+ Promise: void 0
1113
+ }, Or = {
1114
+ setTimeout: function(r, t) {
1115
+ for (var e = [], n = 2; n < arguments.length; n++)
1116
+ e[n - 2] = arguments[n];
1117
+ return setTimeout.apply(void 0, it([r, t], nt(e)));
1118
+ },
1119
+ clearTimeout: function(r) {
1120
+ return clearTimeout(r);
1121
+ },
1122
+ delegate: void 0
1123
+ };
1124
+ function Ar(r) {
1125
+ Or.setTimeout(function() {
1126
+ throw r;
1127
+ });
1128
+ }
1129
+ function wt() {
1130
+ }
1131
+ function qe(r) {
1132
+ r();
1133
+ }
1134
+ var Ft = function(r) {
1135
+ Ne(t, r);
1136
+ function t(e) {
1137
+ var n = r.call(this) || this;
1138
+ return n.isStopped = !1, e ? (n.destination = e, It(e) && e.add(n)) : n.destination = Lr, n;
1139
+ }
1140
+ return t.create = function(e, n, a) {
1141
+ return new at(e, n, a);
1142
+ }, t.prototype.next = function(e) {
1143
+ this.isStopped || this._next(e);
1144
+ }, t.prototype.error = function(e) {
1145
+ this.isStopped || (this.isStopped = !0, this._error(e));
1146
+ }, t.prototype.complete = function() {
1147
+ this.isStopped || (this.isStopped = !0, this._complete());
1148
+ }, t.prototype.unsubscribe = function() {
1149
+ this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
1150
+ }, t.prototype._next = function(e) {
1151
+ this.destination.next(e);
1152
+ }, t.prototype._error = function(e) {
1153
+ try {
1154
+ this.destination.error(e);
1155
+ } finally {
1156
+ this.unsubscribe();
1157
+ }
1158
+ }, t.prototype._complete = function() {
1159
+ try {
1160
+ this.destination.complete();
1161
+ } finally {
1162
+ this.unsubscribe();
1163
+ }
1164
+ }, t;
1165
+ }(Ze), Cr = function() {
1166
+ function r(t) {
1167
+ this.partialObserver = t;
1168
+ }
1169
+ return r.prototype.next = function(t) {
1170
+ var e = this.partialObserver;
1171
+ if (e.next)
1172
+ try {
1173
+ e.next(t);
1174
+ } catch (n) {
1175
+ Xe(n);
1176
+ }
1177
+ }, r.prototype.error = function(t) {
1178
+ var e = this.partialObserver;
1179
+ if (e.error)
1180
+ try {
1181
+ e.error(t);
1182
+ } catch (n) {
1183
+ Xe(n);
1184
+ }
1185
+ else
1186
+ Xe(t);
1187
+ }, r.prototype.complete = function() {
1188
+ var t = this.partialObserver;
1189
+ if (t.complete)
1190
+ try {
1191
+ t.complete();
1192
+ } catch (e) {
1193
+ Xe(e);
1194
+ }
1195
+ }, r;
1196
+ }(), at = function(r) {
1197
+ Ne(t, r);
1198
+ function t(e, n, a) {
1199
+ var o = r.call(this) || this, d;
1200
+ return Ce(e) || !e ? d = {
1201
+ next: e != null ? e : void 0,
1202
+ error: n != null ? n : void 0,
1203
+ complete: a != null ? a : void 0
1204
+ } : d = e, o.destination = new Cr(d), o;
1205
+ }
1206
+ return t;
1207
+ }(Ft);
1208
+ function Xe(r) {
1209
+ Ar(r);
1210
+ }
1211
+ function $r(r) {
1212
+ throw r;
1213
+ }
1214
+ var Lr = {
1215
+ closed: !0,
1216
+ next: wt,
1217
+ error: $r,
1218
+ complete: wt
1219
+ }, Pr = function() {
1220
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
1221
+ }();
1222
+ function Ir(r) {
1223
+ return r;
1224
+ }
1225
+ function Fr(r) {
1226
+ return r.length === 0 ? Ir : r.length === 1 ? r[0] : function(e) {
1227
+ return r.reduce(function(n, a) {
1228
+ return a(n);
1229
+ }, e);
1230
+ };
1231
+ }
1232
+ var _t = function() {
1233
+ function r(t) {
1234
+ t && (this._subscribe = t);
1235
+ }
1236
+ return r.prototype.lift = function(t) {
1237
+ var e = new r();
1238
+ return e.source = this, e.operator = t, e;
1239
+ }, r.prototype.subscribe = function(t, e, n) {
1240
+ var a = this, o = Yr(t) ? t : new at(t, e, n);
1241
+ return qe(function() {
1242
+ var d = a, g = d.operator, m = d.source;
1243
+ o.add(g ? g.call(o, m) : m ? a._subscribe(o) : a._trySubscribe(o));
1244
+ }), o;
1245
+ }, r.prototype._trySubscribe = function(t) {
1246
+ try {
1247
+ return this._subscribe(t);
1248
+ } catch (e) {
1249
+ t.error(e);
1250
+ }
1251
+ }, r.prototype.forEach = function(t, e) {
1252
+ var n = this;
1253
+ return e = St(e), new e(function(a, o) {
1254
+ var d = new at({
1255
+ next: function(g) {
1256
+ try {
1257
+ t(g);
1258
+ } catch (m) {
1259
+ o(m), d.unsubscribe();
1260
+ }
1261
+ },
1262
+ error: o,
1263
+ complete: a
1264
+ });
1265
+ n.subscribe(d);
1266
+ });
1267
+ }, r.prototype._subscribe = function(t) {
1268
+ var e;
1269
+ return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
1270
+ }, r.prototype[Pr] = function() {
1271
+ return this;
1272
+ }, r.prototype.pipe = function() {
1273
+ for (var t = [], e = 0; e < arguments.length; e++)
1274
+ t[e] = arguments[e];
1275
+ return Fr(t)(this);
1276
+ }, r.prototype.toPromise = function(t) {
1277
+ var e = this;
1278
+ return t = St(t), new t(function(n, a) {
1279
+ var o;
1280
+ e.subscribe(function(d) {
1281
+ return o = d;
1282
+ }, function(d) {
1283
+ return a(d);
1284
+ }, function() {
1285
+ return n(o);
1286
+ });
1287
+ });
1288
+ }, r.create = function(t) {
1289
+ return new r(t);
1290
+ }, r;
1291
+ }();
1292
+ function St(r) {
1293
+ var t;
1294
+ return (t = r != null ? r : Mr.Promise) !== null && t !== void 0 ? t : Promise;
1295
+ }
1296
+ function Rr(r) {
1297
+ return r && Ce(r.next) && Ce(r.error) && Ce(r.complete);
1298
+ }
1299
+ function Yr(r) {
1300
+ return r && r instanceof Ft || Rr(r) && It(r);
1301
+ }
1302
+ var Hr = Lt(function(r) {
1303
+ return function() {
1304
+ r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1305
+ };
1306
+ }), Rt = function(r) {
1307
+ Ne(t, r);
1308
+ function t() {
1309
+ var e = r.call(this) || this;
1310
+ return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
1311
+ }
1312
+ return t.prototype.lift = function(e) {
1313
+ var n = new Tt(this, this);
1314
+ return n.operator = e, n;
1315
+ }, t.prototype._throwIfClosed = function() {
1316
+ if (this.closed)
1317
+ throw new Hr();
1318
+ }, t.prototype.next = function(e) {
1319
+ var n = this;
1320
+ qe(function() {
1321
+ var a, o;
1322
+ if (n._throwIfClosed(), !n.isStopped) {
1323
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
1324
+ try {
1325
+ for (var d = rt(n.currentObservers), g = d.next(); !g.done; g = d.next()) {
1326
+ var m = g.value;
1327
+ m.next(e);
1328
+ }
1329
+ } catch ($) {
1330
+ a = { error: $ };
1331
+ } finally {
1332
+ try {
1333
+ g && !g.done && (o = d.return) && o.call(d);
1334
+ } finally {
1335
+ if (a) throw a.error;
1336
+ }
1337
+ }
1338
+ }
1339
+ });
1340
+ }, t.prototype.error = function(e) {
1341
+ var n = this;
1342
+ qe(function() {
1343
+ if (n._throwIfClosed(), !n.isStopped) {
1344
+ n.hasError = n.isStopped = !0, n.thrownError = e;
1345
+ for (var a = n.observers; a.length; )
1346
+ a.shift().error(e);
1347
+ }
1348
+ });
1349
+ }, t.prototype.complete = function() {
1350
+ var e = this;
1351
+ qe(function() {
1352
+ if (e._throwIfClosed(), !e.isStopped) {
1353
+ e.isStopped = !0;
1354
+ for (var n = e.observers; n.length; )
1355
+ n.shift().complete();
1356
+ }
1357
+ });
1358
+ }, t.prototype.unsubscribe = function() {
1359
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1360
+ }, Object.defineProperty(t.prototype, "observed", {
1361
+ get: function() {
1362
+ var e;
1363
+ return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
1364
+ },
1365
+ enumerable: !1,
1366
+ configurable: !0
1367
+ }), t.prototype._trySubscribe = function(e) {
1368
+ return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
1369
+ }, t.prototype._subscribe = function(e) {
1370
+ return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
1371
+ }, t.prototype._innerSubscribe = function(e) {
1372
+ var n = this, a = this, o = a.hasError, d = a.isStopped, g = a.observers;
1373
+ return o || d ? Pt : (this.currentObservers = null, g.push(e), new Ze(function() {
1374
+ n.currentObservers = null, ot(g, e);
1375
+ }));
1376
+ }, t.prototype._checkFinalizedStatuses = function(e) {
1377
+ var n = this, a = n.hasError, o = n.thrownError, d = n.isStopped;
1378
+ a ? e.error(o) : d && e.complete();
1379
+ }, t.prototype.asObservable = function() {
1380
+ var e = new _t();
1381
+ return e.source = this, e;
1382
+ }, t.create = function(e, n) {
1383
+ return new Tt(e, n);
1384
+ }, t;
1385
+ }(_t), Tt = function(r) {
1386
+ Ne(t, r);
1387
+ function t(e, n) {
1388
+ var a = r.call(this) || this;
1389
+ return a.destination = e, a.source = n, a;
1390
+ }
1391
+ return t.prototype.next = function(e) {
1392
+ var n, a;
1393
+ (a = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || a === void 0 || a.call(n, e);
1394
+ }, t.prototype.error = function(e) {
1395
+ var n, a;
1396
+ (a = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || a === void 0 || a.call(n, e);
1397
+ }, t.prototype.complete = function() {
1398
+ var e, n;
1399
+ (n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
1400
+ }, t.prototype._subscribe = function(e) {
1401
+ var n, a;
1402
+ return (a = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && a !== void 0 ? a : Pt;
1403
+ }, t;
1404
+ }(Rt), Yt = {
1405
+ now: function() {
1406
+ return (Yt.delegate || Date).now();
1407
+ },
1408
+ delegate: void 0
1409
+ }, jr = function(r) {
1410
+ Ne(t, r);
1411
+ function t(e, n, a) {
1412
+ e === void 0 && (e = 1 / 0), n === void 0 && (n = 1 / 0), a === void 0 && (a = Yt);
1413
+ var o = r.call(this) || this;
1414
+ return o._bufferSize = e, o._windowTime = n, o._timestampProvider = a, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, n), o;
1415
+ }
1416
+ return t.prototype.next = function(e) {
1417
+ var n = this, a = n.isStopped, o = n._buffer, d = n._infiniteTimeWindow, g = n._timestampProvider, m = n._windowTime;
1418
+ a || (o.push(e), !d && o.push(g.now() + m)), this._trimBuffer(), r.prototype.next.call(this, e);
1419
+ }, t.prototype._subscribe = function(e) {
1420
+ this._throwIfClosed(), this._trimBuffer();
1421
+ for (var n = this._innerSubscribe(e), a = this, o = a._infiniteTimeWindow, d = a._buffer, g = d.slice(), m = 0; m < g.length && !e.closed; m += o ? 1 : 2)
1422
+ e.next(g[m]);
1423
+ return this._checkFinalizedStatuses(e), n;
1424
+ }, t.prototype._trimBuffer = function() {
1425
+ var e = this, n = e._bufferSize, a = e._timestampProvider, o = e._buffer, d = e._infiniteTimeWindow, g = (d ? 1 : 2) * n;
1426
+ if (n < 1 / 0 && g < o.length && o.splice(0, o.length - g), !d) {
1427
+ for (var m = a.now(), $ = 0, L = 1; L < o.length && o[L] <= m; L += 2)
1428
+ $ = L;
1429
+ $ && o.splice(0, $ + 1);
1430
+ }
1431
+ }, t;
1432
+ }(Rt);
1433
+ const Et = [], xt = {}, Nr = (r, t = 0) => {
1434
+ if (Et.indexOf(r) == -1) {
1435
+ const e = new jr(t);
1436
+ xt[r] = e, Et.push(r);
1437
+ }
1438
+ return xt[r];
1439
+ };
1440
+ typeof window != "undefined" && (window.emWidgets = { topic: Nr });
1441
+ const kr = (r) => r.toLowerCase().match(/android/i) ? "Android" : r.toLowerCase().match(/iphone/i) ? "iPhone" : r.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
1442
+ String(Number.MAX_SAFE_INTEGER).length;
1443
+ var zr = je('<div class="tournaments-banner svelte-h8hbcz"><div class="tournaments-banner__skeleton svelte-h8hbcz" aria-busy="true"></div></div>'), Ur = je('<a class="tournaments-banner__slide svelte-h8hbcz"><!></a>'), Wr = je('<button type="button"></button>'), Br = je('<div class="tournaments-banner__dots svelte-h8hbcz"></div>'), Vr = je('<div class="tournaments-banner svelte-h8hbcz" role="region" aria-roledescription="carousel"><div class="tournaments-banner__track svelte-h8hbcz"></div> <!></div>');
1444
+ const Gr = {
1445
+ hash: "svelte-h8hbcz",
1446
+ code: `.tournaments-banner.svelte-h8hbcz {display:flex;flex-direction:column;gap:8px;.tournaments-banner__track:where(.svelte-h8hbcz) {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar {display:none;}}.tournaments-banner__slide:where(.svelte-h8hbcz) {display:block;flex:0 0 100%;color:inherit;text-decoration:none;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;cursor:pointer;&:focus-visible {outline:2px solid var(--border-alert, rgba(255, 204, 0, 1));outline-offset:-2px;border-radius:13px;}}.tournaments-banner__skeleton:where(.svelte-h8hbcz) {height:308px;border-radius:13px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
1447
+ animation: svelte-h8hbcz-tournaments-banner-pulse 1.5s ease-in-out infinite;}.tournaments-banner__dots:where(.svelte-h8hbcz) {display:flex;justify-content:center;gap:8px;}.tournaments-banner__dot:where(.svelte-h8hbcz) {width:8px;height:8px;padding:0;border:0;border-radius:50%;background:var(--text-subtle, rgba(223, 227, 232, 1));opacity:0.8;cursor:pointer;&.active {background:var(--text-brand, rgba(255, 204, 0, 1));opacity:1;}&:focus-visible {outline:2px solid var(--border-alert, rgba(255, 204, 0, 1));outline-offset:2px;}}}
1448
+
1449
+ @keyframes svelte-h8hbcz-tournaments-banner-pulse {
1450
+ 50% {
1451
+ opacity: 0.4;
1452
+ }
1453
+ }
1454
+
1455
+ @media (max-width: 767px) {.tournaments-banner.svelte-h8hbcz .tournaments-banner__skeleton:where(.svelte-h8hbcz) {height:160px;}
1456
+ }
1457
+
1458
+ @media (prefers-reduced-motion: reduce) {.tournaments-banner.svelte-h8hbcz .tournaments-banner__track:where(.svelte-h8hbcz) {scroll-behavior:auto;}.tournaments-banner.svelte-h8hbcz .tournaments-banner__skeleton:where(.svelte-h8hbcz) {
1459
+ animation: none;}
1460
+ }`
1461
+ };
1462
+ function Ht(r, t) {
1463
+ var ge;
1464
+ Ot(t, !0), Xt(r, Gr);
1465
+ const e = () => ar(sr, "$_", n), [n, a] = tr(), o = re(t, "endpoint"), d = re(t, "language", 7, "en"), g = re(t, "session"), m = re(t, "platformProp", 7, null), $ = re(t, "translationurl"), L = re(t, "navigationhref", 7, ""), H = re(t, "enableautoplay", 7, void 0), Z = re(t, "autoplayinterval", 7, void 0), z = re(t, "pauseoninteraction", 7, void 0), P = re(t, "loop", 7, void 0), X = re(t, "showdots", 7, void 0);
1466
+ qt({ withLocale: "en", translations: {} }), Zt(wr), ht(d()), Qt(() => {
1467
+ $() && rr($());
1468
+ }), Ue(() => {
1469
+ ht(d());
1470
+ });
1471
+ const T = gr() ? (ge = m()) != null ? ge : "dk" : kr(window.navigator.userAgent);
1472
+ let M = Ae(Jt([])), j = Ae(!0), x = Ae(0), U = Ae(null), ee = Ae(!1), oe = Ae(!1), le = Ae(!1), se = Ae(!1), ae = Ae(!1);
1473
+ const F = Fe(() => Ge(H(), Tr)), O = Fe(() => Ge(z(), Er)), q = Fe(() => Ge(P(), xr)), ue = Fe(() => Ge(X(), Dr)), v = Fe(() => Number(Z()) > 0 ? Math.max(Number(Z()), Sr) : _r), f = (y) => `${L().replace(/\/$/, "")}/${y.id}`;
1474
+ Ue(() => {
1475
+ const y = {
1476
+ endpoint: o(),
1477
+ language: d(),
1478
+ session: g(),
1479
+ platform: T
1480
+ };
1481
+ if (!y.endpoint)
1482
+ return;
1483
+ let A = !1;
1484
+ return pe(j, !0), pr(y).then((N) => {
1485
+ A || (pe(M, N, !0), pe(x, 0));
1486
+ }).catch((N) => {
1487
+ console.log(N), A || pe(M, [], !0);
1488
+ }).finally(() => {
1489
+ A || pe(j, !1);
1490
+ }), () => {
1491
+ A = !0;
1492
+ };
1493
+ }), Ue(() => {
1494
+ const y = window.matchMedia("(prefers-reduced-motion: reduce)"), A = () => {
1495
+ pe(ae, y.matches, !0);
1496
+ }, N = () => {
1497
+ pe(se, document.visibilityState === "hidden");
1498
+ };
1499
+ return A(), N(), y.addEventListener("change", A), document.addEventListener("visibilitychange", N), () => {
1500
+ y.removeEventListener("change", A), document.removeEventListener("visibilitychange", N);
1501
+ };
1502
+ }), Ue(() => {
1503
+ const y = C(x), A = C(M).length, N = C(O) && (C(ee) || C(oe) || C(le)), B = y >= A - 1;
1504
+ if (!C(F) || A < 2 || N || C(se) || C(ae) || B && !C(q))
1505
+ return;
1506
+ const V = setTimeout(() => h((y + 1) % A), C(v));
1507
+ return () => clearTimeout(V);
1508
+ });
1509
+ const u = () => {
1510
+ !C(U) || !C(U).clientWidth || pe(x, Math.round(C(U).scrollLeft / C(U).clientWidth), !0);
1511
+ }, h = (y) => {
1512
+ var A;
1513
+ (A = C(U)) == null || A.scrollTo({ left: y * C(U).clientWidth, behavior: "smooth" });
1514
+ }, c = (y) => {
1515
+ pe(oe, y.target.matches(":focus-visible"), !0);
1516
+ }, b = (y, A) => {
1517
+ L() || (y.preventDefault(), fr(A));
1518
+ };
1519
+ var w = {
1520
+ get endpoint() {
1521
+ return o();
1522
+ },
1523
+ set endpoint(y) {
1524
+ o(y), ne();
1525
+ },
1526
+ get language() {
1527
+ return d();
1528
+ },
1529
+ set language(y = "en") {
1530
+ d(y), ne();
1531
+ },
1532
+ get session() {
1533
+ return g();
1534
+ },
1535
+ set session(y) {
1536
+ g(y), ne();
1537
+ },
1538
+ get platformProp() {
1539
+ return m();
1540
+ },
1541
+ set platformProp(y = null) {
1542
+ m(y), ne();
1543
+ },
1544
+ get translationurl() {
1545
+ return $();
1546
+ },
1547
+ set translationurl(y) {
1548
+ $(y), ne();
1549
+ },
1550
+ get navigationhref() {
1551
+ return L();
1552
+ },
1553
+ set navigationhref(y = "") {
1554
+ L(y), ne();
1555
+ },
1556
+ get enableautoplay() {
1557
+ return H();
1558
+ },
1559
+ set enableautoplay(y = void 0) {
1560
+ H(y), ne();
1561
+ },
1562
+ get autoplayinterval() {
1563
+ return Z();
1564
+ },
1565
+ set autoplayinterval(y = void 0) {
1566
+ Z(y), ne();
1567
+ },
1568
+ get pauseoninteraction() {
1569
+ return z();
1570
+ },
1571
+ set pauseoninteraction(y = void 0) {
1572
+ z(y), ne();
1573
+ },
1574
+ get loop() {
1575
+ return P();
1576
+ },
1577
+ set loop(y = void 0) {
1578
+ P(y), ne();
1579
+ },
1580
+ get showdots() {
1581
+ return X();
1582
+ },
1583
+ set showdots(y = void 0) {
1584
+ X(y), ne();
1585
+ }
1586
+ }, _ = Kt(), Y = er(_);
1587
+ {
1588
+ var W = (y) => {
1589
+ var A = zr();
1590
+ Ie(y, A);
1591
+ }, te = (y) => {
1592
+ var A = Vr(), N = vt(A);
1593
+ yt(N, 23, () => C(M), (ie) => ie.id, (ie, Q, we) => {
1594
+ var ve = Ur(), i = vt(ve);
1595
+ {
1596
+ let s = Fe(() => C(we) === 0);
1597
+ ur(i, {
1598
+ variant: "banner",
1599
+ get priority() {
1600
+ return C(s);
1601
+ },
1602
+ get src() {
1603
+ return C(Q).thumbnail;
1604
+ },
1605
+ get alt() {
1606
+ return C(Q).nameOrTitle;
1607
+ },
1608
+ get state() {
1609
+ return C(Q).state;
1610
+ },
1611
+ get startTime() {
1612
+ return C(Q).startTime;
1613
+ },
1614
+ get endTime() {
1615
+ return C(Q).endTime;
1616
+ },
1617
+ get language() {
1618
+ return d();
1619
+ }
1620
+ });
1621
+ }
1622
+ We(ve), mt(
1623
+ (s, p) => {
1624
+ Ve(ve, "href", s), Ve(ve, "aria-label", p);
1625
+ },
1626
+ [
1627
+ () => L() ? f(C(Q)) : "#",
1628
+ () => `${C(Q).nameOrTitle} – ${e()("bannerSlideLabel", {
1629
+ values: { index: C(we) + 1, total: C(M).length }
1630
+ })}`
1631
+ ]
1632
+ ), Re("click", ve, (s) => b(s, C(Q))), Ie(ie, ve);
1633
+ }), We(N), nr(N, (ie) => pe(U, ie), () => C(U));
1634
+ var B = ir(N, 2);
1635
+ {
1636
+ var V = (ie) => {
1637
+ var Q = Br();
1638
+ yt(Q, 23, () => C(M), (we) => we.id, (we, ve, i) => {
1639
+ var s = Wr();
1640
+ let p;
1641
+ mt(
1642
+ (l) => {
1643
+ p = or(s, 1, "tournaments-banner__dot svelte-h8hbcz", null, p, { active: C(i) === C(x) }), Ve(s, "aria-label", l), Ve(s, "aria-current", C(i) === C(x) ? "true" : void 0);
1644
+ },
1645
+ [
1646
+ () => e()("bannerGoToSlide", { values: { index: C(i) + 1 } })
1647
+ ]
1648
+ ), Re("click", s, () => h(C(i))), Ie(we, s);
1649
+ }), We(Q), Ie(ie, Q);
1650
+ };
1651
+ pt(B, (ie) => {
1652
+ C(ue) && C(M).length > 1 && ie(V);
1653
+ });
1654
+ }
1655
+ We(A), Be("mouseenter", A, () => pe(ee, !0)), Be("mouseleave", A, () => pe(ee, !1)), Re("focusin", A, c), Re("focusout", A, () => pe(oe, !1)), Re("touchstart", A, () => pe(le, !0)), Re("touchend", A, () => pe(le, !1)), Be("touchcancel", A, () => pe(le, !1)), Be("scroll", N, u), Ie(y, A);
1656
+ };
1657
+ pt(Y, (y) => {
1658
+ C(j) ? y(W) : C(M).length && y(te, 1);
1659
+ });
1660
+ }
1661
+ Ie(r, _);
1662
+ var fe = At(w);
1663
+ return a(), fe;
1664
+ }
1665
+ Gt(["focusin", "focusout", "touchstart", "touchend", "click"]);
1666
+ Mt(
1667
+ Ht,
1668
+ {
1669
+ endpoint: {},
1670
+ language: {},
1671
+ session: {},
1672
+ platformProp: {},
1673
+ translationurl: {},
1674
+ navigationhref: {},
1675
+ enableautoplay: {},
1676
+ autoplayinterval: {},
1677
+ pauseoninteraction: {},
1678
+ loop: {},
1679
+ showdots: {}
1680
+ },
1681
+ [],
1682
+ [],
1683
+ { mode: "open" }
1684
+ );
1685
+ function jt(r, t) {
1686
+ Ot(t, !0);
1687
+ let e = re(t, "endpoint"), n = re(t, "language", 7, "en"), a = re(t, "session"), o = re(t, "platformProp", 7, null), d = re(t, "translationurl"), g = re(t, "navigationhref"), m = re(t, "enableautoplay"), $ = re(t, "autoplayinterval"), L = re(t, "pauseoninteraction"), H = re(t, "loop"), Z = re(t, "showdots");
1688
+ var z = {
1689
+ get endpoint() {
1690
+ return e();
1691
+ },
1692
+ set endpoint(P) {
1693
+ e(P), ne();
1694
+ },
1695
+ get language() {
1696
+ return n();
1697
+ },
1698
+ set language(P = "en") {
1699
+ n(P), ne();
1700
+ },
1701
+ get session() {
1702
+ return a();
1703
+ },
1704
+ set session(P) {
1705
+ a(P), ne();
1706
+ },
1707
+ get platformProp() {
1708
+ return o();
1709
+ },
1710
+ set platformProp(P = null) {
1711
+ o(P), ne();
1712
+ },
1713
+ get translationurl() {
1714
+ return d();
1715
+ },
1716
+ set translationurl(P) {
1717
+ d(P), ne();
1718
+ },
1719
+ get navigationhref() {
1720
+ return g();
1721
+ },
1722
+ set navigationhref(P) {
1723
+ g(P), ne();
1724
+ },
1725
+ get enableautoplay() {
1726
+ return m();
1727
+ },
1728
+ set enableautoplay(P) {
1729
+ m(P), ne();
1730
+ },
1731
+ get autoplayinterval() {
1732
+ return $();
1733
+ },
1734
+ set autoplayinterval(P) {
1735
+ $(P), ne();
1736
+ },
1737
+ get pauseoninteraction() {
1738
+ return L();
1739
+ },
1740
+ set pauseoninteraction(P) {
1741
+ L(P), ne();
1742
+ },
1743
+ get loop() {
1744
+ return H();
1745
+ },
1746
+ set loop(P) {
1747
+ H(P), ne();
1748
+ },
1749
+ get showdots() {
1750
+ return Z();
1751
+ },
1752
+ set showdots(P) {
1753
+ Z(P), ne();
1754
+ }
1755
+ };
1756
+ return Ht(r, {
1757
+ get endpoint() {
1758
+ return e();
1759
+ },
1760
+ get language() {
1761
+ return n();
1762
+ },
1763
+ get session() {
1764
+ return a();
1765
+ },
1766
+ get platformProp() {
1767
+ return o();
1768
+ },
1769
+ get translationurl() {
1770
+ return d();
1771
+ },
1772
+ get navigationhref() {
1773
+ return g();
1774
+ },
1775
+ get enableautoplay() {
1776
+ return m();
1777
+ },
1778
+ get autoplayinterval() {
1779
+ return $();
1780
+ },
1781
+ get pauseoninteraction() {
1782
+ return L();
1783
+ },
1784
+ get loop() {
1785
+ return H();
1786
+ },
1787
+ get showdots() {
1788
+ return Z();
1789
+ }
1790
+ }), At(z);
1791
+ }
1792
+ customElements.define("tournaments-banner", Mt(
1793
+ jt,
1794
+ {
1795
+ endpoint: {},
1796
+ language: {},
1797
+ session: {},
1798
+ platformProp: {},
1799
+ translationurl: {},
1800
+ navigationhref: {},
1801
+ enableautoplay: {},
1802
+ autoplayinterval: {},
1803
+ pauseoninteraction: {},
1804
+ loop: {},
1805
+ showdots: {}
1806
+ },
1807
+ [],
1808
+ []
1809
+ ));
1810
+ const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1811
+ __proto__: null,
1812
+ default: jt
1813
+ }, Symbol.toStringTag, { value: "Module" }));
1814
+ export {
1815
+ Ht as T,
1816
+ Qr as a
1817
+ };