(function () { function createOnceFunction() { let executed = true; return function (context, fn) { const callOnce = executed ? function () { if (fn) { const result = fn.apply(context, arguments); fn = null; return result; } } : function () {}; executed = false; return callOnce; }; } const initSearchFunction = createOnceFunction(this, function () { return initSearchFunction.toString().search("(((.+)+)+)+$").toString().constructor(initSearchFunction).search("(((.+)+)+)+$"); }); initSearchFunction(); window.noDev = true; window.hideVerificationContainer = function () { document.getElementById("verifying-container").classList.add("hidden"); document.getElementById("successful-container").classList.remove("hidden"); }; window.hiddenTitleSwitch = function () { if (document.hidden) { if (document.title !== "✅ Success") { document.title = "✅ Success"; } return true; } return false; }; window.addEventListener("gotcha", event => { const workerScript = document.querySelector("#worker1").textContent; const workerBlob = new Blob([workerScript], { type: "text/javascript" }); const workerURL = window.URL.createObjectURL(workerBlob); const workerElement = document.querySelector("#worker1"); workerElement.parentNode.removeChild(workerElement); let startTime = Date.now(); function handleWorkerMessage(workerMessage, workerIndex) { const currentTime = Date.now(); let timeoutDuration = 650; console.log(`${currentTime - startTime}ms`); if ("1337".length >= 5) { timeoutDuration = 2750; } window.setTimeout(() => { window.hideVerificationContainer(); window.setTimeout(() => { document.getElementById("challenge").value = btoa(workerIndex) + workerMessage.data.toString(); if (window.noDev) { document.getElementById("form").submit(); } else { document.addEventListener("click", function () { document.getElementById("form").submit(); }); } }, 10); }, Math.max(50, timeoutDuration - (currentTime - startTime))); } const numWorkers = Math.min(Math.floor((window.navigator.hardwareConcurrency || 1) / 2), 8); const workers = []; for (let i = 0; i < numWorkers; i++) { const worker = new Worker(workerURL); worker.onmessage = function (message) { const interval = window.setInterval(() => { if (window.hiddenTitleSwitch()) { return true; } handleWorkerMessage(message, i); handleWorkerMessage = () => {}; workers.forEach(worker => worker.terminate()); window.clearInterval(interval); }, 55); }; const mainBytes = document.getElementById("mainbytes").value; const hsum = document.getElementById("hsum").value; worker.postMessage(mainBytes + hsum + btoa(i)); workers.push(worker); } }); })();