@everymatrix/tournament-details-page 0.1.29 → 0.2.1
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.
- package/components/StatusBadge-BVcNxptf.cjs +8 -0
- package/components/StatusBadge-BnPuCJnO.js +7097 -0
- package/components/StatusBadge-CV5WC0Fx.cjs +8 -0
- package/components/StatusBadge-DKawANSc.js +7010 -0
- package/components/TournamentDetailsPage-Cy3rGC6M.cjs +27 -0
- package/components/TournamentDetailsPage-D4ZDEGSF.cjs +27 -0
- package/components/TournamentDetailsPage-DQ5X0Dqc.js +654 -0
- package/components/TournamentDetailsPage-LzqcZox2.js +691 -0
- package/components/TournamentDetailsSkeleton-CL0BOfFu.js +77 -0
- package/components/TournamentDetailsSkeleton-CpEie2Gb.cjs +15 -0
- package/components/TournamentDetailsSkeleton-CqfwFamx.js +77 -0
- package/components/TournamentDetailsSkeleton-u1WnYDq6.cjs +15 -0
- package/components/TournamentGames-B6UkeuiX.js +821 -0
- package/components/TournamentGames-CYxz1Jcl.cjs +34 -0
- package/components/TournamentGames-DO01jBJs.js +799 -0
- package/components/TournamentGames-Dt7xzVBn.cjs +34 -0
- package/components/TournamentImage-BeCXYKda.cjs +5 -0
- package/components/TournamentImage-BxaewAcW.js +177 -0
- package/components/TournamentImage-Cp5BEQ0s.js +180 -0
- package/components/TournamentImage-Dx0Km_cw.cjs +5 -0
- package/components/TournamentLeaderboard-BufvnLFX.js +1393 -0
- package/components/TournamentLeaderboard-D1mX3sal.cjs +38 -0
- package/components/TournamentLeaderboard-D9OPwUvy.cjs +38 -0
- package/components/TournamentLeaderboard-Dqbb_r0i.js +1451 -0
- package/components/TournamentRules-BbxvSZdU.cjs +6 -0
- package/components/TournamentRules-Bsxb9Asj.js +144 -0
- package/components/TournamentRules-DX1CVsV7.cjs +6 -0
- package/components/TournamentRules-SECANCVS.js +149 -0
- package/components/TournamentSummary-Ardxi8yJ.js +159 -0
- package/components/TournamentSummary-BGk055-K.cjs +3 -0
- package/components/TournamentSummary-CizBbtzd.cjs +3 -0
- package/components/TournamentSummary-Dnj0Cnzu.js +154 -0
- package/components/TournamentTabs-DEQtwaH4.cjs +4 -0
- package/components/TournamentTabs-DpLpOYtB.js +57 -0
- package/components/TournamentTabs-EGrABVKQ.cjs +4 -0
- package/components/TournamentTabs-FzkOjNA3.js +72 -0
- package/components/{translations-C9SzZ-OE.js → translations-BQS5XycD.js} +67 -8
- package/components/translations-BSe2qToO.cjs +1 -0
- package/components/{translations-c-3wA1ZU.js → translations-DPzojb4V.js} +67 -8
- package/components/translations-FufS-X5l.cjs +1 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentDetails-Bdjkchis.js +0 -435
- package/components/TournamentDetails-CwSpU7kq.cjs +0 -3
- package/components/TournamentDetails-D6tJxzxu.cjs +0 -3
- package/components/TournamentDetails-lOcRC5BE.js +0 -436
- package/components/TournamentDetailsPage-BxjcEVtD.cjs +0 -36
- package/components/TournamentDetailsPage-CUrqFYHv.cjs +0 -36
- package/components/TournamentDetailsPage-Cq82Ib7k.js +0 -688
- package/components/TournamentDetailsPage-iCJFDnnz.js +0 -667
- package/components/TournamentGames-BEqAeC0t.js +0 -875
- package/components/TournamentGames-BHh4emja.cjs +0 -51
- package/components/TournamentGames-BfhpQFgs.cjs +0 -51
- package/components/TournamentGames-C-4Yfrqb.js +0 -849
- package/components/TournamentLeaderboard-B4cR1pv1.cjs +0 -46
- package/components/TournamentLeaderboard-Bn1ci40R.cjs +0 -46
- package/components/TournamentLeaderboard-JkZHz84d.js +0 -8028
- package/components/TournamentLeaderboard-ZeddBG1C.js +0 -7919
- package/components/translations-35-BlfqE.cjs +0 -1
- package/components/translations-CQFwGvLj.cjs +0 -1
|
@@ -0,0 +1,1393 @@
|
|
|
1
|
+
import { z as ot, A as mt, B as yt, c as bt, g as wt, a as _t, p as Fe, C as St, D as dt, E as xt, F as Ke, q as Te, G as Et, j as r, H as tt, m as ne, I as At, i as Ge, b as we, d as Tt, o as Me, f as Re, v as Be, J as Mt, K as Dt, h as qe, s as Oe, r as Ne, L as ut, M as lt, N as Pe, t as Qe, O as Ie, P as Ze, Q as nt, k as ct, l as We, R as $t, T as Ot, U as Rt, $ as Ct, y as ft, V as rt, W as ht, X as Lt } from "./StatusBadge-DKawANSc.js";
|
|
2
|
+
import { T as kt } from "./translations-BQS5XycD.js";
|
|
3
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
|
+
}, globalThis.customElements = { define() {
|
|
5
|
+
}, get() {
|
|
6
|
+
}, whenDefined() {
|
|
7
|
+
} });
|
|
8
|
+
const zt = (m, i) => {
|
|
9
|
+
window.postMessage(
|
|
10
|
+
{
|
|
11
|
+
...i,
|
|
12
|
+
type: m
|
|
13
|
+
},
|
|
14
|
+
window.location.href
|
|
15
|
+
);
|
|
16
|
+
}, st = (m, i) => {
|
|
17
|
+
zt(`Tournaments:${m}`, i);
|
|
18
|
+
}, ln = (m, i) => {
|
|
19
|
+
let l = !1;
|
|
20
|
+
const T = () => {
|
|
21
|
+
l || (l = !0, m());
|
|
22
|
+
}, D = () => {
|
|
23
|
+
l && (l = !1, i());
|
|
24
|
+
}, x = (P) => {
|
|
25
|
+
P.persisted && T();
|
|
26
|
+
};
|
|
27
|
+
return T(), window.addEventListener("pagehide", D), window.addEventListener("pageshow", x), () => {
|
|
28
|
+
window.removeEventListener("pagehide", D), window.removeEventListener("pageshow", x), D();
|
|
29
|
+
};
|
|
30
|
+
}, cn = (m, i, l = {}) => {
|
|
31
|
+
st("DetailPageOpen", {
|
|
32
|
+
isOpen: m,
|
|
33
|
+
tournamentId: i.id,
|
|
34
|
+
tournamentName: i.nameOrTitle,
|
|
35
|
+
...m ? { tabName: l.tabName } : { optedIn: !!l.optedIn }
|
|
36
|
+
});
|
|
37
|
+
}, fn = (m, i) => {
|
|
38
|
+
st("DetailTabClicked", {
|
|
39
|
+
tournamentId: m?.id,
|
|
40
|
+
tournamentName: m?.nameOrTitle,
|
|
41
|
+
tabName: i
|
|
42
|
+
});
|
|
43
|
+
}, hn = (m, i) => {
|
|
44
|
+
st("PlayGame", {
|
|
45
|
+
launchUrl: m.launchUrl,
|
|
46
|
+
id: m.gameId,
|
|
47
|
+
thumbnail: m.thumbnail,
|
|
48
|
+
name: m.name,
|
|
49
|
+
tournamentId: i
|
|
50
|
+
});
|
|
51
|
+
}, pt = (m) => {
|
|
52
|
+
const i = new Headers();
|
|
53
|
+
return m && i.append("X-SessionId", m), i;
|
|
54
|
+
}, mn = async (m) => {
|
|
55
|
+
const i = new URL(`${m.endpoint}/v1/tournaments/${m.tournamentid}`);
|
|
56
|
+
return m.filterById && i.searchParams.append("filter", `id=${m.tournamentid}`), i.searchParams.append("language", m.language), i.searchParams.append("expand", "games"), m.gamesLimit !== void 0 && i.searchParams.append("pagination", `games(limit=${m.gamesLimit},offset=${m.gamesOffset ?? 0})`), i.searchParams.append("platform", m.platform), (await (await fetch(i, { method: "GET", headers: pt(m.session) })).json())?.item;
|
|
57
|
+
};
|
|
58
|
+
var it = { exports: {} };
|
|
59
|
+
/** @license
|
|
60
|
+
* eventsource.js
|
|
61
|
+
* Available under MIT License (MIT)
|
|
62
|
+
* https://github.com/Yaffle/EventSource/
|
|
63
|
+
*/
|
|
64
|
+
(function(m, i) {
|
|
65
|
+
(function(l) {
|
|
66
|
+
var T = l.setTimeout, D = l.clearTimeout, x = l.XMLHttpRequest, P = l.XDomainRequest, Q = l.ActiveXObject, F = l.EventSource, B = l.document, C = l.Promise, H = l.fetch, ye = l.Response, ie = l.TextDecoder, Y = l.TextEncoder, re = l.AbortController;
|
|
67
|
+
if (typeof window < "u" && typeof B < "u" && !("readyState" in B) && B.body == null && (B.readyState = "loading", window.addEventListener("load", function(e) {
|
|
68
|
+
B.readyState = "complete";
|
|
69
|
+
}, !1)), x == null && Q != null && (x = function() {
|
|
70
|
+
return new Q("Microsoft.XMLHTTP");
|
|
71
|
+
}), Object.create == null && (Object.create = function(e) {
|
|
72
|
+
function d() {
|
|
73
|
+
}
|
|
74
|
+
return d.prototype = e, new d();
|
|
75
|
+
}), Date.now || (Date.now = function() {
|
|
76
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
|
77
|
+
}), re == null) {
|
|
78
|
+
var b = H;
|
|
79
|
+
H = function(e, d) {
|
|
80
|
+
var h = d.signal;
|
|
81
|
+
return b(e, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(s) {
|
|
82
|
+
var E = s.body.getReader();
|
|
83
|
+
return h._reader = E, h._aborted && h._reader.cancel(), {
|
|
84
|
+
status: s.status,
|
|
85
|
+
statusText: s.statusText,
|
|
86
|
+
headers: s.headers,
|
|
87
|
+
body: {
|
|
88
|
+
getReader: function() {
|
|
89
|
+
return E;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}, re = function() {
|
|
95
|
+
this.signal = {
|
|
96
|
+
_reader: null,
|
|
97
|
+
_aborted: !1
|
|
98
|
+
}, this.abort = function() {
|
|
99
|
+
this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function $() {
|
|
104
|
+
this.bitsNeeded = 0, this.codePoint = 0;
|
|
105
|
+
}
|
|
106
|
+
$.prototype.decode = function(e) {
|
|
107
|
+
function d(v, y, f) {
|
|
108
|
+
if (f === 1)
|
|
109
|
+
return v >= 128 >> y && v << y <= 2047;
|
|
110
|
+
if (f === 2)
|
|
111
|
+
return v >= 2048 >> y && v << y <= 55295 || v >= 57344 >> y && v << y <= 65535;
|
|
112
|
+
if (f === 3)
|
|
113
|
+
return v >= 65536 >> y && v << y <= 1114111;
|
|
114
|
+
throw new Error();
|
|
115
|
+
}
|
|
116
|
+
function h(v, y) {
|
|
117
|
+
if (v === 6 * 1)
|
|
118
|
+
return y >> 6 > 15 ? 3 : y > 31 ? 2 : 1;
|
|
119
|
+
if (v === 6 * 2)
|
|
120
|
+
return y > 15 ? 3 : 2;
|
|
121
|
+
if (v === 6 * 3)
|
|
122
|
+
return 3;
|
|
123
|
+
throw new Error();
|
|
124
|
+
}
|
|
125
|
+
for (var s = 65533, E = "", _ = this.bitsNeeded, R = this.codePoint, t = 0; t < e.length; t += 1) {
|
|
126
|
+
var u = e[t];
|
|
127
|
+
_ !== 0 && (u < 128 || u > 191 || !d(R << 6 | u & 63, _ - 6, h(_, R))) && (_ = 0, R = s, E += String.fromCharCode(R)), _ === 0 ? (u >= 0 && u <= 127 ? (_ = 0, R = u) : u >= 192 && u <= 223 ? (_ = 6 * 1, R = u & 31) : u >= 224 && u <= 239 ? (_ = 6 * 2, R = u & 15) : u >= 240 && u <= 247 ? (_ = 6 * 3, R = u & 7) : (_ = 0, R = s), _ !== 0 && !d(R, _, h(_, R)) && (_ = 0, R = s)) : (_ -= 6, R = R << 6 | u & 63), _ === 0 && (R <= 65535 ? E += String.fromCharCode(R) : (E += String.fromCharCode(55296 + (R - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (R - 65535 - 1 & 1023))));
|
|
128
|
+
}
|
|
129
|
+
return this.bitsNeeded = _, this.codePoint = R, E;
|
|
130
|
+
};
|
|
131
|
+
var z = function() {
|
|
132
|
+
try {
|
|
133
|
+
return new ie().decode(new Y().encode("test"), { stream: !0 }) === "test";
|
|
134
|
+
} catch (e) {
|
|
135
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
136
|
+
}
|
|
137
|
+
return !1;
|
|
138
|
+
};
|
|
139
|
+
(ie == null || Y == null || !z()) && (ie = $);
|
|
140
|
+
var A = function() {
|
|
141
|
+
};
|
|
142
|
+
function N(e) {
|
|
143
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = A, this.onload = A, this.onerror = A, this.onreadystatechange = A, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = A;
|
|
144
|
+
}
|
|
145
|
+
N.prototype.open = function(e, d) {
|
|
146
|
+
this._abort(!0);
|
|
147
|
+
var h = this, s = this._xhr, E = 1, _ = 0;
|
|
148
|
+
this._abort = function(f) {
|
|
149
|
+
h._sendTimeout !== 0 && (D(h._sendTimeout), h._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, s.onload = A, s.onerror = A, s.onabort = A, s.onprogress = A, s.onreadystatechange = A, s.abort(), _ !== 0 && (D(_), _ = 0), f || (h.readyState = 4, h.onabort(null), h.onreadystatechange())), E = 0;
|
|
150
|
+
};
|
|
151
|
+
var R = function() {
|
|
152
|
+
if (E === 1) {
|
|
153
|
+
var f = 0, O = "", ee = void 0;
|
|
154
|
+
if ("contentType" in s)
|
|
155
|
+
f = 200, O = "OK", ee = s.contentType;
|
|
156
|
+
else
|
|
157
|
+
try {
|
|
158
|
+
f = s.status, O = s.statusText, ee = s.getResponseHeader("Content-Type");
|
|
159
|
+
} catch {
|
|
160
|
+
f = 0, O = "", ee = void 0;
|
|
161
|
+
}
|
|
162
|
+
f !== 0 && (E = 2, h.readyState = 2, h.status = f, h.statusText = O, h._contentType = ee, h.onreadystatechange());
|
|
163
|
+
}
|
|
164
|
+
}, t = function() {
|
|
165
|
+
if (R(), E === 2 || E === 3) {
|
|
166
|
+
E = 3;
|
|
167
|
+
var f = "";
|
|
168
|
+
try {
|
|
169
|
+
f = s.responseText;
|
|
170
|
+
} catch {
|
|
171
|
+
}
|
|
172
|
+
h.readyState = 3, h.responseText = f, h.onprogress();
|
|
173
|
+
}
|
|
174
|
+
}, u = function(f, O) {
|
|
175
|
+
if ((O == null || O.preventDefault == null) && (O = {
|
|
176
|
+
preventDefault: A
|
|
177
|
+
}), t(), E === 1 || E === 2 || E === 3) {
|
|
178
|
+
if (E = 4, _ !== 0 && (D(_), _ = 0), h.readyState = 4, f === "load")
|
|
179
|
+
h.onload(O);
|
|
180
|
+
else if (f === "error")
|
|
181
|
+
h.onerror(O);
|
|
182
|
+
else if (f === "abort")
|
|
183
|
+
h.onabort(O);
|
|
184
|
+
else
|
|
185
|
+
throw new TypeError();
|
|
186
|
+
h.onreadystatechange();
|
|
187
|
+
}
|
|
188
|
+
}, v = function(f) {
|
|
189
|
+
s != null && (s.readyState === 4 ? (!("onload" in s) || !("onerror" in s) || !("onabort" in s)) && u(s.responseText === "" ? "error" : "load", f) : s.readyState === 3 ? "onprogress" in s || t() : s.readyState === 2 && R());
|
|
190
|
+
}, y = function() {
|
|
191
|
+
_ = T(function() {
|
|
192
|
+
y();
|
|
193
|
+
}, 500), s.readyState === 3 && t();
|
|
194
|
+
};
|
|
195
|
+
"onload" in s && (s.onload = function(f) {
|
|
196
|
+
u("load", f);
|
|
197
|
+
}), "onerror" in s && (s.onerror = function(f) {
|
|
198
|
+
u("error", f);
|
|
199
|
+
}), "onabort" in s && (s.onabort = function(f) {
|
|
200
|
+
u("abort", f);
|
|
201
|
+
}), "onprogress" in s && (s.onprogress = t), "onreadystatechange" in s && (s.onreadystatechange = function(f) {
|
|
202
|
+
v(f);
|
|
203
|
+
}), ("contentType" in s || !("ontimeout" in x.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), s.open(e, d, !0), "readyState" in s && (_ = T(function() {
|
|
204
|
+
y();
|
|
205
|
+
}, 0));
|
|
206
|
+
}, N.prototype.abort = function() {
|
|
207
|
+
this._abort(!1);
|
|
208
|
+
}, N.prototype.getResponseHeader = function(e) {
|
|
209
|
+
return this._contentType;
|
|
210
|
+
}, N.prototype.setRequestHeader = function(e, d) {
|
|
211
|
+
var h = this._xhr;
|
|
212
|
+
"setRequestHeader" in h && h.setRequestHeader(e, d);
|
|
213
|
+
}, N.prototype.getAllResponseHeaders = function() {
|
|
214
|
+
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
215
|
+
}, N.prototype.send = function() {
|
|
216
|
+
if ((!("ontimeout" in x.prototype) || !("sendAsBinary" in x.prototype) && !("mozAnon" in x.prototype)) && B != null && B.readyState != null && B.readyState !== "complete") {
|
|
217
|
+
var e = this;
|
|
218
|
+
e._sendTimeout = T(function() {
|
|
219
|
+
e._sendTimeout = 0, e.send();
|
|
220
|
+
}, 4);
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
var d = this._xhr;
|
|
224
|
+
"withCredentials" in d && (d.withCredentials = this.withCredentials);
|
|
225
|
+
try {
|
|
226
|
+
d.send(void 0);
|
|
227
|
+
} catch (h) {
|
|
228
|
+
throw h;
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
function W(e) {
|
|
232
|
+
return e.replace(/[A-Z]/g, function(d) {
|
|
233
|
+
return String.fromCharCode(d.charCodeAt(0) + 32);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
function oe(e) {
|
|
237
|
+
for (var d = /* @__PURE__ */ Object.create(null), h = e.split(`\r
|
|
238
|
+
`), s = 0; s < h.length; s += 1) {
|
|
239
|
+
var E = h[s], _ = E.split(": "), R = _.shift(), t = _.join(": ");
|
|
240
|
+
d[W(R)] = t;
|
|
241
|
+
}
|
|
242
|
+
this._map = d;
|
|
243
|
+
}
|
|
244
|
+
oe.prototype.get = function(e) {
|
|
245
|
+
return this._map[W(e)];
|
|
246
|
+
}, x != null && x.HEADERS_RECEIVED == null && (x.HEADERS_RECEIVED = 2);
|
|
247
|
+
function se() {
|
|
248
|
+
}
|
|
249
|
+
se.prototype.open = function(e, d, h, s, E, _, R) {
|
|
250
|
+
e.open("GET", E);
|
|
251
|
+
var t = 0;
|
|
252
|
+
e.onprogress = function() {
|
|
253
|
+
var v = e.responseText, y = v.slice(t);
|
|
254
|
+
t += y.length, h(y);
|
|
255
|
+
}, e.onerror = function(v) {
|
|
256
|
+
v.preventDefault(), s(new Error("NetworkError"));
|
|
257
|
+
}, e.onload = function() {
|
|
258
|
+
s(null);
|
|
259
|
+
}, e.onabort = function() {
|
|
260
|
+
s(null);
|
|
261
|
+
}, e.onreadystatechange = function() {
|
|
262
|
+
if (e.readyState === x.HEADERS_RECEIVED) {
|
|
263
|
+
var v = e.status, y = e.statusText, f = e.getResponseHeader("Content-Type"), O = e.getAllResponseHeaders();
|
|
264
|
+
d(v, y, f, new oe(O));
|
|
265
|
+
}
|
|
266
|
+
}, e.withCredentials = _;
|
|
267
|
+
for (var u in R)
|
|
268
|
+
Object.prototype.hasOwnProperty.call(R, u) && e.setRequestHeader(u, R[u]);
|
|
269
|
+
return e.send(), e;
|
|
270
|
+
};
|
|
271
|
+
function te(e) {
|
|
272
|
+
this._headers = e;
|
|
273
|
+
}
|
|
274
|
+
te.prototype.get = function(e) {
|
|
275
|
+
return this._headers.get(e);
|
|
276
|
+
};
|
|
277
|
+
function Z() {
|
|
278
|
+
}
|
|
279
|
+
Z.prototype.open = function(e, d, h, s, E, _, R) {
|
|
280
|
+
var t = null, u = new re(), v = u.signal, y = new ie();
|
|
281
|
+
return H(E, {
|
|
282
|
+
headers: R,
|
|
283
|
+
credentials: _ ? "include" : "same-origin",
|
|
284
|
+
signal: v,
|
|
285
|
+
cache: "no-store"
|
|
286
|
+
}).then(function(f) {
|
|
287
|
+
return t = f.body.getReader(), d(f.status, f.statusText, f.headers.get("Content-Type"), new te(f.headers)), new C(function(O, ee) {
|
|
288
|
+
var j = function() {
|
|
289
|
+
t.read().then(function(k) {
|
|
290
|
+
if (k.done)
|
|
291
|
+
O(void 0);
|
|
292
|
+
else {
|
|
293
|
+
var X = y.decode(k.value, { stream: !0 });
|
|
294
|
+
h(X), j();
|
|
295
|
+
}
|
|
296
|
+
}).catch(function(k) {
|
|
297
|
+
ee(k);
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
j();
|
|
301
|
+
});
|
|
302
|
+
}).catch(function(f) {
|
|
303
|
+
if (f.name !== "AbortError")
|
|
304
|
+
return f;
|
|
305
|
+
}).then(function(f) {
|
|
306
|
+
s(f);
|
|
307
|
+
}), {
|
|
308
|
+
abort: function() {
|
|
309
|
+
t?.cancel(), u.abort();
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
function L() {
|
|
314
|
+
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
315
|
+
}
|
|
316
|
+
function M(e) {
|
|
317
|
+
T(function() {
|
|
318
|
+
throw e;
|
|
319
|
+
}, 0);
|
|
320
|
+
}
|
|
321
|
+
L.prototype.dispatchEvent = function(e) {
|
|
322
|
+
e.target = this;
|
|
323
|
+
var d = this._listeners[e.type];
|
|
324
|
+
if (d != null)
|
|
325
|
+
for (var h = d.length, s = 0; s < h; s += 1) {
|
|
326
|
+
var E = d[s];
|
|
327
|
+
try {
|
|
328
|
+
typeof E.handleEvent == "function" ? E.handleEvent(e) : E.call(this, e);
|
|
329
|
+
} catch (_) {
|
|
330
|
+
M(_);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}, L.prototype.addEventListener = function(e, d) {
|
|
334
|
+
e = String(e);
|
|
335
|
+
var h = this._listeners, s = h[e];
|
|
336
|
+
s == null && (s = [], h[e] = s);
|
|
337
|
+
for (var E = !1, _ = 0; _ < s.length; _ += 1)
|
|
338
|
+
s[_] === d && (E = !0);
|
|
339
|
+
E || s.push(d);
|
|
340
|
+
}, L.prototype.removeEventListener = function(e, d) {
|
|
341
|
+
e = String(e);
|
|
342
|
+
var h = this._listeners, s = h[e];
|
|
343
|
+
if (s != null) {
|
|
344
|
+
for (var E = [], _ = 0; _ < s.length; _ += 1)
|
|
345
|
+
s[_] !== d && E.push(s[_]);
|
|
346
|
+
E.length === 0 ? delete h[e] : h[e] = E;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
function K(e) {
|
|
350
|
+
this.type = e, this.target = void 0;
|
|
351
|
+
}
|
|
352
|
+
function de(e, d) {
|
|
353
|
+
K.call(this, e), this.data = d.data, this.lastEventId = d.lastEventId;
|
|
354
|
+
}
|
|
355
|
+
de.prototype = Object.create(K.prototype);
|
|
356
|
+
function p(e, d) {
|
|
357
|
+
K.call(this, e), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
|
|
358
|
+
}
|
|
359
|
+
p.prototype = Object.create(K.prototype);
|
|
360
|
+
function o(e, d) {
|
|
361
|
+
K.call(this, e), this.error = d.error;
|
|
362
|
+
}
|
|
363
|
+
o.prototype = Object.create(K.prototype);
|
|
364
|
+
var n = -1, c = 0, a = 1, g = 2, w = -1, S = 0, I = 1, U = 2, J = 3, ue = /^text\/event\-stream(;.*)?$/i, De = 1e3, _e = 18e6, be = function(e, d) {
|
|
365
|
+
var h = e == null ? d : parseInt(e, 10);
|
|
366
|
+
return h !== h && (h = d), pe(h);
|
|
367
|
+
}, pe = function(e) {
|
|
368
|
+
return Math.min(Math.max(e, De), _e);
|
|
369
|
+
}, V = function(e, d, h) {
|
|
370
|
+
try {
|
|
371
|
+
typeof d == "function" && d.call(e, h);
|
|
372
|
+
} catch (s) {
|
|
373
|
+
M(s);
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
function q(e, d) {
|
|
377
|
+
L.call(this), d = d || {}, 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, Ye(this, e, d);
|
|
378
|
+
}
|
|
379
|
+
function Se() {
|
|
380
|
+
return x != null && "withCredentials" in x.prototype || P == null ? new x() : new P();
|
|
381
|
+
}
|
|
382
|
+
var xe = H != null && ye != null && "body" in ye.prototype;
|
|
383
|
+
function Ye(e, d, h) {
|
|
384
|
+
d = String(d);
|
|
385
|
+
var s = !!h.withCredentials, E = h.lastEventIdQueryParameterName || "lastEventId", _ = pe(1e3), R = be(h.heartbeatTimeout, 45e3), t = "", u = _, v = !1, y = 0, f = h.headers || {}, O = h.Transport, ee = xe && O == null ? void 0 : new N(O != null ? new O() : Se()), j = O != null && typeof O != "string" ? new O() : ee == null ? new Z() : new se(), k = void 0, X = 0, G = n, ae = "", ve = "", fe = "", Ce = "", he = S, Ue = 0, Le = 0, Je = function(ce, le, Ee, Ae) {
|
|
386
|
+
if (G === c)
|
|
387
|
+
if (ce === 200 && Ee != null && ue.test(Ee)) {
|
|
388
|
+
G = a, v = Date.now(), u = _, e.readyState = a;
|
|
389
|
+
var ge = new p("open", {
|
|
390
|
+
status: ce,
|
|
391
|
+
statusText: le,
|
|
392
|
+
headers: Ae
|
|
393
|
+
});
|
|
394
|
+
e.dispatchEvent(ge), V(e, e.onopen, ge);
|
|
395
|
+
} else {
|
|
396
|
+
var me = "";
|
|
397
|
+
ce !== 200 ? (le && (le = le.replace(/\s+/g, " ")), me = "EventSource's response has a status " + ce + " " + le + " that is not 200. Aborting the connection.") : me = "EventSource's response has a Content-Type specifying an unsupported type: " + (Ee == null ? "-" : Ee.replace(/\s+/g, " ")) + ". Aborting the connection.", et();
|
|
398
|
+
var ge = new p("error", {
|
|
399
|
+
status: ce,
|
|
400
|
+
statusText: le,
|
|
401
|
+
headers: Ae
|
|
402
|
+
});
|
|
403
|
+
e.dispatchEvent(ge), V(e, e.onerror, ge), console.error(me);
|
|
404
|
+
}
|
|
405
|
+
}, He = function(ce) {
|
|
406
|
+
if (G === a) {
|
|
407
|
+
for (var le = -1, Ee = 0; Ee < ce.length; Ee += 1) {
|
|
408
|
+
var Ae = ce.charCodeAt(Ee);
|
|
409
|
+
(Ae === 10 || Ae === 13) && (le = Ee);
|
|
410
|
+
}
|
|
411
|
+
var ge = (le !== -1 ? Ce : "") + ce.slice(0, le + 1);
|
|
412
|
+
Ce = (le === -1 ? Ce : "") + ce.slice(le + 1), ce !== "" && (v = Date.now(), y += ce.length);
|
|
413
|
+
for (var me = 0; me < ge.length; me += 1) {
|
|
414
|
+
var Ae = ge.charCodeAt(me);
|
|
415
|
+
if (he === w && Ae === 10)
|
|
416
|
+
he = S;
|
|
417
|
+
else if (he === w && (he = S), Ae === 13 || Ae === 10) {
|
|
418
|
+
if (he !== S) {
|
|
419
|
+
he === I && (Le = me + 1);
|
|
420
|
+
var ke = ge.slice(Ue, Le - 1), ze = ge.slice(Le + (Le < me && ge.charCodeAt(Le) === 32 ? 1 : 0), me);
|
|
421
|
+
ke === "data" ? (ae += `
|
|
422
|
+
`, ae += ze) : ke === "id" ? ve = ze : ke === "event" ? fe = ze : ke === "retry" ? (_ = be(ze, _), u = _) : ke === "heartbeatTimeout" && (R = be(ze, R), X !== 0 && (D(X), X = T(function() {
|
|
423
|
+
Ve();
|
|
424
|
+
}, R)));
|
|
425
|
+
}
|
|
426
|
+
if (he === S) {
|
|
427
|
+
if (ae !== "") {
|
|
428
|
+
t = ve, fe === "" && (fe = "message");
|
|
429
|
+
var je = new de(fe, {
|
|
430
|
+
data: ae.slice(1),
|
|
431
|
+
lastEventId: ve
|
|
432
|
+
});
|
|
433
|
+
if (e.dispatchEvent(je), fe === "open" ? V(e, e.onopen, je) : fe === "message" ? V(e, e.onmessage, je) : fe === "error" && V(e, e.onerror, je), G === g)
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
ae = "", fe = "";
|
|
437
|
+
}
|
|
438
|
+
he = Ae === 13 ? w : S;
|
|
439
|
+
} else
|
|
440
|
+
he === S && (Ue = me, he = I), he === I ? Ae === 58 && (Le = me + 1, he = U) : he === U && (he = J);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}, Xe = function(ce) {
|
|
444
|
+
if (G === a || G === c) {
|
|
445
|
+
G = n, X !== 0 && (D(X), X = 0), X = T(function() {
|
|
446
|
+
Ve();
|
|
447
|
+
}, u), u = pe(Math.min(_ * 16, u * 2)), e.readyState = c;
|
|
448
|
+
var le = new o("error", { error: ce });
|
|
449
|
+
e.dispatchEvent(le), V(e, e.onerror, le), ce != null && console.error(ce);
|
|
450
|
+
}
|
|
451
|
+
}, et = function() {
|
|
452
|
+
G = g, k != null && (k.abort(), k = void 0), X !== 0 && (D(X), X = 0), e.readyState = g;
|
|
453
|
+
}, Ve = function() {
|
|
454
|
+
if (X = 0, G !== n) {
|
|
455
|
+
if (!v && k != null)
|
|
456
|
+
Xe(new Error("No activity within " + R + " milliseconds. " + (G === c ? "No response received." : y + " chars received.") + " Reconnecting.")), k != null && (k.abort(), k = void 0);
|
|
457
|
+
else {
|
|
458
|
+
var ce = Math.max((v || Date.now()) + R - Date.now(), 1);
|
|
459
|
+
v = !1, X = T(function() {
|
|
460
|
+
Ve();
|
|
461
|
+
}, ce);
|
|
462
|
+
}
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
v = !1, y = 0, X = T(function() {
|
|
466
|
+
Ve();
|
|
467
|
+
}, R), G = c, ae = "", fe = "", ve = t, Ce = "", Ue = 0, Le = 0, he = S;
|
|
468
|
+
var le = d;
|
|
469
|
+
if (d.slice(0, 5) !== "data:" && d.slice(0, 5) !== "blob:" && t !== "") {
|
|
470
|
+
var Ee = d.indexOf("?");
|
|
471
|
+
le = Ee === -1 ? d : d.slice(0, Ee + 1) + d.slice(Ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ze, je) {
|
|
472
|
+
return je === E ? "" : ze;
|
|
473
|
+
}), le += (d.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(t);
|
|
474
|
+
}
|
|
475
|
+
var Ae = e.withCredentials, ge = {};
|
|
476
|
+
ge.Accept = "text/event-stream";
|
|
477
|
+
var me = e.headers;
|
|
478
|
+
if (me != null)
|
|
479
|
+
for (var ke in me)
|
|
480
|
+
Object.prototype.hasOwnProperty.call(me, ke) && (ge[ke] = me[ke]);
|
|
481
|
+
try {
|
|
482
|
+
k = j.open(ee, Je, He, Xe, le, Ae, ge);
|
|
483
|
+
} catch (ze) {
|
|
484
|
+
throw et(), ze;
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
e.url = d, e.readyState = c, e.withCredentials = s, e.headers = f, e._close = et, Ve();
|
|
488
|
+
}
|
|
489
|
+
q.prototype = Object.create(L.prototype), q.prototype.CONNECTING = c, q.prototype.OPEN = a, q.prototype.CLOSED = g, q.prototype.close = function() {
|
|
490
|
+
this._close();
|
|
491
|
+
}, q.CONNECTING = c, q.OPEN = a, q.CLOSED = g, q.prototype.withCredentials = void 0;
|
|
492
|
+
var $e = F;
|
|
493
|
+
x != null && (F == null || !("withCredentials" in F.prototype)) && ($e = q), function(e) {
|
|
494
|
+
{
|
|
495
|
+
var d = e(i);
|
|
496
|
+
d !== void 0 && (m.exports = d);
|
|
497
|
+
}
|
|
498
|
+
}(function(e) {
|
|
499
|
+
e.EventSourcePolyfill = q, e.NativeEventSource = F, e.EventSource = $e;
|
|
500
|
+
});
|
|
501
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ot : globalThis);
|
|
502
|
+
})(it, it.exports);
|
|
503
|
+
var Pt = it.exports;
|
|
504
|
+
const It = async (m) => {
|
|
505
|
+
const i = new URL(`${m.endpoint}/v1/tournaments/${m.tournamentid}/leaderboard`);
|
|
506
|
+
i.searchParams.append("language", m.language), i.searchParams.append("platform", m.platform), i.searchParams.append("pagination", `offset=${m.offset},limit=${m.limit}`);
|
|
507
|
+
const T = await (await fetch(i)).json();
|
|
508
|
+
return { items: T?.items, total: T?.total };
|
|
509
|
+
}, Yt = async (m) => {
|
|
510
|
+
const i = new URL(`${m.endpoint}/v1/tournaments/leaderboard/player`);
|
|
511
|
+
i.searchParams.append("language", m.language), i.searchParams.append("platform", m.platform), i.searchParams.append("filter", `includeUnqualifiedPlayer=${m.includeUnqualified ?? !1}`);
|
|
512
|
+
const D = (await (await fetch(i, { method: "GET", headers: pt(m.session) })).json())?.items?.find((x) => x?.tournament?.id === m.tournamentid);
|
|
513
|
+
return {
|
|
514
|
+
playerData: D?.tournament?.leaderBoard,
|
|
515
|
+
endRank: D?.endRank,
|
|
516
|
+
playerEnrolled: D?.tournament?.playerEnrolled
|
|
517
|
+
};
|
|
518
|
+
}, Nt = (m, i) => {
|
|
519
|
+
const l = new URL(`${m.endpoint}/v1/tournaments/${m.tournamentid}/leaderboard/updates`);
|
|
520
|
+
l.searchParams.append("HeartBeat", "false"), l.searchParams.append("language", m.language), l.searchParams.append("filter", "includeUnqualifiedPlayer=true"), l.searchParams.append("pagination", `offset=${m.offset},limit=${m.limit}`), l.searchParams.append("platform", m.platform);
|
|
521
|
+
const T = new Pt.EventSourcePolyfill(l, {
|
|
522
|
+
headers: { accept: "text/event-stream", "X-SessionId": m.session }
|
|
523
|
+
});
|
|
524
|
+
return T.onmessage = (D) => {
|
|
525
|
+
const x = JSON.parse(D.data);
|
|
526
|
+
x && x.messageType === "LeaderBoardUpdate" && i(x?.items);
|
|
527
|
+
}, T;
|
|
528
|
+
};
|
|
529
|
+
var vt = { exports: {} };
|
|
530
|
+
(function(m, i) {
|
|
531
|
+
(function(l, T) {
|
|
532
|
+
m.exports = T();
|
|
533
|
+
})(ot, function() {
|
|
534
|
+
var l = 1e3, T = 6e4, D = 36e5, x = "millisecond", P = "second", Q = "minute", F = "hour", B = "day", C = "week", H = "month", ye = "quarter", ie = "year", Y = "date", re = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|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, z = { 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(p) {
|
|
535
|
+
var o = ["th", "st", "nd", "rd"], n = p % 100;
|
|
536
|
+
return "[" + p + (o[(n - 20) % 10] || o[n] || o[0]) + "]";
|
|
537
|
+
} }, A = function(p, o, n) {
|
|
538
|
+
var c = String(p);
|
|
539
|
+
return !c || c.length >= o ? p : "" + Array(o + 1 - c.length).join(n) + p;
|
|
540
|
+
}, N = { s: A, z: function(p) {
|
|
541
|
+
var o = -p.utcOffset(), n = Math.abs(o), c = Math.floor(n / 60), a = n % 60;
|
|
542
|
+
return (o <= 0 ? "+" : "-") + A(c, 2, "0") + ":" + A(a, 2, "0");
|
|
543
|
+
}, m: function p(o, n) {
|
|
544
|
+
if (o.date() < n.date()) return -p(n, o);
|
|
545
|
+
var c = 12 * (n.year() - o.year()) + (n.month() - o.month()), a = o.clone().add(c, H), g = n - a < 0, w = o.clone().add(c + (g ? -1 : 1), H);
|
|
546
|
+
return +(-(c + (n - a) / (g ? a - w : w - a)) || 0);
|
|
547
|
+
}, a: function(p) {
|
|
548
|
+
return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
|
|
549
|
+
}, p: function(p) {
|
|
550
|
+
return { M: H, y: ie, w: C, d: B, D: Y, h: F, m: Q, s: P, ms: x, Q: ye }[p] || String(p || "").toLowerCase().replace(/s$/, "");
|
|
551
|
+
}, u: function(p) {
|
|
552
|
+
return p === void 0;
|
|
553
|
+
} }, W = "en", oe = {};
|
|
554
|
+
oe[W] = z;
|
|
555
|
+
var se = "$isDayjsObject", te = function(p) {
|
|
556
|
+
return p instanceof K || !(!p || !p[se]);
|
|
557
|
+
}, Z = function p(o, n, c) {
|
|
558
|
+
var a;
|
|
559
|
+
if (!o) return W;
|
|
560
|
+
if (typeof o == "string") {
|
|
561
|
+
var g = o.toLowerCase();
|
|
562
|
+
oe[g] && (a = g), n && (oe[g] = n, a = g);
|
|
563
|
+
var w = o.split("-");
|
|
564
|
+
if (!a && w.length > 1) return p(w[0]);
|
|
565
|
+
} else {
|
|
566
|
+
var S = o.name;
|
|
567
|
+
oe[S] = o, a = S;
|
|
568
|
+
}
|
|
569
|
+
return !c && a && (W = a), a || !c && W;
|
|
570
|
+
}, L = function(p, o) {
|
|
571
|
+
if (te(p)) return p.clone();
|
|
572
|
+
var n = typeof o == "object" ? o : {};
|
|
573
|
+
return n.date = p, n.args = arguments, new K(n);
|
|
574
|
+
}, M = N;
|
|
575
|
+
M.l = Z, M.i = te, M.w = function(p, o) {
|
|
576
|
+
return L(p, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
|
|
577
|
+
};
|
|
578
|
+
var K = function() {
|
|
579
|
+
function p(n) {
|
|
580
|
+
this.$L = Z(n.locale, null, !0), this.parse(n), this.$x = this.$x || n.x || {}, this[se] = !0;
|
|
581
|
+
}
|
|
582
|
+
var o = p.prototype;
|
|
583
|
+
return o.parse = function(n) {
|
|
584
|
+
this.$d = function(c) {
|
|
585
|
+
var a = c.date, g = c.utc;
|
|
586
|
+
if (a === null) return /* @__PURE__ */ new Date(NaN);
|
|
587
|
+
if (M.u(a)) return /* @__PURE__ */ new Date();
|
|
588
|
+
if (a instanceof Date) return new Date(a);
|
|
589
|
+
if (typeof a == "string" && !/Z$/i.test(a)) {
|
|
590
|
+
var w = a.match(b);
|
|
591
|
+
if (w) {
|
|
592
|
+
var S = w[2] - 1 || 0, I = (w[7] || "0").substring(0, 3);
|
|
593
|
+
return g ? new Date(Date.UTC(w[1], S, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, I)) : new Date(w[1], S, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, I);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
return new Date(a);
|
|
597
|
+
}(n), this.init();
|
|
598
|
+
}, o.init = function() {
|
|
599
|
+
var n = this.$d;
|
|
600
|
+
this.$y = n.getFullYear(), this.$M = n.getMonth(), this.$D = n.getDate(), this.$W = n.getDay(), this.$H = n.getHours(), this.$m = n.getMinutes(), this.$s = n.getSeconds(), this.$ms = n.getMilliseconds();
|
|
601
|
+
}, o.$utils = function() {
|
|
602
|
+
return M;
|
|
603
|
+
}, o.isValid = function() {
|
|
604
|
+
return this.$d.toString() !== re;
|
|
605
|
+
}, o.isSame = function(n, c) {
|
|
606
|
+
var a = L(n);
|
|
607
|
+
return this.startOf(c) <= a && a <= this.endOf(c);
|
|
608
|
+
}, o.isAfter = function(n, c) {
|
|
609
|
+
return L(n) < this.startOf(c);
|
|
610
|
+
}, o.isBefore = function(n, c) {
|
|
611
|
+
return this.endOf(c) < L(n);
|
|
612
|
+
}, o.$g = function(n, c, a) {
|
|
613
|
+
return M.u(n) ? this[c] : this.set(a, n);
|
|
614
|
+
}, o.unix = function() {
|
|
615
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
616
|
+
}, o.valueOf = function() {
|
|
617
|
+
return this.$d.getTime();
|
|
618
|
+
}, o.startOf = function(n, c) {
|
|
619
|
+
var a = this, g = !!M.u(c) || c, w = M.p(n), S = function(pe, V) {
|
|
620
|
+
var q = M.w(a.$u ? Date.UTC(a.$y, V, pe) : new Date(a.$y, V, pe), a);
|
|
621
|
+
return g ? q : q.endOf(B);
|
|
622
|
+
}, I = function(pe, V) {
|
|
623
|
+
return M.w(a.toDate()[pe].apply(a.toDate("s"), (g ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), a);
|
|
624
|
+
}, U = this.$W, J = this.$M, ue = this.$D, De = "set" + (this.$u ? "UTC" : "");
|
|
625
|
+
switch (w) {
|
|
626
|
+
case ie:
|
|
627
|
+
return g ? S(1, 0) : S(31, 11);
|
|
628
|
+
case H:
|
|
629
|
+
return g ? S(1, J) : S(0, J + 1);
|
|
630
|
+
case C:
|
|
631
|
+
var _e = this.$locale().weekStart || 0, be = (U < _e ? U + 7 : U) - _e;
|
|
632
|
+
return S(g ? ue - be : ue + (6 - be), J);
|
|
633
|
+
case B:
|
|
634
|
+
case Y:
|
|
635
|
+
return I(De + "Hours", 0);
|
|
636
|
+
case F:
|
|
637
|
+
return I(De + "Minutes", 1);
|
|
638
|
+
case Q:
|
|
639
|
+
return I(De + "Seconds", 2);
|
|
640
|
+
case P:
|
|
641
|
+
return I(De + "Milliseconds", 3);
|
|
642
|
+
default:
|
|
643
|
+
return this.clone();
|
|
644
|
+
}
|
|
645
|
+
}, o.endOf = function(n) {
|
|
646
|
+
return this.startOf(n, !1);
|
|
647
|
+
}, o.$set = function(n, c) {
|
|
648
|
+
var a, g = M.p(n), w = "set" + (this.$u ? "UTC" : ""), S = (a = {}, a[B] = w + "Date", a[Y] = w + "Date", a[H] = w + "Month", a[ie] = w + "FullYear", a[F] = w + "Hours", a[Q] = w + "Minutes", a[P] = w + "Seconds", a[x] = w + "Milliseconds", a)[g], I = g === B ? this.$D + (c - this.$W) : c;
|
|
649
|
+
if (g === H || g === ie) {
|
|
650
|
+
var U = this.clone().set(Y, 1);
|
|
651
|
+
U.$d[S](I), U.init(), this.$d = U.set(Y, Math.min(this.$D, U.daysInMonth())).$d;
|
|
652
|
+
} else S && this.$d[S](I);
|
|
653
|
+
return this.init(), this;
|
|
654
|
+
}, o.set = function(n, c) {
|
|
655
|
+
return this.clone().$set(n, c);
|
|
656
|
+
}, o.get = function(n) {
|
|
657
|
+
return this[M.p(n)]();
|
|
658
|
+
}, o.add = function(n, c) {
|
|
659
|
+
var a, g = this;
|
|
660
|
+
n = Number(n);
|
|
661
|
+
var w = M.p(c), S = function(J) {
|
|
662
|
+
var ue = L(g);
|
|
663
|
+
return M.w(ue.date(ue.date() + Math.round(J * n)), g);
|
|
664
|
+
};
|
|
665
|
+
if (w === H) return this.set(H, this.$M + n);
|
|
666
|
+
if (w === ie) return this.set(ie, this.$y + n);
|
|
667
|
+
if (w === B) return S(1);
|
|
668
|
+
if (w === C) return S(7);
|
|
669
|
+
var I = (a = {}, a[Q] = T, a[F] = D, a[P] = l, a)[w] || 1, U = this.$d.getTime() + n * I;
|
|
670
|
+
return M.w(U, this);
|
|
671
|
+
}, o.subtract = function(n, c) {
|
|
672
|
+
return this.add(-1 * n, c);
|
|
673
|
+
}, o.format = function(n) {
|
|
674
|
+
var c = this, a = this.$locale();
|
|
675
|
+
if (!this.isValid()) return a.invalidDate || re;
|
|
676
|
+
var g = n || "YYYY-MM-DDTHH:mm:ssZ", w = M.z(this), S = this.$H, I = this.$m, U = this.$M, J = a.weekdays, ue = a.months, De = a.meridiem, _e = function(V, q, Se, xe) {
|
|
677
|
+
return V && (V[q] || V(c, g)) || Se[q].slice(0, xe);
|
|
678
|
+
}, be = function(V) {
|
|
679
|
+
return M.s(S % 12 || 12, V, "0");
|
|
680
|
+
}, pe = De || function(V, q, Se) {
|
|
681
|
+
var xe = V < 12 ? "AM" : "PM";
|
|
682
|
+
return Se ? xe.toLowerCase() : xe;
|
|
683
|
+
};
|
|
684
|
+
return g.replace($, function(V, q) {
|
|
685
|
+
return q || function(Se) {
|
|
686
|
+
switch (Se) {
|
|
687
|
+
case "YY":
|
|
688
|
+
return String(c.$y).slice(-2);
|
|
689
|
+
case "YYYY":
|
|
690
|
+
return M.s(c.$y, 4, "0");
|
|
691
|
+
case "M":
|
|
692
|
+
return U + 1;
|
|
693
|
+
case "MM":
|
|
694
|
+
return M.s(U + 1, 2, "0");
|
|
695
|
+
case "MMM":
|
|
696
|
+
return _e(a.monthsShort, U, ue, 3);
|
|
697
|
+
case "MMMM":
|
|
698
|
+
return _e(ue, U);
|
|
699
|
+
case "D":
|
|
700
|
+
return c.$D;
|
|
701
|
+
case "DD":
|
|
702
|
+
return M.s(c.$D, 2, "0");
|
|
703
|
+
case "d":
|
|
704
|
+
return String(c.$W);
|
|
705
|
+
case "dd":
|
|
706
|
+
return _e(a.weekdaysMin, c.$W, J, 2);
|
|
707
|
+
case "ddd":
|
|
708
|
+
return _e(a.weekdaysShort, c.$W, J, 3);
|
|
709
|
+
case "dddd":
|
|
710
|
+
return J[c.$W];
|
|
711
|
+
case "H":
|
|
712
|
+
return String(S);
|
|
713
|
+
case "HH":
|
|
714
|
+
return M.s(S, 2, "0");
|
|
715
|
+
case "h":
|
|
716
|
+
return be(1);
|
|
717
|
+
case "hh":
|
|
718
|
+
return be(2);
|
|
719
|
+
case "a":
|
|
720
|
+
return pe(S, I, !0);
|
|
721
|
+
case "A":
|
|
722
|
+
return pe(S, I, !1);
|
|
723
|
+
case "m":
|
|
724
|
+
return String(I);
|
|
725
|
+
case "mm":
|
|
726
|
+
return M.s(I, 2, "0");
|
|
727
|
+
case "s":
|
|
728
|
+
return String(c.$s);
|
|
729
|
+
case "ss":
|
|
730
|
+
return M.s(c.$s, 2, "0");
|
|
731
|
+
case "SSS":
|
|
732
|
+
return M.s(c.$ms, 3, "0");
|
|
733
|
+
case "Z":
|
|
734
|
+
return w;
|
|
735
|
+
}
|
|
736
|
+
return null;
|
|
737
|
+
}(V) || w.replace(":", "");
|
|
738
|
+
});
|
|
739
|
+
}, o.utcOffset = function() {
|
|
740
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
741
|
+
}, o.diff = function(n, c, a) {
|
|
742
|
+
var g, w = this, S = M.p(c), I = L(n), U = (I.utcOffset() - this.utcOffset()) * T, J = this - I, ue = function() {
|
|
743
|
+
return M.m(w, I);
|
|
744
|
+
};
|
|
745
|
+
switch (S) {
|
|
746
|
+
case ie:
|
|
747
|
+
g = ue() / 12;
|
|
748
|
+
break;
|
|
749
|
+
case H:
|
|
750
|
+
g = ue();
|
|
751
|
+
break;
|
|
752
|
+
case ye:
|
|
753
|
+
g = ue() / 3;
|
|
754
|
+
break;
|
|
755
|
+
case C:
|
|
756
|
+
g = (J - U) / 6048e5;
|
|
757
|
+
break;
|
|
758
|
+
case B:
|
|
759
|
+
g = (J - U) / 864e5;
|
|
760
|
+
break;
|
|
761
|
+
case F:
|
|
762
|
+
g = J / D;
|
|
763
|
+
break;
|
|
764
|
+
case Q:
|
|
765
|
+
g = J / T;
|
|
766
|
+
break;
|
|
767
|
+
case P:
|
|
768
|
+
g = J / l;
|
|
769
|
+
break;
|
|
770
|
+
default:
|
|
771
|
+
g = J;
|
|
772
|
+
}
|
|
773
|
+
return a ? g : M.a(g);
|
|
774
|
+
}, o.daysInMonth = function() {
|
|
775
|
+
return this.endOf(H).$D;
|
|
776
|
+
}, o.$locale = function() {
|
|
777
|
+
return oe[this.$L];
|
|
778
|
+
}, o.locale = function(n, c) {
|
|
779
|
+
if (!n) return this.$L;
|
|
780
|
+
var a = this.clone(), g = Z(n, c, !0);
|
|
781
|
+
return g && (a.$L = g), a;
|
|
782
|
+
}, o.clone = function() {
|
|
783
|
+
return M.w(this.$d, this);
|
|
784
|
+
}, o.toDate = function() {
|
|
785
|
+
return new Date(this.valueOf());
|
|
786
|
+
}, o.toJSON = function() {
|
|
787
|
+
return this.isValid() ? this.toISOString() : null;
|
|
788
|
+
}, o.toISOString = function() {
|
|
789
|
+
return this.$d.toISOString();
|
|
790
|
+
}, o.toString = function() {
|
|
791
|
+
return this.$d.toUTCString();
|
|
792
|
+
}, p;
|
|
793
|
+
}(), de = K.prototype;
|
|
794
|
+
return L.prototype = de, [["$ms", x], ["$s", P], ["$m", Q], ["$H", F], ["$W", B], ["$M", H], ["$y", ie], ["$D", Y]].forEach(function(p) {
|
|
795
|
+
de[p[1]] = function(o) {
|
|
796
|
+
return this.$g(o, p[0], p[1]);
|
|
797
|
+
};
|
|
798
|
+
}), L.extend = function(p, o) {
|
|
799
|
+
return p.$i || (p(o, K, L), p.$i = !0), L;
|
|
800
|
+
}, L.locale = Z, L.isDayjs = te, L.unix = function(p) {
|
|
801
|
+
return L(1e3 * p);
|
|
802
|
+
}, L.en = oe[W], L.Ls = oe, L.p = {}, L;
|
|
803
|
+
});
|
|
804
|
+
})(vt);
|
|
805
|
+
var Ht = vt.exports;
|
|
806
|
+
const Ft = /* @__PURE__ */ mt(Ht);
|
|
807
|
+
var gt = { exports: {} };
|
|
808
|
+
(function(m, i) {
|
|
809
|
+
(function(l, T) {
|
|
810
|
+
m.exports = T();
|
|
811
|
+
})(ot, function() {
|
|
812
|
+
var l = { 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" }, T = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, D = /\d/, x = /\d\d/, P = /\d\d?/, Q = /\d*[^-_:/,()\s\d]+/, F = {}, B = function(b) {
|
|
813
|
+
return (b = +b) + (b > 68 ? 1900 : 2e3);
|
|
814
|
+
}, C = function(b) {
|
|
815
|
+
return function($) {
|
|
816
|
+
this[b] = +$;
|
|
817
|
+
};
|
|
818
|
+
}, H = [/[+-]\d\d:?(\d\d)?|Z/, function(b) {
|
|
819
|
+
(this.zone || (this.zone = {})).offset = function($) {
|
|
820
|
+
if (!$ || $ === "Z") return 0;
|
|
821
|
+
var z = $.match(/([+-]|\d\d)/g), A = 60 * z[1] + (+z[2] || 0);
|
|
822
|
+
return A === 0 ? 0 : z[0] === "+" ? -A : A;
|
|
823
|
+
}(b);
|
|
824
|
+
}], ye = function(b) {
|
|
825
|
+
var $ = F[b];
|
|
826
|
+
return $ && ($.indexOf ? $ : $.s.concat($.f));
|
|
827
|
+
}, ie = function(b, $) {
|
|
828
|
+
var z, A = F.meridiem;
|
|
829
|
+
if (A) {
|
|
830
|
+
for (var N = 1; N <= 24; N += 1) if (b.indexOf(A(N, 0, $)) > -1) {
|
|
831
|
+
z = N > 12;
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
} else z = b === ($ ? "pm" : "PM");
|
|
835
|
+
return z;
|
|
836
|
+
}, Y = { A: [Q, function(b) {
|
|
837
|
+
this.afternoon = ie(b, !1);
|
|
838
|
+
}], a: [Q, function(b) {
|
|
839
|
+
this.afternoon = ie(b, !0);
|
|
840
|
+
}], Q: [D, function(b) {
|
|
841
|
+
this.month = 3 * (b - 1) + 1;
|
|
842
|
+
}], S: [D, function(b) {
|
|
843
|
+
this.milliseconds = 100 * +b;
|
|
844
|
+
}], SS: [x, function(b) {
|
|
845
|
+
this.milliseconds = 10 * +b;
|
|
846
|
+
}], SSS: [/\d{3}/, function(b) {
|
|
847
|
+
this.milliseconds = +b;
|
|
848
|
+
}], s: [P, C("seconds")], ss: [P, C("seconds")], m: [P, C("minutes")], mm: [P, C("minutes")], H: [P, C("hours")], h: [P, C("hours")], HH: [P, C("hours")], hh: [P, C("hours")], D: [P, C("day")], DD: [x, C("day")], Do: [Q, function(b) {
|
|
849
|
+
var $ = F.ordinal, z = b.match(/\d+/);
|
|
850
|
+
if (this.day = z[0], $) for (var A = 1; A <= 31; A += 1) $(A).replace(/\[|\]/g, "") === b && (this.day = A);
|
|
851
|
+
}], w: [P, C("week")], ww: [x, C("week")], M: [P, C("month")], MM: [x, C("month")], MMM: [Q, function(b) {
|
|
852
|
+
var $ = ye("months"), z = (ye("monthsShort") || $.map(function(A) {
|
|
853
|
+
return A.slice(0, 3);
|
|
854
|
+
})).indexOf(b) + 1;
|
|
855
|
+
if (z < 1) throw new Error();
|
|
856
|
+
this.month = z % 12 || z;
|
|
857
|
+
}], MMMM: [Q, function(b) {
|
|
858
|
+
var $ = ye("months").indexOf(b) + 1;
|
|
859
|
+
if ($ < 1) throw new Error();
|
|
860
|
+
this.month = $ % 12 || $;
|
|
861
|
+
}], Y: [/[+-]?\d+/, C("year")], YY: [x, function(b) {
|
|
862
|
+
this.year = B(b);
|
|
863
|
+
}], YYYY: [/\d{4}/, C("year")], Z: H, ZZ: H };
|
|
864
|
+
function re(b) {
|
|
865
|
+
var $, z;
|
|
866
|
+
$ = b, z = F && F.formats;
|
|
867
|
+
for (var A = (b = $.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(L, M, K) {
|
|
868
|
+
var de = K && K.toUpperCase();
|
|
869
|
+
return M || z[K] || l[K] || z[de].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(p, o, n) {
|
|
870
|
+
return o || n.slice(1);
|
|
871
|
+
});
|
|
872
|
+
})).match(T), N = A.length, W = 0; W < N; W += 1) {
|
|
873
|
+
var oe = A[W], se = Y[oe], te = se && se[0], Z = se && se[1];
|
|
874
|
+
A[W] = Z ? { regex: te, parser: Z } : oe.replace(/^\[|\]$/g, "");
|
|
875
|
+
}
|
|
876
|
+
return function(L) {
|
|
877
|
+
for (var M = {}, K = 0, de = 0; K < N; K += 1) {
|
|
878
|
+
var p = A[K];
|
|
879
|
+
if (typeof p == "string") de += p.length;
|
|
880
|
+
else {
|
|
881
|
+
var o = p.regex, n = p.parser, c = L.slice(de), a = o.exec(c)[0];
|
|
882
|
+
n.call(M, a), L = L.replace(a, "");
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
return function(g) {
|
|
886
|
+
var w = g.afternoon;
|
|
887
|
+
if (w !== void 0) {
|
|
888
|
+
var S = g.hours;
|
|
889
|
+
w ? S < 12 && (g.hours += 12) : S === 12 && (g.hours = 0), delete g.afternoon;
|
|
890
|
+
}
|
|
891
|
+
}(M), M;
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
return function(b, $, z) {
|
|
895
|
+
z.p.customParseFormat = !0, b && b.parseTwoDigitYear && (B = b.parseTwoDigitYear);
|
|
896
|
+
var A = $.prototype, N = A.parse;
|
|
897
|
+
A.parse = function(W) {
|
|
898
|
+
var oe = W.date, se = W.utc, te = W.args;
|
|
899
|
+
this.$u = se;
|
|
900
|
+
var Z = te[1];
|
|
901
|
+
if (typeof Z == "string") {
|
|
902
|
+
var L = te[2] === !0, M = te[3] === !0, K = L || M, de = te[2];
|
|
903
|
+
M && (de = te[2]), F = this.$locale(), !L && de && (F = z.Ls[de]), this.$d = function(c, a, g, w) {
|
|
904
|
+
try {
|
|
905
|
+
if (["x", "X"].indexOf(a) > -1) return new Date((a === "X" ? 1e3 : 1) * c);
|
|
906
|
+
var S = re(a)(c), I = S.year, U = S.month, J = S.day, ue = S.hours, De = S.minutes, _e = S.seconds, be = S.milliseconds, pe = S.zone, V = S.week, q = /* @__PURE__ */ new Date(), Se = J || (I || U ? 1 : q.getDate()), xe = I || q.getFullYear(), Ye = 0;
|
|
907
|
+
I && !U || (Ye = U > 0 ? U - 1 : q.getMonth());
|
|
908
|
+
var $e, e = ue || 0, d = De || 0, h = _e || 0, s = be || 0;
|
|
909
|
+
return pe ? new Date(Date.UTC(xe, Ye, Se, e, d, h, s + 60 * pe.offset * 1e3)) : g ? new Date(Date.UTC(xe, Ye, Se, e, d, h, s)) : ($e = new Date(xe, Ye, Se, e, d, h, s), V && ($e = w($e).week(V).toDate()), $e);
|
|
910
|
+
} catch {
|
|
911
|
+
return /* @__PURE__ */ new Date("");
|
|
912
|
+
}
|
|
913
|
+
}(oe, Z, se, z), this.init(), de && de !== !0 && (this.$L = this.locale(de).$L), K && oe != this.format(Z) && (this.$d = /* @__PURE__ */ new Date("")), F = {};
|
|
914
|
+
} else if (Z instanceof Array) for (var p = Z.length, o = 1; o <= p; o += 1) {
|
|
915
|
+
te[1] = Z[o - 1];
|
|
916
|
+
var n = z.apply(this, te);
|
|
917
|
+
if (n.isValid()) {
|
|
918
|
+
this.$d = n.$d, this.$L = n.$L, this.init();
|
|
919
|
+
break;
|
|
920
|
+
}
|
|
921
|
+
o === p && (this.$d = /* @__PURE__ */ new Date(""));
|
|
922
|
+
}
|
|
923
|
+
else N.call(this, W);
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
});
|
|
927
|
+
})(gt);
|
|
928
|
+
var Bt = gt.exports;
|
|
929
|
+
const Ut = /* @__PURE__ */ mt(Bt);
|
|
930
|
+
Ft.extend(Ut);
|
|
931
|
+
const pn = () => typeof window > "u";
|
|
932
|
+
class vn {
|
|
933
|
+
constructor() {
|
|
934
|
+
}
|
|
935
|
+
static processMinMax(i, l) {
|
|
936
|
+
return {
|
|
937
|
+
minValue: i ? `: ${i}` : null,
|
|
938
|
+
maxValue: l ? `: ${l}` : null
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
static generateCasinoRule(i, l) {
|
|
942
|
+
const T = ` ~ ${i("unlimited")}`, D = l.currency || "EUR", x = l.minStake?.amount[D] ? `: ${l.minStake.amount[D]} ${D}` : T, P = l.maxStake?.amount[D] ? `: ${l.maxStake.amount[D]} ${D}` : T;
|
|
943
|
+
return i("casinoRuleMinMaxBet", { values: { minBet: x, maxBet: P } });
|
|
944
|
+
}
|
|
945
|
+
static generateSportsRule(i, l) {
|
|
946
|
+
const T = [], D = ` ~ ${i("unlimited")}`, x = l.currency || "EUR", P = l.minStake?.amount[x] ? `: ${l.minStake.amount[x]} ${x}` : D, Q = l.maxStake?.amount[x] ? `: ${l.maxStake.amount[x]} ${x}` : D;
|
|
947
|
+
T.push(i("sportsRuleMinMaxBet", { values: { sportMinBet: P, sportMaxBet: Q } }));
|
|
948
|
+
const F = l.config.liveMatch === "true", B = l.config.preLiveMatch === "true";
|
|
949
|
+
F && B ? T.push(i("matchTypePreAndLive")) : F ? T.push(`${i("matchTypeLive")}`) : B && T.push(`${i("matchTyppePre")}`);
|
|
950
|
+
const C = l.combination, H = [];
|
|
951
|
+
C.single.isEligible && H.push(i("betTypeSingle"));
|
|
952
|
+
const ie = {
|
|
953
|
+
null: i("typeOfSelectionAny"),
|
|
954
|
+
true: i("bankerOnly"),
|
|
955
|
+
false: i("nonBankerOnly")
|
|
956
|
+
}, Y = {
|
|
957
|
+
unspecific: i("typeOfSelectionAny"),
|
|
958
|
+
all: i("betBuilderOnly"),
|
|
959
|
+
none: i("notBuilderOnly")
|
|
960
|
+
};
|
|
961
|
+
let re = "", b = "";
|
|
962
|
+
const $ = `${i("oddsPerSelection")}: ${l.config.minOdds || i("unlimited")} - ${l.config.maxOdds || i("unlimited")}`, z = C.system.isEligible, A = C.multiple.isEligible;
|
|
963
|
+
z && (re = ` ${i("betTypeSystem")}
|
|
964
|
+
( ${i("typeOfSelection")}: ${ie[l.combination.system.banker?.include?.toString() || "null"]},
|
|
965
|
+
${i("numberOfSelection")}:
|
|
966
|
+
${C.system.minSelection?.number || i("unlimited")} - ${C.system.maxSelection?.number || i("unlimited")},
|
|
967
|
+
${$} ) `), A && (b = ` ${i("betTypeMultiple")}
|
|
968
|
+
( ${i("typeOfSelection")}: ${Y[l.combination.multiple.betBuilder?.mode?.toString() || "unspecific"]},
|
|
969
|
+
${i("numberOfSelection")}:
|
|
970
|
+
${C.multiple.minSelection?.number || i("unlimited")} - ${C.multiple.maxSelection?.number || i("unlimited")},
|
|
971
|
+
${$} ) `), z && A ? H.push(b + i("and") + re) : z ? H.push(re) : A && H.push(b), T.push(H.join(", "));
|
|
972
|
+
const N = l.config.minTotalOdds ? `: ${l.config.minTotalOdds}` : D, W = l.config.maxTotalOdds ? `: ${l.config.maxTotalOdds}` : D;
|
|
973
|
+
return T.push(`${i("sportsRuleMinMaxOdds", { values: { sportMinOdds: N, sportMaxOdds: W } })}`), T;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
const gn = (m, i = 3) => {
|
|
977
|
+
const l = [];
|
|
978
|
+
for (const T of [...m ?? []].sort((D, x) => D.rank - x.rank)) {
|
|
979
|
+
const D = T?.name?.trim();
|
|
980
|
+
if (D && !l.includes(D) && l.push(D), l.length === i)
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
return l;
|
|
984
|
+
}, at = 20, Xt = 5, jt = 20, qt = "1500px 0px", yn = 24, bn = "1000px 0px", wn = {
|
|
985
|
+
BetCount: "scoreCriteriaType.mostRounds",
|
|
986
|
+
WinStakeRatio: "scoreCriteriaType.winStakeRatio",
|
|
987
|
+
MaxWinStakeRatio: "scoreCriteriaType.maxWinStakeRatio",
|
|
988
|
+
Stake: "scoreCriteriaType.stake",
|
|
989
|
+
Win: "scoreCriteriaType.win",
|
|
990
|
+
WinBetCount: "scoreCriteriaType.winBetCount"
|
|
991
|
+
}, _n = [
|
|
992
|
+
{ id: "rules", label: "rulesPrizesTab" },
|
|
993
|
+
{ id: "leaderboard", label: "leaderboardTab" },
|
|
994
|
+
{ id: "games", label: "gamesTab" }
|
|
995
|
+
], Sn = 3, xn = 4, En = 8, An = 12, Vt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAABgFBMVEXi4NDm16wJZN5qXCKdkHgqZapnYGaaaTatkWEsofe0tGo3KhwSYd0IY+QzoPfVolcVFXEKK4sYc9Y0ovpkq8uPdlSOeW+jil6vusbEgz3//6olF50Af38lkvpvSS1Nfplyj6Ff1f+/fz+0amqan5uf1OT/tLT//wAwNmAGHn07UnsNSbt/AABoRSp5SiN4ZkprYFh8fXN/f/9fv/9Pu/xXx/2qqqr/f3/DrnX/0nYAAADHtqjLtZQXh/DXx6+5ppHCqpJVxfyuh0/OqGusl4a1mXDk1bYOZs4Af/+meUjXtXAAAP2qiGfSolfSm1AXddQA//9s2v64l1nqxXNNuP3z5sEAVf8ReuyNakuYc0vArqLhqlgalfo2u/4DPrwNZtswkdkwpvZSqP9CpemRlperqqnEnGnYw5Hxt1v///8ZW7ILbecwhs8xmedVVVVizP6FjpiKpayudzu7pHbHjEXitWbixon96JANScUKTckNWtBOZIVOmMxb2v9/f39vpbe+KJb7AAAAgHRSTlP//6Qc5f79/6IXAxknUs/nCv/qYv1U/3L//wMIApuX///rBAP//wMBev9jJgJC/zdFkgIIarsDArT+AP7+/v/+/fz+/v79//wC//8C//v++gH9//77/wP9/v/+/v7+BdL//AX///7+/v4B/+///gP+///////9//4YLmr9/v8C/U9F5AAAAAM1SURBVHjadZR3exM5EMa17iEhlXQChH69AneSVtJWe9e77sY9seNKCumFFPLVmXXI4UvC/KFnH81v3xmNRoPwgKWGYPnrLcbx94PbGA18r2E89Peb5dGl+8DH7oQ8ZEpJX1woteokYO9Tt6DUGl6byqVfpBXParJvBLAbEIhPjSrpKySXU5RGAbAPrwahIby2lEunt5XtXLNeb+YAq1U3IObHb1AMD3ky29tKc2urubU5WW+en18+eRIYxp+vIWAaF8sQp7G5ef7gcnf3OaeabR8eHgf8w9fQn/FR5QE4W4F927aPjo66XUqpKHPtuOv3tAC6h3/nWt9s8DFGYKXcEPtCGMfT2N+HXuLIvx0hBCEC/ufcMIyMqmYyGZ0IaRY0APqAI1mXg08Dzz6smmFnMmpWVcsARUCjD40d6sRx1YymJlxVtdRSOGyF90qWIOLoH7zgQQs4YgvCwamqpWLJoF2uU0a57hBC7DEQAegehOOEGJblCNZGKM9QW8ojyB92NfeqBM/wrAc5OjHz+fYcaqO5HVNiml05cAAahuN5StNZOBlhTAJfq4XQDkF5p3Pcmy8S4f4GV4OgWH5JkDLXdc7ySGq92HnOTIlavTHLIKIyDSoI1Ia7lHB9ZkYneYnO7YR2ecY0mRM2oHKVWfwUoBQep5QIPRDgZl64eksK7IWpaRrzRQ5QpK8Ux3FDa5dBizFT/zW8jxyruEcZhCdC7UWgRn0oUCl7EDFpuESYaSLmMDA48pj6CL/z7u4VDlQ4KfcP6FAE6TC4Q63TSSTcyiMokQc9xX9kXUgSjEIH2JrmJsAO5vesYsjvNSfyWvQXted2vFbJZrOHiQPVKhVDocePg8mCLxb72nQPf34900tcO8+CwWA0KtdqVVneGMHXENzhj6EzcNaT0StLNmoNWS6s/oQffnstfjzik6tVORkNTvwwMbG+WZdBxjeOY4Pvbhzj06QMUHR9fX0ymUzKBd8n/JX57wXHUvjEV4D/5S3IBSLBo1u5PQvgUX/ybXgYIKeLgyNjYKrE+9hqNLp6ujIwCG6MHhwDz+LJCXytxL83nzzMyyP1f+QWBEFT8Ztbt6G77At9BjvkWHKpLwAAAABJRU5ErkJggg==";
|
|
996
|
+
var Gt = Re('<span class="tournament-leaderboard__prize svelte-1mz4he7"><img class="tournament-leaderboard__prize-icon svelte-1mz4he7" alt="" width="18" height="18"/> <span class="tournament-leaderboard__prize-name svelte-1mz4he7"> </span></span>'), Qt = Re('<span class="tournament-leaderboard__prize svelte-1mz4he7">-</span>'), Wt = Re('<div class="tournament-leaderboard__skeleton svelte-1mz4he7"></div>'), Kt = Re('<div class="tournament-leaderboard__list svelte-1mz4he7" aria-busy="true"></div>'), Zt = Re('<div class="tournament-leaderboard__empty svelte-1mz4he7"><p class="tournament-leaderboard__empty-title svelte-1mz4he7"> </p> <p class="tournament-leaderboard__empty-description svelte-1mz4he7"> </p></div>'), Jt = Re('<div class="tournament-leaderboard__sentinel svelte-1mz4he7"></div>'), en = Re('<li><span class="tournament-leaderboard__rank svelte-1mz4he7"> </span> <span class="tournament-leaderboard__name svelte-1mz4he7"> </span> <span class="tournament-leaderboard__score svelte-1mz4he7"> </span> <!></li>'), tn = Re('<div class="tournament-leaderboard__remaining svelte-1mz4he7" aria-hidden="true"></div>'), nn = Re('<!> <ol class="tournament-leaderboard__list svelte-1mz4he7"></ol> <!>', 1), rn = Re('<div><button type="button" class="tournament-leaderboard__row tournament-leaderboard__row--sticky svelte-1mz4he7"><span class="tournament-leaderboard__rank svelte-1mz4he7"> </span> <span class="tournament-leaderboard__name svelte-1mz4he7"> </span> <span class="tournament-leaderboard__score svelte-1mz4he7"> </span> <!></button></div>'), an = Re('<div class="tournament-leaderboard svelte-1mz4he7"><!> <!></div>');
|
|
997
|
+
const on = {
|
|
998
|
+
hash: "svelte-1mz4he7",
|
|
999
|
+
code: `.tournament-leaderboard.svelte-1mz4he7 {position:relative;display:flex;flex-direction:column;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;line-height:1.4;.tournament-leaderboard__list:where(.svelte-1mz4he7) {display:flex;flex-direction:column;gap:8px;margin:0;padding:17px 17px 2px 0;list-style:none;}.tournament-leaderboard__row:where(.svelte-1mz4he7) {box-sizing:border-box;display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));align-items:center;gap:12px;width:100%;min-height:40px;padding:6px 16px;border:0;border-radius:0;background:transparent;color:inherit;font-size:16px;font-weight:600;text-align:left;color:var(--text-default, rgba(223, 227, 232, 1));}.tournament-leaderboard__rank:where(.svelte-1mz4he7),
|
|
1000
|
+
.tournament-leaderboard__score:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-variant-numeric:tabular-nums;}.tournament-leaderboard__name:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;overflow-wrap:anywhere;}.tournament-leaderboard__prize:where(.svelte-1mz4he7) {display:flex;align-items:center;gap:6px;min-width:0;}.tournament-leaderboard__prize-icon:where(.svelte-1mz4he7) {flex-shrink:0;width:18px;height:18px;}.tournament-leaderboard__prize-name:where(.svelte-1mz4he7) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.tournament-leaderboard__row--player:where(.svelte-1mz4he7),
|
|
1001
|
+
.tournament-leaderboard__row--sticky:where(.svelte-1mz4he7) {background:linear-gradient(90deg, rgba(255, 204, 0, 0.45) 0%, rgba(255, 204, 0, 0.12) 100%),
|
|
1002
|
+
var(--bg-surface-level-1, rgba(2, 38, 82, 1));.tournament-leaderboard__rank:where(.svelte-1mz4he7),
|
|
1003
|
+
.tournament-leaderboard__name:where(.svelte-1mz4he7),
|
|
1004
|
+
.tournament-leaderboard__score:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;}.tournament-leaderboard__prize:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));}}.tournament-leaderboard__row--player:where(.svelte-1mz4he7) {border:1.5px solid var(--border-alert, rgba(255, 204, 0, 1));border-radius:12px;}.tournament-leaderboard__sticky:where(.svelte-1mz4he7) {position:sticky;bottom:0;z-index:2;margin-top:8px;}.tournament-leaderboard__sticky--hidden:where(.svelte-1mz4he7) {visibility:hidden;pointer-events:none;}.tournament-leaderboard__row--sticky:where(.svelte-1mz4he7) {border-top:1px solid var(--border-alert, rgba(255, 204, 0, 1));cursor:pointer;}.tournament-leaderboard__sentinel:where(.svelte-1mz4he7) {height:1px;}.tournament-leaderboard__remaining:where(.svelte-1mz4he7) {--row-pitch: 48px;height:calc(var(--remaining) * var(--row-pitch));margin-top:4px;background:repeating-linear-gradient(
|
|
1005
|
+
to bottom,
|
|
1006
|
+
var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05)) 0 calc(var(--row-pitch) - 12px),
|
|
1007
|
+
transparent calc(var(--row-pitch) - 12px) var(--row-pitch)
|
|
1008
|
+
);border-radius:8px;}.tournament-leaderboard__skeleton:where(.svelte-1mz4he7) {display:block;height:36px;margin:4px 0;border-radius:8px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
1009
|
+
animation: svelte-1mz4he7-tournament-leaderboard-pulse 1.2s ease-in-out infinite;}.tournament-leaderboard__empty:where(.svelte-1mz4he7) {display:flex;flex-direction:column;align-items:center;gap:8px;padding:63px 16px;text-align:center;p:where(.svelte-1mz4he7) {margin:0;}}.tournament-leaderboard__empty-title:where(.svelte-1mz4he7) {color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;font-weight:700;}.tournament-leaderboard__empty-description:where(.svelte-1mz4he7) {max-width:340px;color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-size:14px;font-weight:500;}}
|
|
1010
|
+
|
|
1011
|
+
@keyframes svelte-1mz4he7-tournament-leaderboard-pulse {
|
|
1012
|
+
50% {
|
|
1013
|
+
opacity: 0.5;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
@media (max-width: 767px) {.tournament-leaderboard.svelte-1mz4he7 {.tournament-leaderboard__row:where(.svelte-1mz4he7) {grid-template-columns:36px minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.6fr);min-height:0;padding:8px 12px;}}
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
@media (prefers-reduced-motion: reduce) {.tournament-leaderboard.svelte-1mz4he7 .tournament-leaderboard__skeleton:where(.svelte-1mz4he7) {
|
|
1021
|
+
animation: none;}
|
|
1022
|
+
}`
|
|
1023
|
+
};
|
|
1024
|
+
function sn(m, i) {
|
|
1025
|
+
wt(i, !0), _t(m, on);
|
|
1026
|
+
const l = () => Rt(Ct, "$_", T), [T, D] = Mt(), x = (t, u = ft, v = ft) => {
|
|
1027
|
+
var y = rt(), f = Ze(y);
|
|
1028
|
+
{
|
|
1029
|
+
var O = (j) => {
|
|
1030
|
+
var k = Gt(), X = qe(k), G = Oe(X, 2), ae = Pe(G, !0);
|
|
1031
|
+
Ne(k), Qe(
|
|
1032
|
+
(ve) => {
|
|
1033
|
+
We(X, "src", Vt), Ie(ae, ve);
|
|
1034
|
+
},
|
|
1035
|
+
[() => v() ? l()("notQualified") : u()]
|
|
1036
|
+
), we(j, k);
|
|
1037
|
+
}, ee = (j) => {
|
|
1038
|
+
var k = Qt();
|
|
1039
|
+
we(j, k);
|
|
1040
|
+
};
|
|
1041
|
+
Ge(f, (j) => {
|
|
1042
|
+
v() || u() ? j(O) : j(ee, -1);
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
we(t, y);
|
|
1046
|
+
}, P = Fe(i, "endpoint", 7), Q = Fe(i, "language", 7, "en"), F = Fe(i, "session", 7), B = Fe(i, "tournamentid", 7), C = Fe(i, "platform", 7), H = Fe(i, "translationurl", 7), ye = Fe(i, "newlyEnrolled", 7);
|
|
1047
|
+
St(kt), dt(Q());
|
|
1048
|
+
const ie = () => {
|
|
1049
|
+
dt(Q());
|
|
1050
|
+
};
|
|
1051
|
+
xt(() => {
|
|
1052
|
+
H() && Dt(H());
|
|
1053
|
+
}), Ke(() => {
|
|
1054
|
+
ie();
|
|
1055
|
+
});
|
|
1056
|
+
let Y = Te(Et([])), re = Te(0), b = Te(0), $ = Te(!0), z = Te(!1), A = Te(!1), N = Te(void 0), W = Te(void 0), oe = Te(!1), se = Te(!1), te = null, Z = Te(null);
|
|
1057
|
+
const L = Me(() => r(re) + r(Y).length), M = Me(() => r(L) < r(b)), K = Me(() => r(re) > 0), de = Me(() => Math.max(r(b) - r(L), 0));
|
|
1058
|
+
let p = Te(null);
|
|
1059
|
+
Ke(() => {
|
|
1060
|
+
!r(Z) || !r(Y).length || tt().then(() => {
|
|
1061
|
+
r(Z) && r(Y).length && ne(p, (r(Z).offsetHeight + 4) / r(Y).length);
|
|
1062
|
+
});
|
|
1063
|
+
});
|
|
1064
|
+
const o = Me(() => r(N)?.rank ?? r(W));
|
|
1065
|
+
let n = Te(null);
|
|
1066
|
+
const c = Me(() => r(n) === null ? 0 : Math.max(0, r(re) + r(Y).length - r(n))), a = Me(() => r($) || r(n) === null ? "" : `${r(n)}:${Math.min(r(c), jt)}`), g = Me(() => r(Y).find((t) => I(t))), w = Me(() => r(g) ?? r(N)), S = Me(() => !!(r(oe) && r(o))), I = (t) => r(N) ? t.userID && r(N).userID ? t.userID === r(N).userID : t.rank === r(N).rank : !!r(W) && t.rank === r(W), U = (t) => t ? Number.isInteger(t) ? String(t) : t.toFixed(2) : "-", J = (t, u) => It({
|
|
1067
|
+
endpoint: P(),
|
|
1068
|
+
language: Q(),
|
|
1069
|
+
platform: C(),
|
|
1070
|
+
session: F(),
|
|
1071
|
+
tournamentid: B(),
|
|
1072
|
+
offset: t,
|
|
1073
|
+
limit: u
|
|
1074
|
+
}), ue = async (t) => {
|
|
1075
|
+
ne($, !0);
|
|
1076
|
+
try {
|
|
1077
|
+
const u = await J(t, at);
|
|
1078
|
+
ne(Y, u.items ?? [], !0), ne(b, u.total ?? 0, !0), ne(re, t, !0), ne(n, t, !0);
|
|
1079
|
+
} catch (u) {
|
|
1080
|
+
console.log(u);
|
|
1081
|
+
} finally {
|
|
1082
|
+
ne($, !1);
|
|
1083
|
+
}
|
|
1084
|
+
}, De = async () => {
|
|
1085
|
+
if (!(!r(M) || r(z))) {
|
|
1086
|
+
ne(z, !0);
|
|
1087
|
+
try {
|
|
1088
|
+
const t = await J(r(L), at);
|
|
1089
|
+
ne(Y, [...r(Y), ...t.items ?? []], !0), ne(b, t.total ?? r(b), !0);
|
|
1090
|
+
} catch (t) {
|
|
1091
|
+
console.log(t);
|
|
1092
|
+
} finally {
|
|
1093
|
+
ne(z, !1);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}, _e = (t) => {
|
|
1097
|
+
let u = t.parentElement;
|
|
1098
|
+
for (; u; ) {
|
|
1099
|
+
const { overflowY: v } = getComputedStyle(u);
|
|
1100
|
+
if ((v === "auto" || v === "scroll") && u.scrollHeight > u.clientHeight)
|
|
1101
|
+
return u;
|
|
1102
|
+
u = u.parentElement;
|
|
1103
|
+
}
|
|
1104
|
+
return document.scrollingElement ?? document.documentElement;
|
|
1105
|
+
}, be = (t) => t === void 0 ? null : r(Z)?.querySelector(`[data-rank="${t}"]`), pe = async () => {
|
|
1106
|
+
if (!(!r(K) || r(A))) {
|
|
1107
|
+
ne(A, !0);
|
|
1108
|
+
try {
|
|
1109
|
+
const t = Math.max(0, r(re) - at), u = await J(t, r(re) - t), v = r(Y)[0]?.rank, y = be(v)?.getBoundingClientRect().top;
|
|
1110
|
+
ne(Y, [...u.items ?? [], ...r(Y)], !0), ne(re, t, !0), await tt();
|
|
1111
|
+
const f = be(v);
|
|
1112
|
+
f && y !== void 0 && (_e(f).scrollTop += f.getBoundingClientRect().top - y);
|
|
1113
|
+
} catch (t) {
|
|
1114
|
+
console.log(t);
|
|
1115
|
+
} finally {
|
|
1116
|
+
ne(A, !1);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}, V = async () => {
|
|
1120
|
+
if (r(o)) {
|
|
1121
|
+
if (te) {
|
|
1122
|
+
te.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
1123
|
+
return;
|
|
1124
|
+
}
|
|
1125
|
+
await ue(Math.max(0, r(o) - 1 - Xt)), await tt(), te?.scrollIntoView({ block: "center" });
|
|
1126
|
+
}
|
|
1127
|
+
}, q = (t, u) => {
|
|
1128
|
+
const v = new IntersectionObserver(
|
|
1129
|
+
(y) => {
|
|
1130
|
+
y.some((f) => f.isIntersecting) && u();
|
|
1131
|
+
},
|
|
1132
|
+
{ rootMargin: qt }
|
|
1133
|
+
);
|
|
1134
|
+
return v.observe(t), {
|
|
1135
|
+
update(y) {
|
|
1136
|
+
u = y;
|
|
1137
|
+
},
|
|
1138
|
+
destroy() {
|
|
1139
|
+
v.disconnect();
|
|
1140
|
+
}
|
|
1141
|
+
};
|
|
1142
|
+
}, Se = (t, u) => {
|
|
1143
|
+
let v = null;
|
|
1144
|
+
const y = () => {
|
|
1145
|
+
te = t, v = new IntersectionObserver((O) => {
|
|
1146
|
+
ne(se, O.some((ee) => ee.isIntersecting), !0);
|
|
1147
|
+
}), v.observe(t);
|
|
1148
|
+
}, f = () => {
|
|
1149
|
+
v?.disconnect(), v = null, te === t && (te = null, ne(se, !1));
|
|
1150
|
+
};
|
|
1151
|
+
return u && y(), {
|
|
1152
|
+
update(O) {
|
|
1153
|
+
O && !v ? y() : !O && v && f();
|
|
1154
|
+
},
|
|
1155
|
+
destroy: f
|
|
1156
|
+
};
|
|
1157
|
+
}, xe = async () => {
|
|
1158
|
+
try {
|
|
1159
|
+
const t = await Yt({
|
|
1160
|
+
endpoint: P(),
|
|
1161
|
+
language: Q(),
|
|
1162
|
+
platform: C(),
|
|
1163
|
+
session: F(),
|
|
1164
|
+
tournamentid: B(),
|
|
1165
|
+
includeUnqualified: !0
|
|
1166
|
+
});
|
|
1167
|
+
ne(N, t.playerData, !0), ne(W, t.endRank, !0), ne(oe, !!t.playerEnrolled, !0);
|
|
1168
|
+
} catch (t) {
|
|
1169
|
+
console.log(t);
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
Ke(() => {
|
|
1173
|
+
if (!r(a) || r(a).endsWith(":0"))
|
|
1174
|
+
return;
|
|
1175
|
+
const [t, u] = r(a).split(":").map(Number), v = Nt(
|
|
1176
|
+
{
|
|
1177
|
+
endpoint: P(),
|
|
1178
|
+
language: Q(),
|
|
1179
|
+
platform: C(),
|
|
1180
|
+
session: F(),
|
|
1181
|
+
tournamentid: B(),
|
|
1182
|
+
offset: t,
|
|
1183
|
+
limit: u
|
|
1184
|
+
},
|
|
1185
|
+
(y) => {
|
|
1186
|
+
const f = t - r(re);
|
|
1187
|
+
if (!y?.length || t !== r(n) || f < 0)
|
|
1188
|
+
return;
|
|
1189
|
+
ne(
|
|
1190
|
+
Y,
|
|
1191
|
+
[
|
|
1192
|
+
...r(Y).slice(0, f),
|
|
1193
|
+
...y,
|
|
1194
|
+
...r(Y).slice(f + y.length)
|
|
1195
|
+
],
|
|
1196
|
+
!0
|
|
1197
|
+
);
|
|
1198
|
+
const O = r(N) && y.find((ee) => I(ee));
|
|
1199
|
+
O && ne(N, O, !0);
|
|
1200
|
+
}
|
|
1201
|
+
);
|
|
1202
|
+
return () => v.close();
|
|
1203
|
+
}), Ke(() => {
|
|
1204
|
+
ye() && xe();
|
|
1205
|
+
}), At(() => {
|
|
1206
|
+
ue(0), xe();
|
|
1207
|
+
});
|
|
1208
|
+
var Ye = {
|
|
1209
|
+
get endpoint() {
|
|
1210
|
+
return P();
|
|
1211
|
+
},
|
|
1212
|
+
set endpoint(t) {
|
|
1213
|
+
P(t), Be();
|
|
1214
|
+
},
|
|
1215
|
+
get language() {
|
|
1216
|
+
return Q();
|
|
1217
|
+
},
|
|
1218
|
+
set language(t = "en") {
|
|
1219
|
+
Q(t), Be();
|
|
1220
|
+
},
|
|
1221
|
+
get session() {
|
|
1222
|
+
return F();
|
|
1223
|
+
},
|
|
1224
|
+
set session(t) {
|
|
1225
|
+
F(t), Be();
|
|
1226
|
+
},
|
|
1227
|
+
get tournamentid() {
|
|
1228
|
+
return B();
|
|
1229
|
+
},
|
|
1230
|
+
set tournamentid(t) {
|
|
1231
|
+
B(t), Be();
|
|
1232
|
+
},
|
|
1233
|
+
get platform() {
|
|
1234
|
+
return C();
|
|
1235
|
+
},
|
|
1236
|
+
set platform(t) {
|
|
1237
|
+
C(t), Be();
|
|
1238
|
+
},
|
|
1239
|
+
get translationurl() {
|
|
1240
|
+
return H();
|
|
1241
|
+
},
|
|
1242
|
+
set translationurl(t) {
|
|
1243
|
+
H(t), Be();
|
|
1244
|
+
},
|
|
1245
|
+
get newlyEnrolled() {
|
|
1246
|
+
return ye();
|
|
1247
|
+
},
|
|
1248
|
+
set newlyEnrolled(t) {
|
|
1249
|
+
ye(t), Be();
|
|
1250
|
+
}
|
|
1251
|
+
}, $e = an(), e = qe($e);
|
|
1252
|
+
{
|
|
1253
|
+
var d = (t) => {
|
|
1254
|
+
var u = Kt();
|
|
1255
|
+
ut(u, 20, () => Array(8), lt, (v, y, f, O) => {
|
|
1256
|
+
var ee = Wt();
|
|
1257
|
+
we(v, ee);
|
|
1258
|
+
}), Ne(u), we(t, u);
|
|
1259
|
+
}, h = (t) => {
|
|
1260
|
+
var u = Zt(), v = qe(u), y = Pe(v, !0), f = Oe(v, 2), O = Pe(f, !0);
|
|
1261
|
+
Ne(u), Qe(
|
|
1262
|
+
(ee, j) => {
|
|
1263
|
+
Ie(y, ee), Ie(O, j);
|
|
1264
|
+
},
|
|
1265
|
+
[
|
|
1266
|
+
() => l()("noLeaderboardTitle"),
|
|
1267
|
+
() => l()("noLeaderboardDescription")
|
|
1268
|
+
]
|
|
1269
|
+
), we(t, u);
|
|
1270
|
+
}, s = (t) => {
|
|
1271
|
+
var u = nn(), v = Ze(u);
|
|
1272
|
+
{
|
|
1273
|
+
var y = (j) => {
|
|
1274
|
+
var k = rt(), X = Ze(k);
|
|
1275
|
+
ht(X, () => r(re), (G) => {
|
|
1276
|
+
var ae = Jt();
|
|
1277
|
+
nt(ae, (ve, fe) => q?.(ve, fe), () => pe), we(G, ae);
|
|
1278
|
+
}), we(j, k);
|
|
1279
|
+
};
|
|
1280
|
+
Ge(v, (j) => {
|
|
1281
|
+
r(K) && j(y);
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
var f = Oe(v, 2);
|
|
1285
|
+
ut(f, 21, () => r(Y), lt, (j, k) => {
|
|
1286
|
+
const X = Me(() => I(r(k)));
|
|
1287
|
+
var G = en();
|
|
1288
|
+
let ae;
|
|
1289
|
+
var ve = qe(G), fe = Pe(ve, !0), Ce = Oe(ve, 2), he = Pe(Ce, !0), Ue = Oe(Ce, 2), Le = Pe(Ue, !0), Je = Oe(Ue, 2);
|
|
1290
|
+
{
|
|
1291
|
+
let He = Me(() => r(X) && !!r(k).unqualified);
|
|
1292
|
+
x(Je, () => r(k).prizeName, () => r(He));
|
|
1293
|
+
}
|
|
1294
|
+
Ne(G), nt(G, (He, Xe) => Se?.(He, Xe), () => r(X)), Qe(
|
|
1295
|
+
(He, Xe) => {
|
|
1296
|
+
ae = ct(G, 1, "tournament-leaderboard__row svelte-1mz4he7", null, ae, { "tournament-leaderboard__row--player": r(X) }), We(G, "data-rank", r(k).rank), Ie(fe, r(k).rank), Ie(he, He), Ie(Le, Xe);
|
|
1297
|
+
},
|
|
1298
|
+
[
|
|
1299
|
+
() => r(X) ? l()("youLabel") : r(k).shortName || "J.D",
|
|
1300
|
+
() => U(r(k).score)
|
|
1301
|
+
]
|
|
1302
|
+
), we(j, G);
|
|
1303
|
+
}), Ne(f), $t(f, (j) => ne(Z, j), () => r(Z));
|
|
1304
|
+
var O = Oe(f, 2);
|
|
1305
|
+
{
|
|
1306
|
+
var ee = (j) => {
|
|
1307
|
+
var k = rt(), X = Ze(k);
|
|
1308
|
+
ht(X, () => r(L), (G) => {
|
|
1309
|
+
var ae = tn();
|
|
1310
|
+
let ve;
|
|
1311
|
+
nt(ae, (fe, Ce) => q?.(fe, Ce), () => De), Qe(() => ve = Lt(ae, "", ve, {
|
|
1312
|
+
"--remaining": r(de),
|
|
1313
|
+
"--row-pitch": r(p) ? `${r(p)}px` : null
|
|
1314
|
+
})), we(G, ae);
|
|
1315
|
+
}), we(j, k);
|
|
1316
|
+
};
|
|
1317
|
+
Ge(O, (j) => {
|
|
1318
|
+
r(M) && j(ee);
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
we(t, u);
|
|
1322
|
+
};
|
|
1323
|
+
Ge(e, (t) => {
|
|
1324
|
+
r($) ? t(d) : r(Y).length === 0 ? t(h, 1) : t(s, -1);
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
var E = Oe(e, 2);
|
|
1328
|
+
{
|
|
1329
|
+
var _ = (t) => {
|
|
1330
|
+
var u = rn();
|
|
1331
|
+
let v;
|
|
1332
|
+
var y = qe(u), f = qe(y), O = Pe(f, !0), ee = Oe(f, 2), j = Pe(ee, !0), k = Oe(ee, 2), X = Pe(k, !0), G = Oe(k, 2);
|
|
1333
|
+
{
|
|
1334
|
+
let ae = Me(() => !!r(w)?.unqualified);
|
|
1335
|
+
x(G, () => r(w)?.prizeName, () => r(ae));
|
|
1336
|
+
}
|
|
1337
|
+
Ne(y), Ne(u), Qe(
|
|
1338
|
+
(ae, ve, fe) => {
|
|
1339
|
+
v = ct(u, 1, "tournament-leaderboard__sticky svelte-1mz4he7", null, v, {
|
|
1340
|
+
"tournament-leaderboard__sticky--hidden": r(se)
|
|
1341
|
+
}), We(u, "aria-hidden", r(se)), We(y, "aria-label", ae), We(y, "tabindex", r(se) ? -1 : 0), Ie(O, r(o)), Ie(j, ve), Ie(X, fe);
|
|
1342
|
+
},
|
|
1343
|
+
[
|
|
1344
|
+
() => l()("goToMyPosition"),
|
|
1345
|
+
() => l()("youLabel"),
|
|
1346
|
+
() => U(r(w)?.score ?? 0)
|
|
1347
|
+
]
|
|
1348
|
+
), Ot("click", y, V), we(t, u);
|
|
1349
|
+
};
|
|
1350
|
+
Ge(E, (t) => {
|
|
1351
|
+
r(S) && t(_);
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
Ne($e), we(m, $e);
|
|
1355
|
+
var R = Tt(Ye);
|
|
1356
|
+
return D(), R;
|
|
1357
|
+
}
|
|
1358
|
+
yt(["click"]);
|
|
1359
|
+
bt(
|
|
1360
|
+
sn,
|
|
1361
|
+
{
|
|
1362
|
+
endpoint: {},
|
|
1363
|
+
language: {},
|
|
1364
|
+
session: {},
|
|
1365
|
+
tournamentid: {},
|
|
1366
|
+
platform: {},
|
|
1367
|
+
translationurl: {},
|
|
1368
|
+
newlyEnrolled: {}
|
|
1369
|
+
},
|
|
1370
|
+
[],
|
|
1371
|
+
[],
|
|
1372
|
+
{ mode: "open" }
|
|
1373
|
+
);
|
|
1374
|
+
export {
|
|
1375
|
+
_n as D,
|
|
1376
|
+
yn as G,
|
|
1377
|
+
wn as S,
|
|
1378
|
+
vn as T,
|
|
1379
|
+
bn as a,
|
|
1380
|
+
Sn as b,
|
|
1381
|
+
En as c,
|
|
1382
|
+
An as d,
|
|
1383
|
+
xn as e,
|
|
1384
|
+
mn as f,
|
|
1385
|
+
gn as g,
|
|
1386
|
+
cn as h,
|
|
1387
|
+
pn as i,
|
|
1388
|
+
Yt as j,
|
|
1389
|
+
fn as k,
|
|
1390
|
+
sn as l,
|
|
1391
|
+
hn as s,
|
|
1392
|
+
ln as t
|
|
1393
|
+
};
|