(()=>{"use strict";let e,t,n,i={};!function(e){let n=!1;function i(){const e=(new Error).stack;if(!e)return null;const t=e.split("\n")[3].split(" ");let n=t[t.length-1];return"("!==n[0]&&(n="("+n+")"),n}e.setAllowLogging=function(e){n=!!t.findHighestWindow().location.search.includes("bex_logging=true")||e},e.logInfo=function(...e){if(!n)return;const t=i(),o=Date.now()-performance.timing.navigationStart;console.log("%c%s%c%s%s","background: #00008B; color: White; font-weight: bold;","[CeX Header Bidding]","",o,t?" ".concat(t):"","",...e)},e.logWarning=function(...e){if(!n)return;const t=i(),o=Date.now()-performance.timing.navigationStart;console.log("%c%s%c%s%s","background: #FF8C00; color: White; font-weight: bold;","[CeX Header Bidding]","",o,t?" ".concat(t):"","",...e)},e.logError=function(e,...t){if(!n)return;const o=i(),r=Date.now()-performance.timing.navigationStart;t.length>0&&console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]","",r,o?" ".concat(o):"","",...t),console.error(e),console.trace()},e.logProblem=function(...e){if(!n)return;const t=i(),o=Date.now()-performance.timing.navigationStart;console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]","",o,t?" ".concat(t):"","",...e),console.trace()}}(e||(e={})),function(t){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 i(){return n().document}t.getRandomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)},t.replaceAll=function(e,t,n){return e.split(t).join(n)},t.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},t.guid=function(e=4){return e>11&&(e=11),Math.random().toString(36).substr(2,e)},t.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)})},t.findHighestWindow=n,t.findHighestDocument=i,t.hbFrameId="__bexHBFrame";const o=t.hbdevFrameId="__bexHBDevFrame";function r(e,t){const n=i();n.body||(n.body=n.createElement("body"));let o=n.querySelector("#".concat(t));return o||(o=n.createElement("iframe"),o.id=t,o.style.display="none",o.onload=function(){const t=o.contentDocument,n=t?.createElement("script");n&&(n.src="https://".concat(e,"/hbscript"),n.async=!0,n.defer=!0,t?.head.appendChild(n))},n.body.appendChild(o),o)}function a(e){if(!e.size)return[[300,250]];let t=[];const i=n().innerWidth;e.size.desktop&&i>480&&(t=t.concat(e.size.desktop)),e.size.mobile&&i<=480&&(t=t.concat(e.size.mobile)),e.size.universal&&t.length<1&&(t=t.concat(e.size.universal)),t=t.map(function(e){return{width:e[0],height:e[1]}});let o=t.filter(function(e){return e.width<=i});return o.length<1&&(o=[t.reduce(function(e,t){return Math.abs(i-e.width)>Math.abs(i-t.width)?t:e},{width:e.size.original[0],height:e.size.original[1]})]),o}t.createHbFrame=r,t.initalizeHb=function(t,n){"www.slovenskenovice.si"===window.location.host&&window.afterIpromPrebid?(e.logInfo("Setting iframe creation through iprom initalizer..."),window.afterIpromPrebid.push(function(){return r(t,n)})):r(t,n)},t.initForeignPixels=function(){},t.initLupon=function(e){const t=n(),o=t.bextag=t.bextag||{};if(o.luponDone)return;o.luponDone=!0;const r=i(),a=r.createElement("script");a.src="https://adxbid.info/pubId".concat(e,'.js"'),a.async="async",r.body.appendChild(a)},t.isDevelMode=function(e=!1,t){return!(!e&&void 0===t)&&(e?window.frameElement?.id===o:void 0===t||t.includes("hbdev.contentexchange.me"))},t.sendEventImage=function(e){const t=i(),n=t.createElement("img");n.src=e,n.onload=function(){t.body.removeChild(n)},n.style.display="none",t.body.appendChild(n)},t.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},t.getCookie=function(e,t){const n="; ".concat(t).split("; ".concat(e,"="));if(2===n.length)return n.pop()?.split(";").shift()},t.filterConfig=function(t){const i=new URL(n().location.href).searchParams.get("bex_keeponly");if(!i||"direct"==i)return;const o=i.split("-"),r=o[0],a=o[1];let s=t.placement.execList;const c=[];for(;s;){const e=s.next;e&&delete s.next,s.type==r&&("headerbidding"==r&&(s.config.bids=s.config.bids.filter(function(e){return e.bidder==a})),c.push(s)),s=e}t.placement.execList=c[0],e.logInfo("filtered config",t)},t.getAvailableSizes=a,t.makeAuctionRequest=function(e,t,n){if("DISPLAY"==n.adType){const i=a(n);return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:n.size.original[0],height:n.size.original[1]},availableSizes:i,size:null,type:"DISPLAY",mediaType:"banner",hasResponse:!1,hasWon:!1,cpm:0,widget:n.widget}}return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:0,height:0},availableSizes:[{width:0,height:0}],size:null,type:"NATIVE",mediaType:"native",hasResponse:!1,hasWon:!1,cpm:0,widget:n.widget}},t.makeAuctionResponse=function(e,t,n){if("DISPLAY"==n.adType){const i=a(n);return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:n.size.original[0],height:n.size.original[1]},availableSizes:i,size:{width:n.size.original[0],height:n.size.original[1]},type:"DISPLAY",mediaType:n.mediaType||"banner",hasResponse:!0,hasWon:!1,cpm:0,widget:n.widget}}return{id:t,domain:n.domain,placement:n.id,source:e,placement_size:{width:0,height:0},availableSizes:[{width:0,height:0}],size:{width:0,height:0},type:"NATIVE",mediaType:n.mediaType||"native",hasResponse:!0,hasWon:!1,cpm:0,widget:n.widget}},t.sendAuctionData=function(e){const t=n();e.window=[t.innerWidth,t.innerHeight];const i=new XMLHttpRequest;i.open("POST","".concat("https://hbstat.contentexchange.me","/auctionData")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(e))},t.isMobile=function(){let e=!1;if("maxTouchPoints"in navigator)e=navigator.maxTouchPoints>0;else if("msMaxTouchPoints"in navigator)e=navigator.msMaxTouchPoints>0;else{var t=window.matchMedia&&matchMedia("(pointer:coarse)");if(t&&"(pointer:coarse)"===t.media)e=!!t.matches;else if("orientation"in window)e=!0;else{var n=navigator.userAgent;e=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(n)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(n)}}return e},t.getID5=function(e){return new Promise(function(t,n){const i=e.createElement("script");i.src="https://cdn.id5-sync.com/api/1.0/id5-api.js",i.onload=function(){let e=!1;try{e=ID5&&ID5.init({partnerId:1513})||!1}catch(e){console.log("ID5 error",e)}if(!e)return t(null);e.onAvailable(function(e){var n=e.getUserId();console.log("ID5",n),t(n)})},e.head.appendChild(i)})}}(t||(t={})),function(e){function n(){const e=t.findHighestWindow();let n=e.bextag;return n||(e.bextag=n={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},sendQueue:[],onBexAdFailed:[],onBexAdSuccess:[]}),"sendQueue"in e.bextag||(e.bextag.sendQueue=[]),"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=[]),n}e.getBexTag=n,e.getBexDevTag=function(){const e=n();let t=e._devTag;t||(e._devTag=t={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},sendQueue:[],onBexAdFailed:[],onBexAdSuccess:[]});const i=t;return"sendQueue"in i||(i.sendQueue=[]),"targeting"in i||(i.targeting={}),"headerbidding"in i||(i.headerbidding={}),"queue"in i.headerbidding||(i.headerbidding.queue=[]),"_internals"in i||(i._internals={}),"headerbidding"in i._internals||(i._internals.headerbidding={}),"bexDisplayHB"in i._internals.headerbidding||(i._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in i._internals.headerbidding||(i._internals.headerbidding.bexNativeHB={}),"loaders"in i._internals||(i._internals.loaders={}),"bds"in i._internals||(i._internals.bds={}),"onBexAdFailed"in i||(i.onBexAdFailed=[]),"onBexAdSuccess"in i||(i.onBexAdSuccess=[]),t}}(n||(n={}));let o,r,a,s,c,d=t.findHighestWindow(),l=t.findHighestDocument(),u=d.adformtag=d.adformtag||[],f=n.getBexTag();function g(e,t,n){return t=h(t),function(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function y(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){for(var n=0;n ')):"in article"!=d&&v.insertAdjacentHTML("beforebegin",'
')))}if(e){var f=t.guid();r.outerHTML=''),u="push"==d?"position:absolute;left:185px;bottom:5px;":"float:right;margin:0 0 4px 8px;clear:right;";var g="push"==d?"afterend":"beforebegin";v?.insertAdjacentHTML(g,' ")),c?.classList.add("bexvideo")}else r.setAttribute("src",y),r.setAttribute("alt",o.title),r.style["background-image"]="url("+(o[s[1]]||"")+")",a.useImageContain?r.style["background-size"]="contain":r.style["background-size"]="cover",r.style["background-repeat"]="no-repeat",r.style["background-position"]="center"}else if("$type"===s[2]&&3===s.length)switch(s[1]){case"image":d.push("bexImage");break;case"title":d.push("bexTitle");break;case"post":d.push("bexPost");break;default:e.logWarning("Invalid template element type",s[1],i)}else if("$replace"===s[2]&&5===s.length){let e=i.getAttribute(s[3]);if(!e)continue;e=t.replaceAll(e,s[4],o[s[1]]),i.setAttribute(s[3],e)}else"$style"===s[2]&&4===s.length?c[s[1]]=s[3]:("clickUrl"===s[1]&&(o.clickTrackers&&i.addEventListener("click",function(){e.logInfo("Advertisement has been clicked!",i);for(let e of o.clickTrackers)t.sendEventImage(e)}),o.clickFuncs&&i.addEventListener("click",function(){e.logInfo("Executing click functions for",i);for(let t of o.clickFuncs)try{t()}catch(n){e.logError(n,"Failed to execute click function",t)}})),i.setAttribute(s[2],o[s[1]]||""))}for(let e in c)i.style[e]=c[e];for(let e of d)i.classList.add(e);return r(n,i,o,a),i}n.registerRenderer=function(t){return t?i[t.id]?e.logWarning("Renderer already registered!",t.name):void(i[t.id]=t):e.logWarning("No renderer provided during registration!")},n.renderSticker=function(e,t){if(e.querySelector(".cex-adform-sticker")){const n=e.querySelector(".cex-adform-sticker");n.style.display="inline-block",n.innerHTML=!n?.classList.contains("cex-sticker-replace")&&n.innerHTML||t||"Ad"}else{const n=o.createElement("div");n.style="\n line-height: 1.5;\n position: absolute;\n padding:0px 5px;\n top:3px;\n left:3px;\n border-radius: 3px;\n box-shadow: 1px 1px 1px 0 rgba(50, 50, 50, 0.2);\n background-color: rgba(255, 255, 255, 0.7);\n color: #2f2f2f;\n font-size: 12px;\n border: 1px solid #b3b3b3;\n z-index:10;\n display:block",n.className="cex-adform-sticker",n.innerHTML=n.innerHTML||t||"Ad",e.appendChild(n)}},n.renderTemplate=r,n.renderElement=a,n.createHTMLTemplate=function(e){const n=o.createElement("template"),i=t.guid();return e=e.replace(/##rnd##/g,i),n.innerHTML=e,n},n.invokeRenderer=async function(t,n,o,r){if(!t||!o)return!1;const a=i[t];if(!a)return e.logWarning("Renderer is not registered!",t),!1;if(!a.isAvailable)return e.logWarning("Renderer is not available!",a.name),!1;try{if(await a.render(n,o,r))return e.logInfo("Successfuly rendered advertisment!",a.name,n),!0}catch(t){e.logError(t,"An error occured while trying to render ad!",a.name,n)}return e.logWarning("Failed to render ad using the renderer system!"),!1}}(c||(c={}));let _,k,A,E,T=[],S=null;function P(){if(S)for(let e of T)"resolve"===S.func?e[0](S.passedData):e[1](S.passedData)}!function(n){function i(){const e=t.findHighestWindow();let n=null,i=null,o=null,r=window;for(;!i;){try{if("function"==typeof r.__tcfapi){"function"==typeof r.__tcfapi&&(o=2,n=r.__tcfapi),i=r;break}}catch(e){}try{r.frames.__tcfapiLocator&&(o=2,i=r)}catch(e){}if(r===e)break;r=r.parent}return{cmpFunction:n,cmpFrame:i,cmpVersion:o}}n.findCMP=i,n.IsCMPAvailable=function(){return null!==i().cmpVersion},n.getTCString=async function(){return new Promise(function(e,t){const n=i();if(!n||!n.cmpFunction)return t("No CMP function found!");n.cmpFunction("getTCData",2,function(n,i){return i?e(n.tcString):t("Failed to get TCData.tcstring!")})})},n.checkPermissions=async function(e,t){return new Promise(function(n,o){const r=i();if(!r||!r.cmpFunction)return n(!e);r.cmpFunction("getTCData",2,function(i,o){if(!o)return n(!e);if(!i)return n(!e);if(!i.gdprApplies)return n(!0);if(e&&!i.vendor.consents[864])return n(!1);var r=!0;for(var a of t)r=r&&i.purpose.consents[a];n(r)})})},n.WaitForConsent=function(){return new Promise(function(t,n){if(S)return e.logInfo("Already passed consent system! Continuing..."),"resolve"===S.func?t(S.passedData):n(S.passedData);if(T.push([t,n]),1===T.length){const{cmpFunction:t,cmpVersion:n}=i();if(!t)return S={func:"reject"},P();if(2!==n)return S={func:"resolve"},P();let o=!1;setTimeout(function(){o||(o=!0,S={func:"reject",passedData:"Timeout reached"},P())},500);const r=function(n,i){if(!o){if(!i)return e.logProblem("Failed to set event listener for consent!"),o=!0,S={func:"resolve"},P();if("tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus){if(e.logInfo("Successfully gotten tcloaded/useractioncomplete event!"),t("removeEventListener",2,function(t){if(t)return e.logInfo("Successfully removed event listener for consent!")},r),o)return;return o=!0,S={func:"resolve"},P()}}};t("addEventListener",2,r)}})},n.RunTest=function(){const{cmpFunction:t,cmpVersion:n}=i();t&&2===n&&t("addEventListener",2,function(t,n){n?e.logInfo("Caught tcdata",t):e.logProblem("Failed to set event listener for consent!")})}}(_||(_={})),function(i){const o=t.findHighestWindow(),a="https://hbstat.contentexchange.me",s={},c={},d={},l={},u={},f={},g=n.getBexTag();g.adIdToResponses=g.adIdToResponses||{};const p=g.adIdToResponses,h=r.getPrebid();function m(t){if(!t)return e.logProblem("No adId specified!");const n=p[t];if(!n)return e.logProblem("Failed to find registered response",t);const i=new XMLHttpRequest;i.open("POST","".concat(a,"/click")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(n)),e.logInfo("Sending click data",n)}function b(t){if(!t)return e.logProblem("No adId specified!");const n=p[t];if(!n)return e.logProblem("Failed to find registered response",t);const i=new XMLHttpRequest;i.open("POST","".concat(a,"/viewImpression")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(n)),e.logInfo("Sending viewable impression data",n)}i.setWinningBid=function(t,n){if(!t)return e.logWarning("Bid was not specified!");const i=p[t.adId];if(!i)return e.logWarning("Failed to find registered response",t.adId);i.hasWon=!0,i.widget=n},i.mapAdUnitBidder=function(e,t,n){e&&t&&n&&((f[e]=f[e]||{})[t]=n)},i.registerBidResponse=function(e,t){p[e]=t},i.sendAuctionData=function(n,i){var o=arguments;const r=Object.assign({},i.requests[0])||t.makeAuctionRequest("error","N/A",{});r.source=n?"no auctData":"no auctID";const a=function(){i.requests.push(r),e.logWarning(...o)};if(!n)return a();if(!d[n])return a();if(!s[n])return a();const c=[];for(let e of d[n])p[e]&&c.push(p[e]);const l=s[n];i.requests=i.requests.concat(l),i.responses=i.responses.concat(c);const u=s[n][0].placement;e.logInfo("Adding auction data ("+u+") "+n,{responses:c,requests:s[n]})},i.sendGoogleData=function(t,n,i,o){if(!t||!n)return e.logProblem("No id or slot specified!")},i.sendImpression=function(t){if(!t)return e.logProblem("No adId specified!");const n=p[t];if(!n)return e.logProblem("Failed to find registered response",t);const i=new XMLHttpRequest;i.open("POST","".concat(a,"/impression")),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(n)),e.logInfo("Sending impression data",n)},i.sendClick=m,i.sendViewableImpression=b,i.trackAdViewability=function(t,n){if(!t||!n)return e.logWarning("No adId or targetElement specified!");const i=new IntersectionObserver(function(e){for(let o of e)if(o.isIntersecting){b(t),i.unobserve(n);break}},{root:null,rootMargin:"0px",threshold:.5});i.observe(n)},i.init=function(){return new Promise(function(n,i){o.focus(),o.addEventListener("blur",function(){setTimeout(function(){const e=o.document.activeElement;if(!e)return;if("IFRAME"!==e.tagName)return;const t=e.getAttribute("data-adId");t&&(o.focus(),m(t))},0)}),h.que.push(function(){if(!h.onEvent)return i("Failed to find onEvent function!");h.onEvent("auctionInit",function(t){l[t.auctionId]=t,c[t.auctionId]={},d[t.auctionId]=[],u[t.auctionId]=t.labels||[],e.logInfo("Auction initialized",t)}),h.onEvent("bidRequested",function(n){l[n.auctionId]||e.logProblem("Failed to find registered auction",n.auctionId);let i=t.findHighestDocument(),o=t.findHighestWindow(),r=(i.referrer||"").split("/")[2]||"direct",a=o!=top?t.fixDomain(r):t.fixDomain(o.location.host);n.bids.forEach(function(e){let t,o=e.adUnitCode,r=i.getElementById(o),d=r&&r.getAttribute("domain")||a,l=o.split("-"),u=l[l.length-2],g="native"in e.mediaTypes?"NATIVE":"DISPLAY";if("DISPLAY"===g&&"sizes"in e){const n=e.sizes[0];t={width:n[0],height:n[1]}}else t={width:0,height:0};let p=[];if("DISPLAY"===g&&"sizes"in e)for(let t of e.sizes)p.push({width:t[0],height:t[1]});else p.push({width:0,height:0});const h=e.mediaType,m=c[n.auctionId][n.bidderCode+"_"+h]={id:f["div-ppas-mid-"+u][n.bidderCode+"_"+h],domain:d,placement:u,source:n.bidderCode,placement_size:t,availableSizes:p,size:null,type:g,mediaType:h,hasResponse:!1,hasWon:!1,cpm:0};(s[n.auctionId]=s[n.auctionId]||[]).push(m)})}),h.onEvent("bidResponse",function(t){if(!l[t.auctionId])return e.logProblem("Failed to find registered auction",t.auctionId);const n=c[t.auctionId][t.bidderCode+"_"+t.mediaType];if(!n)return e.logProblem("Failed to find registered request",t.bidderCode,t.mediaType,c[t.auctionId]);const i=Object.assign({},n);i.hasResponse=!0,i.cpm=t.cpm,"NATIVE"===i.type?i.size={width:0,height:0}:i.size={width:t.width,height:t.height},"contentexchange"===t.bidderCode&&(i.cpm=i.cpm/(.95*.65)),d[t.auctionId].push(t.adId),p[t.adId]=i}),n()})})}}(k||(k={})),function(e){let n=function(e){return e.Request="request",e.Response="response",e.Fallback="fallback",e.FallbackRequest="fallback_request",e}({});t.isDevelMode();const i=(t.findHighestWindow(),r.getPrebid()),o={},a={};e.sendAuctionData=function(e,t){n.Request,o[t],n.Response,a[t]},e.sendFallbackData=function(e,t){n.Fallback},e.sendFallbackRequestData=function(e){n.FallbackRequest},e.initPrebid=function(){return new Promise(function(e,t){i.que.push(function(){if(!i.onEvent)return t("Failed to find onEvent function!");i.onEvent("bidRequested",function(e){o[e.auctionId]=o[e.auctionId]||[];const t=JSON.parse(JSON.stringify(e));t.gdprConsent&&delete t.gdprConsent,o[e.auctionId].push(t)}),i.onEvent("bidResponse",function(e){a[e.auctionId]=a[e.auctionId]||[],a[e.auctionId].push(e)}),e()})})}}(A||(A={})),function(t){const n=[],i=r.getPrebid();function o(e,t,n,i){return new Promise(function(e,t){return e})}function a(e){return new Promise(function(e,t){return e})}t.sendAdUnit=function(t,r=[],s,c){let{floorPrice:d,ssp_id:l,strict_check:u,market:f,domain:g,duplicate_blocked:p,duplicate_count:h}=s;return d=d||0,new Promise(function(s,u){e.logInfo("Sending pbjs bid request",t),i.que.push(function(){if(!i.requestBids)return s({id:t[0].code,winner:null,auctionId:null,responses:[]});if(l){const e={validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"ssp.adnetwork.agency",sid:l,hp:1}]}};i.setConfig&&i.setConfig({schain:e})}i.setConfig&&i.setConfig({gvlMapping:{contentexchange:864}}),i.setConfig&&i.setConfig({userSync:{filterSettings:{iframe:{bidders:["connectad"],filter:"include"}}},cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}}),i.setConfig&&i.setConfig({floors:{}}),i.bidderSettings={standard:{storageAllowed:!0}};var u=t[0];i.requestBids({adUnits:t,labels:r,bidsBackHandler:async function(t,r,l){if(e.logInfo("Got prebid responses",t,"for auction",l,"for adUnit",u.code),!t)return s({id:u.code,winner:null,auctionId:l,responses:[]});const f=t[u.code];let g=[];if(!f)return s({id:u.code,winner:null,auctionId:l,responses:[]});f.bids.length&&(g=function(e,t){let n=[];if(!e.length)return n;for(let i of e)"contentexchange"===i.bidderCode&&(i.cpm=i.cpm/(.95*.65)),i.cpmh)continue}if(t.native&&n.includes(t.bidderCode))try{if(!await o())continue}catch(t){e.logError(t,"Failed to scan bid!")}m=t}}m||e.logWarning("No bid has been allowed to be displayed! Ignoring...")}return m&&i.setWinningBid&&(i.setWinningBid(m.adId),"video"==m.mediaType&&a()),s({id:u.code,winner:m,auctionId:l,responses:f.bids})}})})})},t.init=function(){return new Promise(function(t,n){const o=document.createElement("script");o.src="https://hb.contentexchange.me/prebid",o.async=!0,o.onerror=function(){return n("Error loading prebid script!")},document.head.appendChild(o),i.que.push(async function(){const n={currency:{adServerCurrency:"EUR",conversionsRateFile:"https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",bidderCurrencyDefault:{contentexchange:"USD"}}};_.IsCMPAvailable()&&(n.consentManagement={gdpr:{cmpApi:"iab",timeout:5e3,allowAuctionWithoutConsent:!0,defaultGdprScope:!1}},e.logInfo("Found CMP, using consent manager...")),n.userSync={aliasSyncEnabled:!0,userIds:[{name:"firstpartyid",bidders:["adformOpenRTB"],storage:{type:"cookie",name:"cx_id",expires:720}},{name:"id5Id",params:{partner:1513,externalModuleUrl:"https://cdn.id5-sync.com/api/1.0/id5PrebidModule.js",abTesting:{enabled:!1,controlGroupPct:.1}},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:28800}}],syncDelay:1e3},n.enableTIDs=!0,i.setConfig&&i.setConfig(n),await k.init(),await A.initPrebid(),t()})})}}(E||(E={}));const D=window,F=n.getBexTag();F._internals.loaders,D.bex=D.bex||{},D.bex.loaders=D.bex.loaders||{},D.bex.loaders.loadNativeWidget=async function(i){var r=this;const a=t.findHighestWindow(),s=t.findHighestDocument();t.initForeignPixels(),F.id5=F.id5||t.getID5(s);const c=a.location.search.includes("bex_noadform=true")||a.location.search.includes("bex_keeponly")&&!a.location.search.includes("bex_keeponly=direct"),d=a.location.search.includes("bex_keeponly=direct"),l=i.develMode?n.getBexDevTag():F,u=F.onBexAdSuccess,f=F.targeting,g=l.headerbidding,p=l._internals.headerbidding,h=p.bexNativeHB,m=(p.bexDisplayHB,a.location.search.includes("auctionMode=0")?0:a.location.search.includes("auctionMode=1")?1:Math.round(Math.random())),b={},y=o.getAdformTag(),x=[];e.setAllowLogging(i.develMode);const v=document.currentScript;if(!v)return e.logProblem("Failed to find current script!");const w=v.parentElement;if(!w)return e.logProblem("Failed to find root element");const I=w.querySelectorAll(".\\$bexAd_post");if(I.length<1)return e.logWarning("Failed to find any bex posts in element!",w);function _(e,n,i,o){d||(t.filterConfig(e),g.queue.push(async function(){await h.executeAd(e.placement,n,i,o,b)}))}function A(e){e&&e.parentElement&&e.parentElement.removeChild(e)}function E(e){const t=document.createElement("script");if(e&&f.segment)for(let e of x){if(!e)continue;let t=e.getAttribute("data-adfscript");e.setAttribute("data-adfscript","".concat(t,"&mkw=").concat(encodeURIComponent(f.segment)))}t.src="https://s1.adform.net/banners/scripts/adx.js",t.async=!0,t.defer=!0,t.onerror=function(){for(let e of x)e&&A(e.parentElement)},setTimeout(function(){return document.body.appendChild(t)},10)}function T(t,n,i){if(n.placement.noLazy){try{i()}catch(t){e.logError(t,"Failed to execute code after intersect!")}return}const o=new IntersectionObserver(function(n){for(let r of n)if(r.isIntersecting){e.logInfo("Caught native intersection handle!",t),o.unobserve(t);try{i()}catch(t){e.logError(t,"Failed to execute code after intersect!")}break}},{root:null,rootMargin:"350px 0px 350px 0px",threshold:0});o.observe(t)}"www.slovenskenovice.si"===window.location.host&&(e.logInfo("Detected SlovenskeNovice, using iprom bypass..."),window.afterIpromPrebid=window.afterIpromPrebid||[]),i.develMode?t.findHighestDocument().querySelector("#".concat(t.hbdevFrameId))||t.initalizeHb(i.source,t.hbdevFrameId):t.findHighestDocument().querySelector("#".concat(t.hbFrameId))||t.initalizeHb(i.source,t.hbFrameId),e.logInfo("Loading widget ad for",w,"should use adform bypass",c);const S={},P=[];for(let n of i.posts){if(!n||!n.position||!n.placement||n.position>I.length)continue;let o=0==n.position?"before":"after",r=0==n.position?I[0]:I[n.position-1];const a="div-widget-"+n.placement.id+"-"+Math.floor(1e4*Math.random());if(r.id=a,r.setAttribute("widget_id",i.widget_id),r.setAttribute("data-meta",JSON.stringify({domain:i.domain,widget:i.widget_id,position:n.position,cpm:n.direct_cpm,translation:n.translation,placement:n.placement.id})),"DISPLAY"==n.type){let e=document.createElement("div");e.className="bex-display-wrap",e.style.textAlign="center","before"==o?r.insertAdjacentElement("beforebegin",e):r.insertAdjacentElement("afterend",e),r=e}else{let e=document.createElement("div");e.className="cex-adform-container cex-adform-style",Object.assign(e.style,{position:"absolute",zIndex:-5,top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}),r.appendChild(e),r=e}const s={requests:[],responses:[]},d="adx.adform.net/adx/?mid="+n.placement.id+"&rnd="+String(t.getRandomInt(1,1e4));if(c||"Skip Direct"==n.placement.type)S[d]={loaded:!1,auctionData:s};else{const o=t.makeAuctionRequest("adform-direct",a,n.placement);s.requests.push(o),P.push(d),l.placementHandlers=l.placementHandlers||{},S[d]=new Promise(function(o,r){l.placementHandlers[d]=function(r){if(e.logInfo("ON_ LOAD",i.widget_id,n.placement.id,r?.place?"visible":"hidden",r?.isEmpty?"fallback":"hit",r),r&&!r.isEmpty){e.logInfo("direct-native resposnse",r);const i=t.makeAuctionResponse("adform-direct",a,n.placement);i.hasWon=!0,i.cpm=n.direct_cpm,s.responses.push(i),k.registerBidResponse(a,i),o({loaded:!0,auctionData:s})}else o({loaded:!1,auctionData:s})}}),y.push(function(){y.onLoaded(Number(n.placement.id),function(e){l.placementHandlers[e.data](e)}),y.onRendered(Number(n.placement.id),function(t){if(e.logInfo("ON_ RENDER",n.position,i.widget_id,n.placement.id,t.ad.parentElement),!t||!t.ad||!t.ad.parentElement)return;const o=t.ad.parentElement?.parentElement;if(!o)return e.logInfo("NO ELEMENT FOR widget post",n);const r=o.getAttribute("id")||"";k.sendImpression(r),k.trackAdViewability(r,o),o.querySelectorAll("a.\\$bexAd_clickUrl_href").forEach(function(t){t.addEventListener("click",function(t){e.logInfo("sending direct-native click",t),k.sendClick(r)})})})})}T(r,n,async function(){const{loaded:i,auctionData:o}=await S[d];if(i){t.sendAuctionData(o),e.logInfo("Sending native data for adform-direct",i?"hit":"fallback",o);let n=document.createElement("script");n.setAttribute("data-adfscript",d),x.push(n),n.onerror=function(){const e=x.indexOf(n);-1!==e&&x.splice(e,1),A(r)},r.appendChild(n)}else _(n,r,o,m)})}if(P.length&&(e.logInfo("ADFORM PRELOAD WIDGET",P),y.push({preload:P})),u.push(function(t){t&&t.classList.contains("bexAdloaded")&&(e.logInfo("Successfully loaded direct-native ad!",t),t.classList.contains("cex-ad-loaded")||t.classList.add("cex-ad-loaded"))}),!i.allowKeywords||!f.segment&&f.loaded)E(!1);else if(f.segment)E(!0);else{setTimeout(function(){f.loaded||(f.loaded=!0,E(!1))},300);let e=new XMLHttpRequest;e.addEventListener("load",function(){f.loaded=!0,f.segment=r.responseText,E(!0)}),e.open("GET","https://analytics.contentexchange.me/bex/keywords"),e.withCredentials=!0,e.send()}l.sendQueue.push({type:"widget",id:i.widget_id,auctionMode:m}),delete D.bex.loaders.loadNativeWidget};const H=self;for(var C in i)H[C]=i[C];i.__esModule&&Object.defineProperty(H,"__esModule",{value:!0})})();window.bex.loaders.loadNativeWidget({"widget_id":"DPF3obyMg99mcwQJz","posts":[{"position":1,"placement":{"id":"2159464","type":"HB-Google","noLazy":false,"adFormat":"in widget","widget":"DPF3obyMg99mcwQJz","market":"ba","domain":"n1info.ba","tcf_strict":false,"adType":"NATIVE","translation":"Reklama","cpm":0.13696972385992134,"size":[0,0],"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-2159464","translation":"Reklama","floors":{"default":0.1156},"bids":[{"bidder":"adformOpenRTB","mediaType":"native","params":{"mid":"2159479"}},{"bidder":"mgid","mediaType":"native","params":{"accountId":305,"placementId":"893499"}}],"adFormat":"in widget","market":"ba","domain":"n1info.ba","duplicate_blocked":false,"duplicate_count":1,"type":"NATIVE"},"next":{"type":"adform","config":"1788329"}}},"direct_cpm":0.13696972385992134,"translation":"Reklama","type":"NATIVE"},{"position":4,"placement":{"id":"2159480","type":"HB-Google","noLazy":false,"adFormat":"in widget","widget":"DPF3obyMg99mcwQJz","market":"ba","domain":"n1info.ba","tcf_strict":false,"adType":"NATIVE","translation":"Reklama","cpm":0.13696972385992134,"size":[0,0],"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-2159480","translation":"Reklama","floors":{"default":0.1156},"bids":[{"bidder":"adformOpenRTB","mediaType":"native","params":{"mid":"2159481"}},{"bidder":"mgid","mediaType":"native","params":{"accountId":305,"placementId":"893499"}}],"adFormat":"in widget","market":"ba","domain":"n1info.ba","duplicate_blocked":false,"duplicate_count":1,"type":"NATIVE"},"next":{"type":"adform","config":"1788329"}}},"direct_cpm":0.13696972385992134,"translation":"Reklama","type":"NATIVE"},{"position":9,"placement":{"id":"2159505","type":"HB-Google","noLazy":false,"adFormat":"in widget","widget":"DPF3obyMg99mcwQJz","market":"ba","domain":"n1info.ba","tcf_strict":false,"adType":"NATIVE","translation":"Reklama","cpm":0.13696972385992134,"size":[0,0],"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-2159505","translation":"Reklama","floors":{"default":0.1156},"bids":[{"bidder":"adformOpenRTB","mediaType":"native","params":{"mid":"2159506"}},{"bidder":"mgid","mediaType":"native","params":{"accountId":305,"placementId":"893499"}}],"adFormat":"in widget","market":"ba","domain":"n1info.ba","duplicate_blocked":false,"duplicate_count":1,"type":"NATIVE"},"next":{"type":"adform","config":"1788329"}}},"direct_cpm":0.13696972385992134,"translation":"Reklama","type":"NATIVE"},{"position":6,"placement":{"id":"2159482","type":"HB-Google","noLazy":false,"adFormat":"in widget","widget":"DPF3obyMg99mcwQJz","market":"ba","domain":"n1info.ba","tcf_strict":false,"adType":"NATIVE","translation":"Reklama","cpm":0.13696972385992134,"size":[0,0],"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-2159482","translation":"Reklama","floors":{"default":0.1156},"bids":[{"bidder":"adformOpenRTB","mediaType":"native","params":{"mid":"2159483"}},{"bidder":"mgid","mediaType":"native","params":{"accountId":305,"placementId":"893499"}}],"adFormat":"in widget","market":"ba","domain":"n1info.ba","duplicate_blocked":false,"duplicate_count":1,"type":"NATIVE"},"next":{"type":"adform","config":"1788329"}}},"direct_cpm":0.13696972385992134,"translation":"Reklama","type":"NATIVE"},{"position":12,"placement":{"id":"2159508","type":"HB-Google","noLazy":false,"adFormat":"in widget","widget":"DPF3obyMg99mcwQJz","market":"ba","domain":"n1info.ba","tcf_strict":false,"adType":"NATIVE","translation":"Reklama","cpm":0.13696972385992134,"size":[0,0],"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-2159508","translation":"Reklama","floors":{"default":0.1156},"bids":[{"bidder":"adformOpenRTB","mediaType":"native","params":{"mid":"2159509"}},{"bidder":"mgid","mediaType":"native","params":{"accountId":305,"placementId":"893499"}}],"adFormat":"in widget","market":"ba","domain":"n1info.ba","duplicate_blocked":false,"duplicate_count":1,"type":"NATIVE"},"next":{"type":"adform","config":"1788329"}}},"direct_cpm":0.13696972385992134,"translation":"Reklama","type":"NATIVE"},{"position":14,"placement":{"id":"2159532","type":"HB-Google","noLazy":false,"adFormat":"in widget","widget":"DPF3obyMg99mcwQJz","market":"ba","domain":"n1info.ba","tcf_strict":false,"adType":"NATIVE","translation":"Reklama","cpm":0.13696972385992134,"size":[0,0],"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-2159532","translation":"Reklama","floors":{"default":0.1156},"bids":[{"bidder":"adformOpenRTB","mediaType":"native","params":{"mid":"2159533"}},{"bidder":"mgid","mediaType":"native","params":{"accountId":305,"placementId":"893499"}}],"adFormat":"in widget","market":"ba","domain":"n1info.ba","duplicate_blocked":false,"duplicate_count":1,"type":"NATIVE"},"next":{"type":"adform","config":"1788329"}}},"direct_cpm":0.13696972385992134,"translation":"Reklama","type":"NATIVE"}],"source":"hb.contentexchange.me","domain":"n1info.ba","tcf_strict":false,"allowKeywords":false,"develMode":false,"generated":"2026-10-24T14:54:17.425Z"});