text: pbjsChunk([15],{19:function(e,r,t){"use strict";r.b=function(e){var r=[];for(var t in e){var a;e.hasOwnProperty(t)&&("pubProvidedId"===t?r=r.concat(e.pubProvidedId):(a=function(e,r){var t=c[r];if(t&&e){var a={};a.source=t.source;var i=s.isFn(t.getValue)?t.getValue(e):e;if(s.isStr(i)){var n,d,o={id:i,atype:t.atype};return!s.isFn(t.getUidExt)||(n=t.getUidExt(e))&&(o.ext=n),a.uids=[o],!s.isFn(t.getEidExt)||(d=t.getEidExt(e))&&(a.ext=d),a}}return null}(e[t],t))&&r.push(a))}return r},r.a=function(e){var t=[];return e.filter(function(e){return s.isPlainObject(e.idObj)&&Object.keys(e.idObj).length}).forEach(function(r){Object.keys(r.idObj).forEach(function(e){s.deepAccess(r,"config.bidders")&&Array.isArray(r.config.bidders)&&s.deepAccess(c,e+".source")&&t.push({source:c[e].source,bidders:r.config.bidders})})}),t};var s=t(0),c={intentIqId:{source:"intentiq.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var r=s.pick(e,["ibaOptout","ccpaOptout"]);if(Object.keys(r).length)return r}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},sharedid:{source:"sharedid.org",atype:1,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.third?{third:e.third}:void 0}},IDP:{source:"zeotap.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},admixerId:{source:"admixer.net",atype:3}}},830:function(e,r,t){e.exports=t(831)},831:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"spec",function(){return p});var o=t(0),s=t(2),c=t(3),a=t(1),u=t(19),p={code:"smartadserver",gvlid:45,aliases:["smart"],supportedMediaTypes:[s.b,s.d],isBidRequestValid:function(e){return!!(e.params&&e.params.siteId&&e.params.pageId&&e.params.formatId)},serializeSupplyChain:function(e){if(!e||!e.nodes)return null;var t=["asi","sid","hp","rid","name","domain"];return"".concat(e.ver,",").concat(e.complete,"!")+e.nodes.map(function(r){return t.map(function(e){return r[e]?encodeURIComponent(r[e]):""}).join(",")}).join("!")},buildRequests:function(e,d){return e.map(function(e){var r={siteid:e.params.siteId,pageid:e.params.pageId,formatid:e.params.formatId,currencyCode:c.b.getConfig("currency.adServerCurrency"),bidfloor:e.params.bidfloor||0,targeting:e.params.target&&""!==e.params.target?e.params.target:void 0,buid:e.params.buId&&""!==e.params.buId?e.params.buId:void 0,appname:e.params.appName&&""!==e.params.appName?e.params.appName:void 0,ckid:e.params.ckId||0,tagId:e.adUnitCode,pageDomain:d&&d.refererInfo&&d.refererInfo.referer?d.refererInfo.referer:void 0,transactionId:e.transactionId,timeout:c.b.getConfig("bidderTimeout"),bidId:e.bidId,prebidVersion:"4.35.0-pre",schain:p.serializeSupplyChain(e.schain)},t=o.deepAccess(e,"mediaTypes.video");if(t){if(!t||"instream"!==t.context&&"outstream"!==t.context)return{};var a=t.playerSize[0];r.isVideo="instream"===t.context,r.mediaType=s.d,r.videoData={videoProtocol:e.params.video.protocol,playerWidth:a[0],playerHeight:a[1],adBreak:e.params.video.startDelay||1}}else{var i=o.deepAccess(e,"mediaTypes.banner");r.sizes=i.sizes.map(function(e){return{w:e[0],h:e[1]}})}d&&d.gdprConsent&&(r.addtl_consent=d.gdprConsent.addtlConsent,r.gdpr_consent=d.gdprConsent.consentString,r.gdpr=d.gdprConsent.gdprApplies),e&&e.userId&&(r.eids=Object(u.b)(e.userId)),d&&d.uspConsent&&(r.us_privacy=d.uspConsent);var n=JSON.stringify(r);return{method:"POST",url:(void 0!==e.params.domain?e.params.domain:"https://prg.smartadserver.com")+"/prebid/v1",data:n}})},interpretResponse:function(e,r){var t,a,i=[],n=e.body;try{n&&!n.isNoAd&&(a={requestId:(t=JSON.parse(r.data)).bidId,cpm:n.cpm,width:n.width,height:n.height,creativeId:n.creativeId,dealId:n.dealId,currency:n.currency,netRevenue:n.isNetCpm,ttl:n.ttl,dspPixels:n.dspPixels},t.mediaType===s.d?(a.mediaType=s.d,a.vastUrl=n.adUrl,a.vastXml=n.ad,a.content=n.ad):(a.adUrl=n.adUrl,a.ad=n.ad),i.push(a))}catch(e){o.logError("Error while parsing smart server response",e)}return i},getUserSyncs:function(e,r){var t=[];return e.iframeEnabled&&0<r.length?t.push({type:"iframe",url:r[0].body.cSyncUrl}):e.pixelEnabled&&0<r.length&&void 0!==r[0].body.dspPixels&&r[0].body.dspPixels.forEach(function(e){t.push({type:"image",url:e})}),t}};Object(a.registerBidder)(p)}},[830]);