/*_hs_*/;var sas=window.sas||{};sas.cmpIds=[2,5,6,7,9,10,14,21,25,27,28,31,35,46,47,54,58,59,61,63,68,72,76,77,79,84,90,92,104,105,112,113,123,125,129,134,141,162,165,167,168,171,181,183,185,198,200,212,213,218,221,222,224,225,227,229,231,235,236,237,242,246,247,258,259,260,264,273,279,280,282,287,291,292,294,297,299,300,302,303,304,306,308,309,311,312,316,317,318,321,323,327,329,330,332,335,340,341,343,345,348,350,351,352,354,355,361,363,364,367,369,371,374,376,379,380,382,383,384,385,386,387,388,390,392,396,397,399,401,403,404,405,406,407,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,452,453,454];;window.sas_useTopicsAPIData=true;;/*_hs_*/(()=>{var t={414:()=>{var t;(t=window.sas).utils.extend=function(e){for(var a=1;a{!function(t,e){var a=t.sas;if(!a.__smartLoaded){a.__smartLoaded=!0;var n=function(){},s=!1,i=function(){return Math.round(1e10*Math.random())},r="https://www.smartadserver.com",o=r,d=i(),c=!0,l=encodeURIComponent,u=decodeURIComponent,p=0,h=0,g=!1,f=null,v=null,m=null,y={},w=[],b=[],I={},S={},_={};a._networks=a._networks||{},a._pendingCommands=a._pendingCommands||{};var E={};a.callType={STD:"std",IFRAME:"iframe",ONECALL:"onecall",XML:"xml",PASSBACK:"passback"},a.renderMode={DEFAULT:0,READY:1,ON_DEMAND:2};var C=!1,D=[],A={onLoad:n,onError:n,onClean:n,beforeRender:n};a.events.on("call",(function(t){var e=y[t.ad.tagId],n=W[t.ad.tagId]?W[t.ad.tagId]:J;a.livePreview.active&&(t.ad.formats=a.livePreview.callLivePreview(t.ad.formats)),t.ad.formats.length&&(K("Make a std call ",t),n.addListener((function(){O(t)}))),n.addListener((function(){e.render()}))}),a.callType.STD),a.events.on("call",(function(t){a.livePreview.active&&Object.prototype.hasOwnProperty.call(t,"ad")&&Object.prototype.hasOwnProperty.call(t.ad,"formats")&&(t.ad.formats=a.livePreview.callLivePreview(t.ad.formats)),t.ad.formats.length&&(K("Make a onecall for formats ",t),J.addListener((function(){R(t)})))}),a.callType.ONECALL);var R=function(t){J.addListener((function(){var e=j(t.ad,t.options,t.callType);!function(t,e,a,n,s){X(t,e,a,n,s,JSON.parse,"application/json")}(U(t.ad,t.options,t.callType),e,(function(t){for(var e in t){var a=k(e);if(a){var n=t[e];a.displayData={hbRenderFailedUrl:n.HbRenderFailedUrl,hbRenderSuccessUrl:n.HbRenderSuccessUrl,scriptType:n.ScriptType,scriptSrc:n.ScriptSrc,scriptNoad:n.ScriptNoad,contentType:n.ContentType,content:n.Content,chain:n.Chain,width:n.ScriptWidth,height:n.ScriptHeight},a.displayData.scriptSrc&&(a.displayData.scriptSrc=function(t){return function(){return at(t)}}(a.displayData.scriptSrc)),"pending"==a.renderStatus&&a.render()}}}),t.options.onError,t.options.domain)}))},O=function(t){J.addListener((function(){var e=j(t.ad,t.options,t.callType);!function(t,e,a,n,s){X(t,e,a,n,s,(function(t){return t}),"application/javascript")}(U(t.ad,t.options,t.callType),e,(function(e){var a=t.ad.tagId,n=k(a);n&&(n.displayData={scriptType:"content",contentType:"application/javascript",content:e},"pending"==n.renderStatus&&(W[a]?W[a].addListener(function(){this.render()}.bind(n)):n.render()))}),t.options.onError,t.options.domain)}))},T="invalid site id",N="invalid page id or name",M="invalid format id",P=function(t){throw new Error(t)},k=function(t){var e=y[t=""+t]||y["sas_"+t];if(e)return e;var n=t.split("_"),s=n.slice(0,n.length-1).join("_");if(n.length>1&&!isNaN(n[n.length-1])&&(e=y[s]||y["sas_"+s])){var i=parseInt(n[n.length-1]),r=e.ad.tagId+"_"+i,o=new a.Tag(r);return _[r]&&o.setHeaderBiddingWinner(_[r]),o.onCall(e.callType,a.utils.extend({},e.ad,{tagId:r,instance:i}),e.options),e.instances.push(o),y[r]=o,o}return null},L=1,j=function(e,n,s){n=a.utils.extend({forceMasterFlag:!1},n),c=!!n.forceMasterFlag||c,d=n.resetTimestamp?i():d,s==a.callType.ONECALL&&G();var r=x(),o=function(){var e=t;try{for(;e.parent.document;){if(e.parent.context&&e.parent.context.canonicalUrl)return e.parent.context.canonicalUrl;if(e.parent.document===e.document)return e.location.origin?e.location.origin+e.location.pathname:"";e=e.parent}}catch(t){}var a=new URLSearchParams(e.location.search).get("pgDomain");if(a)return a;try{try{if(t.top.location.href)return t.top.location.origin?t.top.location.origin+t.top.location.pathname:""}catch(t){}var n=t.location.ancestorOrigins;return 1==n.length?e.document.referrer:n[n.length-1]}catch(t){return e.document.referrer}}()||(t.location.origin?t.location.origin+t.location.pathname:""),l=screen.height,u=screen.width;return function(e,n,s,i,r,o,d){var c={timestamp:s,networkId:r.networkId,getAdContent:r.getAdContent,siteId:e.siteId,pageId:e.pageId,pageName:e.pageName,master:n,noAdCallback:"sas.noad",pageUrl:i,screen:{height:o,width:d},uid:f||0,appName:v||"",bundleId:m||"",noCookie:r.noCookie,schain:e.schain||"",clickTrackingUrl:r.clickTrackingUrl,clickTrackingEncodingLevel:r.clickTrackingEncodingLevel,ads:[]},l=a.getConsentStatus()===a.EConsentStatus.AGREED,u=t.sas.common.getGdprConsentData();u&&(c.gdpr_consent=u);var p=t.sas.common.getAddtlConsentData();p&&(c.addtl_consent=p);var h=t.sas.common.getUsPrivacyConsentData();h&&(c.us_privacy=h);var g=a.localStorage.getItem("sas_gpp");g&&(c.gpp=g);var y=a.localStorage.getItem("sas_gpp_sid");if(y)try{c.gpp_sid=JSON.parse(y)}catch(t){}var w=a.localStorage.getItem("eqtv_cmpvalid");w&&(c.cmpvalid=Number(w));var I=function(t){if(t.length>1&&"function"==typeof Array.prototype.findIndex){var e=t.reverse();t=e.filter((function(t,a){return e.findIndex((function(e){return e.source===t.source}))===a}))}return t.length&&"object"==typeof t[0]&&t[0].source&&t[0].uids&&t[0].uids.length?t:null}(b);I?c.eids=I:a.events.history("setEidsCalled").length&&console.warn("The eids object is malformed, no eids will be sent in the adcall");var _=a.getSda();_&&_.length&&l&&(c.sda=_);var E=a.getSdc();E&&E.length&&(c.sdc=E);var C=a.getDsa();C&&(c.dsa=C);S&&(c.partnerExtUids=S);e.content_source_id&&(c.content_source_id=e.content_source_id);for(var D=0;D0||t.isIntersecting){var a=t.target.id;e.unobserve(t.target),Object.prototype.hasOwnProperty.call(W,a)&&W[a].notify("smartLazyLoading"+a)}}))}),{rootMargin:a.lazyLoading.margin})),i&&i.observe(e.getElementById(n))}else W[n].notify("smartLazyLoading"+n)},q=!1;t.addEventListener("message",(t=>{if(t&&t.data&&"string"==typeof t.data&&!(t.data.indexOf("SMRT")<0)){var e=t.data.split(" ");if(!(e.length<2)){var n=e[2]||"";if("sas.noad"===e[1]||"NOAD"===e[1])try{a.noad(n)}catch(t){}}}}));var H,K=function(t,e,a,n){var s=void 0===a?"info":a;if((!(n=void 0===n||n)||V)&&t.length&&void 0!==console[s]){var i={txt:"%cequativ",css:"background: #fe5000; border-radius: 2px; color: #feffff; font-family: lato,sans-serif; padding:1px 3px;"};void 0!==e?console[s](i.txt,i.css,t,e):console[s](i.txt,i.css,t)}},V="true"===new URLSearchParams(t.location.search).get("sas_debug"),z=!1,J=new a.utils.Latch(["loaded"]),W={};a.setup=function(e){if(z)throw new Error("sas.setup can only be called once");a.events.fire("setupCalled",e),z=!0,o=(e=e||{}).domain||r,p=e.networkid||p,h=e.renderMode||h,g=e.inSequence||g,f=e.uid,S=a.utils.extend(S,e.partnerIds),m=e.bundleId,v=e.appName,t.sas_renderMode=h,a.configure({id:p}),h==a.renderMode.DEFAULT&&J.notify("loaded"),h==a.renderMode.ON_DEMAND&&(H=setTimeout((function(){a.render()}),parseInt(e.renderModeTimeout)||5e3))},a.call=function(t,e,n){"string"!=typeof t&&(n=a.utils.extend({},e),e=t,t="std",h==a.renderMode.DEFAULT&&J.notify("loaded")),n=a.utils.extend({},n),(e=a.utils.extend({},e)).siteId=e.siteId||e.siteid,e.pageId=e.pageId||e.pageid,e.pageName=e.pageName||e.pagename,e.formatId=e.formatId||e.formatid,e.siteId||P(T);var i,r=navigator.userAgent.includes("iPad")?"ipad":navigator.userAgent.includes("iPhone")?"iphone":navigator.userAgent.includes("Android")?"android":"";if(r.length>0&&(e.target&&e.target.length>0&&(e.target+=";"),e.target+="platform="+r),e.pageId||e.pageName||P(N),e.formatId||e.formats||P(M),(n=a.utils.extend({},A,{domain:o,networkId:p},n))&&n.networkId){var d=parseInt(n.networkId);if(d>0&&!a._networks[d])return a._pendingCommands[d]=a._pendingCommands[d]||[],void a._pendingCommands[d].push((function(){a.call(t,e,n)}))}if(!e||!e.siteId||!e.pageId&&!e.pageName||!e.formatId&&!e.formats)throw new Error("Missing parameter(s)");if(!e.formats){e.formats=[];var c=(""+e.formatId).replace(/\s/g,"").split(",");for(i=0;i{s=!0,a.render()})))),e.passback||w.push({callType:t,ad:a.utils.extend({},e),options:a.utils.extend({},n)}),g?J.addListener((function(){var s,i;s={callType:t,ad:e,options:n},i=function(){if(D.length>0){C=!0;var t=D.shift(),e=t.options.onLoad;t.options.onLoad=function(t){i(),e(t)},a.events.fire("call",{callType:t.callType,ad:t.ad,options:t.options},t.callType)}else C=!1},D.push(s),C||i()})):a.events.fire("call",{callType:t,ad:e,options:n},t)},a.passback=function(t){var e=t.tagId?t.tagId:"sas_"+t.formatId;if(I[e]={current:-1,ad:t},t.noadUrl){var n=function(){(new Image).src=t.noadUrl,a.events.off("noad",n,e)};a.events.on("noad",n,e)}a.next(e)},a.next=function(n){var s=k(n),i=I[s.ad.tagId];if(s&&i){var r=e.getElementById(s.ad.tagId);if(r&&(r.innerHTML=""),i.current>=0&&((new Image).src=i.ad.chain[i.current].noadUrl),i.current++,i.current0||t.isIntersecting)&&(e.unobserve(t.target),a.lazyLoading.event?a.events.on(a.lazyLoading.event,(function(){i.render()}),r):i.render(),a.events.fire("beforeFetch",i))}))}),{rootMargin:a.lazyLoading.margin})),o?o.observe(e.getElementById(r)):i.render()}else i.render()},a.enableLazyLoading=function(e){var n={};n.formats=e.formats||[];var s=void 0!==t.orientation||-1!==navigator.userAgent.indexOf("IEMobile")?e.mobileFetchRatio||.8:e.fetchRatio||.1;n.margin=Math.round(100*(isNaN(s)||s<0?.1:s))+"%",n.event=e.event||null,a.lazyLoading=n},a.setPartnerId=function(t,e){S[t]=e},a.appendHtml=function(t,a){var n=e.getElementById(t);if(Range&&Range.prototype.createContextualFragment)n.appendChild(e.createRange().createContextualFragment(a));else{var s=e.createElement("div");s.innerHTML=a;for(var i=s.childNodes,r=0;re.source!==t))},a.setHeaderBiddingWinner=function(t,n){var s=null;if(null!==n&&"object"==typeof n){s=n;var i=k(t);i?i.setHeaderBiddingWinner(n):_[t]={bidder:n.bidder,cpm:n.cpm,currency:n.currency,dealId:n.dealId},a.debugMode.addBanner({adSlot:e.getElementById(t),adInfo:{"HB bidder":n.bidder,"HB CPM":n.cpm,"HB currency":n.currency,"HB deal ID":n.dealId,"HB creative ID":n.creativeId}})}a.events.fire("setHeaderBiddingWinner",{tagId:t,headBiddingData:a.utils.extend({},s)},t)},a.hbRenderSuccess=function(t){a.events.fire("hbRender",{success:!0},t)},a.hbRenderFailed=function(t){a.events.fire("hbRender",{success:!1},t)},a.setGdprConsentData=function(t){0};var $=function(t,e,a){var n=t.indexOf("/");if(n<0)throw new Error("Invalid argument : sas_pageid");this.siteId=t.substring(0,n);var s=t.substring(n+1);0==s.indexOf("(")&&s.indexOf(")")==s.length-1&&(s=s.slice(1,s.length-1));var i=parseInt(s);i+""==s?this.pageId=i:this.pageName=s,this.formatId=e,this.target=a};t.sas_ads=a,t.sas_unrenderedFormats=[],a.callAd=a.refresh,a.callAds=function(){J.isComplete()?a.refresh():a.render()},a.cleanAds=a.clean,t.sas_render=function(t){a.render(t)},t.SmartAdServer=function(t,e,n){a.call(a.callType.STD,new $(t,e,n))},t.SmartAdServerAjax=t.SmartAdServer,t.sas_gcf=function(t){return e.getElementById("sas_"+t)},t.sas_appendToContainer=function(t,a){var n=e.getElementById("sas_"+t);if(n){if("string"==typeof a){var s=e.createElement("div");s.innerHTML=a,a=s}n.appendChild(a)}};var Q={};t.sas_addCleanListener=function(t,e){Q[t]=e},a.events.on("clean",(function(t){Q[t.tagId]&&Q[t.tagId](),Q[t.formatId]&&Q[t.formatId]()}))}function X(e,n,s,i,r,o,d){var c=new XMLHttpRequest;c.onreadystatechange=function(){if(4==this.readyState){try{var t=o(this.responseText)}catch(t){K(t.toString()+"\nThis is most likely due to a failure from the backend response. Please contact your technical account manager.",void 0,"error",!1)}a.tracing.addMany("adCallEnd",n.ads),200==this.status&&t?s(t):i(t)}},c.withCredentials=!0;try{c.open("POST",e,!0),c.setRequestHeader("content-type",d),!(!t.chrome||!t.chrome.webstore&&!t.chrome.runtime)&&c.setRequestHeader&&c.setRequestHeader("Save-Data","off"),a.tracing.setTraceHeaders(c,n.ads),c.send(JSON.stringify(n))}catch(t){}}function Z(t){return a.lazyLoading&&a.lazyLoading.formats&&(0===a.lazyLoading.formats.length||-1!==a.lazyLoading.formats.indexOf(parseInt(t)))?1:0}function tt(t){return void 0!==E[t]?E[t]?2:1:0}function et(t){var a;if("script"==t.tagName.toLowerCase())a=e.createElement("script"),t.type&&(a.type=t.type),t.src&&(a.src=t.src),t.text&&(a.text=t.text);else{a=t.cloneNode(!1);for(var n=t.childNodes,s=0;sthis.onReadyForCmd()))}onReadyForCmd(){this.sas.events.fire("Bootstrap",{time:"Start"}),(0,s.default)(this.sas.cmd,(t=>this.executeCmd(t))),this.sas.events.fire("Bootstrap",{time:"End"})}executeCmd(t){this._log("Executing sas.cmd",void 0,t),t()}}e.default=r},858:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DATAOPUB=e.PUBRENDER=e.DSAREQUIRED=e.Dsa=void 0;const n=a(343);class s extends n.Global{constructor(){super(),this.DSA_EMPTY_INPUT_MESSAGE="Input data can not be empty.",this.DSA_REQUIRED_ERROR_MESSAGE=" No valid value of dsarequired.",this.DSA_PUBRENDER_ERROR_MESSAGE=" No valid value of pubrender.",this.DSA_DATAOPUB_ERROR_MESSAGE=" No valid value of datatopub.",this.DSA_REQUIRED_ATTRIBUTES_ERROR_MESSAGE=" Missing some required DSA attributes.",this.DSA_TRANSPARENCY_ARRAY_ERROR_MESSAGE="The transparency attribute should be not empty array.",this.DSA_TRANSPARENCY_ERROR_MESSAGE="The transparency attribute has invalid properties.",this.dsaData=void 0,this.sas.setDsa=t=>this.setDsa(t),this.sas.getDsa=()=>this.dsaData}validateData(t){let e="";if(this.isObjectEmpty(t))return e=this.DSA_EMPTY_INPUT_MESSAGE,e;const a={dsarequired:i.No|i.Supported|i.Required|i.RequiredOnlinePlatform,pubrender:r.No|r.Maybe|r.Yes,datatopub:o.No|o.Optional|o.Yes};if(Object.keys(a).filter((e=>!1===Object.prototype.hasOwnProperty.call(t,e))).length?e+=this.DSA_REQUIRED_ATTRIBUTES_ERROR_MESSAGE:(t.dsarequired in i&&"number"==typeof t.dsarequired||(e+=this.DSA_REQUIRED_ERROR_MESSAGE),t.pubrender in r&&"number"==typeof t.pubrender||(e+=this.DSA_PUBRENDER_ERROR_MESSAGE),t.datatopub in o&&"number"==typeof t.datatopub||(e+=this.DSA_DATAOPUB_ERROR_MESSAGE)),t.transparency)if(Array.isArray(t.transparency)&&t.transparency.length>0){e+=t.transparency.filter((t=>"string"!=typeof t.domain||!Array.isArray(t.dsaparams)||t.dsaparams.some((t=>"number"!=typeof t)))).length?this.DSA_TRANSPARENCY_ERROR_MESSAGE:""}else e+=this.DSA_TRANSPARENCY_ARRAY_ERROR_MESSAGE;return e}setDsa(t){const e=this.validateData(t);e.length?console.warn("setDsa called with error: "+e):(this.dsaData={dsarequired:t.dsarequired,pubrender:t.pubrender,datatopub:t.datatopub},t.transparency&&(this.dsaData.transparency=t.transparency))}}var i,r,o;e.Dsa=s,function(t){t[t.No=0]="No",t[t.Supported=1]="Supported",t[t.Required=2]="Required",t[t.RequiredOnlinePlatform=3]="RequiredOnlinePlatform"}(i=e.DSAREQUIRED||(e.DSAREQUIRED={})),function(t){t[t.No=0]="No",t[t.Maybe=1]="Maybe",t[t.Yes=2]="Yes"}(r=e.PUBRENDER||(e.PUBRENDER={})),function(t){t[t.No=0]="No",t[t.Optional=1]="Optional",t[t.Yes=2]="Yes"}(o=e.DATAOPUB||(e.DATAOPUB={}))},490:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(t){this.handlers=[],this.byId=new Map,this.name=t}executeHandlers(t,e){var a;e&&(null===(a=this.byId.get(e))||void 0===a||a.handlers.forEach((a=>a(Object.assign({},t),e)))),this.handlers.forEach((a=>a(Object.assign({},t),e)))}removeHandler(t,e){var a;const n=(null===(a=this.byId.get(""+e))||void 0===a?void 0:a.handlers)||this.handlers,s=n.indexOf(t);s>=0&&n.splice(s,1)}}},833:function(t,e,a){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const s=n(a(490));e.default=class{constructor(){this.isReady=!0,this.events=new Map,this.eventHistory=[]}on(t,e,a){let n=this.events.get(t);n||(n=new s.default(t),this.events.set(t,n));let i=n.handlers;if(a){let t=n.byId.get(a);t||(t={handlers:[]},n.byId.set(a,t)),i=t.handlers}i.push(e)}off(t,e,a){var n;null===(n=this.events.get(t))||void 0===n||n.removeHandler(e,a)}fire(t,e,a){var n;e&&Object.entries(e).forEach((([t,a])=>{void 0===a&&delete e[t]})),this.eventHistory.push({eventName:t,data:Object.assign({timestamp:Date.now()},e),id:a}),null===(n=this.events.get(t))||void 0===n||n.executeHandlers(e,a)}history(t){return t?this.eventHistory.filter((e=>e.eventName===t)):this.eventHistory}}},343:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Global=void 0;e.Global=class{constructor(){this.sas=window.sas=window.sas||{},this.isDebug=this._isDebug()}setEids(t){"function"==typeof this.sas.setEids?this.sas.setEids([t]):this.sas.cmd.unshift((()=>this.sas.setEids([t])))}removeEids(t){"function"==typeof this.sas.removeEids?this.sas.removeEids(t):this.sas.cmd.push((()=>this.sas.removeEids(t)))}_log(t,e,a=""){(e||this.isDebug)&&console[e||"log"]("%cequativ","background:#fe5000; border-radius:2px; color:#feffff; font-family:lato,sans-serif; padding:1px 3px;",t,a)}isString(t){return"string"==typeof t||t instanceof String}isNonEmptyString(t){return Boolean(t)&&this.isString(t)}isObjectEmpty(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t&&t&&0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}_isDebug(){return"true"===new URLSearchParams(window.location.search).get("sas_debug")}}},814:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gpid=void 0;const n=a(343);class s extends n.Global{constructor(){super(),this.gpidData=new Map,this.sas.setGpid=(t,e)=>this.setGpid(t,e),this.sas.getGpid=t=>this.getGpid(t)}getGpid(t){return this.isNonEmptyString(t)?this.gpidData.get(t):void this._log("Gpid: wrong input data format","warn",t)}setGpid(t,e){this.isNonEmptyString(t)&&this.isNonEmptyString(e)?this.gpidData.set(t,e):this._log("Gpid: wrong input data format","warn",[t,e])}}e.Gpid=s},654:function(t,e,a){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Id5=void 0;const s=a(113),i=a(343),r=n(a(832));class o extends i.Global{constructor(){super(...arguments),this.partnerId=102}init(t){(0,r.default)("id5-api","//cdn.id5-sync.com/api/1.0/").then((()=>{window.ID5.init(Object.assign({partnerId:this.partnerId},(null==t?void 0:t.pd)&&{pd:null==t?void 0:t.pd})).onAvailable((t=>{t.getUserId()?this.sas.localStorage.setItem(s.EModuleStorageKeys.ID5,JSON.stringify(t.getUserIdAsEid())):this.sas.localStorage.removeItem(s.EModuleStorageKeys.ID5)}))})).catch((()=>this._log("ID5 API not initialized","warn")));const e=this.sas.localStorage.getItem(s.EModuleStorageKeys.ID5);e&&this.setEids(JSON.parse(e))}}e.Id5=o},683:function(t,e,a){"use strict";var n=this&&this.__awaiter||function(t,e,a,n){return new(a||(a=Promise))((function(s,i){function r(t){try{d(n.next(t))}catch(t){i(t)}}function o(t){try{d(n.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?s(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(r,o)}d((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SasIabApi=void 0;const s=a(882);class i{constructor(t,e){this.apiWasFound=!1,this.apiAnsweredOk=!1,this.eventMessageListenerAdded=!1,this.apiCallbacks={},this.myCmpCallbackFinished=void 0,this.maxSearchRetry=50,this.doubleCallbackTime=10,this.retryNumber=0,this.retryInterval=0,this.name=t.name,this.sasCookieName=t.sasCookieName,this.sasAddtlCookieName=t.sasAddtlCookieName,this.version=t.version,this.getConsentFunction=t.getConsentFunction,this.apiFunctionName=t.apiFunctionName,this.consentObjectConsentDataName=t.consentObjectConsentDataName,this.consentObjectAdditionalConsentDataName=t.consentObjectAdditionalConsentDataName,this.apiLocator=t.apiLocator,this.sentMessage=t.sentMessage,this.postMessageReturnObjectName=t.postMessageReturnObjectName,e&&(this.myCmpCallbackFinished=()=>e()),this.lastCallbackResult={id:"",addtlConsent:"",eventStatus:"",gdprApplies:void 0,timeStamp:0,vendor:{consents:{},legitimateInterests:{}}}}get gdprApplies(){return this._gdprApplies}cmpCallback(t,e){var a;if(!e||!t||void 0===t[this.consentObjectConsentDataName]||null===t[this.consentObjectConsentDataName])return void window.sas.events.fire("ApiAnswered Wrong answer",{consent:t,success:e,failType:"Wrong answer",version:this.version},this.name);if("stub"===t.cmpStatus&&null!==window.sas.localStorage.getItem(this.sasCookieName))return void window.sas.events.fire("ApiAnswered Stub answer",{consent:t,success:e,failType:"Ignoring stub data",version:this.version},this.name);this.apiAnsweredOk=!0,this._gdprApplies=t.gdprApplies;const n={consentObject:t,name:this.consentObjectConsentDataName};if(t[this.consentObjectConsentDataName]&&window.sas.localStorage.setItem(this.sasCookieName,t[this.consentObjectConsentDataName]),this.consentObjectAdditionalConsentDataName&&t[this.consentObjectAdditionalConsentDataName]&&this.sasAddtlCookieName){let e=t[this.consentObjectAdditionalConsentDataName];Array.isArray(e)&&(e=JSON.stringify(e)),window.sas.localStorage.setItem(this.sasAddtlCookieName,e),n.additionalConsent=this.consentObjectAdditionalConsentDataName}window.sas.events.fire("ApiAnswered Valid answer",n,this.name),null===(a=this.myCmpCallbackFinished)||void 0===a||a.call(this)}callApiLocal(){return n(this,void 0,void 0,(function*(){const t=window[this.apiFunctionName];if(void 0!==t&&"[object Function]"===Object.prototype.toString.call(t)){if(this.apiWasFound=!0,window.sas.events.fire("ApiCalled",{location:"Same Iframe",version:this.version},this.name),"__gpp"===this.apiFunctionName){const e=()=>{const e=t("getGPPData");this.cmpCallback(e,null!=e)},a=Number((yield(0,s.betterGpp)("ping")).gppVersion||1);a<1.1&&e(),t(this.getConsentFunction,(t=>{a<1.1?e():this.cmpCallback(null==t?void 0:t.pingData,null!=(null==t?void 0:t.pingData))}))}else t(this.getConsentFunction,this.version,((t,e)=>{this.cmpCallback(t,e)}));return!0}return!1}))}callApiInFrame(){let t,e=window;for(;!t;){try{e.frames[this.apiLocator]&&(t=e)}catch(t){}if(e===window.top)break;e=e.parent}if(t){this.apiWasFound=!0,window.sas.events.fire("ApiFrameFound",{version:this.version},this.name);const e=(e,a,n)=>{const s="smartjs"+Math.random();this.apiCallbacks[s]=n,this.sendPostMessage(e,a,s,t)};if(this.eventMessageListenerAdded||(window.addEventListener("message",(t=>{this.readPostMessageResponse(t)})),this.eventMessageListenerAdded=!0),window.sas.events.fire("ApiCalled",{location:"Different iframe",version:this.version},this.name),"__gpp"===this.apiFunctionName){const a="smartjsPing"+Math.random();this.apiCallbacks[a]=t=>{var a,n;((null===(a=t.returnValue)||void 0===a?void 0:a.gppVersion)?Number(null===(n=t.returnValue)||void 0===n?void 0:n.gppVersion):1)<1.1&&e("getGPPData",void 0,((t,e)=>{this.cmpCallback(t,e)}))},this.sendPostMessage("ping",null,a,t)}return e(this.getConsentFunction,void 0,((t,e)=>{this.cmpCallback(t,e)})),!0}return!1}sendPostMessage(t,e,a,n){const s={};s[this.sentMessage]={command:t,parameter:e,callId:a,version:this.version},null==n||n.postMessage(s,"*")}readPostMessageResponse(t){const e="string"==typeof t.data&&-1!==t.data.indexOf(this.postMessageReturnObjectName)?JSON.parse(t.data):t.data;if(e[this.postMessageReturnObjectName]){const a=e[this.postMessageReturnObjectName];"function"!=typeof this.apiCallbacks[a.callId]||this.isCallbackDouble(a.callId,t)||(this.assignLastCallback(a.callId,t),this.apiCallbacks[a.callId](a.returnValue,a.success,this.version))}}isCallbackDouble(t,e){var a,n,s;let i=!1;const r=null===(n=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.__tcfapiReturn)||void 0===n?void 0:n.returnValue;return t===this.lastCallbackResult.id&&(null==e?void 0:e.timeStamp)-this.lastCallbackResult.timeStampthis.maxSearchRetry||this.apiWasFound&&this.apiAnsweredOk)&&clearInterval(this.retryInterval),this.retryNumber++}))}searchApi(){this.retryInterval=window.setInterval((()=>{this.searchApiInterval()}),500),this.searchApiInterval()}}e.SasIabApi=i,window.SasIabApi=i},113:function(t,e,a){"use strict";var n=this&&this.__awaiter||function(t,e,a,n){return new(a||(a=Promise))((function(s,i){function r(t){try{d(n.next(t))}catch(t){i(t)}}function o(t){try{d(n.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?s(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(r,o)}d((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.EModuleStorageKeys=e.EConsentStatus=e.Consent=void 0;const s=a(882);var i,r;e.Consent=class{constructor(){this.consentTgtString="consent=rejected",this.maxSearchEntry=50,this.consentRejectedKey="sas_consent_rejected",this.cmpValidKey="eqtv_cmpvalid",this.consentStatus=i.UNKNOWN,this.tcfData={},this.retryInterval=0,this.retryNumber=0,this.retryTime=500,this.logOn=!1,this.validateTCFData=()=>{var t;this.log("validateTCFData");const{tcData:e,success:a}=this.tcfData;if(e&&!this.isCmpValid(e.cmpId))return this.consentStatus=i.REJECTED,void this.callCallback();if(this.isUiVisible(null==e?void 0:e.eventStatus))return this.consentStatus===i.UNKNOWN&&(null==e?void 0:e.gdprApplies)&&(this.consentStatus=i.REJECTED),void this.callCallback();const n=!0===(null===(t=null==e?void 0:e.vendor)||void 0===t?void 0:t.consents[45])&&[1,2,4,7,10].every((t=>{var a;return!0===(null===(a=e.purpose)||void 0===a?void 0:a.consents[t])}));a&&e&&(!1===e.gdprApplies||n?this.consentStatus=i.AGREED:void 0===e.gdprApplies?this.consentStatus=n?i.AGREED:i.REJECTED:this.consentStatus=i.REJECTED),this.callCallback()},window.sas=window.sas||{},window.sas.EConsentStatus=i,window.sas.getConsentStatus=()=>this.getConsentStatus(),"function"!=typeof window.__gpp&&"function"!=typeof window.__tcfapi&&(this.consentStatus=i.AGREED),this.checkConsentInStorage()}checkConsent(t){return n(this,void 0,void 0,(function*(){this.log("checkConsent",t),this.callback=t,this.callCallback(),yield this.checkGPPConsent(),"function"!=typeof window.__gpp&&this.checkTCFConsent()}))}getConsentStatus(){return this.consentStatus}checkConsentInStorage(){this.log("checkConsentStatus");const t=window.sas.localStorage.getItem(this.consentRejectedKey);"1"===t?this.consentStatus=i.REJECTED:"0"===t&&(this.consentStatus=i.AGREED),this.callCallback()}getGPPData(){this.log("getGPPData"),window.__gpp("addEventListener",(t=>n(this,void 0,void 0,(function*(){if(!t)return void console.warn("No consent data available");let e;if(Number(t.pingData.gppVersion)<1.1){const a=window.__gpp("getGPPData");e={cmpId:t.pingData.cmpId,cmpDisplayStatus:t.pingData.cmpDisplayStatus,applicableSections:a.applicableSections}}else{const a=t.pingData;e={cmpId:a.cmpId,cmpDisplayStatus:a.cmpDisplayStatus,applicableSections:a.applicableSections}}yield this.validateGPPData(e)}))))}createRetryInterval(){this.log("createRetryInterval");const t=this.getTopWindow();this.retryInterval=window.setInterval((()=>n(this,void 0,void 0,(function*(){if(this.retryNumber>this.maxSearchEntry)clearInterval(this.retryInterval);else{if(window.__gpp=t.__gpp||window.__gpp,"function"==typeof window.__gpp){this.log("window.__gpp",window.__gpp);const t=yield(0,s.betterGpp)("ping");"loaded"===(null==t?void 0:t.cmpStatus)&&(this.getGPPData(),clearInterval(this.retryInterval))}this.retryNumber++}}))),this.retryTime)}checkGPPConsent(){return n(this,void 0,void 0,(function*(){if(this.log("checkGPPConsent"),"function"==typeof window.__gpp){if("loaded"===(yield(0,s.betterGpp)("ping")).cmpStatus)return void this.getGPPData()}this.createRetryInterval()}))}checkTCFConsent(){this.log("checkTCFConsent"),"function"==typeof window.__tcfapi&&(this.log("window.__tcfapi",window.__tcfapi),window.__tcfapi("addEventListener",2,((t,e)=>{this.tcfData={tcData:t,success:e},this.validateTCFData()})))}validateGPPData(t){var e,a,r;return n(this,void 0,void 0,(function*(){if(this.log("validateGPPData",t),!this.isCmpValid(t.cmpId))return this.consentStatus=i.REJECTED,void this.callCallback();if(this.isUiVisible(t.cmpDisplayStatus))return this.consentStatus=i.UNKNOWN,void this.callCallback();if(this.consentStatus=i.AGREED,null===(e=t.applicableSections)||void 0===e?void 0:e.length)for(const e of t.applicableSections){switch(e){case s.ESection.tcfeuv2:{const t=yield(0,s.checkAndGetSection)(s.ESection[s.ESection.tcfeuv2]);if(t){const e=((null===(a=t.VendorConsent)||void 0===a?void 0:a.includes(45))||(null===(r=t.VendorConsents)||void 0===r?void 0:r.includes(45)))&&[1,2,4,7,10].every((e=>{var a,n;return(null===(a=t.PurposeConsent)||void 0===a?void 0:a[e-1])||(null===(n=t.PurposeConsents)||void 0===n?void 0:n[e-1])}));e||(this.consentStatus=i.REJECTED)}break}case s.ESection.uspv1:{const t=yield(0,s.checkAndGetSection)(s.ESection[s.ESection.uspv1]);if(t){"Y"!==t.OptOutSale||(this.consentStatus=i.REJECTED)}break}case s.ESection.usnat:case s.ESection.usut:case s.ESection.usva:case s.ESection.usca:case s.ESection.usco:case s.ESection.usct:{const t=yield(0,s.extendedGetSection)(s.ESection[e]);if(t){this.normalizeConsentArray(t);this.evaluateUsConsent(e,t)||(this.consentStatus=i.REJECTED)}break}default:this.consentStatus=i.UNKNOWN}if(this.consentStatus===i.REJECTED)break}this.consentStatus===i.UNKNOWN?this.checkTCFConsent():this.callCallback()}))}normalizeConsentArray(t){"number"==typeof t.KnownChildSensitiveDataConsents&&(t.KnownChildSensitiveDataConsents=[t.KnownChildSensitiveDataConsents])}evaluateUsConsent(t,e){let a=this.evaluateUsCommonConsent(e);if(!a)return a;const n=this.evaluateSet1Consent(e),i=this.evaluateSet2Consent(e),r=this.evaluateSet3Consent(e);switch(t){case s.ESection.usnat:a&&(a=n&&i);break;case s.ESection.usca:a&&(a=i);break;case s.ESection.usut:a&&(a=n);break;case s.ESection.usva:case s.ESection.usco:case s.ESection.usct:a&&(a=r)}return a}evaluateUsCommonConsent(t){var e,a,n;return null!==(n=1!==t.SaleOptOut&&2!==t.SaleOptOutNotice&&(null===(e=t.KnownChildSensitiveDataConsents)||void 0===e?void 0:e.every((t=>1!==t)))&&(null===(a=t.SensitiveDataProcessing)||void 0===a?void 0:a.every((t=>1!==t))))&&void 0!==n&&n}evaluateSet1Consent(t){return 2!==t.SharingNotice&&1!==t.TargetedAdvertisingOptOut&&2!==t.TargetedAdvertisingOptOutNotice&&2!==t.SensitiveDataProcessingOptOutNotice}evaluateSet2Consent(t){return 1!==t.SharingOptOut&&2!==t.SharingOptOutNotice&&1!==t.PersonalDataConsents&&2!==t.SensitiveDataLimitUseNotice}evaluateSet3Consent(t){return 2!==t.SharingNotice&&1!==t.TargetedAdvertisingOptOut&&2!==t.TargetedAdvertisingOptOutNotice}callCallback(){this.log("callCallback"),"function"==typeof this.callback&&this.callback(this.consentStatus===i.REJECTED?this.consentTgtString:null),this.consentStatus===i.REJECTED&&Object.values(r).forEach((t=>window.sas.localStorage.removeItem(t))),this.consentStatus===i.UNKNOWN?window.sas.localStorage.removeItem(this.consentRejectedKey):window.sas.localStorage.setItem(this.consentRejectedKey,JSON.stringify(this.consentStatus))}isUiVisible(t){return this.log("isUiVisible",t),"cmpuishown"===t||"visible"===t}isCmpValid(t){const e=window.sas.cmpIds,a=!e||e.includes(t);return window.sas.localStorage.setItem(this.cmpValidKey,String(Number(a))),a}getTopWindow(){this.log("getTopWindow");let t=5,e=window;for(;t--;)try{e.parent&&e.parent.document&&(e=e.parent,e===e.parent&&(t=0))}catch(t){this.log("getTopWindow error",t)}return e}log(...t){this.logOn&&console.log("%cconsent","background:#ed5625; border-radius:2px; color:#feffff; font-family:lato,sans-serif; padding:1px 3px;",t)}},function(t){t[t.AGREED=0]="AGREED",t[t.REJECTED=1]="REJECTED",t[t.UNKNOWN=2]="UNKNOWN"}(i=e.EConsentStatus||(e.EConsentStatus={})),function(t){t.ID5="eqtv_id5",t.TOPICS="eqtv_topics",t.LIVERAMP="sas__lr_env"}(r=e.EModuleStorageKeys||(e.EModuleStorageKeys={}))},882:function(t,e){"use strict";var a=this&&this.__awaiter||function(t,e,a,n){return new(a||(a=Promise))((function(s,i){function r(t){try{d(n.next(t))}catch(t){i(t)}}function o(t){try{d(n.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?s(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(r,o)}d((n=n.apply(t,e||[])).next())}))};function n(t,e){return new Promise((a=>{const n=window.__gpp(t,((t,e)=>{e&&a(t)}),e);void 0!==n&&a(n)}))}function s(t){return a(this,void 0,void 0,(function*(){if(yield n("hasSection",t)){const e=yield n("getSection",t);return Array.isArray(e)?e[0]:e}return null}))}Object.defineProperty(e,"__esModule",{value:!0}),e.extendedGetSection=e.checkAndGetSection=e.betterGpp=e.ESection=void 0,function(t){t[t.tcfeuv2=2]="tcfeuv2",t[t.uspv1=6]="uspv1",t[t.usnat=7]="usnat",t[t.usca=8]="usca",t[t.usva=9]="usva",t[t.usco=10]="usco",t[t.usut=11]="usut",t[t.usct=12]="usct"}(e.ESection||(e.ESection={})),e.betterGpp=n,e.checkAndGetSection=s,e.extendedGetSection=function(t){return a(this,void 0,void 0,(function*(){return(yield s(t))||(yield s(t+"v1"))}))}},598:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Liveramp=void 0;const n=a(343),s=a(113);class i extends n.Global{constructor(){super(...arguments),this.atsPath="https://ats.rlcdn.com/ats.js"}init(t){"number"==typeof t.placementID&&t.placementID?this.fetchId(t):this._log("LiveRamp ATS not initiated because of not valid placementID","warn"),this.readId()}fetchId(t){(()=>window.ats?Promise.resolve():new Promise((t=>{const e=document.createElement("script");e.onload=t,e.src=this.atsPath,document.head.appendChild(e)})))().then((()=>{window.ats.start(t),this._log("LiveRamp ATS initiated"),window.ats.retrieveEnvelope().then((t=>{t&&this.sas.localStorage.setItem(s.EModuleStorageKeys.LIVERAMP,JSON.parse(t).envelope)}))}))}readId(){const t=this.sas.localStorage.getItem(s.EModuleStorageKeys.LIVERAMP);t&&this.setEids({source:"liveramp.com",uids:[{id:t}]})}}e.Liveramp=i},417:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=class{isAvailable(){let t=!1;try{const e="smart_is_localstorage_available";localStorage.setItem(e,"1"),"1"===localStorage.getItem(e)&&(localStorage.removeItem(e),t=!0)}catch(t){}return this.isAvailable=()=>t,t}getItem(t){return this.isAvailable()?localStorage.getItem(t):null}setItem(t,e){return!!this.isAvailable()&&(localStorage.setItem(t,e),!0)}removeItem(t){return!!this.isAvailable()&&(localStorage.removeItem(t),!0)}}},880:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sda=void 0;const n=a(343);class s extends n.Global{constructor(){super(),this.sdaData=[],this.sdcData=[],this.sas.setSda=t=>this.setSda(t,!1),this.sas.getSda=()=>this.sdaData,this.sas.setSdc=t=>this.setSda(t,!0),this.sas.getSdc=()=>this.sdcData}validateAndPushData(t,e){if(this.isValidArray(t))for(const a of t){const t={name:(null==a?void 0:a.name)||""};if(this.isNonEmptyString(null==a?void 0:a.id)&&(t.id=a.id),(null==a?void 0:a.segment)&&this.isValidArray(a.segment))for(const e of a.segment){const a={};this.isNonEmptyString(null==e?void 0:e.id)&&(a.id=e.id),this.isNonEmptyString(null==e?void 0:e.name)&&(a.name=e.name),this.isNonEmptyString(null==e?void 0:e.value)&&(a.value=e.value),this.isObjectEmpty(a)||(Array.isArray(t.segment)||(t.segment=[]),t.segment.push(a))}(null==a?void 0:a.ext)&&!this.isObjectEmpty(a.ext)&&(t.ext=a.ext),this.isObjectEmpty(t)||!t.name||this.checkDuplicates(t,e)?this._log("SDA: wrong input data format","warn",a):e.push(t)}else this._log("SDA: wrong input data format","warn",t)}isValidArray(t){return Array.isArray(t)&&t.length>0}checkDuplicates(t,e){let a=!1;return e.forEach((e=>{JSON.stringify(t)===JSON.stringify(e)&&(a=!0)})),a}setSda(t,e){e?this.validateAndPushData(t,this.sdcData):this.validateAndPushData(t,this.sdaData)}removeSda(t){this.sdaData=this.sdaData.filter((e=>!e[t]))}}e.Sda=s},905:function(t,e){"use strict";var a,n=this&&this.__rest||function(t,e){var a={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(a[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s-1)switch(t.mode){case a.Overwrite:s=Object.assign(Object.assign({},s),t.target);break;case a.Append:Array.from(new Set([...Object.keys(s),...Object.keys(t.target)])).forEach((e=>{const a=[...s[e]||[],...t.target[e]||[]];s[e]=a.filter(((t,e)=>a.indexOf(t)===e))}));break;case a.Remove:Object.keys(t.target).forEach((t=>{if(s[t]){const e=s,a=t,i=(e[a],n(e,["symbol"==typeof a?a:a+""]));s=i}}));break;default:s=Object.assign({},t.target)}const i=this.tgtObjToString(s);return""===i&&void 0===t?void 0:i}tgtObjToString(t){let e="";for(const[a,n]of Object.entries(t))e+=n.length?`${a}=${n};`:`${a};`;return e}tgtStringToObj(t){const e={};if(t)for(const a of t.split(";")){const t=a.split("=");t[0]&&(e[t[0]]=e[t[0]]||[],t[1]&&(e[t[0]]=e[t[0]].concat(t[1].split(",").filter((t=>t.length)))))}return e}},function(t){t[t.Default=0]="Default",t[t.Overwrite=1]="Overwrite",t[t.Append=2]="Append",t[t.Remove=3]="Remove"}(a=e.SetTargetingMode||(e.SetTargetingMode={}))},624:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EKey=e.Tracing=void 0;const n=a(343);class s extends n.Global{constructor(){super(),this.objMap=new Map,this.samplingRate=this._isDebug()?1:1e4,this.apiEndpoint="https://apm.smartadserver.com:443/v1/traces",this.sas.tracing.setTraceHeaders=(t,e)=>this.setTraceHeaders(t,e),this.sas.tracing.add=(t,e)=>this.add(t,e),this.sas.tracing.addMany=(t,e)=>this.addMany(t,e),this.sas.tracing.sendTrace=(t,e)=>this.sendTrace(t,e)}sendTrace(t,e){const a=this.objMap.get(t);if(!(a&&a[i.shouldSendTrace]&&a[i.traceId]&&a[i.parentId]&&a[i.adCallStart]&&a[i.adCallEnd]&&a[i.beforeRender]&&(a[i.onAd]||a[i.noAd])))return;const n=this.getEvents(a),s=this.getTrace(n,{startTime:a[i.adCallStart],endTime:a[i.adCallEnd]},{startTime:a[i.beforeRender],endTime:a[i.onAd]||a[i.noAd]},e,a[i.traceId],a[i.parentId]);fetch(this.apiEndpoint,{method:"POST",body:JSON.stringify(s),headers:{"Content-type":"application/json"}}),this._log("trace",void 0,s)}getEvents(t){return Object.entries(t).filter((([t])=>[i.beforeRender,i.load,i.noAd,i.onAd,i.render].includes(t))).map((([t,e])=>({name:t,time:e})))}getTrace(t,e,a,n,s,i){return{resourceSpans:[{resource:{attributes:[{key:"service.name",value:{stringValue:"smartjs"}},{key:"service.version",value:{stringValue:"1.31.0"}}]},scopeSpans:[{spans:[{name:"render",traceId:s,spanId:this.genRandomHex(16),parentSpanId:i,startTimeUnixNano:1e6*a.startTime,endTimeUnixNano:1e6*a.endTime,kind:1,attributes:[{key:"site.id",value:{intValue:n.siteId}},{key:"page.id",value:{intValue:n.pageId}},{key:"format.id",value:{intValue:n.formatId}},{key:"tag.id",value:{stringValue:n.tagId}},{key:"target",value:{stringValue:n.target}}],events:t.map((t=>({name:t.name,timeUnixNano:1e6*t.time})))},{name:"adcall",traceId:s,spanId:i,startTimeUnixNano:1e6*e.startTime,endTimeUnixNano:1e6*e.endTime,kind:3,attributes:[{key:"peer.service",value:{stringValue:"delivery"}}]}]}]}]}}addMany(t,e){const a=performance.timeOrigin+performance.now();for(const n of e)this.add(t,n.tagId,a)}genRandomHex(t){return[...Array(t)].map((()=>Math.floor(16*Math.random()).toString(16))).join("")}setTraceHeaders(t,e){this.addMany(i.adCallStart,e);const a=this.genRandomHex(32),n=this.genRandomHex(16),s=this.isTraceEligible(a,this.samplingRate);this.addData(e,a,n,s),t.setRequestHeader("traceparent",`00-${a}-${n}-${s?"01":"00"}`),t.setRequestHeader("tracestate","eqtv-source=smartjs"+(this._isDebug()?",eqtv-nosampling=true":""))}isTraceEligible(t,e){return this.fnv1a(t)%e==0}fnv1a(t){let e=2166136261;for(let a=0;a>>0}addData(t,e,a,n){for(const s of t)this.add(i.traceId,s.tagId,e),this.add(i.parentId,s.tagId,a),this.add(i.shouldSendTrace,s.tagId,n)}add(t,e,a){this.objMap.set(e,Object.assign(Object.assign({},this.objMap.get(e)),{[t]:void 0===a?performance.timeOrigin+performance.now():a}))}}var i;e.Tracing=s,function(t){t.adCallStart="adCallStart",t.adCallEnd="adCallEnd",t.beforeRender="beforeRender",t.noAd="noAd",t.onAd="onAd",t.load="load",t.render="render",t.shouldSendTrace="shouldSendTrace",t.traceId="traceId",t.parentId="parentId"}(i=e.EKey||(e.EKey={}))},396:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Uid=void 0;const n=a(343);class s extends n.Global{constructor(){super(...arguments),this.apis={__euid:"euid.eu",__uid2:"uidapi.com"}}init(){for(const[t,e]of Object.entries(this.apis))this.getEid(t,e)}getEid(t,e){var a;const n=null===(a=window[t])||void 0===a?void 0:a.getAdvertisingToken;"function"==typeof n&&this.setEids({source:e,uids:[{id:n()}]})}}e.Uid=s},443:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Utiq=void 0;const n=a(343);class s extends n.Global{constructor(){super(...arguments),this.eidSource="utiq.com"}getEid(){var t;const e=null===(t=window.Utiq)||void 0===t?void 0:t.API;let a=!1;if(e&&(a=this.tryGetAtid((()=>e.getIdGraphEntry("atid")),"API")),!a){const t=this.sas.localStorage.getItem("utiqPass");t&&this.tryGetAtid((()=>JSON.parse(t).connectId.idGraph[0].atid),"Local storage")}window.Utiq=window.Utiq||{},window.Utiq.listeners=window.Utiq.listeners||{},window.Utiq.listeners.onIdsAvailable=window.Utiq.listeners.onIdsAvailable||[],window.Utiq.listeners.onConsentUpdateFinished=window.Utiq.listeners.onConsentUpdateFinished||[],window.Utiq.listeners.onIdsAvailable.push((({atid:t})=>{this.tryGetAtid((()=>t),"Event listener")})),window.Utiq.listeners.onConsentUpdateFinished.push((({isConsentGranted:t})=>{t||this.removeEids(this.eidSource)}))}tryGetAtid(t,e){try{const a=t();if(a&&"string"==typeof a&&!a.includes(" "))return this.removeEids(this.eidSource),this.setEids({source:this.eidSource,uids:[{id:a}]}),!0;this._log(`Utiq: ${e} returned an incorrect atid value`,void 0,a)}catch(t){this._log(`Utiq: retrieving atid from ${e} failed`,void 0,t)}return!1}}e.Utiq=s},418:function(t,e,a){"use strict";var n,s,i,r,o=this&&this.__createBinding||(Object.create?function(t,e,a,n){void 0===n&&(n=a);var s=Object.getOwnPropertyDescriptor(e,a);s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,n,s)}:function(t,e,a,n){void 0===n&&(n=a),t[n]=e[a]}),d=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)"default"!==a&&Object.prototype.hasOwnProperty.call(t,a)&&o(e,t,a);return d(e,t),e},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const u=l(a(833)),p=l(a(417)),h=l(a(532)),g=c(a(581)),f=window.sas=window.sas||{};f.utils=f.utils||{},f.consent=f.consent||{},f.cmd=f.cmd||[],f.livePreview=f.livePreview||{},f.tracing=f.tracing||{},f.debugMode=f.debugMode||{},f.debugMode.logsQueue=f.debugMode.logsQueue||[],f.debugMode.bannersQueue=f.debugMode.bannersQueue||[],f.events=(null===(n=f.events)||void 0===n?void 0:n.isReady)?f.events:new u.default,f.localStorage=null!==(s=f.localStorage)&&void 0!==s?s:new p.default,f.Tag=null!==(i=f.Tag)&&void 0!==i?i:h.default,f.common=null!==(r=f.common)&&void 0!==r?r:g,e.default=f},585:function(t,e,a){"use strict";var n=this&&this.__awaiter||function(t,e,a,n){return new(a||(a=Promise))((function(s,i){function r(t){try{d(n.next(t))}catch(t){i(t)}}function o(t){try{d(n.throw(t))}catch(t){i(t)}}function d(t){var e;t.done?s(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(r,o)}d((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Smart=void 0;const i=a(113),r=a(343),o=a(654),d=a(598),c=a(683),l=a(905),u=a(905),p=a(880),h=s(a(832)),g=a(814),f=a(396),v=a(443),m=a(624),y=a(858);class w extends r.Global{constructor(){super(),this.targeting=new u.Targeting,this.consent=new i.Consent,this.setupDebugMode()}setupDebugMode(){const t=this.sas.debugMode;t.addLog=e=>{t.active&&t.logsQueue.push(e)},t.addBanner=e=>{t.active&&t.bannersQueue.push(e)},null!==new URLSearchParams(window.location.search).get("equativ_debug")&&(t.active=!0,(0,h.default)("modules/lazy/debugMode").catch((()=>this._log("Couldn't load Debug Mode.","error"))))}initCmp(){const t=new c.SasIabApi({name:"CMP V2",version:2,apiFunctionName:"__tcfapi",getConsentFunction:"addEventListener",sasCookieName:"sas_euconsent_v2",sasAddtlCookieName:"sas_addtl_euconsent_v2",consentObjectConsentDataName:"tcString",consentObjectAdditionalConsentDataName:"addtlConsent",apiLocator:"__tcfapiLocator",sentMessage:"__tcfapiCall",postMessageReturnObjectName:"__tcfapiReturn"}),e=new c.SasIabApi({name:"CCPA",version:1,apiFunctionName:"__uspapi",getConsentFunction:"getUSPData",sasCookieName:"sas_usprivacy",consentObjectConsentDataName:"uspString",apiLocator:"__uspapiLocator",sentMessage:"__uspapiCall",postMessageReturnObjectName:"__uspapiReturn"}),a=new c.SasIabApi({name:"GPP",version:1,apiFunctionName:"__gpp",getConsentFunction:"addEventListener",sasCookieName:"sas_gpp",sasAddtlCookieName:"sas_gpp_sid",consentObjectConsentDataName:"gppString",consentObjectAdditionalConsentDataName:"applicableSections",apiLocator:"__gppLocator",sentMessage:"__gppCall",postMessageReturnObjectName:"__gppReturn"});t.searchApi(),e.searchApi(),a.searchApi()}initModules(t){this.consent.checkConsent((e=>{var a;!1!==(null===(a=null==t?void 0:t.consent)||void 0===a?void 0:a.targeting)&&this.checkConsentCallback(e)})),this.consent.getConsentStatus()===i.EConsentStatus.AGREED&&(!1!==window.sas_useID5Module&&(new o.Id5).init(null==t?void 0:t.id5),!0===window.sas_useLiverampModule&&(null==t?void 0:t.liveramp)&&(new d.Liveramp).init(t.liveramp)),(new f.Uid).init(),(new v.Utiq).getEid()}checkConsentCallback(t){t?this.targeting.setTargeting({mode:l.SetTargetingMode.Overwrite,target:{consent:["rejected"]}}):this.targeting.setTargeting({mode:l.SetTargetingMode.Remove,target:{consent:[]}})}init(){var t;return n(this,void 0,void 0,(function*(){this.sas.events.on("setupCalled",(t=>this.initModules(null==t?void 0:t.modules))),window.setTimeout((()=>this.initCmp()));const e=new p.Sda;new y.Dsa,new g.Gpid,new m.Tracing,!0===window.sas_useTopicsAPIData&&"function"==typeof document.browsingTopics&&(null===(t=document.featurePolicy)||void 0===t?void 0:t.allowsFeature("browsing-topics"))&&document.featurePolicy.allowsFeature("interest-cohort")&&this.consent.getConsentStatus()===i.EConsentStatus.AGREED&&(yield(0,h.default)("modules/topics").then((()=>this.sas.Topics&&new this.sas.Topics(e))).catch((()=>this._log("Couldn't load Topics.","error")))),new URLSearchParams(window.location.search).get("live_preview_config")&&(yield(0,h.default)("modules/livePreview").then((()=>this.sas.LivePreview&&new this.sas.LivePreview)).catch((()=>this._log("Couldn't load LivePreview.","error")))),this.sas.events.fire("readyForCmd")}))}}e.Smart=w},532:(t,e,a)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EScriptType=e.ECallType=void 0;const n=a(624),s=a(581);var i,r;e.default=class{constructor(t){this.instances=[],this.hbData=null,window.sas.events.on("ad",(t=>this.onAd({formatId:t.formatId,tagId:t.tagId})),t),window.sas.events.on("load",(()=>this.onLoad()),t),window.sas.events.on("noad",(t=>{const e={formatId:t.formatId,tagId:t.tagId,hbRenderUrls:t.hbRenderUrls||void 0};e.hbRenderUrls||delete e.hbRenderUrls,this.onNoad(e)}),t),window.sas.events.on("error",(t=>this.onError({formatId:t.formatId,tagId:t.tagId,instance:t.instance})),t),window.sas.events.on("render",(t=>this.onRender({formatId:t.formatId,tagId:t.tagId,instance:t.instance})),t),window.sas.events.on("beforeRender",(t=>this.onBeforeRender({formatId:t.formatId,tagId:t.tagId})),t),window.sas.events.on("hbRender",(t=>this.onHbRender({success:t.success})),t),window.sas.events.on("request",(t=>this.onRequest({formatId:t.formatId,tagId:t.tagId,instance:t.instance})),t)}onAd(t){window.sas.tracing.add(n.EKey.onAd,t.tagId),this.hasAd=!0,this.options&&this.options.onAd&&this.options.onAd(t)}onLoad(){var t,e;const a=document.getElementById(this.ad.tagId);a&&(this.hasAd=this.hasAd||a.childNodes.length>1,window.sas.tracing.add(n.EKey.load,this.ad.tagId),this.hasAd&&window.sas.tracing.sendTrace(this.ad.tagId,{siteId:this.ad.siteId,pageId:this.ad.pageId,pageName:this.ad.pageName?this.ad.pageName:"",formatId:this.ad.formatId,tagId:this.ad.tagId,target:this.ad.target}),null===(e=null===(t=this.options)||void 0===t?void 0:t.onLoad)||void 0===e||e.call(t,{formatId:this.ad.formatId,tagId:this.ad.tagId,hasAd:this.hasAd}))}onNoad(t){if(window.sas.tracing.add(n.EKey.noAd,t.tagId),window.sas.tracing.sendTrace(t.tagId,{siteId:this.ad.siteId,pageId:this.ad.pageId,pageName:this.ad.pageName?this.ad.pageName:"",formatId:this.ad.formatId,tagId:this.ad.tagId,target:this.ad.target}),this.displayData&&this.callType==i.ONECALL&&this.displayData.scriptNoad){const t=this.getHeaderBiddingData();t&&(this.displayData.scriptNoad=(0,s.addHBDataToUrl)(this.displayData.scriptNoad,t)),(new Image).src=this.displayData.scriptNoad}t.hbRenderUrls&&t.hbRenderUrls.hbRenderFailedUrl&&(this.hbRenderUrls=t.hbRenderUrls,t.hbRenderUrls=void 0),this.options&&this.options.onNoad&&this.options.onNoad(t)}onError(t){this.options&&this.options.onError&&this.options.onError(t)}onRender(t){window.sas.tracing.add(n.EKey.render,t.tagId)}onBeforeRender(t){window.sas.tracing.add(n.EKey.beforeRender,t.tagId),this.options&&this.options.beforeRender&&this.options.beforeRender(t)}onHbRender(t){this.hbRenderUrls&&(t.success?(new Image).src=this.hbRenderUrls.hbRenderSuccessUrl:(new Image).src=this.hbRenderUrls.hbRenderFailedUrl,this.hbRenderUrls=void 0)}onRequest(t){this.options&&this.options.request&&this.options.request(t)}setHeaderBiddingWinner(t){this.hbData=t}getHeaderBiddingData(){if(this.hbData&&!isNaN(this.hbData.cpm)){const t=this.hbData;return this.hbData=null,t}return null}clean(){const t=document.getElementById(this.ad.tagId);this.options&&this.options.onClean&&this.options.onClean(this.ad.formatId,t),window.sas.events.fire("clean",{formatId:this.ad.formatId,instance:this.ad.instance,tagId:this.ad.tagId},this.ad.tagId),t&&(t.innerHTML="")}onCall(t,e,a){this.callType=t,this.ad=e,this.options=a}reset(t,e){this.displayData=void 0,this.hbRenderUrls=void 0,t?this.renderStatus=null:"rendered"==this.renderStatus&&(this.renderStatus="pending"),window.sas.events.fire("reset",{formatId:this.ad.formatId,instance:this.ad.instance,tagId:this.ad.tagId,hardReset:t},this.ad.tagId),e&&this.instances&&this.instances.forEach((e=>e.reset(t,!1)))}render(){if("rendered"===this.renderStatus)return;if(!this.displayData)return void(this.renderStatus="pending");this.renderStatus="rendered",this.clean();const t={formatId:this.ad.formatId,instance:this.ad.instance,tagId:this.ad.tagId,hbRenderUrls:this.displayData.hbRenderFailedUrl?{hbRenderFailedUrl:this.displayData.hbRenderFailedUrl,hbRenderSuccessUrl:this.displayData.hbRenderSuccessUrl}:void 0};window.sas.events.fire("beforeRender",t,this.ad.tagId);const e=()=>{window.sas.events.fire("load",t,this.ad.tagId)},a=document.getElementById(this.ad.tagId);if(window.sas.debugMode.addBanner&&a&&window.sas.debugMode.addBanner({adSlot:a,adInfo:{"Network ID":this.options.networkId,"Site ID":this.ad.siteId,"Page ID":this.ad.pageId,"Format ID":this.ad.formatId,"Tag ID":this.ad.tagId,Targeting:this.ad.target}}),!this.displayData.scriptType)return e(),window.sas.events.fire("noad",t,this.ad.tagId),void(window.sas.debugMode.addLog&&a&&window.sas.debugMode.addLog({adObj:this.ad,isAd:!1,adSlot:a}));window.sas.debugMode.addLog&&a&&window.sas.debugMode.addLog({adObj:this.ad,isAd:!0,adSlot:a}),a?(this.handleScriptType(a,e,(()=>{window.sas.events.fire("error",t,this.ad.tagId),window.sas.events.fire("noad",t,this.ad.tagId)})),(0,s.getLazyLoadingSignal)(String(this.ad.formatId))&&window.sas.events.fire("request",t,this.ad.tagId),window.sas.events.fire("render",t,this.ad.tagId)):window.sas.events.fire("error",t,this.ad.tagId)}handleScriptType(t,e,a){var n,i;switch(null===(n=this.displayData)||void 0===n?void 0:n.scriptType){case r.SCRIPT:{const n=this.getHeaderBiddingData();n&&this.displayData.scriptNoad&&(this.displayData.scriptNoad=(0,s.addHBDataToUrl)(this.displayData.scriptNoad,n)),(0,s.appendScript)(t,this.displayData.scriptSrc,e,a,this.hbData,(0,s.getLazyLoadingSignal)(String(this.ad.formatId)),this.ad.tagId);break}case r.PASSBACK:window.sas.passback({formatId:this.ad.formatId,tagId:this.ad.tagId,chain:this.displayData.chain,noadUrl:this.ad.noadUrl,pageId:this.ad.pageId,siteId:this.ad.siteId});break;case r.CONTENT:"application/javascript"===this.displayData.contentType&&(0,s.appendScriptContent)(t,this.displayData.content,this.ad.tagId),e();break;default:throw new Error("Unsupported script type "+(null===(i=this.displayData)||void 0===i?void 0:i.scriptType))}}},function(t){t.STD="std",t.IFRAME="iframe",t.ONECALL="onecall",t.PASSBACK="passback"}(i=e.ECallType||(e.ECallType={})),function(t){t.IFRAME="iframe",t.SCRIPT="script",t.PASSBACK="passback",t.CONTENT="content"}(r=e.EScriptType||(e.EScriptType={}))},581:(t,e)=>{"use strict";function a(t,e){return t+`&hb_cpm=${e.cpm}&hb_bid=${e.bidder}&hb_ccy=${e.currency}${e.dealId?`&hb_dealid=${e.dealId}`:""}`}function n(){return window.sas.localStorage.getItem("sas_usprivacy")||null}function s(){if(window._publisherDefinedConsent)return window._publisherDefinedConsent;const t=window.sas.localStorage.getItem("sas_euconsent");return window.sas.localStorage.getItem("sas_euconsent_v2")||t}function i(){return window.sas.utils.isAddtlConsentBlocked()?null:window.sas.localStorage.getItem("sas_addtl_euconsent_v2")||null}function r(t){var e,a;let r;try{r=new URL(t)}catch(e){return t}const o=s();o&&r.searchParams.set("gdpr_consent",o);const d=i();d&&r.searchParams.set("addtl_consent",d);const c=n();c&&r.searchParams.set("us_privacy",c);const l=window.sas.localStorage.getItem("sas_gpp");l&&r.searchParams.set("gpp",l);const u=window.sas.localStorage.getItem("sas_gpp_sid");if(u)try{r.searchParams.set("gpp_sid",JSON.parse(u))}catch(t){}const p=window.sas.localStorage.getItem("eqtv_cmpvalid");p&&r.searchParams.set("cmpvalid",p);const h=window.sas.updateTarget(null!==(e=r.searchParams.get("tgt"))&&void 0!==e?e:void 0,null!==(a=r.searchParams.get("tag"))&&void 0!==a?a:"");return h&&r.searchParams.set("tgt",h),r.toString()}Object.defineProperty(e,"__esModule",{value:!0}),e.appendScriptContent=e.appendScript=e.updateConsentDataInUrl=e.getLazyLoadingSignal=e.getAddtlConsentData=e.getGdprConsentData=e.getUsPrivacyConsentData=e.addHBDataToUrl=void 0,e.addHBDataToUrl=a,e.getUsPrivacyConsentData=n,e.getGdprConsentData=s,e.getAddtlConsentData=i,e.getLazyLoadingSignal=function(t){return!(!window.sas.lazyLoading||!window.sas.lazyLoading.formats||0!==window.sas.lazyLoading.formats.length&&!window.sas.lazyLoading.formats.includes(parseInt(t)))},e.updateConsentDataInUrl=r,e.appendScript=function(t,e,n,s,i,o,d){const c=document.createElement("script");c.id="sas_script_"+d,c.type="text/javascript";let l="function"==typeof e?e():e;i&&(l=a(l,i)),o&&(l=r(l)),c.src=l,c.async=!0,c.addEventListener("load",n),c.addEventListener("error",s),t.appendChild(c)},e.appendScriptContent=function(t,e,a){const n=document.createElement("script");n.id="sas_script_"+a,n.text=e,t.appendChild(n)}},501:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){const e=()=>{document.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),t()};"complete"===document.readyState?setTimeout(t):(document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1))}},275:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){t.push=(...t)=>{for(const a of t)e(a);return 0};for(const a of t)e(a);t.length=0}},832:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e="https://ced-ns.sascdn.com/diff/js/"){return new Promise(((a,n)=>{const s=document.createElement("script");s.src=e+t+".js",s.onload=a,s.onerror=n,document.head.appendChild(s)}))}}},e={};(function a(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,a),i.exports})(927)})();/*_ts_*/;if(window.sas && sas.configure){sas.configure({id:1097});}/*_ts_*/