diff --git a/fx_core.js b/fx_core.js index d072925..eb1cd8d 100644 --- a/fx_core.js +++ b/fx_core.js @@ -1,4 +1,4 @@ -const dictionary = {"gIsTeamGame":"hL","playerId":"eU","playerNames":"jk","playerBalances":"eV","playerTerritories":"ez","gHumans":"h0","playerStates":"h2","gLobbyMaxJoin":"pt","gIsSingleplayer":"il","uiSizes":"b0","gap":"gap"}; +const dictionary = {"gIsTeamGame":"hL","playerId":"eU","playerNames":"jl","playerBalances":"eV","playerTerritories":"ez","gHumans":"h0","playerStates":"h2","gLobbyMaxJoin":"pu","gIsSingleplayer":"il","uiSizes":"b0","gap":"gap"}; const fx_version = '0.6.3.3'; // FX Client Version const fx_update = 'Apr 11'; // FX Client Last Updated diff --git a/game.js b/game.js index a0077c4..500e22b 100644 --- a/game.js +++ b/game.js @@ -16,8 +16,8 @@ function bD() { } function cZ() { - this.dC = 1036, this.cq = function() { - d6 = 2, d8 = 18, d7 = "25 Apr 2024 (1.94.1)", d9 = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io"), dB = function() { + this.dC = 1037, this.cq = function() { + d6 = 2, d8 = 18, d7 = "29 Apr 2024 (1.94.2)", d9 = 0 <= window.location.hostname.toLowerCase().indexOf("territorial.io"), dB = function() { try { return window.self !== window.top } catch (dE) { @@ -511,7 +511,7 @@ function iC(player, hS) { self.aiCommand746 = function(db) { 0 === db ? bD() : 1 !== db || 1 !== b7.id || b7.dc < 14 || x.dd() }; -var h0, rR, ie, rQ, iS = [60, 74, 112, 200, 256, 512]; +var h0, rS, ie, rR, iS = [60, 74, 112, 200, 256, 512]; function bN() { var iT, iU, iV, iW, iX, iY; @@ -561,47 +561,48 @@ function it() { } function iy() { - aO.i5(), d.i5(), a5.i5(), aR.i5(), aQ.i5(), c.i5(), e.i5(), ak.iv.i5(), iz(), s.i5(), aM.i5(), a6.i5(), a6.j0(), t.i5(), am.i5(), r.i5(), m.i5(), k.i5(), aS.i5(), o.i5(), aI.i5(), b1.i5(), b5.i5(), an.i5(), aN.iv.i5(), ar.i5(), aX.i5(), b3.i5() + aO.i5(), d.i5(), a5.i5(), aR.i5(), aQ.i5(), c.i5(), e.i5(), ak.iv.i5(), iz(), s.i5(), aM.i5(), a6.i5(), a6.j0(), t.i5(), am.i5(), r.i5(), m.i5(), k.i5(), aS.i5(), o.i5(), aI.i5(), b1.i5(), b5.i5(), an.i5(), aN.iv.i5(), aN.j1.i5(), ar.i5(), aX + .i5(), b3.i5() } -function j1() { - f.i5(), u.i5(), n.i5(), aF.i5(), aa.i5(), aJ.j2() +function j2() { + f.i5(), u.i5(), n.i5(), aF.i5(), aa.i5(), aJ.j3() } -function j3() { - s.j4(!1), m.j4(), t.j4(!1), r.j4(), o.j4(), aI.j4(), a6.j4(!1), b5.g0() +function j4() { + s.j5(!1), m.j5(), t.j5(!1), r.j5(), o.j5(), aI.j5(), a6.j5(!1), b5.g0() } -function j5() { - a6.j4(!1) && (b3.d1 = !0), aN.iv.i5() +function j6() { + a6.j5(!1) && (b3.d1 = !0), aN.iv.i5() } function bO() { - var j6, j7, j8, j9, jA, jB; + var j7, j8, j9, jA, jB, jC; - function jF(jH) { - for (var eD = j7 - 1; 0 <= eD; eD--) 0 === j9[j8[eD]] && ez[j8[eD]] >= jH && eA(j8[eD]) + function jG(jI) { + for (var eD = j8 - 1; 0 <= eD; eD--) 0 === jA[j9[eD]] && ez[j9[eD]] >= jI && eA(j9[eD]) } - function jD(player) { - 10 === j9[player] ? j9[player] = j6 : ez[player] < 1e3 ? j9[player] = 3 : ez[player] < 1e4 ? j9[player] = 2 : ez[player] < 6e4 ? j9[player] = 1 : j9[player] = 0 + function jE(player) { + 10 === jA[player] ? jA[player] = j7 : ez[player] < 1e3 ? jA[player] = 3 : ez[player] < 1e4 ? jA[player] = 2 : ez[player] < 6e4 ? jA[player] = 1 : jA[player] = 0 } this.cq = function() { - jA = jB = 0, j6 = 6, j7 = 0, j8 = new Uint16Array(ed), j9 = new Uint8Array(ed) + jB = jC = 0, j7 = 6, j8 = 0, j9 = new Uint16Array(ed), jA = new Uint8Array(ed) }, this.i5 = function() { var eD; - for (jA = b1.eX[13], jB = eV[eU], eD = j7 - 1; 0 <= eD; eD--) 10 === j9[j8[eD]] ? jD(j8[eD]) : 0 == j9[j8[eD]]-- && (jD(j8[eD]), eA(j8[eD])); - 16e4 <= ez[jE[0]] && (jF(16e4), 3e5 <= ez[jE[0]]) && jF(3e5), ez[eU] > b1.eX[7] && (b1.eX[7] = ez[eU]), b1.eX[14] += jB - eV[eU] + jA - b1.eX[13] + for (jB = b1.eX[13], jC = eV[eU], eD = j8 - 1; 0 <= eD; eD--) 10 === jA[j9[eD]] ? jE(j9[eD]) : 0 == jA[j9[eD]]-- && (jE(j9[eD]), eA(j9[eD])); + 16e4 <= ez[jF[0]] && (jG(16e4), 3e5 <= ez[jF[0]]) && jG(3e5), ez[eU] > b1.eX[7] && (b1.eX[7] = ez[eU]), b1.eX[14] += jC - eV[eU] + jB - b1.eX[13] }, this.eT = function(player) { - for (var hY, eD = j7 - 1; 0 <= eD; eD--) - if (player === j8[eD]) { - for (j7--, hY = eD; hY < j7; hY++) j8[hY] = j8[hY + 1]; + for (var hY, eD = j8 - 1; 0 <= eD; eD--) + if (player === j9[eD]) { + for (j8--, hY = eD; hY < j8; hY++) j9[hY] = j9[hY + 1]; return } - }, this.hP = function(player, jI) { - for (var eD = j7 - 1; 0 <= eD; eD--) - if (player === j8[eD]) return; - j8[j7++] = player, j9[player] = jI ? 2 : 10 + }, this.hP = function(player, jJ) { + for (var eD = j8 - 1; 0 <= eD; eD--) + if (player === j9[eD]) return; + j9[j8++] = player, jA[player] = jJ ? 2 : 10 } } @@ -619,1064 +620,1059 @@ function bP() { } function bQ() { - var jL, jM, j7, j8, j9, jN, jO, jP; + var jM, jN, j8, j9, jA, jO, jP, jQ; - function jR(eD) { + function jS(eD) { var hY; - for (j7--, hY = eD; hY < j7; hY++) j8[hY] = j8[hY + 1], j9[hY] = j9[hY + 1], jN[hY] = jN[hY + 1], jO[hY] = jO[hY + 1], jP[hY] = jP[hY + 1] + for (j8--, hY = eD; hY < j8; hY++) j9[hY] = j9[hY + 1], jA[hY] = jA[hY + 1], jO[hY] = jO[hY + 1], jP[hY] = jP[hY + 1], jQ[hY] = jQ[hY + 1] } this.cq = function() { - jL = 1, j7 = 0, jM = 2 * ed, j8 = new Uint16Array(jM), j9 = new Uint8Array(jM), jN = new Uint16Array(jM), jO = new Uint32Array(jM), jP = new Uint32Array(jM) - }, this.jQ = function(fx, position) { - jO[fx] = position + jM = 1, j8 = 0, jN = 2 * ed, j9 = new Uint16Array(jN), jA = new Uint8Array(jN), jO = new Uint16Array(jN), jP = new Uint32Array(jN), jQ = new Uint32Array(jN) + }, this.jR = function(fx, position) { + jP[fx] = position }, this.i5 = function() { - for (var eD = j7 - 1; 0 <= eD; eD--) 0 == j9[eD]-- && (j9[eD] = 2, aC.i5(eD, jN[eD], j8[eD], jO[eD], jP[eD])) + for (var eD = j8 - 1; 0 <= eD; eD--) 0 == jA[eD]-- && (jA[eD] = 2, aC.i5(eD, jO[eD], j9[eD], jP[eD], jQ[eD])) }, this.eT = function(player, id) { - for (var eD = j7 - 1; 0 <= eD; eD--) - if (player === j8[eD] && id === jN[eD]) return void jR(eD) - }, this.jS = function(player) { - for (var eD = j7 - 1; 0 <= eD; eD--) player === j8[eD] && (aC.jT(player, jO[eD]), jR(eD)) - }, this.hP = function(player, ha, jU) { - if (jM <= j7) return 0; - j8[j7] = player, j9[j7] = 0, jN[j7] = jL, jO[j7] = ha, jP[j7] = jU; - player = jL; - return j7++, jL = 2 * jM < ++jL ? 1 : jL, player + for (var eD = j8 - 1; 0 <= eD; eD--) + if (player === j9[eD] && id === jO[eD]) return void jS(eD) + }, this.jT = function(player) { + for (var eD = j8 - 1; 0 <= eD; eD--) player === j9[eD] && (aC.jU(player, jP[eD]), jS(eD)) + }, this.hP = function(player, ha, jV) { + if (jN <= j8) return 0; + j9[j8] = player, jA[j8] = 0, jO[j8] = jM, jP[j8] = ha, jQ[j8] = jV; + player = jM; + return j8++, jM = 2 * jN < ++jM ? 1 : jM, player }, this.gC = function() { - if (!(h6 < 40 || 0 === j7)) { - var hY, fI, fJ, eD, fontSize, jZ, hS, ja = h5 / h6, - jb = h7 / h6, - jc = (aK.g3 + h5) / h6, - jd = (aK.g9 + h7) / h6; - for (aY.fy.textAlign(gD, 1), aY.fy.textBaseline(gD, 1), hY = j7 - 1; 0 <= hY; hY--) fI = a2.je(jO[hY]), fJ = a2.gB(jO[hY]), eD = j8[hY], ja - 1 < fI && fI < jc && jb - 1 < fJ && fJ < jd && 0 !== h1[eD] && ((fontSize = Math.floor(.94 * - h6 * a6.jf(eD))) < 6 || (fI = Math.floor(aK.g3 * (fI + .5 - ja) / (jc - ja)), fJ = Math.floor(aK.g9 * (fJ + .48 - jb) / (jd - jb)), gD.font = aY.fy.fz(1, fontSize), gD.fillStyle = aZ.jg, hS = a4.eL(eD, a4.jh(eD, jN[hY])), - gD.fillText(b9.dG.data[7].value ? aY.ji.jj(hS) : jk[eD], fI, fJ), (jZ = Math.floor(.5 * fontSize)) < 6) || (gD.font = aY.fy.fz(1, jZ), gD.fillText(b9.dG.data[7].value ? jk[eD] : aY.ji.jj(hS), fI, fJ + Math.floor(.82 * + if (!(h6 < 40 || 0 === j8)) { + var hY, fI, fJ, eD, fontSize, ja, hS, jb = h5 / h6, + jc = h7 / h6, + jd = (aK.g3 + h5) / h6, + je = (aK.g9 + h7) / h6; + for (aY.fy.textAlign(gD, 1), aY.fy.textBaseline(gD, 1), hY = j8 - 1; 0 <= hY; hY--) fI = a2.jf(jP[hY]), fJ = a2.gB(jP[hY]), eD = j9[hY], jb - 1 < fI && fI < jd && jc - 1 < fJ && fJ < je && 0 !== h1[eD] && ((fontSize = Math.floor(.94 * + h6 * a6.jg(eD))) < 6 || (fI = Math.floor(aK.g3 * (fI + .5 - jb) / (jd - jb)), fJ = Math.floor(aK.g9 * (fJ + .48 - jc) / (je - jc)), gD.font = aY.fy.fz(1, fontSize), gD.fillStyle = aZ.jh, hS = a4.eL(eD, a4.ji(eD, jO[hY])), + gD.fillText(b9.dG.data[7].value ? aY.jj.jk(hS) : jl[eD], fI, fJ), (ja = Math.floor(.5 * fontSize)) < 6) || (gD.font = aY.fy.fz(1, ja), gD.fillText(b9.dG.data[7].value ? jl[eD] : aY.jj.jk(hS), fI, fJ + Math.floor(.82 * fontSize)))) } } } function bR() { - var jl, jm, jn, jo, jp, jq, jr, js, jt, ju, jv, jw, jx, jy = !1, - jz = !1; + var jm, jn, jo, jp, jq, jr, js, jt, ju, jv, jw, jx, jy, jz = !1, + k0 = !1; - function k0(k1) { - jw = b3.dY, jn = jo = jm = 0, jp = (jx = 33) / k1, jl = 1 / (k1 / jx / 4), jq = (aK.g3 / 2 + h5) / h6, jr = (aK.g9 / 2 + h7) / h6, js = h6 + function k1(k2) { + jx = b3.dY, jo = jp = jn = 0, jq = (jy = 33) / k2, jm = 1 / (k2 / jy / 4), jr = (aK.g3 / 2 + h5) / h6, js = (aK.g9 / 2 + h7) / h6, jt = h6 } - function kE(kG) { - Math.abs(Math.log(jv / js)) < .125 && (jv = kG * js) + function kF(kH) { + Math.abs(Math.log(jw / jt)) < .125 && (jw = kH * jt) } - function kD(ja, jb, jc, jd) { - jt = (ja + jc + 1) / 2, ju = (jb + jd + 1) / 2; - jc = aK.g3 / (jc - ja + 1), ja = aK.g9 / (jd - jb + 1); - jv = .9 * (jc < ja ? jc : ja) + function kE(jb, jc, jd, je) { + ju = (jb + jd + 1) / 2, jv = (jc + je + 1) / 2; + jd = aK.g3 / (jd - jb + 1), jb = aK.g9 / (je - jc + 1); + jw = .9 * (jd < jb ? jd : jb) } - this.k2 = function() { - return jy - }, this.k3 = function() { - k0(1), this.k4(0, 0, ap.e8 - 1, ap.e9 - 1), fa || fL || this.k5(eU, 3e3, !0, .3) - }, this.k5 = function(player, k1, k6, zoom) { - k7 || jy && !k6 && jz || 0 === ez[player] || (p.k8 = !1, jz = k6, k0(k1), function(player) { - jt = (ht[player] + hs[player] + 1) / 2, ju = (hw[player] + hv[player] + 1) / 2 + this.k3 = function() { + return jz + }, this.k4 = function() { + k1(1), this.k5(0, 0, ap.e8 - 1, ap.e9 - 1), fa || fL || this.k6(eU, 3e3, !0, .3) + }, this.k6 = function(player, k2, k7, zoom) { + k8 || jz && !k7 && k0 || 0 === ez[player] || (p.k9 = !1, k0 = k7, k1(k2), function(player) { + ju = (ht[player] + hs[player] + 1) / 2, jv = (hw[player] + hv[player] + 1) / 2 }(player), function(zoom, player) { var gs = hs[player] - ht[player] + 1, player = hv[player] - hw[player] + 1, hY = aK.g3 / gs, hh = aK.g9 / player, - hY = (jv = hY < hh ? hY : hh, 0 !== zoom ? zoom : gs < 20 && player < 20 ? .5 : .9); - jv *= hY, kE(7 / 8) - }(zoom, player), jy = !0, aB.kB()) - }, this.kC = function(k1) { - fL || k7 || (p.k8 = !1, jz = !1, k0(k1), kD(0, 0, ap.e8 - 1, ap.e9 - 1), kE(7 / 8), jy = !0, aB.kB()) - }, this.k4 = function(ja, jb, jc, jd) { - kD(ja, jb, jc, jd), h6 = jv, p.kH(jt, aK.g3 / 2), p.kI(ju, aK.g9 / 2), ax.kJ() - }, this.kK = function() { - return !(jy && jz || (jy = !1)) + hY = (jw = hY < hh ? hY : hh, 0 !== zoom ? zoom : gs < 20 && player < 20 ? .5 : .9); + jw *= hY, kF(7 / 8) + }(zoom, player), jz = !0, aB.kC()) + }, this.kD = function(k2) { + fL || k8 || (p.k9 = !1, k0 = !1, k1(k2), kE(0, 0, ap.e8 - 1, ap.e9 - 1), kF(7 / 8), jz = !0, aB.kC()) + }, this.k5 = function(jb, jc, jd, je) { + kE(jb, jc, jd, je), h6 = jw, p.kI(ju, aK.g3 / 2), p.kJ(jv, aK.g9 / 2), ax.kK() + }, this.kL = function() { + return !(jz && k0 || (jz = !1)) }, this.i5 = function() { - var kN, kO, ei, kR; - jy && (jm < .5 ? jo < jp && (jo += jp * jl, jn = jm) : 1 - jn < jm && (jo = (jo -= jp * jl) < jp * jl ? jp * jl : jo), jw = jw >= b3.dY ? b3.dY - 1 : jw, ei = b3.dY - jw, jm = 1e3 < ei || 1 < (jm += jo * ei / jx) ? 1 : jm, jw = b3.dY, - ei = h6, kN = h5, kO = h7, ei = (h6 = js * Math.pow(jv / js, jm)) / ei, kR = 1 - (js * Math.pow(jv / js, 1 - jm) - js) / (jv - js), p.kH(jq + kR * (jt - jq), aK.g3 / 2), p.kI(jr + kR * (ju - jr), aK.g9 / 2), a6.zoom(ei, (kN * ei - - h5) / (1 - ei), (kO * ei - h7) / (1 - ei)), ax.kJ(), 1 <= jm && (jy = !1, ay.kS = !0), b3.d1 = !0) + var kO, kP, ei, kS; + jz && (jn < .5 ? jp < jq && (jp += jq * jm, jo = jn) : 1 - jo < jn && (jp = (jp -= jq * jm) < jq * jm ? jq * jm : jp), jx = jx >= b3.dY ? b3.dY - 1 : jx, ei = b3.dY - jx, jn = 1e3 < ei || 1 < (jn += jp * ei / jy) ? 1 : jn, jx = b3.dY, + ei = h6, kO = h5, kP = h7, ei = (h6 = jt * Math.pow(jw / jt, jn)) / ei, kS = 1 - (jt * Math.pow(jw / jt, 1 - jn) - jt) / (jw - jt), p.kI(jr + kS * (ju - jr), aK.g3 / 2), p.kJ(js + kS * (jv - js), aK.g9 / 2), a6.zoom(ei, (kO * ei - + h5) / (1 - ei), (kP * ei - h7) / (1 - ei)), ax.kK(), 1 <= jn && (jz = !1, ay.kT = !0), b3.d1 = !0) } } function bK() { var iK = aY.fy; - this.jg = iK.kT(0, 0, 0), this.kU = iK.kV(0, 0, 0, .7), this.kW = iK.kV(0, 0, 0, .5), this.kX = iK.kV(0, 0, 0, .85), this.kY = iK.kV(0, 0, 0, .75), this.kZ = iK.kV(0, 0, 0, .6), this.ka = iK.kV(0, 0, 0, .35), this.gE = iK.kT(255, 255, 255), this - .kb = iK.kV(255, 255, 255, .3), this.kc = iK.kV(255, 255, 255, .6), this.kd = iK.kV(255, 255, 255, .4), this.ke = iK.kV(255, 255, 255, .25), this.kf = iK.kV(255, 255, 255, .85), this.kg = iK.kV(255, 255, 255, .75), this.kh = iK.kV(255, 255, - 255, .15), this.ki = iK.kT(128, 128, 128), this.kj = iK.kV(64, 64, 64, .75), this.kk = iK.kV(88, 88, 88, .83), this.kl = iK.kT(30, 255, 30), this.km = iK.kT(0, 200, 0), this.kn = iK.kT(128, 255, 128), this.ko = iK.kV(10, 65, 10, .75), - this.kp = iK.kV(0, 255, 0, .6), this.kq = iK.kV(0, 255, 0, .5), this.kr = iK.kV(0, 200, 0, .5), this.ks = iK.kV(0, 100, 0, .75), this.kt = iK.kV(0, 60, 0, .8), this.ku = iK.kV(0, 255, 0, .3), this.kv = iK.kV(0, 180, 0, .6), this.kw = iK.kV(0, - 120, 0, .85), this.kx = iK.kT(255, 120, 120), this.ky = iK.kT(255, 160, 160), this.kz = iK.kT(255, 70, 70), this.l0 = iK.kT(230, 0, 0), this.l1 = iK.kV(220, 0, 0, .6), this.l2 = iK.kV(255, 100, 100, .8), this.l3 = iK.kV(100, 0, 0, .85), - this.l4 = iK.kV(60, 0, 0, .85), this.l5 = iK.kV(200, 0, 0, .6), this.l6 = iK.kV(120, 0, 0, .85), this.l7 = iK.kV(0, 60, 60, .85), this.l8 = iK.kV(10, 60, 60, .9), this.l9 = iK.kV(0, 96, 96, .75), this.lA = iK.kT(160, 160, 255), this.lB = iK - .kV(0, 40, 90, .75), this.lC = iK.kV(0, 0, 255, .6), this.lD = iK.kT(200, 200, 255), this.lE = iK.kT(255, 120, 100), this.lF = iK.kV(255, 255, 0, .5), this.lG = iK.kV(255, 255, 150, .2), this.lH = iK.kT(255, 255, 0), this.lI = iK.kT(255, 255, - 200), this.lJ = iK.kV(200, 200, 0, .6), this.lK = iK.kV(140, 120, 0, .75), this.lL = iK.kV(180, 160, 40, .75), this.lM = iK.kV(255, 140, 0, .75), iK = null, this.lN = function(lO, ei) { - for (var dl = lO.slice(lO.indexOf("(") + 1, lO.indexOf(")")).split(","), dg = al.dg, eD = 0; eD < 3; eD++) dg[eD] = ai.lP(parseInt(dl[eD].trim(), 10) + ei, 0, 255); - return 3 === dl.length ? aY.fy.kT(dg[0], dg[1], dg[2]) : aY.fy.kV(dg[0], dg[1], dg[2], parseFloat(dl[3].trim())) + this.jh = iK.kU(0, 0, 0), this.kV = iK.kW(0, 0, 0, .7), this.kX = iK.kW(0, 0, 0, .5), this.kY = iK.kW(0, 0, 0, .85), this.kZ = iK.kW(0, 0, 0, .75), this.ka = iK.kW(0, 0, 0, .6), this.kb = iK.kW(0, 0, 0, .35), this.gE = iK.kU(255, 255, 255), this + .kc = iK.kW(255, 255, 255, .3), this.kd = iK.kW(255, 255, 255, .6), this.ke = iK.kW(255, 255, 255, .4), this.kf = iK.kW(255, 255, 255, .25), this.kg = iK.kW(255, 255, 255, .85), this.kh = iK.kW(255, 255, 255, .75), this.ki = iK.kW(255, 255, + 255, .15), this.kj = iK.kU(128, 128, 128), this.kk = iK.kW(64, 64, 64, .75), this.kl = iK.kW(88, 88, 88, .83), this.km = iK.kU(30, 255, 30), this.kn = iK.kU(0, 200, 0), this.ko = iK.kU(128, 255, 128), this.kp = iK.kW(10, 65, 10, .75), + this.kq = iK.kW(0, 255, 0, .6), this.kr = iK.kW(0, 255, 0, .5), this.ks = iK.kW(0, 200, 0, .5), this.kt = iK.kW(0, 100, 0, .75), this.ku = iK.kW(0, 60, 0, .8), this.kv = iK.kW(0, 255, 0, .3), this.kw = iK.kW(0, 180, 0, .6), this.kx = iK.kW(0, + 120, 0, .85), this.ky = iK.kU(255, 120, 120), this.kz = iK.kU(255, 160, 160), this.l0 = iK.kU(255, 70, 70), this.l1 = iK.kU(230, 0, 0), this.l2 = iK.kW(220, 0, 0, .6), this.l3 = iK.kW(255, 100, 100, .8), this.l4 = iK.kW(100, 0, 0, .85), + this.l5 = iK.kW(60, 0, 0, .85), this.l6 = iK.kW(200, 0, 0, .6), this.l7 = iK.kW(120, 0, 0, .85), this.l8 = iK.kW(0, 60, 60, .85), this.l9 = iK.kW(10, 60, 60, .9), this.lA = iK.kW(0, 96, 96, .75), this.lB = iK.kU(160, 160, 255), this.lC = iK + .kW(0, 40, 90, .75), this.lD = iK.kW(0, 0, 255, .6), this.lE = iK.kU(200, 200, 255), this.lF = iK.kU(255, 120, 100), this.lG = iK.kW(255, 255, 0, .5), this.lH = iK.kW(255, 255, 150, .2), this.lI = iK.kU(255, 255, 0), this.lJ = iK.kU(255, 255, + 200), this.lK = iK.kW(200, 200, 0, .6), this.lL = iK.kW(140, 120, 0, .75), this.lM = iK.kW(180, 160, 40, .75), this.lN = iK.kW(255, 140, 0, .75), iK = null, this.lO = function(lP, ei) { + for (var dl = lP.slice(lP.indexOf("(") + 1, lP.indexOf(")")).split(","), dg = al.dg, eD = 0; eD < 3; eD++) dg[eD] = ai.lQ(parseInt(dl[eD].trim(), 10) + ei, 0, 255); + return 3 === dl.length ? aY.fy.kU(dg[0], dg[1], dg[2]) : aY.fy.kW(dg[0], dg[1], dg[2], parseFloat(dl[3].trim())) } } function cG() { - this.fb = new lQ, this.fN = new lR, this.lS = new lT, this.lU = new lV, this.iO = new lW + this.fb = new lR, this.fN = new lS, this.lT = new lU, this.lV = new lW, this.iO = new lX } -function lQ() { +function lR() { this.fc = function(fV) { - il ? aW.lS.fc(eU, fV) : aN.lX.lY(fV) + il ? aW.lT.fc(eU, fV) : aN.lY.lZ(fV) }, this.fm = function(h4, hR) { - k.lZ(), il ? aW.lS.fm(eU, h4, hR) : aN.lX.la(h4, hR) - }, this.lb = function(h4, lc) { - k.lZ(), il ? aW.lS.ld(eU, h4, lc) : aN.lX.le(h4, lc) + k.la(), il ? aW.lT.fm(eU, h4, hR) : aN.lY.lb(h4, hR) + }, this.lc = function(h4, ld) { + k.la(), il ? aW.lT.le(eU, h4, ld) : aN.lY.lf(h4, ld) }, this.fj = function(h4, fV) { - il ? aW.lS.fj(eU, h4, fV) : ak.fd.fi(eU, fV) && aN.lX.lf(h4, fV) - }, this.fe = function(lg, fV) { - il ? aW.lS.fe(eU, lg, fV) : ak.fd.lh(eU, lg, fV) && aN.lX.li(lg, fV) - }, this.lj = function(hR) { - il ? aW.lS.lj(eU, hR) : aN.lX.lk(hR) - }, this.ll = function(lm) { - il ? aW.lS.ln(eU, lm) : aN.lX.lo(lm) - }, this.lp = function(lq) { - il ? aW.lS.lp(eU, lq) : aN.lX.lr(lq) - }, this.ls = function() { - il ? aW.lS.ls(eU) : aN.lX.lt() + il ? aW.lT.fj(eU, h4, fV) : ak.fd.fi(eU, fV) && aN.lY.lg(h4, fV) + }, this.fe = function(lh, fV) { + il ? aW.lT.fe(eU, lh, fV) : ak.fd.li(eU, lh, fV) && aN.lY.lj(lh, fV) + }, this.lk = function(hR) { + il ? aW.lT.lk(eU, hR) : aN.lY.ll(hR) + }, this.lm = function(ln) { + il ? aW.lT.lo(eU, ln) : aN.lY.lp(ln) + }, this.lq = function(lr) { + il ? aW.lT.lq(eU, lr) : aN.lY.ls(lr) + }, this.lt = function() { + il ? aW.lT.lt(eU) : aN.lY.lu() + } +} + +function lX() { + this.iP = function(player, ld, hS) { + aY.fN.lv(player, hS, ld) && (a5.lc(player, ld), ld < h0) && aL.random() < aL.value(10) && (hM[ld] = 0) + }, this.lw = function(player, ld, hS) { + aY.fN.lx(hS, ld) && (aY.fN.ly(ld, al.df[0]), b1.lz(player, ld), a6.m0(ld, al.df[0])) + } +} + +function lS() { + this.m1 = function(ln, player) { + k.lm(eU, player, ln), aN.lY.m2(ln, player) + }, this.m3 = function(player) { + k.m4(player, 0), aN.lY.m5(player) + }, this.m6 = function(m7, player) { + k.m8(m7, player), aN.lY.m9(m7, player) + }, this.mA = function(mB) { + il || fL || aN.lY.mC(mD(), mB) + }, this.mE = function() { + il || fL || aN.lY.mF(mD(), jF[0], jF[1], jF[2]) + }, this.mG = function() { + il || fL || aN.lY.mH(mD()) } } function lW() { - this.iP = function(player, lc, hS) { - aY.fN.lu(player, hS, lc) && (a5.lb(player, lc), lc < h0) && aL.random() < aL.value(10) && (hM[lc] = 0) - }, this.lv = function(player, lc, hS) { - aY.fN.lw(hS, lc) && (aY.fN.lx(lc, al.df[0]), b1.ly(player, lc), a6.lz(lc, al.df[0])) + this.i5 = function(mI) { + var id, dm, kL; + for (ae.cq(mI), ae.fx += 2, kL = 8 * ae.size; ae.fx + 8 <= kL;) id = ae.mJ(4), dm = ae.mJ(9), 0 === id ? this.mK(id, dm, ae.mJ(22)) : 1 === id ? this.mK(id, dm, ae.mJ(10), ae.mJ(10)) : 2 === id ? this.mK(id, dm, ae.mJ(10), ae.mJ(9)) : + 3 === id || 4 === id ? this.mK(id, dm, ae.mJ(10), ae.mJ(22)) : 5 === id ? this.mK(id, dm, ae.mJ(10)) : 6 === id ? this.mK(id, dm, ae.mJ(7)) : 7 === id ? this.mK(id, dm, ae.mJ(1)) : this.mK(id, dm) + }, this.mL = [], this.mM = function() { + for (var mO = 0, mP = 0, mQ = 0, mR = 0, mS = 0, mT = 0, eD = 0; eD < 512; eD++) mO += h1[eD], mP += ez[eD], mQ += eV[eD], mR += ak.iv.mU[eD]; + mS += ak.iv.mV, mT += iM, this.mL.push(((255 & mO + mP + mQ + mR + mS + mT) << 12) + ((3 & mO) << 10) + ((3 & mP) << 8) + ((3 & mQ) << 6) + ((3 & mR) << 4) + ((3 & mS) << 2) + (3 & mT)) + }, this.mK = function(id, dm, dp, dr) { + 0 === id ? aW.lT.fc(dm, dp) : 1 === id ? aW.lT.fm(dm, dp, dr) : 2 === id ? aW.lT.le(dm, dp, dr) : 3 === id ? aW.lT.fj(dm, dp, dr) : 4 === id ? aW.lT.fe(dm, dp, dr) : 5 === id ? aW.lT.lk(dm, dp) : 6 === id ? aW.lT.lo(dm, dp) : 7 === id ? + aW.lT.lq(dm, dp) : 8 === id ? aW.lT.lt(dm) : aW.lT.mW(dm) } } -function lR() { - this.m0 = function(lm, player) { - k.ll(eU, player, lm), aN.lX.m1(lm, player) - }, this.m2 = function(player) { - k.m3(player, 0), aN.lX.m4(player) - }, this.m5 = function(m6, player) { - k.m7(m6, player), aN.lX.m8(m6, player) - }, this.m9 = function(mA) { - il || fL || aN.lX.mB(mC(), mA) - }, this.mD = function() { - il || fL || aN.lX.mE(mC(), jE[0], jE[1], jE[2]) - }, this.mF = function() { - il || fL || aN.lX.mG(mC()) - } -} - -function lV() { - this.i5 = function(mH) { - var id, dm, kK; - for (ae.cq(mH), ae.fx += 2, kK = 8 * ae.size; ae.fx + 8 <= kK;) id = ae.mI(4), dm = ae.mI(9), 0 === id ? this.mJ(id, dm, ae.mI(22)) : 1 === id ? this.mJ(id, dm, ae.mI(10), ae.mI(10)) : 2 === id ? this.mJ(id, dm, ae.mI(10), ae.mI(9)) : - 3 === id || 4 === id ? this.mJ(id, dm, ae.mI(10), ae.mI(22)) : 5 === id ? this.mJ(id, dm, ae.mI(10)) : 6 === id ? this.mJ(id, dm, ae.mI(7)) : 7 === id ? this.mJ(id, dm, ae.mI(1)) : this.mJ(id, dm); - this.mK() - }, this.mL = [], this.mK = function() { - for (var mN = 0, mO = 0, mP = 0, mQ = 0, mR = 0, mS = 0, eD = 0; eD < 512; eD++) mN += h1[eD], mO += ez[eD], mP += eV[eD], mQ += ak.iv.mT[eD]; - mR += ak.iv.mU, mS += iM, this.mL.push(((255 & mN + mO + mP + mQ + mR + mS) << 12) + ((3 & mN) << 10) + ((3 & mO) << 8) + ((3 & mP) << 6) + ((3 & mQ) << 4) + ((3 & mR) << 2) + (3 & mS)) - }, this.mJ = function(id, dm, dp, dr) { - 0 === id ? aW.lS.fc(dm, dp) : 1 === id ? aW.lS.fm(dm, dp, dr) : 2 === id ? aW.lS.ld(dm, dp, dr) : 3 === id ? aW.lS.fj(dm, dp, dr) : 4 === id ? aW.lS.fe(dm, dp, dr) : 5 === id ? aW.lS.lj(dm, dp) : 6 === id ? aW.lS.ln(dm, dp) : 7 === id ? - aW.lS.lp(dm, dp) : 8 === id ? aW.lS.ls(dm) : aW.lS.mV(dm) - } -} - -function lT() { +function lU() { this.fc = function(player, fV) { - aY.fN.fO(0) && aY.fN.fP(player) && aj.h8(fV) && (aX.mW.mX(0, player, fV), mY.hO(player, fV)) + aY.fN.fO(0) && aY.fN.fP(player) && aj.h8(fV) && (aX.mX.mY(0, player, fV), mZ.hO(player, fV)) }, this.fm = function(player, h4, hR) { - aY.fN.fO(1) && aY.fN.fP(player) && aY.fN.mZ(player, hR) && aY.fN.ma(player, h4, 12, eS) && aY.fN.mb(player, hR) && (a4.i3(player) || a4.hj(player, al.dj[0])) && hH(player) && (aX.mW.mX(1, player, h4, al.dj[0]), aY.fN.mc(player), b1.md( + aY.fN.fO(1) && aY.fN.fP(player) && aY.fN.ma(player, hR) && aY.fN.mb(player, h4, 12, eS) && aY.fN.mc(player, hR) && (a4.i3(player) || a4.hj(player, al.dj[0])) && hH(player) && (aX.mX.mY(1, player, h4, al.dj[0]), aY.fN.md(player), b1.me( player, h4), hK(player)) - }, this.ld = function(player, h4, lc) { - aY.fN.fO(1) && aY.fN.fP(player) && hL && aY.fN.mZ(player, lc) && aY.fN.me(player, lc) && aY.fN.lu(player, aY.fN.h3(player, h4), lc) && (aX.mW.mX(2, player, h4, lc), a5.lb(player, lc)) + }, this.le = function(player, h4, ld) { + aY.fN.fO(1) && aY.fN.fP(player) && hL && aY.fN.ma(player, ld) && aY.fN.mf(player, ld) && aY.fN.lv(player, aY.fN.h3(player, h4), ld) && (aX.mX.mY(2, player, h4, ld), a5.lc(player, ld)) }, this.fj = function(player, h4, fV) { - aY.fN.fO(1) && aY.fN.fP(player) && aj.h8(fV) && ak.iv.mU !== ak.iv.mf && ak.iv.mT[player] !== ak.iv.mg && 0 !== es[player].length && aY.fN.ma(player, h4, 32, 16) && ak.mh.mi(player, fV) && (aX.mW.mX(3, player, h4, fV), aY.fN.mc(player), - ak.iv.mj(player)) - }, this.fe = function(player, lg, fV) { - aY.fN.fO(1) && aY.fN.fP(player) && aj.h8(fV) && ak.fd.mk(player, lg) && ak.mh.ml(fV) && (aX.mW.mX(4, player, lg, fV), aY.fN.mm(player, 8), ak.iv.fe()) - }, this.lj = function(player, hR) { - aY.fN.fO(1) && aY.fN.fP(player) && (hR = Math.min(hR, ed), a4.hj(player, hR)) && (aX.mW.mX(5, player, hR), a4.mn(player, hR)) - }, this.ln = function(player, lm) { - (aY.fN.fO(1) || aY.fN.fO(2)) && aY.fN.fP(player) && (lm = Math.min(lm, az.mo - 1), aX.mW.mX(6, player, lm), a6.mp(player, 0, lm)) - }, this.lp = function(player, lq) { - aY.fN.fO(1) && aY.fN.fP(player) && (aX.mW.mX(7, player, lq), aI.mq(player, lq)) - }, this.ls = function(player) { - (aY.fN.fO(0) || aY.fN.fO(1)) && aY.fN.fP(player) && an.ls(player) && aX.mW.mX(8, player) - }, this.mV = function(player) { - an.mV(player), aX.mW.mX(9, player) + aY.fN.fO(1) && aY.fN.fP(player) && aj.h8(fV) && ak.iv.mV !== ak.iv.mg && ak.iv.mU[player] !== ak.iv.mh && 0 !== es[player].length && aY.fN.mb(player, h4, 32, 16) && ak.mi.mj(player, fV) && (aX.mX.mY(3, player, h4, fV), aY.fN.md(player), + ak.iv.mk(player)) + }, this.fe = function(player, lh, fV) { + aY.fN.fO(1) && aY.fN.fP(player) && aj.h8(fV) && ak.fd.ml(player, lh) && ak.mi.mm(fV) && (aX.mX.mY(4, player, lh, fV), aY.fN.mn(player, 8), ak.iv.fe()) + }, this.lk = function(player, hR) { + aY.fN.fO(1) && aY.fN.fP(player) && (hR = Math.min(hR, ed), a4.hj(player, hR)) && (aX.mX.mY(5, player, hR), a4.mo(player, hR)) + }, this.lo = function(player, ln) { + (aY.fN.fO(1) || aY.fN.fO(2)) && aY.fN.fP(player) && (ln = Math.min(ln, az.mp - 1), aX.mX.mY(6, player, ln), a6.mq(player, 0, ln)) + }, this.lq = function(player, lr) { + aY.fN.fO(1) && aY.fN.fP(player) && (aX.mX.mY(7, player, lr), aI.mr(player, lr)) + }, this.lt = function(player) { + (aY.fN.fO(0) || aY.fN.fO(1)) && aY.fN.fP(player) && an.lt(player) && aX.mX.mY(8, player) + }, this.mW = function(player) { + an.mW(player), aX.mX.mY(9, player) } } -function mr() { - var mt; - this.ms = [], this.mt = document.createElement("div"), this.mu = function(fw) { +function ms() { + var mu; + this.mt = [], this.mu = document.createElement("div"), this.mv = function(fw) { var title = document.createElement("h2"); - title.textContent = fw, title.style.margin = "0", title.style.marginBottom = "0.6em", title.style.fontSize = "1.4em", title.style.overflowWrap = "break-word", this.mt.appendChild(title) - }, this.mv = function(fw) { - var mw = document.createElement("p"); - mw.textContent = fw, mw.style.fontSize = "0.75em", mw.style.lineHeight = "1.2em", mw.style.marginBottom = "0", this.mt.appendChild(mw) - }, this.mx = function(my, fontSize = "1em") { - var mt = document.createElement("div"); - mt.innerHTML = my, mt.style.fontSize = fontSize, mt.style.lineHeight = "1.2em", this.mt.appendChild(mt) - }, this.mz = function(n0) { - for (var n1 = n0.n1, eZ = n1.length, eD = 0; eD < eZ; eD++) this.mt.appendChild(n1[eD]) - }, this.n2 = function(n3) { - this.ms.push(n3), this.mt.appendChild(n3.dE) + title.textContent = fw, title.style.margin = "0", title.style.marginBottom = "0.6em", title.style.fontSize = "1.4em", title.style.overflowWrap = "break-word", this.mu.appendChild(title) + }, this.mw = function(fw) { + var mx = document.createElement("p"); + mx.textContent = fw, mx.style.fontSize = "0.75em", mx.style.lineHeight = "1.2em", mx.style.marginBottom = "0", this.mu.appendChild(mx) + }, this.my = function(mz, fontSize = "1em") { + var mu = document.createElement("div"); + mu.innerHTML = mz, mu.style.fontSize = fontSize, mu.style.lineHeight = "1.2em", this.mu.appendChild(mu) + }, this.n0 = function(n1) { + for (var n2 = n1.n2, eZ = n2.length, eD = 0; eD < eZ; eD++) this.mu.appendChild(n2[eD]) + }, this.n3 = function(n4) { + this.mt.push(n4), this.mu.appendChild(n4.dE) }, this.resize = function() { - for (var eZ = this.ms.length, eD = 0; eD < eZ; eD++) this.ms[eD].resize && this.ms[eD].resize() - }, (mt = this.mt).style.position = "absolute", mt.style.height = "auto", mt.style.padding = "0.5em" + for (var eZ = this.mt.length, eD = 0; eD < eZ; eD++) this.mt[eD].resize && this.mt[eD].resize() + }, (mu = this.mu).style.position = "absolute", mu.style.height = "auto", mu.style.padding = "0.5em" } -function n4(n5, n6) { - var eD, mt = document.createElement("div"); +function n5(n6, n7) { + var eD, mu = document.createElement("div"); - function nC() { - var eD, nD, g9, eh, ei, n9 = aK.nE * mt.offsetWidth, - nF = new Float64Array(function(n9) { - var g3 = .25 * aY.fy.nA(.6) * aK.fu; - return Math.max(Math.floor(n9 / g3), 1) - }(n9)), - nG = b0.nG, - nH = (n9 - (nF.length + 1) * b0.gap) / (nF.length * aK.nE); - for (nF.fill(nG), eD = 0; eD < n6.length; eD++) nD = (ei = n6[eD].mt).style, g9 = Math.min(...nF), eh = nF.indexOf(g9), nD.top = aY.fy.nI(g9), nD.left = aY.fy.nI(nG + eh * (nH + nG)), nD.width = aY.fy.nI(nH), aY.fy.nJ(ei, 5), nF[eh] += ei - .offsetHeight + 3 * nG; - mt.style.height = aY.fy.nI(Math.max(...nF) - 2 * nG) + function nD() { + var eD, nE, g9, eh, ei, nA = aK.nF * mu.offsetWidth, + nG = new Float64Array(function(nA) { + var g3 = .25 * aY.fy.nB(.6) * aK.fu; + return Math.max(Math.floor(nA / g3), 1) + }(nA)), + nH = b0.nH, + nI = (nA - (nG.length + 1) * b0.gap) / (nG.length * aK.nF); + for (nG.fill(nH), eD = 0; eD < n7.length; eD++) nE = (ei = n7[eD].mu).style, g9 = Math.min(...nG), eh = nG.indexOf(g9), nE.top = aY.fy.nJ(g9), nE.left = aY.fy.nJ(nH + eh * (nI + nH)), nE.width = aY.fy.nJ(nI), aY.fy.nK(ei, 5), nG[eh] += ei + .offsetHeight + 3 * nH; + mu.style.height = aY.fy.nJ(Math.max(...nG) - 2 * nH) } - for (this.n7 = n6, this.resize = function() { + for (this.n8 = n7, this.resize = function() { var eD; - for (eD = 0; eD < n6.length; eD++) n6[eD].resize(); - nC(), nC() - }, mt.style.width = "100%", mt.style.maxWidth = "100%", n5.style.lineHeight = "1.5em", n5.style.overflowX = "hidden", n5.style.overflowY = "auto", eD = 0; eD < n6.length; eD++) mt.appendChild(n6[eD].mt); - n5.appendChild(mt) + for (eD = 0; eD < n7.length; eD++) n7[eD].resize(); + nD(), nD() + }, mu.style.width = "100%", mu.style.maxWidth = "100%", n6.style.lineHeight = "1.5em", n6.style.overflowX = "hidden", n6.style.overflowY = "auto", eD = 0; eD < n7.length; eD++) mu.appendChild(n7[eD].mu); + n6.appendChild(mu) } -function nK(title, nL, backgroundColor = aZ.kX) { - var nM = document.createElement("button"); +function nL(title, nM, backgroundColor = aZ.kY) { + var nN = document.createElement("button"); - function lN() { - this.style.backgroundColor = aZ.lN(backgroundColor, 50) + function lO() { + this.style.backgroundColor = aZ.lO(backgroundColor, 50) } - function nP() { + function nQ() { this.style.backgroundColor = backgroundColor } - function nO() { + function nP() { this.style.backgroundColor = backgroundColor, this.blur() } - this.button = nM, this.nN = nL, nM.innerText = title, nM.style.color = aZ.gE, nM.style.userSelect = "none", nM.style.outline = "none", nM.style.overflowWrap = "break-word", nM.style.backgroundColor = backgroundColor, nM.style.border = "none", nM - .style.font = "inherit", nM.style.fontSize = "1em", nM.style.padding = "0em 0.3em", nM.onclick = nL, nM.addEventListener("mouseover", lN), nM.addEventListener("mouseout", nO), nM.addEventListener("focus", lN), nM.addEventListener("blur", nP) + this.button = nN, this.nO = nM, nN.innerText = title, nN.style.color = aZ.gE, nN.style.userSelect = "none", nN.style.outline = "none", nN.style.overflowWrap = "break-word", nN.style.backgroundColor = backgroundColor, nN.style.border = "none", nN + .style.font = "inherit", nN.style.fontSize = "1em", nN.style.padding = "0em 0.3em", nN.onclick = nM, nN.addEventListener("mouseover", lO), nN.addEventListener("mouseout", nP), nN.addEventListener("focus", lO), nN.addEventListener("blur", nQ) } -function nQ(nR, n5) { - var mt, eD; +function nR(nS, n6) { + var mu, eD; for (this.resize = function() { - for (var eD = 0; eD < nR.length; eD++) aY.fy.nJ(nR[eD].button); - mt.style.gap = mt.style.padding = aY.fy.nI(b0.nG) - }, (mt = document.createElement("div")).style.display = "grid", mt.style.gridTemplateColumns = "repeat(auto-fill, minmax(9.5em, 1fr))", mt.style.overflowY = "auto", mt.style.gridAutoRows = "5.3em", mt.style.maxHeight = "100%", eD = 0; eD < nR - .length; eD++) nR[eD].button.style.fontSize = "1.2em", mt.appendChild(nR[eD].button); - n5.appendChild(mt) + for (var eD = 0; eD < nS.length; eD++) aY.fy.nK(nS[eD].button); + mu.style.gap = mu.style.padding = aY.fy.nJ(b0.nH) + }, (mu = document.createElement("div")).style.display = "grid", mu.style.gridTemplateColumns = "repeat(auto-fill, minmax(9.5em, 1fr))", mu.style.overflowY = "auto", mu.style.gridAutoRows = "5.3em", mu.style.maxHeight = "100%", eD = 0; eD < nS + .length; eD++) nS[eD].button.style.fontSize = "1.2em", mu.appendChild(nS[eD].button); + n6.appendChild(mu) } -function nT(nU, nV) { +function nU(nV, nW) { this.fI = 0, this.fJ = 0, this.g3 = 0, this.g9 = 0, this.resize = function() { - this.g9 = Math.min(aY.fy.nA(.5) * nU[1] * aK.fu, aK.g9 - 2 * b0.gap), this.g3 = Math.min(this.g9 * (nU[0] / nU[1]), aK.g3 - 2 * b0.gap), this.g9 = nU[1] * this.g3 / nU[0], this.fI = b0.gap + nV[0] * (aK.g3 - this.g3 - 2 * b0.gap), this - .fJ = b0.gap + nV[1] * (aK.g9 - this.g9 - 2 * b0.gap) - }, this.nW = function() { + this.g9 = Math.min(aY.fy.nB(.5) * nV[1] * aK.fu, aK.g9 - 2 * b0.gap), this.g3 = Math.min(this.g9 * (nV[0] / nV[1]), aK.g3 - 2 * b0.gap), this.g9 = nV[1] * this.g3 / nV[0], this.fI = b0.gap + nW[0] * (aK.g3 - this.g3 - 2 * b0.gap), this + .fJ = b0.gap + nW[1] * (aK.g9 - this.g9 - 2 * b0.gap) + }, this.nX = function() { return this.fI + .5 * this.g3 } } -function nX(nY) { +function nY(nZ) { function click() { - var value = 1 - nY.value; - this.textContent = (value ? "🟢 " : "⚪ ") + aV.nZ[121], b9.na.nb(nY.fx, value) + var value = 1 - nZ.value; + this.textContent = (value ? "🟢 " : "⚪ ") + aV.na[121], b9.nb.nc(nZ.fx, value) } var dE; - this.dE = document.createElement("p"), (dE = this.dE).textContent = (nY.value ? "🟢 " : "⚪ ") + aV.nZ[121], dE.style.margin = "0", dE.style.cursor = "pointer", dE.addEventListener("click", click) + this.dE = document.createElement("p"), (dE = this.dE).textContent = (nZ.value ? "🟢 " : "⚪ ") + aV.na[121], dE.style.margin = "0", dE.style.cursor = "pointer", dE.addEventListener("click", click) } -function nc(n5, my) { - var mt = document.createElement("div"); - this.nd = mt, this.resize = function() { - mt.style.padding = aY.fy.nI(b0.nG), mt.style.lineHeight = aY.fy.nI(aY.fy.ne(.035)) - }, n5.style.overflowX = "hidden", n5.style.overflowY = "auto", mt.innerHTML = my, n5.appendChild(mt) +function nd(n6, mz) { + var mu = document.createElement("div"); + this.ne = mu, this.resize = function() { + mu.style.padding = aY.fy.nJ(b0.nH), mu.style.lineHeight = aY.fy.nJ(aY.fy.nf(.035)) + }, n6.style.overflowX = "hidden", n6.style.overflowY = "auto", mu.innerHTML = mz, n6.appendChild(mu) } -function nf(ng) { - var mt = document.createElement("div"); - this.dE = mt, this.resize = function() { - for (var eZ = ng.length, eD = 1; eD < eZ; eD++) aY.fy.nJ(ng[eD], 4) +function ng(nh) { + var mu = document.createElement("div"); + this.dE = mu, this.resize = function() { + for (var eZ = nh.length, eD = 1; eD < eZ; eD++) aY.fy.nK(nh[eD], 4) }; - var eD, eZ = ng.length; - for (mt.style.width = "100%", mt.style.height = "2.7em", mt.style.marginTop = "0.6em", mt.style.border = "inherit", eD = 0; eD < eZ; eD++) ng[eD].style.verticalAlign = "top", ng[eD].style.width = (100 / eZ).toFixed(2) + "%", ng[eD].style.height = - "100%", ng[eD].style.fontSize = "0.75em", mt.appendChild(ng[eD]) + var eD, eZ = nh.length; + for (mu.style.width = "100%", mu.style.height = "2.7em", mu.style.marginTop = "0.6em", mu.style.border = "inherit", eD = 0; eD < eZ; eD++) nh[eD].style.verticalAlign = "top", nh[eD].style.width = (100 / eZ).toFixed(2) + "%", nh[eD].style.height = + "100%", nh[eD].style.fontSize = "0.75em", mu.appendChild(nh[eD]) } -function nh(nY) { +function ni(nZ) { var dE; - this.dE = document.createElement("input"), (dE = this.dE).type = "text", dE.id = "input" + nY.title, dE.value = nY.value, dE.style.width = "100%", dE.style.userSelect = "none", dE.style.outline = "none", dE.style.resize = "none", dE.style - .border = "inherit", dE.style.font = "inherit", dE.style.color = aZ.gE, dE.style.backgroundColor = aZ.kU, dE.style.fontSize = "1em", dE.style.padding = "0.1em 0.2em", -1 !== nY.fx && (dE.addEventListener("blur", function() { - b9.na.nb(nY.fx, dE.value.trim()) + this.dE = document.createElement("input"), (dE = this.dE).type = "text", dE.id = "input" + nZ.title, dE.value = nZ.value, dE.style.width = "100%", dE.style.userSelect = "none", dE.style.outline = "none", dE.style.resize = "none", dE.style + .border = "inherit", dE.style.font = "inherit", dE.style.color = aZ.gE, dE.style.backgroundColor = aZ.kV, dE.style.fontSize = "1em", dE.style.padding = "0.1em 0.2em", -1 !== nZ.fx && (dE.addEventListener("blur", function() { + b9.nb.nc(nZ.fx, dE.value.trim()) }), dE.addEventListener("keypress", function(event) { - "Enter" === event.key && (event.preventDefault(), b9.na.nb(nY.fx, dE.value.trim())) + "Enter" === event.key && (event.preventDefault(), b9.nb.nc(nZ.fx, dE.value.trim())) })) } -function ni(n5, nj, h4) { - var nk, eD, nl = new Array(nj.length), - n6 = new Array(nj.length); +function nj(n6, nk, h4) { + var nl, eD, nm = new Array(nk.length), + n7 = new Array(nk.length); for (this.resize = function() { - for (var eZ = nj.length, eD = 0; eD < eZ; eD++) 0 < eD && aY.fy.nJ(nl[eD], 8) - }, nk = document.createElement("div"), n5.style.overflowX = "hidden", n5.style.overflowY = "auto", ! function() { - var eD, ei, eZ = nj.length; + for (var eZ = nk.length, eD = 0; eD < eZ; eD++) 0 < eD && aY.fy.nK(nm[eD], 8) + }, nl = document.createElement("div"), n6.style.overflowX = "hidden", n6.style.overflowY = "auto", ! function() { + var eD, ei, eZ = nk.length; for (eD = 0; eD < eZ; eD++) { - nl[eD] = document.createElement("div"), nl[eD].style.display = "flex", nl[eD].style.width = "100%", nl[eD].style.height = "2.5em", nl[eD].style.backgroundColor = eD % 2 == 0 ? aZ.kj : aZ.ka, n6[eD] = new Array(nj[0].length); - for (let hY = 0; hY < nj[0].length; hY++) n6[eD][hY] = ei = document.createElement("div"), ei.style.display = "flex", ei.style.width = "100%", ei.style.height = "100%", ei.style.justifyContent = "center", ei.style.alignItems = - "center", ei.innerHTML = nj[eD][hY], 0 < hY && aY.fy.nJ(ei, 4), nl[eD].appendChild(ei) + nm[eD] = document.createElement("div"), nm[eD].style.display = "flex", nm[eD].style.width = "100%", nm[eD].style.height = "2.5em", nm[eD].style.backgroundColor = eD % 2 == 0 ? aZ.kk : aZ.kb, n7[eD] = new Array(nk[0].length); + for (let hY = 0; hY < nk[0].length; hY++) n7[eD][hY] = ei = document.createElement("div"), ei.style.display = "flex", ei.style.width = "100%", ei.style.height = "100%", ei.style.justifyContent = "center", ei.style.alignItems = + "center", ei.innerHTML = nk[eD][hY], 0 < hY && aY.fy.nK(ei, 4), nm[eD].appendChild(ei) } - }(), eD = 0; eD < nj.length; eD++) nk.appendChild(nl[eD]); - n5.appendChild(nk) + }(), eD = 0; eD < nk.length; eD++) nl.appendChild(nm[eD]); + n6.appendChild(nl) } -function nn(nY) { - this.n1 = []; - var no = this.n1; +function no(nZ) { + this.n2 = []; + var np = this.n2; function click() { - for (var eD = 0; eD < no.length; eD++) no[eD].textContent = no[eD].textContent.replace("🟢", "⚪"); - this.textContent = this.textContent.replace("⚪", "🟢"), b9.na.nb(nY.fx, parseInt(this.name)) + for (var eD = 0; eD < np.length; eD++) np[eD].textContent = np[eD].textContent.replace("🟢", "⚪"); + this.textContent = this.textContent.replace("⚪", "🟢"), b9.nb.nc(nZ.fx, parseInt(this.name)) } - for (var np, eZ = nY.nq.length, eD = 0; eD < eZ; eD++)(np = document.createElement("p")).textContent = "⚪ " + nY.nq[eD], np.style.margin = "0", np.name = "" + eD, np.style.cursor = "pointer", np.style.fontSize = "1em", np.addEventListener( - "click", click), no.push(np); - no[nY.value].textContent = no[nY.value].textContent.replace("⚪", "🟢") + for (var nq, eZ = nZ.nr.length, eD = 0; eD < eZ; eD++)(nq = document.createElement("p")).textContent = "⚪ " + nZ.nr[eD], nq.style.margin = "0", nq.name = "" + eD, nq.style.cursor = "pointer", nq.style.fontSize = "1em", nq.addEventListener( + "click", click), np.push(nq); + np[nZ.value].textContent = np[nZ.value].textContent.replace("⚪", "🟢") } -function nr(title, ns) { - var eD, nk = document.createElement("div"), - nt = document.createElement("div"), +function ns(title, nt) { + var eD, nl = document.createElement("div"), nu = document.createElement("div"), - nv = document.createElement("div"); - for (this.nw = nu, this.show = function() { - document.body.appendChild(nk) - }, this.o0 = function() { - document.body.removeChild(nk) + nv = document.createElement("div"), + nw = document.createElement("div"); + for (this.nx = nv, this.show = function() { + document.body.appendChild(nl) + }, this.o1 = function() { + document.body.removeChild(nl) }, this.resize = function() { - var eD, dE, eZ = ns.length, - o1 = aY.fy.ne(.1), - o2 = aY.fy.ne(.08 + .04 * (aK.o3 < 1)); - for (nt.style.height = aY.fy.nI(o1), aY.fy.nJ(nt, 2), nv.style.top = aY.fy.nI(aK.g9 / aK.nE - o2), nv.style.height = aY.fy.nI(o2), aY.fy.nJ(nv, 8), nu.style.top = aY.fy.nI(o1), nu.style.height = nu.style.maxHeight = aY.fy.nI(aK.g9 / aK - .nE - o1 - o2), nv.style.font = nt.style.font = nu.style.font = aY.fy.fz(0, aY.fy.ne(.02)), eD = 0; eD < eZ; eD++)(dE = ns[eD].button).style.top = "0", dE.style.left = (100 * eD / eZ).toFixed(2) + "%", dE.style.width = (100 / eZ) - .toFixed(2) + "%", dE.style.height = "100%", 0 < eD && aY.fy.nJ(dE, 4) - }, nk.style.position = "absolute", nk.style.top = "0", nk.style.left = "0", nk.style.width = "100%", nk.style.height = "100%", nt.style.position = "absolute", nt.style.top = "0", nt.style.left = "0", nt.style.width = "100%", nt.style - .display = "flex", nt.style.backgroundColor = aZ.kX, nv.style.position = "absolute", nv.style.left = "0", nv.style.width = "100%", nu.style.position = "absolute", nu.style.width = "100%", nu.style.backgroundColor = aZ.kX, ! function() { + var eD, dE, eZ = nt.length, + o2 = aY.fy.nf(.1), + o3 = aY.fy.nf(.08 + .04 * (aK.o4 < 1)); + for (nu.style.height = aY.fy.nJ(o2), aY.fy.nK(nu, 2), nw.style.top = aY.fy.nJ(aK.g9 / aK.nF - o3), nw.style.height = aY.fy.nJ(o3), aY.fy.nK(nw, 8), nv.style.top = aY.fy.nJ(o2), nv.style.height = nv.style.maxHeight = aY.fy.nJ(aK.g9 / aK + .nF - o2 - o3), nw.style.font = nu.style.font = nv.style.font = aY.fy.fz(0, aY.fy.nf(.02)), eD = 0; eD < eZ; eD++)(dE = nt[eD].button).style.top = "0", dE.style.left = (100 * eD / eZ).toFixed(2) + "%", dE.style.width = (100 / eZ) + .toFixed(2) + "%", dE.style.height = "100%", 0 < eD && aY.fy.nK(dE, 4) + }, nl.style.position = "absolute", nl.style.top = "0", nl.style.left = "0", nl.style.width = "100%", nl.style.height = "100%", nu.style.position = "absolute", nu.style.top = "0", nu.style.left = "0", nu.style.width = "100%", nu.style + .display = "flex", nu.style.backgroundColor = aZ.kY, nw.style.position = "absolute", nw.style.left = "0", nw.style.width = "100%", nv.style.position = "absolute", nv.style.width = "100%", nv.style.backgroundColor = aZ.kY, ! function() { var eD; - for (eD = 0; eD < ns.length; eD++) ns[eD].button.style.position = "absolute", ns[eD].button.style.fontSize = "1.2em" - }(), eD = 0; eD < ns.length; eD++) nv.appendChild(ns[eD].button); - nt.appendChild(function() { - var nz = document.createElement("h1"); - return nz.textContent = title, nz.style.margin = "auto", nz.style.fontSize = "2.3em", nz - }()), nk.appendChild(nu), nk.appendChild(nt), nk.appendChild(nv) + for (eD = 0; eD < nt.length; eD++) nt[eD].button.style.position = "absolute", nt[eD].button.style.fontSize = "1.2em" + }(), eD = 0; eD < nt.length; eD++) nw.appendChild(nt[eD].button); + nu.appendChild(function() { + var o0 = document.createElement("h1"); + return o0.textContent = title, o0.style.margin = "auto", o0.style.fontSize = "2.3em", o0 + }()), nl.appendChild(nv), nl.appendChild(nu), nl.appendChild(nw) } -function o4() { - var o5 = document.createElement("textarea"), - o7 = (this.o6 = o5, !0); +function o5() { + var o6 = document.createElement("textarea"), + o8 = (this.o7 = o6, !0); - function oD() { - o5.select(), document.execCommand("copy") + function oE() { + o6.select(), document.execCommand("copy") } this.resize = function() { - o5.style.padding = aY.fy.nI(b0.nG) - }, this.o8 = function(o9) { - o5.value = o9 - }, this.oA = function() { - return o5.value + o6.style.padding = aY.fy.nJ(b0.nH) + }, this.o9 = function(oA) { + o6.value = oA }, this.oB = function() { - o5.select() - }, this.clear = function() { - o5.value = "" + return o6.value }, this.oC = function() { - o7 && navigator.clipboard ? (o5.select(), navigator.clipboard.writeText(o5.value).catch(function() { - o7 = !1, oD() - })) : oD() - }, o5.setAttribute("name", "replayData"), o5.setAttribute("id", "replayDataField"), o5.setAttribute("autocomplete", "off"), o5.setAttribute("placeholder", "Insert the replay link here!"), o5.style.top = "0", o5.style.left = "0", o5.style - .width = "100%", o5.style.height = "100%", o5.style.userSelect = "none", o5.style.outline = "none", o5.style.resize = "none", o5.style.border = "none", o5.style.color = aZ.gE, o5.style.backgroundColor = aZ.kU, o5.style.fontSize = "1.2em" + o6.select() + }, this.clear = function() { + o6.value = "" + }, this.oD = function() { + o8 && navigator.clipboard ? (o6.select(), navigator.clipboard.writeText(o6.value).catch(function() { + o8 = !1, oE() + })) : oE() + }, o6.setAttribute("name", "replayData"), o6.setAttribute("id", "replayDataField"), o6.setAttribute("autocomplete", "off"), o6.setAttribute("placeholder", "Insert the replay link here!"), o6.style.top = "0", o6.style.left = "0", o6.style + .width = "100%", o6.style.height = "100%", o6.style.userSelect = "none", o6.style.outline = "none", o6.style.resize = "none", o6.style.border = "none", o6.style.color = aZ.gE, o6.style.backgroundColor = aZ.kV, o6.style.fontSize = "1.2em" } function cb() { - this.nN = new oE, this.dG = new oF, this.na = new oG, this.iv = new oH, this.cq = function() { - this.dG.cq(), (new oI).cq() + this.nO = new oF, this.dG = new oG, this.nb = new oH, this.iv = new oI, this.cq = function() { + this.dG.cq(), (new oJ).cq() } } -function oF() { - function oJ(eD, title, type, nq = null, oP = 0, dc = 0) { +function oG() { + function oK(eD, title, type, nr = null, oQ = 0, dc = 0) { b9.dG.data.push({ fx: eD, title: title, type: type, - nq: nq, - value: oP, - oP: oP, + nr: nr, + value: oQ, + oQ: oQ, dc: dc }) } - function oK(eD, title, type, nq = null, oP = "", dc = 0) { + function oL(eD, title, type, nr = null, oQ = "", dc = 0) { b9.dG.data.push({ fx: eD, title: title, type: type, - nq: nq, - value: oP, - oP: oP, + nr: nr, + value: oQ, + oQ: oQ, dc: dc }) } - function oL(kK) { - for (var eD = b9.dG.data.length; eD < kK; eD++) b9.dG.data.push(null) + function oM(kL) { + for (var eD = b9.dG.data.length; eD < kL; eD++) b9.dG.data.push(null) } this.data = [], this.cq = function() { - oJ(0, "", 1, ["English", "Русский", "Türkçe", "Española", "Deutsch"], 0, 4), oJ(1, "", 1, null, 1), oJ(2, "", 0, [0, 1]), oK(3, "Username", 2), oJ(4, "Font5", 1, ["Default", "Custom"]), oK(5, "", 2, null, "Trebuchet MS", 1), oJ(6, "", 0, - [0, 1]), oJ(7, "", 0, [0, 1], 1), oJ(8, "", 0, [0, 1]), oJ(9, "", 1, null, 1), oJ(10, "", 1, null), oJ(11, "", 1, null, 1), oL(100), oK(100, "Username", 2), oK(101, "Password", 2), oK(102, "Emojis", 2), oK(103, "Colors", 2), oK( - 104, "Clan", 2), oK(105, "AccountName", 2), oK(106, "Password", 2), oJ(107, null, 0), oJ(108, null, 0), oJ(109, null, 0), oK(110, null, 2), oJ(111, null, 0), oJ(112, null, 0), oJ(113, null, 0), oK(114, null, 2), oJ(115, null, 0), - oK(116, null, 2), oJ(117, null, 1), oL(180), oJ(180, "R0", 0), oJ(181, "R1", 0) + oK(0, "", 1, ["English", "Русский", "Türkçe", "Española", "Deutsch"], 0, 4), oK(1, "", 1, null, 1), oK(2, "", 0, [0, 1]), oL(3, "Username", 2), oK(4, "Font5", 1, ["Default", "Custom"]), oL(5, "", 2, null, "Trebuchet MS", 1), oK(6, "", 0, + [0, 1]), oK(7, "", 0, [0, 1], 1), oK(8, "", 0, [0, 1]), oK(9, "", 1, null, 1), oK(10, "", 1, null), oK(11, "", 1, null, 1), oM(100), oL(100, "Username", 2), oL(101, "Password", 2), oL(102, "Emojis", 2), oL(103, "Colors", 2), oL( + 104, "Clan", 2), oL(105, "AccountName", 2), oL(106, "Password", 2), oK(107, null, 0), oK(108, null, 0), oK(109, null, 0), oL(110, null, 2), oK(111, null, 0), oK(112, null, 0), oK(113, null, 0), oL(114, null, 2), oK(115, null, 0), + oL(116, null, 2), oK(117, null, 1), oM(180), oK(180, "R0", 0), oK(181, "R1", 0) }, this.translate = function() { - this.data[0].title = "🌐 " + aV.nZ[101], this.data[1].title = aV.nZ[102], this.data[2].title = aV.nZ[103], this.data[5].title = aV.nZ[104], this.data[6].title = aV.nZ[105], this.data[7].title = aV.nZ[106], this.data[8].title = aV.nZ[107], - this.data[9].title = aV.nZ[108], this.data[10].title = aV.nZ[109], this.data[11].title = aV.nZ[110], this.data[1].nq = [aV.nZ[111], aV.nZ[112], aV.nZ[113], aV.nZ[114]], this.data[9].nq = [aV.nZ[112], aV.nZ[115], aV.nZ[116]], this - .data[10].nq = [aV.nZ[109] + " 1", aV.nZ[117] + " 1", aV.nZ[109] + " 2", aV.nZ[117] + " 2"], this.data[11].nq = [aV.nZ[118], aV.nZ[119], aV.nZ[120]] - }, this.nb = function(fx, value) { + this.data[0].title = "🌐 " + aV.na[101], this.data[1].title = aV.na[102], this.data[2].title = aV.na[103], this.data[5].title = aV.na[104], this.data[6].title = aV.na[105], this.data[7].title = aV.na[106], this.data[8].title = aV.na[107], + this.data[9].title = aV.na[108], this.data[10].title = aV.na[109], this.data[11].title = aV.na[110], this.data[1].nr = [aV.na[111], aV.na[112], aV.na[113], aV.na[114]], this.data[9].nr = [aV.na[112], aV.na[115], aV.na[116]], this + .data[10].nr = [aV.na[109] + " 1", aV.na[117] + " 1", aV.na[109] + " 2", aV.na[117] + " 2"], this.data[11].nr = [aV.na[118], aV.na[119], aV.na[120]] + }, this.nc = function(fx, value) { this.data[fx].value = value }, this.dH = function(fx, value) { - this.nb(fx, value), b9.nN.save(fx, String(value)), b9.nN.save(fx, String(this.data[fx].dc), !0) - }, this.oM = function() { - for (var eD = 0; eD < this.data.length; eD++) this.data[eD] && (b9.nN.save(eD, String(this.data[eD].value)), b9.nN.save(eD, String(this.data[eD].dc), !0)) - }, this.oN = function(fx) { - return Number(this.data[fx].value) + this.nc(fx, value), b9.nO.save(fx, String(value)), b9.nO.save(fx, String(this.data[fx].dc), !0) + }, this.oN = function() { + for (var eD = 0; eD < this.data.length; eD++) this.data[eD] && (b9.nO.save(eD, String(this.data[eD].value)), b9.nO.save(eD, String(this.data[eD].dc), !0)) }, this.oO = function(fx) { + return Number(this.data[fx].value) + }, this.oP = function(fx) { return String(this.data[fx].value) } } -function oE() { - this.oQ = function(fx, dc = !1) { - return Number(this.oR(fx, dc)) - }, this.oR = function(fx, dc = !1) { +function oF() { + this.oR = function(fx, dc = !1) { + return Number(this.oS(fx, dc)) + }, this.oS = function(fx, dc = !1) { var db = null; - return 0 === b7.id ? b7.oS && (db = b7.oS.getItem((dc ? "v" : "d") + fx)) : 1 === b7.id ? db = b7.oT.loadString((dc ? 1e3 : 2e3) + fx) : 2 === b7.id && (db = b7.oU[(dc ? "v" : "d") + fx]), db && 0 !== db.length ? db : null + return 0 === b7.id ? b7.oT && (db = b7.oT.getItem((dc ? "v" : "d") + fx)) : 1 === b7.id ? db = b7.oU.loadString((dc ? 1e3 : 2e3) + fx) : 2 === b7.id && (db = b7.oV[(dc ? "v" : "d") + fx]), db && 0 !== db.length ? db : null }, this.save = function(fx, value, dc = !1) { - 0 === b7.id ? b7.oS && b7.oS.setItem((dc ? "v" : "d") + fx, value) : 1 === b7.id ? b7.oT.saveString((dc ? 1e3 : 2e3) + fx, value) : 2 === b7.id && (b7.oU["d" + fx] = value, b7.oV.postMessage((dc ? "v" : "d") + fx + " " + value)) + 0 === b7.id ? b7.oT && b7.oT.setItem((dc ? "v" : "d") + fx, value) : 1 === b7.id ? b7.oU.saveString((dc ? 1e3 : 2e3) + fx, value) : 2 === b7.id && (b7.oV["d" + fx] = value, b7.oW.postMessage((dc ? "v" : "d") + fx + " " + value)) + } +} + +function oJ() { + this.cq = function() { + ! function() { + var data = b9.dG.data; + 0 === data[2].dc && (aK.g9 > aK.g3 || 0 !== b7.id) && (data[2].value = data[2].oQ = 1); + 0 === data[100].dc && (data[100].value = data[100].oQ = (0 === b7.id ? "Player " : 1 === b7.id ? "Android User " : "iOS User ") + Math.floor(1e3 * Math.random())); + data[0].value = data[0].oQ = aV.oZ() + }(); + var eD, db, data = b9.dG.data, + eZ = data.length; + for (eD = 0; eD < eZ; eD++) data[eD] && data[eD].dc === b9.nO.oR(eD, !0) && (db = b9.nO.oS(eD), data[eD].value = null === db ? data[eD].oQ : 2 === data[eD].type ? db : Number(db)); + b9.dG.data[10].value = b9.dG.data[10].oQ } } function oI() { - this.cq = function() { - ! function() { - var data = b9.dG.data; - 0 === data[2].dc && (aK.g9 > aK.g3 || 0 !== b7.id) && (data[2].value = data[2].oP = 1); - 0 === data[100].dc && (data[100].value = data[100].oP = (0 === b7.id ? "Player " : 1 === b7.id ? "Android User " : "iOS User ") + Math.floor(1e3 * Math.random())); - data[0].value = data[0].oP = aV.oY() - }(); - var eD, db, data = b9.dG.data, - eZ = data.length; - for (eD = 0; eD < eZ; eD++) data[eD] && data[eD].dc === b9.nN.oQ(eD, !0) && (db = b9.nN.oR(eD), data[eD].value = null === db ? data[eD].oP : 2 === data[eD].type ? db : Number(db)); - b9.dG.data[10].value = b9.dG.data[10].oP + function oc(dl) { + let oh = dl[0]; + for (let eD = 1; eD < dl.length; eD++) oh += ";" + dl[eD]; + b9.nb.nc(116, oh) } -} - -function oH() { - function ob(dl) { - let og = dl[0]; - for (let eD = 1; eD < dl.length; eD++) og += ";" + dl[eD]; - b9.na.nb(116, og) - } - this.oZ = function() { + this.oa = function() { var dl = b9.dG.data[116].value.split(";"); dl.length % 2 == 1 && dl.pop(), dl.unshift(b9.dG.data[106].value), dl.unshift(b9.dG.data[105].value); for (let eD = 2; eD < dl.length; eD += 2) if (dl[eD] === dl[0]) { dl.splice(eD, 2); break - } var oa = []; - for (let eD = 0; eD < dl.length; eD += 2) oa.push(dl[eD]); - ob(dl), b9.dG.data[117].value = 0, b9.dG.data[117].nq = oa - }, this.oc = function(fx) { - b9.dG.data[117].nq.splice(fx, 1), b9.dG.data[117].value = Math.min(fx, b9.dG.data[117].nq.length - 1); - var dl = b9.dG.data[116].value.split(";"); - dl.splice(2 * fx, 2), ob(dl) + } var ob = []; + for (let eD = 0; eD < dl.length; eD += 2) ob.push(dl[eD]); + oc(dl), b9.dG.data[117].value = 0, b9.dG.data[117].nr = ob }, this.od = function(fx) { + b9.dG.data[117].nr.splice(fx, 1), b9.dG.data[117].value = Math.min(fx, b9.dG.data[117].nr.length - 1); + var dl = b9.dG.data[116].value.split(";"); + dl.splice(2 * fx, 2), oc(dl) + }, this.oe = function(fx) { var dl = b9.dG.data[116].value.split(";"); return { - oe: dl[2 * fx], + og: dl[2 * fx], password: dl[2 * fx + 1] } } } -function oG() { - this.nb = function(fx, value) { - b9.dG.data[fx].value !== value && (b9.dG.dH(fx, value), 0 === fx ? (ar.oh(0), aV.cq(), ar.oh(2)) : 1 === fx ? aK.oi(1) : 2 === fx ? aK.oi(0) : 5 === fx && (aY.fy.oj(), aK.oi(0))) - }, this.ok = function() { - for (var data = b9.dG.data, eD = 0; eD < 180; eD++) data[eD] && b9.dG.dH(eD, data[eD].oP); - aY.fy.oj(), aK.oi(1), aV.cq() +function oH() { + this.nc = function(fx, value) { + b9.dG.data[fx].value !== value && (b9.dG.dH(fx, value), 0 === fx ? (ar.oi(0), aV.cq(), ar.oi(2)) : 1 === fx ? aK.oj(1) : 2 === fx ? aK.oj(0) : 5 === fx && (aY.fy.ok(), aK.oj(0))) + }, this.ol = function() { + for (var data = b9.dG.data, eD = 0; eD < 180; eD++) data[eD] && b9.dG.dH(eD, data[eD].oQ); + aY.fy.ok(), aK.oj(1), aV.cq() } } function bM() { - this.ol = new om, this.on = new oo, this.cq = function() { - this.ol.cq() + this.om = new on, this.oo = new op, this.cq = function() { + this.om.cq() } } -function oo() { - this.op = function(size) { - for (var oq = ae, dl = [], eD = 0; eD < size; eD++) dl.push(String.fromCharCode(oq.mI(16))); +function op() { + this.oq = function(size) { + for (var or = ae, dl = [], eD = 0; eD < size; eD++) dl.push(String.fromCharCode(or.mJ(16))); return dl.join("") - }, this.or = function(fw) { + }, this.os = function(fw) { return 20 < (fw = fw.trim()).length ? fw.substring(0, 20) : fw } } -function om() { - var os = new Uint8Array(78); +function on() { + var ot = new Uint8Array(78); this.cq = function() { var eD; - for (os[50] = 37, eD = 0; eD < 10; eD++) os[eD + 3] = eD + 1; - for (eD = 0; eD < 26; eD++) os[eD + 20] = eD + 11, os[eD + 52] = eD + 38 - }, this.ot = function(fw) { + for (ot[50] = 37, eD = 0; eD < 10; eD++) ot[eD + 3] = eD + 1; + for (eD = 0; eD < 26; eD++) ot[eD + 20] = eD + 11, ot[eD + 52] = eD + 38 + }, this.ou = function(fw) { return fw.trim().replace(new RegExp("[^a-zA-Z0-9_\\-]", "g"), "_") - }, this.ou = function(fw, size) { - if ((fw = this.ot(fw)).length > size) return fw.substring(0, size); + }, this.ov = function(fw, size) { + if ((fw = this.ou(fw)).length > size) return fw.substring(0, size); for (; fw.length < size;) fw += "_"; return fw - }, this.ov = function(fw) { - for (var ow = os, eZ = fw.length, dl = new Uint8Array(eZ), eD = 0; eD < eZ; eD++) dl[eD] = ow[fw.charCodeAt(eD) - 45]; + }, this.ow = function(fw) { + for (var ox = ot, eZ = fw.length, dl = new Uint8Array(eZ), eD = 0; eD < eZ; eD++) dl[eD] = ox[fw.charCodeAt(eD) - 45]; return dl - }, this.ox = function(oy) { - ab.d2(6 * oy.length), this.oz(oy), ae.cq(ab.mH) - }, this.oz = function(oy) { - var eZ = oy.length, + }, this.oy = function(oz) { + ab.d2(6 * oz.length), this.p0(oz), ae.cq(ab.mI) + }, this.p0 = function(oz) { + var eZ = oz.length, g3 = ab; - for (let eD = 0; eD < eZ; eD++) g3.p0(6, oy[eD]) - }, this.p1 = function(fw) { - this.oz(this.ov(fw)) - }, this.p2 = function(fw, size) { - this.oz(this.ov(this.ou(fw, size))) + for (let eD = 0; eD < eZ; eD++) g3.p1(6, oz[eD]) + }, this.p2 = function(fw) { + this.p0(this.ow(fw)) + }, this.p3 = function(fw, size) { + this.p0(this.ow(this.ov(fw, size))) } } -function p3() { - var g3, g9, p4; +function p4() { + var g3, g9, p5; - function pU(pV, ei, pS, pA, pN) { - ei = pT(pV, ei + 1 + 2 * pA & 3); - ! function(pV, pW) { - return 1 < Math.abs(pV % g3 - pW % g3) || 1 < Math.abs(pZ(pV) - pZ(pW)) - }(pV, ei) && 0 === pN[ei << 2] && (pN[ei << 2] = pS) + function pV(pW, ei, pT, pB, pO) { + ei = pU(pW, ei + 1 + 2 * pB & 3); + ! function(pW, pX) { + return 1 < Math.abs(pW % g3 - pX % g3) || 1 < Math.abs(pa(pW) - pa(pX)) + }(pW, ei) && 0 === pO[ei << 2] && (pO[ei << 2] = pT) } - function pZ(eg) { + function pa(eg) { return Math.floor((eg + .5) / g3) % g9 } - function pT(eg, ei) { - return eg + p4[ei] + function pU(eg, ei) { + return eg + p5[ei] } - this.p5 = function(fw) { - var eD, p6, eZ, p8, oq = ae; - for (ad.ol.ox(ad.ol.ov(fw)), ap.e8 = g3 = oq.mI(12), ap.e9 = g9 = oq.mI(12), p4 = [-g3, -1, g3, 1], ap.pJ = document.createElement("canvas"), ap.pJ.width = ap.e8, ap.pJ.height = ap.e9, ap.pF = ap.pJ.getContext("2d", { + this.p6 = function(fw) { + var eD, p7, eZ, p9, or = ae; + for (ad.om.oy(ad.om.ow(fw)), ap.e8 = g3 = or.mJ(12), ap.e9 = g9 = or.mJ(12), p5 = [-g3, -1, g3, 1], ap.pK = document.createElement("canvas"), ap.pK.width = ap.e8, ap.pK.height = ap.e9, ap.pG = ap.pK.getContext("2d", { alpha: !1 - }), ap.pG = ap.pF.getImageData(0, 0, ap.e8, ap.e9), ap.pK = ap.pG.data, aY.pL.pM(ap.pK), eZ = oq.mI(12), p6 = oq.mI(5), p8 = pC(g3 * g9 - 1), eD = 0; eD < eZ; eD++) ! function(p7, eg, p9, pA) { - var eD, ei, oq = ae, - pN = ap.pK, - pO = eg, + }), ap.pH = ap.pG.getImageData(0, 0, ap.e8, ap.e9), ap.pL = ap.pH.data, aY.pM.pN(ap.pL), eZ = or.mJ(12), p7 = or.mJ(5), p9 = pD(g3 * g9 - 1), eD = 0; eD < eZ; eD++) ! function(p8, eg, pA, pB) { + var eD, ei, or = ae, + pO = ap.pL, pP = eg, - pQ = 0, - pR = 1 + p9, - pS = 2 - p9; - for (pN[eg << 2] = pR, eD = 0; eD < p7; eD++) ei = oq.mI(2), eg = pT(eg, ei), pN[eg << 2] === pR ? pQ % 2 == 1 && pU(pP, pQ + 2 * pA + 3, pS, pA, pN) : pN[eg << 2] = pR, pU(eg, ei, pS, pA, pN), pU(pP, ei, pS, pA, pN), pP = eg, - pQ = ei; - pT(eg, 0) === pO ? (pU(eg, 0, pS, pA, pN), pU(pO, 0, pS, pA, pN)) : pT(eg, 1) === pO && (pU(eg, 0, pS, pA, pN), pU(pO, 2, pS, pA, pN)); - 0 === p7 && (pU(pO, 0, pS, pA, pN), pU(pO, 2, pS, pA, pN)) - }(oq.mI(p6), oq.mI(p8), 1 === oq.mI(1), 1 === oq.mI(1)); - var fI, fJ, pa, pb, pc, pd, pN = ap.pK, - pe = !0, - pf = ap.ih.pg[ap.ph].pf, - pi = ap.ih.pg[ap.ph].pi; + pQ = eg, + pR = 0, + pS = 1 + pA, + pT = 2 - pA; + for (pO[eg << 2] = pS, eD = 0; eD < p8; eD++) ei = or.mJ(2), eg = pU(eg, ei), pO[eg << 2] === pS ? pR % 2 == 1 && pV(pQ, pR + 2 * pB + 3, pT, pB, pO) : pO[eg << 2] = pS, pV(eg, ei, pT, pB, pO), pV(pQ, ei, pT, pB, pO), pQ = eg, + pR = ei; + pU(eg, 0) === pP ? (pV(eg, 0, pT, pB, pO), pV(pP, 0, pT, pB, pO)) : pU(eg, 1) === pP && (pV(eg, 0, pT, pB, pO), pV(pP, 2, pT, pB, pO)); + 0 === p8 && (pV(pP, 0, pT, pB, pO), pV(pP, 2, pT, pB, pO)) + }(or.mJ(p7), or.mJ(p9), 1 === or.mJ(1), 1 === or.mJ(1)); + var fI, fJ, pb, pc, pd, pe, pO = ap.pL, + pf = !0, + pg = ap.ih.ph[ap.pi].pg, + pj = ap.ih.ph[ap.pi].pj; for (fJ = 0; fJ < g9; fJ++) - for (pb = !0, pc = pe, fI = pd = 0; fI < g3; fI++) pa = 4 * fJ * g3 + 4 * fI, pd <= fI && 0 < pN[pa] && (pc = 2 === pN[pa], pb) && (pb = !1, pc !== pe) ? (pe = pc, pd = fI + 1, fI = -1) : (pc ? (pN[pa] = pi[0], pN[1 + pa] = pi[1], pN[ - 2 + pa] = pi[2]) : (pN[pa] = pf[0], pN[1 + pa] = pf[1], pN[2 + pa] = pf[2]), pN[3 + pa] = 255); - ap.pF.putImageData(ap.pG, 0, 0), ap.pH = !0, ap.pI.cq(), b3.d1 = !0 + for (pc = !0, pd = pf, fI = pe = 0; fI < g3; fI++) pb = 4 * fJ * g3 + 4 * fI, pe <= fI && 0 < pO[pb] && (pd = 2 === pO[pb], pc) && (pc = !1, pd !== pf) ? (pf = pd, pe = fI + 1, fI = -1) : (pd ? (pO[pb] = pj[0], pO[1 + pb] = pj[1], pO[ + 2 + pb] = pj[2]) : (pO[pb] = pg[0], pO[1 + pb] = pg[1], pO[2 + pb] = pg[2]), pO[3 + pb] = 255); + ap.pG.putImageData(ap.pH, 0, 0), ap.pI = !0, ap.pJ.cq(), b3.d1 = !0 } } function bS() { - var fI, fJ, g3, g9, pj, pk, pl, pm, player, dl; + var fI, fJ, g3, g9, pk, pl, pm, pn, player, dl; - function pu() { + function pv() { return function() { var eD; for (eD = 0; eD < 8; eD++) - if (fI = eR(g3 * aL.random(), aL.value(100)), fJ = eR(g9 * aL.random(), aL.value(100)), q2()) return 1; + if (fI = eR(g3 * aL.random(), aL.value(100)), fJ = eR(g9 * aL.random(), aL.value(100)), q3()) return 1; return }() || function() { - var gs, gv, hY, ps, hh, pr; + var gs, gv, hY, pt, hh, ps; for (gs = eR(g3 * aL.random(), aL.value(100)), gv = eR(g9 * aL.random(), aL.value(100)), hY = 40; 1 <= hY; hY--) - for (ps = g9 - hY; 0 <= ps; ps -= 40) - for (fJ = (ps + gv) % g9, hh = 40; 1 <= hh; hh--) - for (pr = g3 - hh; 0 <= pr; pr -= 40) - if (fI = (pr + gs) % g3, q2()) return 1; + for (pt = g9 - hY; 0 <= pt; pt -= 40) + for (fJ = (pt + gv) % g9, hh = 40; 1 <= hh; hh--) + for (ps = g3 - hh; 0 <= ps; ps -= 40) + if (fI = (ps + gs) % g3, q3()) return 1; return }() } - function q2() { - for (var eg, q4, gap = eR(pj - pm, 2), q5 = pl + fJ * pj + gap, q6 = pk + fI * pj + gap, q3 = q5 + pm - 1; q5 <= q3; q3--) - for (q4 = q6 + pm - 1; q6 <= q4; q4--) - if (eg = a2.q0(q4, q3), !a2.eb(eg) || a2.hU(eg)) return; + function q3() { + for (var eg, q5, gap = eR(pk - pn, 2), q6 = pm + fJ * pk + gap, q7 = pl + fI * pk + gap, q4 = q6 + pn - 1; q6 <= q4; q4--) + for (q5 = q7 + pn - 1; q7 <= q5; q5--) + if (eg = a2.q1(q5, q4), !a2.eb(eg) || a2.hU(eg)) return; return 1 } - function pv(pr, ps) { - pn(), q7(pr - 2, ps - 2) + function pw(ps, pt) { + po(), q8(ps - 2, pt - 2) } - function pn() { - h1[player] = 0, eV[player] = 0, ez[player] = q8[player] = 0, ea[player] = [], er[player] = [], es[player] = [], ev[player] = [], ht[player] = hw[player] = hs[player] = hv[player] = 0 + function po() { + h1[player] = 0, eV[player] = 0, ez[player] = q9[player] = 0, ea[player] = [], er[player] = [], es[player] = [], ev[player] = [], ht[player] = hw[player] = hs[player] = hv[player] = 0 } - function q7(pr, ps) { - var eg, eD, qA, qB; - for (h1[player] = 1, eV[player] = player < h0 ? q9 : iS[b.hS[player - h0]], ht[player] = pr + 10, hw[player] = ps + 10, hv[player] = hs[player] = 0, qA = pr; qA < pr + 4; qA++) - for (qB = ps; qB < ps + 4; qB++)(pr < qA && qA < pr + 3 || ps < qB && qB < ps + 3) && (eg = a2.q0(qA, qB), a2.eb(eg)) && (ht[player] = qA < ht[player] ? qA : ht[player], hs[player] = qA > hs[player] ? qA : hs[player], hw[player] = qB < - hw[player] ? qB : hw[player], hv[player] = qB > hv[player] ? qB : hv[player], dl[ez[player]] = eg, ez[player]++, a2.qC(eg, player)); - for (q8[player] = ez[player], eD = ez[player] - 1; 0 <= eD; eD--) a2.qD(dl[eD], player) ? (a2.ec(dl[eD], player), er[player].push(dl[eD])) : a2.qE(dl[eD]) ? (a2.ec(dl[eD], player), es[player].push(dl[eD])) : a2.qF(dl[eD]) && (a2.ec(dl[eD], + function q8(ps, pt) { + var eg, eD, qB, qC; + for (h1[player] = 1, eV[player] = player < h0 ? qA : iS[b.hS[player - h0]], ht[player] = ps + 10, hw[player] = pt + 10, hv[player] = hs[player] = 0, qB = ps; qB < ps + 4; qB++) + for (qC = pt; qC < pt + 4; qC++)(ps < qB && qB < ps + 3 || pt < qC && qC < pt + 3) && (eg = a2.q1(qB, qC), a2.eb(eg)) && (ht[player] = qB < ht[player] ? qB : ht[player], hs[player] = qB > hs[player] ? qB : hs[player], hw[player] = qC < + hw[player] ? qC : hw[player], hv[player] = qC > hv[player] ? qC : hv[player], dl[ez[player]] = eg, ez[player]++, a2.qD(eg, player)); + for (q9[player] = ez[player], eD = ez[player] - 1; 0 <= eD; eD--) a2.qE(dl[eD], player) ? (a2.ec(dl[eD], player), er[player].push(dl[eD])) : a2.qF(dl[eD]) ? (a2.ec(dl[eD], player), es[player].push(dl[eD])) : a2.qG(dl[eD]) && (a2.ec(dl[eD], player), ev[player].push(dl[eD])) } - function q1(pr, ps) { - for (var eg, q4, q3 = ps; ps - 6 < q3; q3--) - for (q4 = pr; pr - 6 < q4; q4--) - if (eg = a2.q0(q4, q3), a2.hU(eg)) return; + function q2(ps, pt) { + for (var eg, q5, q4 = pt; pt - 6 < q4; q4--) + for (q5 = ps; ps - 6 < q5; q5--) + if (eg = a2.q1(q5, q4), a2.hU(eg)) return; return 1 } this.cq = function() { - var eD, pr, ps; - if (dl = new Array(12), pm = 6, pj = 10, g3 = eR(ap.e8, pj), g9 = eR(ap.e9, pj), pk = eR(ap.e8 - pj * g3, 2), pl = eR(ap.e9 - pj * g9, 2), fa) - for (eD = 0; eD < h0; eD++) player = eD, pn(), h1[player] = 1; - if (aU.ig && aU.ih.po) { + var eD, ps, pt; + if (dl = new Array(12), pn = 6, pk = 10, g3 = eR(ap.e8, pk), g9 = eR(ap.e9, pk), pl = eR(ap.e8 - pk * g3, 2), pm = eR(ap.e9 - pk * g9, 2), fa) + for (eD = 0; eD < h0; eD++) player = eD, po(), h1[player] = 1; + if (aU.ig && aU.ih.pp) { for (player = 0; player < ed; player++) if (1 !== h1[player]) { - if (player < pt) { + if (player < pu) { if (function() { - var pr = aU.ih.po[player] + 1, - ps = aU.ih.pz[player] + 1; - if (3 < pr && pr < ap.e8 - 5 && 3 < ps && ps < ap.e9 - 5 && a2.eb(a2.q0(pr, ps)) && q1(pr + 3, ps + 3)) return pv(pr + 1, ps + 1), 1; + var ps = aU.ih.pp[player] + 1, + pt = aU.ih.q0[player] + 1; + if (3 < ps && ps < ap.e8 - 5 && 3 < pt && pt < ap.e9 - 5 && a2.eb(a2.q1(ps, pt)) && q2(ps + 3, pt + 3)) return pw(ps + 1, pt + 1), 1; return }()) continue; - if (pu()) { - pr = pk + fI * pj + eR(pj, 2), ps = pl + fJ * pj + eR(pj, 2), pv(pr, ps); + if (pv()) { + ps = pl + fI * pk + eR(pk, 2), pt = pm + fJ * pk + eR(pk, 2), pw(ps, pt); continue } } - pn() + po() } } else ! function() { - var pr, ps; - for (player = 0; player < ed; player++) 1 !== h1[player] && (player < pt && pu() ? (pr = pk + fI * pj + eR(pj, 2), ps = pl + fJ * pj + eR(pj, 2), pv(pr, ps)) : pn()) + var ps, pt; + for (player = 0; player < ed; player++) 1 !== h1[player] && (player < pu && pv() ? (ps = pl + fI * pk + eR(pk, 2), pt = pm + fJ * pk + eR(pk, 2), pw(ps, pt)) : po()) }(); b1.eX[7] = ez[eU], b1.eX[8] = eV[eU] - }, this.qG = function(hR, qH, qI) { - var eD, pr, ps, eg, fI, fJ; + }, this.qH = function(hR, qI, qJ) { + var eD, ps, pt, eg, fI, fJ; for (player = hR, eD = 0; eD < 20; eD++) - for (pr = qH + eD; qH - eD <= pr; pr--) - for (ps = qI + eD; qI - eD <= ps; ps--) - if ((pr === qH + eD || pr === qH - eD || ps === qI + eD || ps === qI - eD) && 3 < pr && pr < ap.e8 - 5 && 3 < ps && ps < ap.e9 - 5 && a2.eb(a2.q0(pr, ps)) && q1(pr + 3, ps + 3)) { + for (ps = qI + eD; qI - eD <= ps; ps--) + for (pt = qJ + eD; qJ - eD <= pt; pt--) + if ((ps === qI + eD || ps === qI - eD || pt === qJ + eD || pt === qJ - eD) && 3 < ps && ps < ap.e8 - 5 && 3 < pt && pt < ap.e9 - 5 && a2.eb(a2.q1(ps, pt)) && q2(ps + 3, pt + 3)) { if (0 < ez[player]) { for (fJ = fI = eg = void 0, fI = hs[player]; fI >= ht[player]; fI--) - for (fJ = hv[player]; fJ >= hw[player]; fJ--) eg = 4 * (fJ * ap.e8 + fI), a2.qK(player, eg) && (a2.qL(eg), ez[player]--); - pn() + for (fJ = hv[player]; fJ >= hw[player]; fJ--) eg = 4 * (fJ * ap.e8 + fI), a2.qL(player, eg) && (a2.qM(eg), ez[player]--); + po() } - return q7(pr - 1, ps - 1), !0 + return q8(ps - 1, pt - 1), !0 } return !1 - }, this.qM = function(hR) { - player = hR, pu() ? pv(pk + fI * pj + eR(pj, 2), pl + fJ * pj + eR(pj, 2)) : pn() + }, this.qN = function(hR) { + player = hR, pv() ? pw(pl + fI * pk + eR(pk, 2), pm + fJ * pk + eR(pk, 2)) : po() } } -function qN() { - aD.qO(), gD.setTransform(h6, 0, 0, h6, 0, 0), gD.imageSmoothingEnabled = h6 < 3, gD.drawImage(ap.pJ, p.je(), p.gB()), am.qP.gC(), gD.drawImage(qQ, p.je(), p.gB()), aD.gC(), gD.imageSmoothingEnabled = !1, gD.setTransform(1, 0, 0, 1, 0, 0), ak.qP - .gC(), a6.gC(), e.gC(), (k7 ? (b5.gC(), aa) : (k.gC(), s.gC(), o.gC(), aa.gC(), aI.gC(), t.gC(), p.gC(), n.gC(), b5.gC(), r.gC(), m.gC(), j.gC(), i.gC(), u.gC(), b2.gC(), aF)).gC() +function qO() { + aD.qP(), gD.setTransform(h6, 0, 0, h6, 0, 0), gD.imageSmoothingEnabled = h6 < 3, gD.drawImage(ap.pK, p.jf(), p.gB()), am.qQ.gC(), gD.drawImage(qR, p.jf(), p.gB()), aD.gC(), gD.imageSmoothingEnabled = !1, gD.setTransform(1, 0, 0, 1, 0, 0), ak.qQ + .gC(), a6.gC(), e.gC(), (k8 ? (b5.gC(), aa) : (k.gC(), s.gC(), o.gC(), aa.gC(), aI.gC(), t.gC(), p.gC(), n.gC(), b5.gC(), r.gC(), m.gC(), j.gC(), i.gC(), u.gC(), b2.gC(), aF)).gC() } -function qR(qS, g3, g9) { - qS.clearRect(0, 0, g3, g9), qS.fillStyle = aZ.kY, qS.fillRect(0, 0, g3, g9) +function qS(qT, g3, g9) { + qT.clearRect(0, 0, g3, g9), qT.fillStyle = aZ.kZ, qT.fillRect(0, 0, g3, g9) } -function qT(qS, g3, g9, qU) { - qS.fillStyle = aZ.gE, qS.fillRect(0, 0, g3, qU), qS.fillRect(0, 0, qU, g9), qS.fillRect(g3 - qU, 0, qU, g9), qS.fillRect(0, g9 - qU, g3, qU) +function qU(qT, g3, g9, qV) { + qT.fillStyle = aZ.gE, qT.fillRect(0, 0, g3, qV), qT.fillRect(0, 0, qV, g9), qT.fillRect(g3 - qV, 0, qV, g9), qT.fillRect(0, g9 - qV, g3, qV) } -function qV(qS, fI, fJ, gG, qU, eg, qW) { - qS.fillStyle = aZ.gE; +function qW(qT, fI, fJ, gG, qV, eg, qX) { + qT.fillStyle = aZ.gE; var eg = Math.floor(gG * eg), - qY = (eg += (eg - qU) % 2, Math.floor((eg - qU) / 2)), + qZ = (eg += (eg - qV) % 2, Math.floor((eg - qV) / 2)), gG = Math.floor((gG - eg) / 2); - qS.fillRect(fI + gG, fJ + gG + qY, eg, qU), qW && qS.fillRect(fI + gG + qY, fJ + gG, qU, eg) + qT.fillRect(fI + gG, fJ + gG + qZ, eg, qV), qX && qT.fillRect(fI + gG + qZ, fJ + gG, qV, eg) } -function qa() { - this.qb = null, this.cq = function(qb) { - this.qb = qb, k.qc(this.qb) - }, this.qd = function(qe) { - var ge = (this.qb[qe].qf - this.qb[1 - qe].qf) / 10, +function qb() { + this.qc = null, this.cq = function(qc) { + this.qc = qc, k.qd(this.qc) + }, this.qe = function(qf) { + var ge = (this.qc[qf].qg - this.qc[1 - qf].qg) / 10, ge = 8 / (1 + Math.pow(2, ge / 32)), ge = Math.floor(10 * ge + .5), - qh = this.qi(this.qb[qe].qf + ge + 1), - ge = this.qi(this.qb[1 - qe].qf - ge); - 0 === qe ? k.qk(this.qb, qh, ge, ["rgba(10,140,10,0.75)", "rgba(140,10,10,0.75)"]) : k.qk(this.qb, ge, qh, ["rgba(140,10,10,0.75)", "rgba(10,140,10,0.75)"]) - }, this.qi = function(qf) { - return 16e3 <= (qf = qf < 0 ? 0 : 16e3 < qf ? 16e3 : qf) ? "Unknown" : (qf / 10).toFixed(1) + qi = this.qj(this.qc[qf].qg + ge + 1), + ge = this.qj(this.qc[1 - qf].qg - ge); + 0 === qf ? k.ql(this.qc, qi, ge, ["rgba(10,140,10,0.75)", "rgba(140,10,10,0.75)"]) : k.ql(this.qc, ge, qi, ["rgba(140,10,10,0.75)", "rgba(10,140,10,0.75)"]) + }, this.qj = function(qg) { + return 16e3 <= (qg = qg < 0 ? 0 : 16e3 < qg ? 16e3 : qg) ? "Unknown" : (qg / 10).toFixed(1) } } function bL() { - this.ol = new ql, this.on = new qm, this.cq = function() { - this.ol.cq() + this.om = new qm, this.oo = new qn, this.cq = function() { + this.om.cq() + } +} + +function qn() { + this.p2 = function(fw) { + for (var eZ = fw.length, g3 = ab, eD = 0; eD < eZ; eD++) g3.p1(16, fw.charCodeAt(eD)) } } function qm() { - this.p1 = function(fw) { - for (var eZ = fw.length, g3 = ab, eD = 0; eD < eZ; eD++) g3.p0(16, fw.charCodeAt(eD)) - } -} - -function ql() { - var qn = new Uint8Array(64); + var qo = new Uint8Array(64); this.cq = function() { var eD; - for (qn[0] = 45, qn[37] = 95, eD = 0; eD < 10; eD++) qn[eD + 1] = 48 + eD; - for (eD = 0; eD < 26; eD++) qn[eD + 11] = 65 + eD, qn[eD + 38] = 97 + eD - }, this.qo = function(qp) { - for (var oq = ae, oy = new Uint8Array(qp), eD = 0; eD < qp; eD++) oy[eD] = oq.mI(6); - return oy - }, this.qq = function(oy) { - for (var eZ = oy.length, qr = qn, dl = [], eD = 0; eD < eZ; eD++) dl.push(String.fromCharCode(qr[oy[eD]])); + for (qo[0] = 45, qo[37] = 95, eD = 0; eD < 10; eD++) qo[eD + 1] = 48 + eD; + for (eD = 0; eD < 26; eD++) qo[eD + 11] = 65 + eD, qo[eD + 38] = 97 + eD + }, this.qp = function(qq) { + for (var or = ae, oz = new Uint8Array(qq), eD = 0; eD < qq; eD++) oz[eD] = or.mJ(6); + return oz + }, this.qr = function(oz) { + for (var eZ = oz.length, qs = qo, dl = [], eD = 0; eD < eZ; eD++) dl.push(String.fromCharCode(qs[oz[eD]])); return dl.join("") } } function bT() { - var qs, qt, qu; - qs = [32, 65, 191, 913, 931], qt = [64, 127, 688, 930, 1155], qu = new Array(qs.length + 1); - for (var eD = 0; eD < qu.length; eD++) { - qu[eD] = 0; - for (var hY = eD - 1; 0 <= hY; hY--) qu[eD] += qt[hY] - qs[hY] + var qt, qu, qv; + qt = [32, 65, 191, 913, 931], qu = [64, 127, 688, 930, 1155], qv = new Array(qt.length + 1); + for (var eD = 0; eD < qv.length; eD++) { + qv[eD] = 0; + for (var hY = eD - 1; 0 <= hY; hY--) qv[eD] += qu[hY] - qt[hY] } - function r0(iK) { - for (var eD = qs.length - 1; 0 <= eD; eD--) - if (iK >= qs[eD] && iK < qt[eD]) return eD; + function r1(iK) { + for (var eD = qt.length - 1; 0 <= eD; eD--) + if (iK >= qt[eD] && iK < qu[eD]) return eD; return -1 } - this.or = function(fw) { - return 0 !== (fw = fw.trim()).indexOf("Bot ") && 0 !== fw.indexOf("[Bot] ") && function(fw, qx, qy) { + this.os = function(fw) { + return 0 !== (fw = fw.trim()).indexOf("Bot ") && 0 !== fw.indexOf("[Bot] ") && function(fw, qy, qz) { var eZ = (fw = fw.trim()).length; - if (eZ < qx || qy < eZ) return !1; - for (var iK, qz = 0, eD = 0; eD < eZ; eD++) - if (iK = fw.charCodeAt(eD), qz += 65 <= iK && iK <= 90 || 1040 <= iK && iK <= 1071 ? 1 : 0, -1 === r0(iK)) return !1; - if (3 < qz && qz > Math.floor(eZ / 2)) return !1; + if (eZ < qy || qz < eZ) return !1; + for (var iK, r0 = 0, eD = 0; eD < eZ; eD++) + if (iK = fw.charCodeAt(eD), r0 += 65 <= iK && iK <= 90 || 1040 <= iK && iK <= 1071 ? 1 : 0, -1 === r1(iK)) return !1; + if (3 < r0 && r0 > Math.floor(eZ / 2)) return !1; return !0 }(fw, 3, 20) - }, this.r1 = function(fw) { + }, this.r2 = function(fw) { for (var eZ = (fw = fw.trim()).length, dl = [], eD = 0; eD < eZ; eD++) { - var iK, eg = r0(iK = fw.charCodeAt(eD)); - dl.push(qu[eg] + iK - qs[eg]) + var iK, eg = r1(iK = fw.charCodeAt(eD)); + dl.push(qv[eg] + iK - qt[eg]) } return dl - }, this.p5 = function(dl) { + }, this.p6 = function(dl) { for (var iK, hh, fw = "", eZ = dl.length, eD = 0; eD < eZ; eD++) - for (hh = 1; hh < qu.length; hh++) - if (dl[eD] < qu[hh]) { - iK = qs[hh - 1] + dl[eD] - qu[hh - 1], fw += String.fromCharCode(iK); + for (hh = 1; hh < qv.length; hh++) + if (dl[eD] < qv[hh]) { + iK = qt[hh - 1] + dl[eD] - qv[hh - 1], fw += String.fromCharCode(iK); break } return fw - }, this.r2 = function(fw) { - for (var dl = this.r1(fw), result = "", eD = 0; eD < dl.length; eD++) result = (result += dl[eD] < 10 ? "00" : dl[eD] < 100 ? "0" : "") + dl[eD].toString(10); - return result }, this.r3 = function(fw) { - for (var dl = new Array(Math.floor(fw.length / 3)), eD = 0; eD < fw.length; eD += 3) dl[Math.floor(eD / 3)] = parseInt(fw.substring(eD, eD + 3)); - return this.p5(dl) + for (var dl = this.r2(fw), result = "", eD = 0; eD < dl.length; eD++) result = (result += dl[eD] < 10 ? "00" : dl[eD] < 100 ? "0" : "") + dl[eD].toString(10); + return result }, this.r4 = function(fw) { + for (var dl = new Array(Math.floor(fw.length / 3)), eD = 0; eD < fw.length; eD += 3) dl[Math.floor(eD / 3)] = parseInt(fw.substring(eD, eD + 3)); + return this.p6(dl) + }, this.r5 = function(fw) { for (var db, dl = [fw.length], eD = 0; eD < fw.length; eD++) dl[eD] = fw.charCodeAt(eD) - 48; var result = ""; for (eD = 0; eD < fw.length; eD++) eD === fw.length - 1 || 51 < 10 * dl[eD] + dl[eD + 1] ? result += dl[eD].toString() : (db = 10 * dl[eD] + dl[eD + 1], result += String.fromCharCode(db + (db < 26 ? 65 : 71)), eD++); return result - }, this.r5 = function(fw) { + }, this.r6 = function(fw) { for (var iK, result = "", eD = 0; eD < fw.length; eD++) 48 <= (iK = fw.charCodeAt(eD)) && iK < 58 ? result += String.fromCharCode(iK) : 65 <= iK && iK < 75 ? result += "0" + (iK - 65).toString() : 75 <= iK && iK < 91 ? result += (iK - 65) .toString() : 97 <= iK && iK < 123 && (result += (iK - 71).toString()); return result - }, this.r6 = function(fw) { + }, this.r7 = function(fw) { for (var eZ = fw.length, dl = [], eD = 0; eD < eZ; eD++)(iK = fw.charCodeAt(eD)) < 58 ? dl.push(fw[eD]) : (iK -= iK < 91 ? 65 : 71, dl.push(String(eR(iK, 10))), dl.push(String(iK - 10 * eR(iK, 10)))); var eZ = dl.length - 2, iK = 0, - oy = []; - for (eD = 0; eD < eZ; eD += 3) oy[iK++] = parseInt(dl[eD] + dl[eD + 1] + dl[eD + 2]); - return oy - }, this.r7 = function() { - for (var gP, r8 = "", eD = 0; eD < 6; eD++) gP = 48 + aL.random() % 36, gP += 58 <= gP ? 39 : 0, r8 += String.fromCharCode(gP); - return r8 + oz = []; + for (eD = 0; eD < eZ; eD += 3) oz[iK++] = parseInt(dl[eD] + dl[eD + 1] + dl[eD + 2]); + return oz + }, this.r8 = function() { + for (var gP, r9 = "", eD = 0; eD < 6; eD++) gP = 48 + aL.random() % 36, gP += 58 <= gP ? 39 : 0, r9 += String.fromCharCode(gP); + return r9 } } function cS() { - this.r9 = new rA, this.iw = new rB, this.cq = function() { + this.rA = new rB, this.iw = new rC, this.cq = function() { this.iw.cq() } } -function rA() { - function rD() { - if (2 === rO) return 1; - aI.rP(), rO = 2, rQ = rR +function rB() { + function rE() { + if (2 === rP) return 1; + aI.rQ(), rP = 2, rR = rS } - function rG() { - k.rS(!0), s.j4(!0), t.j4(!0), aI.j4(), aa.rT(), fL && b3.rU.rV(), b3.d1 = !0, ay.rW(), b7.cv.setState(0) + function rH() { + k.rT(!0), s.j5(!0), t.j5(!0), aI.j5(), aa.rU(), fL && b3.rV.rW(), b3.d1 = !0, ay.rX(), b7.cv.setState(0) } - this.rC = function() { - rD() || (aW.fN.mD(), k.rE(247, 0), k.rF(0, 59), f.kC(2700), u.show(!1, !1, !0), rG()) - }, this.rH = function(rI) { - var mA = 0, - rJ = !1; - rD() || (8 === ij ? ((rJ = (mA = rI < 0 ? ez[0] >= ez[1] ? 0 : 1 : rI) === eU) ? k.rF(mA, 2) : k.rF(1 - eU, 3), rK.qd(mA), aW.fN.m9(mA)) : hL ? (rJ = b4.iL[eU] === b5.rL(), 9 === ij ? (aW.fN.m9(rJ ? jE[0] : 512), k.rM(rJ)) : ao.iw.i5( - rJ)) : (rJ = (mA = jE[0]) === eU, k.rN(mA), aW.fN.m9(mA)), u.show(rJ, !1), rG()) + this.rD = function() { + rE() || (aW.fN.mE(), k.rF(247, 0), k.rG(0, 59), f.kD(2700), u.show(!1, !1, !0), rH()) + }, this.rI = function(rJ) { + var mB = 0, + rK = !1; + rE() || (8 === ij ? ((rK = (mB = rJ < 0 ? ez[0] >= ez[1] ? 0 : 1 : rJ) === eU) ? k.rG(mB, 2) : k.rG(1 - eU, 3), rL.qe(mB), aW.fN.mA(mB)) : hL ? (rK = b4.iL[eU] === b5.rM(), 9 === ij ? (aW.fN.mA(rK ? jF[0] : 512), k.rN(rK)) : ao.iw.i5( + rK)) : (rK = (mB = jF[0]) === eU, k.rO(mB), aW.fN.mA(mB)), u.show(rK, !1), rH()) } } -function rB() { - var rX; +function rC() { + var rY; - function rr(rZ, eh) { - for (var fw = "", eD = eh; eD < rZ.length && eD < eh + 4; eD++) fw += (eD === eh ? "" : " ") + "[" + b4.rj[rZ[eD].id] + "]: " + rZ[eD].ro.toFixed(Math.max(Math.floor(3 - Math.log10(rZ[eD].ro)), 0)); - fw.length && k.rq(0, fw, 45, 0, aY.fy.kT(225, 240, 255), aZ.kY, -1, !1) + function rs(ra, eh) { + for (var fw = "", eD = eh; eD < ra.length && eD < eh + 4; eD++) fw += (eD === eh ? "" : " ") + "[" + b4.rk[ra[eD].id] + "]: " + ra[eD].rp.toFixed(Math.max(Math.floor(3 - Math.log10(ra[eD].rp)), 0)); + fw.length && k.rr(0, fw, 45, 0, aY.fy.kU(225, 240, 255), aZ.kZ, -1, !1) } - this.rY = 0, this.rZ = null, this.cq = function() { - rX = 0, this.rY = 0, this.rZ = null - }, this.i5 = function(rJ) { - var ra = b4.rb[b5.rc()]; - this.rY = b5.rd(), this.rZ = function(ra, rY) { + this.rZ = 0, this.ra = null, this.cq = function() { + rY = 0, this.rZ = 0, this.ra = null + }, this.i5 = function(rK) { + var rb = b4.rc[b5.rd()]; + this.rZ = b5.re(), this.ra = function(rb, rZ) { var eD, hh, eZ, iL = b4.iL, - rb = b4.rb, - rj = b4.rj, + rc = b4.rc, rk = b4.rk, - rl = ez, - rm = h0, - rn = [], + rl = b4.rl, + rm = ez, + rn = h0, + ro = [], fx = 0; - for (hh = rj.length - 1; 0 <= hh; hh--) - if (rb[iL[rk[hh][0]]] === ra) { - for (rn.push({ + for (hh = rk.length - 1; 0 <= hh; hh--) + if (rc[iL[rl[hh][0]]] === rb) { + for (ro.push({ id: hh, - rl: 0, - player: rk[hh][0], - ro: 0 - }), eZ = rk[hh].length, eD = 0; eD < eZ; eD++) rn[fx].rl += rl[rk[hh][eD]]; - for (rn[fx].ro = (1 + rp) * rm * rn[fx].rl / rY, eD = 0; eD < fx; eD++) - if (rn[fx].rl > rn[eD].rl) { - rn.splice(eD, 0, rn[fx]), rn.pop(); + rm: 0, + player: rl[hh][0], + rp: 0 + }), eZ = rl[hh].length, eD = 0; eD < eZ; eD++) ro[fx].rm += rm[rl[hh][eD]]; + for (ro[fx].rp = (1 + rq) * rn * ro[fx].rm / rZ, eD = 0; eD < fx; eD++) + if (ro[fx].rm > ro[eD].rm) { + ro.splice(eD, 0, ro[fx]), ro.pop(); break } fx++ - } 8 < rn.length && (rn.length = 8); - for (; 0 < rn.length && 0 === rn[rn.length - 1].rl;) rn.pop(); - return rn - }(ra, this.rY), n.rf("Team " + b4.fs[ra], 2, 1, 12), - function(rJ, ra) { + } 8 < ro.length && (ro.length = 8); + for (; 0 < ro.length && 0 === ro[ro.length - 1].rm;) ro.pop(); + return ro + }(rb, this.rZ), n.rg("Team " + b4.fs[rb], 2, 1, 12), + function(rK, rb) { var color; - rJ = rJ ? (color = aY.fy.kT(10, 220, 10), "Congratulations! Team " + b4.fs[ra] + " won the game!") : (color = aY.fy.kT(200, 80, 80), "Our alliance was defeated! Team " + b4.fs[ra] + " won the game."); - k.rq(0, rJ, 40, 0, color, aZ.kY, -1, !1) - }(rJ, ra), 0 !== (rJ = this.rZ).length && (k.rq(0, "The allied clans of the winning team have earned these glorious points:", 40, 0, aZ.gE, aZ.kY, -1, !1), rr(rJ, 0), rr(rJ, 4)), aW.fN.mF(), f.kC(2700) + rK = rK ? (color = aY.fy.kU(10, 220, 10), "Congratulations! Team " + b4.fs[rb] + " won the game!") : (color = aY.fy.kU(200, 80, 80), "Our alliance was defeated! Team " + b4.fs[rb] + " won the game."); + k.rr(0, rK, 40, 0, color, aZ.kZ, -1, !1) + }(rK, rb), 0 !== (rK = this.ra).length && (k.rr(0, "The allied clans of the winning team have earned these glorious points:", 40, 0, aZ.gE, aZ.kZ, -1, !1), rs(rK, 0), rs(rK, 4)), aW.fN.mG(), f.kD(2700) }, this.ix = function() { - 2 === rO && -1 !== rX && (0 === rX ? rX = this.rZ && 0 !== this.rZ.length ? b3.dY + 8e3 : -1 : b3.dY < rX || (rX = -1, k.rq(255, "Clan rankings and results can also be accessed under:", 735, 0, aZ.gE, aZ.kY, -1, !1), k.rq(255, - "territorial.io/clans", 736, 0, aZ.gE, aZ.kY, -1, !1), k.rq(255, "territorial.io/clan-results", 736, 0, aZ.gE, aZ.kY, -1, !1))) + 2 === rP && -1 !== rY && (0 === rY ? rY = this.ra && 0 !== this.ra.length ? b3.dY + 8e3 : -1 : b3.dY < rY || (rY = -1, k.rr(255, "Clan rankings and results can also be accessed under:", 735, 0, aZ.gE, aZ.kZ, -1, !1), k.rr(255, + "territorial.io/clans", 736, 0, aZ.gE, aZ.kZ, -1, !1), k.rr(255, "territorial.io/clan-results", 736, 0, aZ.gE, aZ.kZ, -1, !1))) } } function cY() { - this.id = 0, this.dc = 0, this.oS = null, this.oT = null, this.oU = null, this.oV = null, this.cv = new rs, this.cq = function() { + this.id = 0, this.dc = 0, this.oT = null, this.oU = null, this.oV = null, this.oW = null, this.cv = new rt, this.cq = function() { var self, dc; - self = this, "undefined" == typeof Android || (dc = Android.getVersion()) < 12 || (self.dc = dc, self.id = 1, self.oT = Android), + self = this, "undefined" == typeof Android || (dc = Android.getVersion()) < 12 || (self.dc = dc, self.id = 1, self.oU = Android), function(self) { var dc; - "undefined" != typeof mwIOSdataX && window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.iosCommandA && (self.id = 2, self.oU = mwIOSdataX, self.oV = window.webkit.messageHandlers.iosCommandA, dc = self - .oU.version, self.dc = dc ? Number(dc) : 0) + "undefined" != typeof mwIOSdataX && window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.iosCommandA && (self.id = 2, self.oV = mwIOSdataX, self.oW = window.webkit.messageHandlers.iosCommandA, dc = self + .oV.version, self.dc = dc ? Number(dc) : 0) }(this), function(self) { - var oS; + var oT; if (0 === self.id) { try { - if (!(oS = window.localStorage)) return; - oS.setItem("tls7", "1"), oS.removeItem("tls7") + if (!(oT = window.localStorage)) return; + oT.setItem("tls7", "1"), oT.removeItem("tls7") } catch (error) { return } - self.oS = oS + self.oT = oT } }(this) } } -function rs() { - this.rw = function() { - b9.na.ok(), 0 === x.rx() && (y.get().value = b9.dG.data[100].value), 0 === b7.id ? b7.oS && b7.oS.clear() : 1 === b7.id ? b7.oT.saveString(199, "") : 2 === b7.id && b7.oV.postMessage("clear") - }, this.ry = function() { - 2 === b7.id ? b7.oV.postMessage("showConsentForm") : 1 === b7.id ? b7.oT.setState(7) : at.dI.showCMPScreen() +function rt() { + this.rx = function() { + b9.nb.ol(), 0 === x.ry() && (y.get().value = b9.dG.data[100].value), 0 === b7.id ? b7.oT && b7.oT.clear() : 1 === b7.id ? b7.oU.saveString(199, "") : 2 === b7.id && b7.oW.postMessage("clear") }, this.rz = function() { - this.setState(14) + 2 === b7.id ? b7.oW.postMessage("showConsentForm") : 1 === b7.id ? b7.oU.setState(7) : at.dI.showCMPScreen() }, this.s0 = function() { - var s1; - return 2 === b7.id && 0 === b7.dc && "string" == typeof(s1 = b7.oU.username) ? s1 : b9.dG.data[100].value - }, this.s2 = function() { - var fw = b9.dG.oO(101), + this.setState(14) + }, this.s1 = function() { + var s2; + return 2 === b7.id && 0 === b7.dc && "string" == typeof(s2 = b7.oV.username) ? s2 : b9.dG.data[100].value + }, this.s3 = function() { + var fw = b9.dG.oP(101), max = ("string" != typeof(fw = "" === fw ? function() { { - if (2 === b7.id) return b7.oU.password; - if (1 === b7.id) return 12 <= b7.dc ? b7.oT.loadString(22) : "" + if (2 === b7.id) return b7.oV.password; + if (1 === b7.id) return 12 <= b7.dc ? b7.oU.loadString(22) : "" } - return a3.s5(9) + return a3.s6(9) }() : fw) && (fw = ""), Math.floor(Math.pow(2, 48))), - s4 = Math.floor(parseInt(h.r5(fw))); - return 0 < s4 && s4 < max ? b9.dG.dH(101, fw) : (s4 = Math.floor(1 + (max - 1) * Math.random()), b9.dG.dH(101, fw)), s4 + s5 = Math.floor(parseInt(h.r6(fw))); + return 0 < s5 && s5 < max ? b9.dG.dH(101, fw) : (s5 = Math.floor(1 + (max - 1) * Math.random()), b9.dG.dH(101, fw)), s5 }, this.ft = function() { - return 1 === b9.dG.oN(2) - }, this.s6 = function() { - for (var fw = "", eD = 0; eD < az.mo; eD += 2) fw += az.s7[eD] || az.s7[eD + 1] ? az.s7[eD] && !az.s7[eD + 1] ? "1" : !az.s7[eD] && az.s7[eD + 1] ? "2" : "3" : "0"; + return 1 === b9.dG.oO(2) + }, this.s7 = function() { + for (var fw = "", eD = 0; eD < az.mp; eD += 2) fw += az.s8[eD] || az.s8[eD + 1] ? az.s8[eD] && !az.s8[eD + 1] ? "1" : !az.s8[eD] && az.s8[eD + 1] ? "2" : "3" : "0"; b9.dG.dH(102, fw) }, this.setState = function(dX) { - 1 === b7.id && 5 <= b7.dc && b7.oT.setState(dX) - }, this.s8 = function() { - var s9; - 1 === b7.id && 7 <= b7.dc ? b7.oT.setState(5) : ((s9 = new URL(window.location)).searchParams.set("v", "" + Math.floor(1e3 * Math.random())), window.location.href = s9.toString()) + 1 === b7.id && 5 <= b7.dc && b7.oU.setState(dX) + }, this.s9 = function() { + var sA; + 1 === b7.id && 7 <= b7.dc ? b7.oU.setState(5) : ((sA = new URL(window.location)).searchParams.set("v", "" + Math.floor(1e3 * Math.random())), window.location.href = sA.toString()) }, this.cw = function() { - 1 !== b7.id || b7.dc < 17 || b7.oT.saveString(23, document.documentElement.outerHTML) + 1 !== b7.id || b7.dc < 17 || b7.oU.saveString(23, document.documentElement.outerHTML) }, this.dM = function() { - 0 === b7.id ? at.dI.cq() : 1 === b7.id ? b7.oT.prepareAd("1688441405") : 2 === b7.id && (0 === b7.dc ? b7.oV.postMessage("prepare ad 4500876070") : b7.oV.postMessage("loadAds 4500876070")) + 0 === b7.id ? at.dI.cq() : 1 === b7.id ? b7.oU.prepareAd("1688441405") : 2 === b7.id && (0 === b7.dc ? b7.oW.postMessage("prepare ad 4500876070") : b7.oW.postMessage("loadAds 4500876070")) }, this.da = function(dZ) { - return 0 === b7.id ? !!at.dI.dV() : 1 === b7.id ? 12 <= b7.dc && (b7.oT.presentAd(dZ), !0) : 2 === b7.id && (0 === b7.dc ? b7.oV.postMessage("show ad " + dZ) : b7.oV.postMessage("showAd"), !0) + return 0 === b7.id ? !!at.dI.dV() : 1 === b7.id ? 12 <= b7.dc && (b7.oU.presentAd(dZ), !0) : 2 === b7.id && (0 === b7.dc ? b7.oW.postMessage("show ad " + dZ) : b7.oW.postMessage("showAd"), !0) }, this.d4 = function() { - 2 === b7.id && b7.dc < 23 && ar.oh(4, 1, new sA("App Update Required", "A new iOS app version with bug fixes has been published.
Please download the new Territorial.io app version for iOS:
" + - ah.sB + "", !0, [new nK("❌ " + aV.nZ[92], function() { - ar.oh(0) - }, aZ.l6)])) + 2 === b7.id && b7.dc < 23 && ar.oi(4, 1, new sB("App Update Required", "A new iOS app version with bug fixes has been published.
Please download the new Territorial.io app version for iOS:
" + + ah.sC + "", !0, [new nL("❌ " + aV.na[92], function() { + ar.oi(0) + }, aZ.l7)])) } } function cn() { - function sO(title, sQ, dE) { - sJ(dE), ar.oh(4, 0, new sA("⚠️ " + title, sQ, !0)) + function sP(title, sR, dE) { + sK(dE), ar.oi(4, 0, new sB("⚠️ " + title, sR, !0)) } - function sJ(dE) { + function sK(dE) { ! function(dE) { - var dX = x.rx(); - 0 === dX ? a0.sS() : 6 === dX ? aN.iv.sT(dE) : 7 === dX ? (aG.sS(), aN.iv.close(aN.iv.sL, 3240)) : 8 === dX && (sU(!0), a0.sS()) + var dX = x.ry(); + 0 === dX ? a0.sT() : 6 === dX ? aN.iv.sU(dE) : 7 === dX ? (aG.sT(), aN.iv.close(aN.iv.sM, 3240)) : 8 === dX && (sV(!0), a0.sT()) }(dE), a0.cq(), b3.d1 = !0 } - this.sC = function(sD, dE) { - if (8 === ar.sE) return ar.sF().sG(dE) ? void 0 : void ar.oh(4, 0, new sA("⚠️ " + aV.sH(64), aV.sI(dE), !0)); - var dX = x.rx(); + this.sD = function(sE, dE) { + if (8 === ar.sF) return ar.sG().sH(dE) ? void 0 : void ar.oi(4, 0, new sB("⚠️ " + aV.sI(64), aV.sJ(dE), !0)); + var dX = x.ry(); if (6 === dX) { - if (4211 === dE) return sJ(dE), void ar.oh(4, 0, new sA("🚀 " + aV.nZ[122], aV.nZ[123], !0, [new nK("❌ " + aV.nZ[92], function() { - ar.oh(0) - }, aZ.l6), new nK("🔄 " + aV.nZ[124], function() { - b7.cv.s8() - }, aZ.ks)])); - if (4214 !== dE) return void w.sK(sD) + if (4211 === dE) return sK(dE), void ar.oi(4, 0, new sB("🚀 " + aV.na[122], aV.na[123], !0, [new nL("❌ " + aV.na[92], function() { + ar.oi(0) + }, aZ.l7), new nL("🔄 " + aV.na[124], function() { + b7.cv.s9() + }, aZ.kt)])); + if (4214 !== dE) return void w.sL(sE) } else { - if (7 !== dX) return 8 === dX ? void(sD !== aN.iv.sM || il || k.sN(aV.sI(dE))) : void 0; - if (sD !== aN.iv.sL) return + if (7 !== dX) return 8 === dX ? void(sE !== aN.iv.sN || il || k.sO(aV.sJ(dE))) : void 0; + if (sE !== aN.iv.sM) return } - sO(aV.sH(64), aV.sI(dE), dE) - }, this.sP = function(dE) { - 8 === x.rx() ? k.sN(aV.sI(dE)) : sO(aV.sH(64), aV.sI(dE), dE) + sP(aV.sI(64), aV.sJ(dE), dE) + }, this.sQ = function(dE) { + 8 === x.ry() ? k.sO(aV.sJ(dE)) : sP(aV.sI(64), aV.sJ(dE), dE) } } function bF() { - var sV, sW; - - function sX() { - var g3 = new cJ; - g3.d2(1612), g3.p0(1, 0), g3.p0(6, 7), g3.p0(2, b7 ? b7.id : 3), g3.p0(1, d9 ? 1 : 0), g3.p0(1, dB ? 1 : 0), g3.p0(1, a ? a.d5 : 0); - for (let eD = 0; eD < sW.length && eD < 100; eD++) g3.p0(16, sW.charCodeAt(eD)); - sV.send(g3.mH), sY() - } + var sW, sX; function sY() { - sV && (sV.onclose = null, sV.onopen = null, sV = null) + var g3 = new cJ; + g3.d2(1612), g3.p1(1, 0), g3.p1(6, 7), g3.p1(2, b7 ? b7.id : 3), g3.p1(1, d9 ? 1 : 0), g3.p1(1, dB ? 1 : 0), g3.p1(1, a ? a.d5 : 0); + for (let eD = 0; eD < sX.length && eD < 100; eD++) g3.p1(16, sX.charCodeAt(eD)); + sW.send(g3.mI), sZ() + } + + function sZ() { + sW && (sW.onclose = null, sW.onopen = null, sW = null) } window.addEventListener("error", function error(dE) { window.removeEventListener("error", error); return alert("Error:\n" + dE.filename + " " + dE.lineno + " " + dE.colno + " " + dE.message); - window.removeEventListener("error", error), sW = dE.lineno + " " + dE.colno + " " + dE.message, (sV = new WebSocket("wss://territorial.io/s52/")).onopen = sX, sV.onclose = function() { - sY() - }, 0 === dE.lineno && 0 === dE.colno || (b7 && 1 === b7.id ? b7.oT.showToast(sW) : alert(sW)) + window.removeEventListener("error", error), sX = dE.lineno + " " + dE.colno + " " + dE.message, (sW = new WebSocket("wss://territorial.io/s52/")).onopen = sY, sW.onclose = function() { + sZ() + }, 0 === dE.lineno && 0 === dE.colno || (b7 && 1 === b7.id ? b7.oU.showToast(sX) : alert(sX)) }) } function cM() { - var sZ, sa, sb = -15e3, - sc = !1; + var sa, sb, sc = -15e3, + sd = !1; function g6(dE) { - sv() || (sc = !0, sw(dE, 1), aN.iv.sx(aN.iv.sM), sy(Math.floor(aK.nE * dE.clientX), Math.floor(aK.nE * dE.clientY))) - } - - function sk(dE) { - sb = b3.dY, sw(dE, 1), aN.iv.sx(aN.iv.sM), 0 < dE.touches.length && (sZ = Math.floor(aK.nE * dE.touches[0].clientX), sa = Math.floor(aK.nE * dE.touches[0].clientY), aE.sk(dE) || sy(sZ, sa)) - } - - function sy(fI, fJ) { - 0 === rO ? x.g6(fI, fJ) : aa.sz(fI, fJ) || b2.g6(fI, fJ) || u.g6(fI, fJ) || i.t0(fI, fJ) || m.g6(fI, fJ) || j.g6(fI, fJ) || ag.t1(fI, fJ) || aI.g6(fI, fJ) || i.t2(fI, fJ) - } - - function sg(dE) { - sv() || (sc = !0, sw(dE, 1), t3(Math.floor(aK.nE * dE.clientX), Math.floor(aK.nE * dE.clientY))) + sw() || (sd = !0, sx(dE, 1), aN.iv.sy(aN.iv.sN), sz(Math.floor(aK.nF * dE.clientX), Math.floor(aK.nF * dE.clientY))) } function sl(dE) { - sb = b3.dY, sw(dE, 1), 0 < dE.touches.length && (sZ = Math.floor(aK.nE * dE.touches[0].clientX), sa = Math.floor(aK.nE * dE.touches[0].clientY), aE.sl(dE) || t3(sZ, sa)) + sc = b3.dY, sx(dE, 1), aN.iv.sy(aN.iv.sN), 0 < dE.touches.length && (sa = Math.floor(aK.nF * dE.touches[0].clientX), sb = Math.floor(aK.nF * dE.touches[0].clientY), aE.sl(dE) || sz(sa, sb)) } - function t3(fI, fJ) { - 0 === rO ? x.sg(fI, fJ) : (aq.fH(fI, fJ), b2.sg(fI, fJ) || (j.sg(fI, fJ), i.t4() ? i.sg(fI, fJ) : o.t5 ? o.sg(fI) && (b3.d1 = !0) : (s.sg(fI, fJ), p.k8 && p.sg(fI, fJ) && (b3.d1 = !0)))) - } - - function si(dE) { - sv() || (sw(dE, 1), 0 === rO ? (x.click(-1024, -1024), q.t6()) : (s.t7(-1024, -1024), j.sg(-1024, -1024), o.t8(), p.k8 && (p.k8 = !1))) + function sz(fI, fJ) { + 0 === rP ? x.g6(fI, fJ) : aa.t0(fI, fJ) || b2.g6(fI, fJ) || u.g6(fI, fJ) || i.t1(fI, fJ) || m.g6(fI, fJ) || j.g6(fI, fJ) || ag.t2(fI, fJ) || aI.g6(fI, fJ) || i.t3(fI, fJ) } function sh(dE) { - sv() || (sw(dE, 1), t9(Math.floor(aK.nE * dE.clientX), Math.floor(aK.nE * dE.clientY), 2 === dE.button)) - } - - function click(dE) { - sv() || sw(dE, 1) + sw() || (sd = !0, sx(dE, 1), t4(Math.floor(aK.nF * dE.clientX), Math.floor(aK.nF * dE.clientY))) } function sm(dE) { - sb = b3.dY, sw(dE, 1), dE && dE.touches && 0 < dE.touches.length && 0 !== rO ? p.k8 = !1 : aE.tA() || t9(sZ, sa, !1) + sc = b3.dY, sx(dE, 1), 0 < dE.touches.length && (sa = Math.floor(aK.nF * dE.touches[0].clientX), sb = Math.floor(aK.nF * dE.touches[0].clientY), aE.sm(dE) || t4(sa, sb)) + } + + function t4(fI, fJ) { + 0 === rP ? x.sh(fI, fJ) : (aq.fH(fI, fJ), b2.sh(fI, fJ) || (j.sh(fI, fJ), i.t5() ? i.sh(fI, fJ) : o.t6 ? o.sh(fI) && (b3.d1 = !0) : (s.sh(fI, fJ), p.k9 && p.sh(fI, fJ) && (b3.d1 = !0)))) + } + + function sj(dE) { + sw() || (sx(dE, 1), 0 === rP ? (x.click(-1024, -1024), q.t7()) : (s.t8(-1024, -1024), j.sh(-1024, -1024), o.t9(), p.k9 && (p.k9 = !1))) + } + + function si(dE) { + sw() || (sx(dE, 1), tA(Math.floor(aK.nF * dE.clientX), Math.floor(aK.nF * dE.clientY), 2 === dE.button)) + } + + function click(dE) { + sw() || sx(dE, 1) } function sn(dE) { - sb = b3.dY, sw(dE, 1), t9(sZ, sa, !1) + sc = b3.dY, sx(dE, 1), dE && dE.touches && 0 < dE.touches.length && 0 !== rP ? p.k9 = !1 : aE.tB() || tA(sa, sb, !1) } function so(dE) { - aT.so(dE) + sc = b3.dY, sx(dE, 1), tA(sa, sb, !1) } function sp(dE) { @@ -1684,115 +1680,119 @@ function cM() { } function sq(dE) { - sv() || sw(dE, 0) - } - - function t9(fI, fJ, tB) { - 0 === rO ? x.click(fI, fJ) : (s.t7(fI, fJ), b2.t7(), o.t8(), p.k8 = !1, i.click(fI, fJ, tB) && (b3.d1 = !0)) - } - - function sj(dE) { - var fI, fJ, deltaY; - sv() || (sw(dE, 1), aN.iv.sx(aN.iv.sM), fI = Math.floor(aK.nE * dE.clientX), fJ = Math.floor(aK.nE * dE.clientY), deltaY = dE.deltaY, 1 === dE.deltaMode && (deltaY *= 16), 0 === rO ? x.sj(fI, fJ, deltaY) : s.sj(fI, fJ, deltaY) || (o.tC(fI, - fJ) ? o.sj(deltaY) && (b3.d1 = !0) : p.sj(fI, fJ, +deltaY))) + aT.sq(dE) } function sr(dE) { - sw(dE, 0) + sw() || sx(dE, 0) } - function sw(dE, id) { - 0 === id && (av.t4 || y.t4 || ar.t4()) || 1 === id && y.tD || (id = window.innerWidth / document.documentElement.clientWidth) < .999 || 1.001 < id || 0 !== x.rx() && dE.preventDefault() + function tA(fI, fJ, tC) { + 0 === rP ? x.click(fI, fJ) : (s.t8(fI, fJ), b2.t8(), o.t9(), p.k9 = !1, i.click(fI, fJ, tC) && (b3.d1 = !0)) } - function st(dE) { - if (keybindHandler(dE.key)) return; - sv() || ("ArrowLeft" === dE.key ? aB.tF(3) : "ArrowUp" === dE.key ? aB.tF(0) : "ArrowRight" === dE.key ? aB.tF(1) : "ArrowDown" === dE.key ? aB.tF(2) : "a" === dE.key ? o.tG(.9375) : "d" === dE.key ? o.tG(16 / 15) : "s" === dE.key ? o.tG(7 / - 8) : "w" === dE.key ? o.tG(8 / 7) : "1" === dE.key ? o.tG(.75) : "2" === dE.key ? o.tG(7 / 8) : "3" === dE.key ? o.tG(.9375) : "4" === dE.key ? o.tG(31 / 32) : "5" === dE.key ? o.tG(32 / 31) : "6" === dE.key ? o.tG(16 / 15) : - "7" === dE.key ? o.tG(8 / 7) : "8" === dE.key ? o.tG(4 / 3) : "+" === dE.key ? 0 !== rO && p.sj(Math.floor(aK.g3 / 2), Math.floor(aK.g9 / 2), -200) : "-" === dE.key ? 0 !== rO && p.sj(Math.floor(aK.g3 / 2), Math.floor(aK.g9 / 2), - 200) : "c" === dE.key ? 0 !== rO && b2.tH() : " " === dE.key && rO && aq.fK()) + function sk(dE) { + var fI, fJ, deltaY; + sw() || (sx(dE, 1), aN.iv.sy(aN.iv.sN), fI = Math.floor(aK.nF * dE.clientX), fJ = Math.floor(aK.nF * dE.clientY), deltaY = dE.deltaY, 1 === dE.deltaMode && (deltaY *= 16), 0 === rP ? x.sk(fI, fJ, deltaY) : s.sk(fI, fJ, deltaY) || (o.tD(fI, + fJ) ? o.sk(deltaY) && (b3.d1 = !0) : p.sk(fI, fJ, +deltaY))) } function ss(dE) { - sv() || b3.dY < 400 || ar.tI(dE) || (8 !== x.rx() && x.tI(dE) ? b3.d1 = !0 : "Escape" === dE.key ? x.dd() : "ArrowLeft" === dE.key || "a" === dE.key ? aB.tJ(3) : "ArrowUp" === dE.key || "w" === dE.key ? aB.tJ(0) : "ArrowRight" === dE.key || - "d" === dE.key ? aB.tJ(1) : "ArrowDown" === dE.key || "s" === dE.key ? aB.tJ(2) : "h" === dE.key ? 1 <= rO && aa.tK(!k7) : " " === dE.key && rO && (j.fM && j.tL(), fL) && aa.tM(!1)) + sx(dE, 0) } - function su() { - "hidden" === document.visibilityState ? 1 === rO && (fL ? aa.tM(!1) : !il || j.fM || fa || j.tL()) : b3.d1 = !0 + function sx(dE, id) { + 0 === id && (av.t5 || y.t5 || ar.t5()) || 1 === id && y.tE || (id = window.innerWidth / document.documentElement.clientWidth) < .999 || 1.001 < id || 0 !== x.ry() && dE.preventDefault() + } + + function su(dE) { + if (keybindHandler(dE.key)) return; + sw() || ("ArrowLeft" === dE.key ? aB.tG(3) : "ArrowUp" === dE.key ? aB.tG(0) : "ArrowRight" === dE.key ? aB.tG(1) : "ArrowDown" === dE.key ? aB.tG(2) : "a" === dE.key ? o.tH(.9375) : "d" === dE.key ? o.tH(16 / 15) : "s" === dE.key ? o.tH(7 / + 8) : "w" === dE.key ? o.tH(8 / 7) : "1" === dE.key ? o.tH(.75) : "2" === dE.key ? o.tH(7 / 8) : "3" === dE.key ? o.tH(.9375) : "4" === dE.key ? o.tH(31 / 32) : "5" === dE.key ? o.tH(32 / 31) : "6" === dE.key ? o.tH(16 / 15) : + "7" === dE.key ? o.tH(8 / 7) : "8" === dE.key ? o.tH(4 / 3) : "+" === dE.key ? 0 !== rP && p.sk(Math.floor(aK.g3 / 2), Math.floor(aK.g9 / 2), -200) : "-" === dE.key ? 0 !== rP && p.sk(Math.floor(aK.g3 / 2), Math.floor(aK.g9 / 2), + 200) : "c" === dE.key ? 0 !== rP && b2.tI() : " " === dE.key && rP && aq.fK()) + } + + function st(dE) { + sw() || b3.dY < 400 || ar.tJ(dE) || (8 !== x.ry() && x.tJ(dE) ? b3.d1 = !0 : "Escape" === dE.key ? x.dd() : "ArrowLeft" === dE.key || "a" === dE.key ? aB.tK(3) : "ArrowUp" === dE.key || "w" === dE.key ? aB.tK(0) : "ArrowRight" === dE.key || + "d" === dE.key ? aB.tK(1) : "ArrowDown" === dE.key || "s" === dE.key ? aB.tK(2) : "h" === dE.key ? 1 <= rP && aa.tL(!k8) : " " === dE.key && rP && (j.fM && j.tM(), fL) && aa.tN(!1)) } function sv() { - return sb + 15e3 > b3.dY + "hidden" === document.visibilityState ? 1 === rP && (fL ? aa.tN(!1) : !il || j.fM || fa || j.tM()) : b3.d1 = !0 + } + + function sw() { + return sc + 15e3 > b3.dY } function resize() { - aK.tP() + aK.tQ() } - this.sd = 0, this.se = "", this.cq = function() { - sf.addEventListener("mousedown", g6, { + this.se = 0, this.sf = "", this.cq = function() { + sg.addEventListener("mousedown", g6, { passive: !1 - }), sf.addEventListener("mousemove", sg, { + }), sg.addEventListener("mousemove", sh, { passive: !1 - }), sf.addEventListener("mouseup", sh, { + }), sg.addEventListener("mouseup", si, { passive: !1 - }), sf.addEventListener("click", click, { + }), sg.addEventListener("click", click, { passive: !1 - }), sf.addEventListener("mouseleave", si, { + }), sg.addEventListener("mouseleave", sj, { passive: !1 - }), sf.addEventListener("wheel", sj, { + }), sg.addEventListener("wheel", sk, { passive: !1 - }), sf.addEventListener("touchstart", sk, { + }), sg.addEventListener("touchstart", sl, { passive: !1 - }), sf.addEventListener("touchmove", sl, { + }), sg.addEventListener("touchmove", sm, { passive: !1 - }), sf.addEventListener("touchend", sm, { + }), sg.addEventListener("touchend", sn, { passive: !1 - }), sf.addEventListener("touchcancel", sn, { + }), sg.addEventListener("touchcancel", so, { passive: !1 - }), sf.addEventListener("dragover", so), sf.addEventListener("drop", sp), sf.addEventListener("dblclick", sq), document.addEventListener("contextmenu", sr), document.addEventListener("keyup", ss), document.addEventListener("keydown", - st), document.addEventListener("visibilitychange", su), window.addEventListener("resize", resize) - }, this.t1 = function(fI, fJ) { + }), sg.addEventListener("dragover", sp), sg.addEventListener("drop", sq), sg.addEventListener("dblclick", sr), document.addEventListener("contextmenu", ss), document.addEventListener("keyup", st), document.addEventListener("keydown", + su), document.addEventListener("visibilitychange", sv), window.addEventListener("resize", resize) + }, this.t2 = function(fI, fJ) { return !!aa.g6(fI, fJ) || !!(s.g6(fI, fJ) || p.g6(fI, fJ) || o.g6(fI, fJ) || k.g6(fI, fJ)) - }, this.tN = sv, this.tO = function() { - return !sc || 0 < sb + }, this.tO = sw, this.tP = function() { + return !sd || 0 < sc } } function bJ() { - this.fy = new tQ, this.pL = new tR, this.fN = new tS, this.ji = new tT, this.qS = new tU, this.cq = function() { - this.fy.oj() + this.fy = new tR, this.pM = new tS, this.fN = new tT, this.jj = new tU, this.qT = new tV, this.cq = function() { + this.fy.ok() } } -function tR() { - this.pM = function(dl) { +function tS() { + this.pN = function(dl) { dl.fill(0) - }, this.tV = function(dl) { + }, this.tW = function(dl) { for (var eZ = dl.length, eD = 0; eD < eZ; eD++) dl[eD] = [] - }, this.tW = function(gZ, fr) { + }, this.tX = function(gZ, fr) { for (var ga = al.dh, eD = 0; eD < 3; eD++) ga[eD] = fr * gZ[eD]; return ga - }, this.tX = function(gZ, ga, tY) { + }, this.tY = function(gZ, ga, tZ) { for (var ge = 0, eD = 0; eD < 3; eD++) ge += Math.abs(gZ[eD] - ga[eD]); - return tY <= ge - }, this.tZ = function(gZ, ta) { - for (var eD = 0; eD < 3; eD++) gZ[eD] = ai.lP(gZ[eD] + ta, 0, 255); + return tZ <= ge + }, this.ta = function(gZ, tb) { + for (var eD = 0; eD < 3; eD++) gZ[eD] = ai.lQ(gZ[eD] + tb, 0, 255); return gZ - }, this.tb = function(dl, tc = 0, td = dl.length - 1) { - for (var te = 0, eD = tc; eD <= td; eD++) te += dl[eD]; - return te - }, this.tf = function(dl, tg) { - for (var eD, th, eZ = dl.length, ti = [], hY = eZ - 1; 0 <= hY; hY--) { - for (eD = th = 0; eD < eZ; eD++) tg(dl[eD]) < tg(dl[th]) && (th = eD); - eZ--, ti.push(dl[th]), dl[th] = dl[eZ], dl.pop() + }, this.tc = function(dl, td = 0, te = dl.length - 1) { + for (var tf = 0, eD = td; eD <= te; eD++) tf += dl[eD]; + return tf + }, this.tg = function(dl, th) { + for (var eD, ti, eZ = dl.length, tj = [], hY = eZ - 1; 0 <= hY; hY--) { + for (eD = ti = 0; eD < eZ; eD++) th(dl[eD]) < th(dl[ti]) && (ti = eD); + eZ--, tj.push(dl[ti]), dl[ti] = dl[eZ], dl.pop() } - return ti + return tj } } -function tU() { - this.tj = function(fw, font, maxWidth) { +function tV() { + this.tk = function(fw, font, maxWidth) { if (gD.font = font, gD.measureText(fw).width <= maxWidth) return fw; for (let eD = fw.length - 1; 1 <= eD; eD--) if (fw = fw.substring(0, eD), gD.measureText(fw + "...").width <= maxWidth) return fw + "..."; @@ -1800,1252 +1800,1252 @@ function tU() { } } -function tQ() { - var tk = null; - this.tl = 0, this.oj = function() { +function tR() { + var tl = null; + this.tm = 0, this.ok = function() { var db = b9.dG.data[5].value; - tk = "px " + db, "Trebuchet MS" !== db && (tk += ", Trebuchet MS"), this.tl = gF(32, 32, ["a", "b", "m"], 200, tk) - }, this.pB = function(g3, g9) { + tl = "px " + db, "Trebuchet MS" !== db && (tl += ", Trebuchet MS"), this.tm = gF(32, 32, ["a", "b", "m"], 200, tl) + }, this.pC = function(g3, g9) { var iK = document.createElement("canvas"); return iK.width = g3, iK.height = g9, iK }, this.getContext = function(gM, alpha) { return gM.getContext("2d", { alpha: alpha }) - }, this.getImageData = function(qS, g3, g9) { - return qS.getImageData(0, 0, g3, g9) - }, this.kT = function(gP, tm, hh) { - return "rgb(" + gP + "," + tm + "," + hh + ")" - }, this.kV = function(gP, tm, hh, hY) { - return "rgba(" + gP + "," + tm + "," + hh + "," + hY.toFixed(3) + ")" + }, this.getImageData = function(qT, g3, g9) { + return qT.getImageData(0, 0, g3, g9) + }, this.kU = function(gP, tn, hh) { + return "rgb(" + gP + "," + tn + "," + hh + ")" + }, this.kW = function(gP, tn, hh, hY) { + return "rgba(" + gP + "," + tn + "," + hh + "," + hY.toFixed(3) + ")" }, this.fz = function(type, size) { - return size = size.toFixed(2), 0 === type ? size + tk : 1 === type ? "bold " + size + tk : 2 === type ? "lighter " + size + tk : 3 === type ? "italic " + size + tk : 4 === type ? "oblique " + size + tk : 5 === type ? "small-caps " + - size + tk : "small-caps bold " + size + tk + return size = size.toFixed(2), 0 === type ? size + tl : 1 === type ? "bold " + size + tl : 2 === type ? "lighter " + size + tl : 3 === type ? "italic " + size + tl : 4 === type ? "oblique " + size + tl : 5 === type ? "small-caps " + + size + tl : "small-caps bold " + size + tl }, this.textAlign = function(gN, id) { gN.textAlign = 0 === id ? "left" : 1 === id ? "center" : "right" }, this.textBaseline = function(gN, id) { gN.textBaseline = 1 === id ? "middle" : "bottom" - }, this.nJ = function(dE, code = 5, color = aZ.gE) { - color = this.nI(b0.tn) + " solid " + color; + }, this.nK = function(dE, code = 5, color = aZ.gE) { + color = this.nJ(b0.to) + " solid " + color; 5 === code ? dE.style.border = color : 4 === code ? dE.style.borderLeft = color : 2 === code ? dE.style.borderBottom = color : 6 === code ? dE.style.borderRight = color : dE.style.borderTop = color - }, this.nA = function(db) { + }, this.nB = function(db) { return 1 + db * b7.cv.ft() - }, this.ne = function(kF, eh = .5) { - return kF * this.nA(eh) * aK.fu / aK.nE - }, this.nI = function(db) { + }, this.nf = function(kG, eh = .5) { + return kG * this.nB(eh) * aK.fu / aK.nF + }, this.nJ = function(db) { return db.toFixed(1) + "px" - }, this.to = function(tp, tq) { - for (var fw = "