!function(){const e=window.parent,t=(e.document,e.bextag=e.bextag||{});(t._customHBProviders=t._customHBProviders||{}).adnow=function(t,n,i){if(!n.Id||!n.Source)return i(null);let r=new XMLHttpRequest;r.timeout=2e3,r.ontimeout=function(){i(null)},r.onerror=function(){i(null)},r.onload=function(){if(!r.responseText)return i(null);let e=null;try{e=JSON.parse(r.responseText)}catch(e){return i(null)}if(!e.teasers||!Array.isArray(e.teasers))return i(null);let n=null;for(let t=0;ti.cpm||(n=i))}return n?i({bidder:"adnow",bidderCode:"adnow",cpm:n.cpm,currency:"USD",adUnitCode:t,native:n}):void 0},r.open("GET","https://n.ads1-adnow.com/a?Id="+String(n.Id)+"&out=json&d_code_image_size=200&d_ip=54.165.181.150&source_id="+String(n.Source)+"&d_domain="+encodeURIComponent(e.location.host)),r.send()}}(),function(){const e=window.parent,t=e.document,n=e.bextag=e.bextag||{},i=n._hbQueue=n._hbQueue||[],r=n._customHBProviders=n._customHBProviders||{},o=window.pbjs=window.pbjs||{},a="//s1.adform.net/banners/scripts/prebid.2.latest.js";function l(e,n){if(!e||!n)return;e.ad&&(e.ad=e.ad.replace(/\$\{AUCTION_PRICE\}/g,e.cpm)),e.adUrl&&(e.adUrl=e.adUrl.replace(/\$\{AUCTION_PRICE\}/g,e.cpm));let i=t.createElement("iframe");i.width=e.width,i.height=e.height,i.scrolling="no",i.frameBorder="0",n.appendChild(i);let r=i.contentDocument,o=i.contentWindow;if(o.top=o,e.ad){if(navigator.userAgent&&navigator.userAgent.toLowerCase().indexOf("firefox/")>-1){const e=/firefox\/([\d\.]+)/;let t=navigator.userAgent.toLowerCase().match(e)[1];t&&parseInt(t,10)<67&&r.open("text/html","replace")}r.write(e.ad),r.close()}else if(e.adUrl){let n=r.createElement("iframe");n.width=e.width,n.height=e.height,n.src=e.adUrl,function(e,n,i,r){n=n||t;let o=null;o=i?n.querySelectorAll(i):[n.head];try{(o=o.length?o:[n.body]).length&&(o=o[0]).insertBefore(e,r?null:o.firstChild)}catch(e){}}(n,r,"body")}}function d(e){let n=e.callback;delete e.callback,function(e,t){if(!e.bids)return t([]);let n=0,i=[],o=[];for(let a=0;a0?0|t:0;return this.substring(n,n+e.length)===e}}),function(){let e=document.createElement("script");e.src=a,e.async=!0,document.head.appendChild(e),o.que=o.que||[],o.que.push(function(){o.setConfig({consentManagement:{gdpr:{cmpApi:"iab",timeout:5e3,allowAuctionWithoutConsent:!0,defaultGdprScope:!0}}})})}(),Array.isArray(i))for(let e=0;e0?0|t:0;return this.substring(n,n+e.length)===e}}),String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";if(e instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===t&&(t=0),-1!==this.indexOf(e,t)}),i.Sticker=function(){let e=t.createElement("style");e.type="text/css",e.innerHTML=".cex-adform-sticker { line-height: normal;position: absolute;top: 3px;right: 4px;padding: 2px 5px;border-radius: 2px;box-shadow: 1px 1px 1px 0 rgba(50, 50, 50, 0.2);background-color: white;color: #2f2f2f;font-size: 10px;border: 1px solid #b3b3b3;margin: 5px}",t.head.appendChild(e)},i.Google=function(n,i,r,o,a){if(!n||!r)return!1;if(n.getBoundingClientRect().width<250)return!1;let l=n.children;for(let e=0;et.cpc||(a=t))}return a?i(n.AdNow(e,a,t.sticker)):void 0},r.open("GET","https://n.ads1-adnow.com/a?Id="+String(t.Id)+"&out=json&d_code_image_size=200&d_ip=54.165.181.150&source_id="+String(t.Source)),r.send()}(e,i.config,a);case"HeaderBidding":return function(e,t,n){if(!t||!t.code)return n(!1);if(t.transactionId){delete t.transactionId;for(let e of t.bids)e.crumbs&&delete e.crumbs}if(t.callback){let e=t.callback;t.callback=function(t,i){e(t,i,function(e){n(e)})}}else t.callback=function(e,t){return n(!!t)};o.push([t])}(0,i.config,a);default:return a(null)}function a(n){return n?void 0:t.executeFallbacks(e,i.next)}})}(),function(){const e={},t={},n=window.parent,i=n.document,r=n.bextag=n.bextag||{},o=r.renderEngine=r.renderEngine||{},a=r.executeFallbacks,l=r._bexDisplayHB=r._bexDisplayHB||{},d=r._bexDisplayQueue=r._bexDisplayQueue||[],s=r._bexNativeHB=r._bexNativeHB||{},c=r._bexNativeQueue=r._bexNativeQueue||[],u=window.pbjs=window.pbjs||{},p=u.que=u.que||[];let f=!1;function g(e,n,i){if(e&&t[e])return n?void function(e,t,n){switch(t.bidderCode){case"adformOpenRTB":case"mgid":case"appnexus":o.Generic(e.postElement,t,e.translation,n);break;case"criteo":o.Criteo(e.postElement,t,e.translation,n);break;case"adnow":o.AdNow(e.postElement,t,e.translation,n)}}(t[e],n,function(e){i(e)}):i(!1)}function b(e,t){const n={type:t.type,execList:{}};for(let n of t.bids)e.mediaTypes&&e.mediaTypes.native&&"criteo"===n.bidder&&(n.params.nativeCallback=function(){}),e.bids.push(n);if(t.floorPrice&&(e.floorPrice=Number(t.floorPrice)),t.translation&&(n.translation=t.translation),t.execList){n.execList=t.execList;let i=null;do{"HeaderBidding"===(i=i?i.next:n.execList).type&&(i.config=e),"AdNow"===i.type&&n.translation&&(i.config.sticker=n.translation)}while(i.next)}return n}l.importAd=function(t){e[t.placement]=b({code:t.placement,mediaTypes:{banner:{sizes:[t.size]}},bids:[]},t)},s.importAd=function(e){t[e.placement]=b({code:e.placement,mediaTypes:{native:{image:{required:!0,aspect_ratios:[{min_width:250,ratio_width:2,ratio_height:1}]},title:{required:!0,len:150},sponsoredBy:{required:!0}},banner:{sizes:[250,150]}},bids:[],callback:g},e)},s.executeAd=function(e,n){let i=t[e];if(!i)return;if(i.done)return;let r=function(e){if(!e)return null;for(;"BODY"!==e.tagName&&!e.classList.contains("$bexAd_post");)e=e.parentElement;return"BODY"===e.tagName?null:e}(n);r&&(f||(f=!0,o.Sticker()),i.postElement=r,i.done=!0,a(r,i.execList))},l.executeAd=function(t){let n=e[t];if(!n)return;let r=i.querySelector("#"+t+":not(.bexExecuted)");r&&a(r,n.execList)},p.push(function(){}),r.completeHbAdImport=function(){if(Array.isArray(d)){for(let e=0;e