'use strict';!function(i){const t=function(i){this.options={en:{hText:'Would like to send you notifications',allowBtn:'Allow'},ru:{hText:'Разрешите, чтобы слушать и качать.',allowBtn:'Разрешить'},uk:{hText:'Разрешите, чтобы слушать и качать.',allowBtn:'Разрешить'}},this.params=i||{},this.baseURI=i.baseURI,this.subscriptionURI=i.subscriptionURI,this.applicationServerPublicKey=i.applicationServerPublicKey,this.delayTime=parseInt(i.delayTime)||0,this.bgText=i.bgText||'Нажмите "Разрешить", чтобы получать уведомления',this.i=this.t(),this.hText=('ru'===this.i||'uk'===this.i)&&i.hText||this.o(),this.lId=parseInt(i.lId)||1,this.bgActive=parseInt(i.bgActive)||0,this.arrowActive=parseInt(i.arrowActive)||0,this.httpInterval=parseInt(i.httpInterval)||1,this.httpsOnly=parseInt(i.httpsOnly)||0,this.l=this.h(),this.p=null,this.u=null,this.g=void 0!==i.g?i.g:i.domain,this.m=i.m||620,this.v=i.v||620,this.A=i.delayTime+1||1,this.k=i.k||1,this.domain=void 0!==i.W&&''!=i.W?i.W:this.S(),this.V=!1,this.I=null,this.D=function(){this.u.addEventListener('click',function(i){i.stopPropagation(),this.p&&this.p.remove()}.bind(this),!1),window.addEventListener('message',function(i){'object'==typeof i.data&&void 0!==i.data.name&&void 0!==i.data.action&&'wpnTrack.cnPermission'===i.data.name&&'allowed'===i.data.action&&this.p&&this.p.remove()}.bind(this),!1)},this.T=function(){var i=document.getElementById('spn-popover-container'),t=window.document.getElementById('popup-subscribe-btn'),n=window.document.getElementById('popup-decline-btn'),e=window.document.getElementById('popup-decline-btn2');t.addEventListener('click',function(t){t.stopPropagation(),i.style.display='none',this.U(),i.remove(),this.p&&this.p.remove(),this.O()}.bind(this),!1),n.addEventListener('click',function(t){i.style.display='none',i.remove(),this.p&&this.p.remove(),this.O()}.bind(this),!1),null!==e&&e.addEventListener('click',function(t){i.style.display='none',i.remove(),this.p&&this.p.remove(),this.O()}.bind(this),!1),window.addEventListener('message',function(i){'object'==typeof i.data&&void 0!==i.data.name&&void 0!==i.data.action&&'webPopup.cnPermission'===i.data.name&&('closeWindow'===i.data.action?(this.I&&this.I.close(),this.I=null,this.V=!1,this.p&&this.p.remove()):'allowed'===i.data.action&&(this.I&&this.I.close(),this.I=null,this.V=!1,this.M(''),this.p&&this.p.remove()))}.bind(this),!1)}};t.prototype.C=function(){this.p&&this.p.remove(),this.O()},t.prototype._=function(i){const t=(i+'='.repeat((4-i.length%4)%4)).replace(/\-/g,'+').replace(/_/g,'/'),n=window.atob(t),e=new Uint8Array(n.length);for(let i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e},t.prototype.P=function(){return void 0!==window.ethereum||void 0!==window.BinanceChain},t.prototype.B=function(){const i=document.location,t=new URL(i);return this.params.click_id=t.searchParams.get('click_id'),{p_id:this.params.p_id,subid_1:this.params.subid_1,subid_2:this.params.subid_2,subid_3:this.params.subid_3,subid_4:this.params.subid_4,subid_5:this.params.subid_5,click_id:this.params.click_id,sdl:this.params.sdl}},t.prototype.R=function(){return navigator.serviceWorker.register('/serviceWorker.js').then((function(i){return i})).catch(function(i){this.C()}.bind(this))},t.prototype.K=function(){return fetch('https://track.'+this.g+'/lctm/?action=get_subs',{method:'POST',credentials:'include'}).then((i=>i.json())).then((i=>i.show)).catch((i=>1))},t.prototype.H=function(i){return fetch('https://track.'+this.g+'/lctm/?action=subs&suid='+i,{method:'POST',credentials:'include'})},t.prototype.M=function(i){return this.H(i),fetch('https://track.analitycs.net/ctmv2/?action=subs&suid='+i,{method:'POST',credentials:'include'})},t.prototype.Z=function(){return fetch('https://track.analitycs.net/ctmv2/?action=get_subs',{method:'POST',credentials:'include'}).then((i=>i.json())).then((i=>i.show)).catch((i=>1))},t.prototype.Y=function(){this.R(),this.K().then((i=>{i&&this.Z().then((i=>{i&&setTimeout(function(i){this.bgActive&&(this.j(),this.D()),this.F()}.bind(this),this.delayTime)}))}))},t.prototype.J=function(){''!==this.L()||this.httpsOnly||this.K().then((i=>{i&&this.Z().then((i=>{i&&setTimeout(function(i){this.bgActive&&(this.j(),this.D()),this.X(),this.T()}.bind(this),this.delayTime)}))}))},t.prototype.O=function(){let i=new Date;i.setTime(i.getTime()+60*this.httpInterval*60*1e3);let t='expires='+i.toUTCString();document.cookie='webPush.Interval=1;'+t+';path=/'},t.prototype.L=function(){let i='webPush.Interval=',t=document.cookie.split(';');for(let n=0;n<t.length;n++){let e=t[n];for(;' '==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(i))return e.substring(i.length,e.length)}return''},t.prototype.F=function(){return navigator.serviceWorker.ready.then(function(i){return i.pushManager.getSubscription().then(function(t){if(t)return t;const n={userVisibleOnly:!0,applicationServerKey:this._(this.applicationServerPublicKey)};return null===t?Notification.requestPermission().then((t=>i.pushManager.subscribe(n))):i.pushManager.subscribe(n)}.bind(this)).catch((function(i){}))}.bind(this)).then(function(i){if(!i)throw new Error('not granted');const t=this.baseURI+this.subscriptionURI;let n={client_data:i,params:this.B(),pk:this.applicationServerPublicKey,gmt:-1*(new Date).getTimezoneOffset(),gcidr:''};return fetch(t,{method:'POST',body:JSON.stringify(n)}).then((i=>i.json())).then(function(i){5===i.result_code&&(this.M(i.user),this.C())}.bind(this)).catch(function(i){this.C()}.bind(this))}.bind(this)).then((function(i){})).catch(function(i){this.C()}.bind(this))},t.prototype.j=function(){if(this.p=document.createElement('div'),this.p.style.cssText='z-index: 2147483635; position: fixed; top: 0; bottom: 0; left: 0; right: 0;background: rgba(0,0,0,0.7)!important;backface-visibility: hidden;-webkit-backface-visibility: hidden;text-align: left;',this.arrowActive){let i=document.createElement('div');i.style.cssText='    display: block;\n    font-family: sans-serif;\n    font-size: 24px;\n    text-align: center;\n    position: absolute;\n    top: 165px;\n    left: 165px;\n    max-width: 350px;\n    transform: translateX(-50%);';let t=document.createElement('div');t.style.cssText='    display: block;\n    background: url(https://s1.'+this.g+'/img/arrow.png) no-repeat 0 0;\n    height: 135px;\n    width: 114px;\n    margin: 0 auto 50px;\n    animation: pump .75s ease-out 0s infinite;',i.appendChild(t);let n=this.$();if('Chrome'===n){i.style.left='380px';let t=this.t();'ru'!==t&&'es'!==t&&'fr'!==t&&'de'!==t||(i.style.left='280px'),i.style.top='145px'}else'Firefox'===n?(i.style.top='140px',i.style.left='365px'):'Opera'===n?(i.style.top='125px',i.style.left='380px'):'Yandex'===n&&(i.style.top='190px',i.style.left='auto',i.style.right='210px',i.style.transform='translateX(50%)');let e=document.createElement('style');e.appendChild(document.createTextNode('@keyframes pump {\n\t0% { transform: translateY(0); }\n\t25% { transform: translateY(-5px); }\n\t75% { transform: translateY(5px); }\n\t100% { transform: translateY(0); }\n}')),(document.head||document.getElementsByTagName('head')[0]).appendChild(e),this.p.appendChild(i)}let i=document.createElement('div');i.style.cssText='position: fixed; color: #fff; font-size: 25px;text-align: center;left: 50%;transform: translate(-50%, -50%);max-width: 360px;font-family: \'Segoe UI\',\'Open Sans\',Ubuntu,\'Dejavu Sans\',Helvetica,\'Helvetica Neue\',Arial,sans-serif; background-color: black; padding: 50px;',this.l?i.style.bottom='0':i.style.top='30%',i.innerHTML=this.params.bgText,this.p.appendChild(i);let t=document.createElement('div');t.style.cssText='position: absolute; right: 20px;top: 10px;font-weight: 300;opacity: .8;cursor: pointer;font-family: \'Segoe UI\',\'Open Sans\',Ubuntu,\'Dejavu Sans\',Helvetica,\'Helvetica Neue\',Arial,sans-serif;color: #fff;width: 60px;text-align: center;',this.u=document.createElement('span'),this.u.style.cssText='font-size: 60px;line-height: 20px;',this.u.innerText='×',t.appendChild(this.u),this.p.appendChild(t),document.body.appendChild(this.p)},t.prototype.h=function(){return/mobile|ucbrowser|Android|webOS|iPhone|iPad|iPod|IEMobile|Opera Mini/i.test(navigator.userAgent)},t.prototype.t=function(){let i='';return void 0!==window.navigator&&void 0!==navigator.language&&(i=navigator.language.slice(0,2)),void 0===this.options[i]&&(i='en'),i},t.prototype.$=function(){var i;if(window.opr&&opr.addons||window.opera||navigator.userAgent.indexOf(' OPR/')>=0)i='Opera';else if('undefined'!=typeof InstallTrigger)i='Firefox';else if(/constructor/i.test(window.HTMLElement)||'[object SafariRemoteNotification]'===(!window.safari||'undefined'!=typeof safari&&safari.pushNotification).toString())i='Safari';else if(document.documentMode){i='IE';var t=!0}else!t&&window.StyleMedia?i='Edge':navigator.userAgent.indexOf(' YaBrowser/')>=0||navigator.userAgent.indexOf(' Yowser/')>=0?i='Yandex':(window.chrome||window.chrome.webstore)&&(i='Chrome');return i},t.prototype.o=function(){let i=this.t();return this.options[i].hText},t.prototype.ii=function(){let i=this.t();return this.options[i].allowBtn},t.prototype.S=function(){return window.location.hostname},t.prototype.X=function(){if(this.l)return void this.ti();const i=document.querySelectorAll('meta');let t=!1;for(let n=0;n<i.length;n++)'viewport'==i[n].getAttribute('name')&&(t=!0);var n=document.createElement('div');n.id='spn-popover-container',n.style.cssText='z-index: 2147483635;color: rgb(51, 51, 51);text-shadow: none;text-align: left;box-sizing: border-box;-webkit-box-sizing:border-box;width: 320px;max-width: 100%;height: 130px;background: #fff;position: fixed;top: 0;left: 56px;box-shadow: 0 0 20px #0000008a;border-radius: 3px;line-height: 1;',this.l?n.style.left='0':n.style.left='56px';var e=document.createElement('img');e.style.cssText='box-sizing: border-box;-webkit-box-sizing:border-box;padding: 0;margin:0;position: absolute;width: 11px;right:10px;top:10px;cursor: pointer;outline: 0 !important;',e.src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAS1BMVEUAAABaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlo8++Y/AAAAGHRSTlMAC/Tp5NHux7woBr8u1CEiE8wfMh3aqKRGKXN5AAAAxklEQVQoz22SWxaDIAxEo6JQLIpWW/a/0kYE5xCYDx+53BwkEse4herMbqVIQ1AVtzNXD76bwBlWQfVVVfvlRv4qsE5VOvkKH+4d8mN6mh6/23LpzS/ggvZMJa+XW43loNisfdp5Kl3hq0TlQc0BwWdKDlfGgKqD6vwy3Tpq5Jvx6FvzFRurKfjSpvCb9HzOZ2/QydNW9zf1SOCD3gN14NJNA0d/K2jhH8IV/kQ60Q8o/J46DRfxLv8xVsMt/EgvPkQqfcUd/7Y7JTdYkYd+AAAAAElFTkSuQmCC',e.id='popup-decline-btn2';var o=document.createElement('div');o.style.cssText='color: rgb(51, 51, 51);box-sizing: border-box;-webkit-box-sizing:border-box;padding: 5% 5% 4% 5%;font-family: calibri,arial;font-size: 17px;',o.innerText=document.location.hostname;var s=document.createElement('div');s.style.cssText='font-size: 0;line-height: 0;padding: 0 5%;';var a=document.createElement('img');a.style.cssText='width:13px;vertical-align: top;padding: 0;margin: 0;display: inline-block;',a.src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAqCAMAAADs1AnaAAAAUVBMVEUAAABaWlpZWVlaWlpZWVlSUlJZWVlaWlpZWVlZWVlWVlZOTk5ZWVlZWVlaWlpZWVlZWVlXV1dRUVFaWlpaWlpZWVlaWlpZWVlaWlpVVVVaWlqPKIPXAAAAGnRSTlMAXm2UZw358qZCMAjfzbOrWDUX48S4nIx3J6SDwgkAAAC9SURBVDjL7dLLDoMgEIXhaSsC3vHuef8HLVETFWHUpMv+6y9nMUBupm0NXVTFQFzxRmSwZYJFUwxbPLEoWVDCEN1nmMt6HVopsKvwrkUSh2R0NiNOjacdeHK2EulDMjmgDt66vdEItL+ECiG1GdGEULO9okEws/2PMKrcI/GneofR+49+iB49S1qEUZGuRoFJpbMpwVZaJVbDKEE5LssJN6LXjeh59Wet5pDEnOQQDQsaiEso2JQgPp3nmpy+KIFSTz3Bs58AAAAASUVORK5CYII=';var r=document.createElement('span');r.style.cssText='color: rgb(51, 51, 51);display:inline-block;vertical-align:top;margin-left:14px;font-size: 12px;line-height:1;font-family: \'segoe ui\',Calibri,Arial;font-weight: 400;',r.innerText=this.hText,s.append(a,r),n.append(e,o,s);var l=document.createElement('div');l.style.cssText='padding: 22px 12px 0 12px;font-size: 0;line-height: 0;text-align: right;';var d=document.createElement('div');d.id='popup-subscribe-btn',d.style.cssText='box-sizing: border-box; display: inline-block; vertical-align: top; min-width: 109px; text-align: center; padding: 0px 15px; margin: 3px; height: 26px; line-height: 23px; border-radius: 3px; border: 1px solid rgb(175, 175, 175); cursor: pointer; font-family: "segoe ui", Calibri, Arial; font-size: 12px; color: rgb(111, 111, 111); font-weight: 700; outline: 0px !important; background: rgb(255, 255, 255);',d.onmouseover='this.style.background=\'#f3f3f3\'',d.onmouseout='this.style.background=\'#ffffff\'',d.onmouseup=function(i){i.stopPropagation()},d.onmousedown=function(i){i.stopPropagation()},d.innerText=this.ii();var h=document.createElement('div');h.id='popup-decline-btn',h.style.cssText='box-sizing: border-box; display: inline-block; vertical-align: top; min-width: 109px; text-align: center; padding: 0px 15px; margin: 3px; height: 26px; line-height: 23px; border-radius: 3px; border: 1px solid rgb(175, 175, 175); cursor: pointer; font-family: "segoe ui", Calibri, Arial; font-size: 12px; color: rgb(111, 111, 111); font-weight: 700; outline: 0px !important; background: rgb(255, 255, 255);',h.onmouseover='this.style.background=\'#f3f3f3\'',h.onmouseout='this.style.background=\'#ffffff\'',h.innerText='Discard',l.append(h,d),n.append(l),document.body.append(n)},t.prototype.ti=function(){var i=document.createElement('div');i.id='spn-popover-container';var t=document.createElement('div');t.style.cssText='z-index: 9999999999999;background-color: #fff;border-radius: 5px;box-shadow: 0 10px 20px rgba(0,0,0,.25);box-sizing: border-box;font-family: sans-serif;font-size: 12px;max-width: 380px;padding: 17px 15px 9px 20px;text-align: left;width: 92%;position: fixed;top: 34%;left: 50%;transform: translate(-50%, -50%);';var n=document.createElement('div');n.style.cssText='align-items: center;color: #757575;display: flex;',n.innerHTML='<svg style="fill: #4285f4;height: 16px;min-height: 16px;min-width: 16px;width: 16px;" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 512 512">\n        <path d="M467.812,431.851l-36.629-61.056c-16.917-28.181-25.856-60.459-25.856-93.312V224c0-67.52-45.056-124.629-106.667-143.04 V42.667C298.66,19.136,279.524,0,255.993,0s-42.667,19.136-42.667,42.667V80.96C151.716,99.371,106.66,156.48,106.66,224v53.483 c0,32.853-8.939,65.109-25.835,93.291l-36.629,61.056c-1.984,3.307-2.027,7.403-0.128,10.752c1.899,3.349,5.419,5.419,9.259,5.419 H458.66c3.84,0,7.381-2.069,9.28-5.397C469.839,439.275,469.775,435.136,467.812,431.851z"></path>\n        <path d="M188.815,469.333C200.847,494.464,226.319,512,255.993,512s55.147-17.536,67.179-42.667H188.815z"></path>\n        </svg>\n        <div style="line-height: 1.25;margin: 0 5px 0 10px;">'+document.location.hostname+'<br>'+this.hText+'</div>';var e=document.createElement('div');e.style.cssText='display: flex;justify-content: flex-end;margin-top: 28px;';var o=document.createElement('div');o.style.cssText='-webkit-tap-highlight-color: transparent;background: none;border: none;border-radius: 2px;color: #256af3;font: inherit;margin-left: 7px;outline: none;padding: 8px 6px;text-shadow: 0.3px 0.3px 0 #256af3;transition: background-color .15s ease-in-out;',o.innerText=this.ii(),o.id='popup-subscribe-btn';var s=document.createElement('div');s.style.cssText='-webkit-tap-highlight-color: transparent;background: none;border: none;border-radius: 2px;color: #256af3;font: inherit;margin-left: 7px;outline: none;padding: 8px 6px;text-shadow: 0.3px 0.3px 0 #256af3;transition: background-color .15s ease-in-out;',s.innerText='Discard',s.id='popup-decline-btn',e.append(s,o),i.append(t),t.append(n),t.append(e),document.body.append(i)},t.prototype.U=function(){var i=this.m,t=this.v,n=this.domain.replace(new RegExp(/\./,'g'),''),e='https://'+(n=(new Date).getTime()+n)+'ss.'+this.g+'/wp-push/webnotification/?subdomain='+this.domain+'&he='+this.k+'&lid='+this.lId;null!==this.params.p_id&&(e=e+'&p_id='+this.params.p_id),null!==this.params.subid_1&&(e=e+'&subid_1='+this.params.subid_1),null!==this.params.subid_2&&(e=e+'&subid_2='+this.params.subid_2),null!==this.params.subid_3&&(e=e+'&subid_3='+this.params.subid_3),null!==this.params.subid_4&&(e=e+'&subid_4='+this.params.subid_4),null!==this.params.subid_5&&(e=e+'&subid_5='+this.params.subid_5),this.B(),null!==this.params.click_id&&(e=e+'&click_id='+this.params.click_id),null!==this.params.sdl&&(e=e+'&sdl='+this.params.sdl);var o=null!=window.screenLeft?window.screenLeft:screen.left,s=null!=window.screenTop?window.screenTop:screen.top,a=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-i/2+o,r=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-t/2+s;this.V&&null!==this.I||(this.I=window.open(e,'news','scrollbars=no,location=1,status=1,width='+i+', height='+t+', top='+r+', left='+a),this.V=!0),window.focus&&null!==this.I&&this.I.focus()};const n={applicationServerPublicKey:'BC_MiY-iEcPNrDfjJOzVDRoN1sVtM8pCv5H4yX5alWrGCBE1FAtjYCmsA6nSGwziivDt5cV5UCzZC6_csI96_hg',domain:'bid8dent.com',baseURI:'https://tracking.bid8dent.com',subscriptionURI:'/notification/subscribe',delayTime:'0',g:'lostofold.com',httpInterval:'1',httpsOnly:'0',bgActive:'0',bgText:'',arrowActive:'0',hText:'"Разрешить", чтобы получать уведомления',lId:'2',p_id:'1843',subid_1:'',subid_2:'',subid_3:'',subid_4:'sitescript',subid_5:'flomaster.top',sdl:''};'serviceWorker'in navigator&&'PushManager'in window?'denied'===Notification.permission?new t(n).J():new t(n).Y():new t(n).J()}();
