@everymatrix/tournament-details-page 0.0.8 → 0.1.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.
- package/package.json +7 -2
- package/components/TournamentDetails-CKMkVYxd.js +0 -6961
- package/components/TournamentDetails-H6pHb_yG.js +0 -6879
- package/components/TournamentDetails-nG7lN2NT.cjs +0 -7
- package/components/TournamentDetailsPage-B5bbvugX.js +0 -1107
- package/components/TournamentDetailsPage-CjBmguAV.js +0 -1082
- package/components/TournamentDetailsPage-DrDTbkUX.cjs +0 -59
- package/components/TournamentGames-CATtl7ab.js +0 -377
- package/components/TournamentGames-CXKhYSVz.js +0 -405
- package/components/TournamentGames-Dz1Ddedp.cjs +0 -27
- package/components/TournamentLeaderboard-Bdrmjyzv.js +0 -823
- package/components/TournamentLeaderboard-Cvo-K1Xv.js +0 -839
- package/components/TournamentLeaderboard-xrrrpKix.cjs +0 -31
- package/es2015/tournament-details-page.cjs +0 -1
- package/es2015/tournament-details-page.js +0 -16
- package/esnext/tournament-details-page.js +0 -14
|
@@ -1,823 +0,0 @@
|
|
|
1
|
-
import { b as st, $ as it, N as lt, g as dt, h as Ae, i as ct, u as vt, o as ut, k as V, l as ge, C as ie, q as D, r as ht, t as ft, x as Le, p as pt, m as B, n as h, y as gt, G as A, e as yt, f as mt, w as i, M as Ye, v as G, s as le, z as bt, A as u, J as Me, B as Pe, K as Ze, L as tt, O as wt, E as rt, P as _t } from "./TournamentDetails-H6pHb_yG.js";
|
|
2
|
-
function at(de, Q) {
|
|
3
|
-
st(de, Q);
|
|
4
|
-
}
|
|
5
|
-
function nt(de) {
|
|
6
|
-
it.set(de);
|
|
7
|
-
}
|
|
8
|
-
const ot = {
|
|
9
|
-
en: {
|
|
10
|
-
rank: "Rank",
|
|
11
|
-
user: "User",
|
|
12
|
-
points: "Points",
|
|
13
|
-
prize: "Prize",
|
|
14
|
-
notEnrolledRank: "You are currently not enrolled in this torunament",
|
|
15
|
-
myRanking: "My Ranking",
|
|
16
|
-
showMore: "Show More",
|
|
17
|
-
showLess: "Show Less",
|
|
18
|
-
emptyLeaderboard: "Currently there are no players enrolled in this tournament",
|
|
19
|
-
joinButton: "Join",
|
|
20
|
-
previousButton: "Previous",
|
|
21
|
-
nextButton: "Next"
|
|
22
|
-
},
|
|
23
|
-
tr: {
|
|
24
|
-
rank: "Sıralama",
|
|
25
|
-
user: "Kullanıcı",
|
|
26
|
-
points: "Puan",
|
|
27
|
-
prize: "Ödül",
|
|
28
|
-
notEnrolledRank: "Şu anda bu turnuvaya kayıtlı değilsiniz",
|
|
29
|
-
myRanking: "Sıralamam",
|
|
30
|
-
showMore: "Daha Fazla Göster",
|
|
31
|
-
showLess: "Daha Az Göster",
|
|
32
|
-
emptyLeaderboard: "Şu anda bu turnuvaya kayıtlı oyuncu bulunmuyor",
|
|
33
|
-
joinButton: "Katıl",
|
|
34
|
-
previousButton: "Önceki",
|
|
35
|
-
nextButton: "Sonraki"
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var et = { exports: {} };
|
|
39
|
-
/** @license
|
|
40
|
-
* eventsource.js
|
|
41
|
-
* Available under MIT License (MIT)
|
|
42
|
-
* https://github.com/Yaffle/EventSource/
|
|
43
|
-
*/
|
|
44
|
-
(function(de, Q) {
|
|
45
|
-
(function(m) {
|
|
46
|
-
var Z = m.setTimeout, ce = m.clearTimeout, R = m.XMLHttpRequest, ee = m.XDomainRequest, te = m.ActiveXObject, re = m.EventSource, U = m.document, ke = m.Promise, Re = m.fetch, Ue = m.Response, $ = m.TextDecoder, ye = m.TextEncoder, me = m.AbortController;
|
|
47
|
-
if (typeof window < "u" && typeof U < "u" && !("readyState" in U) && U.body == null && (U.readyState = "loading", window.addEventListener("load", function(e) {
|
|
48
|
-
U.readyState = "complete";
|
|
49
|
-
}, !1)), R == null && te != null && (R = function() {
|
|
50
|
-
return new te("Microsoft.XMLHTTP");
|
|
51
|
-
}), Object.create == null && (Object.create = function(e) {
|
|
52
|
-
function n() {
|
|
53
|
-
}
|
|
54
|
-
return n.prototype = e, new n();
|
|
55
|
-
}), Date.now || (Date.now = function() {
|
|
56
|
-
return (/* @__PURE__ */ new Date()).getTime();
|
|
57
|
-
}), me == null) {
|
|
58
|
-
var Ne = Re;
|
|
59
|
-
Re = function(e, n) {
|
|
60
|
-
var s = n.signal;
|
|
61
|
-
return Ne(e, { headers: n.headers, credentials: n.credentials, cache: n.cache }).then(function(a) {
|
|
62
|
-
var d = a.body.getReader();
|
|
63
|
-
return s._reader = d, s._aborted && s._reader.cancel(), {
|
|
64
|
-
status: a.status,
|
|
65
|
-
statusText: a.statusText,
|
|
66
|
-
headers: a.headers,
|
|
67
|
-
body: {
|
|
68
|
-
getReader: function() {
|
|
69
|
-
return d;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
}, me = function() {
|
|
75
|
-
this.signal = {
|
|
76
|
-
_reader: null,
|
|
77
|
-
_aborted: !1
|
|
78
|
-
}, this.abort = function() {
|
|
79
|
-
this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function ae() {
|
|
84
|
-
this.bitsNeeded = 0, this.codePoint = 0;
|
|
85
|
-
}
|
|
86
|
-
ae.prototype.decode = function(e) {
|
|
87
|
-
function n(p, t, r) {
|
|
88
|
-
if (r === 1)
|
|
89
|
-
return p >= 128 >> t && p << t <= 2047;
|
|
90
|
-
if (r === 2)
|
|
91
|
-
return p >= 2048 >> t && p << t <= 55295 || p >= 57344 >> t && p << t <= 65535;
|
|
92
|
-
if (r === 3)
|
|
93
|
-
return p >= 65536 >> t && p << t <= 1114111;
|
|
94
|
-
throw new Error();
|
|
95
|
-
}
|
|
96
|
-
function s(p, t) {
|
|
97
|
-
if (p === 6 * 1)
|
|
98
|
-
return t >> 6 > 15 ? 3 : t > 31 ? 2 : 1;
|
|
99
|
-
if (p === 6 * 2)
|
|
100
|
-
return t > 15 ? 3 : 2;
|
|
101
|
-
if (p === 6 * 3)
|
|
102
|
-
return 3;
|
|
103
|
-
throw new Error();
|
|
104
|
-
}
|
|
105
|
-
for (var a = 65533, d = "", l = this.bitsNeeded, c = this.codePoint, w = 0; w < e.length; w += 1) {
|
|
106
|
-
var v = e[w];
|
|
107
|
-
l !== 0 && (v < 128 || v > 191 || !n(c << 6 | v & 63, l - 6, s(l, c))) && (l = 0, c = a, d += String.fromCharCode(c)), l === 0 ? (v >= 0 && v <= 127 ? (l = 0, c = v) : v >= 192 && v <= 223 ? (l = 6 * 1, c = v & 31) : v >= 224 && v <= 239 ? (l = 6 * 2, c = v & 15) : v >= 240 && v <= 247 ? (l = 6 * 3, c = v & 7) : (l = 0, c = a), l !== 0 && !n(c, l, s(l, c)) && (l = 0, c = a)) : (l -= 6, c = c << 6 | v & 63), l === 0 && (c <= 65535 ? d += String.fromCharCode(c) : (d += String.fromCharCode(55296 + (c - 65535 - 1 >> 10)), d += String.fromCharCode(56320 + (c - 65535 - 1 & 1023))));
|
|
108
|
-
}
|
|
109
|
-
return this.bitsNeeded = l, this.codePoint = c, d;
|
|
110
|
-
};
|
|
111
|
-
var De = function() {
|
|
112
|
-
try {
|
|
113
|
-
return new $().decode(new ye().encode("test"), { stream: !0 }) === "test";
|
|
114
|
-
} catch (e) {
|
|
115
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
116
|
-
}
|
|
117
|
-
return !1;
|
|
118
|
-
};
|
|
119
|
-
($ == null || ye == null || !De()) && ($ = ae);
|
|
120
|
-
var b = function() {
|
|
121
|
-
};
|
|
122
|
-
function L(e) {
|
|
123
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = b, this.onload = b, this.onerror = b, this.onreadystatechange = b, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = b;
|
|
124
|
-
}
|
|
125
|
-
L.prototype.open = function(e, n) {
|
|
126
|
-
this._abort(!0);
|
|
127
|
-
var s = this, a = this._xhr, d = 1, l = 0;
|
|
128
|
-
this._abort = function(r) {
|
|
129
|
-
s._sendTimeout !== 0 && (ce(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, a.onload = b, a.onerror = b, a.onabort = b, a.onprogress = b, a.onreadystatechange = b, a.abort(), l !== 0 && (ce(l), l = 0), r || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), d = 0;
|
|
130
|
-
};
|
|
131
|
-
var c = function() {
|
|
132
|
-
if (d === 1) {
|
|
133
|
-
var r = 0, o = "", g = void 0;
|
|
134
|
-
if ("contentType" in a)
|
|
135
|
-
r = 200, o = "OK", g = a.contentType;
|
|
136
|
-
else
|
|
137
|
-
try {
|
|
138
|
-
r = a.status, o = a.statusText, g = a.getResponseHeader("Content-Type");
|
|
139
|
-
} catch {
|
|
140
|
-
r = 0, o = "", g = void 0;
|
|
141
|
-
}
|
|
142
|
-
r !== 0 && (d = 2, s.readyState = 2, s.status = r, s.statusText = o, s._contentType = g, s.onreadystatechange());
|
|
143
|
-
}
|
|
144
|
-
}, w = function() {
|
|
145
|
-
if (c(), d === 2 || d === 3) {
|
|
146
|
-
d = 3;
|
|
147
|
-
var r = "";
|
|
148
|
-
try {
|
|
149
|
-
r = a.responseText;
|
|
150
|
-
} catch {
|
|
151
|
-
}
|
|
152
|
-
s.readyState = 3, s.responseText = r, s.onprogress();
|
|
153
|
-
}
|
|
154
|
-
}, v = function(r, o) {
|
|
155
|
-
if ((o == null || o.preventDefault == null) && (o = {
|
|
156
|
-
preventDefault: b
|
|
157
|
-
}), w(), d === 1 || d === 2 || d === 3) {
|
|
158
|
-
if (d = 4, l !== 0 && (ce(l), l = 0), s.readyState = 4, r === "load")
|
|
159
|
-
s.onload(o);
|
|
160
|
-
else if (r === "error")
|
|
161
|
-
s.onerror(o);
|
|
162
|
-
else if (r === "abort")
|
|
163
|
-
s.onabort(o);
|
|
164
|
-
else
|
|
165
|
-
throw new TypeError();
|
|
166
|
-
s.onreadystatechange();
|
|
167
|
-
}
|
|
168
|
-
}, p = function(r) {
|
|
169
|
-
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && v(a.responseText === "" ? "error" : "load", r) : a.readyState === 3 ? "onprogress" in a || w() : a.readyState === 2 && c());
|
|
170
|
-
}, t = function() {
|
|
171
|
-
l = Z(function() {
|
|
172
|
-
t();
|
|
173
|
-
}, 500), a.readyState === 3 && w();
|
|
174
|
-
};
|
|
175
|
-
"onload" in a && (a.onload = function(r) {
|
|
176
|
-
v("load", r);
|
|
177
|
-
}), "onerror" in a && (a.onerror = function(r) {
|
|
178
|
-
v("error", r);
|
|
179
|
-
}), "onabort" in a && (a.onabort = function(r) {
|
|
180
|
-
v("abort", r);
|
|
181
|
-
}), "onprogress" in a && (a.onprogress = w), "onreadystatechange" in a && (a.onreadystatechange = function(r) {
|
|
182
|
-
p(r);
|
|
183
|
-
}), ("contentType" in a || !("ontimeout" in R.prototype)) && (n += (n.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, n, !0), "readyState" in a && (l = Z(function() {
|
|
184
|
-
t();
|
|
185
|
-
}, 0));
|
|
186
|
-
}, L.prototype.abort = function() {
|
|
187
|
-
this._abort(!1);
|
|
188
|
-
}, L.prototype.getResponseHeader = function(e) {
|
|
189
|
-
return this._contentType;
|
|
190
|
-
}, L.prototype.setRequestHeader = function(e, n) {
|
|
191
|
-
var s = this._xhr;
|
|
192
|
-
"setRequestHeader" in s && s.setRequestHeader(e, n);
|
|
193
|
-
}, L.prototype.getAllResponseHeaders = function() {
|
|
194
|
-
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
195
|
-
}, L.prototype.send = function() {
|
|
196
|
-
if ((!("ontimeout" in R.prototype) || !("sendAsBinary" in R.prototype) && !("mozAnon" in R.prototype)) && U != null && U.readyState != null && U.readyState !== "complete") {
|
|
197
|
-
var e = this;
|
|
198
|
-
e._sendTimeout = Z(function() {
|
|
199
|
-
e._sendTimeout = 0, e.send();
|
|
200
|
-
}, 4);
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
var n = this._xhr;
|
|
204
|
-
"withCredentials" in n && (n.withCredentials = this.withCredentials);
|
|
205
|
-
try {
|
|
206
|
-
n.send(void 0);
|
|
207
|
-
} catch (s) {
|
|
208
|
-
throw s;
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
function be(e) {
|
|
212
|
-
return e.replace(/[A-Z]/g, function(n) {
|
|
213
|
-
return String.fromCharCode(n.charCodeAt(0) + 32);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
function ve(e) {
|
|
217
|
-
for (var n = /* @__PURE__ */ Object.create(null), s = e.split(`\r
|
|
218
|
-
`), a = 0; a < s.length; a += 1) {
|
|
219
|
-
var d = s[a], l = d.split(": "), c = l.shift(), w = l.join(": ");
|
|
220
|
-
n[be(c)] = w;
|
|
221
|
-
}
|
|
222
|
-
this._map = n;
|
|
223
|
-
}
|
|
224
|
-
ve.prototype.get = function(e) {
|
|
225
|
-
return this._map[be(e)];
|
|
226
|
-
}, R != null && R.HEADERS_RECEIVED == null && (R.HEADERS_RECEIVED = 2);
|
|
227
|
-
function we() {
|
|
228
|
-
}
|
|
229
|
-
we.prototype.open = function(e, n, s, a, d, l, c) {
|
|
230
|
-
e.open("GET", d);
|
|
231
|
-
var w = 0;
|
|
232
|
-
e.onprogress = function() {
|
|
233
|
-
var p = e.responseText, t = p.slice(w);
|
|
234
|
-
w += t.length, s(t);
|
|
235
|
-
}, e.onerror = function(p) {
|
|
236
|
-
p.preventDefault(), a(new Error("NetworkError"));
|
|
237
|
-
}, e.onload = function() {
|
|
238
|
-
a(null);
|
|
239
|
-
}, e.onabort = function() {
|
|
240
|
-
a(null);
|
|
241
|
-
}, e.onreadystatechange = function() {
|
|
242
|
-
if (e.readyState === R.HEADERS_RECEIVED) {
|
|
243
|
-
var p = e.status, t = e.statusText, r = e.getResponseHeader("Content-Type"), o = e.getAllResponseHeaders();
|
|
244
|
-
n(p, t, r, new ve(o));
|
|
245
|
-
}
|
|
246
|
-
}, e.withCredentials = l;
|
|
247
|
-
for (var v in c)
|
|
248
|
-
Object.prototype.hasOwnProperty.call(c, v) && e.setRequestHeader(v, c[v]);
|
|
249
|
-
return e.send(), e;
|
|
250
|
-
};
|
|
251
|
-
function ze(e) {
|
|
252
|
-
this._headers = e;
|
|
253
|
-
}
|
|
254
|
-
ze.prototype.get = function(e) {
|
|
255
|
-
return this._headers.get(e);
|
|
256
|
-
};
|
|
257
|
-
function _e() {
|
|
258
|
-
}
|
|
259
|
-
_e.prototype.open = function(e, n, s, a, d, l, c) {
|
|
260
|
-
var w = null, v = new me(), p = v.signal, t = new $();
|
|
261
|
-
return Re(d, {
|
|
262
|
-
headers: c,
|
|
263
|
-
credentials: l ? "include" : "same-origin",
|
|
264
|
-
signal: p,
|
|
265
|
-
cache: "no-store"
|
|
266
|
-
}).then(function(r) {
|
|
267
|
-
return w = r.body.getReader(), n(r.status, r.statusText, r.headers.get("Content-Type"), new ze(r.headers)), new ke(function(o, g) {
|
|
268
|
-
var N = function() {
|
|
269
|
-
w.read().then(function(f) {
|
|
270
|
-
if (f.done)
|
|
271
|
-
o(void 0);
|
|
272
|
-
else {
|
|
273
|
-
var y = t.decode(f.value, { stream: !0 });
|
|
274
|
-
s(y), N();
|
|
275
|
-
}
|
|
276
|
-
}).catch(function(f) {
|
|
277
|
-
g(f);
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
N();
|
|
281
|
-
});
|
|
282
|
-
}).catch(function(r) {
|
|
283
|
-
if (r.name !== "AbortError")
|
|
284
|
-
return r;
|
|
285
|
-
}).then(function(r) {
|
|
286
|
-
a(r);
|
|
287
|
-
}), {
|
|
288
|
-
abort: function() {
|
|
289
|
-
w?.cancel(), v.abort();
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
function je() {
|
|
294
|
-
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
295
|
-
}
|
|
296
|
-
function qe(e) {
|
|
297
|
-
Z(function() {
|
|
298
|
-
throw e;
|
|
299
|
-
}, 0);
|
|
300
|
-
}
|
|
301
|
-
je.prototype.dispatchEvent = function(e) {
|
|
302
|
-
e.target = this;
|
|
303
|
-
var n = this._listeners[e.type];
|
|
304
|
-
if (n != null)
|
|
305
|
-
for (var s = n.length, a = 0; a < s; a += 1) {
|
|
306
|
-
var d = n[a];
|
|
307
|
-
try {
|
|
308
|
-
typeof d.handleEvent == "function" ? d.handleEvent(e) : d.call(this, e);
|
|
309
|
-
} catch (l) {
|
|
310
|
-
qe(l);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}, je.prototype.addEventListener = function(e, n) {
|
|
314
|
-
e = String(e);
|
|
315
|
-
var s = this._listeners, a = s[e];
|
|
316
|
-
a == null && (a = [], s[e] = a);
|
|
317
|
-
for (var d = !1, l = 0; l < a.length; l += 1)
|
|
318
|
-
a[l] === n && (d = !0);
|
|
319
|
-
d || a.push(n);
|
|
320
|
-
}, je.prototype.removeEventListener = function(e, n) {
|
|
321
|
-
e = String(e);
|
|
322
|
-
var s = this._listeners, a = s[e];
|
|
323
|
-
if (a != null) {
|
|
324
|
-
for (var d = [], l = 0; l < a.length; l += 1)
|
|
325
|
-
a[l] !== n && d.push(a[l]);
|
|
326
|
-
d.length === 0 ? delete s[e] : s[e] = d;
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
function ue(e) {
|
|
330
|
-
this.type = e, this.target = void 0;
|
|
331
|
-
}
|
|
332
|
-
function We(e, n) {
|
|
333
|
-
ue.call(this, e), this.data = n.data, this.lastEventId = n.lastEventId;
|
|
334
|
-
}
|
|
335
|
-
We.prototype = Object.create(ue.prototype);
|
|
336
|
-
function Xe(e, n) {
|
|
337
|
-
ue.call(this, e), this.status = n.status, this.statusText = n.statusText, this.headers = n.headers;
|
|
338
|
-
}
|
|
339
|
-
Xe.prototype = Object.create(ue.prototype);
|
|
340
|
-
function Ge(e, n) {
|
|
341
|
-
ue.call(this, e), this.error = n.error;
|
|
342
|
-
}
|
|
343
|
-
Ge.prototype = Object.create(ue.prototype);
|
|
344
|
-
var he = -1, K = 0, fe = 1, xe = 2, Oe = -1, J = 0, Ee = 1, Fe = 2, $e = 3, Ke = /^text\/event\-stream(;.*)?$/i, Ve = 1e3, Be = 18e6, Te = function(e, n) {
|
|
345
|
-
var s = e == null ? n : parseInt(e, 10);
|
|
346
|
-
return s !== s && (s = n), Se(s);
|
|
347
|
-
}, Se = function(e) {
|
|
348
|
-
return Math.min(Math.max(e, Ve), Be);
|
|
349
|
-
}, pe = function(e, n, s) {
|
|
350
|
-
try {
|
|
351
|
-
typeof n == "function" && n.call(e, s);
|
|
352
|
-
} catch (a) {
|
|
353
|
-
qe(a);
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
function H(e, n) {
|
|
357
|
-
je.call(this), n = n || {}, 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, Qe(this, e, n);
|
|
358
|
-
}
|
|
359
|
-
function Je() {
|
|
360
|
-
return R != null && "withCredentials" in R.prototype || ee == null ? new R() : new ee();
|
|
361
|
-
}
|
|
362
|
-
var Ie = Re != null && Ue != null && "body" in Ue.prototype;
|
|
363
|
-
function Qe(e, n, s) {
|
|
364
|
-
n = String(n);
|
|
365
|
-
var a = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", l = Se(1e3), c = Te(s.heartbeatTimeout, 45e3), w = "", v = l, p = !1, t = 0, r = s.headers || {}, o = s.Transport, g = Ie && o == null ? void 0 : new L(o != null ? new o() : Je()), N = o != null && typeof o != "string" ? new o() : g == null ? new _e() : new we(), f = void 0, y = 0, _ = he, P = "", T = "", C = "", z = "", k = J, E = 0, j = 0, I = function(x, S, W, X) {
|
|
366
|
-
if (_ === K)
|
|
367
|
-
if (x === 200 && W != null && Ke.test(W)) {
|
|
368
|
-
_ = fe, p = Date.now(), v = l, e.readyState = fe;
|
|
369
|
-
var M = new Xe("open", {
|
|
370
|
-
status: x,
|
|
371
|
-
statusText: S,
|
|
372
|
-
headers: X
|
|
373
|
-
});
|
|
374
|
-
e.dispatchEvent(M), pe(e, e.onopen, M);
|
|
375
|
-
} else {
|
|
376
|
-
var F = "";
|
|
377
|
-
x !== 200 ? (S && (S = S.replace(/\s+/g, " ")), F = "EventSource's response has a status " + x + " " + S + " that is not 200. Aborting the connection.") : F = "EventSource's response has a Content-Type specifying an unsupported type: " + (W == null ? "-" : W.replace(/\s+/g, " ")) + ". Aborting the connection.", q();
|
|
378
|
-
var M = new Xe("error", {
|
|
379
|
-
status: x,
|
|
380
|
-
statusText: S,
|
|
381
|
-
headers: X
|
|
382
|
-
});
|
|
383
|
-
e.dispatchEvent(M), pe(e, e.onerror, M), console.error(F);
|
|
384
|
-
}
|
|
385
|
-
}, ne = function(x) {
|
|
386
|
-
if (_ === fe) {
|
|
387
|
-
for (var S = -1, W = 0; W < x.length; W += 1) {
|
|
388
|
-
var X = x.charCodeAt(W);
|
|
389
|
-
(X === 10 || X === 13) && (S = W);
|
|
390
|
-
}
|
|
391
|
-
var M = (S !== -1 ? z : "") + x.slice(0, S + 1);
|
|
392
|
-
z = (S === -1 ? z : "") + x.slice(S + 1), x !== "" && (p = Date.now(), t += x.length);
|
|
393
|
-
for (var F = 0; F < M.length; F += 1) {
|
|
394
|
-
var X = M.charCodeAt(F);
|
|
395
|
-
if (k === Oe && X === 10)
|
|
396
|
-
k = J;
|
|
397
|
-
else if (k === Oe && (k = J), X === 13 || X === 10) {
|
|
398
|
-
if (k !== J) {
|
|
399
|
-
k === Ee && (j = F + 1);
|
|
400
|
-
var oe = M.slice(E, j - 1), se = M.slice(j + (j < F && M.charCodeAt(j) === 32 ? 1 : 0), F);
|
|
401
|
-
oe === "data" ? (P += `
|
|
402
|
-
`, P += se) : oe === "id" ? T = se : oe === "event" ? C = se : oe === "retry" ? (l = Te(se, l), v = l) : oe === "heartbeatTimeout" && (c = Te(se, c), y !== 0 && (ce(y), y = Z(function() {
|
|
403
|
-
O();
|
|
404
|
-
}, c)));
|
|
405
|
-
}
|
|
406
|
-
if (k === J) {
|
|
407
|
-
if (P !== "") {
|
|
408
|
-
w = T, C === "" && (C = "message");
|
|
409
|
-
var Ce = new We(C, {
|
|
410
|
-
data: P.slice(1),
|
|
411
|
-
lastEventId: T
|
|
412
|
-
});
|
|
413
|
-
if (e.dispatchEvent(Ce), C === "open" ? pe(e, e.onopen, Ce) : C === "message" ? pe(e, e.onmessage, Ce) : C === "error" && pe(e, e.onerror, Ce), _ === xe)
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
P = "", C = "";
|
|
417
|
-
}
|
|
418
|
-
k = X === 13 ? Oe : J;
|
|
419
|
-
} else
|
|
420
|
-
k === J && (E = F, k = Ee), k === Ee ? X === 58 && (j = F + 1, k = Fe) : k === Fe && (k = $e);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}, Y = function(x) {
|
|
424
|
-
if (_ === fe || _ === K) {
|
|
425
|
-
_ = he, y !== 0 && (ce(y), y = 0), y = Z(function() {
|
|
426
|
-
O();
|
|
427
|
-
}, v), v = Se(Math.min(l * 16, v * 2)), e.readyState = K;
|
|
428
|
-
var S = new Ge("error", { error: x });
|
|
429
|
-
e.dispatchEvent(S), pe(e, e.onerror, S), x != null && console.error(x);
|
|
430
|
-
}
|
|
431
|
-
}, q = function() {
|
|
432
|
-
_ = xe, f != null && (f.abort(), f = void 0), y !== 0 && (ce(y), y = 0), e.readyState = xe;
|
|
433
|
-
}, O = function() {
|
|
434
|
-
if (y = 0, _ !== he) {
|
|
435
|
-
if (!p && f != null)
|
|
436
|
-
Y(new Error("No activity within " + c + " milliseconds. " + (_ === K ? "No response received." : t + " chars received.") + " Reconnecting.")), f != null && (f.abort(), f = void 0);
|
|
437
|
-
else {
|
|
438
|
-
var x = Math.max((p || Date.now()) + c - Date.now(), 1);
|
|
439
|
-
p = !1, y = Z(function() {
|
|
440
|
-
O();
|
|
441
|
-
}, x);
|
|
442
|
-
}
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
p = !1, t = 0, y = Z(function() {
|
|
446
|
-
O();
|
|
447
|
-
}, c), _ = K, P = "", C = "", T = w, z = "", E = 0, j = 0, k = J;
|
|
448
|
-
var S = n;
|
|
449
|
-
if (n.slice(0, 5) !== "data:" && n.slice(0, 5) !== "blob:" && w !== "") {
|
|
450
|
-
var W = n.indexOf("?");
|
|
451
|
-
S = W === -1 ? n : n.slice(0, W + 1) + n.slice(W + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(se, Ce) {
|
|
452
|
-
return Ce === d ? "" : se;
|
|
453
|
-
}), S += (n.indexOf("?") === -1 ? "?" : "&") + d + "=" + encodeURIComponent(w);
|
|
454
|
-
}
|
|
455
|
-
var X = e.withCredentials, M = {};
|
|
456
|
-
M.Accept = "text/event-stream";
|
|
457
|
-
var F = e.headers;
|
|
458
|
-
if (F != null)
|
|
459
|
-
for (var oe in F)
|
|
460
|
-
Object.prototype.hasOwnProperty.call(F, oe) && (M[oe] = F[oe]);
|
|
461
|
-
try {
|
|
462
|
-
f = N.open(g, I, ne, Y, S, X, M);
|
|
463
|
-
} catch (se) {
|
|
464
|
-
throw q(), se;
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
e.url = n, e.readyState = K, e.withCredentials = a, e.headers = r, e._close = q, O();
|
|
468
|
-
}
|
|
469
|
-
H.prototype = Object.create(je.prototype), H.prototype.CONNECTING = K, H.prototype.OPEN = fe, H.prototype.CLOSED = xe, H.prototype.close = function() {
|
|
470
|
-
this._close();
|
|
471
|
-
}, H.CONNECTING = K, H.OPEN = fe, H.CLOSED = xe, H.prototype.withCredentials = void 0;
|
|
472
|
-
var He = re;
|
|
473
|
-
R != null && (re == null || !("withCredentials" in re.prototype)) && (He = H), function(e) {
|
|
474
|
-
{
|
|
475
|
-
var n = e(Q);
|
|
476
|
-
n !== void 0 && (de.exports = n);
|
|
477
|
-
}
|
|
478
|
-
}(function(e) {
|
|
479
|
-
e.EventSourcePolyfill = H, e.NativeEventSource = re, e.EventSource = He;
|
|
480
|
-
});
|
|
481
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : lt : globalThis);
|
|
482
|
-
})(et, et.exports);
|
|
483
|
-
var jt = et.exports, xt = V('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span>', 1), Et = V('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh">—</span> <span class="svelte-75jgrh">—</span>', 1), St = V('<p class="svelte-75jgrh"> </p>'), Pt = V('<div class="PlayerRankWrapper svelte-75jgrh"><div class="PlayerRankLabels svelte-75jgrh"><span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span></div> <div class="PlayerRankData svelte-75jgrh"><!></div></div>'), kt = V('<div class="PlayerRankSkeletonWrapper svelte-75jgrh"><div class="PlayerRankSkeleton svelte-75jgrh"></div> <div class="PlayerRankSkeleton svelte-75jgrh"></div></div>'), Rt = V('<tr class="SkeletonRow svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"></td></tr>'), Tt = V('<tr><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td></tr>'), Ct = V('<tr class="svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"><div class="EmptyLeaderboard svelte-75jgrh"><p class="svelte-75jgrh"> </p></div></td></tr>'), At = V('<div class="PaginationSkeleton svelte-75jgrh"><div class="PaginationSkeletonButton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationSkeletonButton svelte-75jgrh"></div></div>'), Lt = V('<span class="PaginationButton Elipsis svelte-75jgrh">...</span>'), Nt = V("<button> </button>"), Dt = V('<div class="PaginationWrapper svelte-75jgrh"><button class="PaginationButton svelte-75jgrh"> </button> <div class="PageNumberWrapper svelte-75jgrh"></div> <button class="PaginationButton svelte-75jgrh"> </button></div>'), Ot = V('<div class="LeaderboardWrapper svelte-75jgrh"><div class="RankingWrapper svelte-75jgrh"><!> <table class="LeaderboardTable svelte-75jgrh"><thead class="LeaderboardTableHeader svelte-75jgrh"><tr class="svelte-75jgrh"><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th></tr></thead><tbody class="LeaderboardTableBody svelte-75jgrh"><!></tbody></table></div> <!> <!></div>');
|
|
484
|
-
const Ft = {
|
|
485
|
-
hash: "svelte-75jgrh",
|
|
486
|
-
code: `.svelte-75jgrh,
|
|
487
|
-
.svelte-75jgrh::before,
|
|
488
|
-
.svelte-75jgrh::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-75jgrh {display:flex;flex-direction:column;gap:5px;min-height:60px;.PlayerRankLabels:where(.svelte-75jgrh), .PlayerRankData:where(.svelte-75jgrh) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);opacity:70%;font-size:14px;font-weight:400;& > span:where(.svelte-75jgrh):last-child{justify-self:end;}p:where(.svelte-75jgrh) {width:max-content;}}.PlayerRankData:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-75jgrh {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-75jgrh) {display:flex;gap:6px;}.PaginationButton:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.LeaderboardTable.svelte-75jgrh {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-75jgrh) {color:#F9C408;}thead:where(.svelte-75jgrh) th:where(.svelte-75jgrh) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-75jgrh) tr:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(2) {width:35%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(3) {width:20%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-75jgrh), td:where(.svelte-75jgrh) {text-align:center;vertical-align:middle;}tbody:where(.svelte-75jgrh) tr.Gold:where(.svelte-75jgrh){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Silver:where(.svelte-75jgrh) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Bronze:where(.svelte-75jgrh) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;}.SkeletonRow.svelte-75jgrh {height:41px;overflow:hidden;background-color:var(--emw-color-skeleton, #535353);
|
|
489
|
-
animation: svelte-75jgrh-pulse 1s infinite;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
|
|
490
|
-
animation: svelte-75jgrh-pulse 1s infinite;}}.PaginationSkeleton.svelte-75jgrh {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
491
|
-
animation: svelte-75jgrh-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
492
|
-
animation: svelte-75jgrh-pulse 1s infinite;}}
|
|
493
|
-
|
|
494
|
-
@keyframes svelte-75jgrh-pulse {
|
|
495
|
-
0% {
|
|
496
|
-
opacity: 0;
|
|
497
|
-
}
|
|
498
|
-
50% {
|
|
499
|
-
opacity: 1;
|
|
500
|
-
}
|
|
501
|
-
100% {
|
|
502
|
-
opacity: 0;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
@media (min-width: 1000px) {.ShowPlayersButton.svelte-75jgrh {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
@media (min-width: 750px) {.PaginationWrapper.svelte-75jgrh, .PaginationSkeleton.svelte-75jgrh {justify-content:end;gap:10px;}.PaginationButton.svelte-75jgrh {min-width:75px;}.PaginationSkeleton.svelte-75jgrh {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:25px;}}
|
|
510
|
-
}`
|
|
511
|
-
};
|
|
512
|
-
function Bt(de, Q) {
|
|
513
|
-
pt(Q, !0), dt(de, Ft);
|
|
514
|
-
const m = () => gt(bt, "$_", Z), [Z, ce] = ft(), R = Ae(Q, "endpoint"), ee = Ae(Q, "language", 7, "en"), te = Ae(Q, "session"), re = Ae(Q, "tournamentid"), U = Ae(Q, "platform"), ke = Ae(Q, "translationurl"), Re = () => {
|
|
515
|
-
let t = new URL(ke());
|
|
516
|
-
fetch(t.href).then((r) => r.json()).then((r) => {
|
|
517
|
-
Object.keys(r).forEach((o) => {
|
|
518
|
-
at(o, r[o]);
|
|
519
|
-
});
|
|
520
|
-
}).catch((r) => {
|
|
521
|
-
console.log(r);
|
|
522
|
-
});
|
|
523
|
-
};
|
|
524
|
-
Object.keys(ot).forEach((t) => {
|
|
525
|
-
at(t, ot[t]);
|
|
526
|
-
}), nt(ee());
|
|
527
|
-
const Ue = () => {
|
|
528
|
-
nt(ee());
|
|
529
|
-
};
|
|
530
|
-
ct(() => {
|
|
531
|
-
ke() && Re();
|
|
532
|
-
}), vt(() => {
|
|
533
|
-
Ue();
|
|
534
|
-
});
|
|
535
|
-
let $ = null, ye = le(void 0), me = le(!1), Ne = le(!1), ae = le(void 0), De = le(void 0), b = le(0), L = le(10), be = le(!0), ve = le(void 0);
|
|
536
|
-
const we = () => {
|
|
537
|
-
if (K.has(i(he)))
|
|
538
|
-
return;
|
|
539
|
-
G(me, !0);
|
|
540
|
-
const t = new URL(`${R()}/v1/tournaments/${re()}/leaderboard`), r = new Headers();
|
|
541
|
-
te() && r.append("X-SessionId", te()), t.searchParams.append("language", ee()), t.searchParams.append("platform", U()), t.searchParams.append("pagination", `offset=${i(b)},limit=${i(L)}`), fetch(t).then((o) => o.json()).then((o) => {
|
|
542
|
-
G(ye, o?.items, !0), G(ve, o?.total, !0), K.set(i(he), i(ye)), i(be) || G(be, !0);
|
|
543
|
-
}).catch((o) => console.log(o)).finally(() => G(me, !1));
|
|
544
|
-
}, ze = (t) => {
|
|
545
|
-
const r = JSON.parse(t.data);
|
|
546
|
-
r && r.messageType === "LeaderBoardUpdate" && G(ye, r?.items, !0);
|
|
547
|
-
}, _e = () => {
|
|
548
|
-
$ && ($.close(), $ = null);
|
|
549
|
-
const t = new URL(`${R()}/v1/tournaments/${re()}/leaderboard/updates`);
|
|
550
|
-
t.searchParams.append("HeartBeat", "false"), t.searchParams.append("language", ee()), t.searchParams.append("filter", "includeUnqualifiedPlayer=true"), t.searchParams.append("pagination", `offset=${i(b)},limit=${i(L)}`), t.searchParams.append("platform", U()), $ = new jt.EventSourcePolyfill(t, {
|
|
551
|
-
headers: { accept: "text/event-stream", "X-SessionId": te() }
|
|
552
|
-
}), $.onmessage = ze;
|
|
553
|
-
}, je = () => {
|
|
554
|
-
G(Ne, !0);
|
|
555
|
-
const t = new URL(`${R()}/v1/tournaments/leaderboard/player`), r = new Headers();
|
|
556
|
-
t.searchParams.append("language", ee()), t.searchParams.append("platform", U()), t.searchParams.append("filter", "includeUnqualifiedPlayer=false"), te() && r.append("X-SessionId", te()), fetch(t, { method: "GET", headers: r }).then((g) => g.json()).then((g) => {
|
|
557
|
-
const N = g?.items?.find((f) => f?.tournament?.id === re());
|
|
558
|
-
G(ae, N?.leaderBoard, !0), G(De, N?.endRank, !0);
|
|
559
|
-
}).catch((g) => {
|
|
560
|
-
console.log(g);
|
|
561
|
-
}).finally(() => G(Ne, !1));
|
|
562
|
-
}, qe = () => {
|
|
563
|
-
i(b) < i(ve) && (G(b, i(b) + i(L)), we(), _e());
|
|
564
|
-
}, ue = () => {
|
|
565
|
-
i(b) !== 0 && (G(b, i(b) - i(L)), we(), _e());
|
|
566
|
-
}, We = (t) => {
|
|
567
|
-
G(b, (t - 1) * i(L)), we(), _e();
|
|
568
|
-
}, Ge = Ye(() => {
|
|
569
|
-
const t = Math.ceil(i(ve) / i(L)), r = Math.floor(i(b) / i(L)) + 1;
|
|
570
|
-
if (t <= 5)
|
|
571
|
-
return Array.from({ length: t }, (g, N) => N + 1);
|
|
572
|
-
const o = [];
|
|
573
|
-
return o.push(1), r <= 3 ? (o.push(2, 3), o.push("..."), o.push(t)) : r >= t - 2 ? (o.push("..."), o.push(t - 2, t - 1, t)) : (o.push("..."), o.push(r - 1, r, r + 1), o.push("..."), o.push(t)), o;
|
|
574
|
-
}), he = Ye(() => Math.floor(i(b) / i(L)) + 1);
|
|
575
|
-
let K = /* @__PURE__ */ new Map(), fe = Ye(() => K.get(i(he)) ?? []);
|
|
576
|
-
const xe = (t, r) => {
|
|
577
|
-
const o = [];
|
|
578
|
-
return r && o.push("PlayerRow"), t === 1 && o.push("Gold"), t === 2 && o.push("Silver"), t === 3 && o.push("Bronze"), o.join(" ");
|
|
579
|
-
};
|
|
580
|
-
ut(() => (we(), je(), _e(), () => {
|
|
581
|
-
$?.close(), $ = null;
|
|
582
|
-
}));
|
|
583
|
-
var Oe = {
|
|
584
|
-
get endpoint() {
|
|
585
|
-
return R();
|
|
586
|
-
},
|
|
587
|
-
set endpoint(t) {
|
|
588
|
-
R(t), Le();
|
|
589
|
-
},
|
|
590
|
-
get language() {
|
|
591
|
-
return ee();
|
|
592
|
-
},
|
|
593
|
-
set language(t = "en") {
|
|
594
|
-
ee(t), Le();
|
|
595
|
-
},
|
|
596
|
-
get session() {
|
|
597
|
-
return te();
|
|
598
|
-
},
|
|
599
|
-
set session(t) {
|
|
600
|
-
te(t), Le();
|
|
601
|
-
},
|
|
602
|
-
get tournamentid() {
|
|
603
|
-
return re();
|
|
604
|
-
},
|
|
605
|
-
set tournamentid(t) {
|
|
606
|
-
re(t), Le();
|
|
607
|
-
},
|
|
608
|
-
get platform() {
|
|
609
|
-
return U();
|
|
610
|
-
},
|
|
611
|
-
set platform(t) {
|
|
612
|
-
U(t), Le();
|
|
613
|
-
},
|
|
614
|
-
get translationurl() {
|
|
615
|
-
return ke();
|
|
616
|
-
},
|
|
617
|
-
set translationurl(t) {
|
|
618
|
-
ke(t), Le();
|
|
619
|
-
}
|
|
620
|
-
}, J = Ot(), Ee = h(J), Fe = h(Ee);
|
|
621
|
-
{
|
|
622
|
-
var $e = (t) => {
|
|
623
|
-
var r = Pt(), o = h(r), g = h(o), N = h(g, !0);
|
|
624
|
-
u(g);
|
|
625
|
-
var f = B(g, 2), y = h(f, !0);
|
|
626
|
-
u(f);
|
|
627
|
-
var _ = B(f, 2), P = h(_, !0);
|
|
628
|
-
u(_), u(o);
|
|
629
|
-
var T = B(o, 2), C = h(T);
|
|
630
|
-
{
|
|
631
|
-
var z = (E) => {
|
|
632
|
-
var j = xt(), I = Pe(j), ne = h(I);
|
|
633
|
-
u(I);
|
|
634
|
-
var Y = B(I, 2), q = h(Y, !0);
|
|
635
|
-
u(Y);
|
|
636
|
-
var O = B(Y, 2), x = h(O, !0);
|
|
637
|
-
u(O), ie(() => {
|
|
638
|
-
A(ne, `${i(ae).rank ?? ""}.`), A(q, i(ae).score), A(x, i(ae).prizeName || "—");
|
|
639
|
-
}), D(E, j);
|
|
640
|
-
}, k = (E) => {
|
|
641
|
-
var j = Me(), I = Pe(j);
|
|
642
|
-
{
|
|
643
|
-
var ne = (q) => {
|
|
644
|
-
var O = Et(), x = Pe(O), S = h(x);
|
|
645
|
-
u(x), _t(4), ie(() => A(S, `${i(De) ?? ""}.`)), D(q, O);
|
|
646
|
-
}, Y = (q) => {
|
|
647
|
-
var O = St(), x = h(O, !0);
|
|
648
|
-
u(O), ie((S) => A(x, S), [() => m()("notEnrolledRank")]), D(q, O);
|
|
649
|
-
};
|
|
650
|
-
ge(
|
|
651
|
-
I,
|
|
652
|
-
(q) => {
|
|
653
|
-
i(De) ? q(ne) : q(Y, !1);
|
|
654
|
-
},
|
|
655
|
-
!0
|
|
656
|
-
);
|
|
657
|
-
}
|
|
658
|
-
D(E, j);
|
|
659
|
-
};
|
|
660
|
-
ge(C, (E) => {
|
|
661
|
-
i(ae) ? E(z) : E(k, !1);
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
u(T), u(r), ie(
|
|
665
|
-
(E, j, I) => {
|
|
666
|
-
A(N, E), A(y, j), A(P, I);
|
|
667
|
-
},
|
|
668
|
-
[
|
|
669
|
-
() => m()("myRanking"),
|
|
670
|
-
() => m()("points"),
|
|
671
|
-
() => m()("prize")
|
|
672
|
-
]
|
|
673
|
-
), D(t, r);
|
|
674
|
-
}, Ke = (t) => {
|
|
675
|
-
var r = kt();
|
|
676
|
-
D(t, r);
|
|
677
|
-
};
|
|
678
|
-
ge(Fe, (t) => {
|
|
679
|
-
i(Ne) ? t(Ke, !1) : t($e);
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
var Ve = B(Fe, 2), Be = h(Ve), Te = h(Be), Se = h(Te), pe = h(Se, !0);
|
|
683
|
-
u(Se);
|
|
684
|
-
var H = B(Se), Je = h(H, !0);
|
|
685
|
-
u(H);
|
|
686
|
-
var Ie = B(H), Qe = h(Ie, !0);
|
|
687
|
-
u(Ie);
|
|
688
|
-
var He = B(Ie), e = h(He, !0);
|
|
689
|
-
u(He), u(Te), u(Be);
|
|
690
|
-
var n = B(Be), s = h(n);
|
|
691
|
-
{
|
|
692
|
-
var a = (t) => {
|
|
693
|
-
var r = Me(), o = Pe(r);
|
|
694
|
-
Ze(o, 17, () => Array(i(L)), tt, (g, N, f, y) => {
|
|
695
|
-
var _ = Rt();
|
|
696
|
-
D(g, _);
|
|
697
|
-
}), D(t, r);
|
|
698
|
-
}, d = (t) => {
|
|
699
|
-
var r = Me(), o = Pe(r);
|
|
700
|
-
{
|
|
701
|
-
var g = (f) => {
|
|
702
|
-
var y = Me(), _ = Pe(y);
|
|
703
|
-
Ze(_, 17, () => i(fe), (P) => P.rank, (P, T) => {
|
|
704
|
-
var C = Tt(), z = h(C), k = h(z);
|
|
705
|
-
u(z);
|
|
706
|
-
var E = B(z), j = h(E, !0);
|
|
707
|
-
u(E);
|
|
708
|
-
var I = B(E), ne = h(I, !0);
|
|
709
|
-
u(I);
|
|
710
|
-
var Y = B(I), q = h(Y, !0);
|
|
711
|
-
u(Y), u(C), ie(
|
|
712
|
-
(O) => {
|
|
713
|
-
rt(C, 1, O, "svelte-75jgrh"), A(k, `${i(T).rank ?? ""}.`), A(j, i(T).shortName || "—"), A(ne, i(T).score || "—"), A(q, i(T).prizeName || "—");
|
|
714
|
-
},
|
|
715
|
-
[
|
|
716
|
-
() => wt(xe(i(T).rank, i(T).rank === i(ae)?.rank))
|
|
717
|
-
]
|
|
718
|
-
), D(P, C);
|
|
719
|
-
}), D(f, y);
|
|
720
|
-
}, N = (f) => {
|
|
721
|
-
var y = Ct(), _ = h(y), P = h(_), T = h(P), C = h(T, !0);
|
|
722
|
-
u(T), u(P), u(_), u(y), ie((z) => A(C, z), [() => m()("emptyLeaderboard")]), D(f, y);
|
|
723
|
-
};
|
|
724
|
-
ge(
|
|
725
|
-
o,
|
|
726
|
-
(f) => {
|
|
727
|
-
i(ye)?.length > 0 ? f(g) : f(N, !1);
|
|
728
|
-
},
|
|
729
|
-
!0
|
|
730
|
-
);
|
|
731
|
-
}
|
|
732
|
-
D(t, r);
|
|
733
|
-
};
|
|
734
|
-
ge(s, (t) => {
|
|
735
|
-
i(me) ? t(a) : t(d, !1);
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
u(n), u(Ve), u(Ee);
|
|
739
|
-
var l = B(Ee, 2);
|
|
740
|
-
{
|
|
741
|
-
var c = (t) => {
|
|
742
|
-
var r = At();
|
|
743
|
-
D(t, r);
|
|
744
|
-
};
|
|
745
|
-
ge(l, (t) => {
|
|
746
|
-
i(be) || t(c);
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
var w = B(l, 2);
|
|
750
|
-
{
|
|
751
|
-
var v = (t) => {
|
|
752
|
-
var r = Dt(), o = h(r);
|
|
753
|
-
o.__click = ue;
|
|
754
|
-
var g = h(o, !0);
|
|
755
|
-
u(o);
|
|
756
|
-
var N = B(o, 2);
|
|
757
|
-
Ze(N, 21, () => i(Ge), tt, (_, P) => {
|
|
758
|
-
var T = Me(), C = Pe(T);
|
|
759
|
-
{
|
|
760
|
-
var z = (E) => {
|
|
761
|
-
var j = Lt();
|
|
762
|
-
D(E, j);
|
|
763
|
-
}, k = (E) => {
|
|
764
|
-
var j = Nt();
|
|
765
|
-
let I;
|
|
766
|
-
j.__click = () => We(i(P));
|
|
767
|
-
var ne = h(j, !0);
|
|
768
|
-
u(j), ie(() => {
|
|
769
|
-
I = rt(j, 1, "PaginationButton Number svelte-75jgrh", null, I, { Active: i(P) === i(he) }), A(ne, i(P));
|
|
770
|
-
}), D(E, j);
|
|
771
|
-
};
|
|
772
|
-
ge(C, (E) => {
|
|
773
|
-
typeof i(P) != "number" ? E(z) : E(k, !1);
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
D(_, T);
|
|
777
|
-
}), u(N);
|
|
778
|
-
var f = B(N, 2);
|
|
779
|
-
f.__click = qe;
|
|
780
|
-
var y = h(f, !0);
|
|
781
|
-
u(f), u(r), ie(
|
|
782
|
-
(_, P) => {
|
|
783
|
-
o.disabled = i(b) === 0, A(g, _), f.disabled = i(b) >= i(ve) - i(L), A(y, P);
|
|
784
|
-
},
|
|
785
|
-
[() => m()("previousButton"), () => m()("nextButton")]
|
|
786
|
-
), D(t, r);
|
|
787
|
-
};
|
|
788
|
-
ge(w, (t) => {
|
|
789
|
-
i(be) && i(ve) > i(L) && t(v);
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
u(J), ie(
|
|
793
|
-
(t, r, o, g) => {
|
|
794
|
-
A(pe, t), A(Je, r), A(Qe, o), A(e, g);
|
|
795
|
-
},
|
|
796
|
-
[
|
|
797
|
-
() => m()("rank"),
|
|
798
|
-
() => m()("user"),
|
|
799
|
-
() => m()("points"),
|
|
800
|
-
() => m()("prize")
|
|
801
|
-
]
|
|
802
|
-
), D(de, J);
|
|
803
|
-
var p = ht(Oe);
|
|
804
|
-
return ce(), p;
|
|
805
|
-
}
|
|
806
|
-
yt(["click"]);
|
|
807
|
-
customElements.define("tournament-leaderboard", mt(
|
|
808
|
-
Bt,
|
|
809
|
-
{
|
|
810
|
-
endpoint: {},
|
|
811
|
-
language: {},
|
|
812
|
-
session: {},
|
|
813
|
-
tournamentid: {},
|
|
814
|
-
platform: {},
|
|
815
|
-
translationurl: {}
|
|
816
|
-
},
|
|
817
|
-
[],
|
|
818
|
-
[],
|
|
819
|
-
!1
|
|
820
|
-
));
|
|
821
|
-
export {
|
|
822
|
-
Bt as default
|
|
823
|
-
};
|