-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtesthost.js
11 lines (11 loc) · 113 KB
/
testhost.js
1
2
3
4
5
6
7
8
9
10
11
/* prebid.js v0.31.0
Updated : 2017-11-09 */
!(function(e){function n(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t=window.pbjsChunk;window.pbjsChunk=function(r,o,a){for(var s,d,u,c=0,f=[];c<r.length;c++)d=r[c],i[d]&&f.push(i[d][0]),i[d]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);for(t&&t(r,o,a);f.length;)f.shift()();if(a)for(c=0;c<a.length;c++)u=n(n.s=a[c]);return u};var r={},i={107:0};n.e=function(e){if(0===i[e])return callback.call(null,n);console.error("webpack chunk not found and jsonp disabled")},n.m=e,n.c=r,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n.oe=function(e){throw console.error(e),e},n(n.s=264)})([(function(e,n,t){"use strict";function r(){return m()+Math.random().toString(16).substr(2)}function i(e){if(n.isArray(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1]))return e[0]+"x"+e[1]}function o(){return window.console&&window.console.log}function a(e,n,t){return t.indexOf(e)===n}function s(e,n){return e.concat(n)}function d(e){return Object.keys(e)}function u(e,n){return e[n]}Object.defineProperty(n,"__esModule",{value:!0});var c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.parseSizesInput=function(e){var n=[];if("string"==typeof e){var t=e.split(","),r=/^(\d)+x(\d)+$/i;if(t)for(var o in t)E(t,o)&&t[o].match(r)&&n.push(t[o])}else if("object"===(void 0===e?"undefined":f(e))){var a=e.length;if(a>0)if(2===a&&"number"==typeof e[0]&&"number"==typeof e[1])n.push(i(e));else for(var s=0;s<a;s++)n.push(i(e[s]))}return n},n.parseGPTSingleSizeArray=i,n.uniques=a,n.flatten=s,n.getBidRequest=function(e){return pbjs._bidsRequested.map((function(n){return n.bids.find((function(n){return n.bidId===e}))})).find((function(e){return e}))},n.getKeys=d,n.getValue=u,n.getBidderCodes=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits).map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(s,[])})).reduce(s).filter(a)},n.isGptPubadsDefined=function(){if(window.googletag&&n.isFn(window.googletag.pubads)&&n.isFn(window.googletag.pubads().getSlots))return!0},n.getHighestCpm=function(e,n){return e.cpm===n.cpm?e.timeToRespond>n.timeToRespond?n:e:e.cpm<n.cpm?n:e},n.shuffle=function(e){for(var n=e.length;n>0;){var t=Math.floor(Math.random()*n),r=e[--n];e[n]=e[t],e[t]=r}return e},n.adUnitsFilter=function(e,n){return e.includes(n&&n.placementCode||n&&n.adUnitCode)},n.isSrcdocSupported=function(e){return e.defaultView&&e.defaultView.frameElement&&"srcdoc"in e.defaultView.frameElement&&!/firefox/i.test(navigator.userAgent)},n.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},n.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},n.isSafariBrowser=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},n.replaceAuctionPrice=function(e,n){if(e)return e.replace(/\$\{AUCTION_PRICE\}/g,n)},n.getBidderRequestAllAdUnits=function(e){return pbjs._bidsRequested.find((function(n){return n.bidderCode===e}))},n.getBidderRequest=function(e,n){return pbjs._bidsRequested.find((function(t){return t.bids.filter((function(t){return t.bidder===e&&t.placementCode===n})).length>0}))||{start:null,requestId:null}},n.cookiesAreEnabled=function(){return!(!window.navigator.cookieEnabled&&!document.cookie.length)||(window.document.cookie="prebid.cookieTest",-1!=window.document.cookie.indexOf("prebid.cookieTest"))},n.delayExecution=function(e,n){if(n<1)throw new Error("numRequiredCalls must be a positive number. Got "+n);var t=0;return function(){++t===n&&e.apply(null,arguments)}},n.groupBy=function(e,n){return e.reduce((function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e}),{})},n.deepAccess=function(e,n){n=String(n).split(".");for(var t=0;t<n.length;t++)if(void 0===(e=e[n[t]]))return;return e},n.getDefinedParams=function(e,n){return n.filter((function(n){return e[n]})).reduce((function(n,t){return c(n,(function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e})({},t,e[t]))}),{})},n.isValidMediaTypes=function(e){var n=["banner","native","video"];return!!Object.keys(e).every((function(e){return n.includes(e)}))&&(!e.video||!e.video.context||["instream","outstream"].includes(e.video.context))};var l=t(9),p=t(4),g=!1,b=Object.prototype.toString,v=null;try{v=console.info.bind(window.console)}catch(e){}n.replaceTokenInString=function(e,n,t){return this._each(n,(function(n,r){n=void 0===n?"":n;var i=t+r.toUpperCase()+t,o=new RegExp(i,"g");e=e.replace(o,n)})),e};var m=(function(){var e=0;return function(){return++e}})();n.getUniqueIdentifierStr=r,n.generateUUID=function e(n){return n?(n^16*Math.random()>>n/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},n.getBidIdParameter=function(e,n){return n&&n[e]?n[e]:""},n.tryAppendQueryString=function(e,n,t){return t?e+=n+"="+encodeURIComponent(t)+"&":e},n.parseQueryStringParameters=function(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n},n.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?d(e).map((function(n){return n+"="+encodeURIComponent(u(e,n))})).join("&"):""},n.getTopWindowLocation=function(){var e=void 0;try{window.top.location.toString(),e=window.top.location}catch(n){e=window.location}return e},n.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(n){e=""}return e},n.logWarn=function(e){y()&&console.warn&&console.warn("WARNING: "+e)},n.logInfo=function(e,n){y()&&o()&&v&&(n&&0!==n.length||(n=""),v("INFO: "+e+(""===n?"":" : params : "),n))},n.logMessage=function(e){y()&&o()&&console.log("MESSAGE: "+e)},n.hasConsoleLogger=o;var h=o()?window.console.error?"error":"log":"",y=function(){if(!1===l.config.getConfig("debug")&&!1===g){var e="TRUE"===S(p.DEBUG_MODE).toUpperCase();l.config.setConfig({debug:e}),g=!0}return!!l.config.getConfig("debug")};n.debugTurnedOn=y,n.logError=function(e,n,t){var r=n||"ERROR";y()&&o()&&console[h](console,r+": "+e,t||"")},n.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=r(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",e.frameBorder="0",e.src="about:blank",e.style.display="none",e};var S=function(e){var n="[\\?&]"+e+"=([^&#]*)",t=new RegExp(n).exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))};n.getParameterByName=S,n.hasValidBidRequest=function(e,n,t){for(var r=!1,i=0;i<n.length;i++)if(r=!1,this._each(e,(function(e,t){t===n[i]&&(r=!0)})),!r)return this.logError("Params are missing for bid request. One of these required paramaters are missing: "+n,t),!1;return!0},n.addEventHandler=function(e,n,t){e.addEventListener?e.addEventListener(n,t,!0):e.attachEvent&&e.attachEvent("on"+n,t)},n.isA=function(e,n){return b.call(e)==="[object "+n+"]"},n.isFn=function(e){return this.isA(e,"Function")},n.isStr=function(e){return this.isA(e,"String")},n.isArray=function(e){return this.isA(e,"Array")},n.isNumber=function(e){return this.isA(e,"Number")},n.isEmpty=function(e){if(!e)return!0;if(this.isArray(e)||this.isStr(e))return!(e.length>0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},n.isEmptyStr=function(e){return this.isStr(e)&&(!e||0===e.length)},n._each=function(e,n){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(n,this);var t=0,r=e.length;if(r>0)for(;t<r;t++)n(e[t],t,e);else for(t in e)hasOwnProperty.call(e,t)&&n.call(this,e[t],t)}},n.contains=function(e,n){if(this.isEmpty(e))return!1;if(this.isFn(e.indexOf))return-1!==e.indexOf(n);for(var t=e.length;t--;)if(e[t]===n)return!0;return!1},n.indexOf=(function(){if(Array.prototype.indexOf)return Array.prototype.indexOf})(),n._map=function(e,n){if(this.isEmpty(e))return[];if(this.isFn(e.map))return e.map(n);var t=[];return this._each(e,(function(r,i){t.push(n(r,i,e))})),t};var E=function(e,n){return e.hasOwnProperty?e.hasOwnProperty(n):void 0!==e[n]&&e.constructor.prototype[n]!==e[n]};n.insertElement=function(e,n,t){n=n||document;var r=void 0;r=t?n.getElementsByTagName(t):n.getElementsByTagName("head");try{(r=r.length?r:n.getElementsByTagName("body")).length&&(r=r[0]).insertBefore(e,r.firstChild)}catch(e){}},n.triggerPixel=function(e){(new Image).src=e},n.insertUserSyncIframe=function(e){var t=this.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),r=document.createElement("div");r.innerHTML=t;var i=r.firstChild;n.insertElement(i)},n.createTrackPixelHtml=function(e){if(!e)return"";var n='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return n+='<img src="'+encodeURI(e)+'"></div>'},n.createTrackPixelIframeHtml=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(t&&(e=encodeURI(e)),r&&(r='sandbox="'+r+'"'),"<iframe "+r+' id="'+n.getUniqueIdentifierStr()+'"\n frameborder="0"\n allowtransparency="true"\n marginheight="0" marginwidth="0"\n width="0" hspace="0" vspace="0" height="0"\n style="height:0p;width:0p;display:none;"\n scrolling="no"\n src="'+e+'">\n </iframe>'):""},n.getIframeDocument=function(e){if(e){var n=void 0;try{n=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){this.logError("Cannot get iframe document",e)}return n}},n.getValueString=function(e,n,t){return void 0===n||null===n?t:this.isStr(n)?n:this.isNumber(n)?n.toString():void this.logWarn("Unsuported type for param: "+e+" required type: String")}}),(function(e,n,t){"use strict";function r(e){var n=e.bidderCode,t=e.requestId,r=e.bidderRequestId;return e.adUnits.map((function(e){return e.bids.filter((function(e){return e.bidder===n})).map((function(n){var d=e.sizes;if(e.sizeMapping){var c=(0,a.mapSizes)(e);if(""===c)return"";d=c}e.mediaTypes&&(u.isValidMediaTypes(e.mediaTypes)?n=i({},n,{mediaTypes:e.mediaTypes}):u.logError("mediaTypes is not correctly configured for adunit "+e.code));var f=e.nativeParams||u.deepAccess(e,"mediaTypes.native");return f&&(n=i({},n,{nativeParams:(0,s.processNativeAdUnitParams)(f)})),n=i({},n,(0,o.getDefinedParams)(e,["mediaType","renderer"])),i({},n,{placementCode:e.code,transactionId:e.transactionId,sizes:d,bidId:n.bid_id||u.getUniqueIdentifierStr(),bidderRequestId:r,requestId:t})}))})).reduce(o.flatten,[]).filter((function(e){return""!==e}))}var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o=t(0),a=t(45),s=t(13),d=t(15),u=t(0),c=t(4),f=t(10),l=void 0,p={};n.bidderRegistry=p;var g={endpoint:c.S2S.DEFAULT_ENDPOINT,adapter:c.S2S.ADAPTER,syncEndpoint:c.S2S.SYNC_ENDPOINT},b={};b.random=!0,b.fixed=!0;var v={},m="random";n.callBids=function(e){var n=e.adUnits,t=e.cbTimeout,i=u.generateUUID(),s=Date.now(),d={timestamp:s,requestId:i,timeout:t};f.emit(c.EVENTS.AUCTION_INIT,d);var b=(0,o.getBidderCodes)(n);"random"===m&&(b=(0,o.shuffle)(b));var v=p[g.adapter];v&&(v.setConfig(g),v.queueSync({bidderCodes:b}));var h=[],y=!1;if(g.enabled){(y=g.testing&&void 0!==l)&&(h=l.getSourceBidderMap(n)[l.CLIENT]);var S=g.bidders;b=b.filter((function(e){return!S.includes(e)||h.includes(e)}));var E=u.cloneJson(n);E.forEach((function(e){e.sizeMapping&&(e.sizes=(0,a.mapSizes)(e),delete e.sizeMapping),e.sizes=(function(e){var n=[];return u.parseSizesInput(e.sizes).forEach((function(e){var t=e.split("x"),r={w:parseInt(t[0]),h:parseInt(t[1])};n.push(r)})),n})(e),e.bids=e.bids.filter((function(e){return S.includes(e.bidder)&&(!y||e.finalSource!==l.CLIENT)})).map((function(e){return e.bid_id=u.getUniqueIdentifierStr(),e}))})),E=E.filter((function(e){return 0!==e.bids.length}));var T=u.generateUUID();S.forEach((function(e){var n=u.getUniqueIdentifierStr(),t={bidderCode:e,requestId:i,bidderRequestId:n,tid:T,bids:r({bidderCode:e,requestId:i,bidderRequestId:n,adUnits:E}),start:(new Date).getTime(),auctionStart:s,timeout:g.timeout,src:c.S2S.SRC};0!==t.bids.length&&pbjs._bidsRequested.push(t)}));var A={tid:T,ad_units:E};u.logMessage("CALLING S2S HEADER BIDDERS ==== "+S.join(",")),A.ad_units.length&&v.callBids(A)}var _=[],I=u.cloneJson(n);I.forEach((function(e){e.bids=e.bids.filter((function(e){return!y||e.finalSource!==l.SERVER}))})),I=I.filter((function(e){return 0!==e.bids.length})),b.forEach((function(e){if(p[e]){var n=u.getUniqueIdentifierStr(),o={bidderCode:e,requestId:i,bidderRequestId:n,bids:r({bidderCode:e,requestId:i,bidderRequestId:n,adUnits:I}),auctionStart:s,timeout:t};o.bids&&0!==o.bids.length&&(pbjs._bidsRequested.push(o),_.push(o))}})),_.forEach((function(e){e.start=(new Date).getTime();var n=p[e.bidderCode];n?e.bids&&0!==e.bids.length&&(u.logMessage("CALLING BIDDER ======= "+e.bidderCode),f.emit(c.EVENTS.BID_REQUESTED,e),n.callBids(e)):u.logError("Adapter trying to be called which does not exist: "+e.bidderCode+" adaptermanager.callBids")}))},n.videoAdapters=[],n.registerBidAdapter=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;e&&t?"function"==typeof e.callBids?(p[t]=e,i.includes("video")&&n.videoAdapters.push(t),i.includes("native")&&s.nativeAdapters.push(t)):u.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):u.logError("bidAdaptor or bidderCode not specified")},n.aliasBidAdapter=function(e,t){if(void 0===p[t]){var r=p[e];if(void 0===r)u.logError('bidderCode "'+e+'" is not an existing bidder.',"adaptermanager.aliasBidAdapter");else try{var o=void 0,a=(function(e){var t=[];return n.videoAdapters.includes(e)&&t.push("video"),s.nativeAdapters.includes(e)&&t.push("native"),t})(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(t);else{var c=r.getSpec();o=(0,d.newBidder)(i({},c,{code:t}))}this.registerBidAdapter(o,t,{supportedMediaTypes:a})}catch(n){u.logError(e+" bidder does not currently support aliasing.","adaptermanager.aliasBidAdapter")}}else u.logMessage('alias name "'+t+'" has been already specified.')},n.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,v[t]=n):u.logError('Prebid Error: Analytics adaptor error for analytics "'+t+'"\n analytics adapter must implement an enableAnalytics() function'):u.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},n.enableAnalytics=function(e){u.isArray(e)||(e=[e]),u._each(e,(function(e){var n=v[e.provider];n?n.enableAnalytics(e):u.logError("Prebid Error: no analytics adapter found in registry for\n "+e.provider+".")}))},n.setBidderSequence=function(e){b[e]?m=e:u.logWarn("Invalid order: "+e+". Bidder Sequence was not set.")},n.setS2SConfig=function(e){g=e},n.setS2STestingModule=function(e){l=e}}),(function(e,n,t){"use strict";function r(){return pbjs._bidsRequested.map((function(e){return e.bids})).reduce(f.flatten,[]).filter(f.adUnitsFilter.bind(this,pbjs._adUnitCodes)).map((function(e){return"indexExchange"===e.bidder?e.sizes.length:1})).reduce((function(e,n){return e+n}),0)===pbjs._bidsReceived.filter(f.adUnitsFilter.bind(this,pbjs._adUnitCodes)).length}function i(e,n){var t={},r=pbjs.bidderSettings;if(n&&r){o(t,d(),n)}return e&&n&&r&&r[e]&&r[e][h.JSON_MAPPING.ADSERVER_TARGETING]?(o(t,r[e],n),n.alwaysUseBid=r[e].alwaysUseBid,n.sendStandardTargeting=r[e].sendStandardTargeting):A[e]&&(o(t,A[e],n),n.alwaysUseBid=A[e].alwaysUseBid,n.sendStandardTargeting=A[e].sendStandardTargeting),n.native&&(t=u({},t,(0,p.getNativeTargeting)(n))),t}function o(e,n,t){var r=n[h.JSON_MAPPING.ADSERVER_TARGETING];return t.size=t.getSize(),S._each(r,(function(r){var i=r.key,o=r.val;if(e[i]&&S.logWarn("The key: "+i+" is getting ovewritten"),S.isFn(o))try{o=o(t)}catch(e){S.logError("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&"hb_deal"!==i||!S.isEmptyStr(o)&&null!==o&&void 0!==o?e[i]=o:S.logInfo("suppressing empty key '"+i+"' from adserver targeting")})),e}function a(e,n){var t=this;S.isArray(e)&&e.forEach((function(e){var r=n||pbjs._adUnitCodes,i=[pbjs._bidsReceived.filter(f.adUnitsFilter.bind(t,r)).reduce((function(e,n){e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]});return e[n.adUnitCode].bids.push(n),e}),{})];e.apply(pbjs,i)}))}function s(e){var n=e.bidderCode,t=e.cpm,r=void 0;if(pbjs.bidderSettings&&(n&&pbjs.bidderSettings[n]&&"function"==typeof pbjs.bidderSettings[n].bidCpmAdjustment?r=pbjs.bidderSettings[n].bidCpmAdjustment:pbjs.bidderSettings[h.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[h.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(r=pbjs.bidderSettings[h.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try{t=r(e.cpm,u({},e))}catch(e){S.logError("Error during bid adjustment","bidmanager.js",e)}t>=0&&(e.cpm=t)}function d(){var e=m.config.getConfig("priceGranularity"),n=pbjs.bidderSettings;return n[h.JSON_MAPPING.BD_SETTING_STANDARD]||(n[h.JSON_MAPPING.BD_SETTING_STANDARD]={}),n[h.JSON_MAPPING.BD_SETTING_STANDARD][h.JSON_MAPPING.ADSERVER_TARGETING]||(n[h.JSON_MAPPING.BD_SETTING_STANDARD][h.JSON_MAPPING.ADSERVER_TARGETING]=[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(n){return e===h.GRANULARITY_OPTIONS.AUTO?n.pbAg:e===h.GRANULARITY_OPTIONS.DENSE?n.pbDg:e===h.GRANULARITY_OPTIONS.LOW?n.pbLg:e===h.GRANULARITY_OPTIONS.MEDIUM?n.pbMg:e===h.GRANULARITY_OPTIONS.HIGH?n.pbHg:e===h.GRANULARITY_OPTIONS.CUSTOM?n.pbCg:void 0}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_deal",val:function(e){return e.dealId}}]),n[h.JSON_MAPPING.BD_SETTING_STANDARD]}var u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},c=(function(){return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return (function(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return t})(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),f=t(0),l=t(26),p=t(13),g=t(27),b=t(46),v=t(18),m=t(9),h=t(4),y=h.EVENTS.AUCTION_END,S=t(0),E=t(10),T={byAdUnit:[],all:[],oneTime:null,timer:!1},A={};n.getTimedOutBidders=function(){return pbjs._bidsRequested.map((function(e){return e.bidderCode})).filter(f.uniques).filter((function(e){return pbjs._bidsReceived.map((function(e){return e.bidder})).filter(f.uniques).indexOf(e)<0}))},n.bidsBackAll=function(){return r()},n.addBidResponse=function(e,t){function o(){if(t.timeToRespond>pbjs.cbTimeout+pbjs.timeoutBuffer){n.executeCallback(!0)}}function s(){E.emit(h.EVENTS.BID_RESPONSE,t),pbjs._bidsReceived.push(t),t.adUnitCode&&(function(e){var n=this;return pbjs._bidsRequested.map((function(t){return t.bids.filter(f.adUnitsFilter.bind(n,pbjs._adUnitCodes)).filter((function(n){return n.placementCode===e}))})).reduce(f.flatten,[]).map((function(e){return"indexExchange"===e.bidder?e.sizes.length:1})).reduce((function(e,n){return e+n}),0)===pbjs._bidsReceived.filter((function(n){return n.adUnitCode===e})).length})(t.adUnitCode)&&(function(e){var n=[e];a(T.byAdUnit,n)})(t.adUnitCode),r()&&n.executeCallback()}(function(){function n(e){return"Invalid bid from "+t.bidderCode+". Ignoring bid: "+e}return t?e?(0,f.getBidderRequest)(t.bidderCode,e).start?"native"!==t.mediaType||(0,p.nativeBidIsValid)(t)?"video"!==t.mediaType||(0,g.isValidVideoBid)(t)?!("banner"===t.mediaType&&!(function(n){if((n.width||0===n.width)&&(n.height||0===n.height))return!0;var t=(0,f.getBidderRequest)(n.bidderCode,e),r=t&&t.bids&&t.bids[0]&&t.bids[0].sizes,i=S.parseSizesInput(r);if(1===i.length){var o=i[0].split("x"),a=c(o,2),s=a[0],d=a[1];return n.width=s,n.height=d,!0}return!1})(t)&&(S.logError(n("Banner bids require a width and height")),1)):(S.logError(n("Video bid does not have required vastUrl or renderer property")),!1):(S.logError(n("Native bid missing some required properties.")),!1):(S.logError(n("Cannot find valid matching bid request.")),!1):(S.logError(n("No adUnitCode was supplied to addBidResponse.")),!1):(S.logError("Some adapter tried to add an undefined bid for "+e+"."),!1)})()&&(function(){var n=(0,f.getBidderRequest)(t.bidderCode,e);u(t,{requestId:n.requestId,responseTimestamp:(new Date).getTime(),requestTimestamp:n.start,cpm:parseFloat(t.cpm)||0,bidder:t.bidderCode,adUnitCode:e}),t.timeToRespond=t.responseTimestamp-t.requestTimestamp,E.emit(h.EVENTS.BID_ADJUSTMENT,t);var r=n.bids&&n.bids[0]&&n.bids[0].renderer;r&&(t.renderer=v.Renderer.install({url:r.url}),t.renderer.setRender(r.render));var o=(0,l.getPriceBucketString)(t.cpm,m.config.getConfig("customPriceBucket"),m.config.getConfig("currency.granularityMultiplier"));t.pbLg=o.low,t.pbMg=o.med,t.pbHg=o.high,t.pbAg=o.auto,t.pbDg=o.dense,t.pbCg=o.custom;var a;t.bidderCode&&(t.cpm>0||t.dealId)&&(a=i(t.bidderCode,t)),t.adserverTargeting=u(t.adserverTargeting||{},a)}(),"video"===t.mediaType?(function(e){m.config.getConfig("usePrebidCache")?(0,b.store)([e],(function(n,t){n?S.logWarn("Failed to save to the video cache: "+n+". Video bid must be discarded."):(e.videoCacheKey=t[0].uuid,e.vastUrl||(e.vastUrl=(0,b.getCacheUrl)(e.videoCacheKey)),s()),o()})):(s(),o())})(t):(s(),o()))},n.getKeyValueTargetingPairs=function(){return i.apply(void 0,arguments)},n.registerDefaultBidderSetting=function(e,n){A[e]=n},n.executeCallback=function(e){if(!e&&T.timer&&clearTimeout(T.timer),!0!==T.all.called&&(a(T.all),T.all.called=!0,e)){var t=n.getTimedOutBidders();t.length&&E.emit(h.EVENTS.BID_TIMEOUT,t)}if(T.oneTime){E.emit(y);try{a([T.oneTime])}catch(e){S.logError("Error executing bidsBackHandler",null,e)}finally{T.oneTime=null,T.timer=!1,pbjs.clearAuction()}}},n.externalCallbackReset=function(){T.all.called=!1},n.addOneTimeCallback=function(e,n){T.oneTime=e,T.timer=n},n.addCallback=function(e,n,t){n.id=e,h.CB.TYPE.ALL_BIDS_BACK===t?T.all.push(n):h.CB.TYPE.AD_UNIT_BIDS_BACK===t&&T.byAdUnit.push(n)},E.on(h.EVENTS.BID_ADJUSTMENT,(function(e){s(e)})),n.adjustBids=function(){return s.apply(void 0,arguments)},n.getStandardBidderAdServerTargeting=function(){return d()[h.JSON_MAPPING.ADSERVER_TARGETING]}}),(function(e,n,t){"use strict";var r=t(0);n.createBid=function(e,n){return new function(e,n){var t=n&&n.bidId||r.getUniqueIdentifierStr(),i=e||0;this.bidderCode=n&&n.bidder||"",this.width=0,this.height=0,this.statusMessage=(function(){switch(i){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}})(),this.adId=t,this.mediaType="banner",this.getStatusCode=function(){return i},this.getSize=function(){return this.width+"x"+this.height}}(e,n)}}),(function(e,n){e.exports={JSON_MAPPING:{PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},REPO_AND_VERSION:"prebid_prebid_0.31.0",DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_WON:"bidWon",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:["hb_bidder","hb_adid","hb_pb","hb_size","hb_deal"],S2S:{DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/auction",SRC:"s2s",ADAPTER:"prebidServer",SYNC_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/cookie_sync",SYNCED_BIDDERS_KEY:"pbjsSyncs"}}}),(function(e,n,t){"use strict";function r(e,n){var t=document.createElement("script");t.type="text/javascript",t.async=!0,n&&"function"==typeof n&&(t.readyState?t.onreadystatechange=function(){"loaded"!==t.readyState&&"complete"!==t.readyState||(t.onreadystatechange=null,n())}:t.onload=function(){n()}),t.src=e;var r=document.getElementsByTagName("head");(r=r.length?r:document.getElementsByTagName("body")).length&&(r=r[0]).insertBefore(t,r.firstChild)}var i=t(0),o={};n.loadScript=function(e,n,t){e?t?o[e]?n&&"function"==typeof n&&(o[e].loaded?n():o[e].callbacks.push(n)):(o[e]={loaded:!1,callbacks:[]},n&&"function"==typeof n&&o[e].callbacks.push(n),r(e,(function(){o[e].loaded=!0;try{for(var n=0;n<o[e].callbacks.length;n++)o[e].callbacks[n]()}catch(e){i.logError("Error executing callback","adloader.js:loadScript",e)}}))):r(e,n):i.logError("Error attempting to request empty URL","adloader.js:loadScript")}}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.setAjaxTimeout=function(e){d=e},n.ajax=function(e,n,t){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var c=void 0,f=!1,l=u.method||(t?"POST":"GET"),p="object"===(void 0===n?"undefined":i(n))?n:{success:function(){a.logMessage("xhr success")},error:function(e){a.logError("xhr error",null,e)}};if("function"==typeof n&&(p.success=n),window.XMLHttpRequest?void 0===(c=new window.XMLHttpRequest).responseType&&(f=!0):f=!0,f?((c=new window.XDomainRequest).onload=function(){p.success(c.responseText,c)},c.onerror=function(){p.error("error",c)},c.ontimeout=function(){p.error("timeout",c)},c.onprogress=function(){a.logMessage("xhr onprogress")}):c.onreadystatechange=function(){if(c.readyState===s){var e=c.status;e>=200&&e<300||304===e?p.success(c.responseText,c):p.error(c.statusText,c)}},"GET"===l&&t){var g=(0,o.parse)(e,u);r(g.search,t),e=(0,o.format)(g)}c.open(l,e),c.timeout=d,f||(u.withCredentials&&(c.withCredentials=!0),a._each(u.customHeaders,(function(e,n){c.setRequestHeader(n,e)})),u.preflight&&c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.setRequestHeader("Content-Type",u.contentType||"text/plain")),c.send("POST"===l&&t)}catch(e){a.logError("xhr construction",e)}};var o=t(11),a=t(0),s=4,d=3e3}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}}),,(function(e,n,t){"use strict";function r(){function e(e){return Object.keys(g).find((function(n){return e===g[n]}))}var n=[],t={_debug:d,get debug(){return pbjs.logging||!1===pbjs.logging?pbjs.logging:this._debug},set debug(e){this._debug=e},_bidderTimeout:u,get bidderTimeout(){return pbjs.bidderTimeout||this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:c,get publisherDomain(){return pbjs.publisherDomain||this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_cookieSyncDelay:f,get cookieSyncDelay(){return pbjs.cookieSyncDelay||this._cookieSyncDelay},set cookieSyncDelay(e){this._cookieSyncDelay=e},_priceGranularity:g.MEDIUM,set priceGranularity(n){(function(n){if(!n)return s.logError("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof n)e(n)||s.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if("object"===(void 0===n?"undefined":o(n))&&!(0,a.isValidPriceConfig)(n))return s.logError("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0})(n)&&("string"==typeof n?this._priceGranularity=e(n)?n:g.MEDIUM:"object"===(void 0===n?"undefined":o(n))&&(this._customPriceBucket=n,this._priceGranularity=g.CUSTOM,s.logMessage("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_sendAllBids:l,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},set bidderSequence(e){pbjs.setBidderSequence(e)},set s2sConfig(e){pbjs.setS2SConfig(e)},userSync:p};return{getConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?s.deepAccess(t,e):t}return function(e,t){var r=t;"string"!=typeof e&&(r=e,e=b);{if("function"==typeof r)return n.push({topic:e,callback:r}),function(){n.splice(n.indexOf(t),1)};s.logError("listener must be a function")}}.apply(void 0,arguments)},setConfig:function(e){"object"===(void 0===e?"undefined":o(e))?(i(t,e),(function(e){var t=Object.keys(e);n.filter((function(e){return t.includes(e.topic)})).forEach((function(n){n.callback(function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}({},n.topic,e[n.topic]))})),n.filter((function(e){return e.topic===b})).forEach((function(n){return n.callback(e)}))})(e)):s.logError("setConfig options must be an object")}}}Object.defineProperty(n,"__esModule",{value:!0}),n.config=void 0;var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.newConfig=r;var a=t(26),s=t(0),d=!1,u=3e3,c=window.location.origin,f=100,l=!1,p={syncEnabled:!0,pixelEnabled:!0,syncsPerBidder:5,syncDelay:3e3},g={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},b="*";n.config=r()}),(function(e,n,t){"use strict";var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i=t(0),o=t(4),a=Array.prototype.slice,s=Array.prototype.push,d=i._map(o.EVENTS,(function(e){return e})),u=o.EVENT_ID_PATHS,c=[];e.exports=(function(){var e={},n={};return n.on=function(n,t,r){if(function(e){return i.contains(d,e)}(n)){var o=e[n]||{que:[]};r?(o[r]=o[r]||{que:[]},o[r].que.push(t)):o.que.push(t),e[n]=o}else i.logError("Wrong event name : "+n+" Valid event names :"+d)},n.emit=function(n){!(function(n,t){i.logMessage("Emitting event for: "+n);var r=t[0]||{},o=r[u[n]],a=e[n]||{que:[]},d=i._map(a,(function(e,n){return n})),f=[];c.push({eventType:n,args:r,id:o}),o&&i.contains(d,o)&&s.apply(f,a[o].que),s.apply(f,a.que),i._each(f,(function(e){if(e)try{e.apply(null,t)}catch(e){i.logError("Error executing handler:","events.js",e)}}))})(n,a.call(arguments,1))},n.off=function(n,t,r){var o=e[n];i.isEmpty(o)||i.isEmpty(o.que)&&i.isEmpty(o[r])||r&&(i.isEmpty(o[r])||i.isEmpty(o[r].que))||(r?i._each(o[r].que,(function(e){var n=o[r].que;e===t&&n.splice(i.indexOf.call(n,e),1)})):i._each(o.que,(function(e){var n=o.que;e===t&&n.splice(i.indexOf.call(n,e),1)})),e[n]=o)},n.get=function(){return e},n.getEvents=function(){var e=[];return i._each(c,(function(n){var t=r({},n);e.push(t)})),e},n})()}),(function(e,n,t){"use strict";function r(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t=n.split("="),r=o(t,2),i=r[0],a=r[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(a)):e[i]=a||"",e}),{}):{}}function i(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return n+"[]="+e})).join("&"):n+"="+e[n]})).join("&")}Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return (function(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return t})(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();n.parseQS=r,n.formatQS=i,n.parse=function(e,n){var t=document.createElement("a");return n&&"noDecodeWholeURL"in n&&n.noDecodeWholeURL?t.href=e:t.href=decodeURIComponent(e),{protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}},n.format=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":"+e.port:""))+(e.pathname||"")+(e.search?"?"+i(e.search||""):"")+(e.hash?"#"+e.hash:"")}}),(function(e,n){var t=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasNonNativeBidder=n.nativeBidder=n.nativeAdUnit=n.NATIVE_TARGETING_KEYS=n.NATIVE_KEYS=n.nativeAdapters=void 0,n.processNativeAdUnitParams=function(e){return e&&e.type&&(function(e){return!(!e||!Object.keys(a).includes(e))||((0,r.logError)(e+" nativeParam is not supported"),!1)})(e.type)?a[e.type]:e},n.nativeBidIsValid=function(e){var n=(0,r.getBidRequest)(e.adId);if(!n)return!1;if(!(0,r.deepAccess)(e,"native.clickUrl"))return!1;var t=n.nativeParams;if(!t)return!0;var i=Object.keys(t).filter((function(e){return t[e].required})),o=Object.keys(e.native).filter((function(n){return e.native[n]}));return i.every((function(e){return o.includes(e)}))},n.fireNativeTrackers=function(e,n){(("click"===e.action?n.native&&n.native.clickTrackers:n.native&&n.native.impressionTrackers)||[]).forEach(r.triggerPixel)},n.getNativeTargeting=function(e){var n={};return Object.keys(e.native).forEach((function(t){var r=o[t],i=e.native[t];r&&(n[r]=i)})),n};var r=t(0),i=n.nativeAdapters=[],o=n.NATIVE_KEYS={title:"hb_native_title",body:"hb_native_body",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",cta:"hb_native_cta"},a=(n.NATIVE_TARGETING_KEYS=Object.keys(o).map((function(e){return o[e]})),{image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}}),s=(n.nativeAdUnit=function(e){var n="native"===e.mediaType,t=(0,r.deepAccess)(e,"mediaTypes.native");return n||t},n.nativeBidder=function(e){return i.includes(e.bidder)});n.hasNonNativeBidder=function(e){return e.bids.filter((function(e){return!s(e)})).length}}),(function(e,n){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),(function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return a(new s.default(e.code),{getSpec:function(){return Object.freeze(e)},callBids:function(n){function t(e,n){try{f.default.addBidResponse(e,n)}catch(n){(0,b.logError)("Error adding bid",e,n)}}function r(){if(n.bids.map((function(e){return e.placementCode})).forEach((function(n){n&&!i[n]&&t(n,(function(){var n=l.default.createBid(p.STATUS.NO_BID);return n.code=e.code,n.bidderCode=e.code,n})())})),e.getUserSyncs){var r=e.getUserSyncs({iframeEnabled:u.config.getConfig("userSync.iframeEnabled"),pixelEnabled:u.config.getConfig("userSync.pixelEnabled")},s);r&&(Array.isArray(r)||(r=[r]),r.forEach((function(n){g.userSync.registerSync(n.type,e.code,n.url)})))}}if(Array.isArray(n.bids)){var i={},s=[],d=n.bids.filter((function(n){return!!e.isBidRequestValid(n)||((0,b.logWarn)("Invalid bid sent to bidder "+e.code+": "+JSON.stringify(n)),!1)}));if(0!==d.length){var v={};d.forEach((function(e){v[e.bidId]=e}));var m=e.buildRequests(d,n);if(m&&0!==m.length){Array.isArray(m)||(m=[m]);var h=(0,b.delayExecution)(r,m.length);m.forEach((function(n){function r(r){function o(n){var r=v[n.requestId];if(r){var o=a(l.default.createBid(p.STATUS.GOOD,r),n);!(function(e,n){i[e]=!0,t(e,n)})(r.placementCode,o)}else(0,b.logWarn)("Bidder "+e.code+" made bid for unknown request ID: "+n.requestId+". Ignoring.")}try{r=JSON.parse(r)}catch(e){}s.push(r);var d=void 0;try{d=e.interpretResponse(r,n)}catch(n){return(0,b.logError)("Bidder "+e.code+" failed to interpret the server's response. Continuing without bids",null,n),void h()}d&&(d.forEach?d.forEach(o):o(d)),h()}function d(n){(0,b.logError)("Server call for "+e.code+" failed: "+n+". Continuing without bids."),h()}switch(n.method){case"GET":(0,c.ajax)(n.url+"?"+("object"===o(n.data)?(0,b.parseQueryStringParameters)(n.data):n.data),{success:r,error:d},void 0,a({method:"GET",withCredentials:!0},n.options));break;case"POST":(0,c.ajax)(n.url,{success:r,error:d},"string"==typeof n.data?n.data:JSON.stringify(n.data),a({method:"POST",contentType:"text/plain",withCredentials:!0},n.options));break;default:(0,b.logWarn)("Skipping invalid request from "+e.code+". Request type "+n.type+" must be GET or POST"),h()}}))}else r()}else r()}}})}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};n.registerBidder=function(e){function n(e){var n=i(e);d.default.registerBidAdapter(n,e.code,t)}var t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;n(e),Array.isArray(e.aliases)&&e.aliases.forEach((function(t){n(a({},e,{code:t}))}))},n.newBidder=i;var s=r(t(7)),d=r(t(1)),u=t(9),c=t(6),f=r(t(2)),l=r(t(3)),p=t(4),g=t(28),b=t(0)}),(function(e,n,t){var r=t(14),i=t(12),o=t(20),a=t(275),s=t(32),d=function(e,n,t){var u,c,f,l,p=e&d.F,g=e&d.G,b=e&d.S,v=e&d.P,m=e&d.B,h=g?r:b?r[n]||(r[n]={}):(r[n]||{}).prototype,y=g?i:i[n]||(i[n]={}),S=y.prototype||(y.prototype={});g&&(t=n);for(u in t)f=((c=!p&&h&&void 0!==h[u])?h:t)[u],l=m&&c?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,h&&a(h,u,f,e&d.U),y[u]!=f&&o(y,u,l),v&&S[u]!=f&&(S[u]=f)};r.core=i,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d}),(function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}}),(function(e,n,t){"use strict";function r(e){var n=this,t=e.url,r=e.config,a=e.id,s=e.callback,d=e.loaded;this.url=t,this.config=r,this.handlers={},this.id=a,this.loaded=d,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):o.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=s||function(){n.loaded=!0,n.process()},(0,i.loadScript)(t,this.callback,!0)}Object.defineProperty(n,"__esModule",{value:!0}),n.Renderer=r;var i=t(5),o=(function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n})(t(0));r.install=function(e){return new r({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded})},r.prototype.getConfig=function(){return this.config},r.prototype.setRender=function(e){this.render=e},r.prototype.setEventHandlers=function(e){this.handlers=e},r.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),o.logMessage("Prebid Renderer event for id "+n+" type "+t)},r.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){o.logError("Error processing Renderer command: ",e)}}}),(function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){return"string"==typeof e?[e]:l.isArray(e)?e:pbjs._adUnitCodes||[]}function o(e){var n=g.getWinningBids(e),t=a();return n=n.map((function(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(n){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===t.indexOf(n)})).map((function(n){return r({},n.substring(0,20),[e.adserverTargeting[n]])})))}))}function a(){return f.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(p.TARGETING_KEYS).filter(d.uniques)}function s(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}var d=t(0),u=t(9),c=t(13),f=t(2),l=t(0),p=t(4),g=n,b=[];g.resetPresetTargeting=function(e){if((0,d.isGptPubadsDefined)()){var n=i(e),t=pbjs.adUnits.filter((function(e){return n.includes(e.code)}));window.googletag.pubads().getSlots().forEach((function(e){b.forEach((function(n){t.forEach((function(t){t.code!==e.getAdUnitPath()&&t.code!==e.getSlotElementId()||e.setTargeting(n,null)}))}))}))}},g.getAllTargeting=function(e){var n=i(e),t=o(n).concat(function(e){var n=a();return pbjs._bidsReceived.filter(d.adUnitsFilter.bind(this,e)).map((function(e){if(e.alwaysUseBid)return r({},e.adUnitCode,Object.keys(e.adserverTargeting).map((function(t){if(!(n.indexOf(t)>-1))return r({},t.substring(0,20),[e.adserverTargeting[t]])})).filter((function(e){return e})))})).filter((function(e){return e}))}(n)).concat(u.config.getConfig("enableSendAllBids")?(function(e){var n=p.TARGETING_KEYS.concat(c.NATIVE_TARGETING_KEYS),t=[],i=(0,d.groupBy)(pbjs._bidsReceived,"adUnitCode");return Object.keys(i).forEach((function(e){var n=(0,d.groupBy)(i[e],"bidderCode");Object.keys(n).forEach((function(e){return t.push(n[e].reduce(d.getHighestCpm,s()))}))})),t.map((function(e){if(e.adserverTargeting)return r({},e.adUnitCode,(function(e,n){return n.map((function(n){return r({},(n+"_"+e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))})(e,n.filter((function(n){return void 0!==e.adserverTargeting[n]}))))})).filter((function(e){return e}))})():[]);return t.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===b.indexOf(Object.keys(e)[0])&&(b=Object.keys(e).concat(b))}))}))})),t},g.setTargeting=function(e){window.googletag.pubads().getSlots().forEach((function(n){e.filter((function(e){return Object.keys(e)[0]===n.getAdUnitPath()||Object.keys(e)[0]===n.getSlotElementId()})).forEach((function(e){return e[Object.keys(e)[0]].forEach((function(e){e[Object.keys(e)[0]].map((function(t){return l.logMessage("Attempting to set key value for slot: "+n.getSlotElementId()+" key: "+Object.keys(e)[0]+" value: "+t),t})).forEach((function(t){n.setTargeting(Object.keys(e)[0],t)}))}))}))}))},g.getWinningBids=function(e){var n=i(e);return pbjs._bidsReceived.filter((function(e){return n.includes(e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(d.uniques).map((function(e){return pbjs._bidsReceived.filter((function(n){return n.adUnitCode===e?n:null})).reduce(d.getHighestCpm,s(e))}))},g.setTargetingForAst=function(){var e=pbjs.getAdserverTargeting();Object.keys(e).forEach((function(n){return Object.keys(e[n]).forEach((function(t){if(l.logMessage("Attempting to set targeting for targetId: "+n+" key: "+t+" value: "+e[n][t]),l.isStr(e[n][t])||l.isArray(e[n][t])){var r={};r["hb_adid"===t.substring(0,"hb_adid".length)?t.toUpperCase():t]=e[n][t],window.apntag.setKeywords(n,r)}}))}))},g.isApntagDefined=function(){if(window.apntag&&l.isFn(window.apntag.setKeywords))return!0}}),(function(e,n,t){var r=t(269),i=t(274);e.exports=t(21)?function(e,n,t){return r.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}}),(function(e,n,t){e.exports=!t(22)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}),(function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}}),(function(e,n){var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}}),(function(e,n,t){var r=t(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}}),(function(e,n,t){var r=t(39)("unscopables"),i=Array.prototype;void 0==i[r]&&t(20)(i,r,{}),e.exports=function(e){i[r][e]=!0}}),(function(e,n,t){"use strict";function r(e,n,t){var r="";if(!i(n))return r;var o=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),s=n.buckets.find((function(n){if(e>o.max*t){var i=n.precision;void 0===i&&(i=a),r=(n.max*t).toFixed(i)}else if(e<=n.max*t&&e>=n.min*t)return n}));return s&&(r=(function(e,n,t,r){void 0===t&&(t=a);var i=1/(n*r);return(Math.floor(e*i)/i).toFixed(t)})(e,s.increment,s.precision,t)),r}function i(e){if(o.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){void 0!==e.min&&e.max&&e.increment||(n=!1)})),n}Object.defineProperty(n,"__esModule",{value:!0});var o=t(0),a=2,s={buckets:[{min:0,max:5,increment:.5}]},d={buckets:[{min:0,max:20,increment:.1}]},u={buckets:[{min:0,max:20,increment:.01}]},c={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},f={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};n.getPriceBucketString=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":r(e,s,t),med:""===i?"":r(e,d,t),high:""===i?"":r(e,u,t),auto:""===i?"":r(e,f,t),dense:""===i?"":r(e,c,t),custom:""===i?"":r(e,n,t)}},n.isValidPriceConfig=i}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasNonVideoBidder=n.videoAdUnit=void 0,n.isValidVideoBid=function(e){var n=(0,i.getBidRequest)(e.adId),t=n&&(0,i.deepAccess)(n,"mediaTypes.video"),r=t&&(0,i.deepAccess)(t,"context");return!n||t&&r!==o?!(!e.vastUrl&&!e.vastXml):r!==o||!(!e.renderer&&!n.renderer)};var r=t(1),i=t(0),o="outstream";n.videoAdUnit=function(e){return"video"===e.mediaType},n.hasNonVideoBidder=function(e){return e.bids.filter((function(e){return!r.videoAdapters.includes(e.bidder)})).length}}),(function(e,n,t){"use strict";function r(e){function n(){if(c.syncEnabled&&e.browserSupportsCookies&&!d){try{!(function(){if(!c.pixelEnabled)return;a.shuffle(r.image).forEach((function(e){var n=i(e,2),t=n[0],r=n[1];a.logMessage("Invoking image pixel user sync for bidder: "+t),a.triggerPixel(r)}))})(),(function(){if(!c.iframeEnabled)return;a.shuffle(r.iframe).forEach((function(e){var n=i(e,2),t=n[0],r=n[1];a.logMessage("Invoking iframe user sync for bidder: "+t),a.insertUserSyncIframe(r)}))})()}catch(e){return a.logError("Error firing user syncs",e)}r={image:[],iframe:[]},d=!0}}var t={},r={image:[],iframe:[]},d=!1,u={},c=e.config;return s.config.getConfig("userSync",(function(e){c=o(c,e.userSync)})),t.registerSync=function(e,n,t){if(!c.syncEnabled||!a.isArray(r[e]))return a.logWarn('User sync type "'+e+'" not supported');if(!n)return a.logWarn("Bidder is required for registering sync");if(Number(u[n])>=c.syncsPerBidder)return a.logWarn('Number of user syncs exceeded for "{$bidder}"');if(c.enabledBidders&&c.enabledBidders.length&&c.enabledBidders.indexOf(n)<0)return a.logWarn('Bidder "'+n+'" not supported');r[e].push([n,t]),u=(function(e,n){return e[n]?e[n]+=1:e[n]=1,e})(u,n)},t.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return window.setTimeout(n,Number(e));n()},t.triggerUserSyncs=function(){c.enableOverride&&t.syncUsers()},t}Object.defineProperty(n,"__esModule",{value:!0}),n.userSync=void 0;var i=(function(){return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return (function(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return t})(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};n.newUserSync=r;var a=(function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n})(t(0)),s=t(9),d=!a.isSafariBrowser()&&a.cookiesAreEnabled();n.userSync=r({config:s.config.getConfig("userSync"),browserSupportsCookies:d})}),(function(e,n){var t;t=(function(){return this})();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]}),(function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}}),(function(e,n,t){var r=t(276);e.exports=function(e,n,t){if(r(e),void 0===n)return e;switch(t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,i){return e.call(n,t,r,i)}}return function(){return e.apply(n,arguments)}}}),(function(e,n,t){var r=t(32),i=t(24),o=t(35),a=t(37),s=t(277);e.exports=function(e,n){var t=1==e,d=2==e,u=3==e,c=4==e,f=6==e,l=5==e||f,p=n||s;return function(n,s,g){for(var b,v,m=o(n),h=i(m),y=r(s,g,3),S=a(h.length),E=0,T=t?p(n,S):d?p(n,0):void 0;S>E;E++)if((l||E in h)&&(b=h[E],v=y(b,E,m),e))if(t)T[E]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return E;case 2:T.push(b)}else if(c)return!1;return f?-1:u||c?c:T}}}),(function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}}),(function(e,n,t){var r=t(36);e.exports=function(e){return Object(r(e))}}),(function(e,n){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}}),(function(e,n,t){var r=t(38),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),(function(e,n){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}}),(function(e,n,t){var r=t(40)("wks"),i=t(23),o=t(14).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r}),(function(e,n,t){var r=t(14),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}}),(function(e,n,t){var r=t(42),i=t(37),o=t(284);e.exports=function(e){return function(n,t,a){var s,d=r(n),u=i(d.length),c=o(a,u);if(e&&t!=t){for(;u>c;)if((s=d[c++])!=s)return!0}else for(;u>c;c++)if((e||c in d)&&d[c]===t)return e||c||0;return!e&&-1}}}),(function(e,n,t){var r=t(24),i=t(36);e.exports=function(e){return r(i(e))}}),,,(function(e,n,t){"use strict";function r(e){var n=e||o||window,t=n.document;return n.innerWidth?n.innerWidth:t.body.clientWidth?t.body.clientWidth:t.documentElement.clientWidth?t.documentElement.clientWidth:0}Object.defineProperty(n,"__esModule",{value:!0}),n.setWindow=n.getScreenWidth=n.mapSizes=void 0;var i=(function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n})(t(0)),o=void 0;n.mapSizes=function(e){if(!(function(e){return!!(i.isArray(e)&&e.length>0)||(i.logInfo("No size mapping defined"),!1)})(e.sizeMapping))return e.sizes;var n=r();if(!n){var t=e.sizeMapping.reduce((function(e,n){return e.minWidth<n.minWidth?n:e}));return t.sizes&&t.sizes.length?t.sizes:e.sizes}var o="",a=e.sizeMapping.find((function(e){return n>=e.minWidth}));return a&&a.sizes&&a.sizes.length?(o=a.sizes,i.logMessage("AdUnit : "+e.code+" resized based on device width to : "+o)):i.logMessage("AdUnit : "+e.code+" not mapped to any sizes for device width. This request will be suppressed."),o},n.getScreenWidth=r,n.setWindow=function(e){o=e}}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.store=function(e,n){var t={puts:e.map((function(e){return{type:"xml",value:e.vastXml?e.vastXml:'<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA['+e.vastUrl+"]]></VASTAdTagURI>\n <Impression></Impression>\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>"}}))};(0,r.ajax)(i,(function(e){return{success:function(n){var t=void 0;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}t?e(null,t):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(n,t){e(new Error("Error storing video ad in the cache: "+n+": "+JSON.stringify(t)),[])}}})(n),JSON.stringify(t),{contentType:"text/plain",withCredentials:!0})},n.getCacheUrl=function(e){return i+"?uuid="+e};var r=t(6),i="https://prebid.adnxs.com/pbc/v1/cache"}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(e,n,t){e.exports=t(265)}),(function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n,t){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=n,e.defaultView.frameElement.height=t)}function o(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){S.logError("Error processing command :","prebid.js",e)}}))}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},d=t(30),u=t(0),c=t(27),f=t(13);t(266);var l=t(11),p=t(294),g=t(28),b=t(5),v=t(6),m=t(9),h=(0,d.getGlobal)(),y=t(4),S=t(0),E=t(2),T=t(1),A=t(3),_=t(10),I=t(295),w=t(19),j=g.userSync.syncUsers,O=g.userSync.triggerUserSyncs,C=y.EVENTS.BID_WON,B=y.EVENTS.SET_TARGETING,U=y.EVENTS.ADD_AD_UNITS,N=!1,P=[],R={bidWon:function(e){var n=h._bidsRequested.map((function(e){return e.bids.map((function(e){return e.placementCode}))})).reduce(u.flatten).filter(u.uniques);if(S.contains(n,e))return!0;S.logError('The "'+e+'" placement is not defined.')}};h._bidsRequested=[],h._bidsReceived=[],h._adUnitCodes=[],h._winningBids=[],h._adsReceived=[],h.bidderSettings=h.bidderSettings||{},h.bidderTimeout=h.bidderTimeout,h.cbTimeout=h.cbTimeout||200,h.timeoutBuffer=200,h.logging=h.logging,h.publisherDomain=h.publisherDomain,h.libLoaded=!0,h.version="v0.31.0",S.logInfo("Prebid.js v0.31.0 loaded"),h.adUnits=h.adUnits||[],h.triggerUserSyncs=O,h.getAdserverTargetingForAdUnitCodeStr=function(e){if(S.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var n=h.getAdserverTargetingForAdUnitCode(e);return S.transformAdServerTargetingObj(n)}S.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},h.getAdserverTargetingForAdUnitCode=function(e){return h.getAdserverTargeting(e)[e]},h.getAdserverTargeting=function(e){return S.logInfo("Invoking pbjs.getAdserverTargeting",arguments),w.getAllTargeting(e).map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))})).reduce((function(e,n){return s(n,e)}),{}))})).reduce((function(e,n){var t=Object.keys(n)[0];return e[t]=s({},e[t],n[t]),e}),{})},h.getBidResponses=function(){S.logInfo("Invoking pbjs.getBidResponses",arguments);var e=h._bidsReceived.filter(u.adUnitsFilter.bind(this,h._adUnitCodes)),n=e&&e.length&&e[e.length-1].requestId;return e.map((function(e){return e.adUnitCode})).filter(u.uniques).map((function(t){return e.filter((function(e){return e.requestId===n&&e.adUnitCode===t}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return r({},e[0].adUnitCode,{bids:e})})).reduce((function(e,n){return s(e,n)}),{})},h.getBidResponsesForAdUnitCode=function(e){return{bids:h._bidsReceived.filter((function(n){return n.adUnitCode===e}))}},h.setTargetingForGPTAsync=function(e){if(S.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,u.isGptPubadsDefined)()){var n=w.getAllTargeting(e);w.resetPresetTargeting(e),w.setTargeting(n),_.emit(B)}else S.logError("window.googletag is not defined on the page")},h.setTargetingForAst=function(){S.logInfo("Invoking pbjs.setTargetingForAn",arguments),w.isApntagDefined()?(w.setTargetingForAst(),_.emit(B)):S.logError("window.apntag is not defined on the page")},h.allBidsAvailable=function(){return S.logWarn("pbjs.allBidsAvailable will be removed in Prebid 1.0. Alternative solution is in progress. See https://github.com/prebid/Prebid.js/issues/1087 for more details."),S.logInfo("Invoking pbjs.allBidsAvailable",arguments),E.bidsBackAll()},h.renderAd=function(e,n){if(S.logInfo("Invoking pbjs.renderAd",arguments),S.logMessage("Calling renderAd with adId :"+n),e&&n)try{var t=h._bidsReceived.find((function(e){return e.adId===n}));if(t){t.ad=S.replaceAuctionPrice(t.ad,t.cpm),t.url=S.replaceAuctionPrice(t.url,t.cpm),h._winningBids.push(t),_.emit(C,t);var r=t.height,o=t.width,a=t.ad,s=t.mediaType,d=t.adUrl,u=t.renderer;if(u&&u.url)u.render(t);else if(e===document&&!S.inIframe()||"video"===s)S.logError("Error trying to write ad. Ad render call ad id "+n+" was prevented from writing to the main document.");else if(a)e.write(a),e.close(),i(e,o,r);else if(d){var c=S.createInvisibleIframe();c.height=r,c.width=o,c.style.display="inline",c.style.overflow="hidden",c.src=d,S.insertElement(c,e,"body"),i(e,o,r)}else S.logError("Error trying to write ad. No ad for bid response id: "+n)}else S.logError("Error trying to write ad. Cannot find ad by given id : "+n)}catch(e){S.logError("Error trying to write ad Id :"+n+" to the page:"+e.message)}else S.logError("Error trying to write ad Id :"+n+" to the page. Missing document or adId")},h.removeAdUnit=function(e){if(S.logInfo("Invoking pbjs.removeAdUnit",arguments),e)for(var n=0;n<h.adUnits.length;n++)h.adUnits[n].code===e&&h.adUnits.splice(n,1)},h.clearAuction=function(){N=!1;var e=m.config.getConfig("userSync")||{};e.enableOverride||j(e.syncDelay),S.logMessage("Prebid auction cleared"),P.length&&P.shift()()},h.requestBids=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,i=e.adUnitCodes;_.emit("requestBids");var o=h.cbTimeout=t||m.config.getConfig("bidderTimeout");r=r||h.adUnits,S.logInfo("Invoking pbjs.requestBids",arguments),i&&i.length?r=r.filter((function(e){return i.includes(e.code)})):i=r&&r.map((function(e){return e.code}));if(r.filter(c.videoAdUnit).filter(c.hasNonVideoBidder).forEach((function(e){S.logError("adUnit "+e.code+" has 'mediaType' set to 'video' but contains a bidder that doesn't support video. No Prebid demand requests will be triggered for this adUnit.");for(var n=0;n<r.length;n++)r[n].code===e.code&&r.splice(n,1)})),r.filter(f.nativeAdUnit).filter(f.hasNonNativeBidder).forEach((function(e){var n=e.bids.filter((function(e){return!(0,f.nativeBidder)(e)})).map((function(e){return e.bidder})).join(", ");S.logError("adUnit "+e.code+" has 'mediaType' set to 'native' but contains non-native bidder(s) "+n+". No Prebid demand requests will be triggered for those bidders."),e.bids=e.bids.filter(f.nativeBidder)})),N)P.push((function(){h.requestBids({bidsBackHandler:n,timeout:o,adUnits:r,adUnitCodes:i})}));else{if(N=!0,h._adUnitCodes=i,E.externalCallbackReset(),h._bidsRequested=[],h._bidsReceived=h._bidsReceived.filter((function(e){return!h._adUnitCodes.includes(e.adUnitCode)})),!r||0===r.length)return S.logMessage("No adUnits configured. No bids requested."),"function"==typeof n&&E.addOneTimeCallback(n,!1),void E.executeCallback();var a=E.executeCallback.bind(E,!0),s=setTimeout(a,o);(0,v.setAjaxTimeout)(o),"function"==typeof n&&E.addOneTimeCallback(n,s),T.callBids({adUnits:r,adUnitCodes:i,cbTimeout:o}),0===h._bidsRequested.length&&E.executeCallback()}},h.addAdUnits=function(e){S.logInfo("Invoking pbjs.addAdUnits",arguments),S.isArray(e)?(e.forEach((function(e){return e.transactionId=S.generateUUID()})),h.adUnits.push.apply(h.adUnits,e)):"object"===(void 0===e?"undefined":a(e))&&(e.transactionId=S.generateUUID(),h.adUnits.push(e)),_.emit(U)},h.onEvent=function(e,n,t){S.logInfo("Invoking pbjs.onEvent",arguments),S.isFn(n)?!t||R[e].call(null,t)?_.on(e,n,t):S.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):S.logError('The event handler provided is not a function and was not set on event "'+e+'".')},h.offEvent=function(e,n,t){S.logInfo("Invoking pbjs.offEvent",arguments),t&&!R[e].call(null,t)||_.off(e,n,t)},h.addCallback=function(e,n){S.logWarn("pbjs.addCallback will be removed in Prebid 1.0. Please use onEvent instead"),S.logInfo("Invoking pbjs.addCallback",arguments);var t=null;return e&&n&&"function"==typeof n?(t=S.getUniqueIdentifierStr,E.addCallback(t,n,e),t):(S.logError("error registering callback. Check method signature"),t)},h.removeCallback=function(){return S.logWarn("pbjs.removeCallback will be removed in Prebid 1.0. Please use offEvent instead."),null},h.registerBidAdapter=function(e,n){S.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{T.registerBidAdapter(e(),n)}catch(e){S.logError("Error registering bidder adapter : "+e.message)}},h.registerAnalyticsAdapter=function(e){S.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{T.registerAnalyticsAdapter(e)}catch(e){S.logError("Error registering analytics adapter : "+e.message)}},h.bidsAvailableForAdapter=function(e){S.logInfo("Invoking pbjs.bidsAvailableForAdapter",arguments),h._bidsRequested.find((function(n){return n.bidderCode===e})).bids.map((function(n){return s(n,A.createBid(1),{bidderCode:e,adUnitCode:n.placementCode})})).map((function(e){return h._bidsReceived.push(e)}))},h.createBid=function(e){return S.logInfo("Invoking pbjs.createBid",arguments),A.createBid(e)},h.addBidResponse=function(e,n){S.logWarn("pbjs.addBidResponse will be removed in Prebid 1.0. Each bidder will be passed a reference to addBidResponse function in callBids as an argument. See https://github.com/prebid/Prebid.js/issues/1087 for more details."),S.logInfo("Invoking pbjs.addBidResponse",arguments),E.addBidResponse(e,n)},h.loadScript=function(e,n,t){S.logInfo("Invoking pbjs.loadScript",arguments),(0,b.loadScript)(e,n,t)},h.enableAnalytics=function(e){e&&!S.isEmpty(e)?(S.logInfo("Invoking pbjs.enableAnalytics for: ",e),T.enableAnalytics(e)):S.logError("pbjs.enableAnalytics should be called with option {}")},h.aliasBidder=function(e,n){S.logInfo("Invoking pbjs.aliasBidder",arguments),e&&n?T.aliasBidAdapter(e,n):S.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},h.setPriceGranularity=function(e){S.logWarn("pbjs.setPriceGranularity will be removed in Prebid 1.0. Use pbjs.setConfig({ priceGranularity: <granularity> }) instead."),S.logInfo("Invoking pbjs.setPriceGranularity",arguments),m.config.setConfig({priceGranularity:e})},h.enableSendAllBids=function(){m.config.setConfig({enableSendAllBids:!0})},h.getAllWinningBids=function(){return h._winningBids},h.buildMasterVideoTagFromAdserverTag=function(e,n){S.logWarn("pbjs.buildMasterVideoTagFromAdserverTag will be removed in Prebid 1.0. Include the dfpVideoSupport module in your build, and use the pbjs.adservers.dfp.buildVideoAdUrl function instead"),S.logInfo("Invoking pbjs.buildMasterVideoTagFromAdserverTag",arguments);var t=(0,l.parse)(e);if(0===h._bidsReceived.length)return e;if("dfp"===n.adserver.toLowerCase()){var r=I.dfpAdserver(n,t);return r.verifyAdserverTag()||S.logError("Invalid adserverTag, required google params are missing in query string"),r.appendQueryParams(),(0,l.format)(r.urlComponents)}S.logError("Only DFP adserver is supported")},h.setBidderSequence=T.setBidderSequence,h.getHighestCpmBids=function(e){return w.getWinningBids(e)},h.setS2SConfig=function(e){if(S.contains(Object.keys(e),"accountId"))if(S.contains(Object.keys(e),"bidders")){var n=s({enabled:!1,endpoint:y.S2S.DEFAULT_ENDPOINT,timeout:1e3,maxBids:1,adapter:y.S2S.ADAPTER,syncEndpoint:y.S2S.SYNC_ENDPOINT,cookieSet:!0,bidders:[]},e);T.setS2SConfig(n)}else S.logError("bidders missing in Server to Server config");else S.logError("accountId missing in Server to Server config")},h.getConfig=m.config.getConfig,h.setConfig=m.config.setConfig,h.que.push((function(){return(0,p.listenMessagesFromCreative)()})),h.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){S.logError("Error processing command :"+e.message)}else S.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},h.que.push=h.cmd.push,h.processQueue=function(){o(h.que),o(h.cmd)}}),(function(e,n,t){"use strict";t(267),t(280),t(282),t(285),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}),(function(e,n,t){t(268),e.exports=t(12).Array.find}),(function(e,n,t){"use strict";var r=t(16),i=t(33)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(25)("find")}),(function(e,n,t){var r=t(270),i=t(271),o=t(273),a=Object.defineProperty;n.f=t(21)?Object.defineProperty:function(e,n,t){if(r(e),n=o(n,!0),r(t),i)try{return a(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[n]=t.value),e}}),(function(e,n,t){var r=t(17);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}}),(function(e,n,t){e.exports=!t(21)&&!t(22)((function(){return 7!=Object.defineProperty(t(272)("div"),"a",{get:function(){return 7}}).a}))}),(function(e,n,t){var r=t(17),i=t(14).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}}),(function(e,n,t){var r=t(17);e.exports=function(e,n){if(!r(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!r(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}}),(function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}}),(function(e,n,t){var r=t(14),i=t(20),o=t(31),a=t(23)("src"),s=Function.toString,d=(""+s).split("toString");t(12).inspectSource=function(e){return s.call(e)},(e.exports=function(e,n,t,s){var u="function"==typeof t;u&&(o(t,"name")||i(t,"name",n)),e[n]!==t&&(u&&(o(t,a)||i(t,a,e[n]?""+e[n]:d.join(String(n)))),e===r?e[n]=t:s?e[n]?e[n]=t:i(e,n,t):(delete e[n],i(e,n,t)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))}),(function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}}),(function(e,n,t){var r=t(278);e.exports=function(e,n){return new(r(e))(n)}}),(function(e,n,t){var r=t(17),i=t(279),o=t(39)("species");e.exports=function(e){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}}),(function(e,n,t){var r=t(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}}),(function(e,n,t){t(281),e.exports=t(12).Array.findIndex}),(function(e,n,t){"use strict";var r=t(16),i=t(33)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(25)(o)}),(function(e,n,t){t(283),e.exports=t(12).Array.includes}),(function(e,n,t){"use strict";var r=t(16),i=t(41)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(25)("includes")}),(function(e,n,t){var r=t(38),i=Math.max,o=Math.min;e.exports=function(e,n){return(e=r(e))<0?i(e+n,0):o(e,n)}}),(function(e,n,t){t(286),e.exports=t(12).Object.assign}),(function(e,n,t){var r=t(16);r(r.S+r.F,"Object",{assign:t(287)})}),(function(e,n,t){"use strict";var r=t(288),i=t(292),o=t(293),a=t(35),s=t(24),d=Object.assign;e.exports=!d||t(22)((function(){var e={},n={},t=Symbol(),r="abcdefghijklmnopqrst";return e[t]=7,r.split("").forEach((function(e){n[e]=e})),7!=d({},e)[t]||Object.keys(d({},n)).join("")!=r}))?function(e,n){for(var t=a(e),d=arguments.length,u=1,c=i.f,f=o.f;d>u;)for(var l,p=s(arguments[u++]),g=c?r(p).concat(c(p)):r(p),b=g.length,v=0;b>v;)f.call(p,l=g[v++])&&(t[l]=p[l]);return t}:d}),(function(e,n,t){var r=t(289),i=t(291);e.exports=Object.keys||function(e){return r(e,i)}}),(function(e,n,t){var r=t(31),i=t(42),o=t(41)(!1),a=t(290)("IE_PROTO");e.exports=function(e,n){var t,s=i(e),d=0,u=[];for(t in s)t!=a&&r(s,t)&&u.push(t);for(;n.length>d;)r(s,t=n[d++])&&(~o(u,t)||u.push(t));return u}}),(function(e,n,t){var r=t(40)("keys"),i=t(23);e.exports=function(e){return r[e]||(r[e]=i(e))}}),(function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}),(function(e,n){n.f=Object.getOwnPropertySymbols}),(function(e,n){n.f={}.propertyIsEnumerable}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.listenMessagesFromCreative=function(){addEventListener("message",(function(e){var n=e.message?"message":"data",t={};try{t=JSON.parse(e[n])}catch(e){return}if(t.adId){var a=pbjs._bidsReceived.find((function(e){return e.adId===t.adId}));"Prebid Request"===t.message&&(function(e,n,t){var r=e.adId,i=e.ad,o=e.adUrl,a=e.width,s=e.height;r&&(function(e){var n=e.adUnitCode,t=e.width,r=e.height,i=document.getElementById(window.googletag.pubads().getSlots().find((function(e){return e.getAdUnitPath()===n||e.getSlotElementId()===n})).getSlotElementId()).querySelector("iframe");i.width=""+t,i.height=""+r}(e),t.postMessage(JSON.stringify({message:"Prebid Response",ad:i,adUrl:o,adId:r,width:a,height:s}),n))}(a,t.adServerDomain,e.source),pbjs._winningBids.push(a),r.default.emit(o,a)),"Prebid Native"===t.message&&((0,i.fireNativeTrackers)(t,a),pbjs._winningBids.push(a),r.default.emit(o,a))}}),!1)};var r=(function(e){return e&&e.__esModule?e:{default:e}})(t(10)),i=t(13),o=t(4).EVENTS.BID_WON}),(function(e,n,t){"use strict";var r=t(11),i=t(19);n.dfpAdserver=function(e,n){var t=new function(e){this.name=e.adserver,this.code=e.code,this.getWinningBidByCode=function(){return(0,i.getWinningBids)(this.code)[0]}}(e);t.urlComponents=n;var o={env:"vp",gdfp_req:"1",impl:"s",unviewed_position_start:"1"},a=["output","iu","sz","url","correlator","description_url","hl"];return t.appendQueryParams=function(){var e=t.getWinningBidByCode();e&&(this.urlComponents.search.description_url=encodeURIComponent(e.descriptionUrl),this.urlComponents.search.cust_params=(function(e){return encodeURIComponent((0,r.formatQS)(e))})(e.adserverTargeting),this.urlComponents.search.correlator=Date.now())},t.verifyAdserverTag=function(){for(var e in o)if(!this.urlComponents.search.hasOwnProperty(e)||this.urlComponents.search[e]!==o[e])return!1;for(var n in a)if(!this.urlComponents.search.hasOwnProperty(a[n]))return!1;return!0},t}})]);
pbjsChunk([92],{83:function(e,r,a){e.exports=a(84)},84:function(e,r,a){"use strict";var t,d=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},s=a(0),i=(function(e){return e&&e.__esModule?e:{default:e}})(a(1)),n=a(4),l=a(0),p=a(5),u=a(2),c=a(3),o=a(7).default;t=function(){function e(e,r){var a=l.getBidIdParameter("placementId",e.params),t=l.getBidIdParameter("memberId",e.params),s=l.getBidIdParameter("member",e.params),i=l.getBidIdParameter("invCode",e.params),n=l.getBidIdParameter("query",e.params),p=l.getBidIdParameter("referrer",e.params),u=l.getBidIdParameter("alt_referrer",e.params),c="//ib.adnxs.com/jpt?";c=l.tryAppendQueryString(c,"callback","pbjs.handleAnCB"),c=l.tryAppendQueryString(c,"callback_uid",r),c=l.tryAppendQueryString(c,"psa","0"),c=l.tryAppendQueryString(c,"id",a),s?c=l.tryAppendQueryString(c,"member",s):t&&(c=l.tryAppendQueryString(c,"member",t),l.logMessage('appnexus.callBids: "memberId" will be deprecated soon. Please use "member" instead')),c=l.tryAppendQueryString(c,"code",i),c=l.tryAppendQueryString(c,"traffic_source_code",l.getBidIdParameter("trafficSourceCode",e.params));var o="",m=l.parseSizesInput(e.sizes),g=m.length;if(g>0&&(o="size="+m[0],g>1)){o+="&promo_sizes=";for(var f=1;f<g;f++)o+=m[f]+=",";o&&","===o.charAt(o.length-1)&&(o=o.slice(0,o.length-1))}o&&(c+=o+"&");var b=l.parseQueryStringParameters(n);b&&(c+=b);var y=d({},e.params);delete y.placementId,delete y.memberId,delete y.invCode,delete y.query,delete y.referrer,delete y.alt_referrer,delete y.member;var B=l.parseQueryStringParameters(y);return B&&(c+=B),""===p&&(p=l.getTopWindowUrl()),c=l.tryAppendQueryString(c,"referrer",p),(c=l.tryAppendQueryString(c,"alt_referrer",u)).lastIndexOf("&")===c.length-1&&(c=c.substring(0,c.length-1)),l.logMessage("jpt request built: "+c),e.startTime=(new Date).getTime(),c}var r=new o("appnexus"),a=!1;return r.callBids=function(r){for(var a=r.bids,t=0;t<a.length;t++){var d=a[t],s=d.bidId;p.loadScript(e(d,s))}},pbjs.handleAnCB=function(e){var r;if(e&&e.callback_uid){var t,d=e.callback_uid,i="",p=(0,s.getBidRequest)(d);p&&(r=p.bidder,i=p.placementCode,p.status=n.STATUS.GOOD),l.logMessage("JSONP callback function called for ad ID: "+d);var o=[];if(e.result&&e.result.cpm&&0!==e.result.cpm){t=parseInt(e.result.cpm,10),t/=1e4;var m=e.result.creative_id;(o=c.createBid(1,p)).creative_id=m,o.bidderCode=r,o.cpm=t,o.adUrl=e.result.ad,o.width=e.result.width,o.height=e.result.height,o.dealId=e.result.deal_id,u.addBidResponse(i,o)}else l.logMessage("No prebid response from AppNexus for placement code "+i),(o=c.createBid(2,p)).bidderCode=r,u.addBidResponse(i,o);if(!a){var g=l.createInvisibleIframe();g.src="//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html";try{document.body.appendChild(g)}catch(e){l.logError(e)}a=!0}}else l.logMessage("No prebid response for placement %%PLACEMENT%%")},d(this,{callBids:r.callBids,setBidderCode:r.setBidderCode,buildJPTCall:e})},i.default.registerBidAdapter(new t,"appnexus"),i.default.aliasBidAdapter("appnexus","brealtime"),i.default.aliasBidAdapter("appnexus","pagescience"),i.default.aliasBidAdapter("appnexus","defymedia"),i.default.aliasBidAdapter("appnexus","gourmetads"),i.default.aliasBidAdapter("appnexus","matomy"),i.default.aliasBidAdapter("appnexus","featureforward"),i.default.aliasBidAdapter("appnexus","oftmedia"),e.exports=t}},[83]);
pbjsChunk([71],{128:function(e,n,o){e.exports=o(129)},129:function(e,n,o){"use strict";function t(){if(E&&"function"==typeof window[w]){for(var e=0;e<T.length;e++)T[e].call();T.push=function(e){e.call()},E=!1}l.logMessage("event count sent to GA: "+h)}function i(e){return e?Math.floor(100*e):0}function s(e){e&&e.bidderCode&&T.push((function(){h++,window[w](D,"event",S,"Requests",e.bidderCode,1,g)})),t()}function r(e){e&&e.bidderCode&&T.push((function(){var n=i(e.cpm),o=e.bidderCode;if(void 0!==e.timeToRespond&&$){h++;var t=(function(e){var n;return e>=0&&e<200?n="0-200ms":e>=200&&e<300?n="0200-300ms":e>=300&&e<400?n="0300-400ms":e>=400&&e<500?n="0400-500ms":e>=500&&e<600?n="0500-600ms":e>=600&&e<800?n="0600-800ms":e>=800&&e<1e3?n="0800-1000ms":e>=1e3&&e<1200?n="1000-1200ms":e>=1200&&e<1500?n="1200-1500ms":e>=1500&&e<2e3?n="1500-2000ms":e>=2e3&&(n="2000ms above"),n})(e.timeToRespond);window[w](D,"event","Prebid.js Load Time Distribution",t,o,1,g)}if(e.cpm>0){h+=2;var s=(function(e){var n;return e>=0&&e<.5?n="$0-0.5":e>=.5&&e<1?n="$0.5-1":e>=1&&e<1.5?n="$1-1.5":e>=1.5&&e<2?n="$1.5-2":e>=2&&e<2.5?n="$2-2.5":e>=2.5&&e<3?n="$2.5-3":e>=3&&e<4?n="$3-4":e>=4&&e<6?n="$4-6":e>=6&&e<8?n="$6-8":e>=8&&(n="$8 above"),n})(e.cpm);$&&(h++,window[w](D,"event","Prebid.js CPM Distribution",s,o,1,g)),window[w](D,"event",S,"Bids",o,n,g),window[w](D,"event",S,"Bid Load Time",o,e.timeToRespond,g)}})),t()}function a(e){T.push((function(){l._each(e,(function(e){h++,window[w](D,"event",S,"Timeouts",e,g)}))})),t()}function d(e){var n=i(e.cpm);T.push((function(){h++,window[w](D,"event",S,"Wins",e.bidderCode,n,g)})),t()}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=o(10),l=o(0),f=o(4),p=o(1),b=f.EVENTS.BID_REQUESTED,m=f.EVENTS.BID_TIMEOUT,v=f.EVENTS.BID_RESPONSE,y=f.EVENTS.BID_WON,g={nonInteraction:!0},T=[],w=null,E=!0,S="Prebid.js Bids",h=0,$=!1,D=null,N=!0;n.enableAnalytics=function(e){var n=e.provider,o=e.options;w=n||"ga",D=o&&o.trackerName?o.trackerName+".send":"send",N=void 0===o||void 0===o.sampling||Math.random()<parseFloat(o.sampling),o&&void 0!==o.global&&(w=o.global),o&&void 0!==o.enableDistribution&&($=o.enableDistribution);var t=null;if(N){var i=c.getEvents();l._each(i,(function(e){if("object"===(void 0===e?"undefined":u(e))){var n=e.args;if(e.eventType===b)s(t=n);else if(e.eventType===v)r(t=n);else if(e.eventType===m){a(n)}else e.eventType===y&&d(t=n)}})),c.on(b,(function(e){s(e)})),c.on(v,(function(e){r(e)})),c.on(m,(function(e){a(e)})),c.on(y,(function(e){d(e)}))}else l.logMessage("Prebid.js google analytics disabled by sampling");this.enableAnalytics=function(){return l.logMessage("Analytics adapter already enabled, unnecessary call to `enableAnalytics`.")}},n.getTrackerSend=function(){return D},p.registerAnalyticsAdapter({adapter:n,code:"ga"})}},[128]);
pbjsChunk([66],{138:function(e,t,i){e.exports=i(139)},139:function(e,t,i){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=a(i(7)),d=a(i(3)),u=a(i(2)),l=r(i(0)),p=i(4),f=r(i(11)),c=a(i(5)),g=a(i(1));top;var m="INDEXEXCHANGE",v="indexExchange",y={INDEX_DEBUG_MODE:{queryParam:"pbjs_ix_debug",mode:{sandbox:{topFrameLimit:10,queryValue:"sandbox",siteID:"999990"}}}},I={siteID:!0,playerType:!0,protocols:!0,maxduration:!0},h={minduration:0,startdelay:"preroll",linearity:"linear",mimes:[],allowVPAID:!0,apiList:[]},_={HTML5:!0,FLASH:!0},D={VAST2:[2,5],VAST3:[3,6]},x={FLASH:[1,2],HTML5:[2]},b={linear:1,nonlinear:2},q={preroll:0,midroll:-1,postroll:-2},R={preroll:"pr",midroll:"m",postroll:"po"},w={FLASH:["video/mp4","video/x-flv"],HTML5:["video/mp4","video/webm"]},T={FLASH:["application/x-shockwave-flash"],HTML5:["application/javascript"]},E="http://as.casalemedia.com/cygnus?v=8&fn=pbjs.handleCygnusResponse",S="https://as-sec.casalemedia.com/cygnus?v=8&fn=pbjs.handleCygnusResponse";window.cygnus_index_parse_res=function(e){try{if(e){if("object"!==("undefined"==typeof _IndexRequestData?"undefined":o(_IndexRequestData))||"object"!==o(_IndexRequestData.impIDToSlotID)||void 0===_IndexRequestData.impIDToSlotID[e.id])return;var t,i=1;"object"===o(_IndexRequestData.reqOptions)&&"object"===o(_IndexRequestData.reqOptions[e.id])&&("function"==typeof _IndexRequestData.reqOptions[e.id].callback&&(t=_IndexRequestData.reqOptions[e.id].callback),"number"==typeof _IndexRequestData.reqOptions[e.id].targetMode&&(i=_IndexRequestData.reqOptions[e.id].targetMode)),_IndexRequestData.lastRequestID=e.id,_IndexRequestData.targetIDToBid={},_IndexRequestData.targetIDToResp={},_IndexRequestData.targetIDToCreative={};for(var r=[],a=void 0===e.seatbid?0:e.seatbid.length,s=0;s<a;s++)for(var n=0;n<e.seatbid[s].bid.length;n++){var d=e.seatbid[s].bid[n];if("object"===o(d.ext)&&"string"==typeof d.ext.pricelevel&&void 0!==_IndexRequestData.impIDToSlotID[e.id][d.impid]){var u,l,p,f=_IndexRequestData.impIDToSlotID[e.id][d.impid];"string"==typeof d.ext.dealid?(u=1===i?f+d.ext.pricelevel:f+"_"+d.ext.dealid,l=f+"_"+d.ext.dealid,p="IPM_"):(u=f+d.ext.pricelevel,l=f+d.ext.pricelevel,p="IOM_"),void 0===_IndexRequestData.targetIDToBid[u]?_IndexRequestData.targetIDToBid[u]=[d.adm]:_IndexRequestData.targetIDToBid[u].push(d.adm),void 0===_IndexRequestData.targetIDToCreative[l]?_IndexRequestData.targetIDToCreative[l]=[d.adm]:_IndexRequestData.targetIDToCreative[l].push(d.adm);var c={};c.impressionID=d.impid,void 0!==d.ext.dealid&&(c.dealID=d.ext.dealid),c.bid=d.price,c.slotID=f,c.priceLevel=d.ext.pricelevel,c.target=p+u,_IndexRequestData.targetIDToResp[u]=c,r.push(c)}}"function"==typeof t&&(0===r.length?t(e.id):t(e.id,r))}}catch(e){}"function"==typeof window.cygnus_index_ready_state&&window.cygnus_index_ready_state()},window.index_render=function(e,t){try{var i=_IndexRequestData.targetIDToCreative[t].pop();if(null!=i)e.write(i);else{var r="http:"===l.getTopWindowLocation().protocol?"http://as.casalemedia.com":"https://as-sec.casalemedia.com";r+="/headerstats?type=RT&s="+cygnus_index_args.siteID+"&u="+encodeURIComponent(location.href)+"&r="+_IndexRequestData.lastRequestID;(new Image).src=r+"&blank="+t}}catch(e){}},window.headertag_render=function(e,t,i){for(var r=i,a=t.split(","),s=0;s<a.length;s++){if(a[s].split("_")[0]==r)return void index_render(e,a[s])}},window.cygnus_index_args={};var C=[[728,90],[120,600],[300,250],[160,600],[336,280],[234,60],[300,600],[300,50],[320,50],[970,250],[300,1050],[970,90],[180,150]],A=function(e){for(var t=window,i="",r=0;r<y.INDEX_DEBUG_MODE.mode.sandbox.topFrameLimit&&t.parent!=t;r++){try{i=t.document.referrer}catch(e){}t=t.parent}var a=top===self?location.href:i,s="[\\?&]"+e+"=([^&#]*)",o=new RegExp(s).exec(a);return null===o?"":decodeURIComponent(o[1].replace(/\+/g," "))},O=function(){function e(e){return i.lastIndex=0,i.test(e)?e.replace(i,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})):e}function t(e,t,i){if(this.initialized=!1,"number"!=typeof e||e%1!=0||e<0)throw"Invalid Site ID";"number"==typeof(i=Number(i))&&i%1==0&&i>=0&&(this.timeoutDelay=i),this.siteID=e,this.impressions=[],this._parseFnName=void 0,this.sitePage=void 0;try{this.sitePage=l.getTopWindowUrl()}catch(e){}if(void 0!==this.sitePage&&""!==this.sitePage||(top===self?this.sitePage=location.href:this.sitePage=document.referrer),top===self?this.topframe=1:(this.topframe=0,this.sitePage=document.referrer),void 0!==t){if("function"!=typeof t)throw"Invalid jsonp target function";this._parseFnName="cygnus_index_args.parseFn"}void 0===_IndexRequestData.requestCounter?_IndexRequestData.requestCounter=Math.floor(256*Math.random()):_IndexRequestData.requestCounter=(_IndexRequestData.requestCounter+1)%256,this.requestID=String((new Date).getTime()%2592e3*256+_IndexRequestData.requestCounter+256),this.initialized=!0}window.cygnus_index_args.parseFn=cygnus_index_parse_res;var i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};t.prototype.serialize=function(){var t='{"id":"'+this.requestID+'","site":{"page":"'+e(this.sitePage)+'"';"string"==typeof document.referrer&&""!==document.referrer&&(t+=',"ref":"'+e(document.referrer)+'"'),t+='},"imp":[';for(var i=0;i<this.impressions.length;i++){var r=this.impressions[i],a=[];t+='{"id":"'+r.id+'", "banner":{"w":'+r.w+',"h":'+r.h+',"topframe":'+String(this.topframe)+"}","number"==typeof r.bidfloor&&(t+=',"bidfloor":'+r.bidfloor,"string"==typeof r.bidfloorcur&&(t+=',"bidfloorcur":"'+e(r.bidfloorcur)+'"')),"string"!=typeof r.slotID||r.slotID.match(/^\s*$/)||a.push('"sid":"'+e(r.slotID)+'"'),"number"==typeof r.siteID&&a.push('"siteID":'+r.siteID),a.length>0&&(t+=',"ext": {'+a.join()+"}"),i+1===this.impressions.length?t+="}":t+="},"}return t+="]}"},t.prototype.setPageOverride=function(e){return"string"==typeof e&&!e.match(/^\s*$/)&&(this.sitePage=e,!0)},t.prototype.addImpression=function(e,t,i,r,a,s){var o={id:String(this.impressions.length+1)};if("number"!=typeof e||e<=1)return null;if("number"!=typeof t||t<=1)return null;if(("string"==typeof a||"number"==typeof a)&&String(a).length<=50&&(o.slotID=String(a)),o.w=e,o.h=t,void 0!==i&&"number"!=typeof i)return null;if("number"==typeof i){if(i<0)return null;if(o.bidfloor=i,void 0!==r&&"string"!=typeof r)return null;o.bidfloorcur=r}if(void 0!==s){if(!("number"==typeof s&&s%1==0&&s>=0))return null;o.siteID=s}return this.impressions.push(o),o.id},t.prototype.buildRequest=function(){if(0!==this.impressions.length&&!0===this.initialized){var e,t=encodeURIComponent(this.serialize());A(y.INDEX_DEBUG_MODE.queryParam).toUpperCase()==y.INDEX_DEBUG_MODE.mode.sandbox.queryValue.toUpperCase()?(this.siteID=y.INDEX_DEBUG_MODE.mode.sandbox.siteID,e="http:"===l.getTopWindowLocation().protocol?"http://sandbox.ht.indexexchange.com":"https://sandbox.ht.indexexchange.com",l.logMessage("IX DEBUG: Sandbox mode activated")):e="http:"===l.getTopWindowLocation().protocol?"http://as.casalemedia.com":"https://as-sec.casalemedia.com";var i=encodeURIComponent("0.31.0");return e+="/cygnus?v=7&fn=cygnus_index_parse_res&s="+this.siteID+"&r="+t+"&pid=pb"+i,"number"==typeof this.timeoutDelay&&this.timeoutDelay%1==0&&this.timeoutDelay>=0&&(e+="&t="+this.timeoutDelay),e}};try{if("undefined"==typeof cygnus_index_args||void 0===cygnus_index_args.siteID||void 0===cygnus_index_args.slots)return;var a=new t(cygnus_index_args.siteID,cygnus_index_args.parseFn,cygnus_index_args.timeout);cygnus_index_args.url&&"string"==typeof cygnus_index_args.url&&a.setPageOverride(cygnus_index_args.url),_IndexRequestData.impIDToSlotID[a.requestID]={},_IndexRequestData.reqOptions[a.requestID]={};for(var s,o,n=0;n<cygnus_index_args.slots.length;n++)s=cygnus_index_args.slots[n],(o=a.addImpression(s.width,s.height,s.bidfloor,s.bidfloorcur,s.id,s.siteID))&&(_IndexRequestData.impIDToSlotID[a.requestID][o]=String(s.id));return"number"==typeof cygnus_index_args.targetMode&&(_IndexRequestData.reqOptions[a.requestID].targetMode=cygnus_index_args.targetMode),"function"==typeof cygnus_index_args.callback&&(_IndexRequestData.reqOptions[a.requestID].callback=cygnus_index_args.callback),a.buildRequest()}catch(e){l.logError("Error calling index adapter",m,e)}},N=function(){function e(e){var t=d.default.createBid(2);return t.bidderCode=v,u.default.addBidResponse(e,t),t}function t(e,t){for(var i=0;i<t.length;i++)if(e.id===t[i].id)return t;return t.push(e),t}function i(e,t){var i=d.default.createBid(e,t);return i.code=a.getBidderCode(),i.bidderCode=a.getBidderCode(),i}function r(e){var t=+e;return!(isNaN(t)||!l.isNumber(t)||l.isArray(e))||(l.logError("Duration is invalid, must be a number. Got: "+e),!1)}var a=new n.default("indexExchange"),g={},y=["id","siteID"],A="",N={};return pbjs.handleCygnusResponse=function(e){if(!e||!e.seatbid||l.isEmpty(e.seatbid))return l.logInfo("Cygnus returned no bids"),void Object.keys(N).forEach((function(e){var t=N[e].prebid,r=i(p.STATUS.NO_BID,t);l.logInfo(JSON.stringify(r)),u.default.addBidResponse(t.placementCode,r)}));e.seatbid.forEach((function(e){e.bid.forEach((function(e){var t=!0;if(void 0===N[e.impid])return l.logInfo("Cygnus returned mismatched id"),void Object.keys(N).forEach((function(e){var t=N[e].prebid,r=i(p.STATUS.NO_BID,t);u.default.addBidResponse(t.placementCode,r)}));e.ext.vasturl||(l.logInfo("Cygnus returned no vast url"),t=!1),f.parse(e.ext.vasturl).host===window.location.host&&(l.logInfo("Cygnus returned no vast url"),t=!1);var r=void 0;if("string"==typeof e.ext.pricelevel){var a=e.ext.pricelevel;"_"===a.charAt(0)&&(a=a.slice(1)),r=a/100,l.isNumber(r)&&!isNaN(r)||(l.logInfo("Cygnus returned invalid price"),t=!1)}else t=!1;var s=N[e.impid].prebid,o=N[e.impid].cygnus;if(t){var n=i(p.STATUS.GOOD,s);n.cpm=r,n.width=o.video.w,n.height=o.video.h,n.vastUrl=e.ext.vasturl,n.descriptionUrl=e.ext.vasturl,n.mediaType="video",u.default.addBidResponse(s.placementCode,n)}else{var d=i(p.STATUS.NO_BID,s);u.default.addBidResponse(s.placementCode,d)}}))})),N={}},s(this,{callBids:function(i){if(void 0!==i&&!l.isEmpty(i)){var a=i.bids;void 0===window._IndexRequestData&&(window._IndexRequestData={},window._IndexRequestData.impIDToSlotID={},window._IndexRequestData.reqOptions={}),_IndexRequestData.targetAggregate={open:{},private:{}},cygnus_index_args.slots=[];var s=[];a.forEach((function(i){if("video"===i.mediaType){var a=(function(e){if(function(e){if("video"===e.mediaType&&l.hasValidBidRequest(e.params.video,Object.keys(I),m)&&(function(e){var t=+e;return!(isNaN(t)||!l.isNumber(t)||t<0||l.isArray(e))||(l.logError("Site ID is invalid, must be a number > 0. Got: "+e),!1)})(e.params.video.siteID)&&(function(e){return void 0!==e&&l.isStr(e)?(e=e.toUpperCase(),!!_[e]||(l.logError("Player type is invalid, must be one of: "+Object.keys(_)),!1)):(l.logError("Player type is invalid, must be one of: "+Object.keys(_)),!1)})(e.params.video.playerType)&&(function(e){if(!l.isArray(e)||l.isEmpty(e))return l.logError("Protocol array is not an array. Got: "+e),!1;for(var t=0;t<e.length;t++){var i=e[t];if(!D[i])return l.logError("Protocol array contains an invalid protocol, must be one of: "+D+". Got: "+i),!1}return!0})(e.params.video.protocols)&&r(e.params.video.maxduration)&&e.params.video.maxduration>0)return e}(e)){e=(function(e){e.params.video.siteID=+e.params.video.siteID,e.params.video.maxduration=+e.params.video.maxduration,e.params.video.protocols=e.params.video.protocols.reduce((function(e,t){return e.concat(D[t])}),[]);var t=e.params.video.minduration;void 0!==t&&r(t)||(l.logInfo("Using default value for 'minduration', default: "+h.minduration),e.params.video.minduration=h.minduration);var i=e.params.video.startdelay;void 0!==i&&(function(e){if(void 0===q[e]){var t=+e;if(isNaN(t)||!l.isNumber(t)||t<-2||l.isArray(e))return l.logInfo("Start delay is invalid, must be a number >= -2. Got: "+e),!1}return!0})(i)||(l.logInfo("Using default value for 'startdelay', default: "+h.startdelay),e.params.video.startdelay=h.startdelay);var a=e.params.video.linearity;void 0!==a&&(function(e){return!!b[e]||(l.logInfo("Linearity is invalid, must be one of: "+Object.keys(b)+". Got: "+e),!1)})(a)||(l.logInfo("Using default value for 'linearity', default: "+h.linearity),e.params.video.linearity=h.linearity);var s=e.params.video.mimes,o=e.params.video.playerType.toUpperCase();void 0!==s&&(function(e){if(!l.isArray(e)||l.isEmpty(e))return l.logError("MIMEs array is not an array. Got: "+e),!1;for(var t=0;t<e.length;t++){var i=e[t];if(!l.isStr(i)||l.isEmptyStr(i)||!/^\w+\/[\w-]+$/.test(i))return l.logError("MIMEs array contains an invalid MIME type. Got: "+i),!1}return!0})(s)||(l.logInfo("Using default value for 'mimes', player type: '"+o+"', default: "+w[o]),e.params.video.mimes=w[o]);var n=e.params.video.apiList;return void 0===n||(function(e,t){if(!l.isArray(e)||l.isEmpty(e))return l.logInfo("API array is not an array. Got: "+e),!1;for(var i=0;i<e.length;i++){var r=+e[i];if(isNaN(r)||!x[t].includes(r))return l.logInfo("API array contains an invalid API version. Got: "+r),!1}return!0})(n,o)||(l.logInfo("Removing invalid api versions from api list."),l.isArray(n)?e.params.video.apiList=n.filter((function(e){return x[o].includes(e)})):e.params.video.apiList=[]),void 0===n&&e.params.video.allowVPAID&&l.isA(e.params.video.allowVPAID,"Boolean")&&(e.params.video.mimes=e.params.video.mimes.concat(T[o]),e.params.video.apiList=x[o]),l.isEmpty(e.params.video.apiList)&&(l.logInfo("API list is empty, VPAID ads will not be requested."),delete e.params.video.apiList),delete e.params.video.playerType,delete e.params.video.allowVPAID,e})(e),N[e.bidId]={},N[e.bidId].prebid=e;var t={};t.id=e.bidId,t.ext={},t.ext.siteID=e.params.video.siteID,delete e.params.video.siteID;var i=e.params.video.startdelay;if(0===e.params.video.startdelay?i="preroll":void 0===q[e.params.video.startdelay]&&(i="midroll"),t.ext.sid=[R[i],1,1,"s"].join("_"),t.video={},e.params.video){Object.keys(e.params.video).filter((function(e){return void 0!==I[e]||void 0!==h[e]})).forEach((function(i){"startdelay"===i&&void 0!==q[e.params.video[i]]&&(e.params.video[i]=q[e.params.video[i]]),"linearity"===i&&void 0!==b[e.params.video[i]]&&(e.params.video[i]=b[e.params.video[i]]),t.video[i]=e.params.video[i]}));var a=(function(e){var t=[],i={};if(l.isArray(e)&&2===e.length&&!l.isArray(e[0])){if(!l.isNumber(e[0])||!l.isNumber(e[1]))return t;i.width=e[0],i.height=e[1],t.push(i)}else if("object"===(void 0===e?"undefined":o(e)))for(var r=0;r<e.length;r++){var a=e[r];(i={}).width=parseInt(a[0],10),i.height=parseInt(a[1],10),t.push(i)}return t})(e.sizes).shift();if(a&&a.width&&a.height)return t.video.w=a.width,t.video.h=a.height,N[e.bidId].cygnus=t,t}}})(i);void 0!==a&&s.push(a)}else!(function(i){if(l.hasValidBidRequest(i.params,y,m)){var r=0;l.isArray(i.sizes[0])||(i.sizes=[i.sizes]);for(var a=0;a<i.sizes.length;a++){for(var s=!1,o=0;o<C.length;o++)if(i.sizes[a][0]==C[o][0]&&i.sizes[a][1]==C[o][1]){i.sizes[a][0]=Number(i.sizes[a][0]),i.sizes[a][1]=Number(i.sizes[a][1]),s=!0;break}if(s){var n=!1;if(i.params.size&&l.isArray(i.params.size)){if(i.sizes[a][0]!=i.params.size[0]||i.sizes[a][1]!=i.params.size[1]){e(i.placementCode);continue}n=!0}i.params.timeout&&void 0===cygnus_index_args.timeout&&(cygnus_index_args.timeout=i.params.timeout);var d=Number(i.params.siteID);if("number"!=typeof d||d%1!=0||d<=0)l.logMessage(m+" slot excluded from request due to invalid siteID"),e(i.placementCode);else if(d&&void 0===cygnus_index_args.siteID&&(cygnus_index_args.siteID=d),l.hasValidBidRequest(i.params,y,m)){A=i.placementCode;var u=i.params[y[0]];if("string"!=typeof u&&"number"!=typeof u){l.logError(m+" bid contains invalid slot ID from "+i.placementCode+". Discarding slot"),e(i.placementCode);continue}r++;var p={width:i.sizes[a][0],height:i.sizes[a][1]},f=n?String(u):u+"_"+r;if(g[f]=i,cygnus_index_args.slots=t({id:f,width:p.width,height:p.height,siteID:d||cygnus_index_args.siteID},cygnus_index_args.slots),i.params.tier2SiteID){var c=Number(i.params.tier2SiteID);if(void 0!==c&&!c)continue;cygnus_index_args.slots=t({id:"T1_"+f,width:p.width,height:p.height,siteID:c},cygnus_index_args.slots)}if(i.params.tier3SiteID){var v=Number(i.params.tier3SiteID);if(void 0!==v&&!v)continue;cygnus_index_args.slots=t({id:"T2_"+f,width:p.width,height:p.height,siteID:v},cygnus_index_args.slots)}}}else l.logMessage(m+" slot excluded from request due to no valid sizes"),e(i.placementCode)}}else e(i.placementCode)})(i)})),s.length>0&&(function(e,t){var i={id:e,imp:t,site:{page:l.getTopWindowUrl()}};if(!l.isEmpty(i.imp)){var r=(function(e,t){var i="https:"===window.location.protocol?f.parse(S):f.parse(E);return i.search.s=e,i.search.r=encodeURIComponent(JSON.stringify(t)),f.format(i)})(i.imp[0].ext.siteID,i);c.default.loadScript(r)}})(i.bidderRequestId,s),cygnus_index_args.slots.length>20&&l.logError("Too many unique sizes on slots, will use the first 20.",m),cygnus_index_args.slots.length>0&&c.default.loadScript(O());var n=!1;window.cygnus_index_ready_state=function(){if(!n){n=!0;try{var t=_IndexRequestData.targetIDToBid;for(var i in g){var r=g[i].placementCode,a=[];for(var s in t){var p=/^(T\d_)?(.+)_(\d+)$/.exec(s);if(p){var f=p[1]||"",c=p[2],y=p[3],I=(function(e,t){var i=e.slots,r={};return l._each(i,(function(e){e.id===t&&(r=e)})),r})(cygnus_index_args,f+c);if(c===i){var h=d.default.createBid(1);h.cpm=y/100,h.ad=t[s][0],h.bidderCode=v,h.width=I.width,h.height=I.height,h.siteID=I.siteID,"object"===o(_IndexRequestData.targetIDToResp)&&"object"===o(_IndexRequestData.targetIDToResp[s])&&void 0!==_IndexRequestData.targetIDToResp[s].dealID?(void 0===_IndexRequestData.targetAggregate.private[r]&&(_IndexRequestData.targetAggregate.private[r]=[]),h.dealId=_IndexRequestData.targetIDToResp[s].dealID,_IndexRequestData.targetAggregate.private[r].push(c+"_"+_IndexRequestData.targetIDToResp[s].dealID)):(void 0===_IndexRequestData.targetAggregate.open[r]&&(_IndexRequestData.targetAggregate.open[r]=[]),_IndexRequestData.targetAggregate.open[r].push(c+"_"+y)),a.push(h)}}else l.logError("Unable to parse "+s+", skipping slot",m)}if(a.length>0)for(var _=0;_<a.length;_++)u.default.addBidResponse(r,a[_]);else e(r)}}catch(e){l.logError("Error calling index adapter",m,e),(function(){var e=d.default.createBid(2);e.bidderCode=v,u.default.addBidResponse(A,e)})()}finally{_IndexRequestData.targetIDToBid={}}g={}}}}}})};g.default.registerBidAdapter(new N,"indexExchange",{supportedMediaTypes:["video"]}),e.exports=N}},[138]);
pbjsChunk([51],{170:function(e,t,n){e.exports=n(171)},171:function(e,t,n){"use strict";var i=n(9),r=n(3),a=n(2),o=n(6),d=n(4),s=n(0),c=function(){function e(e,t){var i=r.createBid(e?d.STATUS.GOOD:d.STATUS.NO_BID,t);if(i.bidderCode=n,e){var o=e.creative[0];i.ad=e.html,i.cpm=Number(e.pub_rev)/1e3,i.ad_id=e.adid,e.deal_id&&(i.dealId=e.deal_id),o&&(i.width=o.width,i.height=o.height),e.tbd&&(i.tbd=e.tbd)}a.addBidResponse(t.placementCode,i)}function t(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]||delete e[t]);return s._map(Object.keys(e),(function(t){return t+"="+e[t]})).join("&")}var n="openx",c="hb_pb",u="1.0.1",p=void 0,m=i.config.getConfig("bidderTimeout"),l=!0,h=null;return{callBids:function(n){var r=void 0,a=n.bids||[],d=window.parent!==window?document.referrer:window.location.href;d=d&&encodeURIComponent(d);try{r=window.self!==window.top}catch(e){r=!1}if(0!==a.length){var f=a[0].params.delDomain,b=a[0].params.bc;p=new Date(n.start),n.timeout&&(m=n.timeout),a[0].params.hasOwnProperty("sendBoPixel")&&"boolean"==typeof a[0].params.sendBoPixel&&(l=a[0].params.sendBoPixel),(function(n,r,a){if(s.isArray(n)){r.auid=s._map(n,(function(e){return e.params.unit})).join("%2C"),r.dddid=s._map(n,(function(e){return e.transactionId})).join("%2C"),r.aus=s._map(n,(function(e){return s.parseSizesInput(e.sizes).join(",")})).join("|");var d=[],c=!1;n.forEach((function(e){if(e.params.customParams){var t=s._map(Object.keys(e.params.customParams),(function(t){return (function(t,n){var i=e.params.customParams[t];return Array.isArray(i)&&(i=i.join(",")),(t+"="+i).replace("+",".").replace("/","_")})(t)})),n=window.btoa(t.join("&"));c=!0,d.push(n)}else d.push("")})),c&&(r.tps=d.join("%2C"));var u=[],f=!1;n.forEach((function(e){e.params.customFloor?(u.push(1e3*e.params.customFloor),f=!0):u.push(0)})),f&&(r.aumfs=u.join("%2C"));try{var b="//"+a+"/w/1.0/arj?"+t(r);o.ajax(b,(function(n){try{n=JSON.parse(n)}catch(e){n={ads:{}}}var r=n.ads.ad;n.ads&&n.ads.pixels&&(function(e){var t=s.createInvisibleIframe();t.setAttribute("id","openx-pd"),t.setAttribute("name","openx-pd");var n=document.body;n&&(t.src=e,h?(h.parentNode.replaceChild(t,h),h=t):h=n.appendChild(t))})(n.ads.pixels),r||(r=[]);for(var a=pbjs._bidsRequested.find((function(e){return"openx"===e.bidderCode})).bids,o=0;o<a.length;o++){for(var d=a[o],c=null,u=null,f=0;f<r.length;f++)if(u=r[f],String(d.params.unit)===String(u.adunitid)&&(function(e,t){var n=s.parseSizesInput(t.sizes),i=n&&n.length||0,r=!1,a=e.creative&&e.creative[0],o=String(a.width)+"x"+String(a.height);if(s.isArray(n))for(var d=0;d<i;d++){var c=n[d];if(String(c)===String(o)){r=!0;break}}return r})(u,d)&&!u.used){c=u.adunitid;break}var b={bd:+new Date-p,br:"0",bt:Math.min(m,window.PREBID_TIMEOUT||i.config.getConfig("bidderTimeout")),bs:window.location.hostname};c&&u.pub_rev?(u.used=!0,b.br=b.bt<b.bd?"t":"p",b.bp=u.pub_rev,b.ts=u.ts,e(u,d),!0===l&&(function(e,n){var i=new Image,r=e.tracking.impression.match(/([^?]+\/)ri\?/);r&&(i.src=r[1]+"bo?"+t(n))})(u.creative[0],b)):e(null,d)}}),void 0,{withCredentials:!0})}catch(e){s.logMessage("Ajax call failed due to "+e)}}})(a,{ju:d,jr:d,ch:document.charSet||document.characterSet,res:screen.width+"x"+screen.height+"x"+screen.colorDepth,ifr:r,tz:p.getTimezoneOffset(),tws:(function(e){var t=void 0,n=void 0,i=window,r=document,a=r.documentElement,o=void 0;if(e){try{i=window.top,r=window.top.document}catch(e){return}a=r.documentElement,o=r.body,t=i.innerWidth||a.clientWidth||o.clientWidth,n=i.innerHeight||a.clientHeight||o.clientHeight}else a=r.documentElement,t=i.innerWidth||a.clientWidth,n=i.innerHeight||a.clientHeight;return t+"x"+n})(r),ef:"bt%2Cdb",be:1,bc:b||c+"_"+u,nocache:(new Date).getTime()},f)}}}};n(1).registerBidAdapter(new c,"openx"),e.exports=c}},[170]);
pbjsChunk([45],{185:function(a,e,t){a.exports=t(186)},186:function(a,e,t){"use strict";function r(){var a,e,t,r,o,s=[],c=void 0;return pbjs.handlePubmaticCallback=function(){var e={},t={};try{e=c.contentWindow.bidDetailsMap,t=c.contentWindow.progKeyValueMap}catch(a){i.logError(a,"Error parsing Pubmatic response")}var r,o,s,p,l,m=e||{},u=t||{};for(r=0;r<a.length;r++){var b;o=m[(p=a[r].params).adSlot]||{},u[p.adSlot]&&-1===u[p.adSlot].indexOf("=")&&(u[p.adSlot]=u[p.adSlot].replace(/([a-z]+);(.[^;]*)/gi,"$1=$2")),"1"===(s=(u[p.adSlot]||"").split(";").reduce((function(a,e){var t=e.split("=");return a[t[0]]=t[1],a}),{})).bidstatus?(l=s.bidid.split("@")[1].split("x"),(b=d.createBid(1)).bidderCode="pubmatic",b.adSlot=p.adSlot,b.cpm=Number(s.bid),b.ad=unescape(o.creative_tag),b.ad+=i.createTrackPixelIframeHtml(decodeURIComponent(o.tracking_url)),b.width=l[0],b.height=l[1],b.dealId=s.wdeal,n.addBidResponse(a[r].placementCode,b)):((b=d.createBid(2)).bidderCode="pubmatic",n.addBidResponse(a[r].placementCode,b))}},{callBids:function(d){a=d.bids,s=[];for(var n=0;n<a.length;n++){var p=a[n];e=e||p.params.publisherId,t=t||p.params.age||"",r=r||p.params.gender||"",o=o||p.params.kvs||"",s.push(p.params.adSlot)}!(function(){c=i.createInvisibleIframe();var a=document.getElementsByTagName("head")[0];a.insertBefore(c,a.firstChild);var d=i.getIframeDocument(c);d.write(function(){var a='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><base target="_top" /><script>inDapIF=true;<\/script></head>';a+="<body>",a+="<script>",a+='window.pm_pub_id = "%%PM_PUB_ID%%";window.pm_optimize_adslots = [%%PM_OPTIMIZE_ADSLOTS%%];window.kaddctr = "%%PM_ADDCTR%%";window.kadgender = "%%PM_GENDER%%";window.kadage = "%%PM_AGE%%";window.pm_async_callback_fn = "window.parent.pbjs.handlePubmaticCallback";',a+="<\/script>";var d={};return d.PM_PUB_ID=e,d.PM_ADDCTR=o,d.PM_GENDER=r,d.PM_AGE=t,d.PM_OPTIMIZE_ADSLOTS=s.map((function(a){return"'"+a+"'"})).join(","),a+='<script src="https://ads.pubmatic.com/AdServer/js/gshowad.js"><\/script>',a+="<script>",a+="<\/script>",a+="</body></html>",a=i.replaceTokenInString(a,d,"%%")}()),d.close()})()}}}var i=t(0),d=t(3),n=t(2);t(1).registerBidAdapter(new r,"pubmatic"),a.exports=r}},[185]);
pbjsChunk([2],{200:function(e,t,n){e.exports=n(201)},201:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(){return w.concat(j)}function r(){return w.concat(C)}function i(){if(function(){var e=localStorage.getItem(r());return Date.now()-e>q}()){var e=T.generateUUID();localStorage.setItem(o(),e)}N.sessionId=localStorage.getItem(o())?localStorage.getItem(o()):"",localStorage.setItem(r(),Date.now())}function u(){localStorage.setItem(s(),Date.now())}function s(){return w.concat(V)}function c(e){return w.concat(e)}function l(){return void 0!==N.adUnits&&N.adUnits.length>0}function f(){A.events=[]}function d(e,t,n){var a=E+"?publisherIds[]="+N.publisherIds.join("&publisherIds[]=")+"&host="+window.location.hostname,o=new XMLHttpRequest;o.open("POST",a,!0),o.setRequestHeader("Content-Type","text/plain"),o.withCredentials=!0,o.onreadystatechange=function(t){4==this.readyState&&T.logInfo("Event "+e+" sent "+n+" to roxot prebid analytic with result"+t)},o.send(JSON.stringify(t))}Object.defineProperty(t,"__esModule",{value:!0});var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},g=a(n(8)),v=a(n(4)),y=a(n(1)),T=n(0),E="//pa.rxthdr.com/analytic",b=v.default.EVENTS.AUCTION_INIT,h=v.default.EVENTS.AUCTION_END,S=v.default.EVENTS.BID_WON,m=v.default.EVENTS.BID_REQUESTED,I=v.default.EVENTS.BID_ADJUSTMENT,_=v.default.EVENTS.BID_RESPONSE,N={publisherIds:[],utmTagData:[],adUnits:[]},D={options:{},events:[]},A={options:{},events:[]},U="not_started",w="roxot_analytics_",O=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],V="utm_timeout",M=36e5,q=36e5,j="session_id",C="session_timeout",B=p((0,g.default)({url:E,analyticsType:"endpoint"}),{track:function(e){var t=e.eventType,n=e.args;if(void 0!==N.publisherIds&&N.publisherIds.length>0){var a=p({},n);if(a&&a.ad&&(a.ad=""),t===b&&(U="started",f()),t===S&&"not_started"===U)return i(),(function(e,t){D.options=N,l()?N.adUnits.includes(t.adUnitCode)&&(D.events=[{args:t,eventType:e}]):D.events=[{args:t,eventType:e}]})(t,a),D.events.length>0&&d(t,D,"bidWon"),void(D.events=[]);t===h?(i(),A.options=N,A.events.length>0&&A.events.some((function(e){return m===e.eventType||S===e.eventType}))&&d(t,A,"eventStack"),f(),U="not_started"):(function(e,t){e===m?(l()&&(t.bids=(function(e){var n=[];return t.bids.forEach((function(e){N.adUnits.includes(e.placementCode)&&n.push(e)})),n})()),t.bids.length>0&&A.events.push({eventType:e,args:t})):(function(e,t){if(l()){var n=[I,_,S];if(!N.adUnits.includes(t)&&n.includes(e))return!1}return!0})(e,t.adUnitCode)&&A.events.push({eventType:e,args:t})})(t,a)}}});B.originEnableAnalytics=B.enableAnalytics,B.enableAnalytics=function(e){(N=e.options).utmTagData=this.buildUtmTagData(),T.logInfo("Roxot Analytics enabled with config",N),B.originEnableAnalytics(e)},B.buildUtmTagData=function(){var e={},t=!1;return O.forEach((function(n){var a=(function(e){var t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,(function(e,n,a){t[n]=void 0!==a?a:""})),t[e]?t[e]:""})(n);""!==a&&(t=!0),e[n]=a})),O.forEach((function(n){t?(localStorage.setItem(c(n),e[n]),u()):(function(){var e=localStorage.getItem(s());return Date.now()-e>M})()||(e[n]=localStorage.getItem(c(n))?localStorage.getItem(c(n)):"",u())})),e},y.default.registerAnalyticsAdapter({adapter:B,code:"roxot"}),t.default=B},8:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){function t(e){var t=e.eventType,n=e.args,a=this;_&&window[_]&&t&&n?this.track({eventType:t,args:n}):D.push((function(){A++,a.track({eventType:t,args:n})}))}function n(){if(U){for(var e=0;e<D.length;e++)D[e]();D.push=function(e){e()},U=!1}c.logMessage("event count sent to "+_+": "+A)}var r,m=e.url,I=e.analyticsType,_=e.global,N=e.handler,D=[],A=0,U=!0;return I===E&&(0,i.loadScript)(m,n),(I===b||h)&&n(),{track:function(e){var t=e.eventType,n=e.args;(this.getAdapterType()===E||h)&&window[_](N,t,n),this.getAdapterType()===b&&function(e){var t=e.eventType,n=e.args,a=e.callback;(0,u.ajax)(m,a,JSON.stringify({eventType:t,args:n}))}.apply(void 0,arguments)},enqueue:t,enableAnalytics:function(e){var n=this,i=this;if(S="object"!==(void 0===e?"undefined":o(e))||"object"!==o(e.options)||void 0===e.options.sampling||Math.random()<parseFloat(e.options.sampling)){var u;s.getEvents().forEach((function(e){if(e){var n=e.eventType,a=e.args;n!==p&&t.call(i,{eventType:n,args:a})}})),a(u={},d,(function(e){return n.enqueue({eventType:d,args:e})})),a(u,g,(function(e){return n.enqueue({eventType:g,args:e})})),a(u,p,(function(e){return n.enqueue({eventType:p,args:e})})),a(u,v,(function(e){return n.enqueue({eventType:v,args:e})})),a(u,y,(function(e){return n.enqueue({eventType:y,args:e})})),a(u,T,(function(e){return n.enqueue({eventType:T,args:e})})),a(u,f,(function(e){return n.enqueue({eventType:f,args:e})})),a(u,l,(function(t){t.config=e.options,n.enqueue({eventType:l,args:t})})),r=u,c._each(r,(function(e,t){s.on(t,e)}))}else c.logMessage('Analytics adapter for "'+_+'" disabled by sampling');this.enableAnalytics=function(){return c.logMessage('Analytics adapter for "'+_+'" already enabled, unnecessary call to `enableAnalytics`.')}},disableAnalytics:function(){c._each(r,(function(e,t){s.off(t,e)}))},getAdapterType:function(){return I},getGlobal:function(){return _},getHandler:function(){return N},getUrl:function(){return m}}};var r=(function(e){return e&&e.__esModule?e:{default:e}})(n(4)),i=n(5),u=n(6),s=n(10),c=n(0),l=r.default.EVENTS.AUCTION_INIT,f=r.default.EVENTS.AUCTION_END,d=r.default.EVENTS.BID_REQUESTED,p=r.default.EVENTS.BID_TIMEOUT,g=r.default.EVENTS.BID_RESPONSE,v=r.default.EVENTS.BID_WON,y=r.default.EVENTS.BID_ADJUSTMENT,T=r.default.EVENTS.SET_TARGETING,E="library",b="endpoint",h="bundle",S=!0}},[200]);
pbjsChunk([40],{204:function(e,r,t){e.exports=t(205)},205:function(e,r,t){"use strict";function i(){return"hpbjs_lite_"+pbjs.version}function n(){return[window.screen.width,window.screen.height].join("x")}function o(e){var r=e.params;if("video"===e.mediaType){var t=[];return r.video.playerWidth&&r.video.playerHeight?t=[r.video.playerWidth,r.video.playerHeight]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}return s(Array.isArray(r.sizes)?r.sizes.map((function(e){return(p[e]||"").split("x")})):e.sizes)}function s(e){var r=[15,2,9];return u.parseSizesInput(e).reduce((function(e,r){var t=parseInt(p[r],10);return t&&e.push(t),e}),[]).sort((function(e,t){var i=r.indexOf(e),n=r.indexOf(t);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-t}))}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var a=(function(){return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return (function(e,r){var t=[],i=!0,n=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(t.push(s.value),!r||t.length!==r);i=!0);}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}return t})(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.masSizeOrdering=s,r.resetUserSync=function(){f=!1};var u=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r})(t(0)),c=t(15),p={1:"468x60",2:"728x90",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",43:"320x50",44:"300x50",48:"300x300",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",65:"640x480",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",195:"600x300"};u._each(p,(function(e,r){return p[e]=r}));var l=r.spec={code:"rubicon",aliases:["rubiconLite"],supportedMediaTypes:["video"],isBidRequestValid:function(e){if("object"!==d(e.params))return!1;var r=e.params;if(!/^\d+$/.test(r.accountId))return!1;return!(o(e).length<1)&&!!("video"!==e.mediaType||"object"===d(r.video)&&r.video.size_id)},buildRequests:function(e,r){return e.map((function(e){if(e.startTime=(new Date).getTime(),"video"===e.mediaType){var t=e.params,s=o(e),a={page_url:t.referrer?t.referrer:u.getTopWindowUrl(),resolution:n(),account_id:t.accountId,integration:i(),timeout:r.timeout-(Date.now()-r.auctionStart+500),stash_creatives:!0,ae_pass_through_parameters:t.video.aeParams,slots:[]},c={site_id:t.siteId,zone_id:t.zoneId,position:t.position||"btf",floor:parseFloat(t.floor)>.01?t.floor:.01,element_id:e.placementCode,name:e.placementCode,language:t.video.language,width:s[0],height:s[1],size_id:t.video.size_id};return t.inventory&&"object"===d(t.inventory)&&(c.inventory=t.inventory),t.keywords&&Array.isArray(t.keywords)&&(c.keywords=t.keywords),t.visitor&&"object"===d(t.visitor)&&(c.visitor=t.visitor),a.slots.push(c),{method:"POST",url:"//fastlane-adv.rubiconproject.com/v1/auction/video",data:a,bidRequest:e}}var p=e.params,l=p.accountId,f=p.siteId,v=p.zoneId,y=p.position,m=p.floor,x=p.keywords,h=p.visitor,_=p.inventory,b=p.userId,g=p.referrer;m=(m=parseFloat(m))>.01?m:.01,y=y||"btf";var w=o(e),j=["account_id",l,"site_id",f,"zone_id",v,"size_id",w[0],"alt_size_ids",w.slice(1).join(",")||void 0,"p_pos",y,"rp_floor",m,"rp_secure","https:"===location.protocol?"1":"0","tk_flint",i(),"tid",e.transactionId,"p_screen_res",n(),"kw",x,"tk_user_key",b];return null!==h&&"object"===(void 0===h?"undefined":d(h))&&u._each(h,(function(e,r){return j.push("tg_v."+r,e)})),null!==_&&"object"===(void 0===_?"undefined":d(_))&&u._each(_,(function(e,r){return j.push("tg_i."+r,e)})),j.push("rand",Math.random(),"rf",g||u.getTopWindowUrl()),j=j.concat(function(){var e=(function(){var e=window.DigiTrust&&(pbjs.getConfig("digiTrustId")||window.DigiTrust.getUser({member:"T9QSFKPDN9"}));return e&&e.success&&e.identity||null})();return!e||e.privacy&&e.privacy.optout?[]:["dt.id",e.id,"dt.keyv",e.keyv,"dt.pref",0]}()),j=j.reduce((function(e,r,t){return t%2==0&&void 0!==j[t+1]?e+r+"="+encodeURIComponent(j[t+1])+"&":e}),"").slice(0,-1),{method:"GET",url:"//fastlane.rubiconproject.com/a/api/fastlane.json",data:j,bidRequest:e}}))},interpretResponse:function(e,r){var t=r.bidRequest,i=e.ads;return"object"!==(void 0===e?"undefined":d(e))||"ok"!==e.status?[]:("object"===(void 0===t?"undefined":d(t))&&"video"===t.mediaType&&"object"===(void 0===i?"undefined":d(i))&&(i=i[t.placementCode]),!Array.isArray(i)||i.length<1?[]:(i=i.sort((function(e,r){return(r.cpm||0)-(e.cpm||0)}))).reduce((function(e,r){if("ok"!==r.status)return[];var i={requestId:t.bidId,currency:"USD",creative_id:r.creative_id,bidderCode:l.code,cpm:r.cpm||0,dealId:r.deal};if("video"===t.mediaType)i.width=t.params.video.playerWidth,i.height=t.params.video.playerHeight,i.vastUrl=r.creative_depot_url,i.descriptionUrl=r.impression_id,i.impression_id=r.impression_id;else{i.ad=(function(e,r){return"<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='"+r+"'>\n<script type='text/javascript'>"+e+"<\/script>\n</div>\n</body>\n</html>"})(r.script,r.impression_id);var n=p[r.size_id].split("x").map((function(e){return Number(e)})),o=a(n,2);i.width=o[0],i.height=o[1]}return i.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:t.placementCode}),e.push(i),e}),[]))},getUserSyncs:function(){if(!f)return f=!0,{type:"iframe",url:"https://tap-secure.rubiconproject.com/partner/scripts/rubicon/emily.html?rtb_ext=1"}}},f=!1;(0,c.registerBidder)(l)}},[204]);
pbjs.processQueue();