“));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/06/,”us_privacy=”).concat(encodeURIComponent(r))),U=!0,{type:”iframe”,url:”https://”.concat(v.syncHost||”eus”https://slate.com/human-interest/2022/06/,”.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/06/,”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/06/,”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 E(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=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?o=I(e.sizes):Object(r.logWarn)(“Rubicon: no sizes are setup or found”),C(o)}function S(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/06/,”):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”!==y(e)||Array.isArray(e)){if(void 0!==e)return Array.isArray(e)?e.filter(function(e){if(“object”!==y(e)&&void 0!==e)return e.toString();Object(r.logWarn)(“Rubicon: Filtered value: “,e,”for key”,t,”: Expected value to be string, integer, or an array of strings/ints”)}).toString():e.toString()}else Object(r.logWarn)(“Rubicon: Filtered FPD key: “,t,”: Expected value to be string, integer, or an array of strings/ints”)},p=function(e,t,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=l(e,r,t),a=d[r]&&i?””.concat(d[r]):”data”===r?””.concat(d[t],”iab”):””.concat(d[t]).concat(r);n[a]=n[a]?n[a].concat(“https://slate.com/human-interest/2022/06/,”,o):o};Object.keys(s).forEach(function(e){“adserver”===e?[“name”https://slate.com/human-interest/2022/06/,”adslot”].forEach(function(t){s[e][t]&&(s[e][t]=s[e][t].toString().replace(/^\/+/,””))}):”pbadslot”===e&&(s[e]=s[e].toString().replace(/^\/+/,””))}),t===a.b?([“site”https://slate.com/human-interest/2022/06/,”user”].forEach(function(e){Object.keys(c[e]).forEach(function(t){“site”===e&&”content”===t&&c[e][t].data?p(c[e][t].data,e,”data”):”ext”!==t?p(c[e][t],e,t):c[e][t].data&&Object.keys(c[e].ext.data).forEach(function(t){p(c[e].ext.data[t],e,t,!1)})})}),Object.keys(s).forEach(function(e){“adserver”===e?p(s[e].adslot,name,e):p(s[e],”site”,e)})):(Object.keys(s).length&&Object(r.mergeDeep)(n.imp[0].ext,{data:s}),Object(r.mergeDeep)(n,c))}function I(e){return Object(r.parseSizesInput)(e).reduce(function(e,t){var n=parseInt(h[t],10);return n&&e.push(n),e},[])}function A(e){return”object”===y(Object(r.deepAccess)(e,”params.video”))&&void 0!==Object(r.deepAccess)(e,”mediaTypes.”.concat(a.d))}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return A(e)?-1===[“outstream”https://slate.com/human-interest/2022/06/,”instream”].indexOf(Object(r.deepAccess)(e,”mediaTypes.”.concat(a.d,”.context”)))?void(t&&Object(r.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”)):E(e,”video”).length-1||i>-1?-1===r?1:-1===i?-1:r-i:e-n})}function x(e){var t=parseInt(Object(r.deepAccess)(e,”params.video.size_id”));return isNaN(t)?”outstream”===Object(r.deepAccess)(e,”mediaTypes.”.concat(a.d,”.context”))?203:201:t}function D(e){return{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:e.getConfig(“customPriceBucket”)&&e.getConfig(“customPriceBucket”).buckets}[e.getConfig(“priceGranularity”)]}}function P(e){var t=!0,n=Object.prototype.toString.call([]),i={mimes:n,protocols:n,linearity:Object.prototype.toString.call(0),api:n};return Object.keys(i).forEach(function(n){Object.prototype.toString.call(Object(r.deepAccess)(e,”mediaTypes.video.”+n))!==i[n]&&(t=!1,Object(r.logError)(“Rubicon: mediaTypes.video.”+n+” is required and must be of type: “+i[n]))}),t}function R(e){var t=!1,n=[“asi”https://slate.com/human-interest/2022/06/,”sid”https://slate.com/human-interest/2022/06/,”hp”];return e.nodes?((t=e.nodes.reduce(function(e,t){return e?n.every(function(e){return t.hasOwnProperty(e)}):e},!0))||Object(r.logError)(“Rubicon: required schain params missing”),t):t}function k(e,t){return”rp_schain”===e?”rp_schain=”.concat(t):””.concat(e,”=”).concat(encodeURIComponent(t))}var U=!1;Object(i.registerBidder)(O)}},[787]),pbjsChunk([107],{875:function(e,t,n){e.exports=n(876)},876:function(e,t,n){Object.defineProperty(t,”__esModule”,{value:!0}),n.d(t,”tripleliftAdapterSpec”,function(){return m});var r=n(0),i=n(2),o=n(1),a=n(3);function c(){return(c=Object.assign||function(e){for(var t=1;t
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === “string”) return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === “Object” && o.constructor) n = o.constructor.name; if (n === “Map” || n === “Set”) return Array.from(o); if (n === “Arguments” || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i