");t.slotType===t.slotTypes.PRA&&I({adtype:"PRA",event:"rendered",id:t.id,cid:t.cid,callid:t.callid},t.url),n()}catch(e){n({at:"render",desc:e.message},t)}}function X(t,n){var e,i,o,r=window.$(document.getElementById(t.layout.orientation)),a=t.layout.orientation,s=0;try{for(t.bundle=t.bundle||{},t.bundle[a]?e=!1:(e=!0,t.bundle[a]=[]),a=a.split(","),t.block=t.BLOCKS[a[0]],t.blockIndex=a[0],i=0,o=a.length;i");n()}catch(e){n({at:"render",desc:e.message},t)}}L=window,N=L._,B=function(e){var t,o,n,i=e.data;o=function(t){t.slotType===t.slotTypes.STA?function e(){L.onresize=function(){},C(),N.exec("pseudo",t||{},function(){L.onresize=e})}():N.exec("callbackPRA",t)},t=function(t){try{var e,n=t.bwUtils=L.bwUtils={topWindowUrl:"",topWindowReferrer:"",inIframe:!1,origin:t.origin},i=t.config;e=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.reveal=!1,t.inif=parseInt(t.inif,10),L.origin=t.origin,t.inif?(L.inIframe=n.inIframe=!0,n.origin=i.origin,0<=t.url.indexOf(i.origin)?(L.topWindowUrl=n.topWindowUrl=t.url,L.topWindowReferrer=n.topWindowReferrer=t.referrer):(0<=t.referrer.indexOf(i.origin)?L.topWindowUrl=n.topWindowUrl=t.referrer:L.topWindowUrl=n.topWindowUrl=i.origin,L.topWindowReferrer=n.topWindowReferrer="")):(L.inIframe=n.inIframe=!1,L.topWindowUrl=n.topWindowUrl=t.url,L.topWindowReferrer=n.topWindowReferrer=t.referrer),t.slotTypes={STA:"STA",PRA:"PRA"},t.slotType=i.slotType||t.slotType,1===t.config.testMode?(C(),N.exec("pseudo",t||{})):(e(t.config)&&o(t),t.slotType===t.slotTypes.STA?t.responsive?function e(){L.onresize=function(){},N.exec("STA",t,function(){L.onresize=e})}():N.exec("STA",t):t.responsive?function e(){L.onresize=function(){},N.exec("PRA",t,function(){L.onresize=e})}():N.exec("PRA",t))}catch(e){o(t)}},n=function(e){var t;for(t in L.doBiddingsData)delete L.doBiddingsData[t];for(t in e)L.doBiddingsData[t]=e[t]},i&&("bidResponse"==i.action?L.doBiddingsGotResponse||(L.doBiddingsGotResponse=!0,n(i.response),i.error?L.doBiddingsNext(i.error):(y(i.response),L.doBiddingsNext())):i.videoSlot&&"test"===i.videoSlot.testMode?h({hookId:"ad-home",data:i,rawVideoData:i.videoSlot.testJson||i.videoSlot.testVast,config:i.config,adtype:i.slotType}):i.config?t(i):"STA"==i.slotType&&function e(t){t.onresize=function(){},N.exec("pseudo",{},function(){t.onresize=e})}(L))},L.addEventListener?L.addEventListener("message",B):L.attachEvent("onmessage",B),N(["PRA","STA","pseudo"],V),N(["PRA","STA","pseudo"],_),N(["PRA","STA","pseudo"],G),N(["PRA","STA"],X),N(["PRA","STA"],f),N(["STA","pseudo"],H),N(["pseudo"],$),N(["callbackPRA"],function(e,t){t(1)}),N(["PRA","callbackPRA"],O)})