text: pbjsChunk([149],{772:function(e,r,a){e.exports=a(773)},773:function(e,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),a.d(r,"spec",function(){return i});var g=a(0),t=a(1),s=a(2);var i=new function(){this.code="rhythmone",this.supportedMediaTypes=[s.d,s.b];var o=[2,3,5,6],c=["video/mp4"],m=[1,2,3,4],l=[1],u=[1,2,5],v={},h=this;function d(e,r){var a,t=[],s=0;r&&r.refererInfo&&r.refererInfo.stack.length&&((a=document.createElement("a")).href=r.refererInfo.stack[0],s="https:"==a.protocol?1:0);for(var i,n=0;n<e.length;n++){v[e[n].adUnitCode]=e[n];var d,p={};p.id=e[n].adUnitCode,p.bidfloor=parseFloat(g.deepAccess(e[n],"params.floor"))||0,p.secure=s,!g.deepAccess(e[n],"mediaTypes.banner")&&"banner"!==g.deepAccess(e[n],"mediaType")||(d=function(e){var r=e.sizes;e.mediaTypes&&e.mediaTypes.banner&&(r=e.mediaTypes.banner.sizes);var a=g.parseSizesInput(r),t=[];if(a.forEach(function(e){var r;!e||(r=f(e.split("x")))&&t.push({w:r[0],h:r[1]})}),t.length)return{format:t};return!1}(e[n]))&&(p.banner=d),!g.deepAccess(e[n],"mediaTypes.video")&&"video"!==g.deepAccess(e[n],"mediaType")||(p.video=function(e){var r=[];{var a,t;g.deepAccess(e,"mediaTypes.video.playerSize")&&(a=e.mediaTypes.video.playerSize,g.isArray(e.mediaTypes.video.playerSize[0])&&(a=e.mediaTypes.video.playerSize[0]),(t=f(a))&&(r=t))}return{mimes:g.deepAccess(e,"mediaTypes.video.mimes")||c,protocols:g.deepAccess(e,"mediaTypes.video.protocols")||o,w:r[0],h:r[1],startdelay:g.deepAccess(e,"mediaTypes.video.startdelay")||0,skip:g.deepAccess(e,"mediaTypes.video.skip")||0,playbackmethod:g.deepAccess(e,"mediaTypes.video.playbackmethod")||m,delivery:g.deepAccess(e,"mediaTypes.video.delivery")||l,api:g.deepAccess(e,"mediaTypes.video.api")||u}}(e[n])),(p.banner||p.video)&&(p.ext={bidder:{placementId:(i=e[n]).params.placementId,zone:i.params&&i.params.zone?i.params.zone:"1r",path:i.params&&i.params.path?i.params.path:"mvo"}},t.push(p))}return t}function f(e){var r=parseInt(e[0]),a=parseInt(e[1]);return r==r&&a==a&&[r,a]}function p(e,r){var a,t,s,i,n={id:e[0].bidderRequestId,imp:d(e,r),site:(i={domain:"",page:"",ref:""},(a=r)&&a.refererInfo&&(t=a.refererInfo,i.ref=t.referer,t.stack.length&&(i.page=t.stack[t.stack.length-1],(s=document.createElement("a")).href=t.stack[0],i.domain=s.hostname)),i),device:{ua:navigator.userAgent,ip:"",dnt:g.getDNT()?1:0},user:{ext:{consent:g.deepAccess(r,"gdprConsent.gdprApplies")?r.gdprConsent.consentString:""}},at:1,tmax:1e3,regs:{ext:{gdpr:!!g.deepAccess(r,"gdprConsent.gdprApplies")&&Boolean(1&r.gdprConsent.gdprApplies)}}};return e[0].schain&&(n.source={ext:{schain:e[0].schain}}),n}function y(e,r){for(var a=0;a<r.length;a++)if(r[a].params&&r[a].params[e])return r[a].params[e]}this.isBidRequestValid=function(e){return!(!e.params||!e.params.placementId)},this.getUserSyncs=function(e,r,a){return[]},this.buildRequests=function(e,r){var a=y("placementId",e);if(void 0===a||e.length<1)return[];var t=y("endpoint",e)||"https://tag.1rx.io/rmp/{placementId}/0/{path}?z={zone}",s=y("zone",e)||"1r",i=y("path",e)||"mvo";t=(t=(t=t.replace(/\{placementId\}/i,a)).replace(/\{zone\}/i,s)).replace(/\{path\}/i,i);var n=/(^v|(\.0)+$)/gi;t+="&hbv="+"4.35.0-pre".replace(n,"")+","+"2.1".replace(n,"");var d=p(e,r);return d.imp.length?{method:"POST",url:t,data:JSON.stringify(d)}:{}},this.interpretResponse=function(e){var r=e.body||[],a=[],t=0;if(r.seatbid){for(var s=[],t=0;t<r.seatbid.length;t++)for(var i=0;i<r.seatbid[t].bid.length;i++)s.push(r.seatbid[t].bid[i]);r=s}for(t=0;t<r.length;t++){var n=r[t],d=v[n.impid],p={requestId:d.bidId,bidderCode:h.code,cpm:parseFloat(n.price),width:n.w,height:n.h,creativeId:n.crid,currency:"USD",netRevenue:!0,ttl:350};d.mediaTypes&&d.mediaTypes.video?(p.vastUrl=n.nurl,p.mediaType="video",p.ttl=600):p.ad=n.adm,a.push(p)}return a}};Object(t.registerBidder)(i)}},[772]);