[] { window.prebidData.slotMap[slotKey].push({ ‘bidder’: ‘optimera’, ‘params’: { ‘clientID’: clientID, ‘device’: (window.innerWidth || document.documentElement.clientWidth) >= 768 ? ‘de’ : ‘mo’, } }); }); ]]> LCCC 9/11 Remembrance Ceremony | Eyewitness News 2&&void 0!==arguments[2]&&arguments[2];i(this,e),this.apstagSlots=[],this.prebidSlots=[],this.prebidData={analytics:[],priceGranularity:{},sizeConfig:[],slotMap:{},userSync:{}},this.googletag=t,this.isApsEnabled=o,this.isPrebidJSEnabled=a,this.setUpSlot=this.setUpSlot.bind(this),this.refreshSlots=this.refreshSlots.bind(this),this.isPrebidJSEnabled&&(window.pbjs=window.pbjs||{},window.pbjs.que=pbjs.que||[],window.prebidData&&(this.prebidData=window.prebidData,window.NXSTdata&&window.NXSTdata.content&&window.NXSTdata.content.pageDcode&&this.prebidData.slotMap&&Object.keys(this.prebidData.slotMap).forEach((function(e){n.prebidData.slotMap[e].filter((function(e){return”rubicon”===e.bidder})).forEach((function(e){e.params.inventory={d_code:window.NXSTdata.content.pageDcode}}))}))),window.pbjs.que.push((function(){window.pbjs.setConfig({sizeConfig:n.prebidData.sizeConfig,priceGranularity:n.prebidData.priceGranularity,userSync:n.prebidData.userSync,targetingControls:{allowTargetingKeys:[“BIDDER”,”AD_ID”,”PRICE_BUCKET”,”DEAL”]}}),n.prebidData.analytics.length&&window.pbjs.enableAnalytics(n.prebidData.analytics)})))}var t,n,a;return t=e,a=[{key:”apstag”,value:function(){return window.apstag||null}}],(n=[{key:”setUpSlot”,value:function(e,t,n,i,o){var a=this;this.pushCmd((function(){var n=null;if((n=t.is_oop?a.googletag.defineOutOfPageSlot(i,e):a.googletag.defineSlot(i,t.size,e))&&(o&&Object.keys(o).forEach((function(e){n.setTargeting(e,o[e])})),t.sizes.length&&n.defineSizeMapping(t.sizes),t.is_companion&&n.addService(a.googletag.companionAds()),n.addService(a.googletag.pubads())),n){var r=[];if(n.getSizes?r=n.getSizes(window.innerWidth,window.innerHeight).map((function(e){return[e.getWidth(),e.getHeight()]})):t.sizes.length&&(r=Object.values(t.sizes.reduce((function(e,t){var n=e;return t[1].forEach((function(e){n[e.join(“,”)]=e})),n}),{}))),r.length&&(r=r.filter((function(e){return!(88===e[0]&&31===e[1])}))),r.length){var s=o&&o.pos,d=[n.getAdUnitPath().split(“/”).slice(0,3).join(“/”),s].join(“/”);if(a.apstagSlots.push({sizes:r,slotID:n.getSlotElementId(),slotName:d}),a.isPrebidJSEnabled){var l=a.getPrebidBidsForSlot(s);s&&l.length&&a.prebidSlots.push({code:n.getSlotElementId(),mediaTypes:{banner:{sizes:r}},bids:l})}}}}))}},{key:”getPrebidBidsForSlot”,value:function(e){return e&&this.prebidData.slotMap&&this.prebidData.slotMap[e]?this.prebidData.slotMap[e]:[]}},{key:”initVisibleSlots”,value:function(){var e=this;this.pushCmd((function(){e.googletag.pubads().getSlots().forEach((function(t){e.pushCmd((function(){e.googletag.display(t.getSlotElementId())}))}))})),this.refreshSlots()}},{key:”refreshSlots”,value:function(){var e=this;this.pushCmd((function(){e.initPrebidRequest((function(){e.googletag.pubads().refresh()}))}))}},{key:”initPrebidRequest”,value:function(e){this.isPrebidJSEnabled?this.isApsEnabled?this.fetchHeaderBids(this.apstagSlots,this.prebidSlots,2e3,e):this.fetchHeaderBids([],this.prebidSlots,2e3,e):this.isApsEnabled?this.fetchHeaderBids(this.apstagSlots,[],2e3,e):this.pushCmd(e)}},{key:”fetchHeaderBids”,value:function(e,t,n,i){var o=this,a=this.constructor.apstag(),r=[],s=this.isApsEnabled&&e.length;s&&r.push(“a9”),t.length&&r.push(“prebid”);var d={adserverRequestSent:!1};r.forEach((function(e){d[e]=!1}));var l=function(){!0!==d.adserverRequestSent&&(d.adserverRequestSent=!0,d.sendAdserverRequest=!0,o.googletag.cmd.push((function(){s&&a.setDisplayBids(),o.isPrebidJSEnabled&&”function”==typeof window.pbjs.setTargetingForGPTAsync&&window.pbjs.setTargetingForGPTAsync(),i()})))},c=function(e){!0!==d.adserverRequestSent&&(“a9″===e?d.a9=!0:”prebid”===e&&(d.prebid=!0),r.map((function(e){return d[e]})).filter(Boolean).length===r.length&&l())};s&&a.fetchBids({slots:e,timeout:n},(function(){c(“a9”)})),o.isPrebidJSEnabled&&window.pbjs.que.push((function(){var e=t.map((function(e){return e.code}));window.pbjs.addAdUnits(t),window.pbjs.requestBids({adUnitCodes:e,bidsBackHandler:function(){c(“prebid”)}})})),window.setTimeout((function(){l()}),n)}},{key:”pushCmd”,value:function(e){this.googletag.cmd.push(e)}}])&&o(t.prototype,n),a&&o(t,a),e}(),r=n(25);function s(e){if(window&&window.sessionStorage)return window.sessionStorage.getItem(e)}function d(e,t){if(window&&window.sessionStorage)try{window.sessionStorage.setItem(e,t)}catch(e){}}var l=n(5),c=n(17),u=window.amScripts,g=u.page_attributes,p=u.gpt;Object(r.a)(),googletag.cmd.push((function(){googletag.pubads().enableSingleRequest(),googletag.pubads().enableAsyncRendering(),googletag.pubads().collapseEmptyDivs(),googletag.companionAds().setRefreshUnfilledSlots(!0),googletag.pubads().disableInitialLoad(),googletag.pubads().enableVideoAds(),c.a&&googletag.pubads().setPublisherProvidedId(c.a),googletag.enableServices()})),googletag.cmd.push((function(){var e=googletag.pubads(),t=p.ab_test;g.article_id&&e.setTargeting(“pid”,String(g.article_id)),g.page_type&&e.setTargeting(“pagetype”,g.page_type);var n,i,o,a=(n=t.min,i=t.max,o=Math.ceil(n),Math.floor(Math.random()*(Math.floor(i)-o))+o);e.setTargeting(“pagetest”,String(a));var r=encodeURIComponent(window.location.search).substring(3).replace(“%26″,”&”).replace(“%3D”,”=”),c=new URLSearchParams(r);c.has(“page_key”)&&e.setTargeting(“page_key”,c.get(“page_key”));var u=s(t.storage_key);if(u||(u=a,d(t.storage_key,u)),e.setTargeting(“sessiontest”,String(u)),window&&window.NXSTdata.content.persistentId&&e.setTargeting(“pers_cid”,window.NXSTdata.content.persistentId),window&&window.NXSTdata.content.pageDcode&&e.setTargeting(“d_code”,window.NXSTdata.content.pageDcode),window&&window.NXSTdata.content.nlpCategories){var f=Object.entries(window.NXSTdata.content.nlpCategories).sort((function(e,t){return e[1]!==t[1]?t[1]-e[1]:e[0].length!==t[0].length?t[0].length-e[0].length:e[0].localeCompare(t[0])})),w=[];f.forEach((function(e){e[0].split(“/”).forEach((function(e,t){if(e){var n=e.replace(/[^A-Z0-9]+/gi,”_”);n=0===n.indexOf(“_”)?n.substring(1):n,w[t]=w[t]||[],w[t].push(n.slice(0,24).toLowerCase())}}))})),w.forEach((function(t,n){0n&&e.setTargeting(“nlpcat”.concat(n),t)}))}if(window&&window.NXSTdata.content.nlpSentiment){var h=window.NXSTdata.content.nlpSentiment.score,b=”0″;0!==h&&(b=0Continue reading