November 26, 2024

Why We Keep Putting Up With Martin Short

Martin Short #MartinShort

“));var m=_[n.size_id].split(“x”).map(function(e){return Number(e)}),v=(0,i.Z)(m,2);p.width=v[0],p.height=v[1]}p.rubiconTargeting=(Array.isArray(n.targeting)?n.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:f.adUnitCode}),t.push(p)}else(0,g.H)(“Rubicon: bidRequest undefined at index position:”.concat(r),u,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!k&&e.iframeEnabled){var i={};return n&&(“boolean”==typeof n.gdprApplies&&(i.gdpr=Number(n.gdprApplies)),”string”==typeof n.consentString&&(i.gdpr_consent=n.consentString)),r&&(i.us_privacy=encodeURIComponent(r)),i=Object.keys(i).length?”?”.concat((0,g.Yp)(i)):””,k=!0,{type:”iframe”,url:”https://”.concat(y.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,t){return(0,g.uh)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,t){var n;return n=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?n.replace(/^http:/i,”https:”):n}function E(e){var t,n=document.getElementById(e.adUnitCode);(t=n.querySelector(“div[id^=’google_ads’]”))&&t.style.setProperty(“display”,”none”),function(e){var t=e.querySelector(“script[id^=’sas_script’]”),n=t&&t.nextSibling;n&&”iframe”===n.localName&&n.style.setProperty(“display”,”none”)}(n);var r=e.renderer.getConfig();e.renderer.push(function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:n,align:r.align||”center”,position:r.position||”append”},closeButton:r.closeButton||!1,label:r.label||void 0,collapse:r.collapse||!0})})}function T(e,t){var n=e.params;if(t===l.pX){var r=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?r=[n.video.playerWidth,n.video.playerHeight]:Array.isArray((0,v.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?r=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(r=e.sizes[0]),r}var i=[];return Array.isArray(n.sizes)?i=n.sizes:void 0!==(0,v.Z)(e,”mediaTypes.banner.sizes”)?i=C(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=C(e.sizes):(0,g.yN)(“Rubicon: no sizes are setup or found”),function(e){var t=[15,2,9];return i.sort(function(e,n){var r=t.indexOf(e),i=t.indexOf(n);return r>-1||i>-1?-1===r?1:-1===i?-1:r-i:e-n})}()}function C(e){return(0,g.sF)(e).reduce(function(e,t){var n=parseInt(_[t],10);return n&&e.push(n),e},[])}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(function(e){var t=void 0!==(0,v.Z)(e,”mediaTypes.”.concat(l.pX)),n=void 0!==(0,v.Z)(e,”mediaTypes.”.concat(l.Mk)),r=void 0!==(0,v.Z)(e,”params.bidonmultiformat”),i=”object”!==(0,o.Z)((0,v.Z)(e,”params.video”));return!(!t||!r)||(n&&i&&(t=!1),t&&i&&(0,m.N)(e,”params.video”,{}),t)}(e)){if(-1===[“outstream”,”instream”].indexOf((0,v.Z)(e,”mediaTypes.”.concat(l.pX,”.context”))))return t&&(0,g.H)(“Rubicon: mediaTypes.video.context must be outstream or instream”),n;if(T(e,l.pX).length0)return f.getDataFromLocalStorage(e)}}function h(e,t){return function(n,r){t?y(t,e,function(){n(r()||e)})():n(e)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:””,n=arguments.length>2?arguments[2]:void 0;if(e){var r=(0,o.en)(e);r.search.id=encodeURIComponent(“pubcid:”+t);var i=(0,o.Q2)(r);return function(){(0,o.hq)(i,n)}}}function _(){return!!(f.cookiesAreEnabled()&&b(m,p)||f.hasLocalStorage()&&b(m,g))}var w={name:”sharedId”,aliasName:”pubCommonId”,gvlid:u.$P,decode:function(e,t){if(!_())return(0,o.PN)(” Decoded value PubCommonId “+e),{pubcid:e};(0,o.PN)(“PubCommonId decode: Has opted-out”)},getId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2?arguments[2]:void 0;if(_())(0,o.PN)(“PubCommonId: Has opted-out”);else{if(!s.VP.getCoppa()){var n=e.params,i=(n=void 0===n?{}:n).create,a=void 0===i||i,c=n.pixelUrl,u=t;if(!u){try{“object”===(0,r.Z)(window[v])&&(u=window[v].getId())}catch(e){}u||(u=a&&(0,o.wn)()?(0,o.DO)():void 0)}return{id:u,callback:h(u,c)}}(0,o.PN)(“PubCommonId: IDs not provided for coppa requests, exiting PubCommonId”)}},extendId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2?arguments[2]:void 0;if(_())return(0,o.PN)(“PubCommonId: Has opted-out”),{id:void 0};if(s.VP.getCoppa())(0,o.PN)(“PubCommonId: IDs not provided for coppa requests, exiting PubCommonId”);else{var n=e.params,r=(n=void 0===n?{}:n).extend,i=void 0!==r&&r,a=n.pixelUrl;if(i)return a?{callback:y(a,t)}:{id:t}}},domainOverride:(0,l.U)(f,”sharedId”)};(0,a.Bx)(“userId”,w),(0,i.z)(“sharedIdSystem”)}},function(e){e.O(0,[748],function(){return 4834,e(e.s=4834)}),e.O()}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[29],{6401:function(e,t,n){var r=n(4942),i=n(8640),o=n(4358),a=n(265),s=n(5339),c=n(5164);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=0?n.connection.downlink.toString():””),timeToFirstByte:m(window),data:r,deviceWidth:screen.width,hb_version:”7.54.0″},function(e){var t={unifiedId2:”uid2.id”,liveRampId:”idl_env”,lotamePanoramaId:”lotamePanoramaId”,id5Id:”id5id.uid”,criteoId:”criteoId”,yahooConnectId:”connectId”,quantcastId:”quantcastId”,epsilonPublisherLinkId:”publinkId”,publisherFirstPartyViewerId:”pubcid”,merkleId:”merkleId.id”,kinessoId:”kpuid”},n={};for(var r in t){var i=t[r],o=(0,a.Z)(e,”0.userId.”.concat(i));o&&(n[r]=o)}return n}(e)),function(e){var t=(0,a.Z)(e,”0.userId.teadsId”);if(t)return{firstPartyCookieTeadsId:t};if(f.cookiesAreEnabled(null)){var n=f.getCookie(“_tfpvi”,null);if(n)return{firstPartyCookieTeadsId:n}}return{}}(e)),o=e[0];o.schain&&(i.schain=o.schain);var s=t.gdprConsent;if(t&&s){var c=”boolean”==typeof s.gdprApplies,u=”string”==typeof s.consentString,l=c?function(e,t){var n=12;return e?t&&!t.isServiceSpecific&&(n=11):n=0,n}(s.gdprApplies,s.vendorData):22;i.gdpr_iab={consent:u?s.consentString:””,status:l,apiVersion:s.apiVersion}}t&&t.uspConsent&&(i.us_privacy=t.uspConsent);var p=(0,a.Z)(o,”ortb2.device.sua”);return p&&(i.userAgentClientHints=p),{method:”POST”,url:”https://a.teads.tv/hb/bid-request”,data:JSON.stringify(i)}},interpretResponse:function(e,t){var n=[];return(e=e.body).responses&&e.responses.forEach(function(e){var t={cpm:e.cpm,width:e.width,height:e.height,currency:e.currency,netRevenue:!0,ttl:e.ttl,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]},ad:e.ad,requestId:e.bidId,creativeId:e.creativeId,placementId:e.placementId};e.dealId&&(t.dealId=e.dealId),n.push(t)}),n}};function g(e){var t=””;return e&&e.refererInfo&&e.refererInfo.page&&(t=e.refererInfo.page),t}function m(e){var t=e.performance||e.webkitPerformance||e.msPerformance||e.mozPerformance,n=t&&”function”==typeof t.getEntriesByType&&”[object Function]”===Object.prototype.toString.call(t.getEntriesByType)&&t.getEntriesByType(“navigation”)[0]&&t.getEntriesByType(“navigation”)[0].responseStart&&t.getEntriesByType(“navigation”)[0].requestStart&&t.getEntriesByType(“navigation”)[0].responseStart>0&&t.getEntriesByType(“navigation”)[0].requestStart>0&&Math.round(t.getEntriesByType(“navigation”)[0].responseStart-t.getEntriesByType(“navigation”)[0].requestStart);if(n)return n.toString();var r=t&&t.timing.responseStart&&t.timing.requestStart&&t.timing.responseStart>0&&t.timing.requestStart>0&&t.timing.responseStart-t.timing.requestStart;return r?r.toString():””}function v(e){var t={},n=(0,o.NA)(e.params,”placementId”),r=(0,o.NA)(e.params,”pageId”),i=(0,a.Z)(e,”ortb2Imp.ext.gpid”);return t.sizes=function(e){return(0,o.sF)(function(e){var t=(0,a.Z)(e,”mediaTypes.video.playerSize”),n=(0,a.Z)(e,”mediaTypes.video.sizes”),r=(0,a.Z)(e,”mediaTypes.banner.sizes”);return(0,o.kJ)(r)||(0,o.kJ)(t)||(0,o.kJ)(n)?[r,n,t].reduce(function(e,t){return(0,o.kJ)(t)&&((0,o.kJ)(t[0])?t.forEach(function(t){e.push(t)}):e.push(t)),e},[]):e.sizes}(e))}(e),t.bidId=(0,o.An)(“bidId”,e),t.bidderRequestId=(0,o.An)(“bidderRequestId”,e),t.placementId=parseInt(n,10),t.pageId=parseInt(r,10),t.adUnitCode=(0,o.An)(“adUnitCode”,e),t.transactionId=(0,o.An)(“transactionId”,e),i&&(t.gpid=i),t}function b(e){return parseInt(e)>0}(0,s.dX)(p),(0,i.z)(“teadsBidAdapter”)}},function(e){e(e.s=6401)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[599],{789:function(e,t,n){var r=n(1002),i=n(9062),o=n(4942),a=n(8640),s=n(4358),c=n(4679),u=n(5339),d=n(3193),l=n(5164);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&(o.user={ext:{eids:u}});var d=function(e,t){var n={};return(0,s.xb)(e)||(n.schain=p({},e)),(0,s.xb)(t)||(n.fpd=p({},t)),n}(a,c);return(0,s.xb)(d)||(o.ext=d),null!=t&&null!==(n=t.ortb2)&&void 0!==n&&null!==(r=n.regs)&&void 0!==r&&r.gpp&&(o.regs=Object.assign({},t.ortb2.regs)),o}(e,t);if(n=(0,s.t0)(n,”lib”,”prebid”),n=(0,s.t0)(n,”v”,”7.54.0″),t&&t.refererInfo){var o=t.refererInfo.page;n=(0,s.t0)(n,”referrer”,o)}return t&&t.timeout&&(n=(0,s.t0)(n,”tmax”,t.timeout)),t&&t.gdprConsent&&(m=void 0===t.gdprConsent.gdprApplies||t.gdprConsent.gdprApplies,n=(0,s.t0)(n,”gdpr”,m.toString()),void 0!==t.gdprConsent.consentString&&(v=t.gdprConsent.consentString,n=(0,s.t0)(n,”cmp_cs”,v))),t&&t.uspConsent&&(n=(0,s.t0)(n,”us_privacy”,t.uspConsent)),!0===d.vc.getConfig(“coppa”)&&(n=(0,s.t0)(n,”coppa”,!0)),n.lastIndexOf(“&”)===n.length-1&&(n=n.substring(0,n.length-1)),(0,s.ji)(“tlCall request built: “+n),{method:”POST”,url:n,data:r,bidderRequest:t}},interpretResponse:function(e,t){var n=t.bidderRequest;return(e.body.bids||[]).map(function(e){return function(e,t){var n={},r=t.width||1,i=t.height||1,o=t.deal_id||””,a=t.crid||””,s=e.bids[t.imp_id];return 0!=t.cpm&&t.ad&&(n={requestId:s.bidId,cpm:t.cpm,width:r,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:”USD”,ttl:300,tl_source:t.tl_source,meta:{}},y(s)&&”video”===t.media_type&&(n.vastXml=t.ad,n.mediaType=”video”,n.ttl=3600),t.advertiser_name&&(n.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(n.meta.advertiserDomains=t.adomain),t.tl_source&&”hdx”==t.tl_source&&(y(s)&&”video”===t.media_type?n.meta.mediaType=”video”:n.meta.mediaType=”banner”),t.tl_source&&”tlx”==t.tl_source&&(n.meta.mediaType=”native”),a&&(n.meta.networkId=a.slice(0,a.indexOf(“_”)))),n}(n,e)})},getUserSyncs:function(e,t,n,r){var i=function(e){if(e)return e.iframeEnabled?”iframe”:e.pixelEnabled?”image”:void 0}(e);if(i){var o=”https://eb2.3lift.com/sync?”;return”image”===i&&(o=(0,s.t0)(o,”px”,1),o=(0,s.t0)(o,”src”,”prebid”)),(null!==v||m)&&(o=(0,s.t0)(o,”gdpr”,m),o=(0,s.t0)(o,”cmp_cs”,v)),r&&(o=(0,s.t0)(o,”us_privacy”,r)),[{type:i,url:o}]}}};function y(e){return w(e)&&(_(e)||function(e){return w(e)&&”outstream”===e.mediaTypes.video.context.toLowerCase()}(e))}function _(e){return w(e)&&”instream”===e.mediaTypes.video.context.toLowerCase()}function w(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function I(e){var t=null;if(“function”==typeof e.getFloor)try{var n=e.getFloor({currency:”USD”,mediaType:y(e)?”video”:”banner”,size:”*”});”object”!==(0,r.Z)(n)||”USD”!==n.currency||isNaN(parseFloat(n.floor))||(t=parseFloat(n.floor))}catch(e){(0,s.H)(“Triplelift: getFloor threw an error: “,e)}return null!==t?t:e.params.floor}function O(e,t){(0,s.xb)(t)||Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}function E(e,t,n,r){return e.map(function(e){return function(t){return t&&t.userId&&t.userId[e]}}(t)).filter(T(t)).map(function(e,t){return function(n){return{source:e,uids:[{id:n.id?n.id:n,ext:{rtiPartner:t}}]}}}(n,r))}var T=function(e){return function(t,n,r){var i=!!t&&((0,s.d8)(t)?!!t:(0,s.PO)(t)&&!(0,s.kJ)(t)&&!(0,s.xb)(t)&&t.id&&(0,s.d8)(t.id)&&!!t.id);return i||void 0===r[0]||(0,s.yN)(“Triplelift: invalid “.concat(e,” userId format”)),i}};function C(e){return e.filter(x).map(function(e){return{w:e[0],h:e[1]}})}function x(e){return 2===e.length&&”number”==typeof e[0]&&”number”==typeof e[1]}(0,u.dX)(h),(0,a.z)(“tripleliftBidAdapter”)}},function(e){e(e.s=789)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[158],{3446:function(e,t,n){var r=n(8640),i=n(6475),o=n(4358),a=n(265),s=n(3193),c=n(5339),u=n(4679);function d(e){var t;return{ttdprebid:{ver:”TTD-PREBID-2022.06.28″,pbjs:”7.54.0″,keywords:null!==(t=e.site)&&void 0!==t&&t.keywords?e.site.keywords.split(“,”).map(function(e){return e.trim()}):[]}}}function l(e){var t,n={};return e.gdprConsent&&”boolean”==typeof e.gdprConsent.gdprApplies&&i.N(n,”ext.gdpr”,e.gdprConsent.gdprApplies?1:0),e.uspConsent&&i.N(n,”ext.us_privacy”,e.uspConsent),!0===s.vc.getConfig(“coppa”)&&(n.coppa=1),null!==(t=e.ortb2)&&void 0!==t&&t.regs&&o.Ee(n,e.ortb2.regs),n}function f(e){var t={tid:e[0].auctionId};return e[0].schain&&i.N(t,”ext.schain”,e[0].schain),t}function p(e){var t=navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage,n={ua:navigator.userAgent,dnt:o.oV()?1:0,language:t,connectiontype:g()};return o.Ee(n,e.device),n}function g(){var e=navigator.connection||navigator.webkitConnection;if(!e)return 0;switch(e.type){case”ethernet”:return 1;case”wifi”:return 2;case”cellular”:switch(e.effectiveType){case”slow-2g”:case”2g”:return 4;case”3g”:return 5;case”4g”:return 6;default:return 3}default:return 0}}function m(e,t){var n={};e.gdprConsent&&i.N(n,”ext.consent”,e.gdprConsent.consentString),o.d8(a.Z(e,”bids.0.userId.tdid”))&&(n.buyeruid=e.bids[0].userId.tdid);var r=a.Z(e,”bids.0.userIdAsEids”);return r&&r.length&&i.N(n,”ext.eids”,r),o.Ee(n,t.user),n}function v(e,t){var n=o.Ee({page:a.Z(e,”refererInfo.page”),ref:a.Z(e,”refererInfo.ref”),publisher:{id:a.Z(e,”bids.0.params.publisherId”)}},t.site),r=e.refererInfo.domain;return r&&i.N(n,”publisher.domain”,r),n}var b={code:”ttd”,gvlid:21,aliases:[“thetradedesk”],supportedMediaTypes:[u.Mk,u.pX],isBidRequestValid:function(e){if(!e||!e.params)return o.yN(“ttd: Missing bid parameters”),!1;if(!e.params.supplySourceId)return o.yN(“ttd: Missing required parameter params.supplySourceId”),!1;if(!/^[w+]+$/.test(e.params.supplySourceId))return o.yN(“ttd: supplySourceId must only contain alphabetic characters”),!1;if(!e.params.publisherId)return o.yN(“ttd: Missing required parameter params.publisherId”),!1;if(e.params.publisherId.length>32)return o.yN(“ttd: params.publisherId must be 32 characters or less”),!1;if(e.params.bidfloor&&isNaN(parseFloat(e.params.bidfloor)))return!1;var t=a.Z(e,”ortb2Imp.ext.gpid”);if(!e.params.placementId&&!t)return o.yN(“ttd: one of params.placementId or gpid (via the GPT module https://docs.prebid.org/dev-docs/modules/gpt-pre-auction.html) must be passed”),!1;var n=a.Z(e,”mediaTypes.banner”),r=a.Z(e,”mediaTypes.video”);if(!n&&!r)return o.yN(“ttd: one of mediaTypes.banner or mediaTypes.video must be passed”),!1;if(r){if(!r.maxduration||!o.U(r.maxduration))return o.yN(“ttd: mediaTypes.video.maxduration must be set to the maximum video ad duration in seconds”),!1;if(!r.api||0===r.api.length)return o.yN(“ttd: mediaTypes.video.api should be an array of supported api frameworks. See the Open RTB v2.5 spec for valid values”),!1;if(!r.mimes||0===r.mimes.length)return o.yN(“ttd: mediaTypes.video.mimes should be an array of supported mime types”),!1;if(!r.protocols)return o.yN(“ttd: mediaTypes.video.protocols should be an array of supported protocols. See the Open RTB v2.5 spec for valid values”),!1}return!0},buildRequests:function(e,t){var n=t.ortb2||{},r={id:t.auctionId,imp:e.map(function(e){return function(e){var t={id:e.bidId},n=a.Z(e,”ortb2Imp.ext.gpid”)||e.params.placementId;n&&(t.tagid=n);var r=a.Z(e,”mediaTypes.video”),i={};a.Z(e,”mediaTypes.banner”)&&(i[u.Mk]=function(e){var t=function(e){return o.sF(e).filter(function(e){return e}).map(function(e){return e.split(“x”)}).map(function(e){return{width:parseInt(e[0]),height:parseInt(e[1])}})}(e.mediaTypes.banner.sizes).map(function(e){return{w:e.width,h:e.height}}),n=parseInt(a.Z(e,”mediaTypes.banner.pos”)),r=a.Z(e,”params.banner.expdir”),i={};n&&(i.pos=n),r&&Array.isArray(r)&&(i.expdir=r);var s=Object.assign({w:t[0].w,h:t[0].h,format:t},i),c=a.Z(e,”ortb2Imp.battr”);return c&&(s.battr=c),s}(e)),r&&(i[u.pX]=function(e){var t=a.Z(e,”mediaTypes.video.minduration”),n=a.Z(e,”mediaTypes.video.maxduration”),r=a.Z(e,”mediaTypes.video.playerSize”),i=a.Z(e,”mediaTypes.video.api”),s=a.Z(e,”mediaTypes.video.mimes”),c=a.Z(e,”mediaTypes.video.placement”),u=a.Z(e,”mediaTypes.video.plcmt”),d=a.Z(e,”mediaTypes.video.protocols”),l=a.Z(e,”mediaTypes.video.playbackmethod”),f=a.Z(e,”mediaTypes.video.pos”),p=a.Z(e,”mediaTypes.video.startdelay”),g=a.Z(e,”mediaTypes.video.skip”),m=a.Z(e,”mediaTypes.video.skipmin”),v=a.Z(e,”mediaTypes.video.skipafter”),b=a.Z(e,”mediaTypes.video.minbitrate”),h=a.Z(e,”mediaTypes.video.maxbitrate”);t&&o.U(t)||(t=0);var y={minduration:t,maxduration:n,api:i,mimes:s,placement:c,protocols:d};void 0!==r&&(o.kJ(r[0])?(y.w=parseInt(r[0][0]),y.h=parseInt(r[0][1])):o.hj(r[0])&&(y.w=parseInt(r[0]),y.h=parseInt(r[1]))),l&&(y.playbackmethod=l),u&&(y.plcmt=u),f&&(y.pos=f),p&&o.U(p)&&(y.startdelay=p),!g||0!==g&&1!==g||(y.skip=g),m&&o.U(m)&&(y.skipmin=m),v&&o.U(v)&&(y.skipafter=v),b&&o.U(b)&&(y.minbitrate=b),h&&o.U(h)&&(y.maxbitrate=h);var _=a.Z(e,”ortb2Imp.battr”);return _&&(y.battr=_),y}(e)),Object.assign(t,i);var s=function(e){if(e.params.bidfloor)return e.params.bidfloor;if(!o.LQ(e.getFloor))return null;var t=e.getFloor({currency:”USD”,mediaType:”*”,size:”*”});return o.PO(t)&&!isNaN(t.floor)&&”USD”===t.currency?t.floor:null}(e);s&&(t.bidfloor=parseFloat(s),t.bidfloorcur=”USD”);var c=a.Z(e,”ortb2Imp.secure”);return t.secure=(0,o.hj)(c)?c:1,o.Ee(t,e.ortb2Imp),t}(e)}),site:v(t,n),device:p(n),user:m(t,n),at:1,cur:[“USD”],regs:l(t),source:f(e),ext:d(n)};return n&&n.bcat&&(r.bcat=n.bcat),n&&n.badv&&(r.badv=n.badv),n&&n.app&&(r.app=n.app),n&&n.pmp&&(r.pmp=n.pmp),{method:”POST”,url:”https://direct.adsrvr.org/bid/bidder/”+t.bids[0].params.supplySourceId,data:r,options:{withCredentials:!0}}},interpretResponse:function(e,t){var n=a.Z(e,”body.seatbid”),r=a.Z(e,”body.cur”);if(!n||0===n.length)return[];var i=[],s=a.Z(t,”data.imp”);return n.forEach(function(e){e.bid.forEach(function(e){var t=s.find(function(t){return t.id===e.impid}),n=e.price||0,a={requestId:e.impid,cpm:n,creativeId:e.crid,dealId:e.dealid||null,currency:r||”USD”,netRevenue:!0,ttl:e.ttl||360,meta:{}};e.adomain&&e.adomain.length>0&&(a.meta.advertiserDomains=e.adomain),1===e.ext.mediatype?Object.assign(a,{width:e.w,height:e.h,ad:o.ew(e.adm,n),mediaType:u.Mk}):2===e.ext.mediatype&&(Object.assign(a,{width:t.video.w,height:t.video.h,mediaType:u.pX}),e.nurl?a.vastUrl=o.ew(e.nurl,n):a.vastXml=o.ew(e.adm,n)),i.push(a)})}),i},getUserSyncs:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:””,i=[],o=”&gdpr=”.concat(n.gdprApplies?1:0,”&gdpr_consent=”).concat(encodeURIComponent(n.consentString)),a=””.concat(“https://match.adsrvr.org”,”/track/usersync?us_privacy=”).concat(encodeURIComponent(r)).concat(o);return e.pixelEnabled?i.push({type:”image”,url:a+”&ust=image”}):e.iframeEnabled&&i.push({type:”iframe”,url:a+”&ust=iframe”}),i}};(0,c.dX)(b),(0,r.z)(“ttdBidAdapter”)}},function(e){e(e.s=3446)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[215],{2722:function(e,t,n){var r=n(1002),i=n(8640),o=n(4614),a=n(3193),s=n(2021),c=n(1039),u=n(5644),d=n(2797),l=n(4358),f=n(265),p={growthCodeId:{getValue:function(e){return e.gc_id},source:”growthcode.io”,atype:1,getUidExt:function(e){var t=(0,l.ei)(e,[“h1″,”h2″,”h3″]);if(Object.keys(t).length)return t}},trustpid:{source:”trustpid.com”,atype:1,getValue:function(e){return e}},intentIqId:{source:”intentiq.com”,atype:1},naveggId:{source:”navegg.com”,atype:1},pairId:{source:”google.com”,atype:571187},justId:{source:”justtag.com”,atype:1},pubcid:{source:”pubcid.org”,atype:1},tdid:{source:”adserver.org”,atype:1,getUidExt:function(){return{rtiPartner:”TDID”}}},id5id:{getValue:function(e){return e.uid},source:”id5-sync.com”,atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:”flashtalking.com”,atype:1,getValue:function(e){var t=””;return e&&e.ext&&e.ext.DeviceID&&(t=e.ext.DeviceID),t},getUidExt:function(e){return e&&e.ext}},parrableId:{source:”parrable.com”,atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?””:null},getUidExt:function(e){var t=(0,l.ei)(e,[“ibaOptout”,”ccpaOptout”]);if(Object.keys(t).length)return t}},idl_env:{source:”liveramp.com”,atype:3},lipb:{getValue:function(e){return e.lipbid},source:”liveintent.com”,atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},bidswitch:{source:”bidswitch.net”,atype:3,getValue:function(e){return e.id}},medianet:{source:”media.net”,atype:3,getValue:function(e){return e.id}},britepoolid:{source:”britepool.com”,atype:3},dmdId:{source:”hcn.health”,atype:3},lotamePanoramaId:{source:”crwdcntrl.net”,atype:1},criteoId:{source:”criteo.com”,atype:1},merkleId:{atype:3,getSource:function(e){var t;return null!=e&&null!==(t=e.ext)&&void 0!==t&&t.ssp?””.concat(e.ext.ssp,”.merkleinc.com”):”merkleinc.com”},getValue:function(e){return e.id},getUidExt:function(e){return e.keyID?{keyID:e.keyID}:e.ext?e.ext:void 0}},netId:{source:”netid.de”,atype:1},IDP:{source:”zeotap.com”,atype:1},hadronId:{source:”audigent.com”,atype:1},quantcastId:{source:”quantcast.com”,atype:1},idx:{source:”idx.lat”,atype:1},connectid:{source:”verizonmedia.com”,atype:3},fabrickId:{source:”neustar.biz”,atype:1},mwOpenLinkId:{source:”mediawallahscript.com”,atype:1},tapadId:{source:”tapad.com”,atype:1},novatiq:{getValue:function(e){return void 0===e.snowflake.id?e.snowflake:e.snowflake.id},source:”novatiq.com”},uid2:{source:”uidapi.com”,atype:3,getValue:function(e){return e.id}},euid:{source:”euid.eu”,atype:3,getValue:function(e){return e.id}},deepintentId:{source:”deepintent.com”,atype:3},admixerId:{source:”admixer.net”,atype:3},adtelligentId:{source:”adtelligent.com”,atype:3},amxId:{source:”amxdt.net”,atype:1},publinkId:{source:”epsilon.com”,atype:3},kpuid:{source:”kpuid.com”,atype:3},imppid:{source:”ppid.intimatemerger.com”,atype:1},imuid:{source:”intimatemerger.com”,atype:1},connectId:{source:”yahoo.com”,atype:3},qid:{source:”adquery.io”,atype:1},dacId:{source:”impact-ad.jp”,atype:1},”33acrossId”:{source:”33across.com”,atype:1,getValue:function(e){return e.envelope}},tncid:{source:”thenewco.it”,atype:3},gravitompId:{source:”gravito.net”,atype:1},czechAdId:{source:”czechadid.cz”,atype:1},oneKeyData:{getValue:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0])return e.identifiers[0].value},source:”paf”,atype:1,getEidExt:function(e){if(e&&e.preferences)return{preferences:e.preferences}},getUidExt:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0]){var t=e.identifiers[0];return{version:t.version,type:t.type,source:t.source}}}}};function g(e,t){var n=p[t];if(n&&e){var r={};r.source=(0,l.LQ)(n.getSource)?n.getSource(e):n.source;var i=(0,l.LQ)(n.getValue)?n.getValue(e):e;if((0,l.d8)(i)){var o={id:i,atype:n.atype};if((0,l.LQ)(n.getUidExt)){var a=n.getUidExt(e);a&&(o.ext=a)}if(r.uids=[o],(0,l.LQ)(n.getEidExt)){var s=n.getEidExt(e);s&&(r.ext=s)}return r}}return null}function m(e){var t=[],n=function(n){if(e.hasOwnProperty(n))if(“pubProvidedId”===n)t=t.concat(e.pubProvidedId);else if(Array.isArray(e[n]))e[n].forEach(function(e,r,i){var o=g(e,n);o&&t.push(o)});else{var r=g(e[n],n);r&&t.push(r)}};for(var r in e)n(r);return t}var v,b,h,y,_,w,I=n(5164),O=n(6475),E=(0,d.z3)(“sync”,function(){}),T=n(8792),C=n(7673),x=n(6372),S=n(9128),P=n(8196),k=n(2513),A=n(9633),j=n(571),D=n(4947),R=n(286),B=”User ID”,U=I.c$,N=I.Dp,Z=”_pbjs_userid_consent_data”,q=30,M=”_pbjs_id_optout”,F=(0,I.eA)(“userId”),z={isAllowed:j.xD},L=!1,H=[],W=[],K=[],V=function(){return null==w&&(w=(0,S.V6)()),w};function G(e){return V().fork().renameWith(function(t){return[“userId.mod.”.concat(t),”userId.mods.”.concat(e,”.”).concat(t)]})}function X(e,t){t=t||e.storageMgr;var n=”function”==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,r=e.config.storage.name;return function(e,i,o){t.setCookie(r+(e||””),i,o,”Lax”,n)}}function J(e,t){var n=e.config.storage,r=e.storageMgr;try{var i=new Date(Date.now()+864e5*n.expires).toUTCString(),o=(0,l.PO)(t)?JSON.stringify(t):t;if(n.type===U){var a=X(e);a(null,o,i),”number”==typeof n.refreshInSeconds&&a(“_last”,(new Date).toUTCString(),i)}else n.type===N&&(r.setDataInLocalStorage(“”.concat(n.name,”_exp”),i),r.setDataInLocalStorage(n.name,encodeURIComponent(o)),”number”==typeof n.refreshInSeconds&&r.setDataInLocalStorage(“”.concat(n.name,”_last”),(new Date).toUTCString()))}catch(e){(0,l.H)(e)}}function Q(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=e.storageMgr,i=e.config.storage,o=n?””.concat(i.name,”_”).concat(n):i.name;try{if(i.type===U)t=r.getCookie(o);else if(i.type===N){var a=r.getDataFromLocalStorage(“”.concat(i.name,”_exp”));””===a?t=r.getDataFromLocalStorage(o):a&&new Date(a).getTime()-Date.now()>0&&(t=decodeURIComponent(r.getDataFromLocalStorage(o)))}”string”==typeof t&&”{“===t.trim().charAt(0)&&(t=JSON.parse(t))}catch(e){(0,l.H)(e)}return t}function Y(e){var t={consentString:””,gdprApplies:!1,apiVersion:0};return e&&(t.consentString=e.consentString,t.gdprApplies=e.gdprApplies,t.apiVersion=e.apiVersion),(0,l._R)(JSON.stringify(t))}function $(e,t){t=V().fork().startTiming(“userId.callbacks.total”).stopBefore(t);var n=(0,l.yx)(function(){clearTimeout(void 0),t()},e.length);e.forEach(function(e){var t=G(e.submodule.name).startTiming(“callback”).stopBefore(n);try{e.callback(function(n){n?(e.config.storage&&J(e,n),e.idObj=e.submodule.decode(n,e.config),ge(e.idObj)):(0,l.PN)(“”.concat(B,”: “).concat(e.submodule.name,” – request id responded with an empty value”)),t()},Q.bind(null,e))}catch(n){(0,l.H)(“Error in userID module ‘”.concat(e.submodule.name,”‘:”),n),t()}e.callback=void 0})}function ee(e,t){[e].some(function(e){return!Array.isArray(e)||!e.length})||e.forEach(function(e){e.bids&&(0,l.kJ)(e.bids)&&e.bids.forEach(function(e){var n=function(e,t){return Array.isArray(e)&&e.length&&t?e.filter(function(e){return!e.config.bidders||!(0,l.kJ)(e.config.bidders)||(0,o.q9)(e.config.bidders,t)}).filter(function(e){return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length}).reduce(function(e,t){return Object.keys(t.idObj).forEach(function(n){e[n]=t.idObj[n]}),e},{}):{}}(t,e.bidder);Object.keys(n).length&&(e.userId=n,e.userIdAsEids=m(n))})})}var te,ne={};function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae()||[],t=y&&e.find(function(e){return e.source===y});if(t&&”string”==typeof(0,f.Z)(t,”uids.0.id”)){var n=t.uids[0].id.replace(/[W_]/g,””);if(n.length>=32&&n.length2&&void 0!==arguments[2]?arguments[2]:{},o=r.delay,a=void 0===o?T.Z.timeout:o,s=r.getIds,c=void 0===s?fe:s;T.Z.race([c().catch(function(){return null}),a(h)]).then(function(){ee(t.adUnits||(0,i.R)().adUnits,v),V().join((0,S.Bf)(t.metrics),{propagate:!1,includeGroups:!0}),e.call(n,t)})});function oe(){return e=v,Array.isArray(e)&&e.length?e.filter(function(e){return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length}).reduce(function(e,t){return Object.keys(t.idObj).forEach(function(n){e[n]=t.idObj[n]}),e},{}):{};var e}function ae(){return m(oe())}function se(e){return m(function(e,t){if(!Array.isArray(e)||!e.length)return{};var n=e.filter(function(e){var n;return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length&&(null===(n=p[Object.keys(e.idObj)[0]])||void 0===n?void 0:n.source)===t});return(0,l.xb)(n)?[]:n[0].idObj}(v,e))[0]}function ce(e,t,n){return te().then(function(){var r={};if((0,l.LQ)(n)){(0,l.PN)(“”.concat(B,” – Getting encrypted signal from custom function : “).concat(n.name,” & source : “).concat(e,” “));var i=n(e);r[e]=i?ue(i):null}else{var o=se(e);(0,l.PN)(“”.concat(B,” – Getting encrypted signal for eids :”).concat(JSON.stringify(o))),(0,l.xb)(o)||(r[o.source]=!0===t?ue(o):o.uids[0].id)}return(0,l.PN)(“”.concat(B,” – Fetching encrypted eids: “).concat(r[e])),r[e]})}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=””;return 1===t&&(n=”object”===(0,r.Z)(e)?window.btoa(JSON.stringify(e)):window.btoa(e)),””.concat(t,”||”).concat(n)}function de(){if((0,l.T9)()){window.googletag.encryptedSignalProviders=window.googletag.encryptedSignalProviders||[];var e=a.vc.getConfig(“userSync.encryptedSignalSources”);if(e){var t=e.registerDelay||0;setTimeout(function(){e.sources&&e.sources.forEach(function(e){var t=e.source,n=e.encrypt,r=e.customFunc;t.forEach(function(e){window.googletag.encryptedSignalProviders.push({id:e,collectorFunction:function(){return ce(e,n,r)}})})})},t)}else(0,l.yN)(“”.concat(B,” – ESP : encryptedSignalSources config not defined under userSync Object”))}}function le(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).submoduleNames,t=arguments.length>1?arguments[1]:void 0;return te({refresh:!0,submoduleNames:e}).then(function(){return t&&(0,l.LQ)(t)&&t(),oe()})}function fe(){return te().then(function(){return oe()},function(e){return e===ne?Promise.resolve().then(fe):((0,l.H)(“Error initializing userId”,e),T.Z.reject(e))})}var pe=(0,d.z3)(“sync”,function(e,t){return{userIdModules:e,hasValidated:t&&t.hasValidated}},”validateGdprEnforcement”);function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();if(e&&y){var t=re(m(e));t&&((0,l.T9)()?window.googletag.pubads().setPublisherProvidedId(t):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(function(){window.googletag.pubads().setPublisherProvidedId(t)})))}}function me(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return V().fork().measureTime(“userId.init.modules”,function(){if(!t.length)return[];if(!(t=t.filter(function(e){return(!e.config.storage||function(e){var t,n;switch(null===(t=e.config)||void 0===t||null===(n=t.storage)||void 0===n?void 0:n.type){case N:if(e.storageMgr.localStorageIsEnabled())return!F.getDataFromLocalStorage(M)||((0,l.PN)(“”.concat(B,” – opt-out localStorage found, storage disabled”)),!1);break;case U:if(e.storageMgr.cookiesAreEnabled())return!F.getCookie(M)||((0,l.PN)(“”.concat(B,” – opt-out cookie found, storage disabled”)),!1)}return!1}(e))&&z.isAllowed(D.EL,(0,R.T)(A.y2,e.config.name))})).length)return(0,l.yN)(“”.concat(B,” – no ID module configured”)),[];var i=pe(t,n),o=i.userIdModules;if(!i.hasValidated&&!(0,C.h)(n))return(0,l.yN)(“”.concat(B,” – gdpr permission not valid for local storage or cookies, exit module”)),[];var a=function(){try{return F.getCookie(Z)}catch(e){(0,l.H)(e)}}();!function(e){try{var t=new Date(Date.now()+864e5*q).toUTCString();F.setCookie(Z,Y(e),t,”Lax”)}catch(e){(0,l.H)(e)}}(n);var s=o.reduce(function(e,t){return G(t.submodule.name).measureTime(“init”,function(){try{(function(e,t,n,r){if(e.config.storage){var i,o=Q(e),a=!1;if(“number”==typeof e.config.storage.refreshInSeconds){var s=new Date(Q(e,”last”));a=s&&Date.now()-s.getTime()>1e3*e.config.storage.refreshInSeconds}!o||a||r||!function(e,t){return null!=n&&n===Y(t)}(0,t)?i=e.submodule.getId(e.config,t,o):”function”==typeof e.submodule.extendId&&(i=e.submodule.extendId(e.config,t,o)),(0,l.PO)(i)&&(i.id&&(J(e,i.id),o=i.id),”function”==typeof i.callback&&(e.callback=i.callback)),o&&(e.idObj=e.submodule.decode(o,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var c=e.submodule.getId(e.config,t,void 0);(0,l.PO)(c)&&(“function”==typeof c.callback&&(e.callback=c.callback),c.id&&(e.idObj=e.submodule.decode(c.id,e.config)))}ge(e.idObj)})(t,n,a,r),e.push(t)}catch(e){(0,l.H)(“Error in userID module ‘”.concat(t.submodule.name,”‘:”),e)}return e})},[]);return s.length&&function(e){var t=(0,l.EE)().setEidPermissions;”function”==typeof t&&(0,l.kJ)(e)&&t(function(e){var t=[];return e.filter(function(e){return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length}).forEach(function(e){Object.keys(e.idObj).forEach(function(n){(0,f.Z)(e,”config.bidders”)&&Array.isArray(e.config.bidders)&&(0,f.Z)(p,n+”.source”)&&t.push({source:p[n].source,bidders:e.config.bidders})})}),t}(e))}(s),s.forEach(function(e,t){for(var n=!1,r=0;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{}).delay,n=void 0===t?T.Z.timeout:t;y=void 0,H=[],W=[],L=!1,v=[],te=function(){var e,t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).delay,r=void 0===n?T.Z.timeout:n,i=(0,T.P)(),o=(0,T.P)(),a=!1;function f(n){return t=V().fork(),null!=e&&e.reject(ne),e=(0,T.P)(),T.Z.race([n,e.promise]).finally(t.startTiming(“userId.total”))}var p=v,g=H;function m(e){return function(){if(p===v&&g===H)return e.apply(void 0,arguments)}}function y(){return c.rp.promise.finally(t.startTiming(“userId.init.gdpr”))}var _=f(T.Z.all([d.Cd,i.promise]).then(y).then(m(function(e){me(p,g,e)})).then(function(){return o.promise.finally(t.startTiming(“userId.callbacks.pending”))}).then(m(function(){var e=p.filter(function(e){return(0,l.LQ)(e.callback)});if(e.length)return new T.Z(function(t){return $(e,t)})})));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refresh,n=void 0!==t&&t,c=e.submoduleNames,d=void 0===c?null:c,l=e.ready;return void 0!==l&&l&&!a&&(a=!0,i.resolve(),h>0?o.resolve():s.on(u.FP.AUCTION_END,function e(){s.S1(u.FP.AUCTION_END,e),r(b).then(o.resolve)})),n&&a&&(_=f(_.catch(function(){return null}).then(y).then(m(function(e){var t=me(p,g.filter(function(e){return null==d||d.includes(e.submodule.name)}),e,!0).filter(function(e){return null!=e.callback});if(t.length)return new T.Z(function(e){return $(t,e)})})))),_}}({delay:n}),null!=_&&_(),K=[],_=e.getConfig(“userSync”,function(e){var t=e.userSync;y=t.ppid,t&&t.userIds&&(W=t.userIds,b=(0,l.hj)(t.syncDelay)?t.syncDelay:500,h=(0,l.hj)(t.auctionDelay)?t.auctionDelay:0,be(),te({ready:!0}))}),(0,i.R)().getUserIds=oe,(0,i.R)().getUserIdsAsEids=ae,(0,i.R)().getEncryptedEidsForSource=ye(ce),(0,i.R)().registerSignalSources=de,(0,i.R)().refreshUserIds=ye(le),(0,i.R)().getUserIdsAsync=ye(fe),(0,i.R)().getUserIdsAsEidBySource=se}(a.vc),(0,d.bA)(“userId”,function(e){(0,o.sE)(K,function(t){return t.name===e.name})||(K.push(e),k.qh.register(A.y2,e.name,e.gvlid),be(),te({refresh:!0,submoduleNames:[e.name]}))}),(0,x.f8)({type:x.Z,name:”userExtEids”,fn:function(e,t,n){var r=(0,f.Z)(n,”bidRequests.0.userIdAsEids”);r&&Object.keys(r).length>0&&(0,O.N)(e,”user.ext.eids”,r)}}),(0,i.z)(“userId”)},6372:function(e,t,n){n.d(t,{DZ:function(){return s},Px:function(){return c},TP:function(){return d},YC:function(){return u},Z:function(){return a},f8:function(){return g},fP:function(){return m},gm:function(){return i},md:function(){return l}});var r,i=[“request”,”imp”,”bidResponse”,”response”],o=[“default”,”pbs”],a=i[0],s=i[1],c=i[2],u=i[3],d=o[0],l=o[1],f=new Set(i),p=(r={},{registerOrtbProcessor:function(e){var t=e.type,n=e.name,o=e.fn,a=e.priority,s=void 0===a?0:a,c=e.dialects,u=void 0===c?[d]:c;if(!f.has(t))throw new Error(“ORTB processor type must be one of: “.concat(i.join(“, “)));u.forEach(function(e){r.hasOwnProperty(e)||(r[e]={}),r[e].hasOwnProperty(t)||(r[e][t]={}),r[e][t][n]={priority:s,fn:o}})},getProcessors:function(e){return r[e]||{}}}),g=p.registerOrtbProcessor,m=p.getProcessors},7673:function(e,t,n){n.d(t,{h:function(){return i}});var r=n(265);function i(e){return null==e||!e.gdprApplies||!0===(0,r.Z)(e,”vendorData.purpose.consents.1”)}}},function(e){e(e.s=2722)}])})(),pbjs.processQueue(); }, {}]; window.modules[“slatead.legacy”] = [function(require,module,exports){“use strict”;var isMember=require(3).isMemberSkipLookup(),_require=require(117),allowedTypes=_require.allowedTypes,sticky=require(118),googletag=googletag||{};googletag.cmd=googletag.cmd||[],DS.controller(“slate-ad”,[“adService”,”$visibility”,”headerBidding”,function(e,i,t){return function(o){var r=e.createAd(o);isMember&&function(e){return”mob-adhesion”===e.type||[“mid-article-spot-mobile-2″,”mid-article-spot-mobile-4″,”mid-article-spot-tablet-2″,”mid-article-spot-tablet-4″,”mid-article-spot-2″,”mid-article-spot-4″,”mid-article-spot-xl-2″,”mid-article-spot-xl-4”].includes(e.id)}(r)?o.parentElement.setAttribute(“hidden”,””):function(e){return”leaderboard-tablet-1″===e.id||”leaderboard-1″===e.id||”leaderboard-mobile-1″===e.id}(r)?(isMember||sticky.enableStickyLeaderboard(),function(o,r){if(i.isElementNotHidden(r))if(i.isElementInViewport(r))window.googletag.cmd.push(function(){allowedTypes[o.type]?t.prebid(o,!1):e.requestAd(o)});else{var d=new i.Visible(r);d.on(“shown”,function(){window.googletag.cmd.push(function(){allowedTypes[o.type]?t.prebid(o,!1):e.requestAd(o)})})}}(r,o)):function(){var e=document.querySelector(“.homepage-sponsorship”);if(o=!1,e)var i=e.getAttribute(“data-sponsorship-start”),t=(new Date).getTime(),o=t>i&&t-i<864e5;return o}()||function(e){return"podcast-headline"===e.type}(r)?function(t,o){i.isElementNotHidden(o)&&window.googletag.cmd.push(function(){e.requestAd(t)})}(r,o):function(o,r){new i.Visible(r,{preloadThreshhold:o.threshold}).on("preload",function(){i.isElementNotHidden(r)&&(allowedTypes[o.type]?t.prebid(o,!1):window.googletag.cmd.push(function(){e.requestAd(o)}))})}(r,o)}}]); }, {"3":3,"117":117,"118":118}]; window.modules["visibility.legacy"] = [function(require,module,exports){"use strict";DS.service("$visibility",["$document","_throttle","Eventify",function(e,t,n){var i,o,r=[];function h(e,t){return et?e:t}function l(e,t,n){!e.preload&&e.preloadThreshhold&&function(e,t,n,i){return t.top=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger(“shown”,new o(“shown”,t))},15)):(!n||i1&&(h+=e(r,Math.floor(n/o),i-1,o)),h},this.getVerticallyVisiblePixels=u,this.getViewportHeight=function(){return window.innerHeight||e.documentElement.clientHeight||e.body.clientHeight},this.getViewportWidth=function(){return window.innerWidth||e.documentElement.clientWidth||e.body.clientWidth},this.isElementNotHidden=c,this.isElementInViewport=function(t){var n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||e.documentElement.clientHeight)&&n.right arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function mountLegacyServices() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.legacy$/); }).forEach(function (key) { return window.require(key); }); } function tryToMount(fn, el, name) { try { fn(el); // init the controller } catch (e) { var elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML)); console.error("Error initializing controller for "".concat(name, "" on "").concat(elementTag, """), e); } } /** * mount client.js component controllers */ function mountComponentModules() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.client$/); }).forEach(function (key) { var controllerFn = window.require(key); if (typeof controllerFn === 'function') { var name = key.replace('.client', ''), instancesSelector = "[data-uri*="_components/".concat(name, "/"]"), defaultSelector = "[data-uri$="_components".concat(name, ""]"), instances = document.querySelectorAll(instancesSelector), defaults = document.querySelectorAll(defaultSelector); var _iterator = _createForOfIteratorHelper(instances), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var el = _step.value; tryToMount(controllerFn, el, name); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var _iterator2 = _createForOfIteratorHelper(defaults), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var _el = _step2.value; tryToMount(controllerFn, _el, name); } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } } }); } // Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies, // services, or components that could require it // note: the “ value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js window.process = window.process || {}; window.process.env = window.process.env || {}; if (!window.process.env.NODE_ENV) { window.process.env.NODE_ENV = ''; } // note: legacy controllers that require legacy services (e.g. dollar-slice) must // wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first mountLegacyServices(); mountComponentModules(); // ]]

Leave a Reply