(()=>{var e={509:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([e.id,".gfpl-content{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:space-between}.gfpl-wrapper:hover .gfpl-label__link{opacity:1}.gfpl-link{display:block;height:100%;width:100%}.gfpl-text{bottom:0;color:#e6e6e6;left:0;position:absolute}.gfpl-title{font-weight:500;margin-bottom:3px}.gfpl-body{font-size:13px}.gfpl-img{display:block;height:100%;width:100%}.gfpl-overlay{animation:fadeIn .4s ease-in-out;background:rgba(0,0,0,.4);bottom:0;height:100%;left:0;overflow:visible;pointer-events:none;position:fixed;right:0;top:0;width:100%;z-index:9999999}.gfpl-bright{position:relative;z-index:999999999}.gfpl-close-button{align-items:center;background:#fff;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.25);cursor:pointer;display:none;height:20px;justify-content:center;margin-left:8px;outline:none;padding:0;width:20px}.gfpl-label{position:absolute;right:8px;z-index:1}.gfpl-label,.gfpl-label__link{align-items:center;display:flex;transition:all .2s ease-in-out}.gfpl-label__link{border-radius:1000px;opacity:.5;text-decoration:none}.gfpl-label__link svg{border-radius:100%;box-shadow:0 2px 6px rgba(0,0,0,.25)}.gfpl-label__link:hover{background:#dbdbdb;box-shadow:0 2px 6px rgba(0,0,0,.25)}.gfpl-label__link_text_show{background:#dbdbdb}.gfpl-label__link_text_show .gfpl-label__text{opacity:1;padding-left:11px}.gfpl-label__link:hover .gfpl-label__text{opacity:1}.gfpl-label__text{color:#848484;font-family:Inter,sans-serif;font-size:12px;font-weight:300;line-height:20px;margin:0;opacity:0;padding-left:19px;padding-right:11px;transition:all .2s ease-in-out}.gfpl-label__icon{border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.25)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",""]);const a=o},545:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([e.id,".slider-container{width:100%}.__slider{overflow:hidden}.__slider-track{display:flex;margin:0 auto;overflow-x:hidden;scroll-behavior:smooth;width:100%}.__slider-track::-webkit-scrollbar{width:0}.__slider-top{display:flex;justify-content:flex-end;margin:10px 0;width:100%}.__slide{margin:0 4px}.__slide:first-child,.__slide:last-child{margin-left:0}.__button,.__slide-container{align-items:center;display:flex;justify-content:center}.__button{background:none;border:none}.__disable-button{fill-opacity:.5;pointer-events:none}.__arrow-hidden{display:none}",""]);const a=o},939:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([e.id,".__inst-container{align-items:center;bottom:0;display:flex;flex-direction:column;left:0;position:fixed;z-index:9999999}.__inst-container__mobile{animation:moveInMobile 1s ease-in-out;background-color:rgba(0,0,0,.4);width:100%}.__inst-container__desktop{animation:moveInDesktop 1s ease-in-out;background-color:none;left:50%;transform:translate(-50%)}.__inst-container__inner{align-items:center;transform:translateY(4px)}.__inst-container__label{color:#fff;margin-bottom:2px;margin-top:2px;text-decoration:none;text-shadow:1px 1px 2px #000}.__inst-container__close_button{background-color:transparent;background:none;border:none;cursor:pointer;height:25px;position:absolute;right:0;top:12px;transform:translateY(-50%);width:25px;z-index:100}.__inst-container__close_button span{color:#fff;font-size:20px;text-shadow:1px 1px 2px #000}.__inst-container__close_button__mobile{background-color:#4e4d4d;border-radius:50%;box-sizing:border-box;height:20px;top:0;width:20px}.__inst-container__close_button__mobile span{color:#fff;font-size:20px;left:50%;position:absolute;text-shadow:1px 1px 2px #000;top:50%;transform:translate(-50%,-50%)}.__inst-container_hide__desktop{animation:moveOutDesktop .5s ease-out}.__inst-container_hide__mobile{animation:moveOutMobile .5s ease-out}@keyframes moveInDesktop{0%{transform:translate(-50%,100%)}to{transform:translate(-50%)}}@keyframes moveOutDesktop{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,100%)}}@keyframes moveInMobile{0%{transform:translateY(100%)}to{transform:translate(0)}}@keyframes moveOutMobile{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translateY(100%)}}",""]);const a=o},105:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([e.id,'.__bai-container{align-items:center;background-color:rgba(99,99,102,.5);bottom:0;display:none;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:100000000000000000}.__bai-popup__container{align-items:center;display:flex;flex-direction:column;position:relative}.__bai-popup__body,.__bai-popup__container{height:250px;width:300px}.__bai-popup__iframe{height:100%;max-width:100%;width:100%}.__bai-popup__btn{background-color:#efefef;border:none;border-radius:5px;cursor:pointer;margin-top:10px;padding:7px}.__bai-popup__close{background-color:crimson;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAD7UlEQVRIS51WW2wUZRQ+/9x31t2dvdAaNa0IKhASjQ82YhORmMaw+qBGExEUhMRbqC29SEMboUDatFV4aF0jBOVFDFaDuCQoaKuWSKohMZFYjQrRsu1Cd+bvrjvbueyMmTG73W5nd1Pncf5zvu+c7zv/mUFQ5hFFsYYiiGeMf+QwENRqYCmvFW4qWpI0zcvAs2colj3J8/xkKRjkdIAxXm7KyiFgyLB64ZKmjvzg0n+7CkYC2+FE0A/UquXAbqiTmQfuoYms+ZlOES2BQOCvYrxFBElJ2mZks5FM9BtCjnxEZ29I5ZoEsioI7lc3qVy43kAIbfcFAh8WJiwgSElSV1ZVO3FzH6Ne/KkscPEhW38fePtbNZJl9ngFoT93niewK1fVd6Wtexjt16tLAs8FU6vuAP/7BzSaY1+4yec7Yb23CSzNQdd/wY097FIrd+rEd3h3huG4uyzzbYLZWPyU/OXYxlR3hM4ncAzQtbdAxW4IBGCYC3i8e3eqrkfXfeqrWvYsskYRGcYfYvgVqtBQ+u7bIfBBD+COQ6CMjjtKxjWsA0/bdrjRsAPAnCchq0MQjA5pNMfVoiROts6Nfr8f7+rnFrW7/n4QepodSSxwobsRpPYBUL79cVEB/sFOa4Q7EJ6cGk0NHHsoc3rEsUrWgaQSuAXEP/kIuJueP4ek6Xgcv9hZpU1cKTk5hSSIocpWngOh16yAwJG9MYRnEplE+GWu0oWySPx9LQAIgdTS5yhLYYXWBQxF30kjnBDlxMaXXJUIbFkONtlmSu1vlTQ+R2IZHTo9mEZSLD6Nd3RVaxN/lpSoUHMgiJLGFwJYEvnf23cN4cnYSOrt4+szp74qOYrF0+JkfHEy/1QDeJq2nEVJKblrbmz8AH6911UcVG5aKpH4B7vS3IP37kayLN+myPIV8bHXqOz1xDwHgWDZF0chuT9S0tAcSWLLG6D/Pr+piZtDEPp8SKNYtua/XTR1/ZPM+QuPp94cml8V9qZCC26ok4bUyhrI/j0NpqLmj4WDjQq7oW7YV1292SaQJKmWMM0J3NTLKWOX/tcmzSVZXfn6WzM0x650u92x/LqeFcXNpqYfE7d10nqZiSrHTq+9E/xHuzWSoZ/zCMLH+XWdS8Ki2AGavm+2bYBeaid25b3NGiKpdl/QfziHueiTaXcCcGQu+h2RjpxgsvGZspJZhnp3blKYhnqDJImtHkE4WZjg+NG3/yZ0YyBLwBP6+M+q8vVF3tpVxgy2jSeCPqBXrwD24bo0XbeWQboxTHvcbTzPXyuuxpEgFyTL8q2aojwNmUwYEFoDNCNYfy2mrmFkwGVwsVGKYYbdbvdUqTb/BaDjzTn4MQ/EAAAAAElFTkSuQmCC");background-position:50%;background-repeat:no-repeat;background-size:cover;border:1px solid #fff;border-radius:100%;cursor:pointer;height:24px;position:absolute;right:-12px;top:-12px;width:24px;z-index:1}.__bai-show{display:flex}.__bai-overlay__wrapper{position:relative}.__bai-overlay{bottom:0;cursor:pointer;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:99999999999999}.__bai-elements{display:flex;flex-wrap:wrap;height:100%;justify-content:space-between}.__bai-element{height:125px;width:150px}.__bai-element iframe{transform:scale(.48);transform-origin:top left}.__bai-element:first-child:last-child{height:250px;width:100%}.__bai-element:first-child:last-child iframe{transform:none}',""]);const a=o},314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=s),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},601:e=>{"use strict";e.exports=function(e){return e[1]}},72:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},703:function(e){var t,n;t=-1,n={onVisible:function(e){var t=n.isSupported();if(!t||!n.hidden())return e(),t;var i=n.change((function(t,r){n.hidden()||(n.unbind(i),e())}));return i},change:function(e){if(!n.isSupported())return!1;var i=t+=1;return n._callbacks[i]=e,n._listen(),i},unbind:function(e){delete n._callbacks[e]},afterPrerendering:function(e){var t=n.isSupported(),i="prerender";if(!t||i!=n.state())return e(),t;var r=n.change((function(t,s){i!=s&&(n.unbind(r),e())}));return r},hidden:function(){return!(!n._doc.hidden&&!n._doc.webkitHidden)},state:function(){return n._doc.visibilityState||n._doc.webkitVisibilityState||"visible"},isSupported:function(){return void 0!==n._doc.hidden||void 0!==n._doc.webkitHidden},_doc:document||{},_callbacks:{},_change:function(e){var t=n.state();for(var i in n._callbacks)n._callbacks[i].call(n._doc,e,t)},_listen:function(){if(!n._init){var e="visibilitychange";n._doc.webkitVisibilityState&&(e="webkit"+e);var t=function(){n._change.apply(n,arguments)};n._doc.addEventListener?n._doc.addEventListener(e,t):n._doc.attachEvent(e,t),n._init=!0}}},e.exports?e.exports=n:this.Visibility=n}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={id:i,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{"use strict";window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var e=window.__adFormats,t=window.__formatsGetters;function i(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var o=e.apply(t,n);function a(e){i(o,r,s,a,l,"next",e)}function l(e){i(o,r,s,a,l,"throw",e)}a(void 0)}))}}var s=n(703),o=n.n(s),a=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}},l={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{l.set("__try",1),l.get("__try"),l.remove("__try")}catch(e){l=a}var c=l;function d(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t{var s="".concat(e).concat(n,"=").concat(encodeURIComponent(t[n]));return i!==r.length-1&&(s+="&"),s}),"");return"".concat(e,"?").concat(n)}(l,e.params),!0),a.timeout=e.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in a?a.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[n,i]=t.split(": ");return n?h(h({},e),{},{[null==n?void 0:n.toLowerCase()]:i}):e}),{}):null,r={data:e.responseType&&"text"!==e.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:i,config:e,request:a};!function(e,t,n){!n.status||n.status>=200&&n.status<300?e(n):t(p("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,r),a=null}},a.onabort=function(){a&&(n(p("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(p("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(p(t,e,"ECONNABORTED",a)),a=null},"setRequestHeader"in a&&function(e,t){var n;if(null!=e)if("object"!=typeof e&&(e=[e]),n=e,"[object Array]"===Object.prototype.toString.call(n))for(var i=0,r=e.length;i1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(h(h({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(h(h({},n),{},{url:e,method:"post",data:n.data?n.data:t}))}};function g(){if(window.TelegramWebviewProxy||window.TelegramWebview)return!0;var e=navigator.userAgent||navigator.vendor||window.opera,t=/safari/i.test(e)&&!/chrome/i.test(e),n=/iPhone|iPod|iPad/i.test(e)&&!window.MSStream&&!t,i=!(!window.webkit||!window.webkit.messageHandlers),r=t&&void 0===navigator.standalone,s=/android/i.test(e)&&(/wv/.test(e)||/Android.*Version\/[0-9]+\.[0-9]+/.test(e)),o=!(!window.Android&&!window.JSInterface);return n||i||r||s||o}function v(e){return new Promise((t=>{e||t({status:"error"});var n=new Image;n.crossOrigin="anonymous",n.src=e,n.onload=()=>t({status:"ok"}),n.onerror=()=>t({status:"error"})}))}var y="__ccuuid";function _(){var e=c.get(y);return e||(e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),c.set(y,e),e)}function w(){var e="cb_acce",t=c.get(e)||0;return t||window.addEventListener("devicemotion",(t=>{null!==t.accelerationIncludingGravity.x&&c.set(e,1)})),Number(t)}function k(e){return e.instantMessage?1:e.isStickyMode?2:e.isBrightMode?4:0}function x(e){var t,n,i,r,[s,o]=e.resolution,{vendor:a,model:l}=e.ua.device,d=e.magmaSourceId||e.sourceId,u=e.zoneId?d:e.subId,h=e.zoneId?e.spotId:e.spaceId,p=e.tubesAdTags||e.pageKeywords,m=window.top!==window.self,f=(m?document.referrer:document.URL).replace(/\s+/g,"").replace("justthegays.com","bestgayvids.com"),b=e.hasCryptoWallet?"cryptocurrency":"";return{imp:[{secure:"https:"===window.location.protocol?1:0,ext:{tag_ab:e.tagAbVersion,multi:e.isSmartCappingMode,user_keywords:b,id:Number(e.spaceId),spaceid:Number(h),type:e.type,idzone:e.zoneId,ad_tags:"".concat(p,",").concat(b),labels:null===(t=e.labels)||void 0===t?void 0:t.join(","),allowed_labels:null===(n=e.allowedLabels)||void 0===n?void 0:n.join(","),title:"",subid:String(u),refresh:e.refreshCount,utm1:e.utmSource,utm2:e.utmMedium,utm3:e.utmCampaign?String(e.utmCampaign):void 0,utm4:e.utmContent,mo:l,ve:a,spot_id:Number(e.spotId),multiple:e.multiple,is_iframe:m,refdomain:e.entryReferrerDomain,pl:e.placementTypeId,stratagem:e.stratagem,gyr:(i="cb_gyro",r=c.get(i)||0,r||window.addEventListener("deviceorientation",(e=>{null!==e.alpha&&c.set(i,1)})),Number(r)),accel:w(),ssp:e.sspId,btype:k(e),v2:e.isCloakingConfig,rchange:e.rchange,pos:e.openRTBPositionID,event_id:_(),approved_mainstream:Number(e.isApprovedMainStream),wl:Number(e.isAdultTag),testab:e.testAbId},banner:{w:e.width,h:e.height},metrics:{topics:e.topics}}],site:{id:String(e.spotId),cat:["IAB".concat(e.iabCategory)],page:f.replace(/%2F/g,"/").split("tgWebAppPlatform")[0],ctid:e.cabsId},device:{w:s,h:o},fp_params:e.fingerprintParams,user:{id:e.userId,fp:e.visitorId,fp_str:e.visitorIdString,ua_data:e.userAgentData,is_webview:g(),social_network:e.socialNetwork},ext:{dt:Date.now()}}}function S(e){if(!e)return null;var t=e.querySelector(".gfpl-close-button-container");return t?(t.innerHTML='\n \n \n \n \n \n ',t.firstElementChild):null}var C=n(72),I=n.n(C),E=n(825),A=n.n(E),T=n(659),L=n.n(T),M=n(56),B=n.n(M),N=n(540),P=n.n(N),R=n(113),U=n.n(R),O=n(509),D={};D.styleTagTransform=U(),D.setAttributes=B(),D.insert=L().bind(null,"head"),D.domAPI=A(),D.insertStyleElement=P(),I()(O.A,D),O.A&&O.A.locals&&O.A.locals;function j(e,t,n,i,r,s){return o=this,a=void 0,c=function(){var o,a,l,c,d,u,h,p,m,f,g,v,y;return function(e,t){var n,i,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]\n \n\n \n \n ')}(u?20:6),(S=document.createElement("div")).innerHTML=k.trim(),h=S.firstChild,n.ipv4CheckURL&&function(e){if(e.IPcheckURL){var t=new URL(e.IPcheckURL);t.pathname="in/dip",t.searchParams.append("event_id",e.eventId),b.get(t.toString())}}({IPcheckURL:n.ipv4CheckURL,eventId:_()}),!o)return[3,5];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,i.fetchCreatives({type:"banner",params:JSON.stringify(x(n)),proxyDomain:n.proxyDomain})];case 2:return p=w.sent(),m=p.length?p:[p],f=window.location.href,e.innerHTML=function(e,t){return'\n
\n
\n ')}(a,l).trim(),g=e.firstChild,m.forEach((function(e,t){var n=document.createElement("a");g.appendChild(n),n.outerHTML=function(e,t){var n=e.icon,i=e.image;return'\n \n \n \n ')}(e,f).trim(),g.getElementsByTagName("a")[t].addEventListener("click",(function(){e.click_url&&r.setEndpoint(e.click_url),e.comeback_url&&s.setComebackURL(e.comeback_url),s.handleClick(),r.sendClick(),setTimeout((function(){window.location.href=e.url}),0)}))})),[3,4];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:v=document.createElement("div"),y=function(e){var{url:t,width:n,height:i,bannerId:r}=e,s=document.querySelector('[data-cbi="'.concat(r,'"]'));s&&s.parentNode.removeChild(s);var o=document.createElement("iframe");return o.setAttribute("data-cbi",r),o.src=t,o.width=n,o.height=i,o.position="relative",o.name=r,o.setAttribute("allowtransparency",!0),o.frameBorder="no",o.setAttribute("style","padding:0;margin:0;border:0;"),o.marginheight="0",o.marginwidth="0",o.scrolling="no",o}({url:t,width:a,height:l,bannerId:c}),v.classList.add("gfpl-wrapper"),v.dataset.role="content",v.style.position="relative",v.style.display="flex",v.style.width="".concat(a,"px"),v.style.height="".concat(l,"px"),e.appendChild(v),v.appendChild(y),v.appendChild(h),r.handleBlurClick(),s.handleBlur(),w.label=6;case 6:return[2,e]}var k,S}))},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(t){var r;t.done?e(t.value):(r=t.value,r instanceof l?r:new l((function(e){e(r)}))).then(n,i)}r((c=c.apply(o,a||[])).next())}));var o,a,l,c}function q(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var z=new WeakSet;class W{constructor(e,t,n){var i,s,o=this;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=z),s.add(i),this.selectorPrefix="_ab-io",q(z,this,F).call(this,e,t),q(z,this,V).call(this),this.progressLinear.addEventListener("animationend",r((function*(){yield n(),o.progressLinear.classList.toggle("active"),o.progressLinear.offsetHeight,o.progressLinear.classList.toggle("active")})),!1)}stopProgressBar(){var e=this;return r((function*(){e.progressLinear.classList.add("".concat(e.selectorPrefix,"_progress-stop"))}))()}startProgressBar(){var e=this;return r((function*(){e.progressLinear.classList.remove("".concat(e.selectorPrefix,"_progress-stop"))}))()}}function F(e,t){this.wrapper=e.querySelector("[data-cbic]"),this.wrapper||(e.setAttribute("style","position: relative;"),this.wrapper=document.createElement("div"),this.wrapper.setAttribute("style","width: ".concat(t.width,"px; height: ").concat(t.height,"px; top: 0; position: absolute; pointer-events: none;")),this.wrapper.setAttribute("data-cbic",""),e.appendChild(this.wrapper))}function H(){if(!document.getElementById(this.selectorPrefix)){var e=document.createElement("style");e.id=this.selectorPrefix,e.textContent="\n .".concat(this.selectorPrefix,"_progress {\n height: 4px;\n border-radius: 4px;\n margin: 0 5px;\n position: relative;\n background-image: -webkit-linear-gradient(left,\n rgba(255,255,255,.5) 0%,\n rgba(255,255,255,.5) 50%,\n rgba(88, 89, 104,.5) 50.001%,\n rgba(88, 89, 104,.5) 100%\n );\n background-repeat: no-repeat;\n background-size: 200%;\n background-color: #666;\n background-position: 100% 50%;\n animation-timing-function: linear;\n animation-delay: .2s;\n }\n\n .").concat(this.selectorPrefix,"_progress.active {\n animation-name: fill-timeline;\n }\n\n .").concat(this.selectorPrefix,"_progress.passed {\n background-position: 0 0;\n }\n\n .").concat(this.selectorPrefix,"_progress-stop {\n animation-play-state: paused;\n }\n\n @-webkit-keyframes fill-timeline {\n 0% { background-position: 100% 0; }\n 100% { background-position: 0 0; }\n }\n "),document.body.appendChild(e)}}function V(){q(z,this,H).call(this),this.progressLinear=document.createElement("div"),this.progressLinear.classList.add("".concat(this.selectorPrefix,"_progress")),this.progressLinear.classList.add("active"),this.progressLinear.setAttribute("style","animation-duration: 20s;\n top: 5%"),this.wrapper.appendChild(this.progressLinear)}class K{constructor(e,t){this.overlay=null,this.banner=e,this.SessionService=t,this.ttlInMin=180,this.overlayVisibilityDuration=3e3}createOverlay(){c.set("_ba-bh",JSON.stringify({id:this.SessionService.getSessionId(),ttl:this.SessionService.getDurationTime("min")+this.ttlInMin})),this.overlay=document.createElement("div"),this.overlay.classList.add("gfpl-overlay"),document.body.appendChild(this.overlay),this.banner.classList.add("gfpl-bright"),setTimeout(this.removeOverlay.bind(this),this.overlayVisibilityDuration)}removeOverlay(){this.overlay.parentNode.removeChild(this.overlay)}canShow(){var e=c.get("_ba-bh");if(!e)return!0;var t=JSON.parse(e);return t.id!==this.SessionService.getSessionId()||this.SessionService.getDurationTime("min")>t.ttl}}for(var Y=new Uint8Array(256),J=0;J<64;J++)Y["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(J)]=J;Y[45]=62,Y[95]=63;var G,Q=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],Z=(G={},Q.forEach(((e,t)=>G[e]=t)),String.fromCharCode.bind(String),e=>{for(var t,n="",i=[],r=0;r255||(i.push(s),3===i.length&&(t=i[0]<<16|i[1]<<8|i[2],n+=Q[t>>18&63]+Q[t>>12&63]+Q[t>>6&63]+Q[63&t],i.length=0))}var o=i.length%3;if(i.length){for(;i.length<3;)i.push(0);t=i[0]<<16|i[1]<<8|i[2],n+=Q[t>>18&63]+Q[t>>12&63]+Q[t>>6&63]+Q[63&t]}return o?n.slice(0,o-3)+"===".substring(o):n});function X(e,t){if(t.forceExoClickMode&&t.zoneId)return"".concat("https://a.magsrv.com/iframe.php","?").concat(function(e){var{zoneId:t,width:n,height:i,sourceId:r,resolution:s,magmaSourceId:o}=e,[a,l]=s,c=encodeURIComponent(window.location.href),d=Date.now(),u=o||r;return"idzone=".concat(t,"&type=").concat(n,"x").concat(i,"&p=").concat(c,"&dt=").concat(d,"&sub=").concat(u,"&screen_resolution=").concat(a,"x").concat(l)}(t));var n=x(t),i="".concat(e,"?go=1&data=").concat(Z(JSON.stringify(n)));return t.minCpm&&(i="".concat(i,"&min_cpm=").concat(t.minCpm)),t.backUrl&&(i="".concat(i,"&back_url=").concat(encodeURIComponent(t.backUrl))),i}class ${constructor(e){this.clickCount=0,this.showTS=null,this.clickEventURL="",this.spotId=e}handleBlurClick(){this.handlerBlur||(this.handlerBlur=()=>{setTimeout((()=>{document.activeElement instanceof HTMLIFrameElement&&+document.activeElement.dataset.cbi===this.spotId&&(this.clickCount+=1,window.focus(),this.sendClick())}),0)},window.addEventListener("blur",this.handlerBlur))}sendClick(){var e=this;return r((function*(){if(e.clickEventURL){var t=e.clickEventURL;e.showTS&&(t+="&time_to_click=".concat(Date.now()-e.showTS)),yield v(t)}}))()}setEndpoint(e){this.clickEventURL=e}removeEndPoint(){this.clickEventURL=""}get count(){return this.clickCount}}function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e,t,n){return(t=function(e){var t=function(e){if("object"!=ee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ee(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ne{constructor(e){te(this,"CLICK_THRESHOLD",1e3),this.comebackKey="b_c_b_k",this.lastVisitKey="l_v_u",this.spotId=e,this.initTime=null,this.lastClickTime=null,this.comebackURL="",this.comebackData=JSON.parse(c.get(this.lastVisitKey)||"{}"),c.remove(this.lastVisitKey),this.comebackData&&this.monitorTabunderComeback()}getComebackTimes(){return JSON.parse(c.get(this.comebackKey)||"[]")}setComebackURL(e){this.comebackURL=e}saveComebackTime(e){if(!(e<1)){var t=this.getComebackTimes(),n=t.indexOf(0);-1!==n&&t.splice(n,1),t.unshift(e),t.length>3&&t.pop(),c.set(this.comebackKey,JSON.stringify(t)),this.sendMetrics()}}sendMetrics(){if(this.comebackURL&&this.comebackData.i===this.spotId){var e=this.comebackURL,t=this.getComebackTimes().join(",")||0,n=this.lastClickTime?Date.now()-this.lastClickTime:0;v("".concat(e,"&comeback=").concat(t,"&comeback_click_diff=").concat(n))}}handleClick(){this.comebackURL&&c.set(this.lastVisitKey,JSON.stringify({u:this.comebackURL,i:this.spotId,t:Date.now()}))}handleBlur(){this.visibilitychangeListener||(window.addEventListener("blur",(()=>{if(document.activeElement instanceof HTMLIFrameElement&&+document.activeElement.dataset.cbi===this.spotId){this.comebackData.i=this.spotId;var e=Date.now();this.initTime=e,this.lastClickTime=e}})),this.visibilitychangeListener=()=>{if("visible"===document.visibilityState){if(!this.initTime)return;var e=Date.now()-this.initTime;e>1e3&&(this.saveComebackTime(e),this.lastClickTime=null),this.initTime=null}},window.addEventListener("visibilitychange",this.visibilitychangeListener))}monitorTabunderComeback(){var e;null!=this&&null!==(e=this.comebackData)&&void 0!==e&&e.t&&(document.addEventListener("click",(()=>{this.lastClickTime=Date.now()})),window.addEventListener("blur",(()=>{this.isOriginalTab=!1,this.initTime=Date.now();var e=document.activeElement;window.addEventListener("focus",(()=>{if(this.initTime&&!this.isOriginalTab){var t=Date.now()-this.initTime,n=this.lastClickTime?Date.now()-this.lastClickTime:1/0;"IFRAME"!==(null==e?void 0:e.tagName)&&(null===this.lastClickTime||n>ne.CLICK_THRESHOLD)&&(this.setComebackURL(this.comebackData.u),this.saveComebackTime(t)),this.initTime=null,this.lastClickTime=null}}),{once:!0})}),{once:!0}))}}const ie=ne;var re="view_url",se=[1,30];class oe{constructor(e){var{spotConfig:t,onRefresh:n,DisplayAdblockService:i,SessionService:r,hashGenerator:s,iframeMessageBus:o}=e;this.bannerId=t.bannerId,this.spotId=t.spotId,this.spotConfig=t,this.bannerContainer=null,this.bannerLabel=null,this.refreshIntervalId=null,this.onRefresh=n,this.isConnectionLive=!1,this.isVisible=!1,this.DisplayAdblockService=i,this.overlayInstagram=null,this.overlayBrightMode=null,this.sessionService=r,this.hashGenerator=s,this.iframeMessageBus=o,this.onTrackingUrlsLoad=null,this.timeMarks=[],this.visibilityUrls={},this.clickCounter=new $(this.spotId),this.comebackTracker=new ie(this.spotId),this.iframeWinnewInerval=null}handleTrackingUrlsLoad(e){this.onTrackingUrlsLoad=e}checkHashedUrl(e){return new Promise((t=>{var n=c.get("_bauhc");if(n){var i=JSON.parse(n);if(i.updateAt>Date.now())return void t(i.status)}var r=e=>{c.set("_bauhc",JSON.stringify({status:e,updateAt:Date.now()+3e5})),t(e)},s=document.createElement("script");s.async=!0,s.src="".concat(e,"/health/"),s.onload=()=>r(!0),s.onerror=()=>r(!1),document.head.appendChild(s)}))}getAuctionUrl(){return this.spotConfig.primaryAuctionUrl||this.spotConfig.reserveSSPUrl}mount(e,t){var n=this;return r((function*(){t&&(n.spotConfig=t),n.spotConfig.refreshCount=1;var i=n.getAuctionUrl();n.isConnectionLive=!0,n.bannerContainer=yield j(e,X(i,n.spotConfig),n.spotConfig,n.DisplayAdblockService,n.clickCounter,n.comebackTracker),n.spotConfig.isStoryMode&&(n.overlayInstagram=new W(n.bannerContainer,n.spotConfig,r((function*(){return n.refreshBanner()})))),n.spotConfig.isBrightMode&&(n.brightMode=new K(n.bannerContainer,n.sessionService)),n.spotConfig.refreshFrequency&&n.startRefreshInterval(),n.clickCounter.showTS||(n.clickCounter.showTS=Date.now()),n.iframeMessageObserve()}))()}refreshBanner(){var e=this;return r((function*(){var t;if(!document.body.contains(e.bannerContainer))return null;e.spotConfig.refreshCount+=1;var n=yield e.getAuctionUrl();return e.bannerContainer=yield j(e.bannerContainer,X(n,e.spotConfig),e.spotConfig,e.DisplayAdblockService,e.clickCounter,e.comebackTracker),e.spotConfig.isStoryMode&&(e.overlayInstagram=new W(e.bannerContainer,e.spotConfig,r((function*(){return e.refreshBanner()})))),e.isConnectionLive=!0,e.onRefresh&&e.onRefresh(e.bannerContainer),null===(t=e.onTrackingUrlsLoad)||void 0===t||t.call(e),e.bannerLabel=null,e.clickCounter.showTS=Date.now(),e.bannerContainer}))()}processIframeMessage(e){e.secondWinnerUrl&&this.spotConfig.refreshFrequency&&this.changeIframeSource(e.secondWinnerUrl)}changeIframeSource(e){this.iframeWinnewInerval&&clearInterval(this.iframeWinnewInerval),this.iframeWinnewInerval=setTimeout((()=>{document.body.contains(this.bannerContainer)&&(this.bannerContainer.querySelector("iframe").src=e)}),1e3*this.spotConfig.refreshFrequency/2)}iframeMessageObserve(){this.spotConfig.isSmartCappingMode&&(this.iframeMessageBus.observe(this.spotId,this.bannerContainer,(e=>{this.processIframeMessage(e)})),this.iframeMessageBus.sendPingInsideIframe(this.spotId,this.bannerContainer)),this.iframeMessageBus.observe(this.spotId,this.bannerContainer,(e=>{var t,n;if("click"!==e.type){var i=!(null===(t=e.placements)||void 0===t||!t.length),r=i?e.placements:[e];this.visibilityUrls=this.getVisibilityUrls(r),!i&&null!=e&&e.click_event_url&&this.clickCounter.setEndpoint(e.click_event_url),!i&&null!=e&&e.comeback_url&&this.comebackTracker.setComebackURL(e.comeback_url),null===(n=this.onTrackingUrlsLoad)||void 0===n||n.call(this),this.setAllLabels(r)}else this.processClickFromIframe(e)}))}processClickFromIframe(e){e.click_event_url&&(this.clickCounter.setEndpoint(e.click_event_url),this.clickCounter.sendClick(),this.clickCounter.removeEndPoint()),e.comeback_url&&this.comebackTracker.setComebackURL(e.comeback_url)}setAllLabels(e){e.forEach((e=>{if("label"===(null==e?void 0:e.type)){var t,n=null==e?void 0:e.payload;if(!n||null==n||null===(t=n.url)||void 0===t||!t.trim())return;this.setLabel({title:n.title,url:n.url,icon:n.logo})}}))}getVisibilityUrls(e){var t={};return e.forEach((e=>{var n,i=null!==(n=null==e?void 0:e.placementId)&&void 0!==n?n:0;if(t[i]=this.getViewUrlsByTimeMarks(e),t[i]){var r=Object.keys(t[i]);this.addTimeMarks(r)}})),t}getDefaultViewUrls(e){var t=(null==e?void 0:e[re])||"https://btds.zog.link/in/va";if(!t)return null;var n={};return se.forEach((e=>{n[e]=t})),n}getViewUrlsByTimeMarks(e){if("object"!=typeof e)return null;var t=null;return Object.keys(e).forEach((n=>{var i;n.includes("".concat(re,"_"))&&(i=n.split("_").pop()),Number.isNaN(Number(i))||((t=t||{})[i]=e[n])})),t||this.getDefaultViewUrls(e)}addTimeMarks(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((e=>{this.timeMarks.includes(Number(e))||this.timeMarks.push(Number(e))}))}startRefreshInterval(){this.refreshIntervalId&&clearInterval(this.refreshIntervalId),this.refreshIntervalId=setInterval((()=>{this.refreshBanner()||clearInterval(this.refreshIntervalId)}),1e3*this.spotConfig.refreshFrequency)}hasOverlayInstagram(){return this.overlayInstagram}startInstragramProgressBar(){this.overlayInstagram.startProgressBar()}stopInstragramProgressBar(){this.overlayInstagram.stopProgressBar()}startBrightBanner(){this.brightMode.createOverlay()}setLabel(e){var{title:t,url:n,icon:i}=e;!function(e,t){var{icon:n,title:i,url:r}=t;if(e){var s=e.querySelector(".gfpl-label-container");if(s){var o='\n \n ').concat(i?'

'.concat(i,"

"):"","\n ").concat(n||"","\n \n ");s.innerHTML=o}}}(this.bannerContainer,{title:t,url:n,icon:i})}trackVisibilityByMark(e){Object.values(this.visibilityUrls).forEach((t=>{var n=t[e];n&&b.get(n).catch((()=>{}))}))}}var ae,le=200,ce=0;function de(e,t=ae.off){return t?ae.versionB:e?ae.versionA:ae.off}function ue(){var e=document.createElement("div");return e.className="__bai-element",e}function he(){return he=r((function*(e,t,n){var i=e.find((e=>e.spotConfig.spotId===t.spotId));i||(i={spotConfig:t},e.push(i));var r=e.find((e=>e.spotConfig.spotId===t.interstitial.parent_spot_id));if(r&&!i.isActivated){var{bannerContainer:s}=yield n.createBanner({spotConfig:t,mountElement:ue()});r.interstitialBody.appendChild(s),i.isActivated=!0}})),he.apply(this,arguments)}!function(e){e[e.off=0]="off",e[e.versionA=1]="versionA",e[e.versionB=2]="versionB"}(ae||(ae={}));var pe=n(105),me={};function fe(e,t){var{selector:n,onClose:i}=t,r=document.querySelector(n),s="Interstitial mount element with selector<".concat(n,"> not found");if(!r)return console.warn(s),null;var{interstitialContainerElement:o,interstitialBodyElement:a}=function(e){var{interstitialBody:t,buttonText:n}=e,i='\n
\n
\n
\n
\n \n
\n"),r=document.createElement("div");r.setAttribute("class","__bai-container"),r.innerHTML=i;var s=r.querySelector(".__bai-popup__body");return s.appendChild(t),{interstitialContainerElement:r,interstitialBodyElement:s}}({interstitialBody:e,buttonText:"Continue to watch video >>"});return function(e,t,n){var i="__bai-overlay__wrapper",r=document.createElement("div");if(r.className="__bai-overlay",r.addEventListener("click",(function e(){r.removeEventListener("click",e),t.classList.add("__bai-show")})),t.addEventListener("click",(s=>{var o,a;s.target.dataset&&(o=t,a=document.body.style.top,document.body.style.position="",document.body.style.top="",window.scrollTo(0,-1*parseInt(a||"0",10)),document.body.removeChild(o),r.parentElement.removeChild(r),e.classList.remove(i),"function"==typeof n&&n())})),"VIDEO"===e.tagName){var s=e.parentElement,o=s.getBoundingClientRect(),a=e.getBoundingClientRect();"static"===window.getComputedStyle(s).position&&(s.style.position="relative"),r.style.left="".concat(Math.abs(o.x-a.x),"px"),r.style.top="".concat(Math.abs(o.y-a.y),"px"),r.style.width="".concat(a.width,"px"),r.style.height="".concat(a.height,"px"),s.appendChild(r)}else"static"===window.getComputedStyle(e).position&&e.classList.add(i),e.appendChild(r);document.body.appendChild(t)}(r,o,i),a}function be(){return be=r((function*(e,t,n){if(!document.querySelector(".__bai-elements")){var i=ue(),{bannerContainer:s}=yield n.createBanner({spotConfig:t,mountElement:i}),o=!document.querySelector(".__bai-container")&&fe(s,t.interstitial);if(o){var a=e.find((e=>e.spotConfig.spotId===t.spotId));o.classList.add("__bai-elements"),a?a.mountElement=o:e.push({interstitialBody:o,spotConfig:t}),e.filter((e=>e.spotConfig.interstitial.parent_spot_id===t.spotId)).forEach(function(){var e=r((function*(e){e.isActivated||(e.isActivated=!0);var t=ue(),{bannerContainer:i}=yield n.createBanner({spotConfig:e.spotConfig,mountElement:t});o.appendChild(i)}));return function(t){return e.apply(this,arguments)}}())}}})),be.apply(this,arguments)}me.styleTagTransform=U(),me.setAttributes=B(),me.insert=L().bind(null,"head"),me.domAPI=A(),me.insertStyleElement=P(),I()(pe.A,me),pe.A&&pe.A.locals&&pe.A.locals;var ge="_adb_history";const ve=function(){try{return JSON.parse(localStorage.getItem(ge))}catch(e){}return[]},ye=function(e){localStorage.setItem(ge,JSON.stringify(e))},_e=e=>60*e*1e3;class we{constructor(e){var{sessionId:t,expires:n,shows:i=[]}=e;this.sessionId=t,this.expires=n,this.shows=i}getShowsCount(){return this.shows=this.shows.filter((e=>e>Date.now())),this.shows.length}addShow(e){this.shows.push(Date.now()+_e(e))}toJSON(){return{sessionId:this.sessionId,expires:this.expires,shows:this.shows}}}const ke=class{constructor(){this.sessions=[],this.loadSessions()}create(e,t){var n=new we({sessionId:e,expires:Date.now()+_e(t)});return this.sessions.push(n),n}getById(e){return this.sessions=this.sessions.filter((t=>t.sessionId===e||t.expires>Date.now())),this.sessions.find((t=>t.sessionId===e))}count(){return this.sessions.length}loadSessions(){var e=ve()||[];this.sessions=e.map((e=>new we(e)))}update(){ye(this.sessions)}};class xe{constructor(e,t,n,i,r){this.isMobile=e,this.sessionId=i,this.PositionService=r,this.spotConfig=t,this.bannersController=n,this.sessions=new ke,this.currentSession=this.sessions.getById(i),this.sessionCapping=t.instantMessage.session_capping,this.sessionCappingTtlMins=t.instantMessage.session_capping_ttl,this.onBeforeShow=t.instantMessage.onBeforeShow,this.onClose=t.instantMessage.onClose,this.showsPerPage=t.instantMessage.session_options.shows_per_page,this.showCapping=t.instantMessage.session_options.show_capping,this.showCappingTtl=t.instantMessage.session_options.show_capping_ttl,this.showsCount=0,this.timerId=null,this.widgetNode=null}mountWidget(){var e=this;return r((function*(){var t=document.createElement("div");t.className="__inst-container__inner";var{bannerContainer:n}=yield e.bannersController.createBanner({spotConfig:e.spotConfig,mountElement:t});e.widgetNode=document.createElement("div"),e.widgetNode.className="__inst-container",e.widgetNode.innerHTML="\n
Advertisement
\n \n ",e.isMobile?(e.widgetNode.classList.add("__inst-container__mobile"),e.widgetNode.querySelector(".__inst-container__close_button").classList.add("__inst-container__close_button__mobile")):e.widgetNode.classList.add("__inst-container__desktop"),e.widgetNode.appendChild(n),e.widgetNode.querySelector(".__inst-container__close_button").addEventListener("click",e.handleClose.bind(e)),document.body.appendChild(e.widgetNode),e.PositionService.placeToPosition({spotId:e.spotConfig.spotId,widgetNode:e.widgetNode,position:"bottom-middle"})}))()}destroyWidget(){return new Promise((e=>{this.isMobile?(this.widgetNode.classList.add("__inst-container_hide__mobile"),this.widgetNode.querySelector(".__inst-container__close_button").classList.add("__inst-container__close_button__mobile")):this.widgetNode.classList.add("__inst-container_hide__desktop");var t=()=>{this.widgetNode.removeEventListener("click",this.handleClose),this.widgetNode.removeEventListener("animationend",t),this.widgetNode.parentElement.removeChild(this.widgetNode),this.widgetNode=null,e()};this.widgetNode.addEventListener("animationend",t),this.PositionService.removeFromPosition(this.spotConfig.spotId,"bottom-middle")}))}handleClose(){var e=this;return r((function*(){yield e.destroyWidget(),"function"==typeof e.onClose&&e.onClose(),e.init()}))()}canShow(){return this.showsCount=this.sessionCapping||(this.currentSession||(this.currentSession=this.sessions.create(this.sessionId,this.sessionCappingTtlMins)),this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.canShow()?this.show():this.timerId=setTimeout((()=>this.init()),1e3))}}var Se=n(939),Ce={};Ce.styleTagTransform=U(),Ce.setAttributes=B(),Ce.insert=L().bind(null,"head"),Ce.domAPI=A(),Ce.insertStyleElement=P(),I()(Se.A,Ce),Se.A&&Se.A.locals&&Se.A.locals;var Ie=null,Ee=n(545),Ae={};Ae.styleTagTransform=U(),Ae.setAttributes=B(),Ae.insert=L().bind(null,"head"),Ae.domAPI=A(),Ae.insertStyleElement=P(),I()(Ee.A,Ae),Ee.A&&Ee.A.locals&&Ee.A.locals;var Te='\n \n';class Le{constructor(e,t){te(this,"createNavigationButton",((e,t)=>{var n=document.createElement("button");return n.innerHTML=e,n.className=t,n})),te(this,"createSliderTrack",(e=>{this.sliderTrack=document.createElement("div"),this.sliderTrack.className=e,this.nodeList.forEach((e=>{var t=this.createSlide(e,"__slide","__slide-container");this.onScale(t),this.sliderTrack.append(t)}))})),te(this,"createSlide",((e,t,n)=>{var i=document.createElement("div"),r=document.createElement("div");return i.className=n,r.className=t,r.append(e),i.append(r),i})),te(this,"onClickPrevButton",((e,t)=>{t.classList.remove("__disable-button");var n=this.sliderTrack.scrollLeft+this.slideWidth;0!==n&&(this.sliderTrack.scrollLeft-=this.slideWidth,(n-=this.slideWidth)<=this.slideWidth?e.classList.add("__disable-button"):e.classList.remove("__disable-button"))})),te(this,"onClickNextButton",((e,t)=>{e.classList.remove("__disable-button");var n=this.sliderTrack.scrollLeft+this.countShowingElement*this.slideWidth;nthis.sliderTrack.scrollWidth&&t.classList.add("__disable-button"))})),te(this,"onScale",(e=>{var t=e,n=getComputedStyle(this.mountTargetEl),i=this.mountTargetEl.offsetWidth-(parseFloat(n.paddingLeft)+parseFloat(n.paddingRight));this.countShowingElement=i<=160?1:i<=280?1.5:i<=428?2.5:i<=1024?4:5,this.slideWidth=i/this.countShowingElement+4,t.style.width="".concat(i/this.countShowingElement,"px"),t.style.height="".concat(i/this.countShowingElement*.83,"px"),t.childNodes[0].style.transform="scale(".concat(i/this.countShowingElement/350,")")})),te(this,"createArrow",(()=>{this.sliderArrows=document.createElement("div");var e=this.createNavigationButton(Te,"__left-button __button __disable-button"),t=this.createNavigationButton(Te,"__right-button __button");e.addEventListener("click",(()=>this.onClickPrevButton(e,t))),t.addEventListener("click",(()=>this.onClickNextButton(e,t))),e.style.transform="rotate(180deg)",this.sliderArrows.className="__slider-top",this.sliderArrows.append(e,t)})),te(this,"resizeWindow",(()=>{window.addEventListener("resize",(()=>{this.sliderTrack.childNodes.forEach((e=>{this.onScale(e)})),this.hideArrows()}))})),te(this,"hideArrows",(()=>{this.countShowingElement>=5?this.sliderArrows.classList.add("__arrow-hidden"):this.sliderArrows.classList.remove("__arrow-hidden")})),te(this,"buildSlider",(()=>{var e=document.createElement("div");return e.classList.add("slider-container"),this.createSliderTrack("__slider-track"),this.createArrow(this.sliderTrack),this.hideArrows(),e.append(this.sliderArrows),e.append(this.sliderTrack),e})),te(this,"createSlider",(()=>{this.mountTargetEl.append(this.buildSlider()),this.resizeWindow()})),this.mountTargetEl=e,this.nodeList=t,this.slideWidth=300,this.countShowingElement=5,this.sliderTrack=null,this.sliderArrows=null}}function Me(){return Me=r((function*(e,t,n){var i=function(e){var t=JSON.parse(JSON.stringify([e,e,e,e,e]));return t.map(((e,t)=>(e.bannerId+=t,e))),t}(t),s=yield Promise.all(i.map(function(){var e=r((function*(e){var{bannerContainer:t}=yield n.createBanner({spotConfig:e,mountElement:document.createElement("div")});return t}));return function(t){return e.apply(this,arguments)}}())),o=new Le(e,s);return o.createSlider(),o})),Me.apply(this,arguments)}var Be="bnrStrSnt",Ne=["https://a.utraff.com/sync?ssp=3567&id=[FP]","https://a.adspector.io/sync?ssp=44"],Pe=["https://match.new-programmatic.com/userbind?src=clcadlla&id=[FP]","https://s.uuidksinc.net/match/2205/?remote_uid=[FP]"];function Re(){return c.get(Be)}function Ue(e,t){e.includes("[FP]")&&!t||(e.includes("[FP]")||1!=Re())&&function(e){var t=document.createElement("iframe");t.referrerPolicy="no-referrer",t.src=e,t.width="1px",t.height="1px",t.setAttribute("allowtransparency",!0),t.setAttribute("style","padding:0;margin:0;border:0;position:absolute;width:1px!important;height:1px!important;top:0!important;"),t.marginheight="0",t.marginwidth="0",document.body.appendChild(t)}(e.replace("[FP]",t))}var{rE:Oe}={rE:"6.88.0"},De=new class{constructor(){this.observablesSpots={}}sendPingInsideIframe(e,t){var n=t;"IFRAME"!==n.nodeName&&(n=t.querySelector("iframe")),n&&(n.onload=function(){window.frames[e].postMessage({spotId:e},"*")})}observe(e,t,n){this.observablesSpots[e]?this.observablesSpots[e].element=t:this.observablesSpots[e]={spotId:e,element:t,onMessageReceived:n}}init(){window.addEventListener("message",(e=>{var{spotId:t}=e.data;t&&this.observablesSpots[t]&&this.observablesSpots[t].onMessageReceived(e.data)}))}};De.init();var je,qe=new class{constructor(){this.visibleSpots=new Set,this.spots=[],setInterval((()=>{this.observe(),this.visibleSpots.forEach((e=>{e.totalVisibleTime+=1,e.visibilityMarks.includes(e.totalVisibleTime)&&e.onMarkReached(e.totalVisibleTime)}))}),1e3)}observe(){this.spots.forEach((e=>{var t,n,i,r="visible"===o().state()&&(i=e.element,document.body.contains(i)&&i.offsetHeight>0)&&((n=(t=e.element).getBoundingClientRect()).top+t.offsetHeight/2>=0&&n.left>=0&&n.bottom<=(window.innerHeight+n.height/2||document.documentElement.clientHeight+n.height/2)&&n.right<=(window.innerWidth||document.documentElement.clientWidth));r?this.visibleSpots.add(e):this.visibleSpots.delete(e),e.onVisibilityChange(r)}))}watch(e){var{spotId:t,element:n,visibilityMarks:i,onMarkReached:r,onVisibilityChange:s}=e,o=this.spots.find((e=>e.spotId===t));o?(o.element=n,o.visibilityMarks=i,o.onMarkReached=r,o.onVisibilityChange=s,o.totalVisibleTime=0):this.spots.push({spotId:t,element:n,totalVisibleTime:0,visibilityMarks:i,onVisibilityChange:s,onMarkReached:r}),this.observe()}},ze=new class{constructor(){this.banners=[],this.DisplayAdblockService=null,this.SessionService=null,this.hashGenerator=null,this.iframeMessageBus=null}addDependencies(e){var{DisplayAdblockService:t,SessionService:n,hashGenerator:i,iframeMessageBus:r}=e;this.DisplayAdblockService=t,this.SessionService=n,this.hashGenerator=i,this.iframeMessageBus=r}createBanner(e){var t=this;return r((function*(){var{spotConfig:n,mountElement:i,onRefresh:s}=e,o=t.banners.find((e=>e.bannerId===n.bannerId));return o||(o=new oe({spotConfig:n,onRefresh:s,DisplayAdblockService:t.DisplayAdblockService,SessionService:t.SessionService,hashGenerator:t.hashGenerator,iframeMessageBus:t.iframeMessageBus}),n.isStickyMode&&(o=function(e){var t,n,i,{mount:s,refreshBanner:o}=e;function a(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both";if(t){var i=t.getBoundingClientRect(),{position:r,top:s,bottom:o}=getComputedStyle(t),a=function(e,t){return e?t.top<=0?"top":"bottom":"none"}("fixed"===r,i),l=document.body.scrollTop||window.scrollY,c=l<=ce;ce=l<=0?0:l;var d=e.getBoundingClientRect().top,u=window.innerHeight-e.getBoundingClientRect().bottom,h=(e,n)=>function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:null,bottom:null};"fixed"===e&&(t.style.zIndex=999999999),t.style.position=e,null!==n.top&&(t.style.top=n.top),null!==n.bottom&&(t.style.bottom=n.bottom)}(e,t,n);if("both"===n||"top"===n)switch(!0){case i.top<=0&&s!=="".concat(le,"px")&&d>=-40&&"relative"===r:h("fixed",{top:"0px"});break;case d+le<0&&"top"===a:h("relative",{top:"".concat(le,"px")});break;case d>=0&&"top"===a:h("relative",{top:"auto"});break;case i.top>=0&&s==="".concat(le,"px")&&"relative"===r:h("fixed",{top:"0px"})}if("both"===n||"bottom"===n)switch(!0){case c&&u<0&&u>=-40&&o!=="".concat(le,"px")&&"relative"===r:h("fixed",{bottom:"0px"});break;case u<=-200&&"bottom"===a:h("relative",{bottom:"".concat(le,"px")});break;case u>0&&"bottom"===a:h("relative",{bottom:"auto"});break;case u>=-200&&o==="".concat(le,"px")&&"relative"===r:h("fixed",{bottom:"0px"})}}}(i,t),function(){var{position:e}=getComputedStyle(t);n.style.display="fixed"===e?"flex":"none"}()}function l(e,t){e.addEventListener("click",r((function*(){yield t()})))}function c(){return d.apply(this,arguments)}function d(){return d=r((function*(){for(var i=arguments.length,r=new Array(i),s=0;sUe(t,e))),/[ab]/.test(t)&&Ne.length&&Ne.forEach((t=>Ue(t,e)))}(d,u),h=d?2:1,c.set(Be,h)),m&&(l=p.refreshFrequency,p.refreshFrequency=null);var f="mobile"===t.ua.device.type,b=p.interstitial&&f,g=p.instantMessage;ze.addDependencies({DisplayAdblockService:i,SessionService:s,hashGenerator:a,iframeMessageBus:De});var v=function(){var e=r((function*(e){return p.refreshFrequency||p.isTubeSite||(p.refreshFrequency=110),yield ze.createBanner({spotConfig:p,mountElement:e})}));return function(t){return e.apply(this,arguments)}}();if(b)return p.interstitial.parent_spot_id?void function(e,t,n){he.apply(this,arguments)}(We,p,ze):void function(e,t,n){be.apply(this,arguments)}(We,p,ze);if(g){if(300===p.width&&!f)return;!function(e,t,n,i,r){Ie||(Ie=new xe(e,t,n,i,r)),Ie.showsCount=0,Ie.init()}(f,p,ze,s.getSessionId(),o)}else{var y=p.selector||'[data-clickadilla-banner="'.concat(p.spotId,'"], [data-banner-id="').concat(p.spotId,'"]'),_=document.querySelector(y);if(_)if(p.isHorizontalAdaptive)!function(e,t,n){Me.apply(this,arguments)}(_,p,ze);else{var w=yield v(_);p.isAdBlock||p.isHorizontalAdaptive||w.handleTrackingUrlsLoad((()=>{var e,t=[...w.timeMarks];l&&!t.includes(l)&&t.push(l),qe.watch({spotId:p.spotId,element:w.bannerContainer,visibilityMarks:t,onMarkReached:(e=r((function*(e){w.trackVisibilityByMark(e),l&&e===l&&(yield w.refreshBanner())})),function(t){return e.apply(this,arguments)}),onVisibilityChange:e=>{w.isVisible=e,e&&p.isBrightMode&&w.brightMode.canShow()&&w.startBrightBanner(),p.isStoryMode&&(e?w.startInstragramProgressBar():w.stopInstragramProgressBar())}})}))}else console.warn("No banner mount target id found: ".concat(p.spotId))}})),Fe.apply(this,arguments)}!function(e){e.fatal="fatal",e.error="error",e.warning="warning",e.log="log",e.info="info",e.debug="debug",e.critical="critical"}(je||(je={}));const He=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ve=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ke=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ye="?",Je=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ge(e){return(e&&e.message||"No error message").split("\n").filter((e=>!!e))[0]}function Qe(e){try{const t=function(e){if(!e.stack)return null;const t=[],n=e.stack.split("\n");let i,r;for(let s=0;s{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function Xe(e,t){return"[object RegExp]"===Object.prototype.toString.call(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}const $e=100;function et(){return window}class tt extends Ze{constructor(e,t=et()){super(e),this.options=e,this.window=t,this.breadcrumbsKeyName="breadcrumbs",this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:i=e=>e,beforeBreadcrumb:r=e=>e,blacklistUrls:s=[],ignoreErrors:o=[],release:a,maxBreadcrumbs:l=$e}=this.options||{}||[];this.plugins=n.map((e=>new e(this))),this.beforeSend=i,this.beforeBreadcrumb=r,this.blacklistUrls=s,this.ignoreErrors=o,this.release=a,this.maxBreadcrumbs=l>=0?l:$e}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",e?{...e}:void 0),this}clone(){const e=new tt({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){const t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){const t=this.beforeBreadcrumb(e);t&&(this.extendState({[this.breadcrumbsKeyName]:[{timestamp:Date.now()/1e3,...t}]}),this.trimBreadcrumbs())}setBreadcrumbs(e){this.setKeyState(this.breadcrumbsKeyName,e),this.trimBreadcrumbs()}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach((e=>{e.destroy&&e.destroy()}))}isIgnoredError(e){return!!this.ignoreErrors.length&&this.getPossibleEventMessages(e).some((e=>this.ignoreErrors.some((t=>Xe(e,t)))))}extractQueryString(e){let t=e;if(t){t.startsWith("/")&&(t=`http://prefix${t}`);try{const e=new URL(t).search.slice(1);return e.length?e:void 0}catch(e){return}}}getRequestBlank(){const e=this.window.location.toString();return{request:{url:e,query_string:this.extractQueryString(e),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){if(this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e))return;const t=this.beforeSend({release:this.release,...e});t&&(super.send(t),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(e){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const t=this.getEventFilterUrl(e);return!!t&&this.blacklistUrls.some((e=>Xe(t,e)))}getEventFilterUrl(e){try{if(e.exception){const t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(e){return null}}extendState(e){this._state=Object.keys(e).reduce(((t,n)=>{const i=this._state[n],r=Array.isArray(i)?i:null,s=e[n],o=Array.isArray(s)?s:null;return{...t,[n]:r||o?[...r||[],...o||[]]:{..."string"!=typeof i?i:{},..."string"!=typeof s?s:{}}}}),this._state)}setKeyState(e,t){this._state[e]=t}getKeyState(e){return this._state[e]}trimBreadcrumbs(){const e=this.getKeyState(this.breadcrumbsKeyName);e&&(e.length??0)>this.maxBreadcrumbs&&this.setKeyState(this.breadcrumbsKeyName,this.maxBreadcrumbs>0?e.slice(-this.maxBreadcrumbs):[])}}var nt,it,rt=function(e){var{dsn:t,name:n,version:i}=e,s=new tt({dsn:t,release:"[".concat(n,"]").concat(i)});return{handleError:function(e){return r((function*(){try{yield e(...arguments)}catch(e){s.report(e)}}))}}}({dsn:"https://acc589c25d98c92b25468dd9f092111b@sentry.infra.infrapu.sh/81",name:"banner",version:"6.88.0"}).handleError,st=rt((function(e,t,n){return Fe.apply(this,arguments)}));window["__banner-init"]=st,it=st,e[nt="__banner-event"]=it,t[nt]&&(function(n){t[n].forEach((t=>{t(e[n])}))}(nt),t[nt]=null)})()})();