var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
  acc[i].addEventListener("click", function () {
    var _0x464538 = this.nextElementSibling;
    if (_0x464538.style.maxHeight) {
      _0x464538.style.maxHeight = null;
    } else {
      let _0x462939 = document.querySelectorAll(".accordion-div .accordion.active");
      for (let _0x3b36a2 = 0; _0x3b36a2 < _0x462939.length; _0x3b36a2++) {
        _0x462939[_0x3b36a2].classList.remove("active");
        _0x462939[_0x3b36a2].nextElementSibling.style.maxHeight = null;
      }
      this.classList.toggle("active");
      _0x464538.style.maxHeight = _0x464538.scrollHeight + "px";
    }
  });
}
document.getElementById("submitButton").addEventListener("click", function (_0x4f666d) {
  _0x4f666d.preventDefault();
  var _0x40a717 = document.getElementById("pilihan").value;
  var _0xd1df76 = document.getElementById("file");
  var _0x5efde0 = document.getElementById("connectionStatus");
  if (_0x40a717 === "0") {
    _0x5efde0.innerHTML = "<p>Silakan pilih server yang valid.</p>";
    return;
  }
  var _0x389357 = 0;
  function _0x383a7f() {
    _0x389357 += 1;
    _0xd1df76.value = _0x389357;
    _0xd1df76.textContent = _0x389357 + "%";
    if (_0x389357 < 100) {
      setTimeout(_0x383a7f, 20);
    } else {
      alert("Anda telah terhubung ke server " + _0x40a717);
      _0x5efde0.innerHTML = "<p>Selamat Bermain di <strong>Di Server Premium</strong>, Anda telah terhubung ke server: " + _0x40a717 + "</p>";
    }
  }
  _0x383a7f();
});