“)),c=l(y[i.size_id].split(“x”).map(function(e){return Number(e)}),2),s.width=c[0],s.height=c[1]),s.rubiconTargeting=(Array.isArray(i.targeting)?i.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:f.adUnitCode}),t.push(s)):r.logError(“Rubicon: bidRequest undefined at index position:”.concat(o),n,e),t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!D&&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?”&”:”?”,”us_privacy=”).concat(encodeURIComponent(r))),D=!0,{type:”iframe”,url:”https://”.concat(b.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e){return r.convertTypes({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function h(e,t){var n=o.b.getConfig(“pageUrl”);n=e.params.referrer?e.params.referrer:n||t.refererInfo.referer;return e.params.secure?n.replace(/^http:/i,”https:”):n}function _(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(r.deepAccess(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?i=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n’;var i,o}},h=function(e){var t=0=e&&t.innerWidthe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError(“Invalid attempt to iterate non-iterable instance.nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.”)}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(o);try{for(u.s();!(a=u.n()).done;){var f=a.value;01e3*e.config.storage.refreshInSeconds),!i||s||r||null!=(d=n)&&d!==B(t)?o=e.submodule.getId(e.config,t,i):”function”==typeof e.submodule.extendId&&(o=e.submodule.extendId(e.config,t,i)),c.isPlainObject(o)&&(o.id&&(U(e,o.id),i=o.id),”function”==typeof o.callback&&(e.callback=o.callback)),i&&(e.idObj=e.submodule.decode(i,e.config))):e.config.value?e.idObj=e.config.value:(u=e.submodule.getId(e.config,t,void 0),c.isPlainObject(u)&&(“function”==typeof u.callback&&(e.callback=u.callback),u.id&&(e.idObj=e.submodule.decode(u.id,e.config))))}function Y(){var e,t,n,r=(e=D,t=j,Array.isArray(e)?e.reduce(function(e,n){return!n||c.isEmptyStr(n.name)||(!n.storage||c.isEmptyStr(n.storage.type)||c.isEmptyStr(n.storage.name)||-1===t.indexOf(n.storage.type))&&!c.isPlainObject(n.value)&&(n.storage||n.value)||e.push(n),e},[]):[]);r.length&&(n=k.filter(function(e){return!i()(P,function(t){return t.name===e.name})}),P=n.map(function(e){var t=i()(r,function(t){return t.name===e.name});return e.findRootDomain=z,t?{submodule:e,config:t,callback:void 0,idObj:void 0}:null}).filter(function(e){return null!==e}),!x&&P.length&&(Object(u.a)().requestBids.before(G,40),c.logInfo(“”.concat(S,” – usersync config updated for “).concat(P.length,” submodules: “),P.map(function(e){return e.submodule.name})),x=!0))}function $(e){i()(k,function(t){return t.name===e.name})||(k.push(e),Y())}function X(e){P=[],x=!(D=[]),y=void 0,-1!==(j=[w.localStorageIsEnabled()?O:null,w.cookiesAreEnabled()?A:null].filter(function(e){return null!==e})).indexOf(A)&&w.getCookie(C)?c.logInfo(“”.concat(S,” – opt-out cookie found, exit module”)):-1!==j.indexOf(O)&&w.getDataFromLocalStorage(C)?c.logInfo(“”.concat(S,” – opt-out localStorage found, exit module”)):(e.getConfig(function(e){var t=e.userSync;t&&t.userIds&&(D=t.userIds,h=c.isNumber(t.syncDelay)?t.syncDelay:I,_=c.isNumber(t.auctionDelay)?t.auctionDelay:E,Y())}),Object(u.a)().getUserIds=V,Object(u.a)().getUserIdsAsEids=K,Object(u.a)().refreshUserIds=H)}X(o.b),Object(p.c)(“userId”,$)}},[894]),pbjs.processQueue();
}, {}];
window.modules[“visibility.legacy”] = [function(require,module,exports){“use strict”;DS.service(“$visibility”,[“$document”,”$window”,”_throttle”,”Eventify”,function(e,t,n,i){var o,r,h=[];function s(e,t){return et?e:t}function d(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 r(“shown”,t))},15)):(!n||i1&&(h+=e(r,Math.floor(n/o),i-1,o)),h},this.getVerticallyVisiblePixels=f,this.getViewportHeight=function(){return t.innerHeight||e.documentElement.clientHeight||e.body.clientHeight},this.getViewportWidth=function(){return t.innerWidth||e.documentElement.clientWidth||e.body.clientWidth},this.isElementNotHidden=u,this.isElementInViewport=function(n){var i=n.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(“Invalid attempt to iterate non-iterable instance.nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.”); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
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