/*!version: 230130.1447 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.postscribe=t():e.postscribe=t()}(this,function(){return i={},n.m=a=[function(e,t,n){"use strict";var a,i=n(1),r=(a=i)&&a.__esModule?a:{default:a};e.exports=r.default},function(e,t,n){"use strict";t.__esModule=!0;var d=Object.assign||function(e){for(var t=1;t)/," "+c+"id="+d+" $1")),s.attrs.id!==m&&s.attrs.id!==p&&i.push("atomicTag"===s.type?"":"<"+s.tagName+" "+c+"proxyof="+d+(s.unary?" />":">"))):(a.push(l),i.push("endTag"===s.type?l:""))}return{tokens:e,raw:n.join(""),actual:a.join(""),proxy:i.join("")}},f.prototype._walkChunk=function(){for(var e=void 0,t=[this.proxyRoot];o.existy(e=t.shift());){var n,a=1===e.nodeType;a&&s(e,"proxyof")||(a&&l(this.actuals[s(e,"id")]=e,"id"),(n=e.parentNode&&s(e.parentNode,"proxyof"))&&this.actuals[n].appendChild(e)),t.unshift.apply(t,o.toArray(e.childNodes))}},f.prototype._handleScriptToken=function(e){var t=this,n=this.parser.clear();n&&this.writeQueue.unshift(n),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,function(){t._onScriptDone(e)}))},f.prototype._handleStyleToken=function(e){var t=this.parser.clear();t&&this.writeQueue.unshift(t),e.type=e.attrs.type||e.attrs.TYPE||"text/css",(e=this.options.beforeWriteToken(e))&&this._writeStyleToken(e),t&&this.write()},f.prototype._writeStyleToken=function(e){var t=this._buildStyle(e);this._insertCursor(t,p),e.content&&(t.styleSheet&&!t.sheet?t.styleSheet.cssText=e.content:t.appendChild(this.doc.createTextNode(e.content)))},f.prototype._buildStyle=function(e){var n=this.doc.createElement(e.tagName);return n.setAttribute("type",e.type),o.eachKey(e.attrs,function(e,t){n.setAttribute(e,t)}),n},f.prototype._insertCursor=function(e,t){this._writeImpl('');var n=this.doc.getElementById(t);n&&n.parentNode.replaceChild(e,n)},f.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},f.prototype._onScriptDone=function(e){e===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})},f.prototype._writeScriptToken=function(e,t){var n=this._buildScript(e),a=this._shouldRelease(n),i=this.options.afterAsync;e.src&&(n.src=e.src,this._scriptLoadHandler(n,a?i:function(){t(),i()}));try{this._insertCursor(n,m),n.src&&!a||t()}catch(e){this.options.error(e),t()}},f.prototype._buildScript=function(e){var n=this.doc.createElement(e.tagName);return o.eachKey(e.attrs,function(e,t){n.setAttribute(e,t)}),e.content&&(n.text=e.content),n},f.prototype._scriptLoadHandler=function(t,n){function a(){t=t.onload=t.onreadystatechange=t.onerror=null}var i=this.options.error;function e(){a(),null!=n&&n(),n=null}function r(e){a(),i(e),null!=n&&n(),n=null}function o(e,t){var n=e["on"+t];null!=n&&(e["_on"+t]=n)}o(t,"load"),o(t,"error"),d(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){r({msg:"onload handler failed "+e+" @ "+t.src})}e()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void r({msg:"onerror handler failed "+e+" @ "+t.src})}r({msg:"remote script failed "+t.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&e()}})},f.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},f);function f(e){var t=1]/i,startTag:/^,chars:/^[^<]/},p=(m.prototype.append=function(e){this.stream+=e},m.prototype.prepend=function(e){this.stream=e+this.stream},m.prototype._readTokenImpl=function(){var e=this._peekTokenImpl();if(e)return this.stream=this.stream.slice(e.length),e},m.prototype._peekTokenImpl=function(){for(var e in c)if(c.hasOwnProperty(e)&&c[e].test(this.stream)){var t=i[e](this.stream);if(t)return"startTag"===t.type&&/script|style/i.test(t.tagName)?null:(t.text=this.stream.substr(0,t.length),t)}},m.prototype.peekToken=function(){return this._peekToken()},m.prototype.readToken=function(){return this._readToken()},m.prototype.readTokens=function(e){for(var t=void 0;t=this.readToken();)if(e[t.type]&&!1===e[t.type](t))return},m.prototype.clear=function(){var e=this.stream;return this.stream="",e},m.prototype.rest=function(){return this.stream},m);function m(){var e=this,t=0
",t.selfClose=a=2===i.childNodes.length}catch(e){t.selfClose=a=!1}i=null,t.tagSoup=n,t.selfClose=a},function(e,t,n){"use strict";t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.comment=function(e){var t=e.indexOf("--\x3e");if(0<=t)return new d.CommentToken(e.substr(4,t-1),t+3)},t.chars=function(e){var t=e.indexOf("<");return new d.CharsToken(0<=t?t:e.length)},t.startTag=i,t.atomicTag=function(e){var t=i(e);if(t){var n=e.slice(t.length);if(n.match(new RegExp("\\s*"+t.tagName+"\\s*>","i"))){var a=n.match(new RegExp("([\\s\\S]*?)\\s*"+t.tagName+"\\s*>","i"));if(a)return new d.AtomicTagToken(t.tagName,a[0].length+t.length,t.attrs,t.booleanAttrs,a[1])}}},t.endTag=function(e){var t=e.match(s.endTag);if(t)return new d.EndTagToken(t[1],t[0].length)};var d=n(4),s={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i};function i(e){var n,a,i;if(-1!==e.indexOf(">")){var t=e.match(s.startTag);if(t){var r=(n={},a={},i=t[2],t[2].replace(s.attr,function(e,t){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(n[arguments[5]]="",a[arguments[5]]=!0):n[t]=arguments[2]||arguments[3]||arguments[4]||s.fillAttr.test(t)&&t||"":n[t]="",i=i.replace(e,"")}),{v:new d.StartTagToken(t[1],t[0].length,n,a,!!t[3],i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===r?"undefined":o(r)))return r.v}}}},function(e,t,n){"use strict";t.__esModule=!0,t.EndTagToken=t.AtomicTagToken=t.StartTagToken=t.TagToken=t.CharsToken=t.CommentToken=t.Token=void 0;var o=n(5);function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.Token=function e(t,n){d(this,e),this.type=t,this.length=n,this.text=""},t.CommentToken=(a.prototype.toString=function(){return"\x3c!--"+this.content},a);function a(e,t){d(this,a),this.type="comment",this.length=t||(e?e.length:0),this.text="",this.content=e}t.CharsToken=(i.prototype.toString=function(){return this.text},i);function i(e){d(this,i),this.type="chars",this.length=e,this.text=""}var r=t.TagToken=(s.formatTag=function(e,t){var n,a=1":i+=">",null!=a&&(i+=a+""+e.tagName+">"),i},s);function s(e,t,n,a,i){d(this,s),this.type=e,this.length=n,this.text="",this.tagName=t,this.attrs=a,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1}t.StartTagToken=(l.prototype.toString=function(){return r.formatTag(this)},l);function l(e,t,n,a,i,r){d(this,l),this.type="startTag",this.length=t,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=a,this.html5Unary=!1,this.unary=i,this.rest=r}t.AtomicTagToken=(c.prototype.toString=function(){return r.formatTag(this,this.content)},c);function c(e,t,n,a,i){d(this,c),this.type="atomicTag",this.length=t,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=a,this.unary=!1,this.html5Unary=!1,this.content=i}t.EndTagToken=(p.prototype.toString=function(){return""+this.tagName+">"},p);function p(e,t){d(this,p),this.type="endTag",this.length=t,this.text="",this.tagName=e}},function(e,t){"use strict";t.__esModule=!0,t.escapeQuotes=function(e){var t=1"),i()):n.selfCloseFix&&s.test(t)&&a.containsTagName(t)?a.lastTagNameEq(t)?c(r,a):(r.prepend(""+e.tagName+">"),i()):e.unary||a.push(e)},endTag:function(e){a.last()?n.tagSoupFix&&!a.lastTagNameEq(e.tagName)?c(r,a):a.pop():n.tagSoupFix&&(o(),i())}};function i(){var e,t,n,a,i=(t=o,n=(e=r).stream,a=l(t()),e.stream=n,a);i&&d[i.type]&&d[i.type](i)}return function(){return i(),l(o())}};var n=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,s=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i;function l(e){return e&&"startTag"===e.type&&(e.unary=n.test(e.tagName)||e.unary,e.html5Unary=!/\/>$/.test(e.text)),e}function c(e,t){var n=t.pop();e.prepend(""+n.tagName+">")}}],n.c=i,n.p="",n(0);function n(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return a[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var a,i},e.exports=a()},function(e,t){"use strict";t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){return null!=e}function r(e,t,n){for(var a=void 0,i=e&&e.length||0,a=0;ae.length)&&(t=e.length);for(var n=0,a=new Array(t);nn.top-window.innerHeight-i&&(window["inviewport_"+r.zoneId]=!0,"function"==typeof r.wrapper.contentWindow.inView&&r.wrapper.contentWindow.inView(),AdtimaRender.Helpers.printLog("Call PRE-INVIEW iframe")),t&&AdtimaRender.Helpers.isActive()?window["inviewport_"+r.zoneId]||(window["inviewport_"+r.zoneId]=!0,"function"==typeof r.wrapper.contentWindow.inView&&r.wrapper.contentWindow.inView()):window["inviewport_"+r.zoneId]&&(window["inviewport_"+r.zoneId]=!1,"function"==typeof r.wrapper.contentWindow.outView&&r.wrapper.contentWindow.outView()),0<(a=AdtimaRender.Helpers.getOffsetInViewport(r.wrapper)).areaInView&&"function"==typeof r.wrapper.contentWindow.offsetInView&&r.wrapper.contentWindow.offsetInView(a))}catch(e){}}function m(){c(s);var e,t=r.parent.getAttribute("z2-reqid"),a=r.parent.getAttribute("z2-actvid");if(t==r.requestId){if(a)return delete d.pause,void delete d.delay;r.parent.hasAttribute("z2-zoneid")&&"none"==r.parent.style.display?s=setTimeout(m,30):(e=window.adtimaConfig.disableActiveViewTracking,r.ignoreActiveView||!r.standardBanner.trackLinks.activeView||e||((r.alwaysActive||AdtimaRender.Helpers.getInViewportBySize(l,r.format))&&AdtimaRender.Helpers.isActive()?(d.pause&&(d.delay=Date.now()-d.pause,delete d.pause),n[i]=Date.now(),window.timeoutViewport[i]=setTimeout(function(){var e,t,n;c(window.timeoutViewport[i]),a||(e=0,isNaN(d.delay)||(e=parseInt(d.delay)),t=Date.now()-d[i]-e,n=r.standardBanner.trackLinks.activeView+"&duration="+t+"&activeview",AdtimaRender.Helpers.includeTracking(n,{id:"z2_actv_"+i}),o&&r.banners.forEach(function(e){AdtimaRender.Helpers.includeTracking(n,{id:"z2_actv_"+e.bannerId+"_"+r.zoneId})}),r.parent.setAttribute("z2-actvid",Date.now()))},1e3)):(!n[i]||" "==n[i]||d.pause||a||(d.pause=Date.now()),c(window.timeoutViewport[i]),n[i]=" ")),!r.ignoreViewableImp&&r.standardBanner.trackLinks.viewableImp&&(r.parent.getAttribute("z2-vimpid")||!r.alwaysActive&&!AdtimaRender.Helpers.getInViewportBySize(l,r.format,0)||(r.parent.setAttribute("z2-vimpid",Date.now()),AdtimaRender.Helpers.includeTracking(r.standardBanner.trackLinks.viewableImp,{id:"z2_vimp_"+i}))))}}function u(){c(a),r.parent.getAttribute("z2-actvid")||(d[i]=Date.now(),a=setTimeout(u,18e4),delete d.pause)}d[i]||(d[i]=Date.now(),a=setTimeout(u,18e4));var f=window;null!==(e=window.adtimaConfig)&&void 0!==e&&e.windowElemScroller&&document.body.contains(window.adtimaConfig.windowElemScroller)&&(f=window.adtimaConfig.windowElemScroller),AdtimaRender.Helpers.addEvent(f,"scroll",function(){c(s),s=setTimeout(function(){p(),m()},30)}),AdtimaRender.Helpers.addEvent(window,"blur",function(){u(),c(window.timeoutViewport[i])}),AdtimaRender.Helpers.addEvent(window,"focus",function(){u(),r.ignoreActiveView||m(),p()}),r.parent.addEventListener("zadTracker",function(){u(),p(),m()}),p(),m()},trackViewportByClick:function(e){window.timeoutViewport=window.timeoutViewport||{};var t,n="".concat(e.bannerId,"_").concat(e.zoneId,"_").concat(-1!=e.requestId?e.requestId:0);window.timeoutViewport[n]&&clearTimeout(window.timeoutViewport[n]),e.parent.getAttribute("z2-actvid")||(t=e.standardBanner.trackLinks.activeView+"&duration=0&activeview",AdtimaRender.Helpers.includeTracking(t,{id:"z2_actv_"+n}),e.parent.setAttribute("z2-actvid",Date.now()))},mapObject:function(e){var t=document.getElementById("TcCDivWrapper_"+e.zid);if(t){var n=t.parentElement,a=e.banner;a.trackLinks=a.trackLinks||{},a.extend=a.extend||{},e.banners.forEach(function(e){e.format=AdtimaRender.Helpers.Banner.bannerFormat(a.format)});var i={zoneId:e.zid,bannerId:a.bannerId,zoneKind:a.kind.toLowerCase(),standardBanner:a,banners:e.banners,divWrapper:t,parent:n,closeButton:n.getAttribute("z2-close")||!1,closeButtonCountdown:n.getAttribute("z2-close-countdown")||0,isLogoBottom:"bottom"===n.getAttribute("z2-logo-position"),logoType:AdtimaRender.logoType.DEFAULT,zoneEffect:!0,type:n.getAttribute("z2-type"),renderOptions:a.renderOptions||0,fullscreen:"true"===a.fullscreen,height:a.height+"px",width:a.width+"px",responsive:"true"==n.getAttribute("z2-responsive"),autoHeight:"true"==n.getAttribute("z2-autoheight"),autoScale:n.getAttribute("z2-autoscale")||"",nativeTemplate:1,videoTemplate:n.getAttribute("z2-vtemplate")||"normal",extend:a.extend,ignoreActiveView:!1,ignoreViewableImp:!1,format:AdtimaRender.Helpers.Banner.bannerFormat(a.format),templateClass:[],templateType:a.templateType||"",videoTimeout:a.extend.videoTimeout||window.adtimaConfig.videoTimeout,requestId:e.requestId||-1,preloadGG:"google"===a.preload};return i.wrapper=AdtimaRender.Helpers.getWrapper(i.renderOptions,e.zid),n.getAttribute("z2-logo")&&Object.keys(AdtimaRender.logoType).forEach(function(e){AdtimaRender.logoType[e]===n.getAttribute("z2-logo")&&(i.logoType=AdtimaRender.logoType[e])}),isNaN(i.closeButtonCountdown)||(i.closeButtonCountdown=parseInt(i.closeButtonCountdown)),n.getAttribute("z2-template")?i.nativeTemplate=n.getAttribute("z2-template"):!isNaN(a.adTemplate)&&0AdtimaRender.Helpers.size.windowWidth&&0AdtimaRender.Helpers.size.windowHeight&&0","var adtimaPageWidth = "+AdtimaRender.Helpers.adtimaPageWidth()+";\n","window.CriteoBids = JSON.parse('"+JSON.stringify(window.CriteoBids||{})+"');\n","window.CriteoDisplayAd = function (t, e, i) { if (void 0 === i && (i = 0), null !== window.CriteoBids[t]) if (void 0 === window.CriteoBids[t] && null !== window.CriteoBids[t]) 100 > i && setTimeout(function () { window.CriteoDisplayAd(t, e, i + 1) }, 200); else { var r = document.getElementById(t); if (r) { var s = document.createElement('iframe'); s.setAttribute('id', t + '_iframe'), s.setAttribute('frameborder', '0'), s.setAttribute('allowtransparency', 'true'), s.setAttribute('hspace', '0'), s.setAttribute('marginwidth', '0'), s.setAttribute('marginheight', '0'), s.setAttribute('scrolling', 'no'), s.setAttribute('vspace', '0'), s.setAttribute('width', window.CriteoBids[t].width), s.setAttribute('height', window.CriteoBids[t].height), r.appendChild(s); var o = '