(()=>{"use strict";var e={496:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.n(r)()(o());s.push([e.id,"._ccw-content{position:relative}._ccw-wrapper:hover ._ccw-label__link{opacity:1}._ccw-link{display:block;height:100%;width:100%}._ccw-text{bottom:0;color:#e6e6e6;left:0;position:absolute}._ccw-title{font-weight:500;margin-bottom:3px}._ccw-body{font-size:13px}._ccw-img{display:block;height:100%;width:100%}._ccw-overlay{-webkit-animation:fadeIn .4s ease-in-out;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}._ccw-bright{position:relative;z-index:999999999}._ccw-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}._ccw-label{position:absolute;right:8px;z-index:1}._ccw-label,._ccw-label__link{align-items:center;display:flex;transition:all .2s ease-in-out}._ccw-label__link{border-radius:1000px;opacity:.5;text-decoration:none}._ccw-label__link svg{border-radius:100%;box-shadow:0 2px 6px rgba(0,0,0,.25)}._ccw-label__link:hover{background:#dbdbdb;box-shadow:0 2px 6px rgba(0,0,0,.25)}._ccw-label__link_text_show{background:#dbdbdb}._ccw-label__link_text_show ._ccw-label__text{opacity:1;padding-left:11px}._ccw-label__link:hover ._ccw-label__text{opacity:1}._ccw-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}._ccw-label__icon{border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.25)}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",""]);const a=s},234:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.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},906:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.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{-webkit-animation:moveInMobile 1s ease-in-out;animation:moveInMobile 1s ease-in-out;background-color:rgba(0,0,0,.4);width:100%}.__inst-container__desktop{-webkit-animation:moveInDesktop 1s ease-in-out;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{-webkit-animation:moveOutDesktop .5s ease-out;animation:moveOutDesktop .5s ease-out}.__inst-container_hide__mobile{-webkit-animation:moveOutMobile .5s ease-out;animation:moveOutMobile .5s ease-out}@-webkit-keyframes moveInDesktop{0%{transform:translate(-50%,100%)}to{transform:translate(-50%)}}@keyframes moveInDesktop{0%{transform:translate(-50%,100%)}to{transform:translate(-50%)}}@-webkit-keyframes moveOutDesktop{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,100%)}}@keyframes moveOutDesktop{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,100%)}}@-webkit-keyframes moveInMobile{0%{transform:translateY(100%)}to{transform:translate(0)}}@keyframes moveInMobile{0%{transform:translateY(100%)}to{transform:translate(0)}}@-webkit-keyframes moveOutMobile{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translateY(100%)}}@keyframes moveOutMobile{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translateY(100%)}}",""]);const a=s},386:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.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},645:e=>{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,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},81:e=>{e.exports=function(e){return e[1]}},379:e=>{var t=[];function n(e){for(var n=-1,i=0;i{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)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){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 o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{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))}}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={id:i,exports:{}};return e[i](r,r.exports,n),r.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),(()=>{window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var e=window.__adFormats,t=window.__formatsGetters;function i(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var s=e.apply(t,n);function a(e){i(s,o,r,a,l,"next",e)}function l(e){i(s,o,r,a,l,"throw",e)}a(void 0)}))}}function r(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 s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n=200&&n.status<300?e(n):t(u("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,o),p=null}},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},"setRequestHeader"in p&&function(e,t){var n;if(null!=e)if("object"!==a(e)&&(e=[e]),n=e,"[object Array]"===Object.prototype.toString.call(n))for(var i=0,o=e.length;i1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(s(s({},t),{},{url:e,method:"get"}))}},{key:"post",value:function(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(s(s({},n),{},{url:e,method:"post",data:n.data?n.data:t}))}}],n&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());function f(e,t){for(var n=0;n\n \n \n ')}function w(){var e="cb_acce",t=g.get(e)||0;return t||window.addEventListener("devicemotion",(t=>{null!==t.accelerationIncludingGravity.x&&g.set(e,1)})),Number(t)}function k(e){return e.instantMessage?1:e.isStickyMode?2:e.isBrightMode?4:0}function C(e){var t,n,i,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=e.hasCryptoWallet?"cryptocurrency":"";return{imp:[{secure:"https:"===window.location.protocol?1:0,ext:{tag_ab:e.tagAbVersion,multi:e.isSmartCappingMode,user_keywords:m,id:Number(e.spaceId),spaceid:Number(u),type:e.type,idzone:e.zoneId,ad_tags:"".concat(p,",").concat(m),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(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:(i="cb_gyro",o=g.get(i)||0,o||window.addEventListener("deviceorientation",(e=>{null!==e.alpha&&g.set(i,1)})),Number(o)),accel:w(),ssp:1===e.width?3972:e.sspId,btype:k(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:h?document.referrer:document.URL},device:{w:r,h:s},user:{id:e.userId,fp:e.visitorId,fp_str:e.visitorIdString,ua_data:e.userAgentData},ext:{dt:Date.now()}}}var S=n(379),x=n.n(S),I=n(795),E=n.n(I),A=n(569),L=n.n(A),T=n(565),M=n.n(T),N=n(216),B=n.n(N),O=n(589),P=n.n(O),R=n(496),D={};function j(e,t,n,i){return q.apply(this,arguments)}function q(){return(q=o((function*(e,t,n,i){var{isAdBlock:o,width:r,height:s,bannerId:a,isStickyMode:l}=n;if(e&&(e.innerHTML=""),l&&(e.style.width="".concat(r,"px"),e.style.height="".concat(s,"px")),o)try{var c=yield i.fetchCreatives({type:"banner",params:JSON.stringify(C(n)),proxyDomain:n.proxyDomain});e.innerHTML=_(c,r,s).trim(),e.addEventListener("click",(()=>{window.open(window.location.href,"_blank"),window.location.href=c.url}))}catch(e){}else{var d=document.createElement("div"),u=y({url:t,width:r,height:s,bannerId:a});d.classList.add("_ccw-wrapper"),d.dataset.role="content",d.style.position="relative",d.style.display="flex",d.style.width="".concat(r,"px"),d.style.height="".concat(s,"px"),e.appendChild(d),d.appendChild(u)}return e}))).apply(this,arguments)}function z(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function W(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}D.styleTagTransform=P(),D.setAttributes=M(),D.insert=L().bind(null,"head"),D.domAPI=E(),D.insertStyleElement=B(),x()(R.Z,D),R.Z&&R.Z.locals&&R.Z.locals;var U=new WeakSet,F=new WeakSet,H=new WeakSet;class Z{constructor(e,t,n){var i=this;z(this,H),z(this,F),z(this,U),this.selectorPrefix="_ab-io",W(this,U,Y).call(this,e,t),W(this,H,J).call(this),this.progressLinear.addEventListener("animationend",o((function*(){yield n(),i.progressLinear.classList.toggle("active"),i.progressLinear.offsetHeight,i.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 Y(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 J(){W(this,F,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 G{constructor(e,t){this.overlay=null,this.banner=e,this.SessionService=t,this.ttlInMin=180,this.overlayVisibilityDuration=3e3}createOverlay(){g.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("_ccw-overlay"),document.body.appendChild(this.overlay),this.banner.classList.add("_ccw-bright"),setTimeout(this.removeOverlay.bind(this),this.overlayVisibilityDuration)}removeOverlay(){this.overlay.parentNode.removeChild(this.overlay)}canShow(){var e=g.get("_ba-bh");if(!e)return!0;var t=JSON.parse(e);return t.id!==this.SessionService.getSessionId()||this.SessionService.getDurationTime("min")>t.ttl}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n255||(i=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");r+=ie[(t=n<<16|i<<8|o)>>18&63]+ie[t>>12&63]+ie[t>>6&63]+ie[63&t]}return s?r.slice(0,s-3)+"===".substring(s):r});const re="https://btds.zog.link/in/va";function se(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: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(n,"x").concat(i,"&p=").concat(c,"&dt=").concat(d,"&sub=").concat(u,"&screen_resolution=").concat(a,"x").concat(l)}(t));var n=C(t),i="".concat(e,"?go=1&data=").concat(oe(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 ae{constructor(e){var{spotConfig:t,onRefresh:n,DisplayAdblockService:i,SessionService:o,hashGenerator:r}=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=o,this.hashGenerator=r,this.iframeWinnewInerval=null}checkHashedUrl(e){return new Promise((t=>{var n=g.get("_bauhc");if(n){var i=JSON.parse(n);if(i.updateAt>Date.now())return void t(i.status)}var o=e=>{g.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 n=this;return o((function*(){t&&(n.spotConfig=t),n.spotConfig.refreshCount=1;var i=n.getAuctionUrl();n.isConnectionLive=!0,n.bannerContainer=yield j(e,se(i,n.spotConfig),n.spotConfig,n.DisplayAdblockService),n.spotConfig.isStoryMode&&(n.overlayInstagram=new Z(n.bannerContainer,n.spotConfig,o((function*(){return n.refreshBanner()})))),n.spotConfig.isBrightMode&&(n.brightMode=new G(n.bannerContainer,n.sessionService)),n.spotConfig.refreshFrequency&&n.startRefreshInterval()}))()}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,se(t,e.spotConfig),e.spotConfig,e.DisplayAdblockService),e.spotConfig.isStoryMode&&(e.overlayInstagram=new Z(e.bannerContainer,e.spotConfig,o((function*(){return e.refreshBanner()})))),e.isConnectionLive=!0,e.onRefresh&&e.onRefresh(e.bannerContainer),e.bannerLabel=null,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)}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 t,n,{title:i,url:o,icon:r}=e,{isStoryMode:s,isStickyMode:a}=this.spotConfig,l=this.bannerContainer.querySelector('[data-role="content"]');l&&(this.bannerLabel&&l.removeChild(this.bannerLabel),this.bannerLabel=(t=function(e){var{text:t,url:n,icon:i,topOffset:o=6,closeButtonHtml:r=""}=e;return'\n \n ")}({text:i,url:o,icon:r,topOffset:s?20:6,closeButtonHtml:a?'\n \n ':""}),(n=document.createElement("div")).innerHTML=t.trim(),n.firstChild),l.appendChild(this.bannerLabel))}}var le=200,ce=0;function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:null,bottom:null},n=arguments.length>2?arguments[2]:void 0;"fixed"===e&&(n.style.zIndex=999999999),n.style.position=e,null!==t.top&&(n.style.top=t.top),null!==t.bottom&&(n.style.bottom=t.bottom)}function ue(e,t){return e?t.top<=0?"top":"bottom":"none"}function pe(e,t,n){var i,o,r,s,a,l,c,d,u,p,h,[m,f]=e.options.size.split("x"),b="horizontal_adaptive"===e.options.size;b&&(m=300,f="desktop"!==t.ua.device.type?100:250);var{utm_source:v,utm_medium:g,utm_campaign:y,utm_content:_}=t.holdableQSParams,w=null!==(i=null===(o=e.options)||void 0===o||null===(r=o.split_test)||void 0===r?void 0:r.flag)&&void 0!==i?i:"";return{visitorId:t.visitorId||null,visitorIdString:null!==(s=t.visitorIdString)&&void 0!==s?s:"",hasCryptoWallet:t.isMetaMaskActive,tagAbVersion:t.tagAbVersion||null,bannerId:e.spot_id,type:b?"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(m),height:Number(f),subId:Number(e.sub_id),labels:e.labels||[],allowedLabels:e.allowed_labels||[],refreshFrequency:Number(e.options.refresh_frequency)||null,stratagem:w,interstitial:e.interstitial||null,instantMessage:e.options.instant_message||null,sourceId:t.sub,utmSource:v,utmMedium:g,utmCampaign:y,utmContent:_,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:b,proxyDomain:e.proxy_domain||null,placementTypeId:e.options.placement_type_id||0,pageKeywords:t.keywords||"",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!==(a=e.options.refresh_type)&&void 0!==a?a:"interval",isIframeBreakProtectionEnable:e.options.is_antiblock_refresh,isIframeBreakProtectionByVisibility:e.options.antiblock_refresh_visibility_area,isSmartCappingMode:e.options.smart_refresh||!1,runningText:null!==(l=null===(c=e.options)||void 0===c||null===(d=c.instant_message)||void 0===d?void 0:d.running_text)&&void 0!==l&&l,popunderSspUrl:"".concat(n.generateAuctionUrl("popunder"),"/get/"),isCloakingConfig:t.v2,rchange:null!==(u=null===(p=e.options)||void 0===p?void 0:p.rchange)&&void 0!==u&&u,isTubeSite:null!==(h=t.isTubeSite)&&void 0!==h&&h,userAgentData:t.userAgentData,topics:t.topics}}function he(){var e=document.createElement("div");return e.className="__bai-element",e}function me(e,t,n){return fe.apply(this,arguments)}function fe(){return fe=o((function*(e,t,n){var i=e.find((e=>e.spotConfig.spotId===t.spotId));i||(i={spotConfig:t},e.push(i));var o=e.find((e=>e.spotConfig.spotId===t.interstitial.parent_spot_id));if(o&&!i.isActivated){var{bannerContainer:r}=yield n.createBanner({spotConfig:t,mountElement:he()});o.interstitialBody.appendChild(r),i.isActivated=!0}})),fe.apply(this,arguments)}var be=n(386),ve={};function ge(e,t){var{selector:n,onClose:i}=t,o=document.querySelector(n),r="Interstitial mount element with selector<".concat(n,"> not found");if(!o)return console.warn(r),null;var{interstitialContainerElement:s,interstitialBodyElement:a}=function(e){var{interstitialBody:t,buttonText:n}=e,i='\n
\n
\n
\n
\n \n
\n"),o=document.createElement("div");o.setAttribute("class","__bai-container"),o.innerHTML=i;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,n){var i="__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(i),"function"==typeof n&&n())})),"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(i),e.appendChild(o);document.body.appendChild(t)}(o,s,i),a}function ye(e,t,n){return _e.apply(this,arguments)}function _e(){return _e=o((function*(e,t,n){if(!document.querySelector(".__bai-elements")){var i=he(),{bannerContainer:r}=yield n.createBanner({spotConfig:t,mountElement:i}),s=!document.querySelector(".__bai-container")&&ge(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=he(),{bannerContainer:i}=yield n.createBanner({spotConfig:e.spotConfig,mountElement:t});s.appendChild(i)}));return function(t){return e.apply(this,arguments)}}())}}})),_e.apply(this,arguments)}function we(e){var t=document.body.querySelector('[data-psid="'.concat(e,'"]'));if(t)return t;var n=document.createElement("div");return n.dataset.psid=e,n.style.position="fixed",n.style.width="1px",n.style.height="1px",document.body.appendChild(n),n}ve.styleTagTransform=P(),ve.setAttributes=M(),ve.insert=L().bind(null,"head"),ve.domAPI=E(),ve.insertStyleElement=B(),x()(be.Z,ve),be.Z&&be.Z.locals&&be.Z.locals;var ke="_adb_history";const Ce=function(){try{return JSON.parse(localStorage.getItem(ke))}catch(e){}return[]},Se=function(e){localStorage.setItem(ke,JSON.stringify(e))},xe=e=>60*e*1e3;class Ie{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()+xe(e))}toJSON(){return{sessionId:this.sessionId,expires:this.expires,shows:this.shows}}}class Ee{constructor(e,t,n,i,o){this.isMobile=e,this.sessionId=i,this.PositionService=o,this.spotConfig=t,this.bannersController=n,this.sessions=new class{constructor(){this.sessions=[],this.loadSessions()}create(e,t){var n=new Ie({sessionId:e,expires:Date.now()+xe(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=Ce()||[];this.sessions=e.map((e=>new Ie(e)))}update(){Se(this.sessions)}},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 o((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 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 Ae=n(906),Le={};Le.styleTagTransform=P(),Le.setAttributes=M(),Le.insert=L().bind(null,"head"),Le.domAPI=E(),Le.insertStyleElement=B(),x()(Ae.Z,Le),Ae.Z&&Ae.Z.locals&&Ae.Z.locals;var Te=null;function Me(e,t,n,i,o){Te||(Te=new Ee(e,t,n,i,o)),Te.showsCount=0,Te.init()}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=n(234),Oe={};Oe.styleTagTransform=P(),Oe.setAttributes=M(),Oe.insert=L().bind(null,"head"),Oe.domAPI=E(),Oe.insertStyleElement=B(),x()(Be.Z,Oe),Be.Z&&Be.Z.locals&&Be.Z.locals;var Pe='\n \n';class Re{constructor(e,t){Ne(this,"createNavigationButton",((e,t)=>{var n=document.createElement("button");return n.innerHTML=e,n.className=t,n})),Ne(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)}))})),Ne(this,"createSlide",((e,t,n)=>{var i=document.createElement("div"),o=document.createElement("div");return i.className=n,o.className=t,o.append(e),i.append(o),i})),Ne(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"))})),Ne(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"))})),Ne(this,"onScale",(e=>{var t=e,n=window.innerWidth;n>=1024?this.countShowingElement=5:n>=429?this.countShowingElement=4:n<=428&&(this.countShowingElement=2.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,")")})),Ne(this,"createArrow",(()=>{this.sliderArrows=document.createElement("div");var e=this.createNavigationButton(Pe,"__left-button __button __disable-button"),t=this.createNavigationButton(Pe,"__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)})),Ne(this,"resizeWindow",(()=>{window.addEventListener("resize",(()=>{this.sliderTrack.childNodes.forEach((e=>{this.onScale(e)})),this.hideArrows()}))})),Ne(this,"hideArrows",(()=>{5===this.countShowingElement?this.sliderArrows.classList.add("__arrow-hidden"):this.sliderArrows.classList.remove("__arrow-hidden")})),Ne(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})),Ne(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 De(e){var t=JSON.parse(JSON.stringify([e,e,e,e,e]));return t.map(((e,t)=>(e.bannerId+=t,e))),t}function je(e,t,n){return qe.apply(this,arguments)}function qe(){return qe=o((function*(e,t,n){var i=De(t),r=yield Promise.all(i.map(function(){var e=o((function*(e){var{bannerContainer:t}=yield n.createBanner({spotConfig:e,mountElement:document.createElement("div")});return t}));return function(t){return e.apply(this,arguments)}}())),s=new Re(e,r);return s.createSlider(),s})),qe.apply(this,arguments)}function ze(e){return new Promise((function(t){e||t({status:"error"});var n=new Image;n.src=e,n.onload=function(){return t({status:"ok"})},n.onerror=function(){return t({status:"error"})}}))}var We=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)}))}};We.init();var Ue,Fe,He=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,o=!document.hidden&&!document.fullscreenElement&&(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));o?this.visibleSpots.add(e):this.visibleSpots.delete(e),e.onVisibilityChange(o)}))}watch(e){var{spotId:t,element:n,visibilityMarks:i,onMarkReached:o,onVisibilityChange:r}=e,s=this.spots.find((e=>e.spotId===t));s?(s.element=n,s.visibilityMarks=i,s.onMarkReached=o,s.onVisibilityChange=r,s.totalVisibleTime=0):this.spots.push({spotId:t,element:n,totalVisibleTime:0,visibilityMarks:i,onVisibilityChange:r,onMarkReached:o}),this.observe()}},Ze=new class{constructor(){this.banners=[],this.DisplayAdblockService=null,this.SessionService=null,this.hashGenerator=null}addDependencies(e){var{DisplayAdblockService:t,SessionService:n,hashGenerator:i}=e;this.DisplayAdblockService=t,this.SessionService=n,this.hashGenerator=i}createBanner(e){var t=this;return o((function*(){var{spotConfig:n,mountElement:i,onRefresh:r}=e,s=t.banners.find((e=>e.bannerId===n.bannerId));return s||(s=new ae({spotConfig:n,onRefresh:r,DisplayAdblockService:t.DisplayAdblockService,SessionService:t.SessionService,hashGenerator:t.hashGenerator}),n.isStickyMode&&(s=function(e){var t,n,i,{mount:r,refreshBanner:s}=e;function a(){n=e.bannerContainer.querySelector("[data-js-close-button]")}function l(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both";if(t){var i=t.getBoundingClientRect(),{position:o,top:r,bottom:s}=getComputedStyle(t),a=ue("fixed"===o,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,p=(e,n)=>de(e,n,t);if("both"===n||"top"===n)switch(!0){case i.top<=0&&r!=="".concat(le,"px")&&d>=-40&&"relative"===o:p("fixed",{top:"0px"});break;case d+le<0&&"top"===a:p("relative",{top:"".concat(le,"px")});break;case d>=0&&"top"===a:p("relative",{top:"auto"});break;case i.top>=0&&r==="".concat(le,"px")&&"relative"===o:p("fixed",{top:"0px"})}if("both"===n||"bottom"===n)switch(!0){case c&&u<0&&u>=-40&&s!=="".concat(le,"px")&&"relative"===o:p("fixed",{bottom:"0px"});break;case u<=-200&&"bottom"===a:p("relative",{bottom:"".concat(le,"px")});break;case u>0&&"bottom"===a:p("relative",{bottom:"auto"});break;case u>=-200&&s==="".concat(le,"px")&&"relative"===o:p("fixed",{bottom:"0px"})}}}(i,t),function(){var{position:e}=getComputedStyle(t);n.style.display="fixed"===e?"flex":"none"}()}function c(e,t){e.addEventListener("click",o((function*(){yield t()})))}function d(){return u.apply(this,arguments)}function u(){return u=o((function*(){for(var i=arguments.length,o=new Array(i),r=0;r{setTimeout((()=>{document.activeElement instanceof HTMLIFrameElement&&document.activeElement.dataset.cbi&&(this.clickCount+=1,window.focus(),this.sendClick())}),0)}))}sendClick(){this.clickEventURL&&ze(this.clickEventURL)}setEndpoint(e){this.clickEventURL=e}get count(){return this.clickCount}},Ve=new class{constructor(){this.comebackKey="b_c_b_k",this.initTime=null,this.lastClickTime=null,this.monitorBannerClickBehavior()}saveComebackTime(e){var t=this.getComebackTimes(),n=t.indexOf(0);-1!==n&&t.splice(n,1),t.unshift(e),t.length>3&&t.pop(),g.set(this.comebackKey,JSON.stringify(t))}monitorBannerClickBehavior(){this.blurListener=()=>{if(document.activeElement instanceof HTMLIFrameElement&&document.activeElement.dataset.cbi){var e=Date.now();this.initTime=e,this.lastClickTime=e}},window.addEventListener("blur",this.blurListener),this.visibilitychangeListener=()=>{if("visible"===document.visibilityState){if(!this.initTime)return;var e=Date.now()-this.initTime;if(e>1e3){this.saveComebackTime(e);var t=this.lastClickTime?Date.now()-this.lastClickTime:0;this.callComebackURL(t),this.lastClickTime=null}this.initTime=null}},window.addEventListener("visibilitychange",this.visibilitychangeListener)}getComebackTimes(){return JSON.parse(g.get(this.comebackKey)||"[]")}setComebackURL(e){this.comebackURL=e}callComebackURL(e){if(this.comebackURL){var t=this.getComebackTimes().join(",");ze("".concat(this.comebackURL,"&comeback=").concat(t,"&comeback_click_diff=").concat(e))}}},Je=[];function Ge(e,t,n){return Qe.apply(this,arguments)}function Qe(){return Qe=o((function*(e,t,n){var i,{DisplayAdblockService:r,SessionService:s,PositionService:a,hashGenerator:l}=n,c=pe(e,t,l),d=[1,30];"visible"===c.refreshType?(d.push(c.refreshFrequency),c.refreshFrequency=null):c.isTubeSite||d.push(50);var u="mobile"===t.ua.device.type,p=1===c.width&&1===c.height,h=c.interstitial&&u,f=c.instantMessage;Ze.addDependencies({DisplayAdblockService:r,SessionService:s,hashGenerator:l});var b=function(){var e=o((function*(e){p||c.refreshFrequency||c.isTubeSite||(c.refreshFrequency=110);var t=yield Ze.createBanner({spotConfig:c,mountElement:e});return c.isSmartCappingMode&&(We.observe(c.spotId,t.bannerContainer,(e=>{t.processIframeMessage(e)})),We.sendPingInsideIframe(c.spotId,t.bannerContainer)),We.observe(c.spotId,t.bannerContainer,(e=>{if(null!=e&&e.click_event_url&&Ye.setEndpoint(e.click_event_url),null!=e&&e.comeback_url&&Ve.setComebackURL(e.comeback_url),null!=e&&e.view_url&&(i=e.view_url),"label"===(null==e?void 0:e.type)){var n,o=null==e?void 0:e.payload;if(!o||null==o||null===(n=o.url)||void 0===n||!n.trim())return;t.setLabel({title:o.title,url:o.url,icon:o.logo})}})),t}));return function(t){return e.apply(this,arguments)}}();if(!p||c.isAdBlock){if(h)return c.interstitial.parent_spot_id?void me(Je,c,Ze):void ye(Je,c,Ze);if(f){if(300===c.width&&!u)return;Me(u,c,Ze,s.getSessionId(),a)}else{var v=c.selector||'[data-clickadilla-banner="'.concat(c.spotId,'"], [data-banner-id="').concat(c.spotId,'"]'),g=document.querySelector(v);if(g)if(c.isHorizontalAdaptive)je(g,c,Ze);else{var y=yield b(g);c.isAdBlock||c.isHorizontalAdaptive||He.watch({spotId:c.spotId,element:y.bannerContainer,visibilityMarks:d,onMarkReached:e=>{var t=i||re;m.get(t),1!==e&&30!==e&&y.refreshBanner()},onVisibilityChange:e=>{y.isVisible=e,e&&c.isBrightMode&&y.brightMode.canShow()&&y.startBrightBanner(),c.isStoryMode&&(e?y.startInstragramProgressBar():y.stopInstragramProgressBar())}})}else console.warn("No banner mount target id found: ".concat(c.spotId))}}else b(we(c.spotId))})),Qe.apply(this,arguments)}console.log("Banner for AdManager. Version: ".concat(.9004405276178984)),window["__banner-init"]=Ge,Fe=Ge,e[Ue="__banner-event"]=Fe,t[Ue]&&(function(n){t[n].forEach((function(t){t(e[n])}))}(Ue),t[Ue]=null)})()})();