text: pbjsChunk([370],{242:function(e,t,n){e.exports=n(243)},243:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return a});var r=n(1),g=n(2),m=n(0);var a={code:"adprime",supportedMediaTypes:[g.b,g.d,g.c],isBidRequestValid:function(e){return Boolean(e.bidId&&e.params&&!isNaN(parseInt(e.params.placementId)))},buildRequests:function(e,t){var n,r=0<arguments.length&&void 0!==e?e:[],a=1<arguments.length?t:void 0,i=window;try{n=new URL(a.refererInfo.referer),i=window.top}catch(e){n=i.location,m.logMessage(e)}var s=[],d={deviceWidth:i.screen.width,deviceHeight:i.screen.height,language:navigator&&navigator.language?navigator.language.split("-")[0]:"",secure:1,host:n.host,page:n.pathname,placements:s};a&&(a.uspConsent&&(d.ccpa=a.uspConsent),a.gdprConsent&&(d.gdpr=a.gdprConsent));for(var o=r.length,c=0;c<o;c++){var p=r[c],u=void 0,l={};p.mediaTypes&&(p.mediaTypes[g.b]&&p.mediaTypes[g.b].sizes?u=p.mediaTypes[g.b].sizes:p.mediaTypes[g.d]&&p.mediaTypes[g.d].playerSize&&(u=p.mediaTypes[g.d].playerSize)),p.userId&&p.userId.idl_env&&(l.identityLink=p.userId.idl_env),s.push({placementId:p.params.placementId,bidId:p.bidId,sizes:u||[],wPlayer:u?u[0]:0,hPlayer:u?u[1]:0,traffic:p.params.traffic||g.b,schain:p.schain||{},keywords:p.params.keywords||[],identeties:l})}return{method:"POST",url:"https://delta.adprime.com/?c=o&m=multi",data:d}},interpretResponse:function(e){for(var t=[],n=0;n<e.body.length;n++){var r=e.body[n];!function(e){if(e.requestId&&e.cpm&&e.creativeId&&e.ttl&&e.currency)switch(e.mediaType){case g.b:return Boolean(e.width&&e.height&&e.ad);case g.d:return Boolean(e.vastUrl);case g.c:return Boolean(e.native&&e.native.title&&e.native.image&&e.native.impressionTrackers);default:return}}(r)||t.push(r)}return t},getUserSyncs:function(e,t,n,r){var a="https://delta.adprime.com/?c=rtb&m=sync";return n&&n.consentString&&("boolean"==typeof n.gdprApplies?a+="&gdpr=".concat(Number(n.gdprApplies),"&gdpr_consent=").concat(n.consentString):a+="&gdpr=0&gdpr_consent=".concat(n.consentString)),r&&r.consentString&&(a+="&ccpa_consent=".concat(r.consentString)),[{type:"image",url:a}]}};Object(r.registerBidder)(a)}},[242]);