(self.AMP=self.AMP||[]).push({n:"amp-ad-exit",v:"2007102309000",f:(function(AMP,_){ var h,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function ea(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c=d&&(b[c]=Math.random()=this.spec.delay};function V(a){return{type:"clickDelay",delay:1E3,startTimingEvent:a}};function W(a,b,c){C.call(this,a,b.type);B("clickLocation"==b.type&&("undefined"===typeof b.left||"number"===typeof b.left)&&("undefined"===typeof b.right||"number"===typeof b.right)&&("undefined"===typeof b.top||"number"===typeof b.top)&&("undefined"===typeof b.bottom||"number"===typeof b.bottom)&&("undefined"===typeof b.relativeTo||"string"===typeof b.relativeTo),"Invaid ClickLocation spec");this.O=b.left||0;this.P=b.right||0;this.S=b.top||0;this.M=b.bottom||0;this.G=b.relativeTo;this.J=c;this.h= {top:0,right:0,bottom:0,left:0}}r(W,C);W.prototype.filter=function(a){return a.clientX>=this.h.left&&a.clientX<=this.h.right&&a.clientY>=this.h.top&&a.clientY<=this.h.bottom?!0:!1}; W.prototype.onLayoutMeasure=function(){var a=this;this.J.getVsync().measure(function(){var b=a.J.win;if(a.G){var c=b.document.querySelector(a.G);B(c,"relativeTo element "+a.G+" not found.");var d=c.getBoundingClientRect();a.h.left=d.left;a.h.top=d.top;a.h.bottom=d.bottom;a.h.right=d.right}else a.h.left=0,a.h.top=0,a.h.bottom=b.innerHeight,a.h.right=b.innerWidth;a.h.left+=a.O;a.h.top+=a.S;a.h.right-=a.P;a.h.bottom-=a.M})};function X(a,b){C.call(this,a,b.type);B("inactiveElement"==b.type&&"string"==typeof b.selector,"Invalid InactiveElementspec");this.R=b.selector}r(X,C);X.prototype.filter=function(a){a=a.target;var b=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return!(b&&b.call(a,this.R))};function Y(a,b,c){switch(b.type){case "clickDelay":return new U(a,b,c.win);case "clickLocation":return new W(a,b,c);case "inactiveElement":return new X(a,b)}};function wa(a,b){try{a:{var c=(a.ownerDocument||a).defaultView,d=b||J(c);if(c&&c!=d&&J(c)==d)try{var e=c.frameElement;break a}catch(k){}e=null}var f=e.parentElement;if("AMP-AD"==f.nodeName)return String(f.getResourceId())}catch(k){}return null};function Z(a){a=AMP.BaseElement.call(this,a)||this;a.I={};a.K={};a.w=[];a.A={beacon:!0,image:!0};a.C={};a.registerAction("exit",a.exit.bind(a));a.registerAction("setVariable",a.setVariable.bind(a),1);a.L={};a.B=null;a.m=null;a.F={};return a}r(Z,AMP.BaseElement);h=Z.prototype; h.exit=function(a){var b=this,c=a.args,d=a.event;B("variable"in c!="target"in c,"One and only one of 'target' and 'variable' must be specified");var e;"variable"in c?((e=this.K[c.variable])||(e=c["default"]),B(e,"Variable target not found, variable:'"+c.variable+"', default:'"+c["default"]+"'"),delete c["default"]):e=c.target;var f=this.I[e];B(f,"Exit target not found: '"+e+"'");B(d,"Unexpected null event");d.preventDefault();if(xa(this.w,d)&&xa(f.filters,d)){var k=ya(this,c,d,f);f.trackingUrls&& f.trackingUrls.map(k).forEach(function(a){z().fine("amp-ad-exit","pinging "+a);b.A.beacon&&b.win.navigator.sendBeacon&&b.win.navigator.sendBeacon(a,"")||!b.A.image||(b.win.document.createElement("img").src=a)});var g=k(f.finalUrl);N(this.getAmpDoc()).getHeadNode().querySelector("script[host-service]")?pa(O(this.getAmpDoc())).then(function(a){return a.openUrl(g)}).catch(function(a){A().fine("amp-ad-exit","ExitServiceError - fallback="+a.fallback);a.fallback&&Q(b.win,g,"_blank")}):Q(this.win,g,f.behaviors&& f.behaviors.clickTarget&&"_top"==f.behaviors.clickTarget?"_top":"_blank")}};h.setVariable=function(a){a=a.args;B(this.I[a.target],"Exit target not found: '"+a.target+"'");this.K[a.name]=a.target}; function ya(a,b,c,d){var e={CLICK_X:function(){return c.clientX},CLICK_Y:function(){return c.clientY}},f=oa(a.element),k={RANDOM:!0,CLICK_X:!0,CLICK_Y:!0};if(d.vars){var g={},p;for(p in d.vars)g.j=p,"_"==g.j[0]&&(g.l=d.vars[g.j],g.l&&(e[g.j]=function(c){return function(){if(c.l.iframeTransportSignal){var d=f.expandStringSync(c.l.iframeTransportSignal,{IFRAME_TRANSPORT_SIGNAL:function(b,c){if(!b||!c)return"";var d=a.L[b];if(d&&c in d)return d[c]}});if(c.l.iframeTransportSignal=="IFRAME_TRANSPORT_SIGNAL"+ d)A().error("amp-ad-exit","Invalid IFRAME_TRANSPORT_SIGNAL format:"+d+" (perhaps there is a space after a comma?)");else if(""!=d)return d}return c.j in b?b[c.j]:c.l.defaultValue}}(g),k[g.j]=!0)),g={l:g.l,j:g.j}}return function(a){return f.expandUrlSync(a,e,k)}}function xa(a,b){return a.every(function(a){var c=a.filter(b);z().info("amp-ad-exit","Filter '"+a.name+"': "+(c?"pass":"fail"));return c})} h.buildCallback=function(){var a=this;this.element.setAttribute("aria-hidden","true");this.w.push(Y("minDelay",V(),this));this.w.push(Y("carouselBtns",{type:"inactiveElement",selector:".amp-carousel-button"},this));var b=this.element.children;B(1==b.length,"The tag should contain exactly one