text: pbjsChunk([120],{486:function(e,t,r){e.exports=r(487)},487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"spec",function(){return c});var n=r(1),i=r(2),o=r(4),d=r(0);function a(e){if(e.requestId&&e.cpm&&e.creativeId&&e.ttl&&e.currency)switch(e.mediaType){case i.b:return Boolean(e.width&&e.height&&e.ad);case i.d:return Boolean(e.vastXml||e.vastUrl)}}function s(e){var t=[];return e.sizes.forEach(function(e){t.push({width:e[0],height:e[1]})}),t}var c={code:"project-limelight",supportedMediaTypes:[i.b,i.d],isBidRequestValid:function(e){return Boolean(e.bidId&&e.params)},buildRequests:function(e){var t;try{(t=window.top).location.toString()}catch(e){d.logMessage(e),t=window}for(var r=[],n={secure:"https:"===location.protocol,deviceWidth:t.screen.width,deviceHeight:t.screen.height,adUnits:r},i=0;i<e.length;i++){var o=e[i],a=o.params;r.push({id:a.adUnitId,bidId:o.bidId,transactionId:o.transactionId,sizes:s(o),type:a.adUnitType.toUpperCase()})}return{method:"POST",url:"https://ads.project-limelight.com/hb",data:n}},onBidWon:function(e){var t=e.pbMg;""!==e.nurl&&(e.nurl=e.nurl.replace(/\$\{AUCTION_PRICE\}/,t),Object(o.a)(e.nurl,null))},interpretResponse:function(e){for(var t=[],r=e.body,n=r.length,i=0;i<n;i++){var o=r[i];a(o)&&t.push(o)}return t}};Object(n.registerBidder)(c)}},[486]);