text: pbjsChunk([56],{222:function(e,a,r){r(223),e.exports=r(224)},223:function(e,a,r){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.spec=void 0;var d=r(0),i=r(1),n=a.spec={code:"kumma",isBidRequestValid:function(e){return!!(e&&e.params&&e.params.pubId&&e.params.siteId)},buildRequests:function(e){var a={id:e[0].bidderRequestId,at:2,imp:e.map((function(e){return{id:(a=e).bidId,banner:(r=a,i=(0,d.parseSizesInput)(r.sizes)[0].split("x"),n=parseInt(i[0]),t=parseInt(i[1]),{w:n,h:t}),bidfloor:a.params.bidFloor||"0.000001",tagid:a.params.placementId.toString()};var a,r,i,n,t})),site:(function(e){var a=e&&0<e.length?e[0].params.pubId:"0",r=e&&0<e.length?e[0].params.siteId:"0";if(!e[0].params.app)return{publisher:{id:a.toString(),domain:(0,d.getTopWindowLocation)().hostname},id:r.toString(),ref:(0,d.getTopWindowReferrer)(),page:(0,d.getTopWindowLocation)().href};return null})(e),device:{ua:navigator.userAgent,language:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage,w:window.screen.width||window.innerWidth,h:window.screen.height||window.innerHeigh}};return{method:"POST",url:"//hb.kumma.com/",data:JSON.stringify(a)}},interpretResponse:function(e,a){return (function(e,r){var i={},n={},a=null;try{a=JSON.parse(e.data)}catch(e){(0,d.logError)("kumma.parse","ERROR",e)}a.imp.forEach((function(e){i[e.id]=e})),r&&r.seatbid.forEach((function(e){return e.bid.forEach((function(e){n[e.impid]=e}))}));var t=[];return Object.keys(i).forEach((function(e){if(n[e]){var a={};a.requestId=e,a.creativeId=n[e].adid,a.cpm=n[e].price,a.currency=r.cur,a.ttl=360,a.netRevenue=!0,a.ad=n[e].adm,a.ad=a.ad.replace(/\$(%7B|\{)AUCTION_IMP_ID(%7D|\})/gi,n[e].impid),a.ad=a.ad.replace(/\$(%7B|\{)AUCTION_AD_ID(%7D|\})/gi,n[e].adid),a.ad=a.ad.replace(/\$(%7B|\{)AUCTION_PRICE(%7D|\})/gi,n[e].price),a.ad=a.ad.replace(/\$(%7B|\{)AUCTION_CURRENCY(%7D|\})/gi,r.cur),a.ad=a.ad.replace(/\$(%7B|\{)AUCTION_BID_ID(%7D|\})/gi,r.bidid),a.width=i[e].banner.w,a.height=i[e].banner.h,t.push(a)}})),t})(a,e.body)}};(0,i.registerBidder)(n)},224:function(e,a){}},[222]);