(()=>{var e={509:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(601),o=i.n(n),r=i(314),s=i.n(r)()(o());s.push([e.id,".gfpl-content{position:relative}.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=s},545:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(601),o=i.n(n),r=i(314),s=i.n(r)()(o());s.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=s},939:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(601),o=i.n(n),r=i(314),s=i.n(r)()(o());s.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=s},105:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(601),o=i.n(n),r=i(314),s=i.n(r)()(o());s.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=s},314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},601:e=>{"use strict";e.exports=function(e){return e[1]}},72:e=>{"use strict";var t=[];function i(e){for(var i=-1,n=0;n{"use strict";var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},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,i)=>{"use strict";e.exports=function(e){var t=i.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(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var o=void 0!==i.layer;o&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,o&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var r=i.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},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,i;t=-1,i={onVisible:function(e){var t=i.isSupported();if(!t||!i.hidden())return e(),t;var n=i.change((function(t,o){i.hidden()||(i.unbind(n),e())}));return n},change:function(e){if(!i.isSupported())return!1;var n=t+=1;return i._callbacks[n]=e,i._listen(),n},unbind:function(e){delete i._callbacks[e]},afterPrerendering:function(e){var t=i.isSupported(),n="prerender";if(!t||n!=i.state())return e(),t;var o=i.change((function(t,r){n!=r&&(i.unbind(o),e())}));return o},hidden:function(){return!(!i._doc.hidden&&!i._doc.webkitHidden)},state:function(){return i._doc.visibilityState||i._doc.webkitVisibilityState||"visible"},isSupported:function(){return void 0!==i._doc.hidden||void 0!==i._doc.webkitHidden},_doc:document||{},_callbacks:{},_change:function(e){var t=i.state();for(var n in i._callbacks)i._callbacks[n].call(i._doc,e,t)},_listen:function(){if(!i._init){var e="visibilitychange";i._doc.webkitVisibilityState&&(e="webkit"+e);var t=function(){i._change.apply(i,arguments)};i._doc.addEventListener?i._doc.addEventListener(e,t):i._doc.attachEvent(e,t),i._init=!0}}},e.exports?e.exports=i:this.Visibility=i}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={id:n,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.nc=void 0,(()=>{"use strict";window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var e=window.__adFormats,t=window.__formatsGetters;function n(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){return void i(e)}a.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var s=e.apply(t,i);function a(e){n(s,o,r,a,l,"next",e)}function l(e){n(s,o,r,a,l,"throw",e)}a(void 0)}))}}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t{var r="".concat(e).concat(i,"=").concat(encodeURIComponent(t[i]));return n!==o.length-1&&(r+="&"),r}),"");return"".concat(e,"?").concat(i)}(d,e.params),!0),c.timeout=e.timeout,c.onreadystatechange=function(){if(c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in c?c.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[i,n]=t.split(": ");return i?s(s({},e),{},{[null==i?void 0:i.toLowerCase()]:n}):e}),{}):null,o={data:e.responseType&&"text"!==e.responseType?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};!function(e,t,i){!i.status||i.status>=200&&i.status<300?e(i):t(l("Request failed with status code "+i.status,i.config,null,i.request,i))}(t,i,o),c=null}},c.onabort=function(){c&&(i(l("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(l("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(l(t,e,"ECONNABORTED",c)),c=null},"setRequestHeader"in c&&function(e,t){var i;if(null!=e)if("object"!=typeof e&&(e=[e]),i=e,"[object Array]"===Object.prototype.toString.call(i))for(var n=0,o=e.length;n1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(s(s({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(s(s({},i),{},{url:e,method:"post",data:i.data?i.data:t}))}},p=i(703),h=i.n(p),m=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]}},f={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{f.set("__try",1),f.get("__try"),f.remove("__try")}catch(e){f=m}var b=f;function g(){var e="cb_acce",t=b.get(e)||0;return t||window.addEventListener("devicemotion",(t=>{null!==t.accelerationIncludingGravity.x&&b.set(e,1)})),Number(t)}function v(e){return e.instantMessage?1:e.isStickyMode?2:e.isBrightMode?4:0}var _="justthegays.com",y="bestgayvids.com";function w(e){var t,i,n,o,[r,s]=e.resolution,{vendor:a,model:l}=e.ua.device,c=e.magmaSourceId||e.sourceId,d=e.zoneId?c:e.subId,u=e.zoneId?e.spotId:e.spaceId,p=e.tubesAdTags||e.pageKeywords,h=window.top!==window.self,m=(h?document.referrer:document.URL).replace(/\s+/g,"").replace(_,y),f=e.hasCryptoWallet?"cryptocurrency":"";return{imp:[{secure:"https:"===window.location.protocol?1:0,ext:{tag_ab:e.tagAbVersion,multi:e.isSmartCappingMode,user_keywords:f,id:Number(e.spaceId),spaceid:Number(u),type:e.type,idzone:e.zoneId,ad_tags:"".concat(p,",").concat(f),labels:null===(t=e.labels)||void 0===t?void 0:t.join(","),allowed_labels:null===(i=e.allowedLabels)||void 0===i?void 0:i.join(","),title:"",subid:String(d),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:h,refdomain:e.entryReferrerDomain,pl:e.placementTypeId,stratagem:e.stratagem,gyr:(n="cb_gyro",o=b.get(n)||0,o||window.addEventListener("deviceorientation",(e=>{null!==e.alpha&&b.set(n,1)})),Number(o)),accel:g(),ssp:e.sspId,btype:v(e),v2:e.isCloakingConfig,rchange:e.rchange},banner:{w:e.width,h:e.height},metrics:{topics:e.topics}}],site:{id:String(e.spotId),cat:["IAB".concat(e.iabCategory)],page:m.replace(/%2F/g,"/").split("tgWebAppPlatform")[0],ctid:e.cabsId},device:{w:r,h:s},fp_params:e.fingerprintParams,user:{id:e.userId,fp:e.visitorId,fp_str:e.visitorIdString,ua_data:e.userAgentData},ext:{dt:Date.now()}}}function k(e){if(!e)return null;var t=e.querySelector(".gfpl-close-button-container");return t.innerHTML='\n \n \n \n \n \n ',t.firstElementChild}var C=i(72),S=i.n(C),x=i(825),I=i.n(x),E=i(659),A=i.n(E),T=i(56),L=i.n(T),M=i(540),N=i.n(M),B=i(113),P=i.n(B),O=i(509),D={};D.styleTagTransform=P(),D.setAttributes=L(),D.insert=A().bind(null,"head"),D.domAPI=I(),D.insertStyleElement=N(),S()(O.A,D),O.A&&O.A.locals&&O.A.locals;var R=6,U=20;function j(e,t,i,n,o,r){return z.apply(this,arguments)}function z(){return z=o((function*(e,t,i,n,r,s){var{isAdBlock:a,width:l,height:c,bannerId:d,isStickyMode:u,isStoryMode:p}=i;e&&(e.innerHTML=""),u&&(e.style.width="".concat(l,"px"),e.style.height="".concat(c,"px"));var h,m,f=(h=function(){return'\n \n \n\n \n \n ')}(p?U:R),(m=document.createElement("div")).innerHTML=h.trim(),m.firstChild);if(a)try{var b=yield n.fetchCreatives({type:"banner",params:JSON.stringify(w(i)),proxyDomain:i.proxyDomain});b.click_url&&r.setEndpoint(b.click_url),b.comeback_url&&s.setComebackURL(b.comeback_url),e.innerHTML=function(e,t,i){var{icon:n,image:o}=e;return'\n
\n \n
\n ')}(b,l,c).trim(),e.addEventListener("click",o((function*(){s.handleClick(),yield r.sendClick(),window.open(window.location.href,"_blank"),window.location.href=b.url})))}catch(e){}else{var g=document.createElement("div"),v=function(e){var{url:t,width:i,height:n,bannerId:o}=e,r=document.querySelector('[data-cbi="'.concat(o,'"]'));r&&r.parentNode.removeChild(r);var s=document.createElement("iframe");return s.setAttribute("data-cbi",o),s.src=t,s.width=i,s.height=n,s.position="relative",s.name=o,s.setAttribute("allowtransparency",!0),s.frameBorder="no",s.setAttribute("style","padding:0;margin:0;border:0;"),s.marginheight="0",s.marginwidth="0",s.scrolling="no",s}({url:t,width:l,height:c,bannerId:d});g.classList.add("gfpl-wrapper"),g.dataset.role="content",g.style.position="relative",g.style.display="flex",g.style.width="".concat(l,"px"),g.style.height="".concat(c,"px"),e.appendChild(g),g.appendChild(v),g.appendChild(f),r.handleBlurClick(),s.handleBlur()}return e})),z.apply(this,arguments)}function q(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var W=new WeakSet;class F{constructor(e,t,i){var n,r,s=this;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,r=W),r.add(n),this.selectorPrefix="_ab-io",q(W,this,H).call(this,e,t),q(W,this,Y).call(this),this.progressLinear.addEventListener("animationend",o((function*(){yield i(),s.progressLinear.classList.toggle("active"),s.progressLinear.offsetHeight,s.progressLinear.classList.toggle("active")})),!1)}stopProgressBar(){var e=this;return o((function*(){e.progressLinear.classList.add("".concat(e.selectorPrefix,"_progress-stop"))}))()}startProgressBar(){var e=this;return o((function*(){e.progressLinear.classList.remove("".concat(e.selectorPrefix,"_progress-stop"))}))()}}function H(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 V(){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 Y(){q(W,this,V).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 J{constructor(e,t){this.overlay=null,this.banner=e,this.SessionService=t,this.ttlInMin=180,this.overlayVisibilityDuration=3e3}createOverlay(){b.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=b.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 G=new Uint8Array(256),K=0;K<64;K++)G["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(K)]=K;G[45]=62,G[95]=63;var Q,Z=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],X=(Q={},Z.forEach(((e,t)=>Q[e]=t)),String.fromCharCode.bind(String),e=>{for(var t,i,n,o,r="",s=e.length%3,a=0;a255||(n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");r+=Z[(t=i<<16|n<<8|o)>>18&63]+Z[t>>12&63]+Z[t>>6&63]+Z[63&t]}return s?r.slice(0,s-3)+"===".substring(s):r});const $={globalVarName:"__banner-init",initEventName:"__banner-event",viewabilityTrackingUrl:"https://btds.zog.link/in/va",viewabilityTimeout:1e3,exoClickUrl:"https://a.magsrv.com/iframe.php"};function ee(e,t){if(t.forceExoClickMode&&t.zoneId)return"".concat($.exoClickUrl,"?").concat(function(e){var{zoneId:t,width:i,height:n,sourceId:o,resolution:r,magmaSourceId:s}=e,[a,l]=r,c=encodeURIComponent(window.location.href),d=Date.now(),u=s||o;return"idzone=".concat(t,"&type=").concat(i,"x").concat(n,"&p=").concat(c,"&dt=").concat(d,"&sub=").concat(u,"&screen_resolution=").concat(a,"x").concat(l)}(t));var i=w(t),n="".concat(e,"?go=1&data=").concat(X(JSON.stringify(i)));return t.minCpm&&(n="".concat(n,"&min_cpm=").concat(t.minCpm)),t.backUrl&&(n="".concat(n,"&back_url=").concat(encodeURIComponent(t.backUrl))),n}function te(e){return new Promise((t=>{e||t({status:"error"});var i=new Image;i.src=e,i.crossOrigin="anonymous",i.onload=()=>t({status:"ok"}),i.onerror=()=>t({status:"error"})}))}class ie{constructor(e){this.clickCount=0,this.showTS=null,this.clickEventURL="",this.spotId=e}handleBlurClick(){window.addEventListener("blur",(()=>{setTimeout((()=>{document.activeElement instanceof HTMLIFrameElement&&+document.activeElement.dataset.cbi===this.spotId&&(this.clickCount+=1,window.focus(),this.sendClick())}),0)}))}sendClick(){var e=this;return o((function*(){if(e.clickEventURL){var t=e.clickEventURL;e.showTS&&(t+="&time_to_click=".concat(Date.now()-e.showTS)),yield te(t)}}))()}setEndpoint(e){this.clickEventURL=e}get count(){return this.clickCount}}function ne(e){return ne="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},ne(e)}function oe(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class re{constructor(e){oe(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.comebackData=JSON.parse(b.get(this.lastVisitKey)||"{}"),b.remove(this.lastVisitKey),this.comebackData&&this.monitorTabunderComeback()}getComebackTimes(){return JSON.parse(b.get(this.comebackKey)||"[]")}setComebackURL(e){this.comebackURL=e}saveComebackTime(e){if(!(e<1)){var t=this.getComebackTimes(),i=t.indexOf(0);-1!==i&&t.splice(i,1),t.unshift(e),t.length>3&&t.pop(),b.set(this.comebackKey,JSON.stringify(t)),this.sendMetrics()}}sendMetrics(){if(this.comebackURL&&this.comebackData.i===this.spotId){var e=this.getComebackTimes().join(",")||0,t=this.lastClickTime?Date.now()-this.lastClickTime:0;te("".concat(this.comebackURL,"&comeback=").concat(e,"&comeback_click_diff=").concat(t))}}handleClick(){this.comebackURL&&b.set(this.lastVisitKey,JSON.stringify({u:this.comebackURL,i:this.spotId,t:Date.now()}))}handleBlur(){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,i=this.lastClickTime?Date.now()-this.lastClickTime:1/0;"IFRAME"!==(null==e?void 0:e.tagName)&&(null===this.lastClickTime||i>re.CLICK_THRESHOLD)&&(this.setComebackURL(this.comebackData.u),this.saveComebackTime(t)),this.initTime=null,this.lastClickTime=null}}),{once:!0})}),{once:!0}))}}const se=re;class ae{constructor(e){var{spotConfig:t,onRefresh:i,DisplayAdblockService:n,SessionService:o,hashGenerator:r,iframeMessageBus:s}=e;this.bannerId=t.bannerId,this.spotId=t.spotId,this.spotConfig=t,this.bannerContainer=null,this.bannerLabel=null,this.refreshIntervalId=null,this.onRefresh=i,this.isConnectionLive=!1,this.isVisible=!1,this.DisplayAdblockService=n,this.overlayInstagram=null,this.overlayBrightMode=null,this.visibilityUrl=null,this.sessionService=o,this.hashGenerator=r,this.iframeMessageBus=s,this.clickCounter=new ie(this.spotId),this.comebackTracker=new se(this.spotId),this.iframeWinnewInerval=null}checkHashedUrl(e){return new Promise((t=>{var i=b.get("_bauhc");if(i){var n=JSON.parse(i);if(n.updateAt>Date.now())return void t(n.status)}var o=e=>{b.set("_bauhc",JSON.stringify({status:e,updateAt:Date.now()+3e5})),t(e)},r=document.createElement("script");r.async=!0,r.src="".concat(e,"/health/"),r.onload=()=>o(!0),r.onerror=()=>o(!1),document.head.appendChild(r)}))}getAuctionUrl(){return this.spotConfig.primaryAuctionUrl||this.spotConfig.reserveSSPUrl}mount(e,t){var i=this;return o((function*(){t&&(i.spotConfig=t),i.spotConfig.refreshCount=1;var n=i.getAuctionUrl();i.isConnectionLive=!0,i.bannerContainer=yield j(e,ee(n,i.spotConfig),i.spotConfig,i.DisplayAdblockService,i.clickCounter,i.comebackTracker),i.spotConfig.isStoryMode&&(i.overlayInstagram=new F(i.bannerContainer,i.spotConfig,o((function*(){return i.refreshBanner()})))),i.spotConfig.isBrightMode&&(i.brightMode=new J(i.bannerContainer,i.sessionService)),i.spotConfig.refreshFrequency&&i.startRefreshInterval(),i.clickCounter.showTS||(i.clickCounter.showTS=Date.now()),i.iframeMessageObserve()}))()}refreshBanner(){var e=this;return o((function*(){if(!document.body.contains(e.bannerContainer))return null;e.spotConfig.refreshCount+=1;var t=yield e.getAuctionUrl();return e.bannerContainer=yield j(e.bannerContainer,ee(t,e.spotConfig),e.spotConfig,e.DisplayAdblockService,e.clickCounter,e.comebackTracker),e.spotConfig.isStoryMode&&(e.overlayInstagram=new F(e.bannerContainer,e.spotConfig,o((function*(){return e.refreshBanner()})))),e.isConnectionLive=!0,e.onRefresh&&e.onRefresh(e.bannerContainer),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=>{if(null!=e&&e.click_event_url&&this.clickCounter.setEndpoint(e.click_event_url),null!=e&&e.comeback_url&&this.comebackTracker.setComebackURL(e.comeback_url),null!=e&&e.view_url&&(this.visibilityUrl=e.view_url),"label"===(null==e?void 0:e.type)){var t,i=null==e?void 0:e.payload;if(!i||null==i||null===(t=i.url)||void 0===t||!t.trim())return;this.setLabel({title:i.title,url:i.url,icon:i.logo})}}))}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:i,icon:n}=e;!function(e,t){var{icon:i,title:n,url:o}=t;if(e){var r=e.querySelector(".gfpl-label-container"),s='\n \n ').concat(n?'

'.concat(n,"

"):"","\n ").concat(i||"","\n \n ");r.innerHTML=s}}(this.bannerContainer,{title:t,url:i,icon:n})}}var le=0,ce=200,de=40,ue=0;function pe(e){var t,i,n,{mount:r,refreshBanner:s}=e;function a(){(function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both";if(t){var n=t.getBoundingClientRect(),{position:o,top:r,bottom:s}=getComputedStyle(t),a=function(e,t){return e?t.top<=le?"top":"bottom":"none"}("fixed"===o,n),l=document.body.scrollTop||window.scrollY,c=l<=ue;ue=l<=0?0:l;var d=e.getBoundingClientRect().top,u=window.innerHeight-e.getBoundingClientRect().bottom,p=(e,i)=>function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:null,bottom:null};"fixed"===e&&(t.style.zIndex=999999999),t.style.position=e,null!==i.top&&(t.style.top=i.top),null!==i.bottom&&(t.style.bottom=i.bottom)}(e,t,i);if("both"===i||"top"===i)switch(!0){case n.top<=le&&r!=="".concat(ce,"px")&&d>=-de&&"relative"===o:p("fixed",{top:"0px"});break;case d+ce=le&&"top"===a:p("relative",{top:"auto"});break;case n.top>=le&&r==="".concat(ce,"px")&&"relative"===o:p("fixed",{top:"0px"})}if("both"===i||"bottom"===i)switch(!0){case c&&u<0&&u>=-de&&s!=="".concat(ce,"px")&&"relative"===o:p("fixed",{bottom:"0px"});break;case u<=-ce&&"bottom"===a:p("relative",{bottom:"".concat(ce,"px")});break;case u>0&&"bottom"===a:p("relative",{bottom:"auto"});break;case u>=-ce&&s==="".concat(ce,"px")&&"relative"===o:p("fixed",{bottom:"0px"})}}})(n,t),function(){var{position:e}=getComputedStyle(t);i.style.display="fixed"===e?"flex":"none"}()}function l(e,t){e.addEventListener("click",o((function*(){yield t()})))}function c(){return d.apply(this,arguments)}function d(){return d=o((function*(){for(var n=arguments.length,o=new Array(n),r=0;re.spotConfig.spotId===t.spotId));n||(n={spotConfig:t},e.push(n));var o=e.find((e=>e.spotConfig.spotId===t.interstitial.parent_spot_id));if(o&&!n.isActivated){var{bannerContainer:r}=yield i.createBanner({spotConfig:t,mountElement:ge()});o.interstitialBody.appendChild(r),n.isActivated=!0}})),ve.apply(this,arguments)}var _e=i(105),ye={};function we(e,t){var{selector:i,onClose:n}=t,o=document.querySelector(i),r="Interstitial mount element with selector<".concat(i,"> not found");if(!o)return console.warn(r),null;var{interstitialContainerElement:s,interstitialBodyElement:a}=function(e){var{interstitialBody:t,buttonText:i}=e,n='\n
\n
\n
\n
\n \n
\n"),o=document.createElement("div");o.setAttribute("class","__bai-container"),o.innerHTML=n;var r=o.querySelector(".__bai-popup__body");return r.appendChild(t),{interstitialContainerElement:o,interstitialBodyElement:r}}({interstitialBody:e,buttonText:"Continue to watch video >>"});return function(e,t,i){var n="__bai-overlay__wrapper",o=document.createElement("div");if(o.className="__bai-overlay",o.addEventListener("click",(function e(){o.removeEventListener("click",e),t.classList.add("__bai-show")})),t.addEventListener("click",(r=>{var s,a;r.target.dataset&&(s=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(s),o.parentElement.removeChild(o),e.classList.remove(n),"function"==typeof i&&i())})),"VIDEO"===e.tagName){var r=e.parentElement,s=r.getBoundingClientRect(),a=e.getBoundingClientRect();"static"===window.getComputedStyle(r).position&&(r.style.position="relative"),o.style.left="".concat(Math.abs(s.x-a.x),"px"),o.style.top="".concat(Math.abs(s.y-a.y),"px"),o.style.width="".concat(a.width,"px"),o.style.height="".concat(a.height,"px"),r.appendChild(o)}else"static"===window.getComputedStyle(e).position&&e.classList.add(n),e.appendChild(o);document.body.appendChild(t)}(o,s,n),a}function ke(){return ke=o((function*(e,t,i){if(!document.querySelector(".__bai-elements")){var n=ge(),{bannerContainer:r}=yield i.createBanner({spotConfig:t,mountElement:n}),s=!document.querySelector(".__bai-container")&&we(r,t.interstitial);if(s){var a=e.find((e=>e.spotConfig.spotId===t.spotId));s.classList.add("__bai-elements"),a?a.mountElement=s:e.push({interstitialBody:s,spotConfig:t}),e.filter((e=>e.spotConfig.interstitial.parent_spot_id===t.spotId)).forEach(function(){var e=o((function*(e){e.isActivated||(e.isActivated=!0);var t=ge(),{bannerContainer:n}=yield i.createBanner({spotConfig:e.spotConfig,mountElement:t});s.appendChild(n)}));return function(t){return e.apply(this,arguments)}}())}}})),ke.apply(this,arguments)}ye.styleTagTransform=P(),ye.setAttributes=L(),ye.insert=A().bind(null,"head"),ye.domAPI=I(),ye.insertStyleElement=N(),S()(_e.A,ye),_e.A&&_e.A.locals&&_e.A.locals;var Ce="_adb_history";const Se=function(){try{return JSON.parse(localStorage.getItem(Ce))}catch(e){}return[]},xe=function(e){localStorage.setItem(Ce,JSON.stringify(e))},Ie=e=>60*e*1e3;class Ee{constructor(e){var{sessionId:t,expires:i,shows:n=[]}=e;this.sessionId=t,this.expires=i,this.shows=n}getShowsCount(){return this.shows=this.shows.filter((e=>e>Date.now())),this.shows.length}addShow(e){this.shows.push(Date.now()+Ie(e))}toJSON(){return{sessionId:this.sessionId,expires:this.expires,shows:this.shows}}}const Ae=class{constructor(){this.sessions=[],this.loadSessions()}create(e,t){var i=new Ee({sessionId:e,expires:Date.now()+Ie(t)});return this.sessions.push(i),i}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=Se()||[];this.sessions=e.map((e=>new Ee(e)))}update(){xe(this.sessions)}};class Te{constructor(e,t,i,n,o){this.isMobile=e,this.sessionId=n,this.PositionService=o,this.spotConfig=t,this.bannersController=i,this.sessions=new Ae,this.currentSession=this.sessions.getById(n),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 o((function*(){var t=document.createElement("div");t.className="__inst-container__inner";var{bannerContainer:i}=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(i),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 o((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 Le=i(939),Me={};Me.styleTagTransform=P(),Me.setAttributes=L(),Me.insert=A().bind(null,"head"),Me.domAPI=I(),Me.insertStyleElement=N(),S()(Le.A,Me),Le.A&&Le.A.locals&&Le.A.locals;var Ne=null,Be=i(545),Pe={};Pe.styleTagTransform=P(),Pe.setAttributes=L(),Pe.insert=A().bind(null,"head"),Pe.domAPI=I(),Pe.insertStyleElement=N(),S()(Be.A,Pe),Be.A&&Be.A.locals&&Be.A.locals;var Oe='\n \n';class De{constructor(e,t){oe(this,"createNavigationButton",((e,t)=>{var i=document.createElement("button");return i.innerHTML=e,i.className=t,i})),oe(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)}))})),oe(this,"createSlide",((e,t,i)=>{var n=document.createElement("div"),o=document.createElement("div");return n.className=i,o.className=t,o.append(e),n.append(o),n})),oe(this,"onClickPrevButton",((e,t)=>{t.classList.remove("__disable-button");var i=this.sliderTrack.scrollLeft+this.slideWidth;0!==i&&(this.sliderTrack.scrollLeft-=this.slideWidth,(i-=this.slideWidth)<=this.slideWidth?e.classList.add("__disable-button"):e.classList.remove("__disable-button"))})),oe(this,"onClickNextButton",((e,t)=>{e.classList.remove("__disable-button");var i=this.sliderTrack.scrollLeft+this.countShowingElement*this.slideWidth;ithis.sliderTrack.scrollWidth&&t.classList.add("__disable-button"))})),oe(this,"onScale",(e=>{var t=e,i=getComputedStyle(this.mountTargetEl),n=this.mountTargetEl.offsetWidth-(parseFloat(i.paddingLeft)+parseFloat(i.paddingRight));this.countShowingElement=n<=160?1:n<=280?1.5:n<=428?2.5:n<=1024?4:5,this.slideWidth=n/this.countShowingElement+4,t.style.width="".concat(n/this.countShowingElement,"px"),t.style.height="".concat(n/this.countShowingElement*.83,"px"),t.childNodes[0].style.transform="scale(".concat(n/this.countShowingElement/350,")")})),oe(this,"createArrow",(()=>{this.sliderArrows=document.createElement("div");var e=this.createNavigationButton(Oe,"__left-button __button __disable-button"),t=this.createNavigationButton(Oe,"__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)})),oe(this,"resizeWindow",(()=>{window.addEventListener("resize",(()=>{this.sliderTrack.childNodes.forEach((e=>{this.onScale(e)})),this.hideArrows()}))})),oe(this,"hideArrows",(()=>{this.countShowingElement>=5?this.sliderArrows.classList.add("__arrow-hidden"):this.sliderArrows.classList.remove("__arrow-hidden")})),oe(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})),oe(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 Re(){return Re=o((function*(e,t,i){var n=function(e){var t=JSON.parse(JSON.stringify([e,e,e,e,e]));return t.map(((e,t)=>(e.bannerId+=t,e))),t}(t),r=yield Promise.all(n.map(function(){var e=o((function*(e){var{bannerContainer:t}=yield i.createBanner({spotConfig:e,mountElement:document.createElement("div")});return t}));return function(t){return e.apply(this,arguments)}}())),s=new De(e,r);return s.createSlider(),s})),Re.apply(this,arguments)}var Ue="bnrStrSnt",je=[],ze=["https://match.new-programmatic.com/userbind?src=onclck&id=[FP]"];function qe(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)}var{rE:We}={rE:"6.76.0"},Fe=new class{constructor(){this.observablesSpots={}}sendPingInsideIframe(e,t){var i=t;"IFRAME"!==i.nodeName&&(i=t.querySelector("iframe")),i&&(i.onload=function(){window.frames[e].postMessage({spotId:e},"*")})}observe(e,t,i){this.observablesSpots[e]?this.observablesSpots[e].element=t:this.observablesSpots[e]={spotId:e,element:t,onMessageReceived:i}}init(){window.addEventListener("message",(e=>{var{spotId:t}=e.data;t&&this.observablesSpots[t]&&this.observablesSpots[t].onMessageReceived(e.data)}))}};Fe.init();var He,Ve,Ye=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,i,n,o="visible"===h().state()&&(n=e.element,document.body.contains(n)&&n.offsetHeight>0)&&((i=(t=e.element).getBoundingClientRect()).top+t.offsetHeight/2>=0&&i.left>=0&&i.bottom<=(window.innerHeight+i.height/2||document.documentElement.clientHeight+i.height/2)&&i.right<=(window.innerWidth||document.documentElement.clientWidth));o?this.visibleSpots.add(e):this.visibleSpots.delete(e),e.onVisibilityChange(o)}))}watch(e){var{spotId:t,element:i,visibilityMarks:n,onMarkReached:o,onVisibilityChange:r}=e,s=this.spots.find((e=>e.spotId===t));s?(s.element=i,s.visibilityMarks=n,s.onMarkReached=o,s.onVisibilityChange=r,s.totalVisibleTime=0):this.spots.push({spotId:t,element:i,totalVisibleTime:0,visibilityMarks:n,onVisibilityChange:r,onMarkReached:o}),this.observe()}},Je=new class{constructor(){this.banners=[],this.DisplayAdblockService=null,this.SessionService=null,this.hashGenerator=null,this.iframeMessageBus=null}addDependencies(e){var{DisplayAdblockService:t,SessionService:i,hashGenerator:n,iframeMessageBus:o}=e;this.DisplayAdblockService=t,this.SessionService=i,this.hashGenerator=n,this.iframeMessageBus=o}createBanner(e){var t=this;return o((function*(){var{spotConfig:i,mountElement:n,onRefresh:o}=e,r=t.banners.find((e=>e.bannerId===i.bannerId));return r||(r=new ae({spotConfig:i,onRefresh:o,DisplayAdblockService:t.DisplayAdblockService,SessionService:t.SessionService,hashGenerator:t.hashGenerator,iframeMessageBus:t.iframeMessageBus}),i.isStickyMode&&(r=pe(r)),t.banners.push(r)),yield r.mount(n,i),r}))()}},Ge=[];function Ke(e,t,i){return Qe.apply(this,arguments)}function Qe(){return Qe=o((function*(e,t,i){var{DisplayAdblockService:n,SessionService:r,PositionService:s,hashGenerator:a}=i;t.debugMode&&console.log("B. Version: ".concat(We));var l,c,d,p,h=function(e,t,i){var n,o,r,s,a,l,c,d,u,p,[h,m]=e.options.size.split("x"),f="horizontal_adaptive"===e.options.size;f&&(h=me,m="desktop"!==t.ua.device.type?fe:be);var b,g,v,{utm_source:_,utm_medium:y,utm_campaign:w,utm_content:k}=t.holdableQSParams,C=null!==(n=null===(o=e.options)||void 0===o||null===(o=o.split_test)||void 0===o?void 0:o.flag)&&void 0!==n?n:"";return{visitorId:t.visitorId||null,visitorIdString:null!==(r=t.visitorIdString)&&void 0!==r?r:"",hasCryptoWallet:t.isMetaMaskActive,tagAbVersion:t.tagAbVersion||null,bannerId:e.spot_id,type:f?"full_width":e.type,primaryAuctionUrl:e.primary_auction_url,reserveSSPUrl:e.banner_ssp_url,spotId:e.spot_id,zoneId:Number(e.options.exoclick_zone_id)||Number(e.zone_id)||null,spaceId:Number(e.space_id)||null,minCpm:e.options.min_cpm,backUrl:e.options.back_url,width:Number(h),height:Number(m),subId:Number(e.sub_id),labels:e.labels||[],allowedLabels:e.allowed_labels||[],refreshFrequency:Number(e.options.refresh_frequency)||null,stratagem:C,interstitial:e.interstitial||null,instantMessage:e.options.instant_message||null,sourceId:t.sub,utmSource:_,utmMedium:y,utmCampaign:w,utmContent:k,userId:t.userId,ua:t.ua,resolution:t.resolution,neverblockProxyUrl:e.nvb_proxy_url||null,neverblockBrokerUrl:e.nvb_broker_url||null,isAdBlock:t.isAdBlock,entryReferrerDomain:t.entryReferrerDomain||"",selector:e.options.selector||null,multiple:e.options.multiple||!1,forceExoClickMode:e.options.force_exoclick||!1,magmaSourceId:t.magmaSourceId||null,iabCategory:t.iabCategory||24,isHorizontalAdaptive:f,proxyDomain:e.proxy_domain||null,placementTypeId:e.options.placement_type_id||0,pageKeywords:(b=t.keywords,g=he,v=function(e,t){if(e.length<=t)return e;var i=e.slice(0,t),n=i.lastIndexOf(",");return i.slice(0,n)}(decodeURIComponent(b).replace(/"/g,""),g),encodeURIComponent(v)||""),tubesAdTags:t.tubesAdTags||"",isStickyMode:e.options.sticky_banner||!1,isBrightMode:e.options.bright_banner||!1,isStoryMode:e.options.stories_banner||!1,sspId:e.ssp_id||0,horizontalAdaptive:e.horizontalAdaptive,refreshType:null!==(s=e.options.refresh_type)&&void 0!==s?s:"interval",isIframeBreakProtectionEnable:e.options.is_antiblock_refresh,isIframeBreakProtectionByVisibility:e.options.antiblock_refresh_visibility_area,cabsId:null!==(a=t.cabsId)&&void 0!==a?a:1,isSmartCappingMode:e.options.smart_refresh||!1,runningText:null!==(l=null===(c=e.options)||void 0===c||null===(c=c.instant_message)||void 0===c?void 0:c.running_text)&&void 0!==l&&l,popunderSspUrl:"".concat(i.generateAuctionUrl("popunder"),"/get/"),isCloakingConfig:t.v2,rchange:null!==(d=null===(u=e.options)||void 0===u?void 0:u.rchange)&&void 0!==d&&d,isTubeSite:null!==(p=t.isTubeSite)&&void 0!==p&&p,userAgentData:t.userAgentData,topics:t.topics,fingerprintParams:t.fingerprintParams}}(e,t,a),m="visible"===h.refreshType,f=[1,30];c=h.visitorIdString,d=h.tagAbVersion,c&&(p=Ue,b.get(p)||(function(e,t){ze.forEach((t=>qe(t.replace("[FP]",e)))),/[ab]/.test(t)&&je.length&&je.forEach((t=>qe(t.replace("[FP]",e))))}(c,d),function(e){b.set(e,"1")}(Ue))),m&&(l=h.refreshFrequency,f.push(l),h.refreshFrequency=null);var g="mobile"===t.ua.device.type,v=h.interstitial&&g,_=h.instantMessage;Je.addDependencies({DisplayAdblockService:n,SessionService:r,hashGenerator:a,iframeMessageBus:Fe});var y=function(){var e=o((function*(e){return h.refreshFrequency||h.isTubeSite||(h.refreshFrequency=110),yield Je.createBanner({spotConfig:h,mountElement:e})}));return function(t){return e.apply(this,arguments)}}();if(v)return h.interstitial.parent_spot_id?void function(e,t,i){ve.apply(this,arguments)}(Ge,h,Je):void function(e,t,i){ke.apply(this,arguments)}(Ge,h,Je);if(_){if(300===h.width&&!g)return;!function(e,t,i,n,o){Ne||(Ne=new Te(e,t,i,n,o)),Ne.showsCount=0,Ne.init()}(g,h,Je,r.getSessionId(),s)}else{var w=h.selector||'[data-clickadilla-banner="'.concat(h.spotId,'"], [data-banner-id="').concat(h.spotId,'"]'),k=document.querySelector(w);if(k)if(h.isHorizontalAdaptive)!function(e,t,i){Re.apply(this,arguments)}(k,h,Je);else{var C=yield y(k);h.isAdBlock||h.isHorizontalAdaptive||Ye.watch({spotId:h.spotId,element:C.bannerContainer,visibilityMarks:f,onMarkReached:e=>{var t=C.visibilityUrl||$.viewabilityTrackingUrl;u.get(t),l&&e===l&&C.refreshBanner()},onVisibilityChange:e=>{C.isVisible=e,e&&h.isBrightMode&&C.brightMode.canShow()&&C.startBrightBanner(),h.isStoryMode&&(e?C.startInstragramProgressBar():C.stopInstragramProgressBar())}})}else console.warn("No banner mount target id found: ".concat(h.spotId))}})),Qe.apply(this,arguments)}window[$.globalVarName]=Ke,He=$.initEventName,Ve=Ke,e[He]=Ve,t[He]&&(function(i){t[i].forEach((t=>{t(e[i])}))}(He),t[He]=null)})()})();