text: pbjsChunk([40],{126:function(e,t,r){r(127),e.exports=r(128)},127:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=(function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}})(r(0)),n=r(1);var s="freewheel-ssp",i=location.protocol&&0===location.protocol.indexOf("https")?"https":"http",c=i+"://ads.stickyadstv.com/www/delivery/swfIndex.php",d=i+"://cdn.stickyadstv.com/mustang/mustang.min.js",p=i+"://cdn.stickyadstv.com/prime-time/",u=i+"://ads.stickyadstv.com/auto-user-sync";function l(e){for(var t=[0,0],r=0;r<e.length;r++)e[r][0]*e[r][1]>t[0]*t[1]&&(t=e[r]);return t}function f(e){var t="mustang";return e&&"inbanner"!==e&&(t=e),t}var v=function(e,t){return'var config = {      preloadedVast:vast,      autoPlay:true    };    var ad = new window.com.stickyadstv.vpaid.Ad(document.getElementById("freewheelssp_prebid_target"),config);    (new window.com.stickyadstv.tools.ASLoader('+e.params.zoneId+", '"+f(e.params.format)+"')).registerEvents(ad);    ad.initAd("+t[0]+","+t[1]+',"",0,"","");'},y=function(e){var t=e.adUnitCode,r=e.params;r.hasOwnProperty("domId")||r.hasOwnProperty("auto")||r.hasOwnProperty("p")||r.hasOwnProperty("article")||(r.domId=t);var a="var config = {  preloadedVast:vast,  ASLoader:new window.com.stickyadstv.tools.ASLoader("+e.params.zoneId+", '"+f(e.params.format)+"')";for(var o in r)r.hasOwnProperty(o)&&"format"!==o&&"zone"!==o&&"zoneId"!==o&&"vastUrlParams"!==o&&(a+=","+o+':"'+r[o]+'"');return a+="};window.com.stickyadstv."+(e.params.format||"").replace("-","")+".start(config);"},m=t.spec={code:s,supportedMediaTypes:["video"],aliases:["stickyadstv"],isBidRequestValid:function(e){return!!e.params.zoneId},buildRequests:function(e){var t=e[0];e.length>1&&o.logMessage("Prebid.JS - freewheel bid adapter: only one ad unit is required.");var r,a={reqType:"AdsSetup",protocolVersion:"2.0",zoneId:t.params.zoneId,componentId:f(t.params.format)},n=o.getTopWindowUrl();(r=n)&&/^(https?|ftp|file):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(r)&&(a.loc=n);var s=l(t.sizes);return(s[0]>0||s[1]>0)&&(a.playerSize=s[0]+"x"+s[1]),{method:"GET",url:c,data:a,bidRequest:t}},interpretResponse:function(e,t){var r,n=t.bidRequest,i=l(n.sizes);"object"==(void 0===e?"undefined":a(e))&&"string"==typeof e.body&&(e=e.body);try{r=(new DOMParser).parseFromString(e,"application/xml")}catch(e){return void o.logWarn("Prebid.js - "+s+" : "+e)}var c,u,m=(function(e){var t,r={},a=e.querySelectorAll("Extension");if(Array.prototype.forEach.call(a,(function(e){"StickyPricing"===e.getAttribute("type")&&(t=e)})),t){var n=t.querySelector("Price");r={currency:n.getAttribute("currency"),price:n.textContent||n.innerText}}else o.logWarn("PREBID - "+s+": Can't get pricing data. Is price awareness enabled?");return r})(r),w=(c="",u=r.querySelectorAll("Ad"),Array.prototype.forEach.call(u,(function(e){c+="["+e.getAttribute("id")+"]"})),c),h=(function(){var e=window;try{for(;top!==e;)e.parent.location.href.length&&(e=e.parent)}catch(e){}return e})();h.freewheelssp_cache||(h.freewheelssp_cache={}),h.freewheelssp_cache[n.adUnitCode]=e;var g,b,A,S,z,I=[];if(m.price){var P={requestId:n.bidId,cpm:m.price,width:i[0],height:i[1],creativeId:w,currency:m.currency,netRevenue:!0,ttl:360};if((n.mediaTypes||{}).video){P.mediaType="video";var _=new Blob([e],{type:"application/xml"});P.vastUrl=window.URL.createObjectURL(_)}else P.ad=(b=i,A=(g=n).params.format,S="",z="",A&&"inbanner"!==A?(z=p+f(g.params.format)+".min.js",S=y(g,b)):(z=d,S=v(g,b)),"<div id=\"freewheelssp_prebid_target\"></div><script type='text/javascript'>(function() {  var st = document.createElement('script'); st.type = 'text/javascript'; st.async = true;  st.src = '"+z+"';  st.onload = function(){    var vastLoader = new window.com.stickyadstv.vast.VastLoader();    var vast = vastLoader.getVast();    var topWindow = (function(){var res=window; try{while(top != res){if(res.parent.location.href.length)res=res.parent;}}catch(e){}return res;})();    vast.setXmlString(topWindow.freewheelssp_cache[\""+g.adUnitCode+'"]);    vastLoader.parseAds(vast, {      onSuccess: function() {'+S+" }    });  };  document.head.appendChild(st);})();<\/script>");I.push(P)}return I},getUserSyncs:function(e){if(e.pixelEnabled)return[{type:"image",url:u}]}};(0,n.registerBidder)(m)},128:function(e,t){}},[126]);