/*! For license information please see prebidapi.js.LICENSE.txt */
/*! ! PrebidAPI ES6 v1.0.193 (2021-03-08 11:55:24) */!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://std.wpcdn.pl/prebidapi6/",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);const i=window,o=()=>i&&i.location;var r=(e,t)=>{const n=o(),r=t||n&&n.search,a=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),s=new RegExp("[\\?&]".concat(a,"=([^&#]*)")).exec(r);return null===s?"":i.decodeURIComponent(s[1].replace(/\+/g," "))},a=e=>{const t=o();if(t)return((e,t)=>e?e.substring(0,t||500):"")(t.href,e)};const{WP:{ab:s={getTest:()=>{},isTest:()=>{}},apd:c={canDetect:()=>{},getResult:()=>{}},env:d={getDotParams:()=>{},getSN:()=>{},isMobile:()=>{}},gaf:l={loadAndRunSlots:()=>{},getContext:()=>{}},performance:u={count:()=>{}},randomizers:p={unslide:()=>{}},stat:m={wave:()=>{}},storage:b={hasSupport:()=>!0,set:()=>{},get:()=>{}}}={}}=window;function f(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;if(!window.prebidConfig)return t;const n=window.prebidConfig;return!1===e?t=n:n[e]?t=n[e]:e&&!n[e]&&n.hb&&(t=n.hb),t}const g=[],h={auctionConfig:!1,activeProgrammaticTest:!1,activeTestVersion:!1,videoAuctionCounter:0,videoHandlers:[],AUCTION_LAST:null,auctionsCount:-1,auctionsCountPerView:-1,auctionInProgress:!1,auctionQueue:[],allowReorder:!0,allowedAuctionsCounter:1,appendVideoToFirstAuction:!1,baseVideoIntent:{autoplay:!1,forceSound:!0},bidsReceived:[],blackList:[],connectedSlots:{},currLocation:a(),currencyRate:{default:3.71,USD:3.71,EUR:4.33,PLN:1,CHF:3.8154,GBP:4.8759},Criteo:!1,dataForLogFillrate:{},displayAdUnits:[],emptyLimits:{},firstAuction:!0,firstAuctionEnd:!1,firstAuctionStatusLogPvBD:!0,hasConfig:!1,hasRun:0,HB:"hb",isRetarg:!1,intentParams:{},intentLog:{},slots:[],pageLoadTime:Date.now(),prebidConfig:!1!==f()&&JSON.parse(JSON.stringify(f())),prebidData:{},PrebidDamTimeout:!1,prebidAPILoadingState:{},prevAuctionTS:0,videoAdUnits:[],logStartTime:0,registeredSlots:[],registeredPlayers:[],auctionSlots:[],expiredBids:{},useLazyBidding:!1,registerTimeCounter:0,healthStatus:{},teadsOutstreamSlots:[]},v=["slot316","slot317","slot318","slot319"],y={auto_play_sound_on:{mit:1,min:1,mmu:0},auto_play_sound_off:{mit:0,min:1,mmu:1},click_to_play:{mit:1,min:0,mmu:0}},w={ctype:null,timestamp:null,isDynamic:!1,prevCtype:null,prevAuctionTS:null,vIntentAuctionTS:null},P={},O=(window.performance&&window.performance.timing&&window.performance.timing.fetchStart,["slot150","slot151","slot152","slot153"]),C=h.prebidConfig[h.HB]||!1,S=h.prebidConfig.config||!1,T=h.prebidConfig.steering||!1,A=h.prebidConfig.steeringExternal||!1,k=A.amznConfig||!1,D=!0===T.logExpiredBids&&!0!==T.slotStatusDisable||!1;function j(){h.auctionsCount+=1,h.auctionsCountPerView+=1}if(h.prebidConfig&&u){const{name:e}=h.prebidConfig,t=e.includes("-old")?"Old":"New";u.count("prbdCfg".concat(t))}const I=new Set,_=new Set,x=new Map,{WP:U={}}=window;U.utils&&U.utils.setStyle("PrebidAPI","background:darkblue;");const E=[],L="//c.amazon-adsystem.com/aax2/apstag.js";function R(){const{apstag:e}=window;if(!k||!0!==T.useAmazon)return!1;const t=(e=>{const t=d.getDotParams("ctype"),{viewConfig:n}=S;return e.filter(e=>{const i=e.slotID.replace("slot",""),o=parseInt(i,10);return!h.blackList.includes(o)&&!(n&&n[t]&&!n[t].slots.includes(o))})})(k.units);e&&e.fetchBids?e.fetchBids({slots:t},e=>{if(Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++)e[n].amzniid&&e[n].amzniid.length>0&&E.push(e[n])}}):u.count("NoAPSOnFetch")}function B(){const{apstag:e}=window;k&&!0===T.useAmazon&&(e.init({pubID:k.pubID,adServer:"googletag"},()=>{}),R())}var M={loadLibrary:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const{apstag:i}=window;if(i)return void B();const o=window.document.createElement("script");let r=!1;function a(e,t){i.Q.push([e,t])}window.apstag={init:()=>{a("i",...t)},fetchBids:()=>{a("f",...t)},setDisplayBids:()=>{},targetingKeys:()=>[],Q:[]},o.type="text/javascript",o.src=L,o.onreadystatechange=()=>{r||this.readyState&&"complete"!==this.readyState||(r=!0,B())},o.onload=o.onreadystatechange;const s=window.document.getElementsByTagName("script")[0];s.parentNode.insertBefore(o,s)},getBidSlot:function(e){let t=!1;const n=E.length;for(let i=0;i<n;i++)if(E[i].slotID===e&&!E[i].used){t=E[i];break}return t},markUsed:function(e){let t=!1;const n=E.length;for(let i=0;i<n;i++)if(E[i].amzniid===e){E[i].used=!0,t=!0,u.count("Amazon_USED",E[i].slotID);break}return t},fetchBids:R,markUnused:function(e){let t=!1;const n=E.length;for(let i=0;i<n;i++)if(E[i].slotID==="slot".concat(e)){E[i].used=!1,t=E[i],u.count("Amazon_UNUSED",E[i].slotID);break}return t}};function V(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.prebidConfig;const i=t,{activeProgrammaticTest:o,activeTestVersion:r}=h,{bidder:a}=i;let s,c,l=n.config&&n.config.floorprices,u=0;if(o.fpTest&&(l=l[r]||l),l&&l.default&&(s=l.default,s&&(s.default&&(u=s.default),e&&s[e]&&(u=s[e]))),"instream"===t.adType&&l&&l.instreamFloor){const e=h.activeTestVersion,t=d.getDotParams("ctype"),{instreamFloor:n}=l;u="stream"===t||"article_stream"===t?n["stream".concat(e)]||n.stream:n["default".concat(e)]||n.default}return a&&l&&l[a]&&(c=l[a],c&&(c.default&&(u=c.default),e&&c[e]&&(u=c[e]))),u}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const{expiredBids:W}=h;var H={getExpiredBid:e=>{const t="slot".concat(e);return void 0!==W[t]&&W[t]},setExpiredBid:e=>{const{adUnitCode:t,ccpm:n}=e;return(W[t]&&W[t].ccpm>n||void 0===W[t])&&(W[t]=z({},e)),W},resetStore:()=>(h.expiredBids={},W)};function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.bidsReceived;const i=n;let o;if(e.adId)o=e,o[t]=!0;else{const n=i.length;for(let r=0;r<n;r++)if(i[r].adId===e){i[r][t]=!0,o=i[r];break}}return o}var J={default:{currency:"USD",open:1,deal:1},districtmDMX:{currency:"USD",open:1,deal:1},districtm:{currency:"USD",open:.87,deal:.87},testwp:{currency:"PLN"},adform:{currency:"EUR",open:.9,deal:.95},brealtimeAst:{currency:"USD",open:.85,deal:.85},brainJuice:{currency:"USD",open:.9,deal:.9},criteo:{currency:"PLN"},teads:{currency:"USD"},freewheel:{currency:"EUR"},openx:{currency:"USD",open:1,deal:.9},pubmatic:{currency:"USD",open:1,deal:1},smartadserver:{currency:"USD",open:1,deal:1},smartnative:{currency:"PLN"},nanointeractive:{currency:"EUR"}};function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.prebidConfig;const n=10,{Math:i}=window,o=e,{adUnitCode:r,bidder:a,cpm:s,currency:c}=o,d=t.config&&t.config.priorities,l=J[a]||J.default;let u,p=0,m=null,b=h.currencyRate.default||1,f=l.open||1;return f=o.dealId?l.deal||1:l.open||1,b=c&&h.currencyRate[c]?h.currencyRate[c]:l.currency&&h.currencyRate[l.currency]?h.currencyRate[l.currency]:h.currencyRate.default,o.ccpm=i.floor(s*b*f*100),o.cpmpl=o.ccpm/100,d&&d[a]&&(d[a][r]?m=d[a][r]:d[a].default&&(m=d[a].default)),m&&(u=!0,m.deal&&!o.dealId&&(u=!1),m.floor&&m.floor>o.ccpm/100&&(u=!1),o.getStatusCode&&1===o.getStatusCode()||(u=!1),u&&(o.occpm=o.ccpm,m.level?o.ccpm=100*m.level:o.ccpm=100*n)),p=V(r,o,t),p>o.ccpm/100&&(o.ccpm=0,s>=.005&&(o.floorhit=1)),o}function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.bidsReceived;const t=Date.now(),n=6e4;e.forEach(i=>{const{ttl:o,responseTimestamp:r}=i,a=o?1e3*o:n;a>0&&t-r>a&&q(i,"APItimeout",e)})}function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.bidsReceived,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.prebidConfig;const i="slot".concat(e);let o,r={cpm:0,ccpm:0};const a=!!l.getCC&&l.getCC();return t.forEach(e=>{Q([e]);const{ad:t,adUnitCode:s,APIblocked:c,APItimeout:d,APIsold:l,APIused:u,connected:p,ccpm:m,floorhit:b}=e;!0===d&&0!==m&&1!==b?!0===D&&H.setExpiredBid(e):Z(e,n),o=s===i,s.startsWith("group")&&p&&p.includes(i)&&(o=!0),c&&q(e,"APIunblocked");const f=!(!t||!t.includes("wppl_wallpaper.js"));f&&q(e,"adfscr"),f&&a&&a.includes("DUKAT_Screening")&&q(e,"APIblocked"),o&&!l&&!c&&!d&&!u&&m&&m>r.ccpm&&(r=e)}),r.cpm>0&&r}function G(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.bidsReceived;const t=[];e.forEach(e=>{const{adUnitCode:n,ccpm:i}=e;void 0===i&&Z(e),n&&n.startsWith("multi")&&t.push(e)}),t.length>0&&ie(!1,t)}function K(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.bidsReceived,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.prebidConfig;let o=0;t&&G(n);const r=X(e,n,i);return r&&r.ccpm&&(o=Math.min(r.ccpm,9999)),o}var Y=(e,t)=>{if(e instanceof Object){const n=Object.entries(e),{length:i}=n;for(let e=0;e<i;e++){const[i,o]=n[e];t(i,o)}}};function $(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=l.getStore(e),n={};let{slots:i}=t;return i||(i={},Y(t,e=>{Object.assign(i,t[e].slots)})),Y(i,e=>{let t="";const o=i[e],r=o&&o.campaign&&o.campaign.creative,a=o&&o.campaign&&o.campaign.sellingModel;r&&r.roshash&&(t=r.roshash),a&&a.directOnly&&(t="ZZZZ"),n[e]=t}),n}function ee(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$(),n=arguments.length>2?arguments[2]:void 0;const{connectedSlots:i}=h,{adUnitCode:o,ccpm:r}=n;let a,s,c,d,l,u;if(i[o]&&i[o].length>0){[a]=i[o];for(let m=i[o].length-1;m>=0;m-=1)s=i[o][m],c=s.replace("slot",""),d=p.slide(r,e),l=V(s,n),u=r>K(c),t[c]&&(t[c]>=d||"ZZZZ"===t[c])&&(u=!1),l>r/100&&(u=!1),u&&(a=s);n.adUnitCodeOld=o,n.adUnitCode=a,Z(n)}}const te=(e,t)=>{let n=0;return t.cpmpl>e.cpmpl?n=1:e.cpmpl>t.cpmpl&&(n=-1),n};function ne(e){return!(e.length<2)&&e.sort(te)}function ie(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.bidsReceived;const n=l.getContext("rshsd");let i=e;i||(i=$()),ne(t),t.forEach(e=>{const t=e;t.adUnitCode.startsWith("multi")&&ee(n,i,t)})}function oe(e){const t=e||l.getContext("curr");t&&Y(t,e=>{parseFloat(t[e])>0&&(h.currencyRate[e]=parseFloat(t[e])),b.hasSupport()&&b.set("currency",JSON.stringify(h.currencyRate))})}var re=e=>parseInt(e,10)||0;var ae=e=>{const{code:t,connected:n}=e,{slots:i,connectedSlots:o}=h,r=re(t.replace("slot",""));if(r>0&&!i.includes(r)&&i.push(r),n){o[t]=n;for(let t=0;t<e.length;t+=1){const e=re(n[t].replace("slot",""));0===e||i.includes(e)||i.push(e)}}};const se=(e,t)=>{const{prebidConfig:n}=window;return n&&n[t]&&n[t][e]||!1},ce=e=>se(e,"steering"),de=e=>se(e,"config");var le=e=>{let{viewConfigForCtype:t,cType:n,lazyConfig:i}=e;const o=(e,t)=>{const{slots:n}=t;return n&&e.push(...n),e};let r;if(Array.isArray(i))r=i.reduce(o,[]);else{const e=[];Object.keys(i).forEach(t=>{e.push(...i[t].reduce(o,[]))}),r=[...new Set(e)]}de("viewConfig")[n].slots=r,t.slots=r};const ue=e=>{if(Array.isArray(e))h.blackList=function(e){const t=e.concat();for(let e=0;e<t.length;++e)for(let n=e+1;n<t.length;++n)t[e]===t[n]&&t.splice(n-=1,1);return t}(h.blackList.concat(e.map(e=>parseInt(e,10))));else{const t=parseInt(e,10);h.blackList.includes(t)||h.blackList.push(t)}},pe=()=>{h.blackListStore=[]};pe();var me={add:ue,setNew:e=>{pe(),ue(e)},reset:pe};var be=e=>{let t={};const{sizes:n,code:i}=e;return n&&(t={banner:{sizes:n}},O.includes(i)&&(t={video:{context:"instream",playerSize:n[0]}})),t};const fe=(e,t)=>typeof e===t;["undefined","string","boolean","number","object","function"].forEach(e=>{fe[e[0]]=t=>fe(t,e)});var ge=fe;function he(e){const{sizeMap:t}=S,n=!!ge.s(e)&&e;return n&&t?t[0][n]:e}function ve(e,t,n){let i;if(e&&e.mode){const o=n||d.getDotParams("layout"),r=t||d.getDotParams("ctype");switch(e.mode){case"layout":i=o&&e[o];break;case"ctype":i=r&&e[r]}}return i||!1}var ye={interval:null,ctype:null,lastAuction:0,auctionCount:0,auctions:[],auctionId:null};var we=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.activeProgrammaticTest;const n=!(!t||!t.lbVersionTest)&&"conf".concat(t.version);let i=[];return e&&(i=e.auctions,Array.isArray(i)||(i=n&&i[n]?i[n]:i.default||[])),i};const Pe=S.slotAvailabilityDesktop||[11,12,13,14],Oe=S.slotAvailabilityMobile||[];function Ce(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.rekid,n=arguments.length>2?arguments[2]:void 0;const i=e,o=Object.assign(d.getDotParams(),{});let r=!1;return n&&(o.ctype=n),o.rekid=t,i&&Object.entries(i).forEach(e=>{let[t,n]=e;o[t]&&n.includes(o[t])&&(r=!0)}),r}var Se=function(e,t,n,i,o,r){const a={version:e,timeToAuction:n,auctionName:r,auctionsCount:t+1,norodo:i?void 0:1};return o&&(a.auctionName=o.id,a.slot=o.trigger),m.wave("prebidauction",a),a};function Te(e){const t=function(e){const t=e.match(/:\/\/(www[0-9]?\.)?(.[^\/:]+)/i);return t&&t.length>2&&ge.s(t[2])&&t[2].length>0?t[2]:null}(e);let n,i=t;return t&&(n=t.split(".").reverse(),n.length>1&&(i="".concat(n[1],".").concat(n[0]))),i}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t,n,i,o,r,a,s,u){const p=[],m=e,b=s||h.blackList,{viewConfigTestVersion:f,forceBidderLimiter:g}=T,{activeProgrammaticTest:v}=h,{bidderLimiterTver:w,version:P}=v;let C,k=a||h.connectedSlots,D=u&&u[t]||S.viewConfig&&S.viewConfig[t],j=!0;return D=n||D,h.auctionSlots=[],h.auctionSlots.length=0,D&&(!f||f===P)||b.length||(j=!1),r||(k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.connectedSlots,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const i=e;return Y(i,e=>{const o=e.split("-"),r=[];o.forEach(e=>{t?"multi"!==e&&t.slots.includes(parseInt(e,10))&&!n.includes(parseInt(e,10))&&r.push("slot".concat(e)):"multi"===e||n.includes(parseInt(e,10))||r.push("slot".concat(e))}),i[e]=r}),i}(k,D,b)),m.forEach(e=>{const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),a=n.code;let s=!1;if(j&&(s=function(e,t,n,i){const{code:o}=e,r=n&&n.slots,a=i||h.blackList;if(o.includes("multi")){if(t[o]&&t[o].length>0)return!1}else if(o.includes("slot")){const e=parseInt(o.replace("slot",""),10);if(r){if(r.includes(e)&&!a.includes(e))return!1}else if(!a.includes(e))return!1}return!0}(n,k,D,b)),s=s||function(e,t){return!(!e.restrict||e.restrict.includes(t))}(n,t),s=s||function(e,t){if(e.testRestricted){if(e.testRestricted.includes("noTest")&&!t)return!1;if(!e.testRestricted.includes(t))return!0}return!1}(n,h.activeTestVersion),!s){const e=[];n.bids.forEach(t=>{a.replace("slot","");let s=!1;s=function(e,t){const{bidder:n}=e,{Math:i}=window;return!!(h.emptyLimits[n]&&h.emptyLimits[n].diceroll&&i.random()>h.emptyLimits[n].diceroll)}(t),s=s||function(e,t){const n=l.getContext("geo"),i=n&&n.country,{bidder:o}=e;if(h.emptyLimits[o]&&h.emptyLimits[o].geo&&h.emptyLimits[o].geo.length>=1){if(!i)return!0;if(!h.emptyLimits[o].geo.includes(i))return!0}return!1}(t),(g||w&&w===P)&&(s=s||!r&&_.has(t.bidder)),s||(O.includes(n.code)&&r&&(C||(C=function(e,t,n,i){const{document:o}=window,r=n||!(!window.vhb||0===Object.keys(window.vhb).length)&&window.vhb,a=d.isMobile(),s=o.referrer||"",l=o.location.origin||"",u=d.getDotParams("ctype"),p=i||A.ctypesIntent;let m=p&&p[u]&&p[u][0]||(a?"click_to_play":"auto_play_sound_off"),{params:b}=r?r[Object.keys(r)[0]]:{params:!1},f=!1;switch(b||(b=!1),c.canDetect()&&(f=c.getResult({prebid:!0})),e&&(b=e),b.autoplay&&b.forceSound?m="auto_play_sound_on":b.autoplay&&(m="auto_play_sound_off"),!0){case f&&b.autoplay&&b.forceSound&&!t:m=f.autoplayAllowed&&f.autoplayUnmutedAllowed?"auto_play_sound_on":f.autoplayAllowed?"auto_play_sound_off":"click_to_play";break;case b.autoplay&&!t:s.length?Te(l)!==Te(s)&&(m="auto_play_sound_off"):m="auto_play_sound_off"}return h.intentParams=y[m],m}(i,o)),function(e,t){const n=e;let i,o,r,a=!1;switch(n.bidder){case"openx":switch(t){case"auto_play_sound_off":o=[2,6];break;case"auto_play_sound_on":o=[1,5];break;case"click_to_play":o=[3];break;default:o=[2,6]}n.params.video=n.params.video||{},n.params.video.playbackmethod=o,a=!0;break;case"smartvideo":switch(t){case"auto_play_sound_on":i=1;break;case"auto_play_sound_off":i=2;break;case"click_to_play":i=3;break;default:i=2}n.params.video=n.params.video||{},n.params.video.vpmt=i,a=!0;break;case"adform":t&&(n.params.mkv=JSON.stringify(y[t]).replace(/(["{}])+/g,""),n.params.addToMkv&&Object.keys(n.params.addToMkv).forEach(e=>{n.params.mkv+=",".concat(e,":").concat(n.params.addToMkv[e])})),a=!0;break;case"xhb":case"appnexus":case"appnexusAst":case"emxdigitalVideo":n.params.video||(n.params.video={skippable:!1}),n.params.video.playback_method=[t],a=!0;break;case"pubmatic":switch(t){case"auto_play_sound_on":r=1;break;case"auto_play_sound_off":r=2;break;case"click_to_play":r=3;break;default:r=2}n.params.video=n.params.video||{},n.params.video.playbackmethod=r}}(t,C)),function(e,t,n){let i,o;"connectad"===e.bidder&&(i=h.currencyRate.USD||h.currencyRate.default,o=(n||V(t,e))/i,e.params.floorprice=o.toFixed(2))}(t,a),e.push(t))}),n.bids=e,a.includes("multi")||h.auctionSlots.push(parseInt(a.replace("slot",""),10)),p.push(n)}}),p}function je(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const a=T.donotbid||Ce(S.blockPrebid,void 0,n);if(a)return!1;const{WP:{gdpr:s}={},pbjs:c}=window,u=n||d.getDotParams("ctype"),p=c.version||void 0,m=h.videoAdUnits,b=h.displayAdUnits,f=s.check("mr","TP");let g=[],v=[];if(me.add(l.getDirectSlots()),e?v=m:(v=b,T.disableVideoAutoBid||!0===h.useLazyBidding&&!h.appendVideoToFirstAuction||(v=v.concat(m),h.appendVideoToFirstAuction=!1)),g=De(v,u,t,i,o,e),g.length>0){if(h.firstAuction||ye.auctionCount>0){const t="_".concat(ye.auctionId)||!1,n=ye.auctionCount>0?"".concat(ye.auctionCount):"",i=e?"_".concat(h.lbvAid):"";h.healthStatus["auction_nr_".concat(e?h.videoAuctionCounter:n,"_startedProperly").concat(e?"_video":t).concat(i)]=!0}w.prevAuctionTS&&(w.timeauctions=Date.now()-w.prevAuctionTS),w.prevAuctionTS=Date.now(),j();const n=parseInt(Date.now()-h.pageLoadTime,10),i={adUnits:g,bidsBackHandler:()=>{}};r&&(i.auctionId=r),h.firstAuction&&(h.firstAuction=!1),c.requestBids(i),Se(p,h.auctionsCount,n,f,t,r)}else h.healthStatus.auctionStartedProperly=!1}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xe=[],Ue=T.auctionInterval||!1;Ue&&setInterval(()=>{if(xe.length>0){const e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){_e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},xe[0]);xe.splice(0,1),je(...e)}},Ue);var Ee={addAuctionToQueue:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.includes("skipQueue")?je(...t):0!==xe.length||!1!==h.auctionInProgress||Ue?xe.push([...t]):je(...t)},getQueue:function(){return xe},auctionEnd:function(){if(h.auctionInProgress=!1,xe.length>0&&!Ue){const e=Object.assign([],xe[0]);xe.splice(0,1),je(...e)}}};var Le={};const Re=e=>{const{WP:t}=window;return!!Le[e]&&(t.viewability.disconnect(Le[e],["prebidLazyLoading"]),delete Le[e],!0)},Be=e=>{e.forEach(e=>{Re(e)})};function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e){return!!Le[e]}function Fe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;const o=t,r=t.auctions.length,{hardTimeout:a}=S,{hardTimeoutTestVersion:s,version:c}=h.activeProgrammaticTest;let l=!1;if(!1!==n)l=n;else for(let t=0;t<r;t+=1)if(o.auctions[t].slots.includes(e)){l=o.auctions[t];break}if(l.asap&&(a||s&&s===c)&&0===t.auctionCount&&!1===l.used&&h.prebidAPILoadingState.timeout&&(t.auctionCount+=1,l.used=!0),!1!==l&&!0!==l.used){const n=d.isMobile()?Oe:Pe;o.auctionId=l.id,o.lastAuction=Date.now(),o.auctionCount+=1,l.used=!0;const r=Ve({},l);r.slots=[];S.viewConfig[t.ctype].slots.includes(150)&&!0===h.appendVideoToFirstAuction&&r.slots.push(150);const a=l.slots.length;for(let e=0;e<a;e++){!0===(!n.includes(l.slots[e])||ze(l.slots[e]))&&150!==l.slots[e]&&r.slots.push(l.slots[e])}r.trigger=e,Ee.addAuctionToQueue(!1,r,void 0,i),Be(r.slots)}}function We(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.getDotParams("ctype"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.viewConfig,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ye,i=arguments.length>3?arguments[3]:void 0;const o=n,r=t&&t[e],a=[];if(r){let t=!1,n=we(r),s=[];if(Array.isArray(n)?n.forEach(e=>{const n=e;return n.used=!1,"default"===e.id&&(t=!0),s=s.concat(n.slots),!0===e.asap&&a.push(n),n}):n=[],!t){n=[{id:"default",from:0,slots:r.slots?r.slots.filter(e=>!s.includes(e)):[]}].concat(n)}o.ctype=e,o.auctions=n,a.forEach(e=>{Fe(0,void 0,e,i)})}return o}var He=()=>d.isMobile()?{autoplay:!1,forceSound:!0}:{autoplay:!0,forceSound:!1};function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i="",o=t;o=!0===o?16:o||10;const r=e=>Math.floor(Math.random()*e);for(n&&(i=String.fromCharCode(r(26)+97));i.length<e;)i+=Math.random().toString(o).substr(2),i=i.substr(0,e);return i};function Xe(e,t,n){const i=e?{autoplay:e.autoplay,forceSound:!e.muted}:h.baseVideoIntent;"function"==typeof n&&(P[t]=n),Ee.addAuctionToQueue(!0,!1,!1,i,!1,t,"skipQueue")}function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){const{WP:t}=window;if(l.addRegisterPlayerHandler instanceof Function){const n=function(e,t){const n=t.viewConfig&&t.viewConfig[e];let i={dist:650};if(n){const{auctions:e,lbvDist:t}=n,o=e.length;i.dist=t||i.dist;for(let t=0;t<o;t++)if("video"===e[t].id){i=Je({},e[t]);break}}return i}(e||d.getDotParams("ctype"),S),i=(e,i)=>{void 0===i||h.registeredPlayers.includes(i)||(h.registeredPlayers.push(i),h.baseVideoIntent=Ke(Ke({},h.baseVideoIntent),e),t.viewability.observe(i,[{name:"prebidLazyLoading",method:"offset",verticalMargin:n.dist,success:!0,callback:()=>{h.videoAuctionCounter<1&&(h.lbvAid="lbv-".concat(Qe()),h.videoAuctionCounter+=1,Xe(!1,h.lbvAid,void 0))}}]))};h.videoHandlers.push(i),l.addRegisterPlayerHandler(i)}}function et(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const i=n||He(),o=!ce("disableVideoAutoBid"),r=["stream","vide","article_stream"].includes(t);if(!0===e){if(r)return h.appendVideoToFirstAuction=o,h.baseVideoIntent=i,i;$e(t)}else r?o&&je(!0,!1,t,i,!0):$e(t)}var tt=e=>{const t=d.getDotParams("ctype"),n=de("viewConfig");let i=!1;if(n[t]){const o=n[t]||[];if(o.slots.includes(e)){const t=we(o);i=650,t.forEach(t=>{!0===t.used?i=!1:t.slots.includes(e)&&(i=t.dist||i)})}}return i};var nt=(e,t)=>{const n=parseInt(e,10),{WP:i}=window;let o=!1;if(Y(Le,e=>{Le[e]===t&&(o=!0)}),Le[n]||o)Le[n]&&!o&&(i.viewability.replaceNode(Le[n],t),Le[n]=t);else{const e=tt(n);!1!==e&&(Le[n]=t,i.viewability.observe(t,[{name:"prebidLazyLoading",method:"offset",verticalMargin:e,success:!0,callback:()=>{Fe(n)}}],"slot".concat(n)))}};var it=()=>{const e=ce("lazyBidding"),t=de("viewConfig");!0===e&&t&&l.addRegisterSlotHandler(nt)};var ot=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.blacklisted,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;const i=t,{bids:o,code:r}=t,{activeProgrammaticTest:a}=n,s=(e,t)=>{const n=!(!t||!t.removeBidderTest)&&"conf".concat(t.version);return n?e[n]||!1:e},c=s(e,a),d=(e,t)=>{let n=!1;if(!t.includes("multi")&&Array.isArray(e)){const i=parseInt(t.replace("slot",""),10);n=e.includes(i)}return n},l=e=>"all"===e;return i.bids=o.filter(e=>{let t=!1;const n=c[e.bidder];return t=d(n,r),t=t||l(n),!t}),i};const{teadsOutstreamSlots:rt}=h;var at=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt;const{bids:n}=e;n&&n.some(e=>{if("teads"===e.bidder&&e.params.placementId&&e.params.outstream&&!t.includes(re(e.params.placementId)))return t.push(re(e.params.placementId)),!0})};function st(e,t){const{lazyBidding:n,viewConfigTestVersion:i}=T,{blacklisted:o,blackListConfig:r,viewConfig:a}=S,{lbTestVersion:s}=h.activeProgrammaticTest,c=ve(r),p=d.getDotParams("ctype"),m=a&&a[p],f=m&&m.auctions;if(!0!==n||!m||!f||s&&s!==h.activeTestVersion||i&&i!==h.activeTestVersion||(le({cType:p,viewConfigForCtype:m,lazyConfig:f}),h.useLazyBidding=!0),b.hasSupport()){const e=b.get("currency");e?h.currencyRate=JSON.parse(e):b.set("currency",JSON.stringify(h.currencyRate))}const{units:g}=e;if(g){const e=[[],[]];for(let t=0;t<g.length;t++){const n=g[t],i=n&&n.mediaTypes&&n.mediaTypes.banner&&n.mediaTypes.banner.sizes;i?n.mediaTypes.banner.sizes=he(i):!n.mediaTypes&&n.sizes&&(n.mediaTypes=be(n)),n.disabled||(O.includes(n.code)?e[1].push(n):e[0].push(n),o&&(g[t]=ot(o,n)),ae(n)),at(n)}v=e,[h.displayAdUnits]=v,[,h.videoAdUnits]=v}var v;if(c&&me.add(c),!0===h.useLazyBidding){h.healthStatus.auctionType="lazyBidding";We(void 0,void 0,void 0,et(!0,p)),it()}else h.healthStatus.auctionType="singleAuction",je();h.hasConfig=!0,h.PrebidDamTimeout=setTimeout(()=>{u.mark("PrebidDamOpen"),l.prebidDam.open()},t)}function ct(e){const{WP:t}=window,n=new Error(e);n.name="ProgrammaticError",t.captureError(n)}function dt(e,t){const n={bdt:0,bdz:0,bdf:0,bdr:0,bdo:0,bdlog:""};return function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.bidsReceived;"string"==typeof e?e.includes("multi")&&(t=e):t="slot".concat(e);const i=n.filter(e=>e.adUnitCode===t);return i||[]}(e,t).forEach(e=>{n.bdt+=1,e.cpm<.005&&(n.bdz+=1),e.floorhit&&(n.bdf+=1),e.biderror&&(n.bdr+=1),e.APItimeout&&(n.bdo+=1),e.bidlog&&(n.bdlog+=e.bidlog)}),n}function lt(){const e=h.activeProgrammaticTest;let t=e&&e.changeHBConfig&&e.version;t=t||"default";const n=A.S2Sconfig,i=n&&n.tests&&n.tests[t];let o;return i&&i.name&&(o=i,o.include=Array.isArray(o.include)&&o.include.join(";")||o.include,o.exclude=Array.isArray(o.exclude)&&o.exclude.join(";")||o.exclude),o}function ut(e){const{WP:{gdpr:t}={},Math:n}=window,i=e.adid,o=e.bunch,{slot:r,params:a,waveaction:c,intent:u}=e,p=dt(r),b=lt(),f=l.getContext("geo"),v=i?q(i):ct("brak adId w bid"),y=h.activeProgrammaticTest;let w={},P=null,O=null;if(window.appVersion&&(O=window.appVersion),d.getDotParams("ccategory")&&(P=function(e){let t=e;return t=decodeURIComponent(t||""),t=t.replace(/^[\s\uFEFF\xA0]+|#|[\s\uFEFF\xA0]+$/g,""),t=t.replace(/\s*[,;?!.:]+\s*/g,";"),t=t.replace(/\s+/g,"_"),t=t.replace(/\W/g,e=>"oeaslzzcnOEASLZZCN".charAt("óęąśłżźćńÓĘĄŚŁŻŹĆŃ".indexOf(e))||e),t.toLowerCase().substring(0,256)}(d.getDotParams("ccategory"))),w.adId=0,w.bddr="unknown",w.cpm=0,w.cpmpl=0,w.ccpm=0,w.size="0x0",w.ttb=0,v){const e=g[v.auctionId]||{};w.adId=v.adId,w.bddr=v.bidder,w.ccpm=v.occpm||v.ccpm,w.cpm=parseFloat(v.cpm.toFixed(2),10),w.cpmpl=v.cpmpl,w.size="".concat(v.width||0,"x").concat(v.height||0),w.ttb=n.min(1e5,re(v.timeToRespond.toFixed(0))),w.currency=v.currency,w.an=v.auctionCounterPerView,v.responseLength&&(w.responseLength=v.responseLength),v.ad&&(w.adLength=v.ad.length),v.adUrl&&(w.adLength=v.adUrl.length),v.adMethod&&(w.adLength=v.adMethod.toString().length),v.creativeId&&(w.crid=v.creativeId),b&&(w.s2st=b&&b.name),v.adfscr&&(w.adfscr=1),v.adUnitCodeOld&&(w.multi=v.adUnitCodeOld),w.norodo=e.norodo}w=Object.assign(w,p),c&&(w.slot=r,w.bunch=o,w.wpsn=d.getSN(),w.deal=v.dealId?1:0,w.ctype=d.getDotParams("ctype"),w.reqCtype=v.reqCtype,w.resCtype=v.resCtype,f&&f.country&&(w.country=f.country),y&&y.name&&(w[y.name]=y.version),O&&(w.appVersion=O),P&&(w.ccategory=P),"All"!==s.getTest()&&(w.perfTest=s.getTest()),w.ck=t.get("ck"),w.mr=t.get("mr"),m.wave(c,Object.assign(w,a,u)))}function pt(e){const{bidder:t,isEmpty:n}=e;return I.has(t)||(void 0===x.get(t)&&x.set(t,!0),!n&&x.get(t)&&x.set(t,!1)),x.get(t)}function mt(e,t){let n;return e&&t&&(n="".concat(e,"x").concat(t),"100%xauto"===n&&(n="fluid")),n}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e,t,n,i,o){const{Math:r}=window;let a={slot:i.adUnitCode.slice(4),bddr:i.bidder,norodo:n.norodo?1:0,err:i.err,s2st:n.s2st||void 0,debug:i.debug||void 0,an:i.auctionCounterPerView};if(i.isEmpty||(a=ft(ft({},a),{},{adType:i.adType,cpm:r.floor(100*i.cpm)/100,ccpm:i.occpm||i.ccpm,cpmpl:i.cpmpl,size:mt(i.width,i.height),timeToRespond:i.timeToRespond,timeToView:e,timeToReady:t,timeToAuction:n.timetoauction,dealid:T.logDeals?i.dealId:void 0})),T.logSlotTimming&&o&&o.timeout&&0===i.auctionCounter){const e=d.isMobile()?1:3,t=o.slotsStartTime&&o.slotsStartTime[e];t&&(a.bidToSlot=t-i.responseTimestamp),a.auctToTmt=i.auctionStartTime-o.timeout,a.apiToBid=i.responseTimestamp-o.load}return h.firstAuctionStatusLogPvBD&&(a.first=1,h.firstAuctionStatusLogPvBD=!1),m.wave("auctionStatus",a),a}function vt(e,t){const n=g[e],i=[],o=t,r=Object.prototype.hasOwnProperty.call(P,e);let a=T.dynamicDelay;if(Ee.auctionEnd(),n){n.duration=Date.now()-n.start,n.ongoing=!1,u.mark("PrebidAuctionEnd"),u.measure("PrebidAuctionTime","PrebidAuctionInit","PrebidAuctionEnd"),ne(h.bidsReceived),function(e){const t=b.hasSupport();let n=e;if(t&&!n&&(n=b.get("emptyBids")||JSON.stringify({start:Date.now()})),n=JSON.parse(n),t&&Date.now()-n.start>3e5){const e={start:Date.now()};return b.set("emptyBids",JSON.stringify(e)),e}}(void 0);const t=$(),o=l.getContext("rshsd"),a=l.getPrebidLoadingState();let s,c;w&&w.timeclose&&(w.timeview&&(s=w.timeview-w.timeclose),w.timeready&&(c=w.timeready-w.timeclose));for(let d=0;d<n.bids.length;d++){const l=n.bids[d];l.auctionCounter=g[e].auctionCounter,l.auctionCounterPerView=g[e].auctionCounterPerView,l.auctionStartTime=g[e].start,r&&l.cpm>0&&i.push(l),l.adUnitCode.startsWith("multi")&&ee(o,t,l),pt(l),ht(s,c,n,l,a)}x.forEach((e,t)=>{I.add(t),e&&_.add(t)}),x.clear()}T.dynamicDelayTestVersion&&h.activeTestVersion!==T.dynamicDelayTestVersion&&(a=!1),r&&(P[e](i),delete P[e]),h.PrebidDamTimeout&&!h.firstAuctionEnd&&a&&(h.firstAuctionEnd=!0,u.mark("PrebidDamOpen"),l.prebidDam.open(),clearTimeout(h.PrebidDamTimeout)),h.lbvAid&&h.lbvAid===o.auctionId&&1===h.registerTimeCounter&&(h.lbvAid=null)}const{teadsOutstreamSlots:yt}=h;var wt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt;return t.includes(e)};const Pt={1.2:[[336,280],[300,250]],1.33:[[480,360],[300,225]],1.78:[[640,360],[320,180],[300,250]]};function Ot(e,t){const n=Object.keys(Pt),i=!!e&&e.width/e.height;return function(e,t){let n=[300,250];const i=Pt[e]||[[300,250]];if(t){for(let e=0;e<i.length;e++)if(i[e][0]<=t.width&&i[e][1]<=t.height){n=i[e];break}}else[n]=i;return n}(n.reduce((e,t)=>i?Math.abs(t-i)<Math.abs(e-i)?t:e:""),t)}function Ct(e){let t,n=0;return(ge.s(e)?he(e):e).forEach(e=>{const i=e[0]*e[1];i>n&&(n=i,t={width:e[0],height:e[1]})}),t}function St(e){const t=e,n=Ot(t,function(e){const{units:t}=C,n=t&&t.filter(t=>t.code===e)[0];if(n){var i,o,r,a;const e=null===(i=n.mediaTypes)||void 0===i||null===(o=i.banner)||void 0===o?void 0:o.sizes,t=null===(r=n.mediaTypes)||void 0===r||null===(a=r.video)||void 0===a?void 0:a.playerSize,s=n.sizes&&Ct(n.sizes),c=e&&Ct(e);return t&&Ct([t])||s||c}}(t.adUnitCode));t.size;[t.width,t.height]=n,t.size=n.join("x")}var Tt={criteo:"criteo",audiencenetwork:"facebook",adform:"adform",openx:"openx",appnexus:"adnxs",businessclick:"businessclick",rtbhouse:"creativecdn.com",pubmatic:"pubmatic",sovrn:"lijit.com",indexexchange:"casalemedia.com",smart:"prg.smartadserver.com",smartvideo:"www6.smartadserver.com",connectad:"i.connectad.io",districtm:"dmx.districtm.io",teads:"a.teads.tv/hb/bid-request",emxdigital:"hb.emxdgt.com",nanointeractive:"www.audiencemanager.de/hb",sspauction:"ssp.wp.pl/pbs/v1/openrtb2/auction",sspcookie:"ssp.wp.pl/pbs/v1/cookie_sync",bidderbc:"ssp.wp.pl/bidder/"};function At(e,t){const n=e.log||{},i=function(e){let t=!1;const n=e||"";return Object.keys(Tt).some(e=>n.indexOf(Tt[e])>0&&(t=e,!0)),t}(n.url);i&&(u.count("PrebidAjax".concat(t.substr(0,1).toUpperCase()).concat(t.substr(1),"_").concat(i.toUpperCase())),n.diff)}function kt(e,t){const{WP:{gdpr:n}={}}=window,i=t,o=i.auctionId||i.requestId;switch(e){case"ajaxRequest":0===(i.xhr.url||i.xhr.responseURL).indexOf("http://")&&u.count("PrebidNoSSL");break;case"ajaxResponse":{let e=Object.keys(g);if(e=Object.keys(g),Array.isArray(g)&&e.length>0){const t=i.xhr.log.start-g[e[e.length-1]].start;i.xhr.log.diff=t}At(i.xhr,i.type);break}case"bidRequested":i.bids.forEach(e=>{u.count("PrebidRequest_".concat(i.bidderCode.toUpperCase())),g[o]&&(g[o].requests+=1,g[o].bids.push({adId:e.bidId,bidder:e.bidder,bidderCode:e.bidder,adUnitCode:e.adUnitCode,cpm:0,ccpm:0,cpmpl:0,width:0,height:0,isEmpty:!0,statusMessage:"Pusta zaslepka",requestTimestamp:g[o].auctionStart,responseTimestamp:Date.now(),timeToRespond:0}))});break;case"bidResponse":u.count("PrebidResponse_".concat(i.bidder.toUpperCase())),g[o]&&(g[o].responses+=1,g[o].bids.forEach((e,t)=>{const{adId:n}=e;n!==i.adId&&n!==i.requestId||(g[o].bids[t]=i,g[o].bids[t].auctionCounter=g[o].auctionCounter)})),function(e){let t="unknown";const n=e;n&&(n.vastUrl||n.vastContent||n.vastXml?t=O.includes(n.adUnitCode)?"instream":v.includes(n.adUnitCode)?"audio":"outstream":n.placementId&&wt(n.placementId)?t="outstream":n.native?t="native":n.adMethod?t="richmedia":n.adUrl?t="iframeurl":n.ad&&(t="iframe"),n.adType=t)}(i),"outstream"===i.adType&&St(i),i.cpm>0&&(!i.vastContent&&i.vastXml&&(i.vastContent=i.vastXml),i.adUnitCodeBid=i.adUnitCode,Z(i),!h.isRetarg&&i.bidderCode.includes("criteo")&&i.ccpm>0&&(h.isRetarg=!0),h.bidsReceived.push(i),h.healthStatus.bidsReceived=!!h.bidsReceived.length);break;case"auctionInit":{const e=lt();h.auctionInProgress=!0,g[o]={start:i.timestamp,bids:[],auctionCounter:h.auctionsCount,auctionCounterPerView:h.auctionsCountPerView,requests:0,responses:0,sold:0,ctype:d.getDotParams("ctype"),counted:!1,ongoing:!0,id:o,timetoauction:h.AUCTION_LAST?i.timestamp-h.AUCTION_LAST:null,norodo:!n.check("mr","TP")||void 0},e&&(g[o].s2st=e&&e.name),h.lbvAid&&h.lbvAid===i.auctionId&&0===h.registerTimeCounter&&(h.registerTimeCounter=1),h.AUCTION_LAST=i.timestamp,u.mark("PrebidAuctionInit"),oe();break}case"auctionEnd":vt(o,i);break;case"bidWon":u.count("PrebidCreativeRun_".concat(i.bidder.toUpperCase())),g[o]&&(g[o].sold+=1);break;case"adRenderFailed":u.count("PrebidCreativeFailed_".concat(i.bidder.toUpperCase()));break;case"ajaxNoData":if("nodata"===i.type){const{bidder:e}=i;if(u.count("PrebidNoData_".concat(e.toUpperCase())),o&&e)for(let t=0;t<g[o].bids.length;t++){const n=g[o].bids[t];n.bidder===e&&(n.err=1)}}else u.count("PrebidNoUrl")}}function Dt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=!!e&&(e[n]||e),o=re(t);let r=!1;return i&&o&&(i[o]?r=i[o]:i.exclude&&i.exclude.includes(o)||(r=i.default)),r}function jt(e,t){return{sspBidCCPM:t?Math.max(e,t):e,isS2S:t>e}}function It(e){return Object.fromEntries(Object.entries(e).sort())}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ut=["criteo","appnexusAst","appnexus","adform","rubicon","connectad","audienceNetwork","rtbhouse","pubmatic","ix","smartadserver","openx","teads","xhb","quisma","emx_digital","emxdigitalVideo","sovrn","businessclick","smartvideo","smartnative","nanointeractive","districtm","districtmDMX","ccx"],Et=["criteo","appnexusAst","appnexus","adform","rubicon","connectad","audienceNetwork","rtbhouse","pubmatic","ix","smartadserver","openx","teads","xhb","quisma","emx_digital","emxdigitalVideo","sovrn","businessclick","smartvideo","smartnative","nanointeractive","districtm","districtmDMX","ccx"];function Lt(e,t){let n="hb";return e&&e.changeHBConfig&&e.version&&(n="hb"+e.version.toUpperCase()),t&&(n="hb"+t.toUpperCase()),f(n)}function Rt(){const e="bids_".concat(d.getSN()),t=JSON.parse(b.get(e))||[];if(t.length>0){Q(t);const i=t.filter(e=>!e.APItimeout&&!e.APIsold);b.set(e,JSON.stringify(i)),n=h.bidsReceived.concat(i),h.bidsReceived=n}var n}var Bt=["bidRequested","bidResponse","bidderDone","auctionInit","auctionEnd","bidWon","adRenderFailed","ajaxRequest","ajaxResponse","ajaxNoData"];var Mt=e=>{const{WP:t}=window,n=function(){const e=h.activeTestVersion,t=S.delay,n=d.isMobile()?400:800;let i=r("prebidDelay")||n;return"number"==typeof t?i=t:e&&t&&(i=t[e]||i),i}(),i=h.activeProgrammaticTest,{pubIdTestVersion:o,version:a}=i,s=r("hbv"),c=function(){const{WP:{gdpr:e,cookie:t}={}}=window,n=t.get("statid"),i=e.check("ck");let o="";if(n&&i)return n.split("").forEach(e=>{let t=e.charCodeAt(0)+o.length;t<48&&(t=122-(48-t)),t>122&&(t=t-122+48),o+=String.fromCharCode(t)}),o=btoa(o),o}();let p;if(h.logStartTime=Date.now(),Bt.forEach(t=>{e.onEvent(t,e=>{kt(t,e)})}),e.setConfig){const t={rubicon:{singleRequest:!0},userSync:{iframeEnabled:!0,filterSettings:{all:{bidders:"*",filter:"include"}}},bidderOrder:d.isMobile()?Et:Ut,bidderSequence:"fixed",consentManagement:{cmpApi:"iab",timeout:2e3,allowAuctionWithoutConsent:!0},disableAjaxTimeout:1,mobile:d.isMobile()};if(o&&o===a&&(t.userSync.userIds=[{name:"pubProvidedId",params:{eids:[{source:"firstpartyid",uids:[{id:c,atype:1,ext:{stype:"ppuid"}}]}]}}]),e.setConfig(t),S.server&&S.server.bidders){(!S.server.test||S.server.test===a)&&e.setConfig({s2sConfig:{accountId:S.server.accountid||"1",secure:1,enabled:!0,bidders:S.server.bidders,timeout:S.server.tmax||1500,adapter:"prebidServer",endpoint:"//ssp.wp.pl/pbs/v1/openrtb2/auction",syncEndpoint:"//ssp.wp.pl/pbs/v1/cookie_sync"}})}}if(h.auctionConfig||(h.auctionConfig={timing:{default:3e3},event:{default:"page:view"}}),p=Lt(h.activeProgrammaticTest),s&&(p=Lt({},s)),p)S.limits&&(h.emptyLimits=S.limits||{}),h.healthStatus.hbConfig=!!p;else{const e=new Error("HB Config missing");e.name="ProgrammaticError",t.captureError(e)}T.bidStorage&&Rt(),S.blockPrebid&&Ce(S.blockPrebid)?(u.mark("PrebidDamOpen"),l.prebidDam.open()):st(p,n)};function Vt(e,t){const n=Date.now(),{auctionConfig:i}=h,{lazyBidding:o}=T,r=ve(S.blackListConfig),a=t&&t.nextDot&&t.nextDot.ctype,s=t&&t.nextMedia&&t.nextMedia.video?t.nextMedia.video:[],c=!!(t&&t.nextMedia&&Object.keys(s).length),p=!!c&&s[0][Object.keys(s[0])].params,m=!!c||!(!window.vhb||!Object.keys(window.vhb).length),b=h.activeProgrammaticTest,f=!b||!ge.b(b.disableVideoBiddingOnEvent)&&b.disableVideoBiddingOnEvent!==b.version&&!T.disableVideoAutoBid;let g,v=d.getDotParams("ctype");switch(t&&t.ctype&&(v=t.ctype),i&&i.event&&(g=i.event[v]||i.event.default),e){case"page:close":Y(Le,e=>{Re(e)}),h.registerTimeCounter=0,h.firstAuctionStatusLogPvBD=!0,h.pageLoadTime=Date.now(),h.baseVideoIntent={autoplay:!1,forceSound:!0},h.videoAuctionCounter=0,h.healthStatus={hbConfig:h.healthStatus.hbConfig,auctionType:h.healthStatus.auctionType},w.prevCtype=v,w.timeclose=n,me.reset(),H.resetStore(),h.useLazyBidding&&!ge.u(h.videoAdUnits)&&m&&f&&(h.registeredPlayers=[],h.appendVideoToFirstAuction=!1,l.removeRegisterPlayerHandler instanceof Function&&(h.videoHandlers.forEach(e=>{l.removeRegisterPlayerHandler(e)}),h.videoHandlers=[]),et(!1,a,p)),c?u.count("nextMediaData_FILLED",1):u.count("nextMediaData_EMPTY",1),h.auctionsCountPerView=-1;break;case"page:view":r&&me.add(r),d.testSN("dynamic")&&ge.f(M.fetchBids)&&T.useAmazon&&M.fetchBids(),w.timeview=n,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.bidsReceived;e.forEach(e=>{const t=e,{adUnitCodeOld:n}=t;n&&n.includes("multi")&&(t.adUnitCode=n)})}();break;case"video:ready":w.timeready=n,u.mark("VideoReadyTime");break;case"video:apd":w.timeApd=n,u.mark("VideoApdTime"),u.measure("VideoReadyToVideoAPD","VideoReadyTime","VideoApdTime")}if(g&&e===g&&(w.isDynamic=d.testSN("dynamic"),w.time=n-(w.timestamp||n)||null,w.timestamp=n,w.ctype=v,w.isDynamic)){const{viewConfig:e}=S;if(e&&e[v]&&e[v].auctions&&o){h.useLazyBidding=!0,We();const e=l.getAllSlots();Y(e,t=>{nt(t,e[t])})}else je(!1,void 0,a)}}class Nt{constructor(e,t,n){this.bid=e,this.adunit=t,this.adId=this.bid.adId,this.bidder=this.bid.bidder,this.time=this.bid.timeToRespond,this.cpm=this.bid.cpm,this.msg=this.bid.statusMessage,this.rendered=n}}class zt{constructor(e,t,n,i,o){this.adunit=e,this.adId=t,this.bidder=n,this.time=i,this.cpm=o}}const{console:Ft,WP:Wt}=window,{activeProgrammaticTest:Ht}=h,{forceBidderLimiter:qt}=T,{bidderLimiterTver:Jt,version:Zt}=Ht,Qt={init:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h.activeProgrammaticTest=l.programmaticTests.getTest(),h.prebidAPILoadingState=l.getPrebidLoadingState(),h.activeTestVersion=h.activeProgrammaticTest.version||!1;const t=b.get("WPgeo"),n=l.getGEO(),i=[];let o=n&&n.country;u.mark("PrebidInited"),!o&&t&&(o=JSON.parse(t).country),d.testSN("o2_poczta_wylogowano")||d.testSN("o2_poczta_o2_pl_nh")||o&&i.includes(parseInt(o,10))||M.loadLibrary(),d.hasSN()&&e.libLoaded&&Mt(e)},afterBunch:function(e){const t=l.getContext("rshsd"),{bidsReceived:n}=h,i=$(e);let o=0;oe(),n.forEach(e=>{const n=e.adUnitCode.replace("slot",""),r=i[n],a=p.slide(K(n),t);("ZZZZ"===r||r>=a)&&function(e){const t=e,{APIsold:n,adUnitCodeOld:i,cpm:r}=t;!n&&r>0&&i&&(o+=1,t.adUnitCode=i)}(e)}),o>0&&ie(i)},onPrebidLoad:Mt,slotIsLimited:function(e){const t=parseInt(e,10),n=l.getDirectSlots();Array.isArray(n)&&n.length>0&&me.add(n);const{blackList:i}=h;if(0!==i.length)return h.auctionSlots.includes(t)&&i.includes(t)?0:!h.auctionSlots.includes(t)&&i.includes(t)?1:void 0},startDisplayAuction:function(e,t){const n=d.getDotParams("ctype"),i="fA-".concat(Qe());ge(t,"function")&&(P[i]=t),Ee.addAuctionToQueue(void 0,{slots:e},n,void 0,void 0,i,"skipQueue")},getSlotCPM:K,getHighestBid:X,getFloorPrice:V,getGAMTarget:function(e,t,n,i,o){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:S,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:h;const{activeProgrammaticTest:s=!1,isRetarg:c}=a,{btVersionTest:d,dfpMTestVersion:l,version:u}=s,m=!(!s||!d)&&"conf".concat(u||"A"),b=!(!s||!l)&&"conf".concat(u||"A"),f=ge(n,"string")?p.unslide(n)||0:n||0,{sspBidCCPM:g,isS2S:v}=jt(t,o),y="businessclick"===i&&f>g?0:g,w=Dt(r.dfpMultipliers,e,b),P=Dt(r.bidTargets,e,m),{dfpFloorMultiplier:O=P}=S;let C,T,A=!1,k=0;return c&&P&&(y&&y>=f?(T=P*y,k=v?4:3):f?(T=O*(v?y:f),C=!0,k=v?4:5):T=!1),y&&(T?w&&y*w>T&&(T=y*w,k=v?2:1):(T=w?y*w:y,k=w&&v?2:1)),T&&(A={target:T,noMultiplier:C,targetModel:k}),A},getDFPMultiplier:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.activeProgrammaticTest;const{dfpMultipliers:i}=t,o=!(!n||!n.dfpMTestVersion)&&"conf".concat(n.version||"A");return Dt(i,e,o)||1},generateInline:(e,t)=>{const{WP:n,pbjs:i}=window,o=X(t),r=Date.now();let a=!1,s=!0,c=!d.testSN("ext_yb");const l={},p={bunch:e,slot:t,creations:[l]};if(!o)return u.count("PrebidShowNoBid"),!1;const{ad:m,adId:f,adMethod:g,adUrl:v,adType:y,APIlocalStorage:P,adUnitCodeBid:O,bidder:C,height:S,native:A,responseTimestamp:k,requestTimestamp:D,tagid:j,url:I,width:_,vastUrl:x,vastContent:U,vastXml:E}=o;let{adUnitCode:L}=o;const R="testwp"===C||P;q(f,"APIsold"),L.startsWith("group")&&(L="slot".concat(t)),T.bidStorage&&function(e){const t=e.cpm&&e,n="bids_".concat(d.getSN()),i=JSON.parse(b.get(n))||[];if(t){const e=(i||[]).filter(e=>t.adId!==e.adId);t.APIlocalStorage=!0,e.push(t),b.set(n,JSON.stringify(e))}}(o);let B=_,M=S;if(["teads"].includes(C)&&(l.tagId=O||L,c=!1,B="100%",M="auto"),!a&&(x||U)){const i="https://dot.wp.pl/show.gif?srv=traffic_outstream&par=src%3D",r="%26bidder%3D".concat(C,"%26wpsn%3D").concat(d.getSN(),"%26adid%3D").concat(f,"%26slot%3D").concat(t,"%26ctype%3D").concat(d.getDotParams("ctype"),"%26bunchid%3D").concat(e),c={passback:["".concat(i,"passback").concat(r)],load:["".concat(i,"load").concat(r)],visibility:["".concat(i,"visibilityCheck").concat(r)],start:["".concat(i,"start").concat(r)],complete:["".concat(i,"complete").concat(r)],firstQuartile:["".concat(i,"first").concat(r)],midpoint:["".concat(i,"midpoint").concat(r)],thirdQuartile:["".concat(i,"third").concat(r)],impression:["".concat(i,"imp").concat(r)]},u={hiderelated:!0,mediaEmbed:"outstream",width:_,height:S,embedTrackings:c,bid:o};l.type="script",l.externalCode=(e,t)=>{const{holder:i}=t.rebuild;i.style.width="".concat(_,"px"),i.style.height="".concat(S,"px"),u.target=i,new n.player(u)},s=!1,a=!0}if(!a&&g&&(l.type="script",l.showLabel=c,l.externalCode=(e,t)=>{try{g(t.rebuild.holder)}catch(e){e.name="ProgrammaticError",n.captureError(e)}},a=!0),!a&&A){const e=A;l.type="native",l.data={system:"prebid",text:e.title,url:e.clickUrl,impPixel:e.impressionTrackers,clickPixel:e.clickTrackers,jsTracker:e.javascriptTrackers,advName:e.sponsoredBy,adUnit:L,adId:f,bidCallback(){i.markAdAsWon&&i.markAdAsWon(f)}},e.image&&(e.image.url?l.data.src=e.image.url:ge.s(e.image)&&(l.data.src=e.image)),kt("bidWon",o),a=!0}if(!a&&v&&i.embedded&&(l.type="iframe",l.src=v,l.width=B,l.height=M,l.showLabel=c,l.nomess=!0,h.prebidConfig.sandbox&&(l.sandbox=h.prebidConfig.sandbox),a=!0),a||(l.type="code",l.width=B,l.height=M,l.showLabel=c,l.code=R?m:"\x3c!--PrebidAPI--\x3e",h.prebidConfig.sandbox?l.sandbox=h.prebidConfig.sandbox:h.prebidConfig.nosandbox||(l.sandbox="allow-same-origin allow-scripts allow-popups allow-forms"),m&&m.includes("wppl_wallpaper.js")&&(l.useAlternativeSlot=!0),l.externalCode=(e,t)=>{try{const e=t.rebuild.iframe.contentDocument;R||i.renderAd(e,f)}catch(e){e.name="ProgrammaticError",n.captureError(e)}},a=!0),a){const n={type:"show",age:r-k,adtype:y,tts:re((Date.now()-h.logStartTime).toFixed(0))};j&&(n.tagid=j),w&&w.prevAuctionTS&&(n.tta=re((Date.now()-D).toFixed(0)));/http:\//i.test(m||I||x||E||U)&&(n.unsecure=1),s&&ut({bunch:e,adid:f||void 0,slot:t,params:n,waveaction:"prebidsold"})}return p},getExpiredBid:H.getExpiredBid,logS2S:function(e){const t=e,n={},i=lt(),o=h.activeProgrammaticTest;return n.wpsn=d.getSN(),n.ctype=d.getDotParams("ctype"),o&&o.name&&(n[o.name]=o.version),window.appVersion&&(n.appVersion=window.appVersion),"All"!==s.getTest()&&(n.perfTest=s.getTest()),t.bunch||(t.bunch=d.getBunchID()),t.bddr||t.bidder||(t.bddr=t.bidder),t.bddr?t.bddr="S2S-".concat(t.bddr):t.bddr="S2S",t.cpm&&(t.cpm=parseFloat(t.cpm.toFixed(2),10)),i&&t.s2st&&i.name!==t.s2st&&(u.count("PrebidS2S_TestERR"),n.s2st2=i.name),m.wave("prebidsold",Object.assign(n,t)),{s2sdata:t,result:n}},runMod:function(e,t,n){const{WP:i={}}=window,o=t||!1;let r=n;if(r&&r.dataset){const{bunch:e}=r.dataset,{slot:t}=r.dataset;r=l.getStore(e,t).creation}r&&e&&o&&(Object.assign(r,o),r.modsToLoad=r.modsToLoad||[],r.modsToLoad.push(e),i.mods&&i.mods.load&&i.mods.load(r))},startVideoAuction:Xe,markUsed:function(e,t){let n=!1;if(t){n=q(e,"APIused");const t=n&&n.adType;"instream"===t?u.count("PrebidVideoUsed_".concat(n.bidder.toUpperCase())):"outstream"===t&&u.count("PrebidOutstreamUsed_".concat(n.bidder.toUpperCase()))}else if(n=q(e,"APIsold"),n&&!n.APIcounted){ut({bunch:d.getBunchID(),slot:n.adUnitCode.replace("slot",""),adid:e,params:{type:"show",adtype:n.adType,age:Date.now()-n.responseTimestamp},waveaction:"prebidsold"}),n=q(n,"APIcounted")}return n},markSold:function(e){const t=q(e,"APIsold")||!1,n=t?t.adUnitCode.replace("slot",""):void 0,{APIused:i,auctionId:o,adType:r,bidder:a,cpmpl:s,responseTimestamp:c}=t;if(t&&!t.APIcounted&&i){ut({bunch:d.getBunchID(),slot:n,adid:e,intent:h.intentLog||{},params:{type:"show",adtype:r,age:Date.now()-c},waveaction:"prebidsold"}),kt("bidWon",t),"instream"===r?(u.count("PrebidVideoRun_".concat(a.toUpperCase())),u.count("PrebidVideoRevenue_".concat(a.toUpperCase()),s/100)):"outstream"===r&&(u.count("PrebidOutstreamRun_".concat(a.toUpperCase())),u.count("PrebidOutstreamRevenue_".concat(a.toUpperCase()),s/100)),o&&g[o]&&(g[o].sold+=1),t.APIcounted=!0}return t},getVideoBid:function(e){const t=JSON.stringify(It(y.auto_play_sound_on)),n=JSON.stringify(It(y.auto_play_sound_off)),i=JSON.stringify(It(y.click_to_play)),o=JSON.stringify(It(h.intentParams)),r=X(150),a=(e.mpe,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));let s,c,d;if(a){const{min:e,mit:t,mmu:n,mpe:i}=a;"related"===i&&(0!==e||1!==t&&0!==n?1!==e&&2!==e||1!==t&&0!==n?2!==e||0!==t&&1!==n||(s="rui"):s="rap":s="rup"),delete a.mpe,delete a.muu,delete a.pdp,c=JSON.stringify(It(a))}d=c===t||c===n?"a":c===i?"u":s||c;const l={plP:d,plI:c===t||c===i?1:0,plA:c===t||c===n?1:0,plU:c===i?1:0,re:s,pIn:o===t||o===i?1:0,pAu:o===t||o===n?1:0,pUp:o===i?1:0,mpe:e.mpe};return h.intentLog=l,r},getAudioBid:function(){const e=X(316);return"audio"===e.adType&&e},prebidDam:l.PrebidDam,AmazonAPI:M},Xt={testBid:function(e){const t=e,n=["ad","adUrl","noad","native","vast","vastUrl","adMethod"].reduce((e,n)=>e||t[n],0),{adId:i,bidder:o,connected:r,cpm:a,ttl:s,adMethod:c}=t,{rekid:d}=window;let u,{slot:p,size:m}=t;if(!p)return!1;n||(p>=150?t.vast='<VAST xmlns:xsi="//www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast2.xsd" version="2.0"><Ad id="testwp001"><InLine><AdSystem>TESTWP</AdSystem><AdTitle>TESTWP</AdTitle><Creatives><Creative><Linear><Duration>00:00:15</Duration><TrackingEvents></TrackingEvents><VideoClicks><ClickThrough><![CDATA[https://www.wp.pl/?from=video]]></ClickThrough></VideoClicks><MediaFiles><MediaFile delivery="progressive" bitrate="512" width="720" height="405" type="video/mp4"><![CDATA[//adv.wp.pl/RM/Box/2018-06/gp/14/instream/Farmerama_Trailer_2015_15s.mp4]]></MediaFile><MediaFile delivery="progressive" bitrate="512" width="720" height="405" type="video/webm"><![CDATA[//adv.wp.pl/RM/Box/2018-06/gp/14/instream/Farmerama_Trailer_2015_15s.webm]]></MediaFile></MediaFiles></Linear></Creative></Creatives></InLine></Ad></VAST>':p>=80&&p<84?t.native={title:"Testowa reklama Native",clickUrl:"https://www.wp.pl/?from=native",image:{width:300,height:150,url:"https://dummyimage.com/400x270/000/fff.png"},impressionTrackers:[]}:t.ad='<a href="https://www.wp.pl/?from=banner" target="_blank"><img src="https://dummyimage.com/300x250/000/fff.png&text=prebid" style="width:300px;height:250px;border:0" /></a>'),m||(t.ad&&(m=[300,250]),(t.vast||t.vastUrl)&&(m=[640,360]),t.native&&(m=[1,1])),Number.isNaN(p)||(p=p.toString()),u=p.includes("group")||p.includes("multi")?p:"slot".concat(p);let b={adId:i||"testwp".concat(Math.floor(1e10*Math.random())),bidder:o||"testwp",bidderCode:o||"testwp",adUnitCode:u,connected:r,cpm:parseFloat(a)||99,width:m[0],height:m[1],ttl:s||3e3,statusMessage:"bid available",requestTimestamp:Date.now(),responseTimestamp:Date.now(),timeToRespond:0,ad:t.ad,vastContent:t.vast,vastUrl:t.vastUrl,vastImpUrl:t.vastImpUrl,native:t.native,adUrl:t.adurl,adMethod:c};return b=Z(b),h.bidsReceived.push(b),d&&l.loadAndRunSlots&&t.reload&&l.loadAndRunSlots(d,p),b},getHasConfig:function(){return h.hasConfig},applyConfig:st,getState:()=>ct("getState call"),clearBids:function(){h.bidsReceived.length=0},logPrebid:ut,setBidFlag:q,xhrLogger:At,assignMultiBids:ie,setConnectedSlots:e=>{h.connectedSlots=e},healthCheck:function(){return console.table&&console.table(h.healthStatus),h.healthStatus},_ver:"v1.0.193",_buildDate:"2021-03-08 11:55:24",_bidsReceived:h.bidsReceived,_auctions:g,limitedBidders:_,analyzedBidders:I,bidderLimiterActive:qt||Jt&&Jt===Zt,emptyLimits:h.emptyLimits,connectedSlots:h.connectedSlots};Wt.stat&&Wt.registerApi?Wt.registerApi("prebid",Object.freeze(Qt),Wt.stat.getPageViewID()):Object.defineProperty(Wt,"prebid",{value:Object.freeze(Qt)}),window.__prebiddebug__=Object.freeze(Xt),Wt.utils.flag("PrebidAPI ready",!0),Wt.performance.measure("PrebidChunkInited","PrebidChunk","PrebidInited"),Wt.addHandler("page:close",Vt),Wt.addHandler("page:view",Vt),Wt.addHandler("video:ready",Vt),Wt.addHandler("video:apd",Vt);try{const e=window.__wpjsdebug__;if(e){const t=e.additionalActions||[];t.push({name:"Show all bids over floor",action:()=>{Ft.table&&Ft.table(h.bidsReceived.filter(e=>!e.floorhit))}},{name:"Show all bids",action:function(){const{console:e,pbjs:t}=window;if(t){const n=t.getBidResponses(),i=t.getAllWinningBids(),o=[];Object.keys(n).forEach(e=>{n[e].bids.forEach(t=>{const n=!!i.find(e=>e.adId===t.adId),r=new Nt(t,e,n);o.push(r)})}),o.length?e.table&&e.table(o):e.warn("No prebid responses")}}},{name:"Show all winning bids",action:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pbjs;const t="showAllWinningBids",{console:n}=window,i=[];if(e&&ge.f(e.getHighestCpmBids)){(e.getHighestCpmBids()||[]).forEach(e=>{const t=new zt(e.adUnitCode,e.adId,e.bidder,e.timeToRespond,e.cpm);i.push(t)}),i.length>0?n.table&&(n.table(t,":"),n.table(i)):n.warn(t,"--\x3e No prebid winners")}return i}}),e.additionalActions=t}}catch(e){e.name="ProgrammaticError",Wt.captureError(e)}}]);