(function(){"use strict";function __webpack_require__(t){var i=__webpack_module_cache__[t];if(void 0!==i)return i.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](e,e.exports,__webpack_require__),e.exports}var __webpack_modules__={412:function(__unused_rspack_module,__webpack_exports__,__webpack_require__){function asyncAwaitSupport(){try{return eval("(async function () {})();"),!0}catch(e){if(e instanceof SyntaxError)return!1}}var tslib__rspack_import_0=__webpack_require__(959),_di_di__rspack_import_1=__webpack_require__(728),_domain_ad_ad_events__rspack_import_2=__webpack_require__(789),_studio_utils_ad_ad_utils__rspack_import_3=__webpack_require__(515),_studio_utils_performance__rspack_import_4=__webpack_require__(602),_studio_utils_errors__rspack_import_5=__webpack_require__(526);class CreativeLoader{constructor(t,i){this.ad=t,this.i=i,this.requests=[],this.destroyed=!1;const e=window._bannerflow;this.exports=(null==e?void 0:e.exports)||{}}static isSupported(){const t=Array.prototype,i="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]"),e="undefined"!=typeof FontFace,n=void 0!==Object.values&&!1!==asyncAwaitSupport();return i&&e&&Array.from&&Array.of&&t&&t.copyWithin&&t.fill&&t.find&&t.findIndex&&t.keys&&t.map&&"function"==typeof Map.prototype.entries&&"function"==typeof Map.prototype.values&&n}h(){return(this.ad.selectedCreative.animated.files||[]).map(t=>(0,_studio_utils_ad_ad_utils__rspack_import_3.ZW)(t,this.ad.getOrigin()))}_(t,i){return(0,tslib__rspack_import_0.sH)(this,void 0,void 0,function*(){this.loadCallback=t,this.errorCallback=i,(0,_studio_utils_performance__rspack_import_4.vz)("cl:load-modules:start");const[e,{AnimatedCreative:n}]=yield Promise.all([this.k(),this.P()]);(0,_studio_utils_performance__rspack_import_4.vz)("cl:load-modules:end"),this.destroyed||((0,_studio_utils_performance__rspack_import_4.vz)("cl:init-creative:start"),this.C(e,n),(0,_studio_utils_performance__rspack_import_4.vz)("cl:init-creative:end"))})}k(){return(0,tslib__rspack_import_0.sH)(this,void 0,void 0,function*(){const t=this.h();for(const e of t)e.id.startsWith("preload")&&this.I(e);const i=t.find(t=>(0,_studio_utils_ad_ad_utils__rspack_import_3.pN)(t.url));if(!i)throw new _studio_utils_errors__rspack_import_5.Bb("No data file found");return yield this.R(i)})}I(t){var i;const e=document.createElement("link");(null===(i=null==e?void 0:e.relList)||void 0===i?void 0:i.supports("preload"))&&(e.rel="preload",e.as="script",e.href=t.url,e.type="text/javascript",document.head.appendChild(e))}R(t){return new Promise((i,e)=>{const n=document.createElement("script");n.charset="utf-8",n.type="application/javascript",n.onload=()=>{if(this.exports[t.id])i(this.exports[t.id]);else{console.error(`Could not load file with file id: ${t.id}`);const n=Object.keys(this.exports);for(const e of n)if(this.exports[e].toString().includes("(Color)")){const r=new _studio_utils_errors__rspack_import_5.Bb(`Could not load file with file id: ${t.id}. Fallback to first exported file id: ${n[0]}`);return this.ad.emit(_domain_ad_ad_events__rspack_import_2.N.Error,{event:r}),void i(this.exports[e])}e(new _studio_utils_errors__rspack_import_5.Bb(`Could not load file id: ${t.id}`))}},n.onerror=e,n.src=t.url,document.head.appendChild(n)})}O(){const t=this.h().find(t=>(0,_studio_utils_ad_ad_utils__rspack_import_3.el)(t.url));if(!t)throw new _studio_utils_errors__rspack_import_5.Bb("No animated-creative file found");return t}P(){return(0,tslib__rspack_import_0.sH)(this,void 0,void 0,function*(){const t=this.O();return(yield this.R(t))()})}destroy(){var t;for(delete this.loadCallback,this.destroyed=!0,(null===(t=this.creative)||void 0===t?void 0:t.destroy)&&(this.creative.destroy(),this.creative=void 0);this.requests.length;)this.requests.pop().abort()}C(t,i){try{if(!this.S(t))throw new _studio_utils_errors__rspack_import_5.Bb("Unknown data format");const e=t(),{FEEDS_STORAGE_ORIGIN:n,FONTSERVICE_API_ORIGIN:r,IMAGE_OPTIMIZER_ORIGIN:s,VIDEOS_STORAGE_ORIGIN:o,SVG_IMAGE_OPTIMIZER_ORIGIN:a}=e.env,c="previewData"in e?e.previewData:void 0;(0,_di_di__rspack_import_1.tB)(1,i).withArgs(this.ad,e.data,e.preloadAssets,Object.assign(Object.assign({},this.i),{origins:{FEEDS_STORAGE:n,FONTSERVICE:r,IMAGE_OPTIMIZER:s,VIDEOS_STORAGE:o,SVG_IMAGE_OPTIMIZER:a}}),()=>{"function"==typeof this.loadCallback&&this.loadCallback(this.ad.selectedCreative)},c),this.creative=(0,_di_di__rspack_import_1.xV)(1)}catch(e){const t=`Could not initialize creative with dependencies, reason: ${e.message}`;throw"function"==typeof this.errorCallback&&this.errorCallback(t),this.ad.emit(_domain_ad_ad_events__rspack_import_2.N.Error,{event:new _studio_utils_errors__rspack_import_5.Bb(t)}),new _studio_utils_errors__rspack_import_5.Bb(t)}}S(t){return this.ad.isDataJSVersion()}}__webpack_require__.d(__webpack_exports__,{p:function(){return CreativeLoader}})},728:function(t,i,e){function n(t,i,e=c){var n;const s=null!==(n=r(e))&&void 0!==n?n:new h(e);return s.tokenMap[t]||(s.tokenMap[t]={ctor:i,args:[],instantiating:!1,instances:[],dependencies:[]}),{withArgs(...i){s.tokenMap[t].args=i}}}function r(t){return a.find(i=>i.scope===t)}function s(t,{args:i,optional:e,scope:s=c,asNew:h}={}){var d;if(!h){const i=function(t,i){for(const e of a.slice().reverse()){const n=e.tokenMap[t];if(n&&(!i||i===e.scope))return n.instances[0]}}(t,s);if(i)return i}const l=function(t){for(const i of a.slice().reverse()){const e=i.tokenMap[t];if(e)return e.ctor}}(t);if(!l){if(e)return;throw new Error(`Could not get injectable of token ${t}. Expected dependency constructor has probably not been initialized as an Injectable.`)}n(t,l,s);const u=r(s);if(!u){if(e)return;throw new Error(`Non-optional injection on container with scope ${s}`)}const f=r("root");if(!f&&!u)throw new Error("No container found during injection");const _=null!==(d=u.tokenMap[t])&&void 0!==d?d:null==f?void 0:f.tokenMap[t];if(!_){if(e)return;throw new Error(`Token ${t} is not registered for dependency injection.`)}if(i&&(_.args=i),u.currentlyCreating){u.currentlyCreating.dependencies.push(_);for(const t of u.currentlyCreating.dependencies){const i=o(t,_);if(i.length&&t.ctor)throw new Error(`Circular dependency detected during instantiation. ${t.ctor.name} => ${i.map(({ctor:t})=>null==t?void 0:t.name).join(" => ")}`)}}const p=u.instantiate(t,_);return u.currentlyCreating=void 0,p}function o(t,i){const e=[];return function t(i,n){for(const r of i.dependencies){if(r.dependencies.some(({ctor:t})=>t===n.ctor))return void e.push(r,n);t(r,n)}}(t,i),e}const a=[];let c="root";class h{constructor(t="root"){this.tokenMap={},this.scope=t,a.push(this)}instantiate(t,i){return this.factory(t,i)}factory(t,{ctor:i,args:e}){const n=this.tokenMap[t];if(!n||n.instantiating)return;if(n.instantiating=!0,this.currentlyCreating=n,!i)return;const r=new i(...e.length?e:[]);return n.instantiating=!1,n.instances.push(r),this.currentlyCreating===n&&(this.currentlyCreating=void 0),r}}"undefined"!=typeof window&&(window.DI_MODULE={diInject:s,diInjectable:n,diContainers:a,diForceScope:function(t){c=t},clearDiContainers:function(){const t=r("studio");for(const i of a)i!==t&&(i.tokenMap={});a.splice(0),t&&a.push(t)},destroyDiInstance:function(t){for(const i of a){const e=Object.values(i.tokenMap);for(const i of e)i.instances=i.instances.filter(i=>i!==t)}},DIContainer:h}),e.d(i,{tB:function(){return n},xV:function(){return s}})},789:function(t,i,e){var n;!function(t){t.Render="render",t.Preload="preload",t.CreativeLoad="creativeload",t.Init="init",t.Click="click",t.ViewEnter="viewenter",t.ViewLeave="viewleave",t.IABViewEnter="iab_viewenter",t.IABViewLeave="iab_viewleave",t.PageReady="ready",t.Error="error",t.Destroy="destroy",t.Play="play",t.Stop="stop",t.Seek="seek",t.Loop="loop",t.Pause="pause",t.Mute="mute",t.TCData="tcdata"}(n||(n={})),e.d(i,{N:function(){return n}})},515:function(t,i,e){function n(t){return t.includes("data")}function r(t){return t.includes("animated-creative")}function s(t,i){let e=t.url;return i&&((t.id.startsWith("preload")||r(t.url))&&(e=`scripts/${e}`),(0,o.cW)(t.url)&&(e=(0,o.i$)(i,e))),{id:t.id,url:e}}var o=e(260);e.d(i,{ZW:function(){return s},el:function(){return r},pN:function(){return n}})},526:function(t,i,e){function n(t){if(t&&"object"==typeof t)return"function"==typeof t.getTrackingDetails?t.getTrackingDetails():void 0}var r,s;e.d(i,{mD:function(){return d},lo:function(){return l},uj:function(){return h},Bb:function(){return c},j7:function(){return a},qS:function(){return n}}),(s=r||(r={})).ImageRemovedDuringLoad="Image was removed while loading",s.ImageLoadingFailed="Could not load image",s.ResizeObservableLoopLimit="ResizeObserver loop limit exceeded",s.ResizeObservableLoopCompleted="ResizeObserver loop completed with undelivered notifications",s.VideoSourceInitFailed="Failed to initialize video source",s.MediaErrorAborted="media resource fetching was aborted",s.MediaErrorNetwork="a network error occurred while fetching the media resource",s.MediaErrorDecode="error occurred while decoding the media resource",s.MediaErrorSourceNotSupported="media resource is not supported",s.FeedDataFetchNetworkError="Could not fetch feed data: TypeError: Failed to fetch";class o extends Error{constructor(t,i){const e=t instanceof Error?t.message:t;super(null!=e?e:"Unknown error"),this.trackingErrorType=i}getTrackingDetails(){}}class a extends o{constructor(t){super(t,10)}}class c extends o{constructor(t){super(t,3)}}class h extends o{constructor(t){super(t,4)}}class d extends o{constructor(t){super(t,2)}}class l extends o{constructor(t){super(t,1)}}},602:function(t,i,e){function n(t){performance&&performance.mark&&performance.mark(t)}new Map,e.d(i,{vz:function(){return n}})},260:function(t,i,e){function n(t){return r(t,new Map)}function r(t,i){switch(Object.prototype.toString.call(t)){case"[object Array]":{if(i.has(t))return i.get(t);const e=t.slice(0);return i.set(t,e),e.forEach((t,n)=>{e[n]=r(t,i)}),e}case"[object Object]":{if(i.has(t))return i.get(t);const e=Object.create(Object.getPrototypeOf(t));return i.set(t,e),Object.keys(t).forEach(n=>{"__widget"!==n&&(e[n]=r(t[n],i))}),e}default:return t}}function s(t=""){const i={},e=w.get(t);if(e)return e;if(t&&t.indexOf("?")>-1)try{new URL(t).searchParams.forEach((t,e)=>{i[e]=t})}catch(n){let e;const r=/([^&=]+)=?([^&]*)/g,s=t=>{try{t=decodeURIComponent(t.replace(/\+/g," "))}catch(n){}return t},o=(t=t.substring(t.indexOf("?")+1))||window.location.search.substring(1);for(;e=r.exec(o);)i[s(e[1])]=s(e[2])}return w.set(t,i),i}function o(t){return 0===t.toLowerCase().replace(/(https?%3A)?(?=%2F%2F)/i,"").indexOf("%2f%2f")}function a(t){return!!t&&0!==t.replace(/^https?:/,"").indexOf("//")}function c(t){return!!t&&t.startsWith("data:image")}function h(t="",i=""){return t.length&&i.length&&("/"!==t.charAt(t.length-1)&&(t+="/"),"/"===i.charAt(0)&&(i=i.substr(1))),t+i}function d(t,i=!0){if("string"==typeof t){const e=t.match(g);if(e)return i?function(t){return t.replace(/^((https?:)?\/\/)/gim,"")}(e[0]):e[0]}}function l(t,i){return void 0!==t[i]}function u(t){if(t)switch(t.toLowerCase()){case"1":case"on":case"true":case"yes":return!0;case"0":case"off":case"false":case"no":return!1;default:return}}function f(t){return t?o(t)?decodeURIComponent(t):t:""}function _(t){if(!t)return!1;try{const i="function"==typeof URL?new URL(t).hostname:d(t,!0);return!!i&&!!i.match(/bannerflow./g)}catch(i){return!1}}function p(t){return t.replace(/\?.*/g,"")}function m(t){return(null==t?void 0:t.match(/(https?:\/\/[^\s]+)/g))||[]}function v(...t){for(let i=0;i<t.length;i++)if(null!=t[i])return t[i]}e.d(i,{i$:function(){return h},FB:function(){return d},O_:function(){return v},Uv:function(){return s},nc:function(){return m},Yk:function(){return l},rW:function(){return _},XI:function(){return c},EW:function(){return o},cW:function(){return a},Tf:function(){return u},Gv:function(){return f},b7:function(){return p},qM:function(){return k}});class w{static set(t,i){return this.cache.set(t,n(i)),i}static get(t){return n(this.cache.get(t))}static clear(){this.cache.clear()}}w.cache=new Map;const k=/(javascript|about|data)(:|%3A)/gi,g=/^(?:https?:\/\/)?(?:[^@/\n]+@)?(?:www\.)?([^:/?\n]+)/gim},959:function(t,i,e){function n(t,i,e,n){return new(e||(e=Promise))(function(r,s){function o(t){try{c(n.next(t))}catch(i){s(i)}}function a(t){try{c(n.throw(t))}catch(i){s(i)}}function c(t){var i;t.done?r(t.value):(i=t.value,i instanceof e?i:new e(function(t){t(i)})).then(o,a)}c((n=n.apply(t,i||[])).next())})}e.d(i,{sH:function(){return n}})}},__webpack_module_cache__={};__webpack_require__.d=function(t,i,e){var n=function(i,e){for(var n in i)if(__webpack_require__.o(i,n)&&!__webpack_require__.o(t,n)){var r={enumerable:!0};r[e]=i[n],Object.defineProperty(t,n,r)}};n(i,"get"),n(e,"value")},__webpack_require__.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var __webpack_exports__={};!function(){function t(t){if(function(t){return!((t=t.trim())&&"#"!==t&&!(0,h.XI)(t)&&!t.match(d))}(t=null==t?void 0:t.trim()))return t;throw new Error(`Error: unsafe URL value: "${t}" (see http://g.co/ng/security#xss)`)}function i(){let t=window;for(;t.parent&&t!==t.parent;)try{if(!t.parent.document)break;t=t.parent}catch(i){break}return t}function e(t=window){try{return t.self!==window.top}catch(i){return!0}}function n(t,i){var e;(null===(e=null===navigator||void 0===navigator?void 0:navigator.sendBeacon)||void 0===e?void 0:e.call(navigator,t,i))||function(t,i){!function(t,i,e){const n=new XMLHttpRequest;n.onerror=i=>{throw new Error(`Could not load resource: ${t}`)},n.open("POST",t,!0),n.send(e)}(t,0,i)}(t,i)}function r(t){return[2,4,5,7,6].includes(t)}function s(t){for(const i in S)void 0===t[i]&&void 0!==S[i]&&(t[i]=S[i]);return t}function o(t){const i=a(t);return i===t?t:o(i)}function a(t){try{return decodeURIComponent(t)}catch(i){return t.replace(/%([0-9A-Fa-f]{2})/g,t=>{try{return decodeURIComponent(t)}catch(i){return t}})}}function c(t){if(t){const i=(0,h.FB)(t);if(i){const t=i.split(".");if(t.length>1)return`*.${t[t.length-2]}.*`}}}__webpack_require__(959);var h=__webpack_require__(260);const d=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=Object.assign(Object.assign({},{"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"}),{"‍":"&zwj;","‌":"&zwnj;"});Object.assign({},l),function(){const t=[];let i;for(let e=0;e<256;e++){i=e;for(let t=0;t<8;t++)i=1&i?3988292384^i>>>1:i>>>1;t[e]=i}}();var u,f,_=__webpack_require__(526),p=__webpack_require__(789),m=__webpack_require__(515);const v=((null===(u=window.navigator)||void 0===u?void 0:u.userAgent)||"").toLowerCase(),w=(null===(f=window.navigator)||void 0===f?void 0:f.vendor).indexOf("Apple")>-1,k=(v.includes("chrome")||v.includes("crios"),v.includes("android"),w&&-1===v.indexOf("crios")&&v.indexOf("fxios"),!!document.documentMode),g=(!k&&window,v.match(/(iPad)/i)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),b=v.toLowerCase().includes("iphone")||g,y=(function(){if(!b)return!1;/safari\//i.test(v),"object"==typeof window.webkit&&window}(),function(){const t={simple:0,full:{major:0,minor:0,patch:0}};try{if(!v.includes("iphone")&&!v.includes("ipad"))return t;const i=v.match(/os (\d+[._]\d+[._]?\d*)/);if(!i)return t;const e=i[1].replace(/_/g,".").split(".").map(t=>parseInt(t,10));return e.some(isNaN)?t:{simple:e.length>=2?parseFloat(`${e[0]}.${e[1]}`):e[0],full:{major:e[0]||0,minor:e[1]||0,patch:e[2]||0}}}catch(i){return console.warn("Could not get iOS version:",i),t}}());class P{constructor(){this.listeners=[]}once(t,i,e){const n=r=>{e(r),t&&void 0!==n&&this.off(t,i,n)};return this.on(t,i,n),n}windowLoad(t=window,i){"complete"===t.document.readyState?i():this.once(t,"load",i)}on(t,i,e){t.addEventListener?t.addEventListener(i,e,!1):t.attachEvent&&t.attachEvent(`on${i}`,e),this.listeners.push({element:t,eventName:i,eventHandler:e})}off(t,i,e){t.removeEventListener?t.removeEventListener(i,e):t.detachEvent&&t.detachEvent(`on${i}`,e);for(let n=0;n<this.listeners.length;n++){const r=this.listeners[n];r.element===t&&r.eventName===i&&r.eventHandler===e&&this.listeners.splice(n,1)}}dispatch(t,i,e){const n=new Event(i);e&&(n.data=e),t.dispatchEvent(n)}clear(){for(;this.listeners.length;){const t=this.listeners.pop();this.off(t.element,t.eventName,t.eventHandler)}}}class E{constructor(){this.cb={},this.skipEmission=!1}on(t,i){return this.cb[t]||(this.cb[t]=[]),-1===this.cb[t].indexOf(i)&&this.cb[t].push(i),this}once(t,i){const e=n=>{"function"==typeof i&&i(n),this.off(t,e)};return this.on(t,e),this}off(t,i){if(void 0===t)return this.clearEvents(),this;if(!i)return delete this.cb[t],this;const e=this.cb[t];if(null==e?void 0:e.length){let t=e.length;for(;t-- >0;)e[t]===i&&e.splice(t,1)}return this}emit(t,i){var e;if(this.skipEmission)return this;const n=null===(e=this.cb[t])||void 0===e?void 0:e.slice();if(n)for(const s of n)try{s(i)}catch(r){console.error("CallbackError: ",r)}return this}clearEvents(){this.cb={}}}var C=__webpack_require__(602);class I{constructor(t){this.ad=t,this.scripts=[],t.once(p.N.PageReady,()=>{this.pageReady=!0}),this.A(),this.D()}D(){const t=window;if(t._bannerflow){const e=t._bannerflow.adScripts||[];for(let t=0;t<e.length;t++)try{const i=new e[t](this.ad);this.scripts.push(i)}catch(i){console.error("Could not initiate AdScript, reason: ",i)}}}A(){const t=this.ad.data.adScripts||this.ad.data.customScripts||[];for(let e=0;e<t.length;e++)try{const i=new(new Function(`${t[e]}; return AdScript;`)())(this.ad);this.scripts.push(i)}catch(i){console.error("Could not initiate AdScript, reason: ",i)}}overridePreload(){let t=!1;const i="overridePreload";try{this.$(e=>{!0===e[i](this.ad)&&(t=!0)},i)}catch(e){this.U(i,e)}return t}overrideRedirect(t,i){let e;const n="overrideRedirect";try{this.$(r=>{e=r[n](e||t,i,this.ad)||e},n)}catch(r){this.U(n,r)}return e}overrideTargetUrl(t){const i="overrideTargetUrl";try{this.$(e=>{const n=e[i](t,this.ad);t="string"==typeof n?n:t},i)}catch(e){this.U(i,e)}return t}overrideDomain(){let t="";const i="overrideDomain";try{this.$(e=>{t=e[i](this.ad)||t},i)}catch(e){this.U(i,e)}return t}overrideOpen(t){let i=!1;const e="overrideOpen";try{this.$(n=>{i=n[e](t,this.ad)||i},e)}catch(n){this.U(e,n)}return i}selectCreative(){let t;const i="selectCreative";return this.$(e=>{const n=e[i];if("function"==typeof n)try{t=n(this.ad.data.creatives)||t}catch(r){this.U(i,r)}},i),t}overrideContainer(){let t;const i="overrideContainer";try{this.$(e=>{t=e[i](this.ad)||t},i)}catch(e){this.U(i,e)}return t}hasMethod(t){let i=!1;return this.$(e=>{"function"==typeof e[t]&&(i=!0)}),i}U(t,i){console.error(`Could not run AdScript.${t}, reason:`,i),this.ad.emit(p.N.Error,{event:new _.j7(i instanceof Error?i:`unknown error - ${i}`)})}$(t,i){for(let e=0;e<this.scripts.length;e++){const n=this.scripts[e];i&&"function"!=typeof n[i]||t(n)}}}var R=__webpack_require__(412);class O{constructor(t){this.ad=t,this.destroy=()=>{this.image&&(this.image.parentNode&&this.image.parentNode.removeChild(this.image),this.ad.events.off(this.image,"click",this.onClick),this.image=void 0)},this.setScale=t=>{var i,e;null===(i=this.image)||void 0===i||i.style.setProperty("transform-origin","top left"),null===(e=this.image)||void 0===e||e.style.setProperty("transform",`scale(${t})`)},this.onClick=t=>{this.ad.click({x:t.clientX,y:t.clientY})}}add(t,i){var e;const n=this.ad.selectedCreative;if(null===(e=n.image)||void 0===e?void 0:e.url){let e=n.image.url;(0,h.cW)(e)&&(e=(0,h.i$)(this.ad.getOrigin(),e));const r=new Image(n.size.width,n.size.height);r.src=e;const s=r.style;return s.opacity="0",s.display="block",s.width=`${n.size.width}px`,s.height=`${n.size.height}px`,s.maxWidth="100%",s.position="absolute",s.top=s.left=s.margin=s.padding=s.zIndex="0",s.border=s.outline=s.transform=s.filter="none",s.cursor="pointer",this.ad.shouldFadeIn()&&(s.transition="opacity 200ms ease"),this.ad.responsive&&(s.width="100%",s.height="auto"),this.ad.events.once(r,"load",()=>{t.appendChild(r),s.opacity="1",this.ad.events.on(r,"click",this.onClick),"function"==typeof i&&i(this.image)}),this.image=r,r}}remove(){this.image&&(this.image.style.opacity="0",this.image.style.pointerEvents="none",setTimeout(this.destroy,this.ad.shouldFadeIn()?230:0))}}const S={match:void 0,separator:"?",delimiter:"&",assigner:"=",fragment:"#",deeplinkParam:void 0,deeplinkEncode:!0},A=[s({match:"adform.com/Banner/BannerClickTest.aspx",delimiter:";",deeplinkParam:"re"}),s({match:".adform.net/C/",delimiter:";",deeplinkParam:"cpdir",forceDecodeLastParameters:["CREFURL"],forceParamAsRedirect:s({match:".adform.net/adfscript/",delimiter:";",deeplinkEncode:!1})}),s({match:".adition.com/redi",deeplinkParam:"clickurl",allowEmptyDeeplink:!0}),s({match:"advalidation.net/e/creatives/test_creative_click",separator:"",delimiter:"",assigner:"",deeplinkSplit:"/?",fixDeeplinkEncoding:!0}),s({match:".agkn.com",deeplinkParam:"l1",deeplinkLastParam:!0}),s({match:".adnxs",separator:"%3F",delimiter:"/",assigner:"%3D",deeplinkParam:"clickenc",deeplinkLastParam:!0}),s({match:".adnxs",delimiter:"/",deeplinkParam:"clickenc",deeplinkLastParam:!0,skipUndefinedParameterValues:!0}),s({match:"adsby.bidtheatre",deeplinkParam:"url",allowEmptyDeeplink:!0}),s({match:"w55c.net",deeplinkParam:"rurl"}),s({match:"adspreview.googleusercontent.com",deeplinkParam:"_dc_redir"}),s({match:".doubleclick.net",deeplinkParam:"adurl",fixDeeplinkEncoding:!0,forceParamAsRedirect:s({match:"track.adform.net/C/",delimiter:";",deeplinkEncode:!1,adformDhtmlOnly:!0})}),s({match:".onemobile.yahoo.com",deeplinkParam:"rd"}),s({match:".ybp.yahoo.com",deeplinkSplit:"/",assigner:""}),s({match:".atwola.com/adlink",delimiter:";"}),s({match:"bid.g.doubleclick.net",deeplinkParam:"r1",fixDeeplinkEncoding:!0}),s({match:".demdex.net",deeplinkParam:"d_rd"}),s({match:".googleadservices.com",deeplinkParam:"adurl",deeplinkLastParam:!0}),s({match:".googlesyndication.com/pcs/click",separator:"?",delimiter:"&",assigner:"=",deeplinkParam:"adurl",deeplinkLastParam:!0,fixDeeplinkEncoding:!0,allowEmptyDeeplink:!1}),s({match:"go2cloud.org",deeplinkParam:"url"}),s({match:[".creative-serving.org",".creative-serving.com"],deeplinkSplit:"/",deeplinkParam:"1",assigner:"",separator:"?",delimiter:"/",allowEmptyDeeplink:!0}),s({match:".krxd.net",deeplinkParam:"clk"}),s({match:"ad.atdmt.com",deeplinkParam:"h",delimiter:";"}),s({match:"delivery.adnuntius.com",deeplinkParam:"r"}),s({match:"d.adroll.com",deeplinkParam:"clickurl"}),s({match:"m.exactag.com",deeplinkParam:"url"}),s({match:"app.readpeak.com",deeplinkParam:"tu"}),s({match:"re.admoove.se",deeplinkParam:"link"}),s({match:"clicktrack.pubmatic.com",delimiter:"_",deeplinkParam:"url",deeplinkLastParam:!0}),s({match:"pubmatic.com/click",deeplinkParam:"redirectUrl",deeplinkLastParam:!0}),s({match:["de17a.com/api/click","de17a.com/api/dev-click"],separator:";",delimiter:";",deeplinkParam:"ec"}),s({match:"de17a.com/click",deeplinkParam:"url"}),s({match:".adsrvr.org",deeplinkParam:"r"}),s({match:".rubiconproject.com",deeplinkParam:"/",deeplinkSplit:"/",assigner:"",deeplinkEncode:!1}),s({match:".rubiconproject.com",deeplinkParam:"url"}),s({match:".creativecdn.com/clicks",deeplinkParam:"url"}),s({match:".everesttech.net",deeplinkParam:"redir"}),s({match:".quantserve.com",deeplinkParam:"redirecturl2"}),s({match:".quantserve.com",deeplinkParam:"redirecturl3"}),s({match:".rfihub.com",deeplinkSplit:"/",deeplinkParam:"n",assigner:"",separator:"acs/",delimiter:"/",deeplinkLastParam:!0,fixDeeplinkEncoding:!0}),s({match:".adsrv.eacdn.com",deeplinkParam:"asclurl"}),s({match:".flashtalking.com",deeplinkParam:"url",fixDeeplinkEncoding:!0}),s({match:".starsaffiliateclub.com",deeplinkParam:"asclurl"}),s({match:"amaya.onelink.me",deeplinkParam:"af_android_url"}),s({match:"adman.gr/fwd/",deeplinkParam:"/",deeplinkSplit:"/",assigner:"",delimiter:"/"}),s({match:".mobpro.com/t/",deeplinkParam:"mptu",deeplinkEncode:!1}),s({match:"mediafin.adhese",deeplinkParam:"/https",deeplinkSplit:"/",assigner:"",delimiter:"/",deeplinkEncode:!1}),s({match:"ads-mediafin.adhese",deeplinkParam:"",separator:"ads-mediafin.adhese.com",delimiter:"",deeplinkLastParam:!0,assigner:"",deeplinkEncode:!1,deeplinkSplit:"/UR"}),s({match:"ads-igmn.adhese.com",deeplinkParam:"",separator:"ads-igmn.adhese.com",delimiter:"",deeplinkLastParam:!0,assigner:"",deeplinkEncode:!1,deeplinkSplit:"/UR"}),s({match:"clk.tradedoubler.com",deeplinkParam:"url"}),s({match:"sportradarserving.com/click",deeplinkLastParam:!0,deeplinkParam:"=http",deeplinkSplit:"=",delimiter:"",assigner:""}),s({match:".contextweb.com",delimiter:"~",deeplinkParam:"u",allowEmptyDeeplink:!1})],D="[target_url]",$="[target_url_unencoded]",U=["https://","http://","https%3A%2F%2F","http%3A%2F%2F","//","%2F%2F"];class x{constructor(i,e,n){if(this.parent=e,this.prevent=!1,this.j=[],this.T=["*.bannerflow.*"],n)return this.F=t(this.M(i)),this;e||(i=this.L(i)),this.parse(i)}whitelistDomains(t){if(t){Array.isArray(t)||(t=[t]);for(let i=0;i<t.length;i++){const e=t[i].indexOf("*")>-1?t[i]:c(t[i]);e&&-1===this.T.indexOf(e)&&this.T.push(e)}}return this.T}preventRedirect(){this.prevent=!0}L(t){const i=[];let e=o(t);if(y.simple>=17&&(e=function(t){return t.replace(/[\s<>#%{}|\\^~[\]`]/g,encodeURIComponent)}(e)),!A.filter(t=>t.fixDeeplinkEncoding).some(t=>this.q(t,e)>-1))return t;const n=()=>{const t=i.length?e.split(i[i.length-1])[1]:e,r=this.G(t,!0),s=(null==r?void 0:r.assigner)&&(null==r?void 0:r.deeplinkParam)||"",o=s&&(null==r?void 0:r.assigner)||"",a=new RegExp(`${s}${o}https?://`),c=t.slice(1).search(a);if(-1===c)return void i.push(t);const h=t.substring(0,c+1+s.length+o.length);i.push(h),n()};n();const r=i[0];let s="";for(let o=i.length-1;o>0;o--)s=encodeURIComponent(i[o]+s);return r+s}parse(i=""){var e;this.F=t(this.M(i)),this.j=[],this.V=this.W(this.F);const n=this.V.deeplinkSplit;if(this.V.fixDeeplinkEncoding&&this.B(this.F)&&(this.F=a(this.F)),"="!==i.charAt(i.length-1)&&i.indexOf("%3D")+3!==i.length||this.H(i)||this.V.deeplinkParam||(this.F+=D),n&&this.F.split(n).length){const t=this.F.lastIndexOf(n),i=this.F.substring(0,t),e=this.F.substring(t+n.length);this.F=i,this.j.push({name:n,value:new x(e,this)})}else if(this.F.indexOf(this.V.separator)>-1){if(this.V.fragment&&this.F.indexOf(this.V.fragment)>-1){const t=this.F.split(this.V.fragment);this.F=t[0],this.J=t[1]}const t=this.F.split(this.V.separator);let i,n;if(this.F=t[0],1===t.length?i=void 0:2===t.length?i=t[1]:t.length>2&&(i=t.slice(1).join(this.V.separator)),void 0!==i){if(this.V.deeplinkLastParam&&!this.V.fixDeeplinkEncoding){const t=this.V.delimiter+this.V.deeplinkParam+this.V.assigner,e=i.split(t),r=e.shift();let s=e.join(t);n=r.split(this.V.delimiter),r&&(s?s=this.Z(s):i.endsWith(t)&&(s=D),s&&n.push(this.V.deeplinkParam+this.V.assigner+s))}else n=i.split(this.V.delimiter);for(let t=0;t<n.length;t++){const i=n[t];if(i){const r=i.split(this.V.assigner)[0],s=i.indexOf(this.V.assigner)>-1?i.split(this.V.assigner).slice(1).join(this.V.assigner):void 0;let o=s;const c=this.V.forceParamAsRedirect;if((c&&!c.adformDhtmlOnly&&"string"==typeof s&&this.q(c,a(s))>-1||r===this.V.deeplinkParam||void 0===this.V.deeplinkParam&&this.K(s)||this.X(s))&&(o=new x(s,this),o.whitelistDomains(this.T)),"string"==typeof o&&t===n.length-1&&(null===(e=this.V.forceDecodeLastParameters)||void 0===e?void 0:e.includes(`${r}`))){const t=this.M(o);Array.from(new URL(t).searchParams).length>0||(o=t)}this.j.push({name:r,value:o})}}}}return this}toString(){let t=this.Y(this.F);return this.V?this.V.deeplinkSplit?t+this.tt():(this.j.length>0&&(t+=this.V.separator+this.tt()),this.J&&(t+=this.V.fragment+this.J),t):t}setParameter(t,i,e=!1){"string"==typeof i&&e&&(i=encodeURIComponent(i));const n=this.j.filter(i=>i.name===t);return n.length>0?(n[0].value=i,n[0]):(this.j.push({name:t,value:i}),this.j[this.j.length-1])}setParameterIfMissing(t,i,e=!1){if(!this.hasParameter(t)&&void 0!==i)return this.setParameter(t,i,e)}getParameter(t){var i;return null===(i=this.j.find(i=>i.name===t))||void 0===i?void 0:i.value}et(){return this.j=this.j.filter(t=>!this.nt(t.value)),this.j}removeParameter(t){const i=this.j.filter(i=>i.name===t);for(;i.length>0;){const t=i.pop(),e=this.j.indexOf(t);e>-1&&this.j.splice(e,1)}}hasParameter(t){return this.j.some(i=>i.name===t)}tt(){if(this.j.length>0){let t="";for(let i=0;i<this.j.length;i++){const e=this.j[i],n=e.value;if(t+=void 0===n&&this.V.skipUndefinedParameterValues?e.name:(i>0?this.V.delimiter:"")+e.name+this.V.assigner,this.nt(n)){let i=!1!==this.V.deeplinkEncode,e=!1;const r=this.rt();if(r){const t=a(n.toString()),s=r.adformDhtmlOnly?t.split(r.separator)[0]:t;this.q(r,s)>-1&&(i=!1!==r.deeplinkEncode,e=!!r.adformDhtmlOnly)}const s=n.toString();t+=i?encodeURIComponent(s):e?s.replace(/[&#+ ]/g,encodeURIComponent):s}else t+=void 0!==n?this.Y(n):""}return t}return""}st(){const t=this.j.filter(t=>this.nt(t.value)).pop();if(t)return t.value}getFinalRedirect(){let t,i=this;for(;t=i.st();)i=t;return i}setDeeplink(t,i,e){if(t){const n=this.getFinalRedirect(),r=new x(t,this),s=n.F,o=n.V.deeplinkParam;if(this.whitelistDomains(i),n.whitelistDomains(i),r.whitelistDomains(i),o&&this.setParameterIfMissing(o,r,!1))return r;if(this.ot(s,this.T))return this.ct(n,r,e),n.parse(r.toString());if(this.H(s))return n.F=this.Y(s,encodeURIComponent(t)),n;if(this.ht(s))return n.F=this.dt(s,t),n;console.warn(`Could not override deeplink, add the domain of "${s}" to whitelisted domain overrides.`)}}lt(){var t;const i=this.getFinalRedirect(),e=null===(t=i.parent)||void 0===t?void 0:t.V.allowEmptyDeeplink;return i.H()||i.ut()&&!e}ut(){return!this.F||this.X()}X(t=this.F){return!!t&&(0===t.indexOf(D)||0===t.indexOf(encodeURIComponent(D)))}H(t=this.F){return!!t&&(t.indexOf(D)>-1||t.indexOf(encodeURIComponent(D))>-1)}ht(t=this.F){return t.indexOf($)>-1}Y(t,i=""){return this.H(t)?t.replace(D,i):t}dt(t,i=""){return this.ht(t)?t.replace($,i):t}ot(t,i=[]){if(!t||this.X(t))return!0;if("undefined"!=typeof URL&&i.length){let n;try{n=new URL(t).hostname}catch(e){const i=document.createElement("a");i.href=t,n=i.hostname}return i.some(t=>function(t=""){const i=t.split(".");if(1===i.length&&(i.unshift("*"),i.push("*")),i.length<2||i.length>3)throw new Error(`Can not parse: "${t}"., url needs to contain 1 or 2 dots. Sample "*.domain.top" or "domain.*"`);let e="^";return i.forEach((t,n)=>{const r=n!==i.length-1?"\\.":"";e+="*"===t?`(\\.?[\\w-]+${r})?`:`(${t})${r}`}),e+="$",new RegExp(e)}(t).test(n))}return!0}W(t){const i=(t=t.toLowerCase()).replace(/\?.+$/i,"");let e=S,n=Number.MAX_VALUE;return A.forEach(r=>{if(void 0!==r.match){const s=this.q(r,i),o=t.indexOf(r.delimiter),a=t.indexOf(r.separator),c=r.deeplinkParam&&-1!==t.indexOf(r.deeplinkParam.toLowerCase());(s>-1&&s<=n&&e!==S&&o>-1&&a>-1&&c||s>-1&&s<n)&&(e=r,n=s)}}),void 0===e.match&&t.match(/([?&])url=/)&&(e=this.ft(t)),Object.assign({},e)}G(t,i=!1){let e,n=t.length;for(const r of A){const s=this.q(r,t);i&&r.deeplinkParam&&!t.includes(r.deeplinkParam)||-1!==s&&n>s&&(n=s,e=r)}return e}q(t,i){if(t.match){const e=Array.isArray(t.match)?t.match:[t.match];for(const t of e){const e=i.toLowerCase().indexOf(t.toLowerCase());if(-1!==e)return e}}return-1}rt(){var t;const i=this.V.forceParamAsRedirect,e="function"==typeof(null===(t=window.dhtml)||void 0===t?void 0:t.getVar);return(null==i?void 0:i.adformDhtmlOnly)&&!e?void 0:i}ft(t){return s({match:(0,h.FB)(t),deeplinkParam:"url"})}Z(t){if(t&&this.V.fixDeeplinkEncoding&&!(0,h.EW)(t)){const i=encodeURIComponent(this.V.separator),e=t.indexOf(i),n=this._t(t);if(void 0===n||e<n){const e=t.split(i);t=[encodeURIComponent(e.shift()||""),...e].join(i)}}return t}_t(t){if(!t||0!==t.indexOf("http"))return;const i=["http://","https://","http%3A%2F%2F","https%3A%2F%2F"];for(let e=0;e<i.length;e++){const n=t.indexOf(i[e],5);if(n>-1)return n}}B(t){if(t&&this.V.separator){const i=t.replace(/\?.+$/i,""),e=encodeURIComponent(this.V.separator);return i.indexOf(e)>-1}return!1}M(t){return(0,h.EW)(t)?a(t):t}K(t){if(t)for(let i=0;i<U.length;i++)if(0===t.indexOf(U[i]))return!0;return!1}nt(t){return!!t&&t instanceof x==1}ct(t,i,e="mergetargetprimary"){var n;if(null===(n=t.j)||void 0===n?void 0:n.length)switch(e){case"fromredirect":i.et(),t.j.forEach(t=>{i.setParameter(t.name,t.value)});break;case"mergeredirectprimary":t.j.forEach(t=>{i.setParameter(t.name,t.value)});break;case"mergetargetprimary":t.j.forEach(t=>{i.setParameterIfMissing(t.name,t.value)})}}}const j="redirect_";class T{constructor(t){this.vt=t,this.wt=[]}getDeeplinkWhitelist(){return this.wt}getRedirectUrl(){const i=this.vt.parameters,e=i.redirecturl||i.targeturl;return!1!==(0,h.Tf)(e)&&t((0,h.Gv)(e))}kt(t){const i=this.vt.parameters,e=this.getRedirectUrl();if(!1===e)return;if(!1===(0,h.Tf)(i["bf-redirect"]))return new x(e,void 0,!0);const n=this.gt(),r=this.getTargetUrl(t),s=this.vt.adScripts,o=(0,h.Tf)(i.deeplink)||!e,a=new x(e);if(this.bt(),this.yt(r,t),null==s?void 0:s.hasMethod("overrideRedirect")){const t=this.vt.adScripts.overrideRedirect(a,r);if(t){const i=t.getFinalRedirect();if(this.Pt(i,n),i.prevent||i.toString())return t}}return r&&a&&((o||a.lt())&&a.setDeeplink(r,this.wt),this.Pt(a.getFinalRedirect(),n)),a}getTargetUrl(i){const e=this.vt.data,n=this.vt.adScripts;let r=(0,h.O_)(e.target?e.target.url:void 0,i,this.vt.selectedCreative.targetUrl);return(null==n?void 0:n.hasMethod("overrideTargetUrl"))&&(r=this.vt.adScripts.overrideTargetUrl(r)),r?t(r):r}open(i){var e;if(!(null===(e=this.vt.adScripts)||void 0===e?void 0:e.overrideOpen(i))&&i){i=t(i);const e=window.mraid,n=window.Enabler;(null==n?void 0:n.exit)?n.exit("Click on banner"):(null==e?void 0:e.open)?e.open(i):window.open(i,this.Et())}}Et(){const t=this.vt.data.target;return this.vt.parameters.targetwindow||((null==t?void 0:t.window)?t.window:"_blank")}gt(){const t=this.vt.parameters,i={};return Object.keys(t).forEach(e=>{0===e.toLowerCase().indexOf(j)&&(i[e.toLowerCase().replace(j,"")]=t[e])}),i}yt(...t){if(null==t?void 0:t.length){const i=t.filter((i,e)=>"string"==typeof i&&t.indexOf(i)===e&&-1===this.wt.indexOf(i));this.wt.push(...i)}}bt(){const t=this.vt.parameters.whitelist;if(t){const i=a(t).split(",");i.length&&this.yt(...i)}}Pt(t,i){const e=t.getFinalRedirect();Object.keys(i).forEach(t=>{e.setParameter(t,i[t],!0)})}}const F=["focus","blur","visibilitychange","freeze","resume","pageshow","pagehide","beforeunload"],M=new class{constructor(){this.Ct=[],this.It=t=>{const i=this.Rt(t);if(this.Ot===i)return;this.Ot=i;const e=this.Ct.slice();for(let n=0;n<e.length;n++)e[n](i)},this.St()}onChange(t){this.Ct.push(t)}St(){F.forEach(t=>{this.getContext(t).addEventListener(t,this.It,{capture:!0})})}getContext(t){let i=window;return"visibilitychange"===t&&(i=document),i}Rt(t){return"beforeunload"===(null==t?void 0:t.type)||"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}At(t){for(let i=0;i<this.Ct.length;i++)if(this.Ct[i]===t){this.Ct.splice(i,1);break}}Dt(){this.Ct=[],F.forEach(t=>{this.getContext(t).removeEventListener(t,this.It,{capture:!0})})}};class L{constructor(t,i){this.vt=t,this.$t=i,this.Ut=!1,this.xt=[],this.jt=t=>{"hidden"===t&&(this.Tt(),M.At(this.jt))},1!==this.$t.environment&&(this.Ft(),M.onChange(this.jt))}Mt(t,i,e){if(!this.Ut){const n=this.vt.parameters["error-sample-rate"],r=n?+n:.001;Math.random()<r&&this.Lt(this.Nt({error:"string"!=typeof t?t.message:t,errorType:i,details:e},r)),this.Ut=!0}}destroy(){this.Tt(),M.At(this.jt)}Lt(t){if(r(this.$t.environment))return;const i=this.vt.data.id,e=this.vt.selectedCreative.id;n((0,h.i$)(this.vt.getOrigin(),`/tr/error/${i}/${e}`),JSON.stringify(t))}qt(t){if(r(this.$t.environment))return;const i=this.vt.data.id,e=this.vt.selectedCreative.id;n((0,h.i$)(this.vt.getOrigin(),`/tr/blocked/${i}/${e}`),JSON.stringify(t))}Ft(){window.ReportingObserver&&(this.Gt=new window.ReportingObserver(t=>{var i;if(r(this.$t.environment)){const e=null===(i=t[0])||void 0===i?void 0:i.body,n=new _.lo(null==e?void 0:e.message);return void this.vt.emit(p.N.Error,{event:n,data:e})}t.length>0&&this.xt.push(...t)},{types:["intervention"],buffered:!0}),this.Gt.observe())}Tt(){if(!this.Gt)return;const t=this.Gt.takeRecords(),i=[...this.xt,...t];i.length>0&&this.qt(i)}Nt(t,i){var e,n;return{error:t.error,sampleRate:i,errorType:t.errorType,accountSlug:(null===(e=this.vt.data.account)||void 0===e?void 0:e.slug)||"",brandId:(null===(n=this.vt.data.brand)||void 0===n?void 0:n.id)||"",details:t.details}}}var N=__webpack_require__(728);class q{constructor(t){this.vt=t,this.name="position",this.Vt=!1,this.position=[0,0],this.Wt=()=>{this.vt.container&&this.zt(this.vt.container)}}start(){this.vt.container?this.zt(this.vt.container):this.vt.once(p.N.Init,this.Wt)}snapshot(){return{ap:[Math.round(this.position[0]),Math.round(this.position[1])]}}destroy(){this.vt.off(p.N.Init,this.Wt)}zt(t){if(this.Vt)return;this.Vt=!0;const i=t.getBoundingClientRect();this.position=this.Bt(i)}Bt(t){let e=t.top,n=t.left,r=window;const s=i();for(;r!==s;)try{const t=r.frameElement;if(!t)break;const i=t.getBoundingClientRect();e+=i.top,n+=i.left,r=r.parent}catch(o){break}return[n+(r.scrollX||r.pageXOffset||0),e+(r.scrollY||r.pageYOffset||0)]}}class G{constructor(t){this.vt=t,this.name="interaction",this.Ht=!1,this.Jt=0,this.Zt=0,this.Kt=0,this.Wt=()=>{this.vt.container&&this.Xt(this.vt.container)},this.Yt=()=>{this.Ht||(this.Ht=!0,this.Jt=Date.now())},this.Qt=()=>{this.Ht&&(this.Zt+=Date.now()-this.Jt,this.Ht=!1)},this.ti=()=>{this.Kt++}}start(){this.vt.on(p.N.Click,this.ti),this.vt.container?this.Xt(this.vt.container):this.vt.once(p.N.Init,this.Wt)}snapshot(){let t=this.Zt;return this.Ht&&(t+=Date.now()-this.Jt),{it:Math.round(t),cl:this.Kt}}destroy(){this.vt.off(p.N.Init,this.Wt),this.vt.off(p.N.Click,this.ti),this.ii&&(this.ii.removeEventListener("mouseenter",this.Yt),this.ii.removeEventListener("mouseleave",this.Qt),this.ii.removeEventListener("touchstart",this.Yt),this.ii.removeEventListener("touchend",this.Qt),this.ii.removeEventListener("touchcancel",this.Qt))}Xt(t){this.ii=t,t.addEventListener("mouseenter",this.Yt),t.addEventListener("mouseleave",this.Qt),t.addEventListener("touchstart",this.Yt,{passive:!0}),t.addEventListener("touchend",this.Qt,{passive:!0}),t.addEventListener("touchcancel",this.Qt,{passive:!0})}}class V{constructor(t){this.vt=t,this.name="viewability",this.ei=0,this.ni=!1,this.ri=0,this.si=0,this.oi=0,this.ai=!1,this.ci=0,this.hi=0,this.di=()=>{if(this.ni)return;const t=Date.now();this.ni=!0,this.ri=t,0===this.oi&&(this.oi=t-this.ei)},this.li=()=>{this.ni&&(this.ni=!1,this.si+=Date.now()-this.ri,this.ri=0)},this.ui=()=>{this.ai||(this.ai=!0,this.ci=Date.now())},this.fi=()=>{this.ai&&(this.ai=!1,this.hi+=Date.now()-this.ci,this.ci=0)}}start(){this.ei=Date.now(),this.vt.on(p.N.IABViewEnter,this.di),this.vt.on(p.N.IABViewLeave,this.li),this.vt.on(p.N.ViewEnter,this.ui),this.vt.on(p.N.ViewLeave,this.fi)}snapshot(){const t=Date.now();let i=this.si;this.ni&&(i+=t-this.ri);let e=this.hi;return this.ai&&(e+=t-this.ci),{vd:Math.round(i),tf:Math.round(this.oi),vs:Math.round(e)}}destroy(){this.vt.off(p.N.IABViewEnter,this.di),this.vt.off(p.N.IABViewLeave,this.li),this.vt.off(p.N.ViewEnter,this.ui),this.vt.off(p.N.ViewLeave,this.fi)}}class W{constructor(t){this._i=t,this.pi=[]}start(){const t=this._i.ad;this.mi=new V(t),this.wi=new G(t),this.ki=new q(t),this.pi=[this.mi,this.wi,this.ki];for(const i of this.pi)i.start()}snapshot(){return Object.assign(Object.assign(Object.assign(Object.assign({},this.mi.snapshot()),this.wi.snapshot()),this.ki.snapshot()),{v:1})}destroy(){for(const t of this.pi)t.destroy();this.pi=[]}}class z{constructor(t,i){this.gi=t,this.bi=i,this.yi=!1}Pi(t){this.yi||this.bi(t)}Ei(t){this.yi||(this.bi(t),this.yi=!0)}unsubscribe(){this.gi.Ci(this)}}class B{constructor(t){this.value=t,this.Ii=[],this.completed=!1}subscribe(t){const i=new z(this,t);return this.Ii.push(i),this.completed&&i.Ei(this.value),i}Ci(t){this.Ii=this.Ii.filter(i=>i!==t)}Pi(t){if(!this.completed){this.value=t;for(const t of this.Ii)t.Pi(this.value)}}Ei(){if(!this.completed){for(const t of this.Ii)t.Ei(this.value);this.completed=!0}}}class H{constructor(){this.Ri="none",this.Oi=new B(void 0),this.Oi.Ei()}Si(){}Ai(){return!0}}class J{constructor(t){this.window=t,this.Ri="tcf",this.Oi=new B(void 0),function(t,i){let e,n=i;for(;n;){try{if(n.frames.__tcfapiLocator){e=n;break}}catch(r){}if(n===i.top)break;n=n.parent}try{const n={};if(i.__tcfapi||i.top===i||(i.__tcfapi=function(t,i,r,s){if(e){const o=`${Math.random()}`,a={__tcfapiCall:{command:t,parameter:s,version:i,callId:o}};n[o]=r,e.postMessage(a,"*")}else r({msg:"CMP not found"},!1)}),i.addEventListener("message",t=>{let i={};try{i="string"==typeof t.data?JSON.parse(t.data):t.data}catch(r){}const e=i.__tcfapiReturn;if(e){const t=n[e.callId];"function"==typeof t&&(t(e.returnValue,e.success),delete n[e.callId])}},!1),i.__tcfapi)return void i.__tcfapi("addEventListener",2,(i,e)=>{if(!e||!i)return void t.Ei();const n=i.eventStatus;"tcloaded"!==n&&"useractioncomplete"!==n||t.Pi(i)})}catch(s){}t.Ei()}(this.Oi,this.window)}Si(){var t;return null===(t=this.Oi.value)||void 0===t?void 0:t.tcString}Ai(){return!!(t=this.Oi.value)&&function(t){return!function(t){return void 0===t.gdprApplies||t.gdprApplies}(t)||"loaded"===t.cmpStatus&&!(!function(t){var i,e;return null===(e=null===(i=t.purpose)||void 0===i?void 0:i.consents)||void 0===e?void 0:e[1]}(t)||!function(t){var i,e;return null===(e=null===(i=t.vendor)||void 0===i?void 0:i.consents)||void 0===e?void 0:e[273]}(t))}(t);var t}}class Z{constructor(t,i=["tcf"]){this.Di=i,this.activeProvider=this.initProvider(t,i[0])}get consent$(){return this.activeProvider.Oi}Si(){return this.activeProvider.Si()}Ai(){return this.activeProvider.Ai()}initProvider(t,i){return"none"===i?new H:new J(t)}}const K="67bd7cb5186e63fddbccb80f";class X{constructor(t){var i;this.vt=t,this.$i=[],this.Ui=((t={})=>{const e=t.win||("undefined"!=typeof window?window:void 0);return!!e&&null===(t=>{var i;try{return(null===(i=t.location)||void 0===i?void 0:i.href)||null}catch(e){return null}})((t=>{try{return t.top||t}catch(i){return t}})(e))})({win:this.vt.getWindow()}),this.xi=t=>{if("hidden"===t){const t=(0,N.xV)(1,{optional:!0}),i=null==t?void 0:t.getTrackerAttentionData();i&&this.ji(8,i),this.Ti(),M.At(this.xi)}},this.Ti=()=>{var t;if(!(null===(t=this.$i)||void 0===t?void 0:t.length))return;const i=this.Fi(this.$i),e=JSON.stringify(i),r=this.Mi();n((0,h.i$)(this.vt.getOrigin(),r),e),this.$i=[]},this.Li=this.Ni(),this.qi=new Z(this.vt.getWindow(),null===(i=this.vt.data.tracking)||void 0===i?void 0:i.consentFrameworks),this.Gi=new W({ad:this.vt}),this.Gi.start(),this.vt.parameters.did===K&&this.vt.once(p.N.IABViewEnter,()=>{this.Vi=(new Date).getTime()}),M.onChange(this.xi)}get deeplinkWhitelist(){return console.warn("tracking.deeplinkWhitelist is deprecated"),this.vt.redirect.getDeeplinkWhitelist()}getConsentManager(){return this.qi}click(t){return console.warn("tracking.click is deprecated"),this.vt.click(t)}Wi(t){this.zi(t),this.ji(2,t),this.Ti()}Bi(){this.ji(1),this.Ti()}trackCustomEvent(t){this.ji(4,t),this.Ti()}destroy(){this.Ti(),this.vt.events.off(window,"beforeunload",this.Ti),this.Gi.destroy(),M.At(this.xi)}Ni(){if(window.crypto&&"function"==typeof window.crypto.randomUUID)return crypto.randomUUID();const t=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER);return`${(new Date).getTime()}_${t}`}ji(t,i){let e;switch(t){case 1:if(this.Hi)return;this.Hi=!0;break;case 2:if(this.Ji)return;e=this.Zi(i),this.Ji=!0;break;case 4:if(e=this.Ki(i),!e)throw new _.mD("Can't track custom event value without name");break;case 8:e=this.Xi(i,this.Gi.snapshot())}this.$i.push({t:t,d:(new Date).getTime(),v:e})}Mi(){var t,i,e;const n=(null===(t=this.vt.data.brand)||void 0===t?void 0:t.id)||"",r=null===(i=this.qi)||void 0===i?void 0:i.Ai();return(null===(e=this.vt.data.tracking)||void 0===e?void 0:e.pixelEnabled)&&r?`/tr/v2/pixel/${n}`:"/tr/v2/pixel/"}zi(t){const i=this.vt.parameters;if(!i.clickpixel)return;const e=decodeURIComponent(i.clickpixel);!function(t){(new Image).src=t||""}(i.did===K?this.Yi(e,t):e)}Yi(t,i){var e,n;const r=this.vt.container,s=this.vt.selectedCreative.size,o=(null==r?void 0:r.clientWidth)||s.width,a=(null==r?void 0:r.clientHeight)||s.height,c=this.Vi?(new Date).getTime()-this.Vi:0,h=new URLSearchParams({cx:String(null!==(e=i.x)&&void 0!==e?e:0),cy:String(null!==(n=i.y)&&void 0!==n?n:0),tv:String(c),aw:String(o),ah:String(a),cbl:"0",m:"1"}),d=t.includes("?")?"&":"?";return`${t}${d}${h.toString()}`}Fi(t){var i,e,n;const r=this.vt.data||{},s=this.vt.selectedCreative||{size:{},version:{}},o=this.vt.parameters||{},a=r.brand||{},c=r.account||{},d=s.size||{},l=s.version||{},u=l.localization||{},f=s.creativeset||{},_=r.campaign||{id:r.campaignId},p=null===(i=this.qi)||void 0===i?void 0:i.Si(),m=(0,h.Tf)(o.limit_ip)?1:0;return{e:t,u:{r:this.vt.getDomain(),s:this.Li,sr:[window.screen.width,window.screen.height],bs:[window.outerWidth,window.outerHeight],so:window.screen.orientation.type},a:{vs:void 0!==s.adVersion?`${s.adVersion}`:"studio",a:c.slug,br:a.id,c:f.id,ad:r.id,b:s.id,ck:s.checksum,s:d.id,cs:`${d.width}x${d.height}`,t:l.id,l:u.id,cp:_.id,ch:o.did,tcf:p,cf:null===(e=this.qi)||void 0===e?void 0:e.Di.join(","),cc:null===(n=r.tracking)||void 0===n?void 0:n.country,lip:m,rl:o.reportinglabel}}}Ki(t){if(t.name){const i=t,e=t.id,n=t.label,r=parseFloat(`${t.value}`),s={n:String(i.name).slice(0,100)};return null!=e&&(s.id=String(e).slice(0,100)),null!=n&&(s.l=String(n).slice(0,100)),isNaN(r)||(s.m=Math.round(100*r)/100),s}}Zi(t){return{x:t.x,y:t.y,t:t.time}}Xi(t,i){return{el:t.elements,b:t.isBannerflowHosted,lo:t.loop,p:parseFloat(t.progress.toFixed(3)),t:parseFloat(t.playTime.toFixed(3)),co:Number(this.Ui),vd:i.vd,tf:i.tf,vs:i.vs,it:i.it,cl:i.cl,ap:i.ap,v:i.v}}}class Y{constructor(t){this.ad=t,this.visible=!1,this.Qi=!1,this.te=0,this.ie=t=>{"number"==typeof t&&(this.te=t);const i=!document.hidden,e=this.te>=this.ee()&&i,n=this.te>0&&i;n!==this.visible&&this.ad.emit(n?p.N.ViewEnter:p.N.ViewLeave),e!==this.Qi&&this.ad.emit(e?p.N.IABViewEnter:p.N.IABViewLeave),this.visible=n,this.Qi=e},this.ne()&&(this.re(),this.se(),this.oe())}ne(){return"IntersectionObserver"in window&&void 0!==document.hidden}pauseOutsideView(){if(!this.ne())return!1;const t=this.ad.parameters;return(0,h.Yk)(t,"pauseoutsideview")?!!(0,h.Tf)(t.pauseoutsideview):!1!==this.ad.data.pauseOutsideView}re(){const t=this.ad.container;if(this.ne()&&t){const i=new IntersectionObserver(t=>{this.ie(t[0].intersectionRatio)},{threshold:[0,.3,.5]});i.observe(t),this.ae=i}}oe(){void 0!==document.addEventListener&&void 0!==document.hidden&&M.onChange(this.ie)}se(){const t=window.mraid,i=this.ad.events;if(null==t?void 0:t.getState){const e=()=>{t.isViewable()&&this.ie(1),i.on(t,"viewableChange",t=>{this.ie(t?1:0)})};"loading"===t.getState()?i.on(t,"ready",e):e()}}destroy(){M.Dt(),this.ae&&this.ae.disconnect()}ee(){const t=this.ad.container,i=this.ad.selectedCreative.size;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|CriOS|SamsungBrowser|IEMobile|Opera Mini/i.test(v)?.5:(t.clientWidth||i.width)*(t.clientHeight||i.height)>242500?.3:.5}}const Q="data-rendered",tt=/ad\.js/;class it extends E{constructor(t,i,e=!0){var n,s;if(super(),this.parameters={},this.events=new P,this.ce=!1,this.he=!1,this.de=window,this.$t=(s={environment:(0,h.rW)(window.location.href)?2:0},window.bfstudio?{environment:2,CUSTOM_AD_DOMAIN:s.CUSTOM_AD_DOMAIN}:s),this.le=(t=!0)=>{(0,C.vz)("ad:init:start"),this.adScripts=new I(this),this.overriddenFeedData=this.ue(),this.ce=this.adScripts.overridePreload(),this.responsive=this.fe(),this.selectedCreative=this._e(this.data),this.pe=this.me(),t&&(this.fe()&&this.ve(),this.container=this.we(),this.viewability=new Y(this),R.p.isSupported()&&(this.creativeLoader=new R.p(this,this.$t)),this.ke(),this.he||(this.ge(this.selectedCreative)?(this.be(),"animated"===this.pe&&this.ye()):this.loadCreative(),this.emit(p.N.Init),(0,C.vz)("ad:init:end")))},this.loadCreative=()=>{var t;(0,C.vz)("ad:load:start"),null===(t=this.creativeLoader)||void 0===t||t._(()=>{(0,C.vz)("ad:load:end"),this.emit(p.N.CreativeLoad),this.events.dispatch(document,p.N.CreativeLoad),this.Pe?this.Pe.remove():this.Ee()},()=>{var t;null===(t=this.adTag)||void 0===t||t.setAttribute(Q,"false"),this.be()})},this.Ce=({event:t,data:i,destroyAd:e})=>{const n=this.Ie(t);!n||!n.isAdRelated&&n.file||this.errorReporter.Mt(n.message,n.errorType||0,n.details),!0===e&&this.destroy(),r(this.$t.environment)&&i&&console.error(i)},this.Re=(t,i)=>{this.Ce({event:t,destroyAd:i})},(0,C.vz)("ad:creation"),this.data=t,(i=i||this.Oe())&&(this.adTag=i,this.parameters=this.getParsedParameters(i),this.Se()),this.redirect=new T(this),this.errorReporter=new L(this,this.$t),0!==this.$t.environment||(null===(n=this.data.tracking)||void 0===n?void 0:n.disabled)||(this.tracking=new X(this)),e&&(this.on(p.N.Error,this.Ce),this.events.on(window,"error",this.Re),this.events.on(window,"unhandledrejection",this.Re)),!this.adTag){const t=new _.mD(et.COULD_NOT_LOCATE_AD_TAG);throw this.emit(p.N.Error,{event:t,destroyAd:!0}),t}e?this.Ae(this.le):this.le(e)}click({x:t,y:i,deepLinkUrl:e,time:n}){var r;const s=this.redirect.kt(e),o=null==s?void 0:s.toString(),a=s&&!s.prevent;this.emit(p.N.Click,o),null===(r=this.tracking)||void 0===r||r.Wi({x:t,y:i,time:n}),a&&o&&this.redirect.open(o)}destroy(){var t,i,e,n,r,s,o,a;if(this.he)return;const c=null===(t=this.de._bannerflow)||void 0===t?void 0:t.ads;if(this.he=!0,this.emit(p.N.Destroy),this.clearEvents(),null===(i=this.De)||void 0===i||i.disconnect(),null===(e=this.tracking)||void 0===e||e.destroy(),this.errorReporter.destroy(),null===(n=this.container)||void 0===n||n.remove(),null===(r=this.adTag)||void 0===r||r.remove(),null===(s=this.creativeLoader)||void 0===s||s.destroy(),null===(o=this.Pe)||void 0===o||o.destroy(),null===(a=this.viewability)||void 0===a||a.destroy(),this.events.clear(),c){const t=c.indexOf(this);t>-1&&c.splice(t,1)}}isHtml5Export(t){const i=(t||this.adTag).src;return tt.test(i)&&!(0,h.rW)(i)}shouldAutoplay(){return!(0,h.Yk)(this.parameters,"autoplay")||!!(0,h.Tf)(this.parameters.autoplay)}emit(t,i){return super.emit(t,i),this.events&&this.adTag&&this.events.dispatch(this.adTag,t,i),this}shouldFadeIn(){return!(0,h.Yk)(this.parameters,"fadein")||!!(0,h.Tf)(this.parameters.fadein)}setContainerScale(t){var i;this.container&&(this.container.style.width=this.container.clientWidth/t+"px",this.container.style.height=this.container.clientHeight/t+"px",this.container.style.transformOrigin="top left",this.container.style.transform=`scale(${t})`),null===(i=this.Pe)||void 0===i||i.setScale(1/t)}Ae(t){if(document.body)t();else{const i=()=>{"interactive"!==document.readyState&&"complete"!==document.readyState||(this.events.off(document,"readystatechange",i),t())};this.events.on(document,"readystatechange",i)}}$e(t=window){this.events.windowLoad(t,this.loadCreative)}be(){!this.Pe&&this.container&&(this.Pe=new O(this),this.Pe.add(this.container,()=>{this.emit(p.N.Preload),this.Ee()}))}ye(){if(this.ce)this.adScripts.pageReady?this.loadCreative():this.once(p.N.PageReady,this.loadCreative);else if(e()){const t=function(){var t;let i;try{i=(null===(t=window.top)||void 0===t?void 0:t.document.readyState)?window.top:void 0}catch(e){}return i}();t?this.$e(t):this.$e()}else this.$e()}Oe(){const t=document.getElementsByTagName("script"),i=this.data;for(let e=t.length-1;e>=0;e--){const n=t[e],r=n.src||"",s=this.data.creatives[0]?i.creatives[0].id:void 0;if(-1!==r.indexOf(i.id)||-1!==r.indexOf(i.adTagId)||s&&-1!==r.indexOf(s))return n}if(k)for(let e=t.length-1;e>=0;e--){const i=t[e];if(this.isHtml5Export(i))return i}}getParsedParameters(t){let i=t.src;return 2!==this.$t.environment||i||(i=window.location.href),(0,h.Uv)(i||"")}Ue(){const t=this.adTag.parentNode,i=document.body,n=this.parameters.container;let r=this.adScripts.overrideContainer();if(t&&"HEAD"===t.nodeName)if(i.innerHTML){if(e()){const t=window.innerWidth,e=window.innerHeight;t===this.selectedCreative.size.width&&e===this.selectedCreative.size.height&&(this.isHeadInjection=!0,r=i)}}else r=i;return n&&(r=document.querySelector(n)||r,0!==n.indexOf("#")&&0!==n.indexOf(".")&&(r=document.querySelector(`#${n}`)||r)),r}we(){(0,C.vz)("ad:container:start");const t=this.Ue(),i=this.parameters.container;if(i&&!t){const t=new _.mD(et.noContainerElementFound(i));throw this.emit(p.N.Error,{event:t,destroyAd:!0}),t}const e=this.selectedCreative.size.width,n=this.selectedCreative.size.height,r=document.createElement("div"),s=r.style;if(s.display="inline-block",s.width=`${e}px`,s.height=`${n}px`,s.position="relative",s.margin=s.padding="0",this.responsive&&e>0&&n>0){const t=this.parameters["responsive-mode"];"contain"===t||"cover"===t?(s.width="100%",s.height="100%","cover"===t&&(s.overflow="hidden")):(s.width="100%",s.height="auto",s.aspectRatio=`${e} / ${n}`)}var o;return t?this.isHeadInjection?t.insertBefore(r,t.childNodes[0]):t.appendChild(r):(o=this.adTag).parentNode&&o.parentNode.insertBefore(r,o.nextSibling),(0,C.vz)("ad:container:end"),r}_e(t){return this.adScripts.selectCreative()||t.creatives[0]}ge(t){const i=this.parameters.preload,e=t.image;if(!R.p.isSupported())return!0;if(!1===(0,h.Tf)(i))return!1;if(!1===this.data.showPreloadImage)return!1;if(!(null==e?void 0:e.url))return!1;if(!0===(0,h.Tf)(i)||this.ce)return!0;const n=e.fileSize||0,r=t.animated.fileSize||0;return n&&r?"complete"===document.readyState?r>100&&n<r/3:r>100&&n<r/2:"complete"!==document.readyState}me(){return R.p.isSupported()?(0,h.Yk)(this.parameters,"display")?this.parameters.display:void 0!==this.data.displayType?this.data.displayType:"animated":"image"}fe(){return(0,h.Yk)(this.parameters,"responsive")?!!(0,h.Tf)(this.parameters.responsive):!!this.data.responsive}xe(){return"image-generator"===this.parameters.env}Ee(){var t,i,e;(0,C.vz)("ad:render"),null===(t=this.tracking)||void 0===t||t.Bi(),this.emit(p.N.Render),this.xe()&&(null===(e=null===(i=this.creativeLoader)||void 0===i?void 0:i.creative)||void 0===e?void 0:e.hasWidgetElements)?setTimeout(()=>{this.adTag&&this.je()},1e3):this.je()}ke(){var t;const i=()=>{var t;this.container&&(null===(t=document.body)||void 0===t?void 0:t.contains(this.container))||this.destroy()};if((null===(t=this.container)||void 0===t?void 0:t.parentNode)&&window.MutationObserver){const t=new MutationObserver(()=>{i()});t.observe(document.body,{childList:!0}),this.De=t}i()}Ie(t){if(!t)return{message:"UnknownError",isAdRelated:!0};if("reason"in t&&t.reason){const i=t.reason;return this.Te(i.message,i.trackingErrorType,i.stack,void 0,(0,_.qS)(i))}if("error"in t&&t.error){const i=t.error;return this.Te(i.message,i.trackingErrorType,void 0,t.filename,(0,_.qS)(i))}return"message"in t&&t.message?this.Te(t.message,"trackingErrorType"in t?t.trackingErrorType:void 0,"stack"in t?t.stack:void 0,void 0,(0,_.qS)(t)):void 0}Te(t,i,e,n,r){const s=(n=n||e&&(0,h.nc)(e)[0])?this.Fe(n):void 0;return{message:t,file:n,isAdRelated:!!s,errorType:i||this.Me(s),details:r}}Fe(t){t=(0,h.b7)(t);let i=["animated-creative.",(0,h.b7)(this.adTag.src)];this.creativeLoader&&this.creativeLoader.creative&&(i=i.concat(this.creativeLoader.h().map(t=>t.url)));for(let e=0;e<i.length;e++){const n=i[e];if(t.indexOf(n)>-1)return n}}isDataJSVersion(){const t=this.selectedCreative.animated.files;if(0===t.length)throw new _.uj(et.CREATIVE_HAS_NO_FILES);return t.some(t=>(0,m.pN)(t.url))}getOrigin(){var t;const i=this.adTag.src,e=(0,h.FB)(i,!1);let n=this.data.origin;if(n)return/^\//.test(n)&&e&&(n=(0,h.i$)(e,n)),n;if(!i){const i=null===(t=this.selectedCreative)||void 0===t?void 0:t.animated.defaultOrigin;if(i)return i}return/^file:\/\//.test(i)||/ad\.js/.test(i)?"":e||""}getDomain(){var t;return(null===(t=this.adScripts)||void 0===t?void 0:t.overrideDomain())||function(t){var n;const r=i();let s=(null==t?void 0:t.domain)&&"${DetectedDomain}"!==t.domain?decodeURIComponent(t.domain):"";if(!s&&r.context&&(s=r.context.canonicalUrl),!s){const t=r.document,i=r.location||(t?t.location:void 0);(null===(n=null==i?void 0:i.ancestorOrigins)||void 0===n?void 0:n.length)&&(s=i.ancestorOrigins[i.ancestorOrigins.length-1]),(i&&!i.ancestorOrigins||!s)&&((null==t?void 0:t.referrer)&&e(r)?s=t.referrer:(null==i?void 0:i.href)&&(s=i.href),(null==s?void 0:s.match(h.qM))&&(s=""))}return s.replace(/\?.*/g,"")}(this.parameters)}getParentPath(){const t=this.adTag.src;if(!/ad\.js/.test(t))return;const i=t.split("/");return i.slice(0,i.length-1).join("/")}getWindow(){return this.de}ue(){var t;const i=this.de;if(i._bannerflow){const e=i._bannerflow.overriddenFeedData;return(null===(t=i._bannerflow.overriddenFeedData)||void 0===t?void 0:t.length)&&function(t){const i=new Error("\n    Attempt to override a feed with invalid feed data. The feed data has to follow the following schema:\n\n    [\n        {\n            MyFeedItemKey: {\n                value: 'feed value',\n                targetUrl: 'https://website.com'\n            },\n            MyFeedItemKey2: {\n                value: 'feed value',\n                targetUrl: 'https://website.com'\n            }\n        }\n    ]\n    ");if(!Array.isArray(t))throw i;for(const e of t){if("object"!=typeof e)throw i;for(const t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(e[t],"value"))throw i}}(i._bannerflow.overriddenFeedData),e}}je(){(0,C.vz)("ad:success"),this.adTag.setAttribute(Q,"true")}Me(t){if(t)return t===this.adTag.src?2:-1!==t.indexOf("creative")?4:-1!==t.indexOf("feed")||-1!==t.indexOf("dynamic-content")?9:-1!==t.indexOf("video")?6:-1!==t.indexOf("widget")?7:-1!==t.indexOf("text")?8:-1!==t.indexOf("image")?5:void 0}ve(){const t=document.querySelector("#adv_creative_container");t&&(t.style.width="100%")}Se(){var t;if("feed"!==this.parameters.env)if("image-generator"!==this.parameters.env&&"preload-frame"!==(null===(t=this.parameters)||void 0===t?void 0:t.seek))if("video-generator"!==this.parameters.env)if("audio"!==this.parameters.env)if("ad-preview"!==this.parameters.env){if(2!==this.$t.environment){const t=this.getOrigin();this.$t.CUSTOM_AD_DOMAIN=(0,h.FB)(t,!1)}}else this.$t.environment=0;else this.$t.environment=7;else this.$t.environment=5;else this.$t.environment=4;else this.$t.environment=6}}const et={COULD_NOT_LOCATE_AD_TAG:"Could not locate ad tag",CREATIVE_HAS_NO_FILES:"Selected creative has no files",noContainerElementFound:t=>`Container "${t}" not found`};!function(t){const i=window;i._bannerflow||(i._bannerflow={ads:[],exports:{}});const e=i._bannerflow;let n;e.ads=e.ads||[],e.exports=e.exports||{},e.registerModule||(e.registerModule=(t,e)=>{i._bannerflow.exports[t]=e}),i._bannerflow=e;try{n=JSON.parse((r="eyJpZCI6IjY3ZDE4MWYyOTA1YTAwN2Q4YzY4NDA2MyIsIm9yaWdpbiI6IiIsImNyZWF0aXZlcyI6W3siaWQiOiIxMTA2MzY5OCIsImFuaW1hdGVkIjp7ImRlZmF1bHRPcmlnaW4iOiJodHRwczovL2MuYmFubmVyZmxvdy5uZXQiLCJmaWxlcyI6W3siaWQiOiI5MjIyZmVlYmU2MmVjYzliZmYwYyIsInVybCI6ImFuaW1hdGVkLWNyZWF0aXZlLjkyMjJmZWViZTYyZWNjOWJmZjBjLmpzIn0seyJpZCI6IjAwMDAwMEE5Mjk3NkM5IiwidXJsIjoiL2FjY291bnRzL2xvdHRvbGFuZC81NjMwYTI2YzIwYzlmMTI5NmM3MGY5YzIvcHVibGlzaGVkLzExMDYzNjk4LzZhZDVmMzYxZDIyZGM1YmMwZjViZWJhMS9kYXRhLjAwMDAwMEE5Mjk3NkM5LmpzIn0seyJpZCI6InByZWxvYWQtNjVjMDI3OWJhMzEyNWZlZDQ5YjEiLCJ1cmwiOiJ0ZXh0LjY1YzAyNzliYTMxMjVmZWQ0OWIxLmpzIn0seyJpZCI6InByZWxvYWQtOGFiNjVjZjAwZjQ2MWI5NTMxOTMiLCJ1cmwiOiJmZWVkLjhhYjY1Y2YwMGY0NjFiOTUzMTkzLmpzIn1dfSwiaW1hZ2UiOnsidXJsIjoiYWNjb3VudHMvbG90dG9sYW5kLzU2MzBhMjZjMjBjOWYxMjk2YzcwZjljMi9wdWJsaXNoZWQvMTEwNjM2OTgvNmFkNWYzNjFkMjJkYzViYzBmNWJlYmExL3ByZWxvYWQuanBnIn0sInNpemUiOnsiaWQiOiI2MjE5MzY2IiwibmFtZSI6bnVsbCwiaGVpZ2h0Ijo2MDAsIndpZHRoIjozMDB9LCJjaGVja3N1bSI6IjE0NGQ3NGU0IiwiY3JlYXRpdmVzZXQiOnsiaWQiOiI3NTEwNzgiLCJuYW1lIjoiREVfRXVyb0phY2twb3RfSGlnaEphY2twb3RfdjJfM3gxXHUyMEFDX0MyNDU2NSIsImNyZWF0aXZlcyI6W119LCJ2ZXJzaW9uIjp7ImlkIjoiMTIyOTEyMSIsIm5hbWUiOiJHZXJtYW4iLCJsb2NhbGl6YXRpb24iOnsiaWQiOiI1NjMwYTM3ZjIwYzlmMTI5NmM3MGZiMjUiLCJuYW1lIjoiR2VybWFuIiwiY3VsdHVyZUNvZGUiOiJkZSIsImN1bHR1cmVOYW1lIjoiZGUifX0sInRhcmdldFVybCI6Imh0dHBzOi8vd3d3LmxvdHRvbGFuZC5jb20vd2FyZW5rb3JiP3RpY2tldHM9Y2xlYXIsRUpWNFMwMTAxMDAwMDEwMDAwMDAwMDAwMDAwMDAwMDBcdTAwMjZtYz0zVUw3TjQ3UVlVVjlZOTdCMVYwTURJVlx1MDAyNmxvdHRvbGFwaWQ9ZGlzcGxheV9zcG9ydHNyYWRhcl9kZVx1MDAyNnV0bV9tZWRpdW09ZGlzcGxheVx1MDAyNnV0bV9zb3VyY2U9ZGlzcGxheV9zcG9ydHNyYWRhcl9kZVx1MDAyNnNpZD1lNDRjZTE1M2FiMGMzMWQyN2E4NmRlYzM3NTM5YzRjMSIsImFkVmVyc2lvbiI6MTM3NTcsImNyZWF0ZWQiOiIyMDI2LTEwLTE5VDEwOjM5OjM4LjAzWiIsImZlZWRzIjpbIjU3N2Y3NzU2YmQ4ZDNlMDk0OGNlMjJkZSJdLCJkdXJhdGlvbiI6NH1dLCJ0cmFja2luZyI6eyJ1cmwiOiJodHRwczovL2MuYmFubmVyZmxvdy5uZXQvdHIvdjIvcGl4ZWwiLCJwaXhlbEVuYWJsZWQiOmZhbHNlLCJkaXNhYmxlZCI6ZmFsc2UsImNvbnNlbnRGcmFtZXdvcmtzIjpbIm5vbmUiXSwiY291bnRyeSI6IlVTIn0sImN1c3RvbVNjcmlwdHMiOltdLCJzaG93UHJlbG9hZEltYWdlIjp0cnVlLCJkaXNwbGF5VHlwZSI6ImFuaW1hdGVkIiwicmVzcG9uc2l2ZSI6ZmFsc2UsImNhbXBhaWduSWQiOiI2N2QxODFmMzM5NWI2YzNkOGI2Yjg5ZDAiLCJjYW1wYWlnbiI6eyJuYW1lIjoiREVfRXVyb0phY2twb3RfSGlnaEphY2twb3RfdjJfM3gxXHUyMEFDX1NQT1JUUkFEQVIiLCJpZCI6IjY3ZDE4MWYzMzk1YjZjM2Q4YjZiODlkMCJ9LCJzY2hlZHVsZUlkIjpudWxsLCJhY2NvdW50Ijp7InNsdWciOiJsb3R0b2xhbmQiLCJpZCI6IjU2MzBhMjM0MjBjOWYxMjk2YzcwZjliYyJ9LCJicmFuZCI6eyJpZCI6IjU2MzBhMjZjMjBjOWYxMjk2YzcwZjljMiJ9LCJub2RlSWQiOiI2N2QxODFmMjkwNWEwMDdkOGM2ODQwNzAiLCJkZXN0aW5hdGlvbiI6bnVsbCwicHVibGlzaGVySWQiOm51bGwsImV2ZW50TmFtZSI6IiIsImV2ZW50RW5kRGF0ZSI6bnVsbCwiYWRHcm91cE5hbWUiOiJBZCBHcm91cCAxIn0=")?function(t){try{return btoa(atob(t))===t}catch(i){return!1}}(r)?decodeURIComponent(atob(r).split("").map(function(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}).join("")):r:""),n.creatives=n.creatives||n.banners}catch(s){throw new _.mD("Ad data could not be parsed")}var r;e.ads.push(new it(n,t))}(document.currentScript)}()})();
//# sourceMappingURL=ad.js.map