“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
Month: September 2023
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return
“));var v=_[t.size_id].split(“x”).map((function(e){return Number(e)})),g=(0,i.Z)(v,2);f.width=g[0],f.height=g[1]}f.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(f)}else(0,m.logError)(“Rubicon: bidRequest undefined at index position:”.concat(n),c,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,r,t,n){if(!T&&e.iframeEnabled){var i={};return t&&(“boolean”==typeof t.gdprApplies&&(i.gdpr=Number(t.gdprApplies)),”string”==typeof t.consentString&&(i.gdpr_consent=t.consentString)),n&&(i.us_privacy=encodeURIComponent(n)),i=Object.keys(i).length?”?”.concat((0,m.formatQS)(i)):””,T=!0,{type:”iframe”,url:”https://”.concat(h.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,r){return(0,m.convertTypes)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function O(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,”https:”):t}function w(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector(“div[id^=’google_ads’]”))&&r.style.setProperty(“display”,”none”),function(e){var r=e.querySelector(“script[id^=’sas_script’]”),t=r&&r.nextSibling;t&&”iframe”===t.localName&&t.style.setProperty(“display”,”none”)}(t);var n=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align||”center”,position:n.position||”append”},closeButton:n.closeButton||!1,label:n.label||void 0,collapse:n.collapse||!0})}))}function A(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,g.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,g.Z)(e,”mediaTypes.banner.sizes”)?i=I(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=I(e.sizes):(0,m.logWarn)(“Rubicon: no sizes are setup or found”),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(_[r],10);return t&&e.push(t),e}),[])}function R(e){var r,t,n,i,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=[];if(r=e,t=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.pX)),n=void 0!==(0,g.Z)(r,”mediaTypes.”.concat(p.Mk)),i=void 0!==(0,g.Z)(r,”params.bidonmultiformat”),a=”object”!==(0,o.Z)((0,g.Z)(r,”params.video”)),t&&i||(n&&a&&(t=!1),t&&a&&(0,v.N)(r,”params.video”,{}),t)){if(-1===[“outstream”,”instream”].indexOf((0,g.Z)(e,”mediaTypes.”.concat(p.pX,”.context”))))return s&&(0,m.logError)(“Rubicon: mediaTypes.video.context must be outstream or instream”),d;if(A(e,p.pX).length<2)return