diff --git a/fx_core.js b/fx_core.js index 823af49..5d572d1 100644 --- a/fx_core.js +++ b/fx_core.js @@ -1,6 +1,6 @@ -const dictionary = {"gIsTeamGame":"hT","game":"b","playerId":"ea","playerData":"a6","playerNames":"jt","rawPlayerNames":"tL","playerBalances":"eb","playerTerritories":"f5","gameState":"sh","fontSize":"fontSize","x":"fO","y":"fP","canvas":"gW","gHumans":"ht","playerStates":"vZ","fontGeneratorFunction":"aZ.g5.g6","gIsSingleplayer":"iv","gLobbyMaxJoin":"qI","SingleplayerMenu":"z","getSingleplayerPlayerCount":"wW","gMaxPlayers":"ej","gBots":"ip","Translations":"aW","txt":"no","strs":"a2B","uiSizes":"b1","gap":"gap","i":"eJ"}; -const fx_version = '0.6.4.8'; // FX Client Version -const fx_update = 'Jun 24'; // FX Client Last Updated +const dictionary = {"gIsTeamGame":"hT","game":"b","playerId":"ea","playerData":"a6","playerNames":"jt","rawPlayerNames":"tQ","playerBalances":"eb","playerTerritories":"f5","gameState":"sm","fontSize":"fontSize","x":"fO","y":"fP","canvas":"gW","gHumans":"ht","playerStates":"vg","fontGeneratorFunction":"aZ.g5.g6","gIsSingleplayer":"iv","gLobbyMaxJoin":"qN","SingleplayerMenu":"z","getSingleplayerPlayerCount":"wd","gMaxPlayers":"ej","gBots":"ip","Translations":"aW","txt":"np","strs":"a2H","uiSizes":"b1","gap":"gap","i":"eJ"}; +const fx_version = '0.6.4.9'; // FX Client Version +const fx_update = 'Jun 26'; // FX Client Last Updated if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) { var wins_counter = 0; diff --git a/game.js b/game.js index 8acea59..d05d008 100644 --- a/game.js +++ b/game.js @@ -16,8 +16,8 @@ function bE() { } function cc() { - this.dG = 1044, this.ct = function() { - dA = 2, dC = 23, dB = "23 Jun 2024 [1.96.0]", dD = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io") || Math.random() >= 0.5, dF = function() { + this.dG = 1045, this.ct = function() { + dA = 2, dC = 23, dB = "25 Jun 2024 [1.96.1]", dD = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io") || Math.random() >= 0.5, dF = function() { try { return window.self !== window.top } catch (dI) { @@ -492,7 +492,7 @@ function iL(player, ha) { self.aiCommand746 = function(df) { 0 === df ? bE() : 1 !== df || 1 !== b8.id || b8.dg < 14 || y.dh() }; -var hB, hA, hC, zT, jM, a1K, iW, iV, u8, gM, qp, a2t, wb, wc, ib = [60, 74, 112, 200, 256, 512]; +var hB, hA, hC, zZ, jM, a1Q, iW, iV, uD, gM, qu, a2z, wi, wj, ib = [60, 74, 112, 200, 256, 512]; function bP() { var ic, ie, ig, ih, ii, ij; @@ -825,630 +825,646 @@ function nD(nE, nF) { nE.appendChild(n2) } -function nT(title, nU, backgroundColor = aa.kg) { - let nV = document.createElement("button"); - this.button = nV, this.nW = nU; - let nX; +function nT(title, nU, backgroundColor = aa.kg, nV = !0) { + let nW = document.createElement("button"); + this.button = nW, this.nX = nU; + let nY; - function nZ() { - var nc = aZ.color.nd(nX); - 0 < nc[0] && nc[0] < 255 && nc[0] === nc[1] && nc[0] === nc[2] || (this.style.backgroundColor = aZ.color.nZ(nX, 50)) + function na() { + if (nV) { + var nd = aZ.color.ne(nY); + if (0 < nd[0] && nd[0] < 255 && nd[0] === nd[1] && nd[0] === nd[2]) return + } + this.style.backgroundColor = aZ.color.na(nY, 50) + } + + function nc() { + this.style.backgroundColor = nY } function nb() { - this.style.backgroundColor = nX - } - - function na() { - this.style.backgroundColor = nX, this.blur() + this.style.backgroundColor = nY, this.blur() } var self; - this.nY = function(iT) { - nX = iT, nV.style.backgroundColor = iT - }, self = this, nV.innerHTML = title, nV.style.color = aa.gN, nV.style.userSelect = "none", nV.style.outline = "none", nV.style.overflowWrap = "break-word", self.nY(backgroundColor), nV.style.border = "none", nV.style.font = "inherit", nV - .style.fontSize = "1em", nV.style.padding = "0em 0.3em", nV.onclick = nU, nV.addEventListener("mouseover", nZ), nV.addEventListener("mouseout", na), nV.addEventListener("focus", nZ), nV.addEventListener("blur", nb) + this.nZ = function(iT) { + nY = iT, nW.style.backgroundColor = iT + }, self = this, nW.innerHTML = title, nW.style.color = aa.gN, nW.style.userSelect = "none", nW.style.outline = "none", nW.style.overflowWrap = "break-word", self.nZ(backgroundColor), nW.style.border = "none", nW.style.font = "inherit", nW + .style.fontSize = "1em", nW.style.padding = "0em 0.3em", nW.onclick = nU, nW.addEventListener("mouseover", na), nW.addEventListener("mouseout", nb), nW.addEventListener("focus", na), nW.addEventListener("blur", nc) } -function ne(nf, nE) { +function nf(ng, nE) { var n2, eJ; for (this.resize = function() { - for (var eJ = 0; eJ < nf.length; eJ++) aZ.g5.nS(nf[eJ].button); + for (var eJ = 0; eJ < ng.length; eJ++) aZ.g5.nS(ng[eJ].button); n2.style.gap = n2.style.padding = aZ.g5.nR(b1.nP) - }, (n2 = document.createElement("div")).style.display = "grid", n2.style.gridTemplateColumns = "repeat(auto-fill, minmax(9.5em, 1fr))", n2.style.overflowY = "auto", n2.style.gridAutoRows = "5.3em", n2.style.maxHeight = "100%", eJ = 0; eJ < nf - .length; eJ++) nf[eJ].button.style.fontSize = "1.2em", n2.appendChild(nf[eJ].button); + }, (n2 = document.createElement("div")).style.display = "grid", n2.style.gridTemplateColumns = "repeat(auto-fill, minmax(9.5em, 1fr))", n2.style.overflowY = "auto", n2.style.gridAutoRows = "5.3em", n2.style.maxHeight = "100%", eJ = 0; eJ < ng + .length; eJ++) ng[eJ].button.style.fontSize = "1.2em", n2.appendChild(ng[eJ].button); nE.appendChild(n2) } -function nh(ni, nj, nk = .5) { +function ni(nj, nk, nl = .5) { this.fO = 0, this.fP = 0, this.gA = 0, this.gF = 0, this.resize = function() { - this.gF = Math.min(aZ.g5.nJ(nk) * ni[1] * aL.g1, aL.gF - 2 * b1.gap), this.gA = Math.min(this.gF * (ni[0] / ni[1]), aL.gA - 2 * b1.gap), this.gF = ni[1] * this.gA / ni[0], this.fO = b1.gap + nj[0] * (aL.gA - this.gA - 2 * b1.gap), this - .fP = b1.gap + nj[1] * (aL.gF - this.gF - 2 * b1.gap) - }, this.nl = function() { + this.gF = Math.min(aZ.g5.nJ(nl) * nj[1] * aL.g1, aL.gF - 2 * b1.gap), this.gA = Math.min(this.gF * (nj[0] / nj[1]), aL.gA - 2 * b1.gap), this.gF = nj[1] * this.gA / nj[0], this.fO = b1.gap + nk[0] * (aL.gA - this.gA - 2 * b1.gap), this + .fP = b1.gap + nk[1] * (aL.gF - this.gF - 2 * b1.gap) + }, this.nm = function() { return this.fO + .5 * this.gA } } -function nm(nn, title = aW.no[121], nW = function() {}) { +function nn(no, title = aW.np[121], nX = function() {}) { function click() { - var value = 1 - nn.value; - this.textContent = (value ? "๐ŸŸข " : "โšช ") + title, bA.np.nq(nn.g4, value), nW(value) + var value = 1 - no.value; + this.textContent = (value ? "๐ŸŸข " : "โšช ") + title, bA.nq.nr(no.g4, value), nX(value) } var dI; - this.dI = document.createElement("p"), (dI = this.dI).textContent = (nn.value ? "๐ŸŸข " : "โšช ") + title, dI.style.margin = "0", dI.style.marginBottom = "0.5em", dI.style.cursor = "pointer", dI.addEventListener("click", click) + this.dI = document.createElement("p"), (dI = this.dI).textContent = (no.value ? "๐ŸŸข " : "โšช ") + title, dI.style.margin = "0", dI.style.marginBottom = "0.5em", dI.style.cursor = "pointer", dI.addEventListener("click", click) } -function nr(nE, n7) { +function ns(nE, n7) { var n2 = document.createElement("div"); - this.ns = n2, this.resize = function() { - n2.style.padding = aZ.g5.nR(b1.nP), n2.style.lineHeight = aZ.g5.nR(aZ.g5.nt(.035)) + this.nt = n2, this.resize = function() { + n2.style.padding = aZ.g5.nR(b1.nP), n2.style.lineHeight = aZ.g5.nR(aZ.g5.nu(.035)) }, nE.style.overflowX = "hidden", nE.style.overflowY = "auto", n2.innerHTML = n7, nE.appendChild(n2) } -function nu(nv) { +function nv(nw) { var n2 = document.createElement("div"); - this.dI = n2, this.nw = nv, this.resize = function() { - for (var ef = nv.length, eJ = 1; eJ < ef; eJ++) aZ.g5.nS(nv[eJ], 4) + this.dI = n2, this.nx = nw, this.resize = function() { + for (var ef = nw.length, eJ = 1; eJ < ef; eJ++) aZ.g5.nS(nw[eJ], 4) }; - var eJ, ef = nv.length; - for (n2.style.width = "100%", n2.style.height = "2.7em", n2.style.marginTop = "0.6em", n2.style.border = "inherit", eJ = 0; eJ < ef; eJ++) nv[eJ].style.verticalAlign = "top", nv[eJ].style.width = (100 / ef).toFixed(2) + "%", nv[eJ].style.height = - "100%", nv[eJ].style.fontSize = "0.75em", n2.appendChild(nv[eJ]) + var eJ, ef = nw.length; + for (n2.style.width = "100%", n2.style.height = "2.7em", n2.style.marginTop = "0.6em", n2.style.border = "inherit", eJ = 0; eJ < ef; eJ++) nw[eJ].style.verticalAlign = "top", nw[eJ].style.width = (100 / ef).toFixed(2) + "%", nw[eJ].style.height = + "100%", nw[eJ].style.fontSize = "0.75em", n2.appendChild(nw[eJ]) } -function nx(nn, type = "text") { +function ny(no, type = "text") { var dI; - this.dI = document.createElement("input"), (dI = this.dI).type = type, dI.id = "input" + nn.title, dI.value = nn.value, dI.style.width = "100%", dI.style.userSelect = "none", dI.style.outline = "none", dI.style.resize = "none", dI.style.border = - "inherit", dI.style.font = "inherit", dI.style.color = aa.gN, dI.style.backgroundColor = aa.kd, dI.style.fontSize = "1em", dI.style.padding = "0.1em 0.2em", -1 !== nn.g4 && (dI.addEventListener("blur", function() { - bA.np.nq(nn.g4, dI.value.trim()) + this.dI = document.createElement("input"), (dI = this.dI).type = type, dI.id = "input" + no.title, dI.value = no.value, dI.style.width = "100%", dI.style.userSelect = "none", dI.style.outline = "none", dI.style.resize = "none", dI.style.border = + "inherit", dI.style.font = "inherit", dI.style.color = aa.gN, dI.style.backgroundColor = aa.kd, dI.style.fontSize = "1em", dI.style.padding = "0.1em 0.2em", -1 !== no.g4 && (dI.addEventListener("blur", function() { + bA.nq.nr(no.g4, dI.value.trim()) }), dI.addEventListener("keypress", function(event) { - "Enter" === event.key && (event.preventDefault(), bA.np.nq(nn.g4, dI.value.trim())) + "Enter" === event.key && (event.preventDefault(), bA.nq.nr(no.g4, dI.value.trim())) })) } -function ny(nn) { +function nz(no) { var dI; - this.dI = document.createElement("input"), (dI = this.dI).type = "color", dI.id = "input" + nn.title, dI.value = aZ.color.nz(aZ.color.o0(bA.j4.o1())), dI.style.width = "100%", dI.style.userSelect = "none", dI.style.outline = "none", dI.style + this.dI = document.createElement("input"), (dI = this.dI).type = "color", dI.id = "input" + no.title, dI.value = aZ.color.o0(aZ.color.o1(bA.j4.o2())), dI.style.width = "100%", dI.style.userSelect = "none", dI.style.outline = "none", dI.style .resize = "none", dI.style.border = "inherit", dI.style.font = "inherit", dI.style.color = aa.gN, dI.style.backgroundColor = aa.kd, dI.style.fontSize = "2em", dI.style.height = "1em", dI.style.padding = "0", dI.addEventListener("input", function() { - bA.np.nq(nn.g4, aZ.color.o2(aZ.color.nd(aZ.color.o3(dI.value)))) + bA.nq.nr(no.g4, aZ.color.o3(aZ.color.ne(aZ.color.o4(dI.value)))) }) } -function o4(nE, o5, h9) { - var o6, eJ, o7 = new Array(o5.length), - nF = new Array(o5.length); +function o5(nE, o6, h9) { + var o7, eJ, o8 = new Array(o6.length), + nF = new Array(o6.length); for (this.resize = function() { - for (var ef = o5.length, eJ = 0; eJ < ef; eJ++) 0 < eJ && aZ.g5.nS(o7[eJ], 8) - }, o6 = document.createElement("div"), nE.style.overflowX = "hidden", nE.style.overflowY = "auto", ! function() { - var eJ, eo, ef = o5.length; + for (var ef = o6.length, eJ = 0; eJ < ef; eJ++) 0 < eJ && aZ.g5.nS(o8[eJ], 8) + }, o7 = document.createElement("div"), nE.style.overflowX = "hidden", nE.style.overflowY = "auto", ! function() { + var eJ, eo, ef = o6.length; for (eJ = 0; eJ < ef; eJ++) { - o7[eJ] = document.createElement("div"), o7[eJ].style.display = "flex", o7[eJ].style.width = "100%", o7[eJ].style.height = "2.5em", o7[eJ].style.backgroundColor = eJ % 2 == 0 ? aa.ks : aa.kj, nF[eJ] = new Array(o5[0].length); - for (let hg = 0; hg < o5[0].length; hg++) nF[eJ][hg] = eo = document.createElement("div"), eo.style.display = "flex", eo.style.width = "100%", eo.style.height = "100%", eo.style.justifyContent = "center", eo.style.alignItems = - "center", eo.innerHTML = o5[eJ][hg], 0 < hg && aZ.g5.nS(eo, 4), o7[eJ].appendChild(eo) + o8[eJ] = document.createElement("div"), o8[eJ].style.display = "flex", o8[eJ].style.width = "100%", o8[eJ].style.height = "2.5em", o8[eJ].style.backgroundColor = eJ % 2 == 0 ? aa.ks : aa.kj, nF[eJ] = new Array(o6[0].length); + for (let hg = 0; hg < o6[0].length; hg++) nF[eJ][hg] = eo = document.createElement("div"), eo.style.display = "flex", eo.style.width = "100%", eo.style.height = "100%", eo.style.justifyContent = "center", eo.style.alignItems = + "center", eo.innerHTML = o6[eJ][hg], 0 < hg && aZ.g5.nS(eo, 4), o8[eJ].appendChild(eo) } - }(), eJ = 0; eJ < o5.length; eJ++) o6.appendChild(o7[eJ]); - nE.appendChild(o6) + }(), eJ = 0; eJ < o6.length; eJ++) o7.appendChild(o8[eJ]); + nE.appendChild(o7) } -function o9(nn, oA = function() {}) { +function oA(no, oB = function() {}) { this.nA = []; - let oB = this.nA; + let oC = this.nA; function click() { - for (let eJ = 0; eJ < oB.length; eJ++) oB[eJ].textContent = oB[eJ].textContent.replace("๐ŸŸข", "โšช"); + for (let eJ = 0; eJ < oC.length; eJ++) oC[eJ].textContent = oC[eJ].textContent.replace("๐ŸŸข", "โšช"); this.textContent = this.textContent.replace("โšช", "๐ŸŸข"); var g4 = parseInt(this.name); - bA.np.nq(nn.g4, g4), oA(g4) + bA.nq.nr(no.g4, g4), oB(g4) } - var oC, ef = nn.oD.length; - for (let eJ = 0; eJ < ef; eJ++)(oC = document.createElement("p")).textContent = "โšช " + nn.oD[eJ], oC.style.margin = "0", oC.name = "" + eJ, oC.style.cursor = "pointer", oC.style.fontSize = "1em", oC.addEventListener("click", click), oB.push(oC); - oB[nn.value].textContent = oB[nn.value].textContent.replace("โšช", "๐ŸŸข") + var oD, ef = no.oE.length; + for (let eJ = 0; eJ < ef; eJ++)(oD = document.createElement("p")).textContent = "โšช " + no.oE[eJ], oD.style.margin = "0", oD.name = "" + eJ, oD.style.cursor = "pointer", oD.style.fontSize = "1em", oD.addEventListener("click", click), oC.push(oD); + oC[no.value].textContent = oC[no.value].textContent.replace("โšช", "๐ŸŸข") } -function oE(title, oF) { - var eJ, o6 = document.createElement("div"), - oG = document.createElement("div"), - oH = document.createElement("div"), - oI = document.createElement("div"); - for (this.oJ = oH, this.show = function() { - document.body.appendChild(o6) - }, this.oN = function() { - document.body.removeChild(o6) +function oF(title, oG, oH = !0) { + let o7 = document.createElement("div"), + oI = document.createElement("div"), + oJ = document.createElement("div"), + oK = document.createElement("div"); + this.oL = oJ, this.show = function() { + oH ? document.body.appendChild(o7) : (document.body.appendChild(oI), document.body.appendChild(oK)) + }, this.oP = function() { + oH ? document.body.removeChild(o7) : (document.body.removeChild(oI), document.body.removeChild(oK)) + }, this.oQ = function() { + var oR = aZ.g5.nu(.1), + oS = aZ.g5.nu(.08 + .04 * (aL.oT < 1)); + return { + oR: oR, + oS: oS, + oU: aL.gF / aL.nN - oR - oS + } }, this.resize = function() { - var eJ, dI, ef = oF.length, - oO = aZ.g5.nt(.1), - oP = aZ.g5.nt(.08 + .04 * (aL.oQ < 1)); - for (oG.style.height = aZ.g5.nR(oO), aZ.g5.nS(oG, 2), oI.style.top = aZ.g5.nR(aL.gF / aL.nN - oP), oI.style.height = aZ.g5.nR(oP), aZ.g5.nS(oI, 8), oH.style.top = aZ.g5.nR(oO), oH.style.height = oH.style.maxHeight = aZ.g5.nR(aL.gF / aL - .nN - oO - oP), oI.style.font = oG.style.font = aZ.g5.g6(0, aZ.g5.nt(.02, .25)), oH.style.font = aZ.g5.g6(0, aZ.g5.nt(.02, .4)), eJ = 0; eJ < ef; eJ++)(dI = oF[eJ].button).style.top = "0", dI.style.left = (100 * eJ / ef).toFixed( - 2) + "%", dI.style.width = (100 / ef).toFixed(2) + "%", dI.style.height = "100%", 0 < eJ && aZ.g5.nS(dI, 4) - }, o6.style.position = "absolute", o6.style.top = "0", o6.style.left = "0", o6.style.width = "100%", o6.style.height = "100%", oG.style.position = "absolute", oG.style.top = "0", oG.style.left = "0", oG.style.width = "100%", oG.style - .display = "flex", oG.style.backgroundColor = aa.kg, oI.style.position = "absolute", oI.style.left = "0", oI.style.width = "100%", oH.style.position = "absolute", oH.style.width = "100%", oH.style.backgroundColor = aa.kg, ! function() { - var eJ; - for (eJ = 0; eJ < oF.length; eJ++) oF[eJ].button.style.position = "absolute", oF[eJ].button.style.fontSize = "1.2em" - }(), eJ = 0; eJ < oF.length; eJ++) oI.appendChild(oF[eJ].button); - oG.appendChild(function() { - var oM = document.createElement("h1"); - return oM.textContent = title, oM.style.margin = "auto", oM.style.fontSize = "2.3em", oM - }()), o6.appendChild(oH), o6.appendChild(oG), o6.appendChild(oI) + let eJ, dI; + var ef = oG.length, + oV = this.oQ(), + oR = oV.oR, + oS = oV.oS; + for (oI.style.height = aZ.g5.nR(oR), aZ.g5.nS(oI, 2), oK.style.top = aZ.g5.nR(aL.gF / aL.nN - oS), oK.style.height = aZ.g5.nR(oS), aZ.g5.nS(oK, 8), oJ.style.top = aZ.g5.nR(oR), oJ.style.height = oJ.style.maxHeight = aZ.g5.nR(oV.oU), oK + .style.font = oI.style.font = aZ.g5.g6(0, aZ.g5.nu(.02, .25)), oJ.style.font = aZ.g5.g6(0, aZ.g5.nu(.02, .4)), eJ = 0; eJ < ef; eJ++)(dI = oG[eJ].button).style.top = "0", dI.style.left = (100 * eJ / ef).toFixed(2) + "%", dI.style + .width = (100 / ef).toFixed(2) + "%", dI.style.height = "100%", 0 < eJ && aZ.g5.nS(dI, 4) + }, this.gL = function() { + var oV = this.oQ(), + iT = aL.nN; + gM.fillStyle = aa.kg, gM.fillRect(0, iT * oV.oR, aL.gA, iT * oV.oU) + }, o7.style.position = "absolute", o7.style.top = "0", o7.style.left = "0", o7.style.width = "100%", o7.style.height = "100%", oI.style.position = "absolute", oI.style.top = "0", oI.style.left = "0", oI.style.width = "100%", oI.style + .display = "flex", oI.style.backgroundColor = aa.kg, oK.style.position = "absolute", oK.style.left = "0", oK.style.width = "100%", oJ.style.position = "absolute", oJ.style.width = "100%", oJ.style.backgroundColor = aa.kg; + for (let eJ = 0; eJ < oG.length; eJ++) oG[eJ].button.style.position = "absolute", oG[eJ].button.style.fontSize = "1.2em"; + for (let eJ = 0; eJ < oG.length; eJ++) oK.appendChild(oG[eJ].button); + oI.appendChild(function() { + var oO = document.createElement("h1"); + return oO.textContent = title, oO.style.margin = "auto", oO.style.fontSize = "2.3em", oO + }()), oH && (o7.appendChild(oJ), o7.appendChild(oI), o7.appendChild(oK)) } -function oR(name, oS) { - var oT = document.createElement("textarea"), - oV = (this.oU = oT, !0); +function oW(name, oX) { + var oY = document.createElement("textarea"), + oa = (this.oZ = oY, !0); - function ob() { - oT.select(), document.execCommand("copy") + function oh() { + oY.select(), document.execCommand("copy") } this.resize = function() { - oT.style.padding = aZ.g5.nR(b1.nP) - }, this.oW = function(oX) { - oT.value = oX - }, this.oY = function() { - return oT.value - }, this.oZ = function() { - oT.select() + oY.style.padding = aZ.g5.nR(b1.nP) + }, this.ob = function(oc) { + oY.value = oc + }, this.od = function() { + return oY.value + }, this.oe = function() { + oY.select() }, this.clear = function() { - oT.value = "" - }, this.oa = function() { - oV && navigator.clipboard ? (oT.select(), navigator.clipboard.writeText(oT.value).catch(function() { - oV = !1, ob() - })) : ob() - }, oT.setAttribute("name", name), oT.setAttribute("id", name + "Field"), oT.setAttribute("autocomplete", "off"), oT.setAttribute("placeholder", oS), oT.style.top = "0", oT.style.left = "0", oT.style.width = "100%", oT.style.height = "100%", - oT.style.userSelect = "none", oT.style.outline = "none", oT.style.resize = "none", oT.style.border = "none", oT.style.color = aa.gN, oT.style.backgroundColor = aa.kd, oT.style.fontSize = "1.2em" + oY.value = "" + }, this.og = function() { + oa && navigator.clipboard ? (oY.select(), navigator.clipboard.writeText(oY.value).catch(function() { + oa = !1, oh() + })) : oh() + }, oY.setAttribute("name", name), oY.setAttribute("id", name + "Field"), oY.setAttribute("autocomplete", "off"), oY.setAttribute("placeholder", oX), oY.style.top = "0", oY.style.left = "0", oY.style.width = "100%", oY.style.height = "100%", + oY.style.userSelect = "none", oY.style.outline = "none", oY.style.resize = "none", oY.style.border = "none", oY.style.color = aa.gN, oY.style.backgroundColor = aa.kd, oY.style.fontSize = "1.2em" } function ce() { - this.nW = new oc, this.dK = new od, this.np = new oe, this.j4 = new og, this.ct = function() { - this.dK.ct(), (new oh).ct() + this.nX = new oi, this.dK = new oj, this.nq = new ok, this.j4 = new ol, this.ct = function() { + this.dK.ct(), (new om).ct() } } -function od() { - function oi(eJ, title, type = 0, oD = null, oo = 0, dg = 0) { +function oj() { + function on(eJ, title, type = 0, oE = null, ot = 0, dg = 0) { bA.dK.data.push({ g4: eJ, title: title, type: type, - oD: oD, - value: oo, - oo: oo, + oE: oE, + value: ot, + ot: ot, dg: dg }) } - function oj(eJ, title, type, oD = null, oo = "", dg = 0) { + function oo(eJ, title, type, oE = null, ot = "", dg = 0) { bA.dK.data.push({ g4: eJ, title: title, type: type, - oD: oD, - value: oo, - oo: oo, + oE: oE, + value: ot, + ot: ot, dg: dg }) } - function ok(kT) { + function op(kT) { for (var eJ = bA.dK.data.length; eJ < kT; eJ++) bA.dK.data.push(null) } this.data = [], this.ct = function() { - oi(0, "", 1, ["English", "ะ ัƒััะบะธะน", "Tรผrkรงe", "Espaรฑola", "Deutsch", "Polski"], 0, 5), oi(1, "", 1, null, 1), oi(2, "", 0, [0, 1]), oj(3, "Username", 2), oi(4, "Font5", 1, ["Default", "Custom"]), oj(5, "", 2, null, "Trebuchet MS", 1), oi( - 6, "", 0, [0, 1]), oi(7, "", 0, [0, 1], 1), oi(8, "", 0, [0, 1]), oi(9, "", 1, null, 1), oi(10, "", 1, null), oi(11, "", 1, null, 1), ok(100), oj(100, "Username", 2), oj(101, "Password", 2), oj(102, "Emojis", 2), oj(103, "Colors", - 2), oj(104, "Clan", 2), oj(105, "AccountName", 2), oj(106, "Password", 2), oi(107), oi(108), oi(109), oj(110, null, 2), oi(111), oi(112), oi(113), oj(114, null, 2), oi(115), oj(116, null, 2), oi(117, null, 1), oj(118, null, 2, - null, "", 2), oi(119, null, 1, null, 0, 1), oj(120, null, 2), oi(121, "CountryColor", 1, null, -1), oj(122, "Username", 2), oi(123, "Same as MP Username"), oj(124, null, 2, null, "Player " + Math.floor(1e3 * Math.random())), ok( - 180), oi(180, "R0", 0), oi(181, "R1", 0) + on(0, "", 1, ["English", "ะ ัƒััะบะธะน", "Tรผrkรงe", "Espaรฑola", "Deutsch", "Polski"], 0, 5), on(1, "", 1, null, 1), on(2, "", 0, [0, 1]), oo(3, "Username", 2), on(4, "Font5", 1, ["Default", "Custom"]), oo(5, "", 2, null, "Trebuchet MS", 1), on( + 6, "", 0, [0, 1]), on(7, "", 0, [0, 1], 1), on(8, "", 0, [0, 1]), on(9, "", 1, null, 1), on(10, "", 1, null), on(11, "", 1, null, 1), op(100), oo(100, "Username", 2), oo(101, "Password", 2), oo(102, "Emojis", 2), oo(103, "Colors", + 2), oo(104, "Clan", 2), oo(105, "AccountName", 2), oo(106, "Password", 2), on(107), on(108), on(109), oo(110, null, 2), on(111), on(112), on(113), oo(114, null, 2), on(115), oo(116, null, 2), on(117, null, 1), oo(118, null, 2, + null, "", 2), on(119, null, 1, null, 0, 1), oo(120, null, 2), on(121, "CountryColor", 1, null, -1), oo(122, "Username", 2), on(123, "Same as MP Username"), oo(124, null, 2, null, "Player " + Math.floor(1e3 * Math.random())), op( + 180), on(180, "R0", 0), on(181, "R1", 0) }, this.translate = function() { - this.data[0].title = "๐ŸŒ " + aW.no[101], this.data[1].title = aW.no[102], this.data[2].title = aW.no[103], this.data[5].title = aW.no[104], this.data[6].title = aW.no[105], this.data[7].title = aW.no[106], this.data[8].title = aW.no[107], - this.data[9].title = aW.no[108], this.data[10].title = aW.no[109], this.data[11].title = aW.no[110], this.data[1].oD = [aW.no[111], aW.no[112], aW.no[113], aW.no[114]], this.data[9].oD = [aW.no[112], aW.no[115], aW.no[116]], this - .data[10].oD = [aW.no[109] + " 1", aW.no[117] + " 1", aW.no[109] + " 2", aW.no[117] + " 2"], this.data[11].oD = [aW.no[118], aW.no[119], aW.no[120]] - }, this.nq = function(g4, value) { + this.data[0].title = "๐ŸŒ " + aW.np[101], this.data[1].title = aW.np[102], this.data[2].title = aW.np[103], this.data[5].title = aW.np[104], this.data[6].title = aW.np[105], this.data[7].title = aW.np[106], this.data[8].title = aW.np[107], + this.data[9].title = aW.np[108], this.data[10].title = aW.np[109], this.data[11].title = aW.np[110], this.data[1].oE = [aW.np[111], aW.np[112], aW.np[113], aW.np[114]], this.data[9].oE = [aW.np[112], aW.np[115], aW.np[116]], this + .data[10].oE = [aW.np[109] + " 1", aW.np[117] + " 1", aW.np[109] + " 2", aW.np[117] + " 2"], this.data[11].oE = [aW.np[118], aW.np[119], aW.np[120]] + }, this.nr = function(g4, value) { this.data[g4].value = value }, this.dL = function(g4, value) { - this.nq(g4, value), bA.nW.save(g4, String(value)), bA.nW.save(g4, String(this.data[g4].dg), !0) - }, this.ol = function() { - for (var eJ = 0; eJ < this.data.length; eJ++) this.data[eJ] && (bA.nW.save(eJ, String(this.data[eJ].value)), bA.nW.save(eJ, String(this.data[eJ].dg), !0)) - }, this.om = function(g4) { + this.nr(g4, value), bA.nX.save(g4, String(value)), bA.nX.save(g4, String(this.data[g4].dg), !0) + }, this.oq = function() { + for (var eJ = 0; eJ < this.data.length; eJ++) this.data[eJ] && (bA.nX.save(eJ, String(this.data[eJ].value)), bA.nX.save(eJ, String(this.data[eJ].dg), !0)) + }, this.or = function(g4) { return Number(this.data[g4].value) - }, this.on = function(g4) { + }, this.os = function(g4) { return String(this.data[g4].value) } } -function oc() { - this.op = function(g4, dg = !1) { - return Number(this.oq(g4, dg)) - }, this.oq = function(g4, dg = !1) { +function oi() { + this.ou = function(g4, dg = !1) { + return Number(this.ov(g4, dg)) + }, this.ov = function(g4, dg = !1) { var df = null; - return 0 === b8.id ? b8.or && (df = b8.or.getItem((dg ? "v" : "d") + g4)) : 1 === b8.id ? df = b8.os.loadString((dg ? 1e3 : 2e3) + g4) : 2 === b8.id && (df = b8.ot[(dg ? "v" : "d") + g4]), df && 0 !== df.length ? df : null + return 0 === b8.id ? b8.ow && (df = b8.ow.getItem((dg ? "v" : "d") + g4)) : 1 === b8.id ? df = b8.ox.loadString((dg ? 1e3 : 2e3) + g4) : 2 === b8.id && (df = b8.oy[(dg ? "v" : "d") + g4]), df && 0 !== df.length ? df : null }, this.save = function(g4, value, dg = !1) { - 0 === b8.id ? b8.or && b8.or.setItem((dg ? "v" : "d") + g4, value) : 1 === b8.id ? b8.os.saveString((dg ? 1e3 : 2e3) + g4, value) : 2 === b8.id && (b8.ot["d" + g4] = value, b8.ou.postMessage((dg ? "v" : "d") + g4 + " " + value)) + 0 === b8.id ? b8.ow && b8.ow.setItem((dg ? "v" : "d") + g4, value) : 1 === b8.id ? b8.ox.saveString((dg ? 1e3 : 2e3) + g4, value) : 2 === b8.id && (b8.oy["d" + g4] = value, b8.oz.postMessage((dg ? "v" : "d") + g4 + " " + value)) } } -function oh() { +function om() { this.ct = function() { ! function() { var data = bA.dK.data; - 0 === data[2].dg && (aL.gF > aL.gA || 0 !== b8.id) && (data[2].value = data[2].oo = 1); - 0 === data[100].dg && (data[100].value = data[100].oo = (0 === b8.id ? "Player " : 1 === b8.id ? "Android User " : "iOS User ") + Math.floor(1e3 * Math.random())); - data[0].value = data[0].oo = aW.ox() + 0 === data[2].dg && (aL.gF > aL.gA || 0 !== b8.id) && (data[2].value = data[2].ot = 1); + 0 === data[100].dg && (data[100].value = data[100].ot = (0 === b8.id ? "Player " : 1 === b8.id ? "Android User " : "iOS User ") + Math.floor(1e3 * Math.random())); + data[0].value = data[0].ot = aW.p2() }(); var eJ, df, data = bA.dK.data, ef = data.length; - for (eJ = 0; eJ < ef; eJ++) data[eJ] && data[eJ].dg === bA.nW.op(eJ, !0) && (df = bA.nW.oq(eJ), data[eJ].value = null === df ? data[eJ].oo : 2 === data[eJ].type ? df : Number(df)); - bA.dK.data[10].value = bA.dK.data[10].oo + for (eJ = 0; eJ < ef; eJ++) data[eJ] && data[eJ].dg === bA.nX.ou(eJ, !0) && (df = bA.nX.ov(eJ), data[eJ].value = null === df ? data[eJ].ot : 2 === data[eJ].type ? df : Number(df)); + bA.dK.data[10].value = bA.dK.data[10].ot } } -function og() { - function p1(ds) { - if (0 === ds.length) bA.np.nq(116, ""); +function ol() { + function p6(ds) { + if (0 === ds.length) bA.nq.nr(116, ""); else { - let p5 = ds[0]; - for (let eJ = 1; eJ < ds.length; eJ++) p5 += ";" + ds[eJ]; - bA.np.nq(116, p5) + let pA = ds[0]; + for (let eJ = 1; eJ < ds.length; eJ++) pA += ";" + ds[eJ]; + bA.nq.nr(116, pA) } } - this.oy = function() { - bA.dK.data[110].value.length && (bA.dK.data[106].value = bA.dK.data[110], bA.np.nq(110, ""), this.oz()) - }, this.oz = function() { + this.p3 = function() { + bA.dK.data[110].value.length && (bA.dK.data[106].value = bA.dK.data[110], bA.nq.nr(110, ""), this.p4()) + }, this.p4 = function() { var ds = bA.dK.data[116].value.split(";"); ds.length % 2 == 1 && ds.pop(), ds.unshift(bA.dK.data[106].value), ds.unshift(bA.dK.data[105].value); for (let eJ = 2; eJ < ds.length; eJ += 2) if (ds[eJ] === ds[0]) { ds.splice(eJ, 2); break - } var p0 = []; - for (let eJ = 0; eJ < ds.length; eJ += 2) p0.push(ds[eJ]); - p1(ds), bA.dK.data[117].value = 0, bA.dK.data[117].oD = p0 - }, this.p2 = function(g4) { - bA.dK.data[117].oD.splice(g4, 1), bA.dK.data[117].value = Math.min(g4, bA.dK.data[117].oD.length - 1); + } var p5 = []; + for (let eJ = 0; eJ < ds.length; eJ += 2) p5.push(ds[eJ]); + p6(ds), bA.dK.data[117].value = 0, bA.dK.data[117].oE = p5 + }, this.p7 = function(g4) { + bA.dK.data[117].oE.splice(g4, 1), bA.dK.data[117].value = Math.min(g4, bA.dK.data[117].oE.length - 1); var ds = bA.dK.data[116].value.split(";"); - ds.splice(2 * g4, 2), p1(ds) - }, this.p3 = function(g4) { + ds.splice(2 * g4, 2), p6(ds) + }, this.p8 = function(g4) { var ds = bA.dK.data[116].value.split(";"); return { - p4: ds[2 * g4], + p9: ds[2 * g4], password: ds[2 * g4 + 1] } - }, this.o1 = function() { + }, this.o2 = function() { let df = aj.mx(bA.dK.data[121].value, -1, 262143); return df = -1 === df ? ~~(262144 * Math.random()) : df } } -function oe() { - this.nq = function(g4, value) { - bA.dK.data[g4].value !== value && (bA.dK.dL(g4, value), 0 === g4 ? (at.p6(), aW.ct(), at.d5(2)) : 1 === g4 ? aL.d8(1) : 2 === g4 ? aL.d8(0) : 5 === g4 && (aZ.g5.p7(), aL.d8(0))) - }, this.p8 = function() { - for (var data = bA.dK.data, eJ = 0; eJ < 100; eJ++) data[eJ] && bA.dK.dL(eJ, data[eJ].oo); - aZ.g5.p7(), aL.d8(1), aW.ct() - }, this.p9 = function() { +function ok() { + this.nr = function(g4, value) { + bA.dK.data[g4].value !== value && (bA.dK.dL(g4, value), 0 === g4 ? (at.pB(), aW.ct(), at.d5(2)) : 1 === g4 ? aL.d8(1) : 2 === g4 ? aL.d8(0) : 5 === g4 && (aZ.g5.pC(), aL.d8(0))) + }, this.pD = function() { + for (var data = bA.dK.data, eJ = 0; eJ < 100; eJ++) data[eJ] && bA.dK.dL(eJ, data[eJ].ot); + aZ.g5.pC(), aL.d8(1), aW.ct() + }, this.pE = function() { var data = bA.dK.data; - for (let eJ = 0; eJ < data.length; eJ++) data[eJ] && bA.dK.nq(eJ, data[eJ].oo) + for (let eJ = 0; eJ < data.length; eJ++) data[eJ] && bA.dK.nr(eJ, data[eJ].ot) } } function bO() { - this.pA = new pB, this.pC = new pD, this.ct = function() { - this.pA.ct() + this.pF = new pG, this.pH = new pI, this.ct = function() { + this.pF.ct() } } -function pD() { - this.pE = function(size) { - var pF = af, +function pI() { + this.pJ = function(size) { + var pK = af, ds = []; - for (let eJ = 0; eJ < size; eJ++) ds.push(String.fromCharCode(pF.mQ(16))); + for (let eJ = 0; eJ < size; eJ++) ds.push(String.fromCharCode(pK.mQ(16))); return ds.join("") - }, this.pG = function(g3) { + }, this.pL = function(g3) { return 20 < (g3 = g3.trim()).length ? g3.substring(0, 20) : g3 } } -function pB() { - var pH = new Uint8Array(78); +function pG() { + var pM = new Uint8Array(78); this.ct = function() { var eJ; - for (pH[50] = 37, eJ = 0; eJ < 10; eJ++) pH[eJ + 3] = eJ + 1; - for (eJ = 0; eJ < 26; eJ++) pH[eJ + 20] = eJ + 11, pH[eJ + 52] = eJ + 38 - }, this.pI = function(g3) { + for (pM[50] = 37, eJ = 0; eJ < 10; eJ++) pM[eJ + 3] = eJ + 1; + for (eJ = 0; eJ < 26; eJ++) pM[eJ + 20] = eJ + 11, pM[eJ + 52] = eJ + 38 + }, this.pN = function(g3) { return g3.trim().replace(new RegExp("[^a-zA-Z0-9_\\-]", "g"), "_") - }, this.pJ = function(g3, size) { - if ((g3 = this.pI(g3)).length > size) return g3.substring(0, size); + }, this.pO = function(g3, size) { + if ((g3 = this.pN(g3)).length > size) return g3.substring(0, size); for (; g3.length < size;) g3 += "_"; return g3 - }, this.pK = function(g3) { - for (var pL = pH, ef = g3.length, ds = new Uint8Array(ef), eJ = 0; eJ < ef; eJ++) ds[eJ] = pL[g3.charCodeAt(eJ) - 45]; + }, this.pP = function(g3) { + for (var pQ = pM, ef = g3.length, ds = new Uint8Array(ef), eJ = 0; eJ < ef; eJ++) ds[eJ] = pQ[g3.charCodeAt(eJ) - 45]; return ds - }, this.pM = function(pN) { - ac.d4(6 * pN.length), this.pO(pN), af.ct(ac.mP) - }, this.pO = function(pN) { - var ef = pN.length, + }, this.pR = function(pS) { + ac.d4(6 * pS.length), this.pT(pS), af.ct(ac.mP) + }, this.pT = function(pS) { + var ef = pS.length, gA = ac; - for (let eJ = 0; eJ < ef; eJ++) gA.pP(6, pN[eJ]) - }, this.pQ = function(g3) { - this.pO(this.pK(g3)) - }, this.pR = function(g3, size) { - this.pO(this.pK(this.pJ(g3, size))) + for (let eJ = 0; eJ < ef; eJ++) gA.pU(6, pS[eJ]) + }, this.pV = function(g3) { + this.pT(this.pP(g3)) + }, this.pW = function(g3, size) { + this.pT(this.pP(this.pO(g3, size))) } } -function pS() { - var gA, gF, pT; +function pX() { + var gA, gF, pY; - function pt(pu, eo, pr, pZ, pm) { - eo = ps(pu, eo + 1 + 2 * pZ & 3); - ! function(pu, pv) { - return 1 < Math.abs(pu % gA - pv % gA) || 1 < Math.abs(py(pu) - py(pv)) - }(pu, eo) && 0 === pm[eo << 2] && (pm[eo << 2] = pr) + function py(pz, eo, pw, pe, pr) { + eo = px(pz, eo + 1 + 2 * pe & 3); + ! function(pz, q0) { + return 1 < Math.abs(pz % gA - q0 % gA) || 1 < Math.abs(q3(pz) - q3(q0)) + }(pz, eo) && 0 === pr[eo << 2] && (pr[eo << 2] = pw) } - function py(em) { + function q3(em) { return Math.floor((em + .5) / gA) % gF } - function ps(em, eo) { - return em + pT[eo] + function px(em, eo) { + return em + pY[eo] } - this.pU = function(g3) { - var eJ, pV, ef, pX, pF = af; - for (ae.pA.pM(ae.pA.pK(g3)), aq.eE = gA = pF.mQ(12), aq.eF = gF = pF.mQ(12), pT = [-gA, -1, gA, 1], aq.pi = document.createElement("canvas"), aq.pi.width = aq.eE, aq.pi.height = aq.eF, aq.pe = aq.pi.getContext("2d", { + this.pZ = function(g3) { + var eJ, pa, ef, pc, pK = af; + for (ae.pF.pR(ae.pF.pP(g3)), aq.eE = gA = pK.mQ(12), aq.eF = gF = pK.mQ(12), pY = [-gA, -1, gA, 1], aq.pn = document.createElement("canvas"), aq.pn.width = aq.eE, aq.pn.height = aq.eF, aq.pj = aq.pn.getContext("2d", { alpha: !1 - }), aq.pf = aq.pe.getImageData(0, 0, aq.eE, aq.eF), aq.pj = aq.pf.data, aZ.pk.pl(aq.pj), ef = pF.mQ(12), pV = pF.mQ(5), pX = pb(gA * gF - 1), eJ = 0; eJ < ef; eJ++) ! function(pW, em, pY, pZ) { - var eJ, eo, pF = af, - pm = aq.pj, - pn = em, - po = em, - pp = 0, - pq = 1 + pY, - pr = 2 - pY; - for (pm[em << 2] = pq, eJ = 0; eJ < pW; eJ++) eo = pF.mQ(2), em = ps(em, eo), pm[em << 2] === pq ? pp % 2 == 1 && pt(po, pp + 2 * pZ + 3, pr, pZ, pm) : pm[em << 2] = pq, pt(em, eo, pr, pZ, pm), pt(po, eo, pr, pZ, pm), po = em, - pp = eo; - ps(em, 0) === pn ? (pt(em, 0, pr, pZ, pm), pt(pn, 0, pr, pZ, pm)) : ps(em, 1) === pn && (pt(em, 0, pr, pZ, pm), pt(pn, 2, pr, pZ, pm)); - 0 === pW && (pt(pn, 0, pr, pZ, pm), pt(pn, 2, pr, pZ, pm)) - }(pF.mQ(pV), pF.mQ(pX), 1 === pF.mQ(1), 1 === pF.mQ(1)); - var fO, fP, pz, q0, q1, q2, pm = aq.pj, - q3 = !0, - q4 = aq.ir.q5[aq.q6].q4, - q7 = aq.ir.q5[aq.q6].q7; + }), aq.pk = aq.pj.getImageData(0, 0, aq.eE, aq.eF), aq.po = aq.pk.data, aZ.pp.pq(aq.po), ef = pK.mQ(12), pa = pK.mQ(5), pc = pg(gA * gF - 1), eJ = 0; eJ < ef; eJ++) ! function(pb, em, pd, pe) { + var eJ, eo, pK = af, + pr = aq.po, + ps = em, + pt = em, + pu = 0, + pv = 1 + pd, + pw = 2 - pd; + for (pr[em << 2] = pv, eJ = 0; eJ < pb; eJ++) eo = pK.mQ(2), em = px(em, eo), pr[em << 2] === pv ? pu % 2 == 1 && py(pt, pu + 2 * pe + 3, pw, pe, pr) : pr[em << 2] = pv, py(em, eo, pw, pe, pr), py(pt, eo, pw, pe, pr), pt = em, + pu = eo; + px(em, 0) === ps ? (py(em, 0, pw, pe, pr), py(ps, 0, pw, pe, pr)) : px(em, 1) === ps && (py(em, 0, pw, pe, pr), py(ps, 2, pw, pe, pr)); + 0 === pb && (py(ps, 0, pw, pe, pr), py(ps, 2, pw, pe, pr)) + }(pK.mQ(pa), pK.mQ(pc), 1 === pK.mQ(1), 1 === pK.mQ(1)); + var fO, fP, q4, q5, q6, q7, pr = aq.po, + q8 = !0, + q9 = aq.ir.qA[aq.qB].q9, + qC = aq.ir.qA[aq.qB].qC; for (fP = 0; fP < gF; fP++) - for (q0 = !0, q1 = q3, fO = q2 = 0; fO < gA; fO++) pz = 4 * fP * gA + 4 * fO, q2 <= fO && 0 < pm[pz] && (q1 = 2 === pm[pz], q0) && (q0 = !1, q1 !== q3) ? (q3 = q1, q2 = fO + 1, fO = -1) : (q1 ? (pm[pz] = q7[0], pm[1 + pz] = q7[1], pm[ - 2 + pz] = q7[2]) : (pm[pz] = q4[0], pm[1 + pz] = q4[1], pm[2 + pz] = q4[2]), pm[3 + pz] = 255); - aq.pe.putImageData(aq.pf, 0, 0), aq.pg = !0, aq.ph.ct(), b4.d3 = !0 + for (q5 = !0, q6 = q8, fO = q7 = 0; fO < gA; fO++) q4 = 4 * fP * gA + 4 * fO, q7 <= fO && 0 < pr[q4] && (q6 = 2 === pr[q4], q5) && (q5 = !1, q6 !== q8) ? (q8 = q6, q7 = fO + 1, fO = -1) : (q6 ? (pr[q4] = qC[0], pr[1 + q4] = qC[1], pr[ + 2 + q4] = qC[2]) : (pr[q4] = q9[0], pr[1 + q4] = q9[1], pr[2 + q4] = q9[2]), pr[3 + q4] = 255); + aq.pj.putImageData(aq.pk, 0, 0), aq.pl = !0, aq.pm.ct(), b4.d3 = !0 } } function bU() { - var fO, fP, gA, gF, q8, q9, qA, qB, player, ds; + var fO, fP, gA, gF, qD, qE, qF, qG, player, ds; - function qJ() { + function qO() { return function() { var eJ; for (eJ = 0; eJ < 8; eJ++) - if (fO = eX(gA * aM.random(), aM.value(100)), fP = eX(gF * aM.random(), aM.value(100)), qR()) return 1; + if (fO = eX(gA * aM.random(), aM.value(100)), fP = eX(gF * aM.random(), aM.value(100)), qW()) return 1; return }() || function() { - var h1, h4, hg, qH, hp, qG; + var h1, h4, hg, qM, hp, qL; for (h1 = eX(gA * aM.random(), aM.value(100)), h4 = eX(gF * aM.random(), aM.value(100)), hg = 40; 1 <= hg; hg--) - for (qH = gF - hg; 0 <= qH; qH -= 40) - for (fP = (qH + h4) % gF, hp = 40; 1 <= hp; hp--) - for (qG = gA - hp; 0 <= qG; qG -= 40) - if (fO = (qG + h1) % gA, qR()) return 1; + for (qM = gF - hg; 0 <= qM; qM -= 40) + for (fP = (qM + h4) % gF, hp = 40; 1 <= hp; hp--) + for (qL = gA - hp; 0 <= qL; qL -= 40) + if (fO = (qL + h1) % gA, qW()) return 1; return }() } - function qR() { - for (var em, qT, gap = eX(q8 - qB, 2), qU = qA + fP * q8 + gap, qV = q9 + fO * q8 + gap, qS = qU + qB - 1; qU <= qS; qS--) - for (qT = qV + qB - 1; qV <= qT; qT--) - if (em = a1.qP(qT, qS), !a1.eh(em) || a1.hc(em)) return; + function qW() { + for (var em, qY, gap = eX(qD - qG, 2), qZ = qF + fP * qD + gap, qa = qE + fO * qD + gap, qX = qZ + qG - 1; qZ <= qX; qX--) + for (qY = qa + qG - 1; qa <= qY; qY--) + if (em = a1.qU(qY, qX), !a1.eh(em) || a1.hc(em)) return; return 1 } - function qK(qG, qH) { - qC(), qW(qG - 2, qH - 2) + function qP(qL, qM) { + qH(), qb(qL - 2, qM - 2) } - function qC() { - a6.jS[player] = 0, a6.eb[player] = 0, a6.f5[player] = a6.qX[player] = 0, a6.eg[player] = [], a6.ex[player] = [], a6.ey[player] = [], a6.f1[player] = [], a6.i2[player] = a6.i5[player] = a6.i1[player] = a6.i4[player] = 0 + function qH() { + a6.jS[player] = 0, a6.eb[player] = 0, a6.f5[player] = a6.qc[player] = 0, a6.eg[player] = [], a6.ex[player] = [], a6.ey[player] = [], a6.f1[player] = [], a6.i2[player] = a6.i5[player] = a6.i1[player] = a6.i4[player] = 0 } - function qW(qG, qH) { - var em, eJ, qZ, qa; - for (a6.jS[player] = 1, player < b.ht ? a6.eb[player] = b.qY : a6.eb[player] = ib[c.ha[player - b.ht]], a6.i2[player] = qG + 10, a6.i5[player] = qH + 10, a6.i4[player] = a6.i1[player] = 0, qZ = qG; qZ < qG + 4; qZ++) - for (qa = qH; qa < qH + 4; qa++)(qG < qZ && qZ < qG + 3 || qH < qa && qa < qH + 3) && (em = a1.qP(qZ, qa), a1.eh(em)) && (a6.i2[player] = qZ < a6.i2[player] ? qZ : a6.i2[player], a6.i1[player] = qZ > a6.i1[player] ? qZ : a6.i1[player], a6 - .i5[player] = qa < a6.i5[player] ? qa : a6.i5[player], a6.i4[player] = qa > a6.i4[player] ? qa : a6.i4[player], ds[a6.f5[player]] = em, a6.f5[player]++, a1.qb(em, player)); - for (a6.qX[player] = a6.f5[player], eJ = a6.f5[player] - 1; 0 <= eJ; eJ--) a1.qc(ds[eJ], player) ? (a1.ei(ds[eJ], player), a6.ex[player].push(ds[eJ])) : a1.qd(ds[eJ]) ? (a1.ei(ds[eJ], player), a6.ey[player].push(ds[eJ])) : a1.qe(ds[eJ]) && ( + function qb(qL, qM) { + var em, eJ, qe, qf; + for (a6.jS[player] = 1, player < b.ht ? a6.eb[player] = b.qd : a6.eb[player] = ib[c.ha[player - b.ht]], a6.i2[player] = qL + 10, a6.i5[player] = qM + 10, a6.i4[player] = a6.i1[player] = 0, qe = qL; qe < qL + 4; qe++) + for (qf = qM; qf < qM + 4; qf++)(qL < qe && qe < qL + 3 || qM < qf && qf < qM + 3) && (em = a1.qU(qe, qf), a1.eh(em)) && (a6.i2[player] = qe < a6.i2[player] ? qe : a6.i2[player], a6.i1[player] = qe > a6.i1[player] ? qe : a6.i1[player], a6 + .i5[player] = qf < a6.i5[player] ? qf : a6.i5[player], a6.i4[player] = qf > a6.i4[player] ? qf : a6.i4[player], ds[a6.f5[player]] = em, a6.f5[player]++, a1.qg(em, player)); + for (a6.qc[player] = a6.f5[player], eJ = a6.f5[player] - 1; 0 <= eJ; eJ--) a1.qh(ds[eJ], player) ? (a1.ei(ds[eJ], player), a6.ex[player].push(ds[eJ])) : a1.qi(ds[eJ]) ? (a1.ei(ds[eJ], player), a6.ey[player].push(ds[eJ])) : a1.qj(ds[eJ]) && ( a1.ei(ds[eJ], player), a6.f1[player].push(ds[eJ])) } - function qQ(qG, qH) { - for (var em, qT, qS = qH; qH - 6 < qS; qS--) - for (qT = qG; qG - 6 < qT; qT--) - if (em = a1.qP(qT, qS), a1.hc(em)) return; + function qV(qL, qM) { + for (var em, qY, qX = qM; qM - 6 < qX; qX--) + for (qY = qL; qL - 6 < qY; qY--) + if (em = a1.qU(qY, qX), a1.hc(em)) return; return 1 } this.ct = function() { - var eJ, qG, qH; - if (ds = new Array(12), qB = 6, q8 = 10, gA = eX(aq.eE, q8), gF = eX(aq.eF, q8), q9 = eX(aq.eE - q8 * gA, 2), qA = eX(aq.eF - q8 * gF, 2), b.fj) - for (eJ = 0; eJ < b.ht; eJ++) player = eJ, qC(), a6.jS[player] = 1; - if (aV.iq && aV.ir.qD) { + var eJ, qL, qM; + if (ds = new Array(12), qG = 6, qD = 10, gA = eX(aq.eE, qD), gF = eX(aq.eF, qD), qE = eX(aq.eE - qD * gA, 2), qF = eX(aq.eF - qD * gF, 2), b.fj) + for (eJ = 0; eJ < b.ht; eJ++) player = eJ, qH(), a6.jS[player] = 1; + if (aV.iq && aV.ir.qI) { for (player = 0; player < b.ej; player++) if (1 !== a6.jS[player]) { - if (player < b.qI) { + if (player < b.qN) { if (function() { - var qG = aV.ir.qD[player] + 1, - qH = aV.ir.qO[player] + 1; - if (3 < qG && qG < aq.eE - 5 && 3 < qH && qH < aq.eF - 5 && a1.eh(a1.qP(qG, qH)) && qQ(qG + 3, qH + 3)) return qK(qG + 1, qH + 1), 1; + var qL = aV.ir.qI[player] + 1, + qM = aV.ir.qT[player] + 1; + if (3 < qL && qL < aq.eE - 5 && 3 < qM && qM < aq.eF - 5 && a1.eh(a1.qU(qL, qM)) && qV(qL + 3, qM + 3)) return qP(qL + 1, qM + 1), 1; return }()) continue; - if (qJ()) { - qG = q9 + fO * q8 + eX(q8, 2), qH = qA + fP * q8 + eX(q8, 2), qK(qG, qH); + if (qO()) { + qL = qE + fO * qD + eX(qD, 2), qM = qF + fP * qD + eX(qD, 2), qP(qL, qM); continue } } - qC() + qH() } } else ! function() { - var qG, qH; - for (player = 0; player < b.ej; player++) 1 !== a6.jS[player] && (player < b.qI && qJ() ? (qG = q9 + fO * q8 + eX(q8, 2), qH = qA + fP * q8 + eX(q8, 2), qK(qG, qH)) : qC()) + var qL, qM; + for (player = 0; player < b.ej; player++) 1 !== a6.jS[player] && (player < b.qN && qO() ? (qL = qE + fO * qD + eX(qD, 2), qM = qF + fP * qD + eX(qD, 2), qP(qL, qM)) : qH()) }(); b2.ed[7] = a6.f5[b.ea], b2.ed[8] = a6.eb[b.ea] - }, this.qf = function(hZ, qg, qh) { - var eJ, qG, qH, em, fO, fP; + }, this.qk = function(hZ, ql, qm) { + var eJ, qL, qM, em, fO, fP; for (player = hZ, eJ = 0; eJ < 20; eJ++) - for (qG = qg + eJ; qg - eJ <= qG; qG--) - for (qH = qh + eJ; qh - eJ <= qH; qH--) - if ((qG === qg + eJ || qG === qg - eJ || qH === qh + eJ || qH === qh - eJ) && 3 < qG && qG < aq.eE - 5 && 3 < qH && qH < aq.eF - 5 && a1.eh(a1.qP(qG, qH)) && qQ(qG + 3, qH + 3)) { + for (qL = ql + eJ; ql - eJ <= qL; qL--) + for (qM = qm + eJ; qm - eJ <= qM; qM--) + if ((qL === ql + eJ || qL === ql - eJ || qM === qm + eJ || qM === qm - eJ) && 3 < qL && qL < aq.eE - 5 && 3 < qM && qM < aq.eF - 5 && a1.eh(a1.qU(qL, qM)) && qV(qL + 3, qM + 3)) { if (0 < a6.f5[player]) { for (fP = fO = em = void 0, fO = a6.i1[player]; fO >= a6.i2[player]; fO--) - for (fP = a6.i4[player]; fP >= a6.i5[player]; fP--) em = 4 * (fP * aq.eE + fO), a1.qj(player, em) && (a1.qk(em), a6.f5[player]--); - qC() + for (fP = a6.i4[player]; fP >= a6.i5[player]; fP--) em = 4 * (fP * aq.eE + fO), a1.qo(player, em) && (a1.qp(em), a6.f5[player]--); + qH() } - return qW(qG - 1, qH - 1), !0 + return qb(qL - 1, qM - 1), !0 } return !1 - }, this.ql = function(hZ) { - player = hZ, qJ() ? qK(q9 + fO * q8 + eX(q8, 2), qA + fP * q8 + eX(q8, 2)) : qC() + }, this.qq = function(hZ) { + player = hZ, qO() ? qP(qE + fO * qD + eX(qD, 2), qF + fP * qD + eX(qD, 2)) : qH() } } -function qm() { - aE.qn(), gM.setTransform(hB, 0, 0, hB, 0, 0), gM.imageSmoothingEnabled = hB < 3, gM.drawImage(aq.pi, q.jn(), q.gK()), an.qo.gL(), gM.drawImage(qp, q.jn(), q.gK()), aE.gL(), gM.imageSmoothingEnabled = !1, gM.setTransform(1, 0, 0, 1, 0, 0), al.qo +function qr() { + aE.qs(), gM.setTransform(hB, 0, 0, hB, 0, 0), gM.imageSmoothingEnabled = hB < 3, gM.drawImage(aq.pn, q.jn(), q.gK()), an.qt.gL(), gM.drawImage(qu, q.jn(), q.gK()), aE.gL(), gM.imageSmoothingEnabled = !1, gM.setTransform(1, 0, 0, 1, 0, 0), al.qt .gL(), a5.gL(), f.gL(), (b.kG ? (b6.gL(), ab) : (l.gL(), t.gL(), p.gL(), ab.gL(), aJ.gL(), u.gL(), q.gL(), o.gL(), b6.gL(), s.gL(), n.gL(), k.gL(), j.gL(), v.gL(), b3.gL(), aG)).gL() } -function qq(qr, gA, gF) { - qr.clearRect(0, 0, gA, gF), qr.fillStyle = aa.kh, qr.fillRect(0, 0, gA, gF) +function qv(qw, gA, gF) { + qw.clearRect(0, 0, gA, gF), qw.fillStyle = aa.kh, qw.fillRect(0, 0, gA, gF) } -function qs(qr, gA, gF, qt) { - qr.fillStyle = aa.gN, qr.fillRect(0, 0, gA, qt), qr.fillRect(0, 0, qt, gF), qr.fillRect(gA - qt, 0, qt, gF), qr.fillRect(0, gF - qt, gA, qt) +function qx(qw, gA, gF, qy) { + qw.fillStyle = aa.gN, qw.fillRect(0, 0, gA, qy), qw.fillRect(0, 0, qy, gF), qw.fillRect(gA - qy, 0, qy, gF), qw.fillRect(0, gF - qy, gA, qy) } -function qu(qr, fO, fP, gP, qt, em, qv) { - qr.fillStyle = aa.gN; +function qz(qw, fO, fP, gP, qy, em, r0) { + qw.fillStyle = aa.gN; var em = Math.floor(gP * em), - qx = (em += (em - qt) % 2, Math.floor((em - qt) / 2)), + r2 = (em += (em - qy) % 2, Math.floor((em - qy) / 2)), gP = Math.floor((gP - em) / 2); - qr.fillRect(fO + gP, fP + gP + qx, em, qt), qv && qr.fillRect(fO + gP + qx, fP + gP, qt, em) + qw.fillRect(fO + gP, fP + gP + r2, em, qy), r0 && qw.fillRect(fO + gP + r2, fP + gP, qy, em) } -function qz() { - this.r0 = null, this.ct = function(r0) { - this.r0 = r0, l.r1(this.r0) - }, this.r2 = function(r3) { - var gn = (this.r0[r3].r4 - this.r0[1 - r3].r4) / 10, +function r4() { + this.r5 = null, this.ct = function(r5) { + this.r5 = r5, l.r6(this.r5) + }, this.r7 = function(r8) { + var gn = (this.r5[r8].r9 - this.r5[1 - r8].r9) / 10, gn = 8 / (1 + Math.pow(2, gn / 32)), gn = Math.floor(10 * gn + .5), - r6 = this.r7(this.r0[r3].r4 + gn + 1), - gn = this.r7(this.r0[1 - r3].r4 - gn); - 0 === r3 ? l.r9(this.r0, r6, gn, ["rgba(10,140,10,0.75)", "rgba(140,10,10,0.75)"]) : l.r9(this.r0, gn, r6, ["rgba(140,10,10,0.75)", "rgba(10,140,10,0.75)"]) - }, this.r7 = function(r4) { - return 16e3 <= (r4 = r4 < 0 ? 0 : 16e3 < r4 ? 16e3 : r4) ? "Unknown" : (r4 / 10).toFixed(1) + rB = this.rC(this.r5[r8].r9 + gn + 1), + gn = this.rC(this.r5[1 - r8].r9 - gn); + 0 === r8 ? l.rE(this.r5, rB, gn, ["rgba(10,140,10,0.75)", "rgba(140,10,10,0.75)"]) : l.rE(this.r5, gn, rB, ["rgba(140,10,10,0.75)", "rgba(10,140,10,0.75)"]) + }, this.rC = function(r9) { + return 16e3 <= (r9 = r9 < 0 ? 0 : 16e3 < r9 ? 16e3 : r9) ? "Unknown" : (r9 / 10).toFixed(1) } } function bx() { - this.rA = new rB, this.pm = new rC + this.rF = new rG, this.pr = new rH } -function rC() { - this.rD = !1; - let jj, jk, gap, gP, zoom, rE, rG; - this.rH = [], this.rI = 100; - let rK = 0, - rL = new Array(9), - rM = [], - rN = [], - rO = 0, - rP = 0, - rQ = 0, - rR = 0; +function rH() { + this.rI = !1; + let jj, jk, gap, gP, zoom, rJ, rL; + this.rM = [], this.rN = 100; + let rP = 0, + rQ = new Array(9), + rR = [], + rS = [], + rT = 0, + rU = 0, + rV = 0, + rW = 0; - function rd() { - rL.sort((hg, hp) => hp.ic - hg.ic); - let g3 = "" + rL[0].m0; - for (let eJ = 1; eJ < 9; eJ++) g3 += "," + rL[eJ].m0; - for (let eJ = 0; eJ < 9; eJ++) g3 += "," + rL[eJ].ic; + function ri() { + rQ.sort((hg, hp) => hp.ic - hg.ic); + let g3 = "" + rQ[0].m0; + for (let eJ = 1; eJ < 9; eJ++) g3 += "," + rQ[eJ].m0; + for (let eJ = 0; eJ < 9; eJ++) g3 += "," + rQ[eJ].ic; bA.dK.dL(120, g3) } this.ct = function() { - var rS = [0, 1, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 6]; - for (let eJ = 0; eJ < rS.length; eJ++) { - var color = 6 === rS[eJ] ? aa.l6 : aa.ki; - this.rH.push(aZ.gV.rT(a0.get(3), rS[eJ], color)) + var rX = [0, 1, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 6]; + for (let eJ = 0; eJ < rX.length; eJ++) { + var color = 6 === rX[eJ] ? aa.l6 : aa.ki; + this.rM.push(aZ.gV.rY(a0.get(3), rX[eJ], color)) } - for (let eJ = 0; eJ < a9.rA.rU; eJ++) rN.push(a9.rA.rV - a9.rA.rU + eJ); - for (let eJ = 0; eJ < a9.rA.rW; eJ++) rN.push(a9.rA.rX + eJ); - var rY = a9.rA.rZ(ai.rY); - for (let eJ = 0; eJ < rY.length; eJ++) rN.push(rY[eJ]); + for (let eJ = 0; eJ < a9.rF.rZ; eJ++) rS.push(a9.rF.ra - a9.rF.rZ + eJ); + for (let eJ = 0; eJ < a9.rF.rb; eJ++) rS.push(a9.rF.rc + eJ); + var rd = a9.rF.re(ai.rd); + for (let eJ = 0; eJ < rd.length; eJ++) rS.push(rd[eJ]); var ds = bA.dK.data[120].value.split(","); if (18 !== ds.length) - for (let eJ = 0; eJ < 9; eJ++) rL[eJ] = { + for (let eJ = 0; eJ < 9; eJ++) rQ[eJ] = { m0: 1015 + eJ, ic: 0 }; else for (let eJ = 0; eJ < 9; eJ++) { var df = parseInt(ds[eJ]), - iT = (df = 0 <= df && df < a9.rA.rV ? df : 0, parseInt(ds[eJ + 9])); - iT = 0 <= iT && iT < 1e3 ? iT : 0, rL[eJ] = { + iT = (df = 0 <= df && df < a9.rF.ra ? df : 0, parseInt(ds[eJ + 9])); + iT = 0 <= iT && iT < 1e3 ? iT : 0, rQ[eJ] = { m0: df, ic: iT } } - }, this.show = function(gD, gE, re = 0) { - if (rO = gD, rP = gE, rK = re, this.rD = !0, rM = [], 0 === rK) - for (let eJ = 0; eJ < 9; eJ++) rM.push(rL[eJ].m0); + }, this.show = function(gD, gE, rj = 0) { + if (rT = gD, rU = gE, rP = rj, this.rI = !0, rR = [], 0 === rP) + for (let eJ = 0; eJ < 9; eJ++) rR.push(rQ[eJ].m0); else { - let hp = 49 * rK, + let hp = 49 * rP, hg = hp - 49; - hg >= rN.length && (rK = 1, hg = 0, hp = 49), hp = Math.min(hp, rN.length); - for (let eJ = hg = hp - 49; eJ < hp; eJ++) rM.push(rN[eJ]) + hg >= rS.length && (rP = 1, hg = 0, hp = 49), hp = Math.min(hp, rS.length); + for (let eJ = hg = hp - 49; eJ < hp; eJ++) rR.push(rS[eJ]) } - rM.push(1024); - re = rM.length, gP = Math.floor((b8.cy.g0() ? .075 : .0468) * aL.g1), gap = Math.floor(gP / 3), rE = gP + gap, (rQ = 10 * rE) > aL.gA && (rQ = aL.gA, rE = rQ / 10, gP = 3 * rE / 4, gap = rE - gP), rG = aj.fK(re, 10) + !!(re % 10), (rR = - rG * rE) > aL.gF && (rR = aL.gF, rE = rR / rG, gP = 3 * rE / 4, gap = rE - gP), zoom = gP / this.rI, re = .5 * gap; - jj = Math.min(Math.max(gD - .5 * rQ + re, re), aL.gA - rQ + re), jk = Math.min(Math.max(gE - .5 * rR + re, re), aL.gF - rR + re) + rR.push(1024); + rj = rR.length, gP = Math.floor((b8.cy.g0() ? .075 : .0468) * aL.g1), gap = Math.floor(gP / 3), rJ = gP + gap, (rV = 10 * rJ) > aL.gA && (rV = aL.gA, rJ = rV / 10, gP = 3 * rJ / 4, gap = rJ - gP), rL = aj.fK(rj, 10) + !!(rj % 10), (rW = + rL * rJ) > aL.gF && (rW = aL.gF, rJ = rW / rL, gP = 3 * rJ / 4, gap = rJ - gP), zoom = gP / this.rN, rj = .5 * gap; + jj = Math.min(Math.max(gD - .5 * rV + rj, rj), aL.gA - rV + rj), jk = Math.min(Math.max(gE - .5 * rW + rj, rj), aL.gF - rW + rj) }, this.fX = function(gD, gE, player) { - if (!this.rD) return !1; - if (this.rh(gD, gE)) { - gD = aj.mx(aj.fK(gD - jj + .5 * gap, rE), 0, 9); - if ((gD += 10 * aj.mx(aj.fK(gE - jk + .5 * gap, rE), 0, 9)) >= rM.length) return j.oN(), !0; - gE = rM[gD]; - if (1024 === gE) return this.show(rO, rP, rK + 1), !0; + if (!this.rI) return !1; + if (this.rm(gD, gE)) { + gD = aj.mx(aj.fK(gD - jj + .5 * gap, rJ), 0, 9); + if ((gD += 10 * aj.mx(aj.fK(gE - jk + .5 * gap, rJ), 0, 9)) >= rR.length) return j.oP(), !0; + gE = rR[gD]; + if (1024 === gE) return this.show(rT, rU, rP + 1), !0; ! function(m0) { - for (let eJ = 0; eJ < 9; eJ++) rL[eJ].ic = Math.floor(.99 * rL[eJ].ic); + for (let eJ = 0; eJ < 9; eJ++) rQ[eJ].ic = Math.floor(.99 * rQ[eJ].ic); for (let eJ = 0; eJ < 9; eJ++) - if (m0 === rL[eJ].m0) return rL[eJ].ic = Math.min(rL[eJ].ic + 30, 999), rd(); - rL.splice(5, 0, { + if (m0 === rQ[eJ].m0) return rQ[eJ].ic = Math.min(rQ[eJ].ic + 30, 999), ri(); + rQ.splice(5, 0, { m0: m0, - ic: Math.max(rL[4].ic, 30) - }), rL.pop(), rd() + ic: Math.max(rQ[4].ic, 30) + }), rQ.pop(), ri() }(gE), player === b.ea ? aX.fk.lz(gE) : aX.fU.mE(gE, player) } - return j.oN(), !0 - }, this.rh = function(gD, gE) { - return !(gD < jj - .5 * gap || gE < jk - .5 * gap || gD >= jj + rQ - .5 * gap || gE >= jk + rR - .5 * gap) + return j.oP(), !0 + }, this.rm = function(gD, gE) { + return !(gD < jj - .5 * gap || gE < jk - .5 * gap || gD >= jj + rV - .5 * gap || gE >= jk + rW - .5 * gap) }, this.gL = function() { - gM.fillStyle = aa.kh, gM.fillRect(jj - .5 * gap, jk - .5 * gap, rQ, rR); - var pz = .5 * b1.ri, - ef = (gM.lineWidth = b1.ri, gM.strokeStyle = gM.fillStyle = aa.gN, gM.strokeRect(jj - .5 * gap + pz, jk - .5 * gap + pz, rQ - 2 * pz, rR - 2 * pz), gM.imageSmoothingEnabled = !0, rM.length); - for (let eJ = 0; eJ < ef; eJ++) this.rj(rM[eJ], gM, jj + eJ % 10 * rE, jk + aj.fK(eJ, 10) * rE, gP); + gM.fillStyle = aa.kh, gM.fillRect(jj - .5 * gap, jk - .5 * gap, rV, rW); + var q4 = .5 * b1.rn, + ef = (gM.lineWidth = b1.rn, gM.strokeStyle = gM.fillStyle = aa.gN, gM.strokeRect(jj - .5 * gap + q4, jk - .5 * gap + q4, rV - 2 * q4, rW - 2 * q4), gM.imageSmoothingEnabled = !0, rR.length); + for (let eJ = 0; eJ < ef; eJ++) this.ro(rR[eJ], gM, jj + eJ % 10 * rJ, jk + aj.fK(eJ, 10) * rJ, gP); gM.imageSmoothingEnabled = !1 - }, this.rj = function(m0, gW, fO, fP, gP) { + }, this.ro = function(m0, gW, fO, fP, gP) { var fg; - m0 >= 1024 - a9.rA.rU ? (fg = gP / this.rI, gW.setTransform(fg, 0, 0, fg, fO, fP), gW.drawImage(this.rH[m0 - 1024 + a9.rA.rU], 0, 0), gW.setTransform(1, 0, 0, 1, 0, 0)) : (aZ.g5.textAlign(gW, 1), aZ.g5.textBaseline(gW, 1), gW.font = aZ.g5 - .g6(0, .89 * gP), gW.fillText(a9.rA.rk(m0), fO + .5 * gP, fP + (.35 - aZ.g5.rl + .56) * gP)) + m0 >= 1024 - a9.rF.rZ ? (fg = gP / this.rN, gW.setTransform(fg, 0, 0, fg, fO, fP), gW.drawImage(this.rM[m0 - 1024 + a9.rF.rZ], 0, 0), gW.setTransform(1, 0, 0, 1, 0, 0)) : (aZ.g5.textAlign(gW, 1), aZ.g5.textBaseline(gW, 1), gW.font = aZ.g5 + .g6(0, .89 * gP), gW.fillText(a9.rF.rp(m0), fO + .5 * gP, fP + (.35 - aZ.g5.rq + .56) * gP)) } } -function rB() { +function rG() { this.emojis = ["๐Ÿฅฐ", "๐Ÿ˜Ž", "๐Ÿ˜˜", "๐Ÿ˜œ", "๐Ÿค—", "๐Ÿฅณ", "๐Ÿ˜‡", "๐Ÿ˜Š", "๐Ÿฅฑ", "๐Ÿ™„", "๐Ÿค”", "๐Ÿฅบ", "๐Ÿ˜ก", "๐Ÿ˜ญ", "๐Ÿ˜ฑ", "๐Ÿ˜ž", "๐Ÿ’€", "๐Ÿ‘น", "๐Ÿ‘‹", "๐Ÿ™", "๐Ÿ‘", "๐Ÿ’ช", "๐Ÿ™‹โ€โ™‚๏ธ", "๐Ÿคฆโ€โ™‚๏ธ", "โฌ†๏ธ", "โžก๏ธ", "โฌ‡๏ธ", "โฌ…๏ธ", "๐Ÿ‘€", "โค๏ธ", "๐Ÿ’”", "๐Ÿ’ฅ", "๐Ÿ”ฅ", "๐Ÿชฆ", "๐Ÿฅ‡", "๐Ÿฅˆ", "๐Ÿฅ‰", "๐ŸŽ–๏ธ", "๐Ÿ…", "๐Ÿ‘‘", "๐ŸŽ‰", "๐Ÿ’ฏ", "โœ๏ธ", "โ˜ช๏ธ", "๐Ÿ•‰๏ธ", "โ˜ธ๏ธ", "โœก๏ธ", "โ˜ฆ๏ธ", "โš›๏ธ" - ], this.rU = 13, this.rW = this.emojis.length, this.rX = 676, this.rV = 1024, this.rm = this.emojis.indexOf("๐Ÿ’€"), this.rn = this.rm + 1, this.ro = this.emojis.indexOf("๐Ÿฅ‡"), this.rp = this.emojis.indexOf("๐Ÿ˜Š"), this.rk = function(df) { - return df < this.rX ? String.fromCharCode(55356, 56806 + aj.fK(df, 26), 55356, 56806 + df % 26) : this.emojis[Math.min(df - this.rX, this.rW - 1)] - }, this.rZ = function(g3) { + ], this.rZ = 13, this.rb = this.emojis.length, this.rc = 676, this.ra = 1024, this.rr = this.emojis.indexOf("๐Ÿ’€"), this.rs = this.rr + 1, this.rt = this.emojis.indexOf("๐Ÿฅ‡"), this.ru = this.emojis.indexOf("๐Ÿ˜Š"), this.rp = function(df) { + return df < this.rc ? String.fromCharCode(55356, 56806 + aj.fK(df, 26), 55356, 56806 + df % 26) : this.emojis[Math.min(df - this.rc, this.rb - 1)] + }, this.re = function(g3) { var ef = g3.length - 2, ds = []; for (let eJ = 0; eJ < ef; eJ++) { @@ -1457,548 +1473,555 @@ function rB() { 0 <= gi && gi < 26 && 0 <= gj && gj < 26 && (ds.push(26 * gi + gj), eJ += 3) } return ds - }, this.rq = function(df) { - return df < this.rX - }, this.rr = function(df) { - return df >= 1024 - this.rU - }, this.rs = function(df) { - return df >= this.rX && df < this.rX + this.rn + }, this.rv = function(df) { + return df < this.rc + }, this.rw = function(df) { + return df >= 1024 - this.rZ + }, this.rx = function(df) { + return df >= this.rc && df < this.rc + this.rs } } function bN() { - this.pA = new rt, this.pC = new ru, this.ct = function() { - this.pA.ct() + this.pF = new ry, this.pH = new rz, this.ct = function() { + this.pF.ct() } } -function ru() { - this.pQ = function(g3) { +function rz() { + this.pV = function(g3) { var ef = g3.length, gA = ac; - for (let eJ = 0; eJ < ef; eJ++) gA.pP(16, g3.charCodeAt(eJ)) + for (let eJ = 0; eJ < ef; eJ++) gA.pU(16, g3.charCodeAt(eJ)) } } -function rt() { - var rv = new Uint8Array(64); +function ry() { + var s0 = new Uint8Array(64); this.ct = function() { var eJ; - for (rv[0] = 45, rv[37] = 95, eJ = 0; eJ < 10; eJ++) rv[eJ + 1] = 48 + eJ; - for (eJ = 0; eJ < 26; eJ++) rv[eJ + 11] = 65 + eJ, rv[eJ + 38] = 97 + eJ - }, this.rw = function(rx) { - for (var pF = af, pN = new Uint8Array(rx), eJ = 0; eJ < rx; eJ++) pN[eJ] = pF.mQ(6); - return pN - }, this.ry = function(pN) { - for (var ef = pN.length, rz = rv, ds = [], eJ = 0; eJ < ef; eJ++) ds.push(String.fromCharCode(rz[pN[eJ]])); + for (s0[0] = 45, s0[37] = 95, eJ = 0; eJ < 10; eJ++) s0[eJ + 1] = 48 + eJ; + for (eJ = 0; eJ < 26; eJ++) s0[eJ + 11] = 65 + eJ, s0[eJ + 38] = 97 + eJ + }, this.s1 = function(s2) { + for (var pK = af, pS = new Uint8Array(s2), eJ = 0; eJ < s2; eJ++) pS[eJ] = pK.mQ(6); + return pS + }, this.s3 = function(pS) { + for (var ef = pS.length, s4 = s0, ds = [], eJ = 0; eJ < ef; eJ++) ds.push(String.fromCharCode(s4[pS[eJ]])); return ds.join("") } } function bV() { - var s0, s1, s2; - s0 = [32, 65, 191, 913, 931], s1 = [64, 127, 688, 930, 1155], s2 = new Array(s0.length + 1); - for (var eJ = 0; eJ < s2.length; eJ++) { - s2[eJ] = 0; - for (var hg = eJ - 1; 0 <= hg; hg--) s2[eJ] += s1[hg] - s0[hg] + var s5, s6, s7; + s5 = [32, 65, 191, 913, 931], s6 = [64, 127, 688, 930, 1155], s7 = new Array(s5.length + 1); + for (var eJ = 0; eJ < s7.length; eJ++) { + s7[eJ] = 0; + for (var hg = eJ - 1; 0 <= hg; hg--) s7[eJ] += s6[hg] - s5[hg] } - function s8(iT) { - for (var eJ = s0.length - 1; 0 <= eJ; eJ--) - if (iT >= s0[eJ] && iT < s1[eJ]) return eJ; + function sD(iT) { + for (var eJ = s5.length - 1; 0 <= eJ; eJ--) + if (iT >= s5[eJ] && iT < s6[eJ]) return eJ; return -1 } - this.pG = function(g3) { - return 0 !== (g3 = g3.trim()).indexOf("Bot ") && 0 !== g3.indexOf("[Bot] ") && function(g3, s5, s6) { + this.pL = function(g3) { + return 0 !== (g3 = g3.trim()).indexOf("Bot ") && 0 !== g3.indexOf("[Bot] ") && function(g3, sA, sB) { var ef = (g3 = g3.trim()).length; - if (ef < s5 || s6 < ef) return !1; - for (var iT, s7 = 0, eJ = 0; eJ < ef; eJ++) - if (iT = g3.charCodeAt(eJ), s7 += 65 <= iT && iT <= 90 || 1040 <= iT && iT <= 1071 ? 1 : 0, -1 === s8(iT)) return !1; - if (3 < s7 && s7 > Math.floor(ef / 2)) return !1; + if (ef < sA || sB < ef) return !1; + for (var iT, sC = 0, eJ = 0; eJ < ef; eJ++) + if (iT = g3.charCodeAt(eJ), sC += 65 <= iT && iT <= 90 || 1040 <= iT && iT <= 1071 ? 1 : 0, -1 === sD(iT)) return !1; + if (3 < sC && sC > Math.floor(ef / 2)) return !1; return !0 }(g3, 3, 20) - }, this.s9 = function(g3) { + }, this.sE = function(g3) { for (var ef = (g3 = g3.trim()).length, ds = [], eJ = 0; eJ < ef; eJ++) { - var iT, em = s8(iT = g3.charCodeAt(eJ)); - ds.push(s2[em] + iT - s0[em]) + var iT, em = sD(iT = g3.charCodeAt(eJ)); + ds.push(s7[em] + iT - s5[em]) } return ds - }, this.pU = function(ds) { + }, this.pZ = function(ds) { for (var iT, hp, g3 = "", ef = ds.length, eJ = 0; eJ < ef; eJ++) - for (hp = 1; hp < s2.length; hp++) - if (ds[eJ] < s2[hp]) { - iT = s0[hp - 1] + ds[eJ] - s2[hp - 1], g3 += String.fromCharCode(iT); + for (hp = 1; hp < s7.length; hp++) + if (ds[eJ] < s7[hp]) { + iT = s5[hp - 1] + ds[eJ] - s7[hp - 1], g3 += String.fromCharCode(iT); break } return g3 - }, this.sA = function(g3) { - for (var ds = this.s9(g3), result = "", eJ = 0; eJ < ds.length; eJ++) result = (result += ds[eJ] < 10 ? "00" : ds[eJ] < 100 ? "0" : "") + ds[eJ].toString(10); + }, this.sF = function(g3) { + for (var ds = this.sE(g3), result = "", eJ = 0; eJ < ds.length; eJ++) result = (result += ds[eJ] < 10 ? "00" : ds[eJ] < 100 ? "0" : "") + ds[eJ].toString(10); return result - }, this.sB = function(g3) { + }, this.sG = function(g3) { for (var ds = new Array(Math.floor(g3.length / 3)), eJ = 0; eJ < g3.length; eJ += 3) ds[Math.floor(eJ / 3)] = parseInt(g3.substring(eJ, eJ + 3)); - return this.pU(ds) - }, this.sC = function(g3) { + return this.pZ(ds) + }, this.sH = function(g3) { for (var df, ds = [g3.length], eJ = 0; eJ < g3.length; eJ++) ds[eJ] = g3.charCodeAt(eJ) - 48; var result = ""; for (eJ = 0; eJ < g3.length; eJ++) eJ === g3.length - 1 || 51 < 10 * ds[eJ] + ds[eJ + 1] ? result += ds[eJ].toString() : (df = 10 * ds[eJ] + ds[eJ + 1], result += String.fromCharCode(df + (df < 26 ? 65 : 71)), eJ++); return result - }, this.sD = function(g3) { + }, this.sI = function(g3) { for (var iT, result = "", eJ = 0; eJ < g3.length; eJ++) 48 <= (iT = g3.charCodeAt(eJ)) && iT < 58 ? result += String.fromCharCode(iT) : 65 <= iT && iT < 75 ? result += "0" + (iT - 65).toString() : 75 <= iT && iT < 91 ? result += (iT - 65) .toString() : 97 <= iT && iT < 123 && (result += (iT - 71).toString()); return result - }, this.sE = function(g3) { + }, this.sJ = function(g3) { for (var ef = g3.length, ds = [], eJ = 0; eJ < ef; eJ++)(iT = g3.charCodeAt(eJ)) < 58 ? ds.push(g3[eJ]) : (iT -= iT < 91 ? 65 : 71, ds.push(String(eX(iT, 10))), ds.push(String(iT - 10 * eX(iT, 10)))); var ef = ds.length - 2, iT = 0, - pN = []; - for (eJ = 0; eJ < ef; eJ += 3) pN[iT++] = parseInt(ds[eJ] + ds[eJ + 1] + ds[eJ + 2]); - return pN - }, this.sF = function() { - for (var gY, sG = "", eJ = 0; eJ < 6; eJ++) gY = 48 + aM.random() % 36, gY += 58 <= gY ? 39 : 0, sG += String.fromCharCode(gY); - return sG + pS = []; + for (eJ = 0; eJ < ef; eJ += 3) pS[iT++] = parseInt(ds[eJ] + ds[eJ + 1] + ds[eJ + 2]); + return pS + }, this.sK = function() { + for (var gY, sL = "", eJ = 0; eJ < 6; eJ++) gY = 48 + aM.random() % 36, gY += 58 <= gY ? 39 : 0, sL += String.fromCharCode(gY); + return sL } } function cV() { - this.sH = new sI, this.sJ = new sK, this.result = new sL, this.fo = new sM + this.sM = new sN, this.sO = new sP, this.result = new sQ, this.fo = new sR } -function sN() { - this.sO = function() {} +function sS() { + this.sT = function() {} } -function sM() { - this.sP = function() { +function sR() { + this.sU = function() { var ef = iV, - r0 = iW, - sQ = []; + r5 = iW, + sV = []; for (let eJ = 0; eJ < ef; eJ++) { - var em = r0[eJ]; - a1.sR(em) && sQ.push(em) + var em = r5[eJ]; + a1.sW(em) && sV.push(em) } - return sQ - }, this.sS = function() { + return sV + }, this.sX = function() { var ef = iV, - r0 = iW; + r5 = iW; let dd = 0; var f5 = a6.f5; - for (let eJ = 0; eJ < ef; eJ++) dd += f5[r0[eJ]]; + for (let eJ = 0; eJ < ef; eJ++) dd += f5[r5[eJ]]; return dd } } -function sI() { - function sU() { - if (2 === b.sh) return 1; - aJ.si(), b.sh = 2, b.sj = b.sk +function sN() { + function sZ() { + if (2 === b.sm) return 1; + aJ.sn(), b.sm = 2, b.so = b.sp } - function sY() { - ap.result.sO(), ap.result.sl(), l.sm(!0), l.sn(247, 0), t.jC(!0), u.jC(!0), aJ.jC(), ab.so(), b.fS && b4.sp.sq(), b4.d3 = !0, b0.sr(), b8.cy.setState(0) + function sd() { + ap.result.sT(), ap.result.sq(), l.sr(!0), l.ss(247, 0), t.jC(!0), u.jC(!0), aJ.jC(), ab.st(), b.fS && b4.su.sv(), b4.d3 = !0, b0.sw(), b8.cy.setState(0) } - this.sT = function() { - sU() || (b.sV = 2, ap.result.sW(), l.sX(0, 59), g.kL(2700), v.show(!1, !1, !0), sY()) - }, this.sZ = function(sa) { - sU() || (b.sV = 1, 8 === b.it ? (b.sb = sa < 0 ? a6.f5[0] >= a6.f5[1] ? 0 : 1 : sa, b.sc = +(b.sb === b.ea), b.sc ? l.sX(b.sb, 2) : l.sX(1 - b.ea, 3), b.sd.r2(b.sb)) : b.hT ? (b.sc = +(b5.iU[b.ea] === b6.se()), 9 === b.it && l.sf()) : (b - .sb = jM[0], b.sc = +(b.sb === b.ea), l.sg(b.sb)), v.show(1 === b.sc, !1), sY()) + this.sY = function() { + sZ() || (b.sa = 2, ap.result.sb(), l.sc(0, 59), g.kL(2700), v.show(!1, !1, !0), sd()) + }, this.se = function(sf) { + sZ() || (b.sa = 1, 8 === b.it ? (b.sg = sf < 0 ? a6.f5[0] >= a6.f5[1] ? 0 : 1 : sf, b.sh = +(b.sg === b.ea), b.sh ? l.sc(b.sg, 2) : l.sc(1 - b.ea, 3), b.si.r7(b.sg)) : b.hT ? (b.sh = +(b5.iU[b.ea] === b6.sj()), 9 === b.it && l.sk()) : (b + .sg = jM[0], b.sh = +(b.sg === b.ea), l.sl(b.sg)), v.show(1 === b.sh, !1), sd()) } } -function sL() { - this.ss = 0, this.sQ = null; - let su = this.st = 0; - this.sv = 0, this.sW = function() { - 0 !== a6.jS[b.ea] && a1.sR(b.ea) && 2 === b.sV && (b.sc = 2) - }, this.sO = function() { +function sQ() { + this.sx = 0, this.sV = null; + let sz = this.sy = 0; + this.t0 = 0, this.sb = function() { + 0 !== a6.jS[b.ea] && a1.sW(b.ea) && 2 === b.sa && (b.sh = 2) + }, this.sT = function() { var en, dd; - this.sQ = ap.fo.sP(), this.ss = b9.sw.sx(), b.it < 7 && 2 !== b.sV ? this.st = b6.sy() : this.st = ap.fo.sS(), 8 === b.it && 1 === b.sV ? (en = 1 - b.sb, dd = a6.f5[en], a6.f5[en] = 0, aX.fU.mN(), a6.f5[en] = dd) : aX.fU.mN(), su = .01 * - a6.t2[b.ea] / 50, this.sv = 0, b.it < 7 ? ap.sJ.sO(this.sQ) : 7 === b.it || 10 === b.it ? aZ.fU.fW(b.ea) && (en = ap.result.ss * (1 + b.t5), 2 === b.sV ? ap.result.sv += en * a6.f5[b.ea] / ap.result.st : jM[0] === b.ea && (ap.result - .sv += en)) : 8 !== b.it || 1 !== b.sc || (ap.result.sv += 2, 0 === bA.dK.data[107].value) || 200 <= (dd = bA.dK.data[108].value) || (ap.result.sv += .01 * (200 - dd) * 2 * (1 + (0 === dd))) - }, this.sl = function() { - 0 !== su && 0 !== ap.result.sv && l.t6(0, "๐Ÿ† You earned prize money of ๐Ÿงˆ " + ap.result.sv.toFixed(2) + ".", 40, 0, aa.gN, aa.kh, -1, !1) + this.sV = ap.fo.sU(), this.sx = b9.t1.t2(), b.it < 7 && 2 !== b.sa ? this.sy = b6.t3() : this.sy = ap.fo.sX(), 8 === b.it && 1 === b.sa ? (en = 1 - b.sg, dd = a6.f5[en], a6.f5[en] = 0, aX.fU.mN(), a6.f5[en] = dd) : aX.fU.mN(), sz = .01 * + a6.t7[b.ea] / 50, this.t0 = 0, b.it < 7 ? ap.sO.sT(this.sV) : 7 === b.it || 10 === b.it ? aZ.fU.fW(b.ea) && (en = ap.result.sx * (1 + b.tA), 2 === b.sa ? ap.result.t0 += en * a6.f5[b.ea] / ap.result.sy : jM[0] === b.ea && (ap.result + .t0 += en)) : 8 !== b.it || 1 !== b.sh || (ap.result.t0 += 2, 0 === bA.dK.data[107].value) || 200 <= (dd = bA.dK.data[108].value) || (ap.result.t0 += .01 * (200 - dd) * 2 * (1 + (0 === dd))) + }, this.sq = function() { + 0 !== sz && 0 !== ap.result.t0 && l.tB(0, "๐Ÿ† You earned prize money of ๐Ÿงˆ " + ap.result.t0.toFixed(2) + ".", 40, 0, aa.gN, aa.kh, -1, !1) } } -function sK() { - function tF(sQ, tD) { - var gn = (b.it + 2) * (1 + b.t5) * sQ.length / (1e5 * ap.result.st); - let tH = ""; - for (let eJ = 0; eJ < tD.length; eJ++) { - var tI = tD[eJ].tJ * gn; - tH += " " + tD[eJ].name + ": " + aZ.jr.tK(1e6 * tI) +function sP() { + function tK(sV, tI) { + var gn = (b.it + 2) * (1 + b.tA) * sV.length / (1e5 * ap.result.sy); + let tM = ""; + for (let eJ = 0; eJ < tI.length; eJ++) { + var tN = tI[eJ].tO * gn; + tM += " " + tI[eJ].name + ": " + aZ.jr.tP(1e6 * tN) } - tH.length && (l.t6(0, "The following clans won these points:", 45, 0, aZ.color.kc(225, 240, 255), aa.kh, -1, !1), l.t6(0, tH.trim(), 45, 0, aZ.color.kc(225, 240, 255), aa.kh, -1, !1)) + tM.length && (l.tB(0, "The following clans won these points:", 45, 0, aZ.color.kc(225, 240, 255), aa.kh, -1, !1), l.tB(0, tM.trim(), 45, 0, aZ.color.kc(225, 240, 255), aa.kh, -1, !1)) } - this.sO = function(sQ) { - var t7 = b5.t8[b6.t9()], - tA = b5.fz[t7], - tA = (o.tB("Team " + tA, 2, 1, 12), l.t6(0, "Team " + tA + " won the game!", 40, 0, aa.gN, aa.kh, -1, !1), b.sc && aZ.fU.fW(b.ea) && (ap.result.sv += .125 * ap.result.ss * (1 + b.t5) * (b.it + 2) * a6.f5[b.ea] / ap.result.st), - function(r0) { - var tD = [], - username = a6.tL, - ef = r0.length; + this.sT = function(sV) { + var tC = b5.tD[b6.tE()], + tF = b5.fz[tC], + tF = (o.tG("Team " + tF, 2, 1, 12), l.tB(0, "Team " + tF + " won the game!", 40, 0, aa.gN, aa.kh, -1, !1), b.sh && aZ.fU.fW(b.ea) && (ap.result.t0 += .125 * ap.result.sx * (1 + b.tA) * (b.it + 2) * a6.f5[b.ea] / ap.result.sy), + function(r5) { + var tI = [], + username = a6.tQ, + ef = r5.length; loop: for (let eJ = 0; eJ < ef; eJ++) { - var em = r0[eJ], - tM = aZ.jr.tN(username[em]); - if (tM) { - for (let hg = tD.length - 1; 0 <= hg; hg--) - if (tD[hg].name === tM) { - tD[hg].tJ += a6.f5[em]; + var em = r5[eJ], + tR = aZ.jr.tS(username[em]); + if (tR) { + for (let hg = tI.length - 1; 0 <= hg; hg--) + if (tI[hg].name === tR) { + tI[hg].tO += a6.f5[em]; continue loop - } tD.push({ - name: tM, - tJ: a6.f5[em], - tO: b5.iU[em] + } tI.push({ + name: tR, + tO: a6.f5[em], + tT: b5.iU[em] }) } } - return tD - }(sQ)); - tA.length && (2 === b.sV ? tF(sQ, tA) : tF(sQ, function(tD, t7) { - for (let eJ = tD.length - 1; 0 <= eJ; eJ--) b5.t8[tD[eJ].tO] !== t7 && tD.splice(eJ, 1); - return tD - }(tA, t7))) + return tI + }(sV)); + tF.length && (2 === b.sa ? tK(sV, tF) : tK(sV, function(tI, tC) { + for (let eJ = tI.length - 1; 0 <= eJ; eJ--) b5.tD[tI[eJ].tT] !== tC && tI.splice(eJ, 1); + return tI + }(tF, tC))) } } function cb() { - this.id = 0, this.dg = 0, this.or = null, this.os = null, this.ot = null, this.ou = null, this.cy = new tP, this.ct = function() { + this.id = 0, this.dg = 0, this.ow = null, this.ox = null, this.oy = null, this.oz = null, this.cy = new tU, this.ct = function() { var self, dg; - self = this, "undefined" == typeof Android || (dg = Android.getVersion()) < 12 || (self.dg = dg, self.id = 1, self.os = Android), + self = this, "undefined" == typeof Android || (dg = Android.getVersion()) < 12 || (self.dg = dg, self.id = 1, self.ox = Android), function(self) { var dg; - "undefined" != typeof mwIOSdataX && window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.iosCommandA && (self.id = 2, self.ot = mwIOSdataX, self.ou = window.webkit.messageHandlers.iosCommandA, dg = self - .ot.version, self.dg = dg ? Number(dg) : 0) + "undefined" != typeof mwIOSdataX && window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.iosCommandA && (self.id = 2, self.oy = mwIOSdataX, self.oz = window.webkit.messageHandlers.iosCommandA, dg = self + .oy.version, self.dg = dg ? Number(dg) : 0) }(this), function(self) { - var or; + var ow; if (0 === self.id) { try { - if (!(or = window.localStorage)) return; - or.setItem("tls7", "1"), or.removeItem("tls7") + if (!(ow = window.localStorage)) return; + ow.setItem("tls7", "1"), ow.removeItem("tls7") } catch (error) { return } - self.or = or + self.ow = ow } }(this) } } -function tP() { - this.tT = function() { - bA.np.p8(), bA.np.p9(), aO.j4.close(0, 3255), 0 === b8.id ? b8.or && b8.or.clear() : 1 === b8.id ? b8.os.saveString(199, "") : 2 === b8.id && b8.ou.postMessage("clear") - }, this.tU = function() { - 2 === b8.id ? b8.ou.postMessage("showConsentForm") : 1 === b8.id ? b8.os.setState(7) : au.dM.showCMPScreen() - }, this.tV = function() { +function tU() { + this.tY = function() { + bA.nq.pD(), bA.nq.pE(), aO.j4.close(0, 3255), 0 === b8.id ? b8.ow && b8.ow.clear() : 1 === b8.id ? b8.ox.saveString(199, "") : 2 === b8.id && b8.oz.postMessage("clear") + }, this.tZ = function() { + 2 === b8.id ? b8.oz.postMessage("showConsentForm") : 1 === b8.id ? b8.ox.setState(7) : au.dM.showCMPScreen() + }, this.ta = function() { this.setState(14) - }, this.tW = function() { - var g3 = bA.dK.on(101), + }, this.tb = function() { + var g3 = bA.dK.os(101), max = ("string" != typeof(g3 = "" === g3 ? function() { { - if (2 === b8.id) return b8.ot.password; - if (1 === b8.id) return 12 <= b8.dg ? b8.os.loadString(22) : "" + if (2 === b8.id) return b8.oy.password; + if (1 === b8.id) return 12 <= b8.dg ? b8.ox.loadString(22) : "" } - return a2.tZ(9) + return a2.te(9) }() : g3) && (g3 = ""), Math.floor(Math.pow(2, 48))), - tY = Math.floor(parseInt(i.sD(g3))); - return 0 < tY && tY < max ? bA.dK.dL(101, g3) : (tY = Math.floor(1 + (max - 1) * Math.random()), bA.dK.dL(101, g3)), tY + td = Math.floor(parseInt(i.sI(g3))); + return 0 < td && td < max ? bA.dK.dL(101, g3) : (td = Math.floor(1 + (max - 1) * Math.random()), bA.dK.dL(101, g3)), td }, this.g0 = function() { - return 1 === bA.dK.om(2) - }, this.ta = function() { + return 1 === bA.dK.or(2) + }, this.tf = function() { bA.dK.dL(102, "") }, this.setState = function(db) { - 1 === b8.id && 5 <= b8.dg && b8.os.setState(db) - }, this.tb = function() { - var tc; - 1 === b8.id && 7 <= b8.dg ? b8.os.setState(5) : ((tc = new URL(window.location)).searchParams.set("v", "" + Math.floor(1e3 * Math.random())), window.location.href = tc.toString()) + 1 === b8.id && 5 <= b8.dg && b8.ox.setState(db) + }, this.tg = function() { + var th; + 1 === b8.id && 7 <= b8.dg ? b8.ox.setState(5) : ((th = new URL(window.location)).searchParams.set("v", "" + Math.floor(1e3 * Math.random())), window.location.href = th.toString()) }, this.cz = function() { - 1 !== b8.id || b8.dg < 17 || b8.os.saveString(23, document.documentElement.outerHTML) + 1 !== b8.id || b8.dg < 17 || b8.ox.saveString(23, document.documentElement.outerHTML) }, this.dQ = function() { - 0 === b8.id ? au.dM.ct() : 1 === b8.id ? b8.os.prepareAd("1688441405") : 2 === b8.id && (0 === b8.dg ? b8.ou.postMessage("prepare ad 4500876070") : b8.ou.postMessage("loadAds 4500876070")) + 0 === b8.id ? au.dM.ct() : 1 === b8.id ? b8.ox.prepareAd("1688441405") : 2 === b8.id && (0 === b8.dg ? b8.oz.postMessage("prepare ad 4500876070") : b8.oz.postMessage("loadAds 4500876070")) }, this.de = function(dd) { - return 0 === b8.id ? !!au.dM.dZ() : 1 === b8.id ? 12 <= b8.dg && (b8.os.presentAd(dd), !0) : 2 === b8.id && (0 === b8.dg ? b8.ou.postMessage("show ad " + dd) : b8.ou.postMessage("showAd"), !0) + return 0 === b8.id ? !!au.dM.dZ() : 1 === b8.id ? 12 <= b8.dg && (b8.ox.presentAd(dd), !0) : 2 === b8.id && (0 === b8.dg ? b8.oz.postMessage("show ad " + dd) : b8.oz.postMessage("showAd"), !0) }, this.d7 = function() { - 2 === b8.id && b8.dg < 23 && at.d5(4, 1, new td("App Update Required", "A new iOS app version with bug fixes has been published.
Please download the new Territorial.io app version for iOS:
" + - ai.te + "", !0, [new nT("โŒ " + aW.no[92], function() { + 2 === b8.id && b8.dg < 23 && at.d5(4, 1, new ti("App Update Required", "A new iOS app version with bug fixes has been published.
Please download the new Territorial.io app version for iOS:
" + + ai.tj + "", !0, [new nT("โŒ " + aW.np[92], function() { at.d5(0) }, aa.lJ)])) } } function cq() { - function tr(title, tH, dI) { - tl(dI), at.d5(4, 5, new td("โš ๏ธ " + title, tH, !0)) + function tw(title, tM, dI) { + tq(dI), at.d5(4, 5, new ti("โš ๏ธ " + title, tM, !0)) } - function tl(dI) { + function tq(dI) { ! function(dI) { - var db = y.tk(); - 0 !== db && (6 === db ? aO.j4.tv(dI) : 7 === db ? (aH.tw(), aO.j4.close(aO.j4.to, 3256)) : 8 === db && b.tx(!0)) - }(dI), at.j4.tu() + var db = y.tp(); + 0 !== db && (6 === db ? aO.j4.u0(dI) : 7 === db ? (aH.u1(), aO.j4.close(aO.j4.tt, 3256)) : 8 === db && b.u2(!0)) + }(dI), at.j4.tz() } - this.tf = function(tg, dI) { - if (8 === at.th && 0 === tg) at.d5(4, 0, new td("โš ๏ธ " + aW.ti(64), aW.tj(dI), !0)); + this.tk = function(tl, dI) { + if (8 === at.tm && 0 === tl) at.d5(4, 0, new ti("โš ๏ธ " + aW.tn(64), aW.to(dI), !0)); else { - var db = y.tk(); + var db = y.tp(); if (6 === db) { - if (4211 === dI) return tl(dI), void at.d5(4, 5, new td("๐Ÿš€ " + aW.no[122], aW.no[123], !0, [new nT("โŒ " + aW.no[92], function() { - at.tm() - }, aa.lJ), new nT("๐Ÿ”„ " + aW.no[124], function() { - b8.cy.tb() + if (4211 === dI) return tq(dI), void at.d5(4, 5, new ti("๐Ÿš€ " + aW.np[122], aW.np[123], !0, [new nT("โŒ " + aW.np[92], function() { + at.tr() + }, aa.lJ), new nT("๐Ÿ”„ " + aW.np[124], function() { + b8.cy.tg() }, aa.l3)])); - if (4214 !== dI) return void x.tn(tg) + if (4214 !== dI) return void x.ts(tl) } else { - if (7 !== db) return 8 === db ? void(tg !== aO.j4.tp || b.iv || 1 !== b.sh || l.tq(aW.tj(dI))) : void 0; - if (tg !== aO.j4.to) return + if (7 !== db) return 8 === db ? void(tl !== aO.j4.tu || b.iv || 1 !== b.sm || l.tv(aW.to(dI))) : void 0; + if (tl !== aO.j4.tt) return } - tr(aW.ti(64), aW.tj(dI), dI) + tw(aW.tn(64), aW.to(dI), dI) } - }, this.ts = function(dI) { - 8 === y.tk() ? b.iv || 1 !== b.sh || l.tq(aW.tj(dI)) : tr(aW.ti(64), aW.tj(dI), dI) + }, this.tx = function(dI) { + 8 === y.tp() ? b.iv || 1 !== b.sm || l.tv(aW.to(dI)) : tw(aW.tn(64), aW.to(dI), dI) } } function bG() { - var ty, tz; + var u3, u4; - function u0() { + function u5() { var gA = new cM; - gA.d4(1612), gA.pP(1, 0), gA.pP(6, 7), gA.pP(2, b8 ? b8.id : 3), gA.pP(1, dD ? 1 : 0), gA.pP(1, dF ? 1 : 0), gA.pP(1, a ? a.d9 : 0); - for (let eJ = 0; eJ < tz.length && eJ < 100; eJ++) gA.pP(16, tz.charCodeAt(eJ)); - ty.send(gA.mP), u1() + gA.d4(1612), gA.pU(1, 0), gA.pU(6, 7), gA.pU(2, b8 ? b8.id : 3), gA.pU(1, dD ? 1 : 0), gA.pU(1, dF ? 1 : 0), gA.pU(1, a ? a.d9 : 0); + for (let eJ = 0; eJ < u4.length && eJ < 100; eJ++) gA.pU(16, u4.charCodeAt(eJ)); + u3.send(gA.mP), u6() } - function u1() { - ty && (ty.onclose = null, ty.onopen = null, ty = null) + function u6() { + u3 && (u3.onclose = null, u3.onopen = null, u3 = null) } window.addEventListener("error", function error(dI) { window.removeEventListener("error", error); return alert("Error:\n" + dI.filename + " " + dI.lineno + " " + dI.colno + " " + dI.message); - window.removeEventListener("error", error), tz = dI.lineno + " " + dI.colno + " " + dI.message, (ty = new WebSocket("wss://territorial.io/s52/")).onopen = u0, ty.onclose = function() { - u1() - }, 0 === dI.lineno && 0 === dI.colno || (b8 && 1 === b8.id ? b8.os.showToast(tz) : alert(tz)) + window.removeEventListener("error", error), u4 = dI.lineno + " " + dI.colno + " " + dI.message, (u3 = new WebSocket("wss://territorial.io/s52/")).onopen = u5, u3.onclose = function() { + u6() + }, 0 === dI.lineno && 0 === dI.colno || (b8 && 1 === b8.id ? b8.ox.showToast(u4) : alert(u4)) }) } function cP() { - var u2, u3, u4 = -15e3, - u5 = !1; + var u7, u8, u9 = -15e3, + uA = !1; function fX(dI) { - uO() || (u5 = !0, uP(dI, 1), aO.j4.uQ(aO.j4.tp), uR(Math.floor(aL.nN * dI.clientX), Math.floor(aL.nN * dI.clientY))) - } - - function uD(dI) { - u4 = b4.dc, uP(dI, 1), aO.j4.uQ(aO.j4.tp), 0 < dI.touches.length && (u2 = Math.floor(aL.nN * dI.touches[0].clientX), u3 = Math.floor(aL.nN * dI.touches[0].clientY), aF.uD(dI) || uR(u2, u3)) - } - - function uR(fO, fP) { - 0 === b.sh ? y.fX(fO, fP) : ab.uS(fO, fP) || b3.fX(fO, fP) || v.fX(fO, fP) || j.uT(fO, fP) || n.fX(fO, fP) || k.fX(fO, fP) || ah.uU(fO, fP) || aJ.fX(fO, fP) || j.uV(fO, fP) - } - - function u9(dI) { - uO() || (u5 = !0, uP(dI, 1), uW(Math.floor(aL.nN * dI.clientX), Math.floor(aL.nN * dI.clientY))) - } - - function uE(dI) { - u4 = b4.dc, uP(dI, 1), 0 < dI.touches.length && (u2 = Math.floor(aL.nN * dI.touches[0].clientX), u3 = Math.floor(aL.nN * dI.touches[0].clientY), aF.uE(dI) || uW(u2, u3)) - } - - function uW(fO, fP) { - 0 === b.sh ? y.u9(fO, fP) : (ar.fN(fO, fP), b3.u9(fO, fP) || (k.u9(fO, fP), j.rD() ? j.u9(fO, fP) : p.fY ? p.u9(fO) && (b4.d3 = !0) : (t.u9(fO, fP), q.kH && q.u9(fO, fP) && (b4.d3 = !0)))) - } - - function uB(dI) { - uO() || (uP(dI, 1), 0 === b.sh ? (y.click(-1024, -1024), r.uX()) : (t.uY(-1024, -1024), k.u9(-1024, -1024), p.uZ(), q.kH && (q.kH = !1))) - } - - function uA(dI) { - uO() || (uP(dI, 1), ua(Math.floor(aL.nN * dI.clientX), Math.floor(aL.nN * dI.clientY), 2 === dI.button)) - } - - function click(dI) { - uO() || uP(dI, 1) - } - - function uF(dI) { - u4 = b4.dc, uP(dI, 1), dI && dI.touches && 0 < dI.touches.length && 0 !== b.sh ? q.kH = !1 : aF.ub() || ua(u2, u3, !1) - } - - function uG(dI) { - u4 = b4.dc, uP(dI, 1), ua(u2, u3, !1) - } - - function uH(dI) { - aU.uH(dI) + uT() || (uA = !0, uU(dI, 1), aO.j4.uV(aO.j4.tu), uW(Math.floor(aL.nN * dI.clientX), Math.floor(aL.nN * dI.clientY))) } function uI(dI) { - aU.uI(dI) + u9 = b4.dc, uU(dI, 1), aO.j4.uV(aO.j4.tu), 0 < dI.touches.length && (u7 = Math.floor(aL.nN * dI.touches[0].clientX), u8 = Math.floor(aL.nN * dI.touches[0].clientY), aF.uI(dI) || uW(u7, u8)) + } + + function uW(fO, fP) { + at.fX(fO, fP), 0 === b.sm ? y.fX(fO, fP) : ab.uX(fO, fP) || b3.fX(fO, fP) || v.fX(fO, fP) || j.uY(fO, fP) || n.fX(fO, fP) || k.fX(fO, fP) || ah.uZ(fO, fP) || aJ.fX(fO, fP) || j.ua(fO, fP) + } + + function uE(dI) { + uT() || (uA = !0, uU(dI, 1), ub(Math.floor(aL.nN * dI.clientX), Math.floor(aL.nN * dI.clientY))) } function uJ(dI) { - uO() || uP(dI, 0) + u9 = b4.dc, uU(dI, 1), 0 < dI.touches.length && (u7 = Math.floor(aL.nN * dI.touches[0].clientX), u8 = Math.floor(aL.nN * dI.touches[0].clientY), aF.uJ(dI) || ub(u7, u8)) } - function ua(fO, fP, uc) { - 0 === b.sh ? y.click(fO, fP) : (t.uY(fO, fP), b3.uY(), p.uZ(), q.kH = !1, j.click(fO, fP, uc) && (b4.d3 = !0)) + function ub(fO, fP) { + at.uE(fO, fP), 0 === b.sm ? y.uE(fO, fP) : (ar.fN(fO, fP), b3.uE(fO, fP) || (k.uE(fO, fP), j.rI() ? j.uE(fO, fP) : p.fY ? p.uE(fO) && (b4.d3 = !0) : (t.uE(fO, fP), q.kH && q.uE(fO, fP) && (b4.d3 = !0)))) } - function uC(dI) { - var fO, fP, deltaY; - uO() || (uP(dI, 1), aO.j4.uQ(aO.j4.tp), fO = Math.floor(aL.nN * dI.clientX), fP = Math.floor(aL.nN * dI.clientY), deltaY = dI.deltaY, 1 === dI.deltaMode && (deltaY *= 16), 0 === b.sh ? y.uC(fO, fP, deltaY) : t.uC(fO, fP, deltaY) || (p.ud(fO, - fP) ? p.uC(deltaY) && (b4.d3 = !0) : q.uC(fO, fP, +deltaY))) + function uG(dI) { + uT() || (uU(dI, 1), uc(), 0 === b.sm ? (y.click(-1024, -1024), r.ud()) : (t.ue(-1024, -1024), k.uE(-1024, -1024), p.uf(), q.kH && (q.kH = !1))) + } + + function uF(dI) { + uT() || (uU(dI, 1), ug(Math.floor(aL.nN * dI.clientX), Math.floor(aL.nN * dI.clientY), 2 === dI.button)) + } + + function click(dI) { + uT() || uU(dI, 1) } function uK(dI) { - uP(dI, 0) - } - - function uP(dI, id) { - 0 === id && at.rD() || (id = window.innerWidth / document.documentElement.clientWidth) < .999 || 1.001 < id || 0 !== y.tk() && dI.preventDefault() - } - - function uM(dI) { - if (keybindHandler(dI.key)) return; - uO() || ("ArrowLeft" === dI.key ? aC.uf(3) : "ArrowUp" === dI.key ? aC.uf(0) : "ArrowRight" === dI.key ? aC.uf(1) : "ArrowDown" === dI.key ? aC.uf(2) : "a" === dI.key ? p.ug(.9375) : "d" === dI.key ? p.ug(16 / 15) : "s" === dI.key ? p.ug(7 / - 8) : "w" === dI.key ? p.ug(8 / 7) : "1" === dI.key ? p.ug(.75) : "2" === dI.key ? p.ug(7 / 8) : "3" === dI.key ? p.ug(.9375) : "4" === dI.key ? p.ug(31 / 32) : "5" === dI.key ? p.ug(32 / 31) : "6" === dI.key ? p.ug(16 / 15) : - "7" === dI.key ? p.ug(8 / 7) : "8" === dI.key ? p.ug(4 / 3) : "+" === dI.key ? 0 !== b.sh && q.uC(Math.floor(aL.gA / 2), Math.floor(aL.gF / 2), -200) : "-" === dI.key ? 0 !== b.sh && q.uC(Math.floor(aL.gA / 2), Math.floor(aL.gF / 2), - 200) : "c" === dI.key ? 0 !== b.sh && b3.uh() : " " === dI.key ? b.sh && ar.fQ(!1) : "b" === dI.key && b.sh && ar.fQ(!0)) + u9 = b4.dc, uU(dI, 1), dI && dI.touches && 0 < dI.touches.length && 0 !== b.sm ? q.kH = !1 : aF.uh() || ug(u7, u8, !1) } function uL(dI) { - uO() || b4.dc < 400 || at.ui(dI) || (8 !== y.tk() && y.ui(dI) ? b4.d3 = !0 : "Escape" === dI.key ? y.dh() : "ArrowLeft" === dI.key || "a" === dI.key ? aC.uj(3) : "ArrowUp" === dI.key || "w" === dI.key ? aC.uj(0) : "ArrowRight" === dI.key || - "d" === dI.key ? aC.uj(1) : "ArrowDown" === dI.key || "s" === dI.key ? aC.uj(2) : "h" === dI.key ? 1 <= b.sh && ab.uk(!b.kG) : " " === dI.key && b.sh && (k.fT && k.ul(), b.fS) && ab.um(!1)) + u9 = b4.dc, uU(dI, 1), ug(u7, u8, !1) } - function uN() { - "hidden" === document.visibilityState ? 1 === b.sh && (b.fS ? ab.un() : !b.iv || k.fT || b.fj || k.ul()) : b4.d3 = !0 + function uM(dI) { + aU.uM(dI) } - function uO() { - return u4 + 15e3 > b4.dc + function uN(dI) { + aU.uN(dI) + } + + function uO(dI) { + uT() || uU(dI, 0) + } + + function ug(fO, fP, ui) { + uc(), 0 === b.sm ? y.click(fO, fP) : (t.ue(fO, fP), b3.ue(), p.uf(), q.kH = !1, j.click(fO, fP, ui) && (b4.d3 = !0)) + } + + function uc() { + at.uc() + } + + function uH(dI) { + var fO, fP, deltaY; + uT() || (uU(dI, 1), aO.j4.uV(aO.j4.tu), fO = Math.floor(aL.nN * dI.clientX), fP = Math.floor(aL.nN * dI.clientY), deltaY = dI.deltaY, 1 === dI.deltaMode && (deltaY *= 16), at.uH(fO, fP, deltaY), 0 === b.sm ? y.uH(fO, fP, deltaY) : t.uH(fO, + fP, deltaY) || (p.uj(fO, fP) ? p.uH(deltaY) && (b4.d3 = !0) : q.uH(fO, fP, deltaY))) + } + + function uP(dI) { + uU(dI, 0) + } + + function uU(dI, id) { + 0 === id && at.rI() || (id = window.innerWidth / document.documentElement.clientWidth) < .999 || 1.001 < id || 0 !== y.tp() && dI.preventDefault() + } + + function uR(dI) { + if (keybindHandler(dI.key)) return; + uT() || ("ArrowLeft" === dI.key ? aC.ul(3) : "ArrowUp" === dI.key ? aC.ul(0) : "ArrowRight" === dI.key ? aC.ul(1) : "ArrowDown" === dI.key ? aC.ul(2) : "a" === dI.key ? p.um(.9375) : "d" === dI.key ? p.um(16 / 15) : "s" === dI.key ? p.um(7 / + 8) : "w" === dI.key ? p.um(8 / 7) : "1" === dI.key ? p.um(.75) : "2" === dI.key ? p.um(7 / 8) : "3" === dI.key ? p.um(.9375) : "4" === dI.key ? p.um(31 / 32) : "5" === dI.key ? p.um(32 / 31) : "6" === dI.key ? p.um(16 / 15) : + "7" === dI.key ? p.um(8 / 7) : "8" === dI.key ? p.um(4 / 3) : "+" === dI.key ? 0 !== b.sm && q.uH(Math.floor(aL.gA / 2), Math.floor(aL.gF / 2), -200) : "-" === dI.key ? 0 !== b.sm && q.uH(Math.floor(aL.gA / 2), Math.floor(aL.gF / 2), + 200) : "c" === dI.key ? 0 !== b.sm && b3.un() : " " === dI.key ? b.sm && ar.fQ(!1) : "b" === dI.key && b.sm && ar.fQ(!0)) + } + + function uQ(dI) { + uT() || b4.dc < 400 || at.uo(dI) || (8 !== y.tp() && y.uo(dI) ? b4.d3 = !0 : "Escape" === dI.key ? y.dh() : "ArrowLeft" === dI.key || "a" === dI.key ? aC.up(3) : "ArrowUp" === dI.key || "w" === dI.key ? aC.up(0) : "ArrowRight" === dI.key || + "d" === dI.key ? aC.up(1) : "ArrowDown" === dI.key || "s" === dI.key ? aC.up(2) : "h" === dI.key ? 1 <= b.sm && ab.uq(!b.kG) : " " === dI.key && b.sm && (k.fT && k.ur(), b.fS) && ab.us(!1)) + } + + function uS() { + "hidden" === document.visibilityState ? 1 === b.sm && (b.fS ? ab.ut() : !b.iv || k.fT || b.fj || k.ur()) : b4.d3 = !0 + } + + function uT() { + return u9 + 15e3 > b4.dc } function resize() { - aL.uq() + aL.uw() } - this.u6 = 0, this.u7 = "", this.ct = function() { - u8.addEventListener("mousedown", fX, { + this.uB = 0, this.uC = "", this.ct = function() { + uD.addEventListener("mousedown", fX, { passive: !1 - }), u8.addEventListener("mousemove", u9, { + }), uD.addEventListener("mousemove", uE, { passive: !1 - }), u8.addEventListener("mouseup", uA, { + }), uD.addEventListener("mouseup", uF, { passive: !1 - }), u8.addEventListener("click", click, { + }), uD.addEventListener("click", click, { passive: !1 - }), u8.addEventListener("mouseleave", uB, { + }), uD.addEventListener("mouseleave", uG, { passive: !1 - }), u8.addEventListener("wheel", uC, { + }), uD.addEventListener("wheel", uH, { passive: !1 - }), u8.addEventListener("touchstart", uD, { + }), uD.addEventListener("touchstart", uI, { passive: !1 - }), u8.addEventListener("touchmove", uE, { + }), uD.addEventListener("touchmove", uJ, { passive: !1 - }), u8.addEventListener("touchend", uF, { + }), uD.addEventListener("touchend", uK, { passive: !1 - }), u8.addEventListener("touchcancel", uG, { + }), uD.addEventListener("touchcancel", uL, { passive: !1 - }), u8.addEventListener("dragover", uH), u8.addEventListener("drop", uI), u8.addEventListener("dblclick", uJ), document.addEventListener("contextmenu", uK), document.addEventListener("keyup", uL), document.addEventListener("keydown", - uM), document.addEventListener("visibilitychange", uN), window.addEventListener("resize", resize) - }, this.uU = function(fO, fP) { + }), uD.addEventListener("dragover", uM), uD.addEventListener("drop", uN), uD.addEventListener("dblclick", uO), document.addEventListener("contextmenu", uP), document.addEventListener("keyup", uQ), document.addEventListener("keydown", + uR), document.addEventListener("visibilitychange", uS), window.addEventListener("resize", resize) + }, this.uZ = function(fO, fP) { return !!ab.fX(fO, fP) || !!(t.fX(fO, fP) || q.fX(fO, fP) || p.fX(fO, fP) || l.fX(fO, fP)) - }, this.uo = uO, this.up = function() { - return !u5 || 0 < u4 + }, this.uu = uT, this.uv = function() { + return !uA || 0 < u9 } } function bK() { - this.g5 = new ur, this.pk = new us, this.fU = new ut, this.jr = new uu, this.qr = new uv, this.uw = new ux, this.gV = new uy, this.color = new uz, this.ct = function() { - this.g5.p7() - } -} - -function us() { - this.pl = function(ds) { - ds.fill(0) - }, this.v0 = function(ds) { - for (var ef = ds.length, eJ = 0; eJ < ef; eJ++) ds[eJ] = [] - }, this.v1 = function(gi, fy) { - for (var gj = am.dm, eJ = 0; eJ < 3; eJ++) gj[eJ] = fy * gi[eJ]; - return gj - }, this.v2 = function(gi, gj, v3) { - for (var gn = 0, eJ = 0; eJ < 3; eJ++) gn += Math.abs(gi[eJ] - gj[eJ]); - return v3 <= gn - }, this.v4 = function(gi, v5) { - for (var eJ = 0; eJ < 3; eJ++) gi[eJ] = aj.mx(gi[eJ] + v5, 0, 255); - return gi - }, this.v6 = function(ds, gI = 0, gJ = ds.length - 1) { - for (var v7 = 0, eJ = gI; eJ <= gJ; eJ++) v7 += ds[eJ]; - return v7 - }, this.v8 = function(ds, v9) { - for (var eJ, vA, ef = ds.length, vB = [], hg = ef - 1; 0 <= hg; hg--) { - for (eJ = vA = 0; eJ < ef; eJ++) v9(ds[eJ]) < v9(ds[vA]) && (vA = eJ); - ef--, vB.push(ds[vA]), ds[vA] = ds[ef], ds.pop() - } - return vB + this.g5 = new ux, this.pp = new uy, this.fU = new uz, this.jr = new v0, this.qw = new v1, this.v2 = new v3, this.gV = new v4, this.color = new v5, this.ct = function() { + this.g5.pC() } } function uy() { - this.rT = function(vC, g4, vD) { - var gP = vC.height, - vE = aZ.g5.pa(gP, gP), - gW = aZ.g5.getContext(vE); - return function(gA, gW, vD) { - gW.fillStyle = vD, gW.beginPath(), gW.arc(gA / 2, gA / 2, .47 * gA, 0, 2 * Math.PI), gW.fill() - }(gP, gW, vD), gW.drawImage(vC, -g4 * gP, 0), vE - }, this.vG = function(vH) { - var gP = vH.height, - gW = aZ.g5.getContext(vH, !0), - gS = gW.getImageData(0, 0, gP, gP); - return aZ.uw.vI(gS.data, gP, gP, .9), gW.putImageData(gS, 0, 0), vH + this.pq = function(ds) { + ds.fill(0) + }, this.v6 = function(ds) { + for (var ef = ds.length, eJ = 0; eJ < ef; eJ++) ds[eJ] = [] + }, this.v7 = function(gi, fy) { + for (var gj = am.dm, eJ = 0; eJ < 3; eJ++) gj[eJ] = fy * gi[eJ]; + return gj + }, this.v8 = function(gi, gj, v9) { + for (var gn = 0, eJ = 0; eJ < 3; eJ++) gn += Math.abs(gi[eJ] - gj[eJ]); + return v9 <= gn + }, this.vA = function(gi, vB) { + for (var eJ = 0; eJ < 3; eJ++) gi[eJ] = aj.mx(gi[eJ] + vB, 0, 255); + return gi + }, this.vC = function(ds, gI = 0, gJ = ds.length - 1) { + for (var vD = 0, eJ = gI; eJ <= gJ; eJ++) vD += ds[eJ]; + return vD + }, this.vE = function(ds, vF) { + for (var eJ, vG, ef = ds.length, vH = [], hg = ef - 1; 0 <= hg; hg--) { + for (eJ = vG = 0; eJ < ef; eJ++) vF(ds[eJ]) < vF(ds[vG]) && (vG = eJ); + ef--, vH.push(ds[vG]), ds[vG] = ds[ef], ds.pop() + } + return vH } } -function uz() { - this.vJ = function(df) { +function v4() { + this.rY = function(vI, g4, vJ) { + var gP = vI.height, + vK = aZ.g5.pf(gP, gP), + gW = aZ.g5.getContext(vK); + return function(gA, gW, vJ) { + gW.fillStyle = vJ, gW.beginPath(), gW.arc(gA / 2, gA / 2, .47 * gA, 0, 2 * Math.PI), gW.fill() + }(gP, gW, vJ), gW.drawImage(vI, -g4 * gP, 0), vK + }, this.vM = function(vN) { + var gP = vN.height, + gW = aZ.g5.getContext(vN, !0), + gS = gW.getImageData(0, 0, gP, gP); + return aZ.v2.vO(gS.data, gP, gP, .9), gW.putImageData(gS, 0, 0), vN + } +} + +function v5() { + this.vP = function(df) { return [df >> 12 & 63, df >> 6 & 63, 63 & df] - }, this.o0 = function(df) { - var ds = this.vJ(df); + }, this.o1 = function(df) { + var ds = this.vP(df); for (let eJ = 0; eJ < 3; eJ++) ds[eJ] = ~~(4.05 * ds[eJ]); return ds - }, this.o2 = function(ds) { + }, this.vQ = function(df) { + df = this.o1(df); + return aZ.color.kc(df[0], df[1], df[2]) + }, this.o3 = function(ds) { for (let eJ = 0; eJ < 3; eJ++) ds[eJ] = ~~(ds[eJ] / 4.04); return (ds[0] << 12) + (ds[1] << 6) + ds[2] - }, this.kc = function(gY, vK, hp) { - return "rgb(" + gY + "," + vK + "," + hp + ")" - }, this.ke = function(gY, vK, hp, hg) { - return "rgba(" + gY + "," + vK + "," + hp + "," + hg.toFixed(3) + ")" - }, this.nd = function(iT) { + }, this.kc = function(gY, vR, hp) { + return "rgb(" + gY + "," + vR + "," + hp + ")" + }, this.ke = function(gY, vR, hp, hg) { + return "rgba(" + gY + "," + vR + "," + hp + "," + hg.toFixed(3) + ")" + }, this.ne = function(iT) { var ds = iT.split("(")[1].split(","), dl = (ds.length, am.dl); for (let eJ = 0; eJ < 3; eJ++) dl[eJ] = parseInt(ds[eJ]); return dl - }, this.nZ = function(vL, eo) { - var ds = vL.slice(vL.indexOf("(") + 1, vL.indexOf(")")).split(","), + }, this.na = function(vS, eo) { + var ds = vS.slice(vS.indexOf("(") + 1, vS.indexOf(")")).split(","), dl = am.dl; for (let eJ = 0; eJ < 3; eJ++) dl[eJ] = aj.mx(parseInt(ds[eJ].trim(), 10) + eo, 0, 255); return 3 === ds.length ? this.kc(dl[0], dl[1], dl[2]) : this.ke(dl[0], dl[1], dl[2], parseFloat(ds[3].trim())) - }, this.nz = function(ds) { + }, this.o0 = function(ds) { let g3 = "#"; for (let eJ = 0; eJ < 3; eJ++) { var gY = ds[eJ].toString(16); g3 += 1 === gY.length ? "0" + gY : gY } return g3 - }, this.o3 = function(g3) { - var gY, vK; - return g3.length < 7 ? aa.jp : (gY = parseInt(g3.slice(1, 3), 16), vK = parseInt(g3.slice(3, 5), 16), g3 = parseInt(g3.slice(5, 7), 16), this.kc(gY, vK, g3)) + }, this.o4 = function(g3) { + var gY, vR; + return g3.length < 7 ? aa.jp : (gY = parseInt(g3.slice(1, 3), 16), vR = parseInt(g3.slice(3, 5), 16), g3 = parseInt(g3.slice(5, 7), 16), this.kc(gY, vR, g3)) } } -function uv() { - this.vM = function(g3, font, maxWidth) { +function v1() { + this.vT = function(g3, font, maxWidth) { if (gM.font = font, gM.measureText(g3).width <= maxWidth) return g3; for (let eJ = g3.length - 1; 1 <= eJ; eJ--) if (g3 = g3.substring(0, eJ), gM.measureText(g3 + "...").width <= maxWidth) return g3 + "..."; @@ -2006,88 +2029,88 @@ function uv() { } } -function ur() { - var vN = null; - this.rl = 0, this.p7 = function() { +function ux() { + var vU = null; + this.rq = 0, this.pC = function() { var df = bA.dK.data[5].value; - vN = "px " + df, "Trebuchet MS" !== df && (vN += ", Trebuchet MS"), this.rl = gO(32, 32, ["a", "b", "m"], 200, vN) - }, this.pa = function(gA, gF) { + vU = "px " + df, "Trebuchet MS" !== df && (vU += ", Trebuchet MS"), this.rq = gO(32, 32, ["a", "b", "m"], 200, vU) + }, this.pf = function(gA, gF) { var iT = document.createElement("canvas"); return iT.width = gA, iT.height = gF, iT }, this.getContext = function(gV, alpha) { return gV.getContext("2d", { alpha: alpha }) - }, this.getImageData = function(qr, gA, gF) { - return qr.getImageData(0, 0, gA, gF) + }, this.getImageData = function(qw, gA, gF) { + return qw.getImageData(0, 0, gA, gF) }, this.g6 = function(type, size) { - return size = size.toFixed(2), 0 === type ? size + vN : 1 === type ? "bold " + size + vN : 2 === type ? "lighter " + size + vN : 3 === type ? "italic " + size + vN : 4 === type ? "oblique " + size + vN : 5 === type ? "small-caps " + - size + vN : "small-caps bold " + size + vN + return size = size.toFixed(2), 0 === type ? size + vU : 1 === type ? "bold " + size + vU : 2 === type ? "lighter " + size + vU : 3 === type ? "italic " + size + vU : 4 === type ? "oblique " + size + vU : 5 === type ? "small-caps " + + size + vU : "small-caps bold " + size + vU }, this.textAlign = function(gW, id) { gW.textAlign = 0 === id ? "left" : 1 === id ? "center" : "right" }, this.textBaseline = function(gW, id) { gW.textBaseline = 1 === id ? "middle" : "bottom" }, this.nS = function(dI, code = 5, color = aa.gN) { - color = this.nR(b1.vO) + " solid " + color; + color = this.nR(b1.vV) + " solid " + color; 5 === code ? dI.style.border = color : 4 === code ? dI.style.borderLeft = color : 2 === code ? dI.style.borderBottom = color : 6 === code ? dI.style.borderRight = color : dI.style.borderTop = color - }, this.vP = function(dI, fO, fP, gA, gF) { + }, this.vW = function(dI, fO, fP, gA, gF) { dI = dI.style; - dI.left = this.vQ(fO), dI.top = this.vQ(fP), dI.width = this.vQ(gA), dI.height = this.vQ(gF) + dI.left = this.vX(fO), dI.top = this.vX(fP), dI.width = this.vX(gA), dI.height = this.vX(gF) }, this.nJ = function(df) { return 1 + df * b8.cy.g0() - }, this.nt = function(kO, en = .5) { + }, this.nu = function(kO, en = .5) { return kO * this.nJ(en) * aL.g1 / aL.nN }, this.nR = function(df) { return df.toFixed(1) + "px" - }, this.vQ = function(df) { - return this.vR(df).toFixed(1) + "px" - }, this.vR = function(df) { + }, this.vX = function(df) { + return this.vY(df).toFixed(1) + "px" + }, this.vY = function(df) { return df / aL.nN - }, this.vS = function(vT, vU) { - for (var g3 = "