Tue Apr 5 , 2022
“));var p=b(h[i.size_id].split(“x”).map(function(e){return Number(e)}),2);f.width=p[0],f.height=p[1]}f.rubiconTargeting=(Array.isArray(i.targeting)?i.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:l.adUnitCode}),t.push(f)}else Object(r.logError)(“Rubicon: bidRequest undefined at index position:”.concat(o),n,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!U&&e.iframeEnabled){var i=””;return n&&”string”==typeof n.consentString&&(“boolean”==typeof n.gdprApplies?i+=”?gdpr=”.concat(Number(n.gdprApplies),”&gdpr_consent=”).concat(n.consentString):i+=”?gdpr_consent=”.concat(n.consentString)),r&&(i+=””.concat(i?”&”:”?”https://slate.com/human-interest/2022/04/,”us_privacy=”).concat(encodeURIComponent(r))),U=!0,{type:”iframe”,url:”https://”.concat(y.syncHost||”eus”https://slate.com/human-interest/2022/04/,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,t){return Object(r.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function _(e,t){var n=o.b.getConfig(“pageUrl”);return e.params.referrer?n=e.params.referrer:n||(n=t.refererInfo.referer),e.params.secure?n.replace(/^https:/i,”https:”):n}function j(e){var t,n=document.getElementById(e.adUnitCode);(t=n.querySelector(“div[id^=’google_ads’]”))&&t.style.setProperty(“display”https://slate.com/human-interest/2022/04/,”none”),function(e){var t=e.querySelector(“script[id^=’sas_script’]”),n=t&&t.nextSibling;n&&”iframe”===n.localName&&n.style.setProperty(“display”https://slate.com/human-interest/2022/04/,”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:”#”.concat(e.adUnitCode),align:r.align||”center”,position:r.position||”append”},closeButton:r.closeButton||!1,label:r.label||void 0,collapse:r.collapse||!0})})}function S(e,t){var n=e.params;if(“video”===t){var i=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?i=[n.video.playerWidth,n.video.playerHeight]:Array.isArray(Object(r.deepAccess)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?i=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(i=e.sizes[0]),i}var o=[];return Array.isArray(n.sizes)?o=n.sizes:void 0!==Object(r.deepAccess)(e,”mediaTypes.banner.sizes”)?o=A(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?o=A(e.sizes):Object(r.logWarn)(“Rubicon: no sizes are setup or found”),w(o)}function E(e,t,n){var i={user:{ext:{data:f({},e.params.visitor)}},site:{ext:{data:f({},e.params.inventory)}}};e.params.keywords&&(i.site.keywords=Object(r.isArray)(e.params.keywords)?e.params.keywords.join(“https://slate.com/human-interest/2022/04/,”):e.params.keywords);var c=Object(r.mergeDeep)({},o.b.getConfig(“ortb2″)||{},i),s=Object(r.deepAccess)(e.ortb2Imp,”ext.data”)||{},u={user:[4],site:[1,2,5,6]},d={user:”tg_v.”,site:”tg_i.”,adserver:”tg_i.dfp_ad_unit_code”,pbadslot:”tg_i.pbadslot”,keywords:”kw”},l=function(e,t,n){if(“data”===t&&Array.isArray(e))return e.filter(function(e){return e.segment&&Object(r.deepAccess)(e,”ext.segtax”)&&u[n]&&-1!==u[n].indexOf(Object(r.deepAccess)(e,”ext.segtax”))}).map(function(e){var t=e.segment.filter(function(e){return e.id}).reduce(function(e,t){return e.push(t.id),e},[]);if(t.length>0)return t.toString()}).toString();if(“object”!==v(e)||Array.isArray(e)){if(void 0!==e)return Array.isArray(e)?e.filter(function(e){if(“object”!==v(e)&&void 0!==e)return e.toString();Object(r.logWarn)(“Rubicon: […]