!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return(()=>{"use strict";var e={};let t,n,r,o,i,a,c,l,u,s,d,f,p;function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),function(e){let t=!1;e.setAllowLogging=function(e){t=!!n.findHighestWindow().location.search.includes("bex_logging=true")||e},e.logInfo=function(...e){t&&console.log("%c%s%c%s%s","background: #00008B; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...e)},e.logWarning=function(...e){t&&console.log("%c%s%c%s%s","background: #FF8C00; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...e)},e.logError=function(e,...n){t&&(n.length>0&&console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...n),console.log(e))},e.logProblem=function(...e){t&&console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...e)}}(t||(t={})),function(e){function n(){const e=window.top;let t=window;for(;t!==e;)try{t.parent.document,t=t.parent}catch(e){break}return t}function r(){return n().document}e.getRandomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)},e.replaceAll=function(e,t,n){return e.split(t).join(n)},e.fixDomain=function(e){return(e=(e=e.toLowerCase()).replace(/^http(s?):\/\//i,"")).startsWith("www.")&&(e=e.slice(4)),e.endsWith("/")&&(e=e.slice(0,-1)),e},e.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},e.findHighestWindow=n,e.findHighestDocument=r,e.hbFrameId="__bexHBFrame";const o=e.hbdevFrameId="__bexHBDevFrame";function i(e,t){let n=r().querySelector("#".concat(t));return n||(n=r().createElement("iframe"),n.id=t,n.style.display="none",n.onload=function(){const t=n.contentDocument,r=t?.createElement("script");r&&(r.src="https://".concat(e,"/hbscript"),r.async=!0,r.defer=!0,t?.head.appendChild(r))},r().body.appendChild(n),n)}e.createHbFrame=i,e.initalizeHb=function(e,n){"www.slovenskenovice.si"===window.location.host&&window.afterIpromPrebid?(t.logInfo("Setting iframe creation through iprom initalizer..."),window.afterIpromPrebid.push((function(){return i(e,n)}))):i(e,n)},e.isDevelMode=function(e=!1,t){return!(!e&&void 0===t)&&(e?window.frameElement?.id===o:void 0===t||t.includes("hbdev.contentexchange.me"))},e.sendEventImage=function(e){const t=r(),n=t.createElement("img");n.src=e,n.onload=function(){t.body.removeChild(n)},n.style.display="none",t.body.appendChild(n)},e.crawlToPost=function(e){let t=e;for(;t&&!t.classList.contains("$bexAd_post");){if("BODY"===t.tagName)return null;if(!t.parentElement)return null;t=t.parentElement}return t},e.getCookie=function(e,t){const n="; ".concat(t).split("; ".concat(e,"="));if(2===n.length)return n.pop()?.split(";").shift()}}(n||(n={})),function(e){function t(){const e=n.findHighestWindow();let t=e.bextag;return t||(e.bextag=t={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},onBexAdFailed:[],onBexAdSuccess:[]}),"targeting"in e.bextag||(e.bextag.targeting={}),"headerbidding"in e.bextag||(e.bextag.headerbidding={}),"queue"in e.bextag.headerbidding||(e.bextag.headerbidding.queue=[]),"_internals"in e.bextag||(e.bextag._internals={}),"headerbidding"in e.bextag._internals||(e.bextag._internals.headerbidding={}),"bexDisplayHB"in e.bextag._internals.headerbidding||(e.bextag._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in e.bextag._internals.headerbidding||(e.bextag._internals.headerbidding.bexNativeHB={}),"loaders"in e.bextag._internals||(e.bextag._internals.loaders={}),"bds"in e.bextag._internals||(e.bextag._internals.bds={}),"onBexAdFailed"in e.bextag||(e.bextag.onBexAdFailed=[]),"onBexAdSuccess"in e.bextag||(e.bextag.onBexAdSuccess=[]),t}e.getBexTag=t,e.getBexDevTag=function(){const e=t();let n=e._devTag;n||(e._devTag=n={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},onBexAdFailed:[],onBexAdSuccess:[]});const r=n;return"targeting"in r||(r.targeting={}),"headerbidding"in r||(r.headerbidding={}),"queue"in r.headerbidding||(r.headerbidding.queue=[]),"_internals"in r||(r._internals={}),"headerbidding"in r._internals||(r._internals.headerbidding={}),"bexDisplayHB"in r._internals.headerbidding||(r._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in r._internals.headerbidding||(r._internals.headerbidding.bexNativeHB={}),"loaders"in r._internals||(r._internals.loaders={}),"bds"in r._internals||(r._internals.bds={}),"onBexAdFailed"in r||(r.onBexAdFailed=[]),"onBexAdSuccess"in r||(r.onBexAdSuccess=[]),n}}(r||(r={})),(o||(o={})).getAdformTag=function(){const e=window;return e.adformtag=e.adformtag||[]},(i||(i={})).getPrebid=function(){const e=window;let t=e.pbjs;return t||(e.pbjs=t={que:[]}),t},a||(a={}),function(e){let r=x((function e(){_(this,e)}));e.MemoryStorage=r;let o=function(e){g(r,e);var n=y(r);function r(e,t){var o;return _(this,r),w(m(o=n.call(this)),"_name",void 0),w(m(o),"_storage",void 0),w(m(o),"_data",void 0),w(m(o),"_isLoaded",void 0),o._name=e,o._storage=t,o._data={},o._isLoaded=!1,o}return x(r,[{key:"getValue",value:function(e){return this.load(),this._data[e]}},{key:"setValue",value:function(e,t){this._data[e]=t,this.save()}},{key:"deleteKey",value:function(e){this.hasKey(e)&&(delete this._data[e],this.save())}},{key:"hasKey",value:function(e){return this.load(),void 0!==this._data[e]}},{key:"save",value:function(){try{this._storage.setItem(this._name,JSON.stringify(this._data))}catch(e){t.logError(e,"Failed to save browser storage!",this._name)}}},{key:"load",value:function(){if(!this._isLoaded){this._isLoaded=!0;try{const e=this._storage.getItem(this._name);if(!e)return;this._data=JSON.parse(e)}catch(e){t.logError(e,"Failed to load browser storage!",this._name),this._data={}}}}},{key:"clear",value:function(){this._data={},this.save()}}]),r}(r);e.BrowserStorage=o;let i=function(e){g(r,e);var t=y(r);function r(e){return _(this,r),t.call(this,e,n.findHighestWindow().sessionStorage)}return x(r)}(o);e.Session=i}(c||(c={})),function(e){const r={};e.registerFallback=function(e){return e?r[e.id]?t.logWarning("Fallback already registered!",e.name):void(r[e.id]=e):t.logWarning("No fallback provided during registration!")},e.invokeFallback=async function(e,o){if(!e||!o)return!1;const i=n.uuidv4();let a=e.execList;for(;null!=a;)try{const e=r[a.type];if(!e){t.logWarning("Fallback is not registered!",a.type),a=a?.next;continue}if(!e.isAvailable){t.logWarning("Fallback is not available!",e.name),a=a?.next;continue}if(await e.invoke(a.config,o,i))return t.logInfo("Fallback was successfully invoked and rendered an ad!",e.name),!0;a=a?.next}catch(e){t.logError(e,"An error occured while trying to execute a fallback!"),a=a?.next}return t.logWarning("Ad was not able to be processed by the fallback system!"),!1}}(l||(l={})),function(e){const r={},o=n.findHighestDocument();function i(e,t,n){const r=e.children;for(let o=0;oS.innerWidth||t.push(n);return t}},{key:"getCorrectSize",value:function(e){if(!e.size)return[[300,250]];let t=[];return e.size.desktop&&S.innerWidth>480&&(t=t.concat(this.verifyFromSizes(e.size.desktop))),e.size.mobile&&S.innerWidth<=480&&(t=t.concat(this.verifyFromSizes(e.size.mobile))),e.size.universal&&(t=t.concat(this.verifyFromSizes(e.size.universal))),t}},{key:"getIdFromBidParam",value:function(e){switch(e.bidder){case"criteo":case"adkernel":return e.params.zoneId;case"mgid":case"contentexchange":case"appnexus":return e.params.placementId;case"adtelligent":return e.params.aid;case"smartadserver":return e.params.formatId;case"adformOpenRTB":return e.params.mid;case"admixer":return e.params.zone;default:return null}}},{key:"buildAdUnit",value:function(e){if("NATIVE"===e.type)return{code:e.id,mediaTypes:{native:{image:{required:!0,aspect_ratios:[{min_width:250,ratio_width:2,ratio_height:1}]},title:{required:!0,len:150},sponsoredBy:{required:!1}},banner:{sizes:[[250,150]]}},bids:e.bids};if(e.size){const t=this.getCorrectSize(e);return t.length<1?null:{code:e.id,mediaTypes:{banner:{sizes:t}},bids:e.bids}}return null}},{key:"invoke",value:async function(e,t,n){const r=this.buildAdUnit(e);if(!r)return!1;for(let t of e.bids){const n=this.getIdFromBidParam(t);n&&d.mapAdUnitBidder(e.id,t.bidder,n)}const o=await p.sendAdUnit(r,e.floorPrice);if(f.sendAuctionData(n,o.auctionId),o.winner&&d.setWinningBid(o.winner),d.sendAuctionData(o.auctionId,n),!o||!o.winner)return!1;let i="generic";return"native"!==o.winner.mediaType&&(i="display"),await u.invokeRenderer(i,t,o.winner,n,e)}}])&&T(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(F);function q(e,t){for(var n=0;n=250&&(!t||t[0]>=250)}},{key:"getHighestSize",value:function(e){if(!e.size)return null;for(let t of e.size)if(!(t[0]>L.innerWidth))return t;return null}},{key:"invoke",value:function(e,n,r){var o=this;return new Promise((async function(i,a){if(f.sendFallbackRequestData(r),!e.Google.Slot)return t.logWarning("Slot was not specified in Google ad!",e),f.sendFallbackData(r,!1),i(!1);const c=L.document,l=o.getHighestSize(e),u=n.querySelector(".cex-adform-container");let s=n;if(u&&(s=u),e.Google.Key&&!o.isValidAdSpace(s))return t.logWarning("Selected ad space is less than 250px in width! Cannot place Google here!",n),f.sendFallbackData(r,!1),d.sendGoogleData(r,e.Google.Slot,l,!1),i(!1);if(!e.ignoreDiv){const e=c.createElement("div");e.style.display="block",e.style.position="absolute",l?(e.style.width=l[0]+"px",e.style.height=l[1]+"px"):(e.style.width="100%",e.style.height="100%"),s.insertAdjacentElement("afterbegin",e),s=e}s.classList.add("bex-google-fallback"),s.style.zIndex="-10";const p=c.createElement("ins");if(e.Google.Key?(p.style.display="block",p.setAttribute("data-ad-format","fluid"),p.setAttribute("data-ad-layout-key",e.Google.Key)):(p.style.display="inline-block",l?(p.style.width=l[0]+"px",p.style.height=l[1]+"px"):(p.style.width="100%",p.style.height="100%")),p.classList.add("adsbygoogle"),p.setAttribute("data-ad-client","ca-pub-6068861086909170"),p.setAttribute("data-ad-slot",e.Google.Slot),s.insertAdjacentElement("afterbegin",p),p.onGoogleComplete=function(o){if(!o)return t.logWarning("Detected fail-state for Google ad!",s),f.sendFallbackData(r,!1),d.sendGoogleData(r,e.Google.Slot,l,!1),s!==n?s.parentElement?.removeChild(s):p.parentElement?.removeChild(p),i(!1);if(f.sendFallbackData(r,!0),d.sendGoogleData(r,e.Google.Slot,l,!0),!e.ignoreDiv){const e=n.children;for(let t of e)t!==p&&t!==s&&(t.style.visibility="hidden")}return s.style.zIndex="7",i(!0)},o.trackGoogleElement(p),!c.head.querySelector("#bex-google-script")){const e=c.createElement("script");e.id="bex-google-script",e.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",e.async=!0,c.head.appendChild(e)}try{(L.adsbygoogle=L.adsbygoogle||[]).push({})}catch(e){return a(e)}}))}}],o&&q(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),l}(F);function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n