self.AMP_CONFIG={"v":"012111060251009","type":"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"flexAdSlots":0.05,"flexible-bitrate":0.1,"ios-fixed-no-transfer":0,"disable-a4a-non-sd":1,"amp-cid-backup":1,"story-ad-placements":0.01,"story-disable-animations-first-page":0,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"amp-story-page-attachment-ui-v2":1,"amp-sticky-ad-to-amp-ad-v4":0,"esm":1};self.AMP_EXP={"flexible-bitrate":0.1,"amp-story-desktop-one-panel":1,"amp-story-first-page-max-bitrate":0.3,"story-disable-animations-first-page":0,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"story-ad-page-outlink":0.02};var global=self;self.AMP=self.AMP||[];try{(function(_){if(self.AMP&&!Array.isArray(self.AMP))return;"use strict";function aa(){return"2111060251009"}class ba{constructor(){this.Za=new ca}abort(){this.Za.Cd||(this.Za.Cd=!0,this.Za.mc&&this.Za.mc({type:"abort",bubbles:!1,cancelable:!1,target:this.Za,currentTarget:this.Za}))}get signal(){return this.Za}}class ca{constructor(){this.Cd=!1;this.mc=null}get aborted(){return this.Cd}get onabort(){return this.mc}set onabort(a){this.mc=a}}let da;function r(){return da?da:da=Promise.resolve(void 0)}class v{constructor(){this.promise=new Promise(((a,b)=>{this.resolve=a;this.reject=b}))}}function ea(a){return new Promise((b=>{b(a())}))}function fa(a){let b=Object.getOwnPropertyDescriptor(a,"message");if(null!==b&&void 0!==b&&b.writable)return a;let c=a.stack,d=Error(a.message);for(let e in a)d[e]=a[e];d.stack=c;return d}function ha(a){let b=null,c="";for(let d of arguments)d instanceof Error&&!b?b=fa(d):(c&&(c+=" "),c+=d);b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function w(a){let b=ha.apply(null,arguments);setTimeout((()=>{var c,d;null===(c=(d=self).__AMP_REPORT_ERROR)||void 0===c?void 0:c.call(d,b);throw b}))}function ia(a){let b=ha.apply(null,arguments);b.expected=!0;return b}let ja=Object.prototype.hasOwnProperty,ka=Object.prototype.toString;function la(a){return"[object Object]"===ka.call(a)}function x(a){let b=Object.create(null);a&&Object.assign(b,a);return b}function y(a){return a||{}}function ma(a){let b=x();for(let c in a){if(!ja.call(a,c))continue;let d=a[c];b[c]=la(d)?ma(d):d}return b}let na=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,oa="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "),pa={childList:!0,subtree:!0};function qa(a,b){if(!na.test(b)||oa.includes(b))throw new a(`invalid custom element name "${b}"`)}class ra{constructor(a,b){this.F=a;this.vc=b;this.Bf=x()}define(a,b,c){this.vc.define(a,b,c);let d=this.Bf,e=d[a];e&&(e.resolve(),delete d[a])}get(a){let b=this.vc.getByName(a);if(b)return b.ctor}whenDefined(a){qa(this.F.SyntaxError,a);if(this.vc.getByName(a))return r();let b=this.Bf;let c=b[a];c||(c=new v,b[a]=c);return c.promise}upgrade(a){this.vc.upgrade(a)}}function sa(a,b){if(a.Wa)a.Wa+=`,${b}`;else{a.Wa=b;var c=new a.F.MutationObserver((d=>{d&&ta(a,d)}));a.ga=c;for(let d of a.de)c.observe(d,pa);ua(a.F,a)}}function va(a,b){return b&&a.querySelectorAll?a.querySelectorAll(b):[]}function wa(a,b){let c=a.getByName(b.localName);if(c&&(xa(a,b,c),b.connectedCallback))try{b.connectedCallback()}catch(d){w(d)}}function xa(a,b,c){c=c.ctor;if(!(b instanceof c)){a.gd=b;try{if(new c!==b)throw new a.F.Error("Constructor illegally returned a different instance.")}catch(d){w(d)}}}function ta(a,b){for(let c of b){if(!c)continue;let d=c.addedNodes,e=c.removedNodes;for(let f of d){let g=va(f,a.Wa);wa(a,f);for(let h of g)wa(a,h)}for(let f of e){let g=va(f,a.Wa);if(f.disconnectedCallback)try{f.disconnectedCallback()}catch(h){w(h)}for(let h of g)if(h.disconnectedCallback)try{h.disconnectedCallback()}catch(k){w(k)}}}}class ya{constructor(a){this.F=a;this.jd=x();this.Wa="";this.ga=this.gd=null;this.de=[a.document]}current(){let a=this.gd;this.gd=null;return a}getByName(a){let b=this.jd[a];if(b)return b}getByConstructor(a){let b=this.jd;for(let c in b){let d=b[c];if(d.ctor===a)return d}}define(a,b,c){let d=this.F.Error,e=this.F.SyntaxError;if(c)throw new d("Extending native custom elements is not supported");qa(e,a);if(this.getByName(a)||this.getByConstructor(b))throw new d(`duplicate definition "${a}"`);this.jd[a]={name:a,ctor:b};sa(this,a);for(let f of this.de)this.upgrade(f,a)}upgrade(a,b){let c=!!b,d=va(a,b||this.Wa);for(let e of d)c?wa(this,e):this.upgradeSelf(e)}upgradeSelf(a){let b=this.getByName(a.localName);b&&xa(this,a,b)}observe(a){this.de.push(a);this.ga&&this.ga.observe(a,pa)}sync(){this.ga&&ta(this,this.ga.takeRecords())}}function ua(a,b){var c;let d=a.document,e=a.Document.prototype,f=a.Element.prototype,g=a.Node.prototype,h=e.createElement,k=e.importNode,l=g.appendChild,m=g.cloneNode,n=g.insertBefore,p=g.removeChild,t=g.replaceChild;e.createElement=function(A){let P=b.getByName(A);return P?new P.ctor:h.apply(this,arguments)};e.importNode=function(){let A=k.apply(this,arguments);A&&this===d&&(b.upgradeSelf(A),b.upgrade(A));return A};g.appendChild=function(){let A=l.apply(this,arguments);b.sync();return A};g.insertBefore=function(){let A=n.apply(this,arguments);b.sync();return A};g.removeChild=function(){let A=p.apply(this,arguments);b.sync();return A};g.replaceChild=function(){let A=t.apply(this,arguments);b.sync();return A};g.cloneNode=function(){let A=m.apply(this,arguments);A.ownerDocument===d&&(b.upgradeSelf(A),b.upgrade(A));return A};let u=f,q=Object.getOwnPropertyDescriptor(u,"innerHTML");q||(u=Object.getPrototypeOf(a.HTMLElement.prototype),q=Object.getOwnPropertyDescriptor(u,"innerHTML"));if(null!==(c=q)&&void 0!==c&&c.configurable){let A=q.set;q.set=function(P){A.call(this,P);b.upgrade(this)};Object.defineProperty(u,"innerHTML",q)}}function za(){function a(){let m=this.constructor;var n=g.current();n||(n=g.getByConstructor(m),n=f.call(e,n.name));Object.setPrototypeOf(n,m.prototype);return n}var b=Aa,c=b.Element;let d=b.HTMLElement,e=b.document,f=e.createElement,g=new ya(b),h=new ra(b,g);Object.defineProperty(b,"customElements",{enumerable:!0,configurable:!0,value:h});c=c.prototype;let k=c.attachShadow,l=c.createShadowRoot;k&&(c.attachShadow=function(m){let n=k.apply(this,arguments);g.observe(n);return n},c.attachShadow.toString=function(){return k.toString()});l&&(c.createShadowRoot=function(){let m=l.apply(this,arguments);g.observe(m);return m},c.createShadowRoot.toString=function(){return l.toString()});Ba(d,a);b.HTMLElementOrig=b.HTMLElement;b.HTMLElement=a;a.call||(a.apply=b.Function.apply,a.bind=b.Function.bind,a.call=b.Function.call)}function Ca(){function a(){return d.construct(c,[],this.constructor)}var b=Aa;let c=b.HTMLElement,d=b.Reflect;Ba(c,a);b.HTMLElementOrig=b.HTMLElement;b.HTMLElement=a}function Ba(a,b){b.prototype=Object.create(a.prototype,{constructor:{configurable:!0,writable:!0,value:b}});Object.setPrototypeOf(b,a)}function Da(a,b,c){b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c;return a}Da["default"]=Da;Da.__esModule=!0;function z(a){for(var b=1;b""!==m));null===(e=(f=self).__AMP_REPORT_ERROR)||void 0===e?void 0:e.call(f,c);throw c}function Ua(a,b,c,d,e){B(e)?a(c,e.concat([b])):a(c,`${e||d}: %s`,b);return b}function Va(a,b,c,d,e){return Qa("​​​",a,b,c,d,e,void 0,void 0,void 0,void 0,void 0,void 0)}function Wa(a){let b=new Uint8Array(a.length);for(let c=0;c{b||(c=d.apply(self,e),b=!0,d=null);return c}}function $a(a,b,c){function d(h){g=null;f=a.setTimeout(e,c);b.apply(null,h)}function e(){f=0;g&&d(g)}let f=0,g=null;return function(...h){f?g=h:d(h)}}function ab(a,b,c){function d(){e=0;let h=c-(a.Date.now()-f);if(0{};let mb;function nb(a){mb=a}let ob=(a,b)=>b.reduce(((c,d)=>`${c}&s[]=${encodeURIComponent(String(Oa(d)))}`),`//web.archive.org/web/20211128020713///log.amp.dev/?v=${`01${aa()}`}&id=${encodeURIComponent(a)}`);function pb(a){var b;let c=a.win;return null!==(b=c.console)&&void 0!==b&&b.log&&0!=parseInt(db(c).log,10)?a.Ng(parseInt(db(void 0).log,10),!1):0}function qb(a,b,c,d){var e,f;if(c>(null!==(e=mb)&&void 0!==e?e:a.Og))return!1;let g=a.win.console;c=null!==(f={[1]:g.error,[3]:g.info,[2]:g.warn}[c])&&void 0!==f?f:g.log;a=B(d[0])?rb(a,d[0]):d;b=`[${b}]`;"string"==typeof a[0]?a[0]=b+" "+a[0]:a.unshift(b);c.apply(g,a);return!0}function sb(a,b){b=fa(b);a.Tb?b.message?-1==b.message.indexOf(a.Tb)&&(b.message+=a.Tb):b.message=a.Tb:Pa(b.message)&&(b.message=b.message.replace("​​​",""));return b}function rb(a,b){var c;let d=b.shift();return null!==(c=a.Od)&&void 0!==c&&c[d]?[a.Od[d]].concat(b):[`More info at ${ob(d,b)}`]}class tb{constructor(a,b,c=""){this.win=a;this.Ng=b;this.Og=pb(this);this.Tb=c;this.Od=null;this.Eh=Za((()=>{a.fetch(`${E.cdn}/rtv/${`01${aa()}`}/log-messages.simple.json`).then((d=>d.json()),kb).then((d=>{d&&(this.Od=d)}))}));this.qb=this.assert.bind(this)}fine(a,...b){qb(this,a,4,b)}info(a,...b){qb(this,a,3,b)}warn(a,...b){qb(this,a,2,b)}error(a,...b){if(!qb(this,a,1,b)){var c,d;b=this.createError.apply(this,b);b.name=a||b.name;null===(c=(d=self).__AMP_REPORT_ERROR)||void 0===c?void 0:c.call(d,b)}}expectedError(a,...b){if(!qb(this,a,1,b)){var c,d;null===(c=(d=self).__AMP_REPORT_ERROR)||void 0===c?void 0:c.call(d,this.createExpectedError.apply(this,b))}}createError(a){return sb(this,ha.apply(null,arguments))}createExpectedError(a){return sb(this,ia.apply(null,arguments))}assert(a,b,c){return B(b)?this.assert.apply(this,[a].concat(rb(this,b))):Qa.apply(null,[this.Tb].concat(Array.prototype.slice.call(arguments)))}assertElement(a,b){return Ua(this.qb,a,Ma(a),"Element expected",b)}assertString(a,b){return Ua(this.qb,a,"string"==typeof a,"String expected",b)}assertNumber(a,b){return Ua(this.qb,a,"number"==typeof a,"Number expected",b)}assertArray(a,b){return Ua(this.qb,a,B(a),"Array expected",b)}assertBoolean(a,b){return Ua(this.qb,a,!!a===a,"Boolean expected",b)}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};let ub=self.__AMP_LOG;let vb=null;function wb(a,b){if(!vb)throw Error("failed to call initLogConstructor");return new vb(self,a,b)}function F(a){ub.user||(ub.user=xb("​​​"));var b=ub.user.win;return a&&a.ownerDocument.defaultView!=b?ub.userForEmbed||(ub.userForEmbed=xb("​​​​")):ub.user}function xb(a){return wb(((b,c)=>c||1<=b?4:2),a)}function G(){return ub.dev||(ub.dev=wb((a=>3<=a?4:2<=a?3:0)))}function H(a,b,c,d,e,f){return F().assert(a,b,c,d,e,f,void 0,void 0,void 0,void 0,void 0)}function yb(a){return(a.ownerDocument||a).defaultView} function zb(a,b){return a.querySelector(b.replace(/^|,/g,"$&:scope "))}function Ab(a,b){let c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1}function Bb(a,b){for(;a&&void 0!==a;a=a.parentElement)if(b(a))return a;return null}function Cb(a,b){return a.closest?a.closest(b):Bb(a,(c=>Ab(c,b)))}function Db(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function Eb(a,b){let c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}function Fb(a,b){/^[\w-]+$/.test(b);return zb(a,`> [${b}]`)}function Gb(a){return Eb(a,(b=>!Hb(b)))}function Hb(a){let b;"string"==typeof a?b=a:a.nodeType===Node.ELEMENT_NODE&&(b=a.tagName);return b&&b.toLowerCase().startsWith("i-")?!0:a.nodeType!==Node.ELEMENT_NODE?!1:a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow")}let Ib={bubbles:!0,cancelable:!0};function Jb(a,b,c){if(b(a))c();else{let d=new(yb(a).MutationObserver)((()=>{b(a)&&(d.disconnect(),c())}));d.observe(a,{childList:!0})}}function Kb(a,b){return new Promise((c=>{Jb(a,b,c)}))}function Lb(a,b){Jb(a.documentElement,(()=>!!a.body),b)}function Mb(a){return new Promise((b=>Lb(a,b)))}function Nb(a){var b;null===(b=a.parentElement)||void 0===b?void 0:b.removeChild(a)}function Ob(a,b,c=null){c?a.insertBefore(b,c.nextSibling):a.insertBefore(b,a.firstChild)}function Pb(a){var b=y({src:"about:blank",style:"display:none"});a=a.createElement("iframe");for(let c in b)a.setAttribute(c,b[c]);return a}function Qb(a){let b=a.isConnected;if(void 0!==b)return b;do{if(a=Rb(a),a.host)a=a.host;else break}while(1);return a.nodeType===Node.DOCUMENT_NODE}function Rb(a){if(Node.prototype.getRootNode)return a.getRootNode()||a;for(;a.parentNode&&(!a||"I-AMPHTML-SHADOW-ROOT"!=a.tagName&&(11!=a.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(a)));a=a.parentNode);return a}function Sb(a,b){let c=a;do{if(c.nextSibling)return!0}while((c=c.parentNode)&&c!=b);return!1}function Tb(a,b){let c=a.length;for(let d=0;d{}),{root:a.document}),!0}catch(b){return!1}}class bc{constructor(a,b){this.Ra=a;this.nc=z({root:null,rootMargin:"0px 0px 0px 0px"},b);this.T=[];this.M=null;bc._upgraders.push(this.ne.bind(this))}get root(){return this.M?this.M.root:this.nc.root||null}get rootMargin(){return this.M?this.M.rootMargin:this.nc.rootMargin}get thresholds(){return this.M?this.M.thresholds:[].concat(this.nc.threshold||0)}disconnect(){this.M?this.M.disconnect():this.T.length=0}takeRecords(){return this.M?this.M.takeRecords():[]}observe(a){this.M?this.M.observe(a):-1==this.T.indexOf(a)&&this.T.push(a)}unobserve(a){this.M?this.M.unobserve(a):(a=this.T.indexOf(a),-1!=a&&this.T.splice(a,1))}ne(a){let b=new a(this.Ra,this.nc);this.M=b;for(let c of this.T)b.observe(c);this.T.length=0}}bc._upgraders=[];function cc(){var a=dc;!a.IntersectionObserverEntry||"isIntersecting"in a.IntersectionObserverEntry.prototype||Object.defineProperty(a.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return 0{b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function sc(a){return new Promise((b=>{qc(a,b)}))}function tc(a){return new Promise((b=>{rc(a,pc,b)}))}let uc=["amp-mustache"];function vc(a){if(!a)return null;var b=a.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)$/i);let c=b?b[2]:void 0;b=b?b[3]:void 0;return c&&b?{extensionId:c,extensionVersion:b}:null}function wc(a,b,c){let d=a.document.createElement("script");d.async=!0;b.startsWith("_")?c="":d.setAttribute(0<=uc.indexOf(b)?"custom-template":"custom-element",b);d.setAttribute("data-script",b);d.setAttribute("i-amphtml-inserted","");d.setAttribute("type","module");let e=a.document.head.querySelector("script[nonce]");e&&d.setAttribute("nonce",e.getAttribute("nonce"));d.setAttribute("crossorigin","anonymous");a=c;c=E.cdn;let f=ib().rtvVersion;d.src=`${c}/rtv/${f}/v0/${b}${a?"-"+a:""}.mjs`;return d}function xc(a,b,c,d,e=!0){a=a.document.head.querySelectorAll(`script[src*="/${b}-"]${":not([i-amphtml-loaded-new-version])"+(e?"":":not([i-amphtml-inserted])")}`);let f=[];for(let g=0;gOc(b,d))))}}function Oc(a,b){if("function"==typeof b.dispose)try{b.dispose()}catch(c){G().error("SERVICE","failed to dispose service",a,c)}}function Fc(a,b){a=a.__AMP_SERVICES&&a.__AMP_SERVICES[b];return!(!a||!a.ctor)}function Mc(){var a=new v;let b=a.promise,c=a.reject;a=a.resolve;b.catch((()=>{}));return{obj:null,promise:b,resolve:a,reject:c,context:null,ctor:null}}function Pc(a,b,c){return Qc(a,b,c,void 0).then((d=>H(d,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",b,c,c,c)))}function Qc(a,b,c,d){let e=Ic(a,b);if(e)return e;let f=Bc(a);return f.whenExtensionsKnown().then((()=>{let g=f.getExtensionVersion(c);return g?M(f.win,"extensions").waitForExtension(c,g):null})).then((g=>g?d?Ic(a,b):Gc(a,b):null))}function Rc(a){let b=Ec(a,"bind");return b?Promise.resolve(b):Qc(a,"bind","amp-bind")}function Sc(a){return M(a,"ampdoc")}function Tc(a){return M(a,"extensions")}var Uc=a=>O(a,"documentInfo").get();class Q{constructor(){this.na=null}add(a){this.na||(this.na=[]);this.na.push(a);return()=>{this.remove(a)}}remove(a){this.na&&Ja(this.na,a)}removeAll(){this.na&&(this.na.length=0)}fire(a){if(this.na)for(let b of this.na)b(a)}getHandlerCount(){var a,b;return null!==(a=null===(b=this.na)||void 0===b?void 0:b.length)&&void 0!==a?a:0}}class Vc{constructor(){this.Ia=x();this.Ka=null}get(a){a=this.Ia[a];return null==a?null:a}whenSignal(a){var b;let c=null===(b=this.Ka)||void 0===b?void 0:b[a];c||(b=this.Ia[a],c=null!=b?{promise:"number"==typeof b?Promise.resolve(b):Promise.reject(b)}:new v,this.Ka||(this.Ka=x()),this.Ka[a]=c);return c.promise}signal(a,b){var c;if(null==this.Ia[a]){var d=null!==b&&void 0!==b?b:Date.now();this.Ia[a]=d;a=null===(c=this.Ka)||void 0===c?void 0:c[a];null!==a&&void 0!==a&&a.resolve&&(a.resolve(d),a.resolve=void 0,a.reject=void 0)}}rejectSignal(a,b){var c;null==this.Ia[a]&&(this.Ia[a]=b,a=null===(c=this.Ka)||void 0===c?void 0:c[a],null!==a&&void 0!==a&&a.reject&&(a.reject(b),a.promise.catch((()=>{})),a.resolve=void 0,a.reject=void 0))}reset(a){var b;this.Ia[a]&&delete this.Ia[a];let c=null===(b=this.Ka)||void 0===b?void 0:b[a];c&&!c.resolve&&delete this.Ka[a]}}let Wc;let Xc="Webkit webkit Moz moz ms O o".split(" "),Yc={getPropertyPriority:()=>"",getPropertyValue:()=>""};function Zc(a,b,c){if(b.startsWith("--"))return b;Wc||(Wc=x());let d=Wc[b];if(!d||c){d=b;if(void 0===a[b]){var e=b.charAt(0).toUpperCase()+b.slice(1);a:{for(let g=0;gfd(this.win.document,e)));this.me()}dispose(){Nc(this);this.le.forEach((a=>a()))}isSingleDoc(){return null}getParent(){return this.qc}signals(){return this.C}getParam(a){a=this.Af[a];return null==a?null:a}getMeta(){if(this.oa)return x(this.oa);this.oa=x();let a=this.win.document.head.querySelectorAll("meta[name]");Tb(a,(b=>{let c=b.getAttribute("name");b=b.getAttribute("content");c&&null!==b&&void 0===this.oa[c]&&(this.oa[c]=b)}));return x(this.oa)}getMetaByName(a){if(!a)return null;a=this.getMeta()[a];return void 0!==a?a:null}setMetaByName(){}declaresExtension(a,b){let c=this.hd[a];return c?!b||c===b:!1}declareExtension(a,b){this.hd[a]=b}getExtensionVersion(a){return this.hd[a]||null}setExtensionsKnown(){this.C.signal("-ampdoc-ext-known")}whenExtensionsKnown(){return this.C.whenSignal("-ampdoc-ext-known")}getRootNode(){return null}getHeadNode(){}isBodyAvailable(){return!1}getBody(){return null}waitForBodyOpen(){return null}isReady(){return null}whenReady(){return null}getUrl(){return null}getElementById(a){return this.getRootNode().getElementById(a)}contains(a){return this.getRootNode().contains(a)}overrideVisibilityState(a){this.qe!=a&&(this.qe=a,this.me())}me(){let a=cd(this.win.document);let b="visible";for(let e=this.qc;e;e=e.getParent())if("visible"!=e.getVisibilityState()){b=e.getVisibilityState();break}let c;let d=this.qe||"visible";c="visible"==d&&"visible"==b&&"visible"==a?"visible":"hidden"==a&&"paused"==d?a:"paused"==d||"inactive"==d?d:"paused"==b||"inactive"==b?b:"prerender"==d||"prerender"==a||"prerender"==b?"prerender":"hidden";this.Oc!=c&&(this.Oc=c,"visible"==c?(this.rf=Date.now(),this.C.signal("-ampdoc-first-visible"),this.C.signal("-ampdoc-next-visible")):this.C.reset("-ampdoc-next-visible"),this.Xf.fire())}whenFirstVisible(){return this.C.whenSignal("-ampdoc-first-visible").then((()=>{}))}whenNextVisible(){return this.C.whenSignal("-ampdoc-next-visible").then((()=>{}))}getFirstVisibleTime(){return this.C.get("-ampdoc-first-visible")}getLastVisibleTime(){return this.rf}getVisibilityState(){return this.Oc}isVisible(){return"visible"==this.Oc}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(a){return this.Xf.add(a)}registerSingleton(a){return this.Df[a]?!1:this.Df[a]=!0}}class hd extends kd{constructor(a,b){super(a,null,b);this.pb=this.win.document.body?Promise.resolve(this.win.document.body):Mb(this.win.document).then((()=>this.getBody()));this.Ob=sc(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return this.win.location.href}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.pb}isReady(){return oc(this.win.document)}whenReady(){return this.Ob}}class id extends kd{constructor(a,b,c,d){super(a,null,d);this.Wb=b;this.Kf=c;this.Vc=null;let e=new v;this.pb=e.promise;this.ze=e.resolve;this.Qb=!1;let f=new v;this.Ob=f.promise;this.Pb=f.resolve}isSingleDoc(){return!1}getRootNode(){return this.Kf}getUrl(){return this.Wb}getHeadNode(){return this.Kf}isBodyAvailable(){return!!this.Vc}getBody(){return this.Vc}setBody(a){this.Vc=a;this.ze(a);this.ze=void 0}waitForBodyOpen(){return this.pb}isReady(){return this.Qb}setReady(){this.Qb=!0;this.Pb();this.Pb=void 0}whenReady(){return this.Ob}getMeta(){return x(this.oa)}setMetaByName(a,b){this.oa||(this.oa=x());this.oa[a]=b}}class jd extends kd{constructor(a,b,c,d){super(a,c,d);this.Wb=b;this.pb=this.win.document.body?Promise.resolve(this.win.document.body):Mb(this.win.document).then((()=>this.getBody()));this.Qb=!1;a=new v;this.Ob=a.promise;this.Pb=a.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.Wb}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.pb}isReady(){return this.Qb}whenReady(){return this.Ob}setReady(){this.Qb=!0;this.Pb();this.Pb=void 0}}function md(){var a=self;K(a,"ampdoc",(function(){return new gd(a)}))}let nd={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},od={"AMP-AD":!0,"AMP-ANIM":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-PAGE":!0,"AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-RENDER":!0,"AMP-TIKTOK":!0,"AMP-TWITTER":!0},pd=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function qd(a){for(let b in nd)if(nd[b]==a)return nd[b]}function rd(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function sd(a){if("number"==typeof a)return a+"px";if(a&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(a))return/^\d+(\.\d+)?$/.test(a)?a+"px":a}function td(a){Va(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return Va(/[a-z]+/i.exec(a),"Failed to read units from %s",a)[0]}function ud(a){a=parseFloat(a);return Na(a)?a:void 0}function vd(a,b){a.classList.add("i-amphtml-fill-content");b&&a.classList.add("i-amphtml-replaced-content")}function wd(a,b,c,d){let e=Ga(a);for(let f of e)a=b.getAttribute(f),null!==a?c.setAttribute(f,a):d&&c.removeAttribute(f)}class xd{constructor(a,b){this.F=a;this.Ra=b;this.Fa={};this.Nb=null}start(){this.Nb=this.Fa;this.Fa={}}resolveMatchQuery(a){return"1"===this.yc(a,yd,"1")}resolveListQuery(a){return this.yc(a,zd,"")}complete(){for(let a in this.Nb)a in this.Fa||Ad(this.Nb[a],this.Ra,!1);this.Nb=null}dispose(){for(let a in this.Fa)Ad(this.Fa[a],this.Ra,!1);this.Fa={}}yc(a,b,c){if(!a.trim())return c;var d=this.Fa[a]||this.Nb[a];d||(d=b(this.F,a),Ad(d,this.Ra,!0));this.Fa[a]=d;a:{for(a=0;a{c=c.replace(/\s+/g," ").trim();if(0!=c.length){var d;if(")"==c.charAt(c.length-1)){let f=1;for(d=c.length-2;0<=d;d--){var e=c.charAt(d);"("==e?f--:")"==e&&f++;if(0==f)break}let g=d-1;if(0=e||"A"<=e&&"Z">=e||"0"<=e&&"9">=e);d--);if(d>=g)return null}else for(d=c.length-2;0<=d&&(e=c.charAt(d),"%"==e||"."==e||"a"<=e&&"z">=e||"A"<=e&&"Z">=e||"0"<=e&&"9">=e);d--);0<=d?(e=c.substring(0,d+1).trim(),c=c.substring(d+1).trim()):e=void 0;return c?{query:e?a.matchMedia(e):null,value:c}:null}})).filter(Boolean)}function Ad(a,b,c){for(let d=0;d'],Fd={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Gd(a){let b=qd(a.getAttribute("layout"));return b?b:Hd(a).layout}function Hd(a){let b=a.getAttribute("layout"),c=a.getAttribute("width"),d=a.getAttribute("height"),e=a.getAttribute("sizes"),f=a.getAttribute("heights"),g=b?qd(b):null;Va(void 0!==g,'Invalid "layout" value: %s, %s',b,a);let h=c&&"auto"!=c?sd(c):c;Va(void 0!==h,'Invalid "width" value: %s, %s',c,a);let k=d&&"fluid"!=d?sd(d):d;Va(void 0!==k,'Invalid "height" value: %s, %s',d,a);var l;(l=g&&"fixed"!=g&&"fixed-height"!=g||h&&k)||(l=a.tagName,l=l.toUpperCase(),l=void 0===Fd[l]);if(l){l=h;var m=k}else{l=a.tagName.toUpperCase();if(!Fd[l]){m=a.ownerDocument;var n=l.replace(/^AMP\-/,"");n=m.createElement(n);n.controls=!0;ad(n,{position:"absolute",visibility:"hidden"});m.body.appendChild(n);Fd[l]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"};m.body.removeChild(n)}m=Fd[l];l=h||"fixed-height"==g?h:m.width;m=k||m.height}n=g?g:l||m?"fluid"==m?"fluid":!m||l&&"auto"!=l?m&&l&&(e||f)?"responsive":"fixed":"fixed-height":"container";"fixed"!=n&&"fixed-height"!=n&&"responsive"!=n&&"intrinsic"!=n||Va(m,'The "height" attribute is missing: %s',a);"fixed-height"==n&&Va(!l||"auto"==l,'The "width" attribute must be missing or "auto": %s',a);"fixed"!=n&&"responsive"!=n&&"intrinsic"!=n||Va(l&&"auto"!=l,'The "width" attribute must be present and not "auto": %s',a);"responsive"==n||"intrinsic"==n?Va(td(l)==td(m),'Length units should be the same for "width" and "height": %s, %s, %s',c,d,a):Va(null===f,'"heights" attribute must be missing: %s',a);return{layout:n,width:l,height:m}}function Id(){let a=Jd();return b=>setTimeout(b,a())}function Jd(){let a=0;return()=>{let b=Math.pow(1.5,a++);var c=b*(c||.3)*Math.random();.5=n&&(g[m]=Math.random(){c&&c.triggerEventForTarget(a,"user-error",b,!1)}))}let Pd;function Qd(a,b,c,d){let e=a,f=c,g=l=>{try{return f(l)}catch(p){var m,n;null===(m=(n=self).__AMP_REPORT_ERROR)||void 0===m?void 0:m.call(n,p);throw p}};let h=Rd(),k=!(null===d||void 0===d||!d.capture);e.addEventListener(b,g,h?d:k);return()=>{var l;null===(l=e)||void 0===l?void 0:l.removeEventListener(b,g,h?d:k);g=e=f=null}}function Rd(){if(void 0!==Pd)return Pd;Pd=!1;try{let a={get capture(){Pd=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(a){}return Pd}function Sd(a,b,c,d){return Qd(a,b,c,d)}function Td(a,b,c,d){let e=c;let f=Qd(a,b,(g=>{try{e(g)}finally{e=null,f()}}),d);return f}function Ud(a,b){let c;let d=new Promise((e=>{c=Td(a,"click",e,void 0)}));d.then(c,c);b&&b(c);return d}function Vd(a){return!!(a.complete||"complete"==a.readyState||Wd(a)&&0{b=d?Td(a,"loadedmetadata",e,{capture:!0}):Td(a,"load",e);if(a.tagName){var g=a;if(d&&!a.hasAttribute("src")&&(g=Db(a,(h=>"SOURCE"===h.tagName)),!g))return f(Error("Media has no source."));c=Td(g,"error",f)}})).then((()=>{c&&c();return a}),(()=>{b&&b();Wd(a)&&(a.__AMP_MEDIA_LOAD_FAILURE_SRC=a.currentSrc||!0);let e=a;e&&e.src&&(e=e.src);throw F().createError("Failed to load:",e)}))}function Wd(a){return"AUDIO"===a.tagName||"VIDEO"===a.tagName}let Yd={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment","amp-story-render":"amp-story[standalone]"};function Zd(a){let b=$d(a).map((c=>{let d=Hc(a,c).then((e=>e&&"function"==typeof e.whenReady?e.whenReady().then((()=>e)):e));return N(a).timeoutPromise(3e3,d,`Render timeout waiting for service ${c} to be ready.`)}));return Promise.all(b)}function $d(a){let b=a.document;return Object.keys(Yd).filter((c=>b.querySelector(Yd[c])))}function ae(a,b,c,d){let e=a.getHeadNode(),f=be(e,ce(e,b),d||null);if(c){let h=a.getRootNode();if(de(h,f))c(f);else var g=setInterval((()=>{de(h,f)&&(clearInterval(g),c(f))}),4)}}function be(a,b,c){let d=a.__AMP_CSS_SM;d||(d=a.__AMP_CSS_SM=x());let e=c&&"amp-custom"!=c&&"amp-keyframes"!=c,f=e?`amp-extension=${c}`:null;if(f){let k=ee(a,d,f);if(k)return k.textContent!==b&&(k.textContent=b),k}let g=(a.ownerDocument||a).createElement("style");g.textContent=b;let h=null;e?(g.setAttribute("amp-extension",c||""),h=ee(a,d,"amp-runtime")):(c&&g.setAttribute(c,""),h=a.lastChild);Ob(a,g,h);f&&(d[f]=g);return g}function ee(a,b,c){return b[c]?b[c]:(a=a.querySelector(`style[${c}]`))?b[c]=a:null}function ce(a,b){return(a=a.__AMP_CSS_TR)?a(b):b}let fe=!1;function ge(){var a=self.document;let b=a.defaultView;Mb(a).then((()=>Zd(b))).catch((c=>{w(c);return[]})).then((c=>{fe=!0;a.body.getBoundingClientRect();he(a);Bc(a).signals().signal("render-start");0"string"==typeof a?T(a):a;function T(a){ke||(ke=self.document.createElement("a"));return ne(ke,a)}function ne(a,b){a.href="";return new URL(b,a.href)}function oe(a,b,c){if(!b)return a;let d=a.split("#",2),e=d[0].split("?",2);let f=e[0]+(e[1]?c?`?${b}&${e[1]}`:`?${e[1]}&${b}`:`?${b}`);return f+=d[1]?`#${d[1]}`:""}function pe(a,b){return`${encodeURIComponent(a)}=${encodeURIComponent(b)}`}function qe(a,b){return oe(a,re(b))}function re(a){let b=[];for(let c in a){let d=a[c];if(null!=d){d=Ga(d);for(let e=0;enull===e||void 0===e?void 0:e.tagName));-1{!b.reason||"CANCELLED"!==b.reason.message&&"BLOCK_BY_CONSENT"!==b.reason.message&&"AbortError"!==b.reason.message?V(b.reason||Error("rejected promise "+b)):b.preventDefault()}))}function Fe(a,b,c,d,e){!this||!this.document||e&&e.expected||ie(this.document);let f=!1;try{f=Je()}catch(h){}if(!(f&&.01{try{return Le(this,g).catch((()=>{}))}catch(h){}}))}}function Le(a,b){return b.pt&&.9>Math.random()?r():Me(a,b).then((c=>{if(!c){let d=new XMLHttpRequest;d.open("POST",.1>Math.random()?E.betaErrorReporting:E.errorReporting,!0);d.send(JSON.stringify(b))}}))}function Me(a,b){a=Sc(a);if(!a.isSingleDoc())return Promise.resolve(!1);let c=a.getSingleDoc();if(!c.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);let d=O(c,"viewer");return d.hasCapability("errorReporter")?d.isTrustedViewer().then((e=>{if(!e)return!1;d.sendMessage("error",y({m:b.m,a:b.a,s:b.s,el:b.el,ex:b.ex,v:b.v,pt:b.pt}));return!0})):Promise.resolve(!1)}function Ke(a,b,c,d,e,f){var g=a;e&&(g=e.message?e.message:String(e));g||(g="Unknown error");a=g;let h=!(!e||!e.expected);if(!/_reported_/.test(a)&&"CANCELLED"!=a){var k=!(self&&self.window),l=Math.random();if(-1!=a.indexOf("Failed to load:")||"Script error."==a||k)if(h=!0,.001{this.Eb=!1;this.H=1;this.element.signals().signal("res-built")}),(a=>{this.maybeReportErrorOnBuildFailure(a);this.Eb=!1;this.element.signals().rejectSignal("res-built",a);throw a}))}maybeReportErrorOnBuildFailure(a){He(a)||G().error("Resource","failed to build:",this.debugid,a)}changeSize(a,b,c){this.element.applySize(a,b,c);this.requestMeasure()}overflowCallback(a,b,c,d){a&&(this.Zd={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)}resetPendingChangeSize(){this.Zd=void 0}getPendingChangeSize(){return this.Zd}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(!(this.Kg&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.Id=!1;var a=this.Y;let d=O(this.element,"viewport");this.Y=d.getLayoutRect(this.element);let e=!1;if(d.supportsPositionFixed()&&this.isDisplayed()){let{win:f}=this.o.getAmpdoc(),g=f.document.body;for(let h=this.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&&h.isAlwaysFixed()){e=!0;break}if(d.isDeclaredFixed(h)&&"fixed"==(f.getComputedStyle(h)||Yc).position){e=!0;break}}}if(this.dc=e)this.Y=Xb(this.Y,-d.getScrollLeft(),-d.getScrollTop());var b=this.Y,c=!(a.width==b.width&&a.height===b.height);(1==this.H||a.top!=b.top||c)&&this.element.isUpgraded()&&(1==this.H?this.H=2:4!=this.H&&5!=this.H||!this.element.isRelayoutNeeded()||(this.H=2));this.hasBeenMeasured()||(this.zd=b);this.element.updateLayoutBox(b,c)}else this.H=1}ensureMeasured(){return this.hasBeenMeasured()?r():M(this.hostWin,"vsync").measure((()=>this.measure()))}completeCollapse(){bd(this.element,!1);this.Y=J(this.Y.left,this.Y.top,0,0);this.dc=!1;this.element.updateLayoutBox(this.getLayoutBox());let a=this.getOwner();a&&a.collapsedCallback(this.element)}completeExpand(){bd(this.element,!0);this.requestMeasure()}isMeasureRequested(){return this.Id}hasBeenMeasured(){return!!this.zd}requestMeasure(){this.Id=!0}getLayoutSize(){var a=this.Y;return{width:a.width,height:a.height}}getLayoutBox(){if(!this.dc)return this.Y;let a=O(this.element,"viewport");return Xb(this.Y,a.getScrollLeft(),a.getScrollTop())}getInitialLayoutBox(){return this.zd||this.Y}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;let a="fluid"==this.element.getLayout(),b=this.getLayoutBox(),c=0b.right)return{distance:!1};if(a.bottomb.bottom)e=a.top-b.bottom,1==c&&(d=2);else return{distance:!0};return{distance:e,scrollPenalty:d,viewportHeight:a.height}}isWithinViewportRatio(a,b){if("boolean"===typeof a)return a;let{distance:c,scrollPenalty:d,viewportHeight:e}=b||this.getDistanceViewportRatio();return"boolean"==typeof c?c:c{M(this.hostWin,"vsync").mutate((()=>{let d;try{d=this.element.layoutCallback(a)}catch(e){c(e)}Promise.resolve(d).then(b,c)}));a.onabort=()=>c(Ge())})).then((()=>Oe(this,!0,a)),(b=>Oe(this,!1,a,b)))}isLayoutPending(){return 4!=this.H&&5!=this.H}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Pg}isInViewport(){this.Gd&&Ne(this);return this.Gd}setInViewport(a){this.Gd=a}unlayout(){0!=this.H&&1!=this.H&&2!=this.H&&(this.bb&&(this.bb.abort(),this.bb=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.H=1,this.va=0,this.Jb=null))}getTaskId(a){return this.debugid+"#"+a}pause(){this.element.pause()}pauseOnRemove(){this.element.pause()}resume(){this.element.resume()}unload(){this.element.unmount()}disconnect(){delete this.element.__AMP__RESOURCE;this.element.disconnect(!0)}}function Qe(a,b){for(let c=0;cRe(a,d)))}function Ve(a,b){let c=a.kb;c?(c.includes(b)||c.push(b),Se(a)):Re(a,b)}function Te(a){a.B.isReady()&&!a.Gf&&(a.Gf=!0,a.B.win.setTimeout((()=>{a.B.signals().signal("ready-scan")}),50))}function Re(a,b){var c=a.kb;c=!(c&&c.includes(b));let{asap:d,isIntersecting:e}=a.aa.get(b)||{asap:!1,isIntersecting:!1},f=a.B.getVisibilityState();c&&(d||e)&&("visible"==f||"hidden"==f||"prerender"==f&&b.prerenderAllowed())&&(a.unschedule(b),a=a.B.win,(d||0>=b.getBuildPriority()?a.setTimeout:a.requestIdleCallback||a.setTimeout)((()=>b.mountInternal())))}class We{constructor(a){this.B=a;let b=a.win;this.Ud=new b.IntersectionObserver((c=>Qe(this,c)),{root:I(b)?b.document:null,rootMargin:"250% 31.25%"});this.Da=new Map;this.aa=new Map;this.kb=[];this.Gf=!1;a.whenReady().then((()=>Se(this)));this.re=a.onVisibilityChanged((()=>Ue(this)))}dispose(){this.Ud.disconnect();this.aa.clear();this.re&&(this.re(),this.re=null)}scheduleAsap(a){this.aa.set(a,{asap:!0,isIntersecting:!1});Ve(this,a)}schedule(a){this.aa.has(a)||(a.deferredMount()?(this.aa.set(a,{asap:!1,isIntersecting:!1}),this.Ud.observe(a),0{a!==c&&c.contains(a)&&b.observe(a)}))):this.aa.set(a,{asap:!1,isIntersecting:!0}),Ve(this,a))}unschedule(a){this.aa.has(a)&&(this.aa.delete(a),this.Ud.unobserve(a),0{b.unobserve(a)})),this.kb&&(Ja(this.kb,a),Se(this)))}setContainer(a,b){if(!this.Da.has(a)){var c=new this.B.win.IntersectionObserver((d=>Qe(this,d)),{root:b||a,rootMargin:"250% 31.25%"});this.Da.set(a,c);this.aa.forEach((({asap:d},e)=>{!d&&e!==a&&a.contains(e)&&c.observe(e)}))}}removeContainer(a){let b=this.Da.get(a);b&&(b.disconnect(),this.Da.delete(a))}}function Xe(a){L(a,"scheduler",We);return O(a,"scheduler")}class Ye{constructor(){this.K=[]}peek(){let a=this.length;return a?this.K[a-1].item:null}enqueue(a,b){if(isNaN(b))throw Error("Priority must not be NaN.");let c=-1,d=0,e=this.length;for(;d<=e;){c=Math.floor((d+e)/2);if(c===this.length)break;if(this.K[c].priority=b)e=c-1;else break}this.K.splice(c,0,{item:a,priority:b})}forEach(a){let b=this.length;for(;b--;)a(this.K[b].item)}dequeue(){return this.length?this.K.pop().item:null}get length(){return this.K.length}}let Ze=/nochunking=1/.test(self.location.hash);let $e=r();function af(a){L(a,"chunk",bf);return O(a,"chunk")}function cf(a,b,c){if(Ze)$e.then(b);else{var d=af(a.documentElement||a);d.runForStartup(b);c&&d.runForStartup((()=>{d.ye=!0}))}}function df(a,b){Ze?$e.then(b):af(a).run(b,10)}function ef(a,b){if("run"!=a.state){a.state="run";try{a.od(b)}catch(c){throw a.zf(),c}}}class ff{constructor(a){this.state="not_run";this.od=a}Fh(){return this.od.displayName||this.od.name}zf(){}jf(){return!1}Vf(){return!1}}class gf extends ff{constructor(a,b){super(a);this.Pe=b}zf(){ie(self.document)}jf(){return this.Pe.ampdoc.isVisible()}Vf(){return this.Pe.Te}}function hf(a,b){let c=a.N.peek();for(;c&&"not_run"!==c.state;)a.N.dequeue(),c=a.N.peek();c&&b&&a.N.dequeue();return c}function jf(a){a.F.postMessage("amp-macro-task","*")}function kf(a){a.ye&&(a.sh?a.F.navigator.scheduling.isInputPending():5{a.Ae(null)}))}class bf{constructor(a){this.ampdoc=a;this.F=a.win;this.N=new Ye;this.Ae=this.Ze.bind(this);this.xb=0;this.sh=!(!this.F.navigator.scheduling||!this.F.navigator.scheduling.isInputPending);this.Ac=!1;this.ye=this.F.document.documentElement.hasAttribute("i-amphtml-no-boilerplate");this.F.addEventListener("message",(b=>{"amp-macro-task"==b.data&&this.Ze(null)}));this.Te=!1;Gc(a,"viewer").then((()=>{this.Te=!0}));a.onVisibilityChanged((()=>{a.isVisible()&&this.xa()}))}run(a,b){a=new ff(a);this.N.enqueue(a,b);this.xa()}runForStartup(a){a=new gf(a,this);this.N.enqueue(a,Number.POSITIVE_INFINITY);this.xa()}Ze(a){let b=hf(this,!0);if(!b)return this.Ac=!1,this.xb=0,!1;let c;try{c=Date.now(),ef(b,a)}finally{$e.then().then().then().then().then().then().then().then().then((()=>{this.Ac=!1;this.xb+=Date.now()-c;this.xa()}))}return!0}xa(){if(!this.Ac){var a=hf(this);a&&(a.jf()?(this.Ac=!0,kf(this)):a.Vf()&&this.F.requestIdleCallback?lf(this.F,this.Ae):jf(this))}}}function lf(a,b){function c(e){if(15>e.timeRemaining()){let f=2e3-(Date.now()-d);0>=f||e.didTimeout?b(e):a.requestIdleCallback(c,{timeout:f})}else b(e)}let d=Date.now();a.requestIdleCallback(c,{timeout:2e3})}class mf{static R1(){return!1}static deferredMount(){return!0}static prerenderAllowed(){return!1}static usesLoading(){return!1}static createLoaderLogoCallback(){return{}}static getBuildPriority(){return 0}static getPreconnects(){return null}static requiresShadowDom(){return!1}constructor(a){this.element=a;this.win=yb(a);this.defaultActionAlias_=this.actionMap_=null}signals(){return this.element.signals()}getDefaultActionAlias(){return this.defaultActionAlias_}getLayoutPriority(){return 0}updateLayoutPriority(a){this.element.getResources().updateLayoutPriority(this.element,a)}getLayout(){return this.element.getLayout()}getLayoutBox(){return this.element.getLayoutBox()}getLayoutSize(){return this.element.getLayoutSize()}getAmpDoc(){return this.element.getAmpDoc()}getVsync(){return M(this.win,"vsync")}getConsentPolicy(){let a=null;this.element.hasAttribute("data-block-on-consent")&&(a=this.element.getAttribute("data-block-on-consent")||"default");return a}isLayoutSupported(a){return"nodisplay"==a}isAlwaysFixed(){return!1}upgradeCallback(){return null}buildCallback(){}preconnectCallback(){}attachedCallback(){}detachedCallback(){}setAsContainer(a){this.element.setAsContainerInternal(a)}removeAsContainer(){this.element.removeAsContainerInternal()}isBuildRenderBlocking(){return!1}createPlaceholderCallback(){return null}renderOutsideViewport(){return"inabox"==ib(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(a,b){this.element.setReadyStateInternal(a,b)}mountCallback(){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return r()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(a){return Xd(a)}registerAction(a,b,c=2){nf(this);this.actionMap_[a]={handler:b,minTrust:c}}registerDefaultAction(a,b="activate",c=2){this.registerAction(b,a,c);this.defaultActionAlias_=b}executeAction(a){var{method:b}=a;"activate"===b&&(b=this.defaultActionAlias_||b);nf(this);let c=this.actionMap_[b];H(c,`Method not found: ${b} in ${this.element.tagName}`);b=c.handler;if(a.satisfiesTrust(c.minTrust))return b(a)}forwardEvents(a,b){let c=(B(a)?a:[a]).map((d=>Sd(b,d,(e=>{Ub(this.element,d,e.data||{})}))));return()=>c.forEach((d=>d()))}getPlaceholder(){return this.element.getPlaceholder()}togglePlaceholder(a){this.element.togglePlaceholder(a)}getFallback(){return this.element.getFallback()}toggleFallback(a){this.element.toggleFallback(a)}toggleLoading(a,b=!1){this.element.toggleLoading(a,b)}getOverflowElement(){return this.element.getOverflowElement()}renderStarted(){this.element.renderStarted()}getViewport(){return O(this.getAmpDoc(),"viewport")}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){O(this.getAmpDoc(),"mutator").collapseElement(this.element)}attemptCollapse(){return O(this.getAmpDoc(),"mutator").attemptCollapse(this.element)}forceChangeHeight(a){O(this.getAmpDoc(),"mutator").forceChangeSize(this.element,a,void 0)}attemptChangeHeight(a){return O(this.getAmpDoc(),"mutator").requestChangeSize(this.element,a,void 0)}attemptChangeSize(a,b,c){return O(this.getAmpDoc(),"mutator").requestChangeSize(this.element,a,b,void 0,c)}measureElement(a){return O(this.getAmpDoc(),"mutator").measureElement(a)}mutateElement(a,b){return this.measureMutateElement(null,a,b)}measureMutateElement(a,b,c){return O(this.getAmpDoc(),"mutator").measureMutateElement(c||this.element,a,b)}mutateElementSkipRemeasure(a){return O(this.getAmpDoc(),"mutator").mutateElement(this.element,a,!0)}collapsedCallback(){}expand(){O(this.getAmpDoc(),"mutator").expandElement(this.element)}mutatedAttributesCallback(){}onLayoutMeasure(){}user(){return F(this.element)}getApi(){return this}}function nf(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}class of extends mf{}let pf=Date.now();let qf={bubbles:!1},rf=()=>!0;let sf;let tf=[],uf=new Set;function vf(a){let b=wf(a);class c extends b{adoptedCallback(){Object.getPrototypeOf(this)!==d&&Object.setPrototypeOf(this,d)}}let d=c.prototype;return c}function wf(a){var b=xf;if(a.__AMP_BASE_CE_CLASS)return a.__AMP_BASE_CE_CLASS;let c=a.HTMLElement;class d extends c{constructor(){super();this.createdCallback()}createdCallback(){this.Ha=this.$c=!1;this.Qa=null;this.Pd=!1;this.fa=this.Ja=null;this.Xa="upgrading";this.everAttached=!1;this.o=this.B=null;this.ea="nodisplay";this.va=0;this.Fd=!1;this.warnOnMissingOverflow=!0;this.layoutScheduleTime=this.ha=this.sizerElement=void 0;var e=a.__AMP_EXTENDED_ELEMENTS&&a.__AMP_EXTENDED_ELEMENTS[this.localName];(this.L=e===of?null:e||null)||tf.push(this);this.A=null;this.nb=1;this.Tf=0;this.eb=this.Pa=void 0;this.C=new Vc;this.L&&this.C.signal("ready-upgrade");e=a;e=zc(e);this.Gh=(e=Fc(e,"performance")?Dc(e,"performance"):null)&&e.isPerformanceTrackingOn();this.gb=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)}get readyState(){return this.Xa}signals(){return this.C}getAmpDoc(){return this.B}getResources(){return this.o}isUpgraded(){return 2==this.nb}whenUpgraded(){return this.C.whenSignal("upgraded")}upgrade(e){this.eb||1!=this.nb||(this.L=e,this.C.signal("ready-upgrade"),this.everAttached&&this.Nc())}markUnresolved(){this.L||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Tf}ed(e,f){this.A=e;this.Tf=a.Date.now()-f;this.nb=2;this.setReadyStateInternal("building");this.classList.remove("amp-unresolved","i-amphtml-unresolved");this.ag();this.ma("amp:attached");this.R1()||this.getResources().upgraded(this);this.C.signal("upgraded")}ag(){"nodisplay"!=this.ea&&this.A&&!this.A.isLayoutSupported(this.ea)&&(H(this.getAttribute("layout"),"The element did not specify a layout attribute. Check //amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details."),H(!1,`Layout not supported: ${this.ea}`))}getBuildPriority(){return this.L?this.L.getBuildPriority(this):3}getLayoutPriority(){return this.A?this.A.getLayoutPriority():3}getDefaultActionAlias(){this.isUpgraded();return this.A.getDefaultActionAlias()}isBuilding(){return!!this.Qa}isBuilt(){return this.$c}whenBuilt(){return this.C.whenSignal("built")}buildInternal(){if(this.Qa)return this.Qa;this.setReadyStateInternal("building");let e=this.Ue();this.pd();return this.Qa=e.then((()=>{let f=this.qg(),g=f?null:this.rg();if(f||g)return Qc(this,"consentPolicyManager","amp-consent").then((h=>h?f?h.whenPolicyUnblock(f):h.whenPurposesUnblock(g):!0)).then((h=>{if(!h)throw Error("BLOCK_BY_CONSENT")}))})).then((()=>this.A.buildCallback())).then((()=>{this.$c=!0;this.classList.add("i-amphtml-built");this.classList.remove("i-amphtml-notbuilt","amp-notbuilt");this.C.signal("built");this.R1()?this.setReadyStateInternal("building"!=this.Xa?this.Xa:"mounting"):(this.setReadyStateInternal("loading"),this.preconnect(!1));this.Ha&&this.Se();this.Pa&&N(yb(this)).delay(this.jg.bind(this),1);if(!this.getPlaceholder()){let f=this.createPlaceholder();f&&this.appendChild(f)}}),(f=>{this.C.rejectSignal("built",f);this.R1()&&this.setReadyStateInternal("error",f);He(f)||V(f,this);throw f}))}build(){return this.Qa?this.Qa:this.C.whenSignal("ready-upgrade").then((()=>{this.R1()&&Xe(this.getAmpDoc()).scheduleAsap(this);return this.whenBuilt()}))}mountInternal(){if(this.Ja)return this.Ja;this.fa=this.fa||new AbortController;let e=this.fa.signal;return this.Ja=this.buildInternal().then((()=>{this.R1();if(!e.aborted){this.setReadyStateInternal("mounting"!=this.Xa?this.Xa:this.L.usesLoading(this)?"loading":"mounting");this.Pd=!0;var f=this.A.mountCallback(e);return f?f.then(rf):!1}})).then((f=>{this.fa=null;if(e.aborted)throw Ge();this.C.signal("mounted");this.L.usesLoading(this)&&!f||this.setReadyStateInternal("complete")})).catch((f=>{this.fa=null;f&&("string"==typeof f?f.startsWith("CANCELLED"):"string"==typeof f.message&&f.message.startsWith("CANCELLED"))?this.Ja=null:(this.C.rejectSignal("mounted",f),this.setReadyStateInternal("error",f));throw f}))}mount(){if(this.Ja)return this.Ja;this.fa=this.fa||new AbortController;let e=this.fa.signal;return this.C.whenSignal("ready-upgrade").then((()=>{if(!this.R1())return this.whenBuilt();if(e.aborted)throw Ge();Xe(this.getAmpDoc()).scheduleAsap(this);return this.whenMounted()}))}unmount(){this.Ha&&this.pause();this.R1()?(this.fa&&(this.fa.abort(),this.fa=null),Xe(this.getAmpDoc()).unschedule(this),this.Pd&&this.A.unmountCallback(),this.Pd=!1,this.Ja=null,this.ce(),this.Ha&&this.Nc(!0)):this.Rf()}whenMounted(){return this.C.whenSignal("mounted")}whenLoaded(){return this.C.whenSignal("load-end")}ensureLoaded(e){return this.mount().then((()=>{if(this.R1())return this.L.usesLoading(this)&&this.A.ensureLoaded(),this.whenLoaded();let f=this.Ga();return f.whenBuilt().then((()=>{if(4!=f.getState()&&((3!=f.getState()||f.isMeasureRequested())&&f.measure(),f.isDisplayed()))return this.getResources().scheduleLayoutOrPreload(f,!0,e,!0),this.whenLoaded()}))}))}setAsContainerInternal(e){Xe(this.getAmpDoc()).setContainer(this,e)}removeAsContainerInternal(){Xe(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(e,f){if(e!==this.Xa&&(this.Xa=e,this.R1()))switch(e){case"loading":this.C.signal("load-start");this.C.reset("unload");this.C.reset("load-end");this.classList.add("i-amphtml-layout");this.toggleLoading(!0);this.ma("amp:load-start");break;case"complete":this.C.signal("load-start");this.C.signal("load-end");this.C.reset("unload");this.classList.add("i-amphtml-layout");this.toggleLoading(!1);Ub(this,"load",null,qf);this.ma("amp:load-end");break;case"error":this.C.rejectSignal("load-end",f),this.toggleLoading(!1),Ub(this,"error",f,qf)}}preconnect(e){this.isUpgraded();e?this.A.preconnectCallback(e):cf(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.A.preconnectCallback(e)}))}R1(){return this.L?this.L.R1():!1}deferredMount(){return this.L?this.L.deferredMount(this):!1}isAlwaysFixed(){return this.A?this.A.isAlwaysFixed():!1}updateLayoutBox(e,f=!1){if(this.isBuilt())this.onMeasure(f)}onMeasure(){this.isBuilt();try{this.A.onLayoutMeasure()}catch(e){V(e,this)}}pd(){if(void 0===this.sizerElement&&("responsive"===this.ea||"intrinsic"===this.ea)){var e;this.sizerElement=this.querySelector("i-amphtml-sizer");null===(e=this.sizerElement)||void 0===e?void 0:e.setAttribute("slot","i-amphtml-svc")}return this.sizerElement||null}jh(e){if("responsive"===this.ea)S(e,"paddingTop","0");else if("intrinsic"===this.ea){let f=e.querySelector(".i-amphtml-intrinsic-sizer");f&&f.setAttribute("src","")}}Cg(){let e=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),f=this.ownerDocument.defaultView;e!=!!this.gb&&f&&(e?(this.gb=new xd(f,(()=>this.we())),this.we()):this.We())}We(){this.gb&&(this.gb.dispose(),this.gb=null)}we(){let e=this.gb;if(e){e.start();var f=this.getAttribute("media")||null,g=f?e.resolveMatchQuery(f):!0;this.classList.toggle("i-amphtml-hidden-by-media-query",!g);var h=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");h&&S(this,"width",e.resolveListQuery(h));if(h="responsive"===this.ea?this.getAttribute("heights"):null){let k=this.pd();k&&S(k,"paddingTop",e.resolveListQuery(h))}e.complete();this.Ga().requestMeasure()}}applySize(e,f,g){let h=this.pd();h&&(this.sizerElement=null,this.jh(h),this.Tg((()=>{h&&Nb(h)})));void 0!==e&&S(this,"height",e,"px");void 0!==f&&S(this,"width",f,"px");g&&(null!=g.top&&S(this,"marginTop",g.top,"px"),null!=g.right&&S(this,"marginRight",g.right,"px"),null!=g.bottom&&S(this,"marginBottom",g.bottom,"px"),null!=g.left&&S(this,"marginLeft",g.left,"px"));this.Eg()&&this.qh();Ub(this,"amp:size-changed")}connectedCallback(){void 0===sf&&(sf="content"in self.document.createElement("template"));sf||void 0!==this.eb||(this.eb=!!Cb(this,"template"));if(!this.eb&&!this.Ha&&Qb(this)){this.Ha=!0;this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt");if(!this.B){var e=yb(this);this.B=e=Sc(e).getAmpDoc(this);b(e,this,this.L)}this.o||(this.o=O(this.B,"resources"));this.getResources().add(this);if(this.everAttached){let m=this.reconstructWhenReparented();m&&this.ce();this.isUpgraded()&&(m&&!this.R1()&&this.getResources().upgraded(this),this.Se(),this.ma("amp:attached"));this.L&&this.R1()&&this.Nc()}else{this.everAttached=!0;try{{let m=this.getAttribute("i-amphtml-layout");if(m){let n=qd(m);if("responsive"!=n&&"intrinsic"!=n||!this.firstElementChild)"nodisplay"==n&&bd(this,!1);else{var f;this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0;null===(f=this.sizerElement)||void 0===f?void 0:f.setAttribute("slot","i-amphtml-svc")}var g=n}else{var{height:h,layout:k,width:l}=Hd(this);this.classList.add("i-amphtml-layout-"+k);rd(k)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==k)bd(this,!1);else if("fixed"==k)ad(this,{width:l,height:h});else if("fixed-height"==k)S(this,"height",h);else if("responsive"==k){let n=this.ownerDocument.createElement("i-amphtml-sizer");n.setAttribute("slot","i-amphtml-svc");ad(n,{paddingTop:ud(h)/ud(l)*100+"%"});this.insertBefore(n,this.firstChild);this.sizerElement=n}else if("intrinsic"==k){let n=Cd(this)(Ed);n.firstElementChild.setAttribute("src",`data:image/svg+xml;charset=utf-8,`);this.insertBefore(n,this.firstChild);this.sizerElement=n}else"fill"!=k&&"container"!=k&&("flex-item"==k?(l&&S(this,"width",l),h&&S(this,"height",h)):"fluid"==k&&(this.classList.add("i-amphtml-layout-awaiting-size"),l&&S(this,"width",l),S(this,"height",0)));this.setAttribute("i-amphtml-layout",k);g=k}}this.ea=g;this.Cg()}catch(m){V(m,this)}this.L?this.Nc():(uf.has("*")||uf.has(this.tagName.toLowerCase()))&&this.markUnresolved();this.isUpgraded()||this.ma("amp:stubbed")}this.toggleLoading(!0)}}Eg(){return this.classList.contains("i-amphtml-layout-awaiting-size")}qh(){this.classList.remove("i-amphtml-layout-awaiting-size")}Nc(e){if(!this.R1())this.Qf();else if(!this.Ja)if(Xe(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Qa)this.setReadyStateInternal(this.L&&this.L.usesLoading(this)?"loading":"mounting");else if(this.setReadyStateInternal("building"),!e){let f=this.L.getPreconnects(this);if(f&&0{let h=g.win;if(h){var k=M(h,"preconnect");f.forEach((l=>k.url(g,l,!1)))}}))}}}Qf(){if(!this.eb&&1==this.nb){var e=new this.L(this);this.nb=4;var f=a.Date.now(),g=e.upgradeCallback();g?"function"==typeof g.then?g.then((h=>{this.ed(h||e,f)})).catch((h=>{this.nb=3;w(h)})):this.ed(g,f):this.ed(e,f)}}disconnectedCallback(){this.disconnect(!1)}Se(){this.$c&&this.A.attachedCallback()}disconnect(e){this.eb||!this.Ha||!e&&Qb(this)||(e&&this.classList.remove("i-amphtml-element"),this.Ha=!1,this.getResources().remove(this),this.A&&this.A.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.We())}ma(){}prerenderAllowed(){return this.hasAttribute("noprerender")?!1:this.L?this.L.prerenderAllowed(this):!1}isBuildRenderBlocking(){return this.A?this.A.isBuildRenderBlocking():!1}createPlaceholder(){return this.A?this.A.createPlaceholderCallback():null}createLoaderLogo(){return this.L?this.L.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return this.A?this.A.renderOutsideViewport():!1}idleRenderOutsideViewport(){return this.A?this.A.idleRenderOutsideViewport():!1}getLayoutBox(){return this.Ga().getLayoutBox()}getLayoutSize(){return this.Ga().getLayoutSize()}getOwner(){return this.Ga().getOwner()}getIntersectionChangeEntry(){var e=this.A?this.A.getIntersectionElementLayoutBox():this.getLayoutBox(),f=this.getOwner();let g=O(this.getAmpDoc(),"viewport").getRect(),h=f&&f.getLayoutBox();f=Vb(e,h,g)||J(0,0,0,0);var k=f.width*f.height,l=e.width*e.height;k=0===l?0:k/l;if(l=g)f=Xb(f,-g.left,-g.top),e=Xb(e,-g.left,-g.top),l=Xb(l,-g.left,-g.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-pf,rootBounds:l,boundingClientRect:e,intersectionRect:f,intersectionRatio:k}}Ga(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.Ga().getId()}isRelayoutNeeded(){return this.A?this.A.isRelayoutNeeded():!1}getImpl(e=!0){return(e?this.build():this.Ue()).then((()=>this.A))}Ue(){return this.C.whenSignal("ready-upgrade").then((()=>{this.Qf();return this.whenUpgraded()}))}getApi(){return this.getImpl().then((e=>e.getApi()))}getLayout(){return this.ea}layoutCallback(e){this.isBuilt();if(e.aborted)return Promise.reject(Ge());this.ma("amp:load-start");let f=0==this.va;this.C.reset("unload");f&&this.C.signal("load-start");this.toggleLoading(!0);let g=ea((()=>this.A.layoutCallback()));this.preconnect(!0);this.classList.add("i-amphtml-layout");return g.then((()=>{if(e.aborted)throw Ge();f&&this.C.signal("load-end");this.setReadyStateInternal("complete");this.va++;this.toggleLoading(!1);this.Fd||(this.A.firstLayoutCompleted(),this.Fd=!0,this.ma("amp:load-end"))}),(h=>{if(e.aborted)throw Ge();f&&this.C.rejectSignal("load-end",h);this.setReadyStateInternal("error",h);this.va++;this.toggleLoading(!1);throw h}))}pause(){this.isBuilt()&&(this.A.pauseCallback(),!this.R1()&&this.A.unlayoutOnPause()&&this.Rf())}resume(){this.isBuilt()&&this.A.resumeCallback()}unlayoutCallback(){if(!this.isBuilt())return!1;this.C.signal("unload");let e=this.A.unlayoutCallback();e&&this.ce();this.ma("amp:unload");return e}Rf(){this.Ga().unlayout();this.Ha&&this.o&&this.o.schedulePass()}ce(){this.va=0;this.Fd=!1;this.C.reset("mounted");this.C.reset("render-start");this.C.reset("load-start");this.C.reset("load-end");this.C.reset("ini-load")}reconstructWhenReparented(){return this.A?this.A.reconstructWhenReparented():!1}collapse(){this.A&&this.A.collapse()}collapsedCallback(e){this.A&&this.A.collapsedCallback(e)}expand(){this.A&&this.A.expand()}mutatedAttributesCallback(e){this.A&&this.A.mutatedAttributesCallback(e)}enqueAction(e){this.isBuilt()?this.$e(e,!1):(void 0===this.Pa&&(this.Pa=[]),this.Pa.push(e),this.build())}jg(){if(this.Pa){var e=this.Pa;this.Pa=null;e.forEach((f=>{this.$e(f,!0)}))}}$e(e,f){try{this.A.executeAction(e,f)}catch(g){w("Action execution failed:",g,e.node.tagName,e.method)}}qg(){var e=this.getAttribute("data-block-on-consent");if(null===e)if((e=this.getAmpDoc().getMetaByName("amp-consent-blocking"))?(e=e.toUpperCase().replace(/\s+/g,""),e=e.split(",").includes(this.tagName)):e=!1,e)e="default",this.setAttribute("data-block-on-consent",e);else return null;return""==e||"default"==e?this.A.getConsentPolicy():e}rg(){var e;let f=this.getAttribute("data-block-on-consent-purposes")||null;return null===f||void 0===f?void 0:null===(e=f.replace(/\s+/g,""))||void 0===e?void 0:e.split(",")}getPlaceholder(){return Db(this,(e=>e.hasAttribute("placeholder")&&!("placeholder"in e)))}togglePlaceholder(e){if(e)(e=this.getPlaceholder())&&e.classList.remove("amp-hidden");else{/^[\w-]+$/.test("placeholder");e=this.querySelectorAll("> [placeholder]".replace(/^|,/g,"$&:scope "));for(let f=0;f{let h=O(this.getAmpDoc(),"mutator");h.forceChangeSize(this,f,g);h.mutateElement(this,(()=>{this.overflowCallback(!1,f,g)}))}:null)}Tg(e){this.B?O(this.getAmpDoc(),"mutator").mutateElement(this,e,!1):e()}}a.__AMP_BASE_CE_CLASS=d;return a.__AMP_BASE_CE_CLASS}function yf(a){uf.add(a||"*");for(let b of tf)null!=a&&b.tagName.toLowerCase()!==a||b.markUnresolved()}let zf=new WeakMap;function Af(a){a.__AMP_EXTENDED_ELEMENTS||(a.__AMP_EXTENDED_ELEMENTS={});return a.__AMP_EXTENDED_ELEMENTS}function Bf(a,b,c){let d=Cf(a,c);d?d.then((()=>Df(a,b,c))):Df(a,b,c)}function Df(a,b,c){let d=Af(a);if(!d[b])Ef(a,b,c);else if(d[b]!=c){H(d[b]==of,"%s is already registered. The script tag for %s is likely included twice in the page.",b,b);d[b]=c;for(let f=0;f{a.declareExtension(b,c);d.addEventListener("error",(()=>yf(b)));Gf(a.win,b)}));a.isBodyAvailable()&&a.setExtensionsKnown()}function Gf(a,b){Af(a)[b]||Ef(a,b,of)}function Ef(a,b,c){Af(a)[b]=c;let d=vf(a);a.customElements.define(b,d)}function xf(a,b,c){zf.has(a)||(zf.set(a,!0),Ff(a));b=b.localName;c||a.declaresExtension(b)||Tc(a.win).installExtensionForDoc(a,b,"0.1")}let Hf="alt aria-describedby aria-label aria-labelledby crossorigin referrerpolicy title importance sizes srcset src".split(" ");function If(a){!a.Yb&&a.G.classList.contains("i-amphtml-ghost")&&(a.G.classList.remove("i-amphtml-ghost"),a.toggleFallback(!1))}function Jf(a){a.Yb&&(a.G.classList.add("i-amphtml-ghost"),a.toggleFallback(!0),a.togglePlaceholder(!1),a.Yb=!1)}class Kf extends mf{static R1(){return!1}static prerenderAllowed(){return!0}static usesLoading(){return!0}static getPreconnects(a){let b=a.getAttribute("src");if(b)return[b];if(a=a.getAttribute("srcset"))if(a=/\S+/.exec(a))return[a[0]];return null}constructor(a){super(a);this.Yb=!0;this.Lc=this.Mc=this.G=null;this.Lf=0}mutatedAttributesCallback(a){if(this.G){let b=Hf.filter((c=>void 0!==a[c]));a.src&&!a.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),b.push("srcset"),this.user().warn("amp-img","Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element));wd(b,this.element,this.G,!0);this.propagateDataset(this.G);Kf.R1()&&!this.G.complete&&this.setReadyState("loading")}}preconnectCallback(a){var b=this.element.getAttribute("src");b?M(this.win,"preconnect").url(this.getAmpDoc(),b,a):(b=this.element.getAttribute("srcset"))&&(b=/\S+/.exec(b))&&M(this.win,"preconnect").url(this.getAmpDoc(),b[0],a)}isLayoutSupported(a){return rd(a)}Db(){if(this.G)return this.G;this.Yb=!this.element.hasAttribute("fallback");let a=this.element.hasAttribute("i-amphtml-ssr");a&&(this.G=zb(this.element,"> img:not([placeholder])"));this.G=this.G||new Image;this.G.setAttribute("decoding","async");this.element.id&&this.G.setAttribute("amp-img-id",this.element.id);"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error("amp-img","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying element."));if(this.G&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.G.hasAttribute("sizes")){var b=this.element.getAttribute("srcset");if(b&&!/[0-9]+x(?:,|$)/.test(b)&&(({width:b}=this.element.getLayoutSize()),this.G.hasAttribute("sizes")?b>this.Lf:1)){var c=this.getViewport().getWidth(),d=`(max-width: ${c}px) ${b}px, `,e=b+"px";"fixed"!==this.getLayout()&&(e=Math.max(Math.round(100*b/c),100)+"vw");this.G.setAttribute("sizes",d+e);this.Lf=b}}wd(Hf,this.element,this.G);this.propagateDataset(this.G);vd(this.G,!0);b=this.element;c=this.G;b.hasAttribute("object-fit")&&S(c,"object-fit",b.getAttribute("object-fit"));b.hasAttribute("object-position")&&S(c,"object-position",b.getAttribute("object-position"));a||this.element.appendChild(this.G);return this.G}reconstructWhenReparented(){return!1}mountCallback(){let a=!!this.G,b=this.Db();a||(Sd(b,"load",(()=>{this.setReadyState("complete");this.firstLayoutCompleted();If(this)})),Sd(b,"error",(c=>{this.setReadyState("error",c);Jf(this)})));b.complete?(this.setReadyState("complete"),this.firstLayoutCompleted(),If(this)):this.setReadyState("loading")}unmountCallback(){let a=this.G;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Nb(a),this.G=null)}ensureLoaded(){this.G.loading="eager"}layoutCallback(){this.Db();let a=this.G;this.Mc=Sd(a,"load",(()=>If(this)));this.Lc=Sd(a,"error",(()=>Jf(this)));let{width:b}=this.element.getLayoutSize();return 0>=b?r():this.loadPromise(a)}unlayoutCallback(){if(!Kf.R1()){this.Lc&&(this.Lc(),this.Lc=null);this.Mc&&(this.Mc(),this.Mc=null);var a=this.G;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Nb(a),this.G=null);return!0}}firstLayoutCompleted(){let a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")?$c(a,{opacity:0}):this.togglePlaceholder(!1)}propagateDataset(a){for(let b in a.dataset)b in this.element.dataset||delete a.dataset[b];for(let b in this.element.dataset)b.startsWith("ampBind")&&"ampBind"!==b||a.dataset[b]!==this.element.dataset[b]&&(a.dataset[b]=this.element.dataset[b])}}function Lf(a){if(!a.hasAttribute("i-amphtml-ssr")&&"container"!=Gd(a)){var b=a.ownerDocument.createElement("div");vd(b);Gb(a).forEach((c=>{b.appendChild(c)}));a.appendChild(b)}}class Mf extends mf{static prerenderAllowed(){return!0}isLayoutSupported(a){return"container"==a||rd(a)}buildCallback(){Lf(this.element)}}function Nf(a,b){if("referrerPolicy"in Image.prototype)return Of(a,b,!0);let c=Pb(a.document);c.onload=()=>{Of(c.contentWindow,b)};a.document.body.appendChild(c);return c}function Of(a,b,c=!1){a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a}function Pf(a){H(/^(\/\/|\/\/)/i.test(a),'The src attribute must start with "//" or "//". Invalid value: '+a);return a}class Qf extends mf{constructor(a){super(a);this.ke=null}isLayoutSupported(){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true");(this.uc=this.element.getAttribute("referrerpolicy"))&&H("no-referrer"==this.uc,`amp-pixel: invalid "referrerpolicy" value "${this.uc}". Only "no-referrer" is supported`);this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.yh.bind(this))}yh(){if(this.ke)return G().error("amp-pixel","duplicate pixel"),this.ke;this.ke=N(this.win).promise(1).then((()=>{let a=this.element.getAttribute("src");if(a)return Ec(this.element,"url-replace").expandUrlAsync(Pf(a)).then((b=>{if(this.win){var c=this.win,d=this.uc;d&&"no-referrer"!==d&&F().error("pixel","Unsupported referrerPolicy: %s",d);return"no-referrer"===d?Nf(c,b):Of(c,b)}}))}))}}class Rf{constructor(a,b,c){this.R=N(a);this.zg=b;this.ig=c||0;this.sa=-1;this.Td=0;this.Ya=!1;this.dg=()=>{this.sc()}}isPending(){return-1!=this.sa}schedule(a){let b=a||this.ig;this.Ya&&10>b&&(b=10);let c=Date.now()+b;return!this.isPending()||-10>c-this.Td?(this.cancel(),this.Td=c,this.sa=this.R.delay(this.dg,b),!0):!1}sc(){this.sa=-1;this.Td=0;this.Ya=!0;this.zg();this.Ya=!1}cancel(){this.isPending()&&(this.R.cancel(this.sa),this.sa=-1)}}function Sf(a,b){let c=b.documentElement;return a.some((d=>c.hasAttribute(d)))}let Tf="__AMP_ACTION_MAP__"+Math.random(),Uf={form:["submit","clear"]},Vf=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Wf={button:!0,checkbox:!0,link:!0,listbox:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,option:!0,radio:!0,scrollbar:!0,slider:!0,spinbutton:!0,"switch":!0,tab:!0,treeitem:!0};class Xf{constructor(a,b,c,d,e,f,g,h="?",k=null,l=Math.random()){this.node=a;this.method=b;this.args=c;this.source=d;this.caller=e;this.event=f;this.trust=g;this.actionEventType=h;this.tagOrTarget=k||a.tagName;this.sequenceId=l}satisfiesTrust(a){if(!Na(this.trust))return G().error("Action",`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust({name:d.name,size:d.size,type:d.type}))));if(0{let m=l.method,n=l.str,p=l.target,t=ag(l.args,d,f),u=()=>{var q=eg(a,p);if(q)return q=new Xf(q,m,t,b,g.node,d,e,c,q.tagName||p,h),fg(a,q);gg(`Target "${p}" not found for action [${n}].`)};k=k?k.then(u):u()}));return 1<=g.actionInfos.length}function fg(a,b){let c=b.method,d=b.tagOrTarget;if(a.da&&!hg(b,a.da))return gg(`"${d}.${c}" is not allowlisted ${JSON.stringify(a.da)}.`),null;let e=a.rd[d];if(e)return e(b);let f=b.node,g=a.bf[c];if(g&&b.satisfiesTrust(g.minTrust))return g.handler(b);let h=f.tagName.toLowerCase();if("amp-"===h.substring(0,4))return f.enqueAction?f.enqueAction(b):gg(`Unrecognized AMP element "${h}".`,f),null;let k=Uf[h];if("amp-"===(f.getAttribute("id")||"").substring(0,4)||k&&-1{b.defaultPrevented||this.trigger(b.target,a,b,3)})),this.V.addEventListener("keydown",(b=>{var c=b.key;let d=b.target;if("Enter"==c||" "==c){let e=d.getAttribute("role");if(c=e)c=e.toLowerCase(),c=ja.call(Wf,c);let f=c;!b.defaultPrevented&&f&&this.trigger(d,a,b,3)&&b.preventDefault()}}));else if("submit"==a)this.V.addEventListener(a,(b=>{this.trigger(b.target,a,b,3)}));else if("change"==a)this.V.addEventListener(a,(b=>{let c=b.target;Yf(b);this.trigger(c,a,b,3)}));else if("input-debounced"==a){let b=ab(this.ampdoc.win,(c=>{this.trigger(c.target,a,c,3)}),300);this.V.addEventListener("input",(c=>{let d=new kg(c);Yf(d);b(d)}))}else if("input-throttled"==a){let b=$a(this.ampdoc.win,(c=>{this.trigger(c.target,a,c,3)}),100);this.V.addEventListener("input",(c=>{c=new kg(c);Yf(c);b(c)}))}else"valid"!=a&&"invalid"!=a||this.V.addEventListener(a,(b=>{this.trigger(b.target,a,b,3)}))}addGlobalTarget(a,b){this.rd[a]=b}addGlobalMethodHandler(a,b,c=2){this.bf[a]={handler:b,minTrust:c}}trigger(a,b,c,d,e){return Zf(this,a,b,c,d,e)}execute(a,b,c,d,e,f,g){a=new Xf(a,b,c,d,e,f,g);fg(this,a)}installActionHandler(a,b){"amp-"===(a.getAttribute("id")||"").substring(0,4)||a.tagName.toLowerCase();if(a.__AMP_ACTION_HANDLER__)G().error("Action",`Action handler already installed for ${a}`);else{a.__AMP_ACTION_HANDLER__=b;var c=a.__AMP_ACTION_QUEUE__;B(c)&&N(yb(a)).delay((()=>{c.forEach((d=>{try{b(d)}catch(e){G().error("Action","Action execution failed:",d,e)}}));a.__AMP_ACTION_QUEUE__.length=0}),1)}}hasAction(a,b,c){return!!$f(a,b,c)}hasResolvableAction(a,b,c){let d=$f(a,b,c);return d?d.actionInfos.some((e=>!!eg(this,e.target))):!1}hasResolvableActionForTarget(a,b,c,d){return(a=$f(a,b,d))?a.actionInfos.some((e=>eg(this,e.target)==c)):!1}setAllowlist(a){a.every((b=>b.tagOrTarget&&b.method));this.da=a}addToAllowlist(a,b,c){c&&c.includes("email")!==this.kf||(this.da||(this.da=[]),B(b)||(b=[b]),b.forEach((d=>{this.da.some((e=>e.tagOrTarget==a&&e.method==d))||this.da.push({tagOrTarget:a,method:d})})))}setActions(a,b){a.setAttribute("on",b);delete a[Tf]}}function hg(a,b){let{method:c}=a;let d=a.node;a=a.tagOrTarget;"activate"===c&&"function"==typeof d.getDefaultActionAlias&&(c=d.getDefaultActionAlias());let e=c.toLowerCase(),f=a.toLowerCase();return b.some((g=>g.tagOrTarget.toLowerCase()!==f&&"*"!==g.tagOrTarget||g.method.toLowerCase()!==e?!1:!0))}class kg{constructor(a){this.detail=null;let b=this||x();for(let c in a)b[c]="function"===typeof a[c]?lg:a[c]}}function lg(){}function ig(a,b){let c=mg.bind(null,a,b),d=ng.bind(null,a,b);b=null;let e=new og(a);let f,g;do{if(f=e.next(),f.type!=pg&&(f.type!=X||";"!=f.value))if(f.type==qg||f.type==rg){let n=f.value;d(e.next(),[X],":");let p=[];do{let t=d(e.next(),[qg,rg]).value;let u="activate";var h=null;g=e.peek();if(g.type==X&&"."==g.value&&(e.next(),u=d(e.next(),[qg,rg]).value||u,g=e.peek(),g.type==X&&"("==g.value)){e.next();let q;h=e;var k=d,l=c,m=h.peek();let A=null;if(m.type==sg)A=x(),({value:l}=h.next()),A.__AMP_OBJECT_STRING__=l,k(h.next(),[X],")");else do{q=h.next();m=q.type;let P=q.value;if(m!=X||","!=P&&")"!=P)if(m==qg||m==rg){k(h.next(),[X],"=");q=k(h.next(!0),[qg,rg]);let lb=[q];if(q.type==rg)for(m=h.peek();m.type==X&&"."==m.value;m=h.peek())h.next(),q=k(h.next(!1),[rg]),lb.push(q);m=tg(lb);A||(A=x());A[P]=m;m=h.peek();l(m.type==X&&(","==m.value||")"==m.value),"Expected either [,] or [)]")}else l(!1,`; unexpected token [${q.value||""}]`)}while(q.type!=X||")"!=q.value);h=A}p.push({event:n,target:t,method:u,args:h,str:a});g=e.peek()}while(g.type==X&&","==g.value&&e.next());b||(b=x());b[n]=p}else c(!1,`; unexpected token [${f.value||""}]`)}while(f.type!=pg);return b}function tg(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map((b=>b.value)).join(".")}}function ag(a,b,c){if(!a)return a;let d=c||y({});b&&(b=b.detail)&&(d.event=b);let e=x();Object.keys(a).forEach((f=>{var g=a[f];if("object"==typeof g&&g.expression){g=g.expression;if("."==g)var h=d;else{g=g.split(".");var k=d;for(h of g)if(h&&k&&void 0!==k[h]&&"object"==typeof k&&ja.call(k,h))k=k[h];else{k=void 0;break}h=k}let l=h;g=void 0===l?null:l}e[f]=d[g]?d[g]:g}));return e}function mg(a,b,c,d){return H(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}function ng(a,b,c,d,e){void 0!==e?mg(a,b,d.includes(c.type)&&c.value==e,`; expected [${e}]`):mg(a,b,d.includes(c.type));return c}var pg=1,X=2,qg=3,rg=4,sg=5;function ug(a,b){let c=a.xd+1;if(c>=a.O.length)return{type:pg,index:a.xd};var d=a.O.charAt(c);if(-1!=" \t\n\r\f\v \u2028\u2029".indexOf(d)){for(c++;c=a.O.length)return{type:pg,index:c};d=a.O.charAt(c)}if(b&&(vg(d)||"."==d&&c+1=e){f=d;break}}if(-1==f)return{type:0,index:c};a=a.O.substring(c,f+1);c=f;return{type:sg,value:a,index:c}}for(d=c+1;d=a}function wg(a){return!!a&&"function"==typeof a.getFormData}let xg=["GET","POST"],yg=[B,la];function zg(a,b){let c=z({},b);if(wg(b.body)){let d=b.body;c.headers["Content-Type"]="multipart/form-data;charset=utf-8";b=d.entries();let e=[];for(let f=b.next();!f.done;f=b.next())e.push(f.value);c.body=e}return{input:a,init:c}}function Ag(a,b){Va(la(a),"Object expected: %s",a);if("document"!=b)return new Response(a.body,a.init);let c=x(),d={status:200,statusText:"OK",getResponseHeader(e){return c[String(e).toLowerCase()]||null}};if(a.init){let e=a.init;B(e.headers)&&e.headers.forEach((f=>{let g=f[1];c[String(f[0]).toLowerCase()]=String(g)}));e.status&&(d.status=parseInt(e.status,10));e.statusText&&(d.statusText=String(e.statusText))}return new Response(a.body?String(a.body):"",d)}function Bg(a,b,c,d){if(!b)return r();let e=d.prerenderSafe?r():b.whenFirstVisible(),f=O(b,"viewer"),g=U(c),h=f.hasCapability("xhrInterceptor"),k=d.bypassInterceptorForDev&&!1;return g||!h||k||!b.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?e:e.then((()=>f.isTrustedViewer())).then((l=>{if(l||Kd(a,"untrusted-xhr-interception")){var m=y({originalRequest:zg(c,d)});return f.sendMessageAwaitResponse("xhr",m).then((n=>Ag(n,d.responseType)))}}))}function Cg(a,b,c){!1!==c.ampCors&&(b=Ae(a,b));return b}function Dg(a,b){a=a||{};var c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),xg.includes(c));a.method=c;a.headers=a.headers||y({});b&&(a.headers.Accept=b);return a}function Eg(a,b,c){c=c||{};let d=a.origin||T(a.location.href).origin;a=T(b).origin;d==a&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c}function Fg(a){let b=Dg(a,"application/json");"POST"!=b.method||wg(b.body)||(yg.some((c=>c(b.body))),b.headers["Content-Type"]=b.headers["Content-Type"]||"text/plain;charset=utf-8",b.body="application/x-www-form-urlencoded"===b.headers["Content-Type"]?re(b.body):JSON.stringify(b.body));return b}function Gg(a){return new Promise((b=>{if(a.ok)return b(a);b=a.status;let c=F().createError(`HTTP error ${b}`);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c}))}function Hg(a,b,c={}){b=Cg(a.win,b,c);c=Eg(a.win,b,c);return a.og(b,c).then((d=>d),(d=>{let e=T(b).origin;throw F().createExpectedError("XHR",`Failed fetching (${e}/...):`,d&&d.message)}))}class Ig{constructor(a){this.win=a;a=Sc(a);this.Zf=a.isSingleDoc()?a.getSingleDoc():null}og(a,b){return Bg(this.win,this.Zf,a,b).then((c=>{if(c)return c;wg(b.body)&&(b.body=b.body.getFormData());return this.win.fetch.apply(null,arguments)}))}fetchJson(a,b){return this.fetch(a,Fg(b))}fetchText(a,b){return this.fetch(a,Dg(b,"text/plain"))}xssiJson(a,b){return b?a.text().then((c=>c.startsWith(b)?JSON.parse(c.slice(b.length)):JSON.parse(c))):a.json()}fetch(a,b){b=Dg(b);return Hg(this,a,b).then((c=>Gg(c)))}sendSignal(a,b){return Hg(this,a,b).then((c=>Gg(c)))}getCorsUrl(a,b){return Ae(a,b)}}function Jg(a,b,c){let d=ze(b,ye(a.win.location));return ue(d)+c}class Kg extends Ig{constructor(a){super(a);this.Bb=x()}fetch(a,b){let c=!b||!b.method||"GET"===b.method,d=Jg(this,a,b&&b.headers&&b.headers.Accept||""),e=!!this.Bb[d];if(c&&e)return this.Bb[d].then((g=>g.clone()));let f=super.fetch(a,b);c&&(this.Bb[d]=f.then((g=>{delete this.Bb[d];return g.clone()}),(g=>{delete this.Bb[d];throw g})));return f}}let Lg={"+":"-","/":"_","=":"."};function Mg(a){a=Xa(a);return btoa(a).replace(/[+/=]/g,(b=>Lg[b]))}function Ng(a,b,c){b=b+";"+c;return M(a.B.win,"crypto").sha384Base64(b).then((d=>"amp-"+d))}class Og{constructor(a){this.B=a;this.h=O(this.B,"viewer");this.be=null;this.R=N(this.B.win)}isSupported(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()}getScopedCid(a){if(!this.h.isCctEmbedded())return Promise.resolve(null);this.be||(this.be=this.Ab("//web.archive.org/web/20211128020713///ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.be.then((b=>b?Ng(this,b,a):null))}Ab(a,b=!0){let c=y({publisherOrigin:ye(this.B.win.location)});return this.R.timeoutPromise(3e4,M(this.B.win,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:c}),"fetchCidTimeout").then((d=>d.json().then((e=>{if(e.optOut)return null;let f=e.publisherClientId;return!f&&b&&e.alternateUrl?this.Ab(`${e.alternateUrl}?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc`,!1):f})))).catch((d=>{d&&d.response?d.response.json().then((e=>{G().error("CacheCidApi",JSON.stringify(e))})):d&&"fetchCidTimeout"==d.message?G().expectedError("CacheCidApi",d):G().error("CacheCidApi",d);return null}))}}function Pg(a,b){try{var c=a.document.cookie}catch(f){c=""}let d=c;if(!d)return null;let e=d.split(";");for(a=0;a{c=Pg(this.F,"AMP_TOKEN");return"$RETRIEVING"!==c})).then((()=>{if("$OPT_OUT"===c)return"$OPT_OUT";if(("$NOT_FOUND"!==c||!U(this.F.document.referrer))&&c&&"$"===c[0])return null;c&&(!c||"$"!==c[0])||Sg(this,"$RETRIEVING",3e4);return this.Ab("//web.archive.org/web/20211128020713///ampcid.google.com/v1/publisher:getClientId?key="+a,b,c).then((d=>{let e=this.ef(d);return!e&&d.alternateUrl?this.Ab(`${d.alternateUrl}?key=${a}`,b,c).then(this.ef.bind(this)):e})).catch((d=>{Sg(this,"$ERROR",3e4);d&&d.response?d.response.json().then((e=>{G().error("GoogleCidApi",JSON.stringify(e))})):G().error("GoogleCidApi",d);return null}))}))}Ab(a,b,c){b=y({originScope:b,canonicalOrigin:this.bd});c&&(b.securityToken=c);return this.R.timeoutPromise(3e4,M(this.F,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:b}).then((d=>d.json())))}ef(a){if(a.optOut)return Sg(this,"$OPT_OUT",31536e6),"$OPT_OUT";if(a.clientId)return Sg(this,a.securityToken,31536e6),a.clientId;if(a.alternateUrl)return null;Sg(this,"$NOT_FOUND",36e5);return null}}class Ug{constructor(a){this.B=a;this.h=O(this.B,"viewer");({canonicalUrl:a}=Uc(this.B));this.bd=a?T(a).origin:null}isSupported(){return this.h.hasCapability("cid")?this.h.isTrustedViewer():Promise.resolve(!1)}getScopedCid(a,b){b=y({scope:b,clientIdApi:!!a,canonicalOrigin:this.bd});a&&(b.apiKey=a);return this.h.sendMessageAwaitResponse("cid",b)}}let Vg=/^[a-zA-Z0-9-_.]+$/,Wg={googleanalytics:"AMP_ECID_GOOGLE"},Xg={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Yg(a,b,c){let d=b.scope,e=T(a.ampdoc.win.location.href);if(!U(e)){let f=Zg(a,d);return f?a.gg.getScopedCid(f,d).then((g=>"$OPT_OUT"==g?null:g?($g(a.ampdoc.win,b.cookieName||d,g),g):ah(a,b,c))):ah(a,b,c)}return a.Wf.isSupported().then((f=>{if(f){let g=Zg(a,d);return a.Wf.getScopedCid(g,d)}return a.Le.isSupported()&&Zg(a,d)?a.Le.getScopedCid(d).then((g=>g?g:bh(a,c,d,e))):bh(a,c,d,e)}))}function Zg(a,b){a.Tc||(a.Tc=ch(a));return a.Tc[b]}function bh(a,b,c,d){return dh(a,b).then((e=>{var f=M(a.ampdoc.win,"crypto"),g=f.sha384Base64;H(U(d),"Expected proxy origin %s",d.origin);var h=ye(d);return g.call(f,e+h+c)}))}function ch(a){let b={},c=a.ampdoc.getMetaByName("amp-google-client-id-api");c&&c.split(",").forEach((d=>{d=d.trim();if(0this.ampdoc.whenFirstVisible())).then((()=>fh(this.ampdoc))).then((d=>{if(d)return"";let e=Yg(this,a,c||b);return N(this.ampdoc.win).timeoutPromise(1e4,e,`Getting cid for "${a.scope}" timed out`).catch((f=>{w(f)}))}))}optOut(){return gh(this.ampdoc)}}function gh(a){O(a,"viewer").sendMessage("cidOptOut",{});return Gc(a,"storage").then((b=>b.set("amp-cid-optout",!0)))}function fh(a){return Gc(a,"storage").then((b=>b.get("amp-cid-optout").then((c=>!!c)))).catch((()=>!1))}function $g(a,b,c){let d=Date.now()+31536e6;Qg(a,b,c,d)}function hh(a,b,c){Gc(a,"storage").then((d=>{d.isViewerStorage()||d.setNonBoolean("amp-cid:"+b,c)}))}function ih(a,b){let c=a.ampdoc,d=a.isBackupCidExpOn,e=b.disableBackup;a=b.scope;let f=b.cookieName||a,g=Pg(c.win,f);return g?Promise.resolve(g):d&&!e?Gc(c,"storage").then((h=>h.get("amp-cid:"+f,31536e6))).then((h=>h&&"string"==typeof h?h:null)):Promise.resolve(null)}function ah(a,b,c){let d=a.ampdoc,e=a.isBackupCidExpOn,f=d.win,g=b.disableBackup,h=b.scope,k=b.cookieName||h;return ih(a,b).then((l=>{if(!l&&!b.createCookieIfNotPresent)return Promise.resolve(null);if(l)return/^amp-/.test(l)&&($g(f,k,l),e&&!g&&hh(d,k,l)),Promise.resolve(l);if(a.md[h])return a.md[h];let m=jh(f).then((n=>"amp-"+n));Promise.all([m,c]).then((n=>{let p=n[0];Pg(f,k)||($g(f,k,p),e&&!g&&hh(d,k,p))}));return a.md[h]=m}))}function dh(a,b){if(a.Uc)return a.Uc;let c=a.ampdoc.win;return a.Uc=kh(a.ampdoc).then((d=>{let f,e=!1;d&&!lh(d)?(f=Promise.resolve(d.cid),mh(d)&&(e=!0)):(f=M(c,"crypto").sha384Base64(nh(c)),e=!0);e&&f.then((g=>{oh(a.ampdoc,b,g)}));return f}))}function oh(a,b,c){let d=a.win;I(d)?ph(a,qh(c)):b.then((()=>{try{d.localStorage.setItem("amp-cid",qh(c))}catch(e){}}))}function ph(a,b){let c=O(a,"viewer");return c.isTrustedViewer().then((d=>{if(d)return G().expectedError("CID","Viewer does not provide cap=cid"),c.sendMessageAwaitResponse("cid",b).then((e=>{var f;if(f=e){try{var g=JSON.parse(e)}catch(h){void 0,g=null}f=!g}return f?(G().expectedError("CID","invalid cid format"),JSON.stringify(y({time:Date.now(),cid:e}))):e}))}))}function qh(a){return JSON.stringify(y({time:Date.now(),cid:a}))}function kh(a){let b=a.win;let c;try{c=b.localStorage.getItem("amp-cid")}catch(e){}let d=Promise.resolve(c);!c&&I(b)&&(d=ph(a));return d.then((e=>{if(!e)return null;e=JSON.parse(e);return{time:e.time,cid:e.cid}}))}function lh(a){let b=a.time,c=Date.now();return b+31536e6Mg(b).replace(/\.+$/,"")))}function rh(a){return a.Mb?a.Mb:a.Mb=Tc(a.F).preloadExtension("amp-crypto-polyfill").then((()=>M(a.F,"crypto-polyfill")))}class sh{constructor(a){this.F=a;let b=null,c=!1;a.crypto&&(a.crypto.subtle?b=a.crypto.subtle:a.crypto.webkitSubtle&&(b=a.crypto.webkitSubtle,c=!0));this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};this.subtle=b;this.Ig=c;this.Mb=null}sha384(a){"string"===typeof a&&(a=Wa(a));if(!this.subtle||this.Mb)return(this.Mb||rh(this)).then((b=>b(a)));try{return this.subtle.digest({name:"SHA-384"},a).then((b=>new Uint8Array(b)),(b=>{b.message&&0>b.message.indexOf("secure origin")&&F().error("Crypto","SubtleCrypto failed, fallback to closure lib.",b);return rh(this).then((()=>this.sha384(a)))}))}catch(b){return G().error("Crypto","SubtleCrypto failed, fallback to closure lib.",b),rh(this).then((()=>this.sha384(a)))}}sha384Base64(a){return this.sha384(a).then((b=>Mg(b)))}uniform(a){return this.sha384(a).then((b=>{let c=0;for(let d=2;0<=d;d--)c=(c+b[d])/256;return c}))}isPkcsAvailable(){return!!this.subtle&&!1!==this.F.isSecureContext}importPkcsKey(a){this.isPkcsAvailable();if(this.Ig){var b=JSON.stringify(a);b="undefined"!==typeof TextEncoder?new TextEncoder("utf-8").encode(b):Wa(unescape(encodeURIComponent(b)))}else b=a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])}verifyPkcs(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)}}let th=["prefetch","preload","preconnect","dns-prefetch"];class uh{constructor(a){this.B=a;this.Yd=this.yd=null}get(){if(this.yd)return this.yd;let a=this.B;var b=a.getUrl();let c=xe(b);var d=a.getRootNode();b=d&&d.AMP&&d.AMP.canonicalUrl;if(!b){let h=d.querySelector("link[rel=canonical]");b=h?T(h.href).href:c}let e=String(Math.floor(1e4*a.win.Math.random())),f=vh(a.win.document);d=wh(a.win.document);let g=xh(a);return this.yd={get sourceUrl(){return xe(a.getUrl())},canonicalUrl:b,pageViewId:e,get pageViewId64(){this.Yd||(this.Yd=jh(a.win));return this.Yd},linkRels:f,viewport:d,replaceParams:g}}}function vh(a){let b=x();if(a.head){let c=a.head.querySelectorAll("link[rel]");for(a=0;a{if(-1==th.indexOf(g)){var h=b[g];h?(B(h)||(h=b[g]=[h]),h.push(e)):b[g]=e}}))}}return b}function wh(a){let b=a.head.querySelector('meta[name="viewport"]');return b?b.getAttribute("content"):null}function xh(a){var b;(b=!a.isSingleDoc())||(b=a.win.location.href,b=me(b),b="a"!=(U(b)?b.pathname.split("/",2)[1]:null));if(b)return null;a=T(a.win.location.href);let c=C(a.search).amp_r;return void 0===c?null:C(c)}let yh={attributes:!0,attributeFilter:["hidden"],subtree:!0};function zh(a){if(!a.ga){a.ib=new Q;var b=new a.F.MutationObserver((c=>{c&&a.ib.fire(c)}));a.ga=b;b.observe(a.V,yh)}}class Ah{constructor(a){this.V=a.getRootNode();this.F=(this.V.ownerDocument||this.V).defaultView;this.ib=this.ga=null}add(a){zh(this);let b=this.ib.add(a);return()=>{b();0===this.ib.getHandlerCount()&&this.dispose()}}dispose(){this.ga&&(this.ga.disconnect(),this.ib.removeAll(),this.ib=this.ga=null)}}function Bh(a){try{return a.state}catch(b){return null}}function Ch(a,b,c){let d=new v,e=d.promise;a.K.push({callback:b,resolve:d.resolve,reject:d.reject,trace:Error("history trace for "+c+": ")});1==a.K.length&&Dh(a);return e}function Eh(a,b){if(!(a.D>=a.$a.length-1)){var c=[];for(let d=a.$a.length-1;d>a.D;d--)a.$a[d]&&(c.push(a.$a[d]),a.$a[d]=void 0);a.$a.splice(a.D+1);if(0c[d](b)),1)}}function Dh(a){if(0!=a.K.length){var b=a.K[0];try{var c=b.callback()}catch(d){c=Promise.reject(d)}c.then((d=>{b.resolve(d)}),(d=>{G().error("History","failed to execute a task:",d);b.trace&&(b.trace.message+=d,G().error("History",b.trace));b.reject(d)})).then((()=>{a.K.splice(0,1);Dh(a)}))}}class Fh{constructor(a,b){this.B=a;this.R=N(a.win);this.j=b;this.D=0;this.$a=[];this.K=[];this.j.setOnStateUpdated(this.Z.bind(this))}cleanup(){this.j.cleanup()}push(a,b){return Ch(this,(()=>this.j.push(b).then((c=>{this.Z(c);a&&(this.$a[c.stackIndex]=a);return c.stackIndex}))),"push")}pop(a){return Ch(this,(()=>this.j.pop(a).then((b=>{this.Z(b)}))),"pop")}replace(a){return Ch(this,(()=>this.j.replace(a)),"replace")}get(){return Ch(this,(()=>this.j.get()),"get")}goBack(a){return Ch(this,(()=>0>=this.D&&!a?r():this.j.pop(this.D).then((b=>{this.Z(b)}))),"goBack")}replaceStateForTarget(a){let b=this.B.win.location.hash;return this.push((()=>{this.B.win.location.replace(b||"#")})).then((()=>{this.j.replaceStateForTarget(a)}))}getFragment(){return this.j.getFragment()}updateFragment(a){"#"==a[0]&&(a=a.substr(1));return this.j.updateFragment(a)}Z(a){this.D=a.stackIndex;Eh(this,a)}}function Gh(a,b,c){a=x(c?Hh(a):void 0);a["AMP.History"]=b;return a}function Hh(a){return a.vh?Bh(a.win.history):a.mb}function Ih(a,b){return a.Pc?a.Pc.promise.then(b,b):b()}function Jh(a,b){let c=z(z({},a&&a.data||{}),b.data||{});return z(z(z({},a||{}),b),{},{data:c})}function Kh(a,b){if(0>=b)return Promise.resolve(a.D);a.mb=Gh(a,a.D-b);let c=Lh(a);a.win.history.go(-b);return c.then((()=>Promise.resolve(a.D)))}function Lh(a){var b=new v;let c=b.reject,d=b.resolve;b=a.R.timeoutPromise(500,b.promise);a.Pc={promise:b,resolve:d,reject:c};return b}class Mh{constructor(a){this.win=a;this.R=N(a);a=this.win.history;this.ab=a.length-1;let b=Bh(a);b&&void 0!==b["AMP.History"]&&(this.ab=Math.min(b["AMP.History"],this.ab));this.D=this.ab;this.Z=null;this.vh="state"in a;this.mb=Gh(this,this.D);let c,d;a.pushState&&a.replaceState?(this.oc=a.originalPushState||a.pushState.bind(a),this.Kb=a.originalReplaceState||a.replaceState.bind(a),c=(e,f,g)=>{this.mb=e;this.oc(e,f,g||null)},d=(e,f,g)=>{this.mb=e;void 0!==g?this.Kb(e,f,g):this.Kb(e,f)},a.originalPushState||(a.originalPushState=this.oc),a.originalReplaceState||(a.originalReplaceState=this.Kb)):(c=e=>{this.mb=e},d=e=>{this.mb=e});this.dh=c;this.xc=d;try{this.xc(Gh(this,this.D,!0))}catch(e){G().error("History","Initial replaceState failed: "+e.message)}a.pushState=this.hf.bind(this);a.replaceState=this.wd.bind(this);this.tc=()=>{let e=Hh(this);let f=e?e["AMP.History"]:void 0;let g=this.D;let h=this.Pc;this.Pc=void 0;g>this.win.history.length-2&&(g=this.win.history.length-2,this.Aa(Jh(e,{stackIndex:g})));g=void 0==f?g+1:f{let b=Jh(Hh(this),a||{});this.hf(b,void 0,b.fragment?"#"+b.fragment:void 0);return ea((()=>Jh(b,{stackIndex:this.D})))}))}pop(a){a=Math.max(a,this.ab);return Ih(this,(()=>Kh(this,this.D-a+1))).then((b=>Jh(Hh(this),{stackIndex:b})))}replace(a={}){return Ih(this,(()=>{let b=Jh(Hh(this),a||{}),c=(b.url||"").replace(/#.*/,""),d=b.fragment?"#"+b.fragment:"";this.wd(b,b.title,c||d?c+d:void 0);return ea((()=>Jh(b,{stackIndex:this.D})))}))}get(){return ea((()=>Jh(Hh(this),{stackIndex:this.D})))}backTo(a){a=Math.max(a,this.ab);return Ih(this,(()=>Kh(this,this.D-a)))}hf(a,b,c){a||(a={});let d=this.D+1;a["AMP.History"]=d;this.dh(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.xc(a));a=Jh(a,{stackIndex:d});this.Aa(a)}replaceStateForTarget(a){Ih(this,(()=>{this.win.removeEventListener("popstate",this.tc);try{this.win.location.replace(a)}finally{this.win.addEventListener("popstate",this.tc)}this.wd();return r()}))}wd(a,b,c){a||(a={});let d=Math.min(this.D,this.win.history.length-1);a["AMP.History"]=d;this.xc(a,b,c);a=Jh(a,{stackIndex:d});this.Aa(a)}Aa(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.D!=a.stackIndex&&(this.D=a.stackIndex,this.Z&&this.Z(a))}getFragment(){let{hash:a}=this.win.location;a=a.substr(1);return Promise.resolve(a)}updateFragment(a){return this.replace({fragment:a})}}function Nh(a){return!!a&&void 0!==a.stackIndex}class Oh{constructor(a,b){this.win=a;this.h=b;this.D=0;this.Z=null;this.zh=this.h.onMessage("historyPopped",(c=>{void 0!==c.newStackIndex&&(c.stackIndex=c.newStackIndex);Nh(c)&&this.Aa(c)}))}replaceStateForTarget(a){this.win.location.replace(a)}cleanup(){this.zh()}setOnStateUpdated(a){this.Z=a}push(a){let b=z({stackIndex:this.D+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",b).then((c=>{c=Nh(c)?c:b;this.Aa(c);return c}))}pop(a){if(a>this.D)return this.get();a=y({stackIndex:this.D});return this.h.sendMessageAwaitResponse("popHistory",a).then((b=>{let c=y({stackIndex:this.D-1});b=Nh(b)?b:c;this.Aa(b);return b}))}replace(a){if(a&&a.url){if(!this.h.hasCapability("fullReplaceHistory")){let d=y({stackIndex:this.D});return Promise.resolve(d)}let c=a.url.replace(/#.*/,"");a.url=c}let b=z({stackIndex:this.D},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",b,!0).then((c=>{c=Nh(c)?c:b;this.Aa(c);return c}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.D,title:""})}Aa(a){let b=a.stackIndex;this.D!=b&&(this.D=b,this.Z&&this.Z(a))}getFragment(){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("getFragment",void 0,!0).then((a=>{if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a})):Promise.resolve("")}updateFragment(a){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("replaceHistory",y({fragment:a}),!0):r()}}function Ph(a){var b=O(a,"viewer");b.isOvertakeHistory()||a.win.__AMP_TEST_IFRAME?b=new Oh(a.win,b):(K(a.win,"global-history-binding",Mh),b=M(a.win,"global-history-binding"));return new Fh(a,b)}function Qh(a,b){var c={};let d=c.needsRootBounds,e=c.threshold;c=I(b)&&d?b.document:void 0;return new b.IntersectionObserver(a,{threshold:e,root:c})}new WeakMap;new WeakMap;function Rh(a,b){return Tc(a.win).installExtensionForDoc(a,"amp-loader").then((()=>Pc(b,"loader","amp-loader")))}function Sh(a,b,c,d,e=a.win.Date.now()){let f=b.ownerDocument.createElement("div");Rh(a,b).then((g=>{let h=a.win.Date.now()-e;g.initializeLoader(b,f,h,c,d)}));return f}let Th=['
'];class Uh{constructor(a){this.B=a;a=a.win;let b=this.Bg.bind(this);this.Bd=Qh((c=>c.forEach(b)),a);this.Oa=new WeakMap}dispose(){this.Bd.disconnect()}track(a){this.Bd.observe(a)}untrack(a){this.Bd.unobserve(a);this.Qe(a)}Bg(a){var b=a.boundingClientRect,c=b.height,d=b.width;b=a.target;a=a.isIntersecting&&20{Ma(b.target)&&Vh(this,b.target)};this.Me=()=>{N(a).delay((()=>{this.win.document.activeElement&&Vh(this,this.win.document.activeElement)}),500)};this.win.document.addEventListener("focus",this.Ne,!0);this.win.addEventListener("blur",this.Me)}Qe(){this.win.document.removeEventListener("focus",this.Ne,!0);this.win.removeEventListener("blur",this.Me)}onFocus(a){return this.xf.add(a)}getLast(){return 0==this.P.length?null:this.P[this.P.length-1].el}purgeBefore(a){let b=this.P.length-1;for(let c=0;c=a){b=c-1;break}-1!=b&&this.P.splice(0,b+1)}hasDescendantsOf(a){this.win.document.activeElement&&Vh(this,this.win.document.activeElement);for(let b=0;b!!W(e)));if(c){b=W(c);var d=b.getPendingChangeSize();void 0!==d&&Yh(a,b,d.height,d.width,d.margins,void 0,!0)}}function Yh(a,b,c,d,e,f,g,h){b.hasBeenMeasured()&&!e?Zh(a,b,c,d,void 0,f,g,h):a.I.measure((()=>{b.hasBeenMeasured()||b.measure();if(e){var k=a.win.getComputedStyle(b.element)||Yc;k={top:parseInt(k.marginTop,10)||0,right:parseInt(k.marginRight,10)||0,bottom:parseInt(k.marginBottom,10)||0,left:parseInt(k.marginLeft,10)||0};k={newMargins:e,currentMargins:k}}else k=void 0;Zh(a,b,c,d,k,f,g,h)}))}function $h(a,b,c,d,e=!1){let f=()=>{let h=a.J.getLayoutRect(b);return 0!=h.width&&0!=h.height?h.top:-1};let g=-1;return a.I.runPromise({measure:()=>{c&&c();e||(g=f())},mutate:()=>{d();if(!e){b.classList.contains("i-amphtml-element")&&W(b).requestMeasure();var h=b.getElementsByClassName("i-amphtml-element");for(let k=0;k{let k=f();-1!=k&&k!=g&&(a.o.setRelayoutTop(k),a.o.schedulePass(70));a.o.maybeHeightChanged()}))}}})}function Zh(a,b,c,d,e,f,g,h){b.resetPendingChangeSize();let k=b.getLayoutSize();var l;if(!(l=void 0!==c&&c!=k.height||void 0!==d&&d!=k.width)&&(l=void 0!==e)){l=e.currentMargins;var m=e.newMargins;l=void 0!==m.top&&m.top!=l.top||void 0!==m.right&&m.right!=l.right||void 0!==m.bottom&&m.bottom!=l.bottom||void 0!==m.left&&m.left!=l.left}l?(a.o.updateOrEnqueueMutateTask(b,{resource:b,newHeight:c,newWidth:d,marginChange:e,event:f,force:g,callback:h}),a.o.schedulePassVsync()):(void 0===c&&void 0===d&&void 0===e&&G().error("Mutator","attempting to change size with undefined dimensions",b.debugid),h&&h(!0))}class ai{constructor(a){this.ampdoc=a;this.win=a.win;this.o=O(a,"resources");this.J=O(this.ampdoc,"viewport");this.I=M(this.win,"vsync");this.Rc=new Wh(this.win);this.Rc.onFocus((b=>{Xh(this,b)}))}forceChangeSize(a,b,c,d,e){Yh(this,W(a),b,c,e,void 0,!0,d)}requestChangeSize(a,b,c,d,e){return new Promise(((f,g)=>{Yh(this,W(a),b,c,d,e,!1,(h=>{h?f():g(Error("changeSize attempt denied"))}))}))}expandElement(a){W(a).completeExpand();this.o.schedulePass(70)}attemptCollapse(a){return new Promise(((b,c)=>{Yh(this,W(a),0,0,void 0,void 0,!1,(d=>{d?(W(a).completeCollapse(),b()):c(G().createExpectedError("collapse attempt denied"))}))}))}collapseElement(a){let b=this.J.getLayoutRect(a);0!=b.width&&0!=b.height&&(Kd(this.win,"dirty-collapse-element")?this.dirtyElement(a):this.o.setRelayoutTop(b.top));W(a).completeCollapse();this.o.schedulePass(70)}measureElement(a){return this.I.measurePromise(a)}mutateElement(a,b,c){return $h(this,a,null,b,c)}measureMutateElement(a,b,c){return $h(this,a,b,c)}dirtyElement(a){let b=!1;a.classList.contains("i-amphtml-element")?(a=W(a),this.o.setRelayoutTop(a.getLayoutBox().top)):b=!0;this.o.schedulePass(70,b)}}let bi=null;let ci=["gclid","gclsrc"],di=[/^t.co$/];function ei(){return H(bi,"E#19457 trackImpressionPromise")}function fi(){var a=self,b=new v;let c=b.promise,d=b.resolve;bi=N(a).timeoutPromise(8e3,c,"TrackImpressionPromise timeout").catch((()=>{}));b=O(a.document.documentElement,"viewer");let e=b.isTrustedViewer(),f=b.getReferrerUrl().then((g=>gi(g)));Promise.all([e,f]).then((g=>{let h=g[1];if(g[0]||h||Kd(a,"alp")){var k=hi(a),l=ii(a);Promise.all([k,l]).then((()=>{d()}),(()=>{}))}else d()}))}function hi(a){let b=O(a.document.documentElement,"viewer");return b.getParam("replaceUrl")?b.hasCapability("replaceUrl")?b.sendMessageAwaitResponse("getReplaceUrl",void 0).then((c=>{c&&"object"==typeof c&&b.replaceUrl(c.replaceUrl||null)}),(()=>{})):(b.replaceUrl(b.getParam("replaceUrl")||null),r()):r()}function gi(a){let b=T(a);return""!=b.protocol?!1:di.some((c=>c.test(b.hostname)))}function ii(a){let b=Bc(a.document.documentElement),c=O(b,"viewer").getParam("click");if(!c||0!=c.indexOf("//"))return r();a.location.hash&&(a.location.hash="");return b.whenFirstVisible().then((()=>ji(a,c))).then((d=>{if(d){var e=d.location;(d=d.tracking_url||e)&&!U(d)&&((new Image).src=d);if(e&&a.history.replaceState){d=O(a.document.documentElement,"viewer");var f=a.location.href;e=T(e);e=C(e.search);e=qe(f,e);a.history.replaceState(null,"",e);d.maybeUpdateFragmentForCct()}}})).catch((()=>{}))}function ji(a,b){return M(a,"xhr").fetchJson(b,{credentials:"include"}).then((c=>204==c.status?null:c.json()))}function ki(a){return a.whenReady().then((()=>!!a.getBody().querySelector("amp-analytics[type=googleanalytics]")))}function li(a,b,c,d){let e;try{e=a.open(b,c,d)}catch(g){G().error("DOM","Failed to open url on target: ",c,g)}if(!(c=e||"_top"==c)){c=d||"";var f;"number"!==typeof f&&(f=0);c=f+8>c.length?!1:-1!==c.indexOf("noopener",f)}c||(e=a.open(b,"_top"));return e}let mi=["_top","_blank"];function ni(a,b){a.wf.forEach((c=>{b=c(b)}));return b}function oi(a){return(a=a.ja.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map((b=>b.trim())):[]}function pi(a,b){let c=null;if(a.ve&&!a.Ed){a=T(a.ampdoc.win.location.href);var d=C(a.search);a=[];for(var e=0;ee.trim())).includes("amphtml")?a.navigateToAmpUrl(d.href,"")?(b.preventDefault(),!0):!1:!1}function si(a,b,c){a.ue.forEach((d=>{d(b,c)}))}function ti(a,b,c,d){b.preventDefault();if(!a.Ed){b=c.hash.slice(1);var e=null;if(b){let f=CSS.escape(b);e=a.ja.getElementById(b)||a.ja.querySelector(`a[name="${f}"]`)}c.hash!=d.hash?a.P.replaceStateForTarget(c.hash).then((()=>{ui(a,e)})):ui(a,e)}}function vi(a,b,c){let d=b.href,e=`${b.origin}${b.pathname}${b.hash}`;a.history.replaceState(null,"",e);let f=()=>{let g=a.location.href;g==e?a.history.replaceState(null,"",d):G().error("navigation","Unexpected iframe URL change:",g,e)};"_blank"===c?a.setTimeout(f,0):a.addEventListener("pageshow",(function k(h){h.persisted&&(f(),a.removeEventListener("pageshow",k))}))}function ui(a,b){b&&(a.J.scrollIntoView(b),N(a.ampdoc.win).delay((()=>a.J.scrollIntoView(b)),1))}class wi{constructor(a){this.ampdoc=a;this.ja=a.getRootNode();this.J=O(this.ampdoc,"viewport");this.h=O(this.ampdoc,"viewer");this.P=O(this.ampdoc,"history");this.qa=M(this.ampdoc.win,"platform");this.Hg=this.qa.isIos()&&this.qa.isSafari();this.Gb=I(this.ampdoc.win)&&this.h.isOvertakeHistory();this.Ed=this.ja!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent();this.Gg="inabox"==ib(this.ampdoc.win).runtime;this.Hf=this.ja.nodeType==Node.DOCUMENT_NODE?this.ja.documentElement:this.ja;this.rb=this.yg.bind(this);this.ja.addEventListener("click",this.rb);this.ja.addEventListener("contextmenu",this.rb);this.ve=!1;ki(this.ampdoc).then((b=>{this.ve=b}));this.lf=this.fb=!1;Promise.all([this.h.isTrustedViewer(),this.h.getViewerOrigin()]).then((b=>{this.fb=b[0];this.lf=E.localhostRegex.test(me(b[1]).origin)}));this.Qc=null;this.ue=new Ye;this.wf=new Ye}cleanup(){this.rb&&(this.ja.removeEventListener("click",this.rb),this.ja.removeEventListener("contextmenu",this.rb))}openWindow(a,b,c,d){let e="";!this.qa.isIos()&&this.qa.isChrome()||d||(e+="noopener");let f=li(a,b,c,e);f&&!d&&(f.opener=null)}navigateTo(a,b,c,d={}){let{opener:e=!1,target:f="_top"}=d;b=ni(this,b);let g=Ec(this.Hf,"url");if(g.isProtocolValid(b))if(H(mi.includes(f),`Target '${f}' not supported.`),d=g.getSourceUrl(a.location),b=g.resolveRelativeUrl(b,d),"_blank"==f)this.openWindow(a,b,f,e);else{if(c&&(this.Qc||(this.Qc=oi(this)),this.Qc.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}else F().error("navigation","Cannot navigate to invalid protocol: "+b)}navigateToAmpUrl(a,b){return this.h.hasCapability("a2a")?(this.h.sendMessage("a2aNavigate",y({url:a,requestedBy:b})),!0):!1}yg(a){if(!a.defaultPrevented){var b=Cb(a.__AMP_CUSTOM_LINKER_TARGET__||a.target,"A");if(b&&b.href)if("click"==a.type){pi(this,b);var d,c=qi(this,b.href);if(d=!ri(this,a,b,c)){var e=c;if(this.Gb){d=yb(b);var f=b.href;e=e.protocol;"ftp:"==e?(li(d,f,"_blank"),a.preventDefault(),d=!0):(e=/^(https?|mailto):$/.test(e),this.Hg&&!e?(li(d,f,"_top"),a.preventDefault(),d=!0):d=!1)}else d=!1;d=!d}if(d)if(d=qi(this,""),xi(c)!=xi(d)&&(si(this,b,a),c=qi(this,b.href)),f=c,c=xi(f),e=xi(d),f.hash&&c==e)ti(this,a,f,d);else{f=(b.getAttribute("target")||"").toLowerCase();(this.Ed||this.Gg)&&"_top"!=f&&"_blank"!=f&&(f="_blank",b.setAttribute("target",f));e=this.ampdoc.win;let g=M(e,"platform");b=O(b,"viewer");d.search&&g.isSafari()&&13<=g.getMajorVersion()&&b.isProxyOrigin()&&b.isEmbedded()&&vi(e,d,f);this.viewerInterceptsNavigation(c,"intercept_click")&&a.preventDefault()}}else"contextmenu"==a.type&&(pi(this,b),si(this,b,a))}}registerAnchorMutator(a,b){this.ue.enqueue(a,b)}registerNavigateToMutator(a,b){this.wf.enqueue(a,b)}viewerInterceptsNavigation(a,b){let c=this.h.hasCapability("interceptNavigation"),d=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");if(!c||!d||!this.fb&&!this.lf)return!1;this.h.sendMessage("navigateTo",y({url:a,requestedBy:b}));return!0}}function xi(a){return`${a.origin}${a.pathname}${a.search}`}function yi(a){return B(a)?a:[a]}function zi(a,b,c){Ai(a,b,c,(d=>{d.element.ensureLoaded(b.getLayoutPriority())}))}function Ai(a,b,c,d){for(let e of c)b.element.contains(e),Bi(a,e,d)}function Bi(a,b,c){if(b.classList.contains("i-amphtml-element"))c(a.o.getResourceForElement(b)),(b=b.getPlaceholder())&&Bi(a,b,c);else{b=b.getElementsByClassName("i-amphtml-element");let d=[];for(let e=0;e{d.pause()}))}scheduleResume(a,b){a=this.o.getResourceForElement(a);b=yi(b);Ai(this,a,b,(c=>{c.resume()}))}scheduleUnlayout(a,b){a=this.o.getResourceForElement(a);b=yi(b);Ai(this,a,b,(c=>{c.unlayout()}))}requireLayout(a){let b=[];Bi(this,a,(c=>{b.push(c.element.ensureLoaded())}));return Promise.all(b)}}function Di(a,b,c){if(!a.U.userAgent)return 0;a=a.U.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)}class Ei{constructor(a){this.U=a.navigator;this.F=a}isAndroid(){return/Android/i.test(this.U.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this.U.userAgent)}isSafari(){return/Safari/i.test(this.U.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this.U.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this.U.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this.U.userAgent)}isEdge(){return/Edge/i.test(this.U.userAgent)}isWebKit(){return/WebKit/i.test(this.U.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this.U.userAgent)}isStandalone(){return this.isIos()&&this.U.standalone||this.isChrome()&&this.F.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.U.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:Di(this,/\sVersion\/(\d+)/,1):this.isChrome()?Di(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?Di(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?Di(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?Di(this,/Edge\/(\d+)/,1):0}getIosVersionString(){if(!this.U.userAgent||!this.isIos())return"";let a=this.U.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""}getIosMajorVersion(){let a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])}}class Fi{constructor(a){this.H=a;this.Pf=x()}addTransition(a,b,c){this.Pf[`${a}|${b}`]=c}setState(a){let b=this.H;this.H=a;a=this.Pf[`${b}|${a}`];null===a||void 0===a?void 0:a()}}class Gi{constructor(){this.N=[];this.Ub={};this.nf=this.pf=0}getSize(){return this.N.length}getLastEnqueueTime(){return this.pf}getLastDequeueTime(){return this.nf}getTaskById(a){return this.Ub[a]||null}enqueue(a){this.N.push(a);this.Ub[a.id]=a;this.pf=Date.now()}dequeue(a){if(!this.removeAtIndex(a,this.N.indexOf(this.Ub[a.id])))return!1;this.nf=Date.now();return!0}peek(a){let b=1e6,c=null;for(let d=0;d{var h=a.J.getSize();if(0=m;if(!t)for(u=0;uh;q++)k=a.o[q],2==k.getState()&&!k.hasOwner()&&!k.element.R1()&&k.isDisplayed()&&k.idleRenderOutsideViewport()&&(a.scheduleLayoutOrPreload(k,!1),h++);for(q=0;qh;q++)k=a.o[q],2!=k.getState()||k.hasOwner()||k.element.R1()||!k.isDisplayed()||(a.scheduleLayoutOrPreload(k,!1),h++)}h=a.win.Date.now();k=-1;for(q=a.K.peek(a.Ce);q;){k=Mi(a,q);if(16{},e=()=>{a.o.forEach((h=>h.pause()))},f=()=>{a.o.forEach((h=>{h.unload();Oi(a,h)}));try{a.win.getSelection().removeAllRanges()}catch(h){}},g=()=>{a.o.forEach((h=>h.resume()));c()};b.addTransition("prerender","prerender",c);b.addTransition("prerender","visible",c);b.addTransition("prerender","hidden",c);b.addTransition("prerender","inactive",c);b.addTransition("prerender","paused",c);b.addTransition("visible","visible",c);b.addTransition("visible","hidden",c);b.addTransition("visible","inactive",f);b.addTransition("visible","paused",e);b.addTransition("hidden","visible",c);b.addTransition("hidden","hidden",c);b.addTransition("hidden","inactive",f);b.addTransition("hidden","paused",e);b.addTransition("inactive","visible",g);b.addTransition("inactive","hidden",g);b.addTransition("inactive","inactive",d);b.addTransition("inactive","paused",c);b.addTransition("paused","visible",g);b.addTransition("paused","hidden",c);b.addTransition("paused","inactive",f);b.addTransition("paused","paused",d)}function Pi(a){a.ampdoc.whenReady().then((()=>{a.wb=!0;a.Je();a.wa=null;M(a.win,"input").setupInputModeClasses(a.ampdoc)}))}function Qi(a,b,c=!1){if(c||20>a.Ie||a.ampdoc.hasBeenVisible()||b.isBuildRenderBlocking())if(c=b.build())a.Ie++,a.Ke++,c.then((()=>a.schedulePass()),(d=>{Ri(a,b);if(!He(d))throw d}))}function Ji(a,b,c=!1,d=!1){if(a.ua||a.Fg)if("prerender"!=a.ampdoc.getVisibilityState()||b.prerenderAllowed())a.wb?Qi(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.wa.includes(b)||(a.wa.push(b),a.Je())}function Ri(a,b){let c=a.o.indexOf(b);-1!=c&&a.o.splice(c,1);b.isBuilt()&&b.pauseOnRemove();3===b.getState()&&b.layoutCanceled();Oi(a,b,!0)}function Oi(a,b,c){if(1==b.getState()||2==b.getState())a.K.purge((d=>d.resource==b)),a.ta.purge((d=>d.resource==b)),Ha(a.ia,(d=>d.resource===b));if(0==b.getState()&&c&&a.wa){let d=a.wa.indexOf(b);-1!=d&&a.wa.splice(d,1)}}function Si(a,b,c){let d=a.J.getContentHeight();a=Math.max(.85*d,d-1e3);let e=c||b.getLayoutBox(),f=b.getInitialLayoutBox();return e.bottom>=a||f.bottom>=a}function Ii(a){var b=a.win.Date.now();let c=a.J.getRect(),d=c.height/10,e=c.height/10,f=.01>Math.abs(a.Ld)&&500=c.bottom-e||0==u&&t.bottom+Math.min(Ra,0)>=c.bottom-e)Sa=!0;else if(1Ra&&c.top+l<-Ra)continue;f?(l+=Ra,k.push(m)):a.ia.push(m);continue}else Si(a,p,t)?Sa=!0:0>Ra||0>u||0>q||(m.newHeight==t.height?a.I.run({measure:Y=>{Y.resize=!1;let Ta=p.element.parentElement;if(Ta){var lk=Ta.getLayoutSize&&Ta.getLayoutSize().width||Ta.offsetWidth,dg=cg;for(let ld=0;ldlk)return;Y.resize=!0}},mutate:Y=>{Y.resize&&m.resource.changeSize(m.newHeight,m.newWidth,R);m.resource.overflowCallback(!Y.resize,m.newHeight,m.newWidth,R)}},{}):m.resource.overflowCallback(!0,m.newHeight,m.newWidth,R));Sa&&(0<=t.top&&(h=-1==h?t.top:Math.min(h,t.top)),m.resource.changeSize(m.newHeight,m.newWidth,R),m.resource.overflowCallback(!1,m.newHeight,m.newWidth,R),a.Sa=!0);m.callback&&m.callback(Sa)}-1!=h&&a.setRelayoutTop(h);0{m.scrollHeight=a.J.getScrollHeight();m.scrollTop=a.J.getScrollTop()},mutate:m=>{let n=-1;k.forEach((t=>{let u=t.resource.getLayoutBox();n=-1==n?u.top:Math.min(n,u.top);t.resource.changeSize(t.newHeight,t.newWidth,t.marginChange?t.marginChange.newMargins:void 0);t.callback&&t.callback(!0)}));-1!=n&&a.setRelayoutTop(n);let p=a.J.getScrollHeight();p!=m.scrollHeight&&a.J.setScrollTop(m.scrollTop+(p-m.scrollHeight));a.Sa=!0}},{})}}function Ki(a,b){b.length&&a.I.mutate((()=>{b.forEach((c=>{c.unload();Oi(a,c)}))}))}function Li(a,b=Date.now()){let c=a.ta.getLastDequeueTime();return 0==a.ta.getSize()&&0==a.K.getSize()&&b>c+5e3&&0{d=Math.max(d,Math.max(1e3*(b.priority-e.priority),0)-(c-e.startTime))}));return d}function Ni(a,b,c){return 0!=b.getState()&&b.isDisplayed()&&(a.ka||"prerender"==a.ampdoc.getVisibilityState()&&b.prerenderAllowed())&&(c||b.isInViewport()||b.renderOutsideViewport()||b.idleRenderOutsideViewport())?!0:!1}class Ti{constructor(a){this.ampdoc=a;this.win=a.win;this.h=O(a,"viewer");this.ua=this.h.isRuntimeOn();this.Fg=!1;this.lh=0;this.o=[];this.Ke=this.Ie=this.te=0;this.ka=this.ampdoc.isVisible();this.wb=!1;this.nd=!0;this.Sc=!1;this.cc=-1;this.wc=!0;this.Sb=-1;this.Ld=this.hc=0;this.sc=new Rf(this.win,(()=>this.doPass()));this.hh=new Rf(this.win,(()=>{this.wc=!0;this.schedulePass()}));this.ta=new Gi;this.K=new Gi;this.Ce=this.fg.bind(this);this.ia=[];this.wa=[];this.Dd=!1;this.J=O(this.ampdoc,"viewport");this.I=M(this.win,"vsync");this.Rc=new Wh(this.win);this.se=!1;this.$b=0;this.Sa=!1;this.rc=[];this.ld=[];this.af=new v;this.Yf=new Fi(this.ampdoc.getVisibilityState());this.J.onChanged((b=>{this.hc=this.win.Date.now();this.Ld=b.velocity;b.relayoutAll&&(this.Sa=this.wc=!0);this.schedulePass()}));this.J.onScroll((()=>{this.hc=this.win.Date.now()}));this.ampdoc.onVisibilityChanged((()=>{-1==this.cc&&this.ampdoc.isVisible()&&(this.cc=this.win.Date.now());this.schedulePass()}));this.h.onRuntimeState((b=>{this.ua=b;this.schedulePass(1)}));cf(this.ampdoc,(()=>{Hi(this,this.Yf);this.schedulePass(0)}));Pi(this);this.Hc=$a(this.win,(b=>{b=b.target;b.nodeType!==Node.ELEMENT_NODE||b===this.J.getScrollingElement()||this.ld.includes(b)||(this.ld.push(b),this.schedulePass(70))}),250);Sd(this.win.document,"scroll",this.Hc,{capture:!0,passive:!0})}get(){return this.o.slice(0)}getAmpdoc(){return this.ampdoc}getResourceForElement(a){return W(a)}getResourceForElementOptional(a){return W(a)}getScrollDirection(){return Math.sign(this.Ld)||1}add(a){this.te++;1==this.te&&this.J.ensureReadyForElements();let b=W(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new Pe(++this.lh,a,this);this.o.push(b);this.hh.schedule(1e3)}Je(){if(!this.Dd)try{this.Dd=!0;for(let a=0;a{d.resource==c&&(d.priority=b)}));this.schedulePass()}schedulePass(a){return this.sc.schedule(a)}updateOrEnqueueMutateTask(a,b){let c=null;for(let d=0;dthis.doPass())))}ampInitComplete(){this.Sc=!0;this.schedulePass()}setRelayoutTop(a){this.Sb=-1==this.Sb?a:Math.min(a,this.Sb)}maybeHeightChanged(){this.Sa=!0}onNextPass(a){this.rc.push(a)}doPass(){if(this.ua){this.ka=this.ampdoc.isVisible();this.Ke=0;if(this.wb&&this.nd&&this.Sc){var a;this.nd=!1;let b=this.win.document,c=Uc(this.ampdoc);this.h.sendMessage("documentLoaded",y({title:b.title,sourceUrl:xe(this.ampdoc.getUrl()),isStory:"AMP-STORY"===(null===(a=b.body.firstElementChild)||void 0===a?void 0:a.tagName),serverLayout:b.documentElement.hasAttribute("i-amphtml-element"),linkRels:c.linkRels,metaTags:{viewport:c.viewport},viewport:c.viewport}),!0);this.$b=this.J.getContentHeight();this.h.sendMessage("documentHeight",y({height:this.$b}),!0)}!this.nd&&this.pg&&this.o.every((b=>b.getState()!=Pe.NOT_BUILT||b.element.R1()))&&(this.pg=!1,this.Sa=!0);this.J.getSize();this.sc.cancel();this.se=!1;this.Yf.setState(this.ampdoc.getVisibilityState());this.wb&&this.Sc&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.Sa&&(this.Sa=!1,this.I.measure((()=>{let b=this.J.getContentHeight();b!=this.$b&&(this.h.sendMessage("documentHeight",y({height:b}),!0),this.$b=b,this.J.contentHeightChanged())})));for(a=0;a{"function"==typeof g.throwIfCannotNavigate&&g.throwIfCannotNavigate()})));return b.then((()=>{O(a.ampdoc,"navigation").navigateTo(f,c.url,`AMP.${e}`,{target:c.target,opener:c.opener})}),(g=>{F().error("STANDARD-ACTIONS",g)}))}function Xi(a,b){let c=yb(b.node),d=c.parent!=c;let e=!1;c.opener&&a.ampdoc.isSingleDoc()&&!d&&(c.close(),e=c.closed);return e?r():Wi(a,b)}function Yi(a,b){a.classList.contains("i-amphtml-element")?a.expand():bd(a,!0);if(b)try{b.focus()}catch(c){}}class Zi{constructor(a){this.ampdoc=a;let b=a.getHeadNode();this.Va=O(a,"mutator");this.J=O(a,"viewport");a=Ec(b,"action");a.addGlobalTarget("AMP",this.sg.bind(this));a.addGlobalMethodHandler("hide",this.df.bind(this));a.addGlobalMethodHandler("show",this.gf.bind(this));a.addGlobalMethodHandler("toggleVisibility",this.xg.bind(this));a.addGlobalMethodHandler("scrollTo",this.ff.bind(this));a.addGlobalMethodHandler("focus",this.tg.bind(this));a.addGlobalMethodHandler("toggleClass",this.wg.bind(this));a.addGlobalMethodHandler("toggleChecked",this.vg.bind(this))}sg(a){if(!a.satisfiesTrust(2))return null;let b=a.args,c=a.method,d=a.node,e=yb(d);switch(c){case"pushState":case"setState":return Rc(d.nodeType===Node.DOCUMENT_NODE?d.documentElement:d).then((f=>{H(f,"AMP-BIND is not installed.");return f.invoke(a)}));case"navigateTo":return Wi(this,a);case"closeOrNavigateTo":return Xi(this,a);case"scrollTo":return H(b.id,"AMP.scrollTo must provide element ID"),a.node=Bc(d).getElementById(b.id),this.ff(a);case"goBack":return O(this.ampdoc,"history").goBack(!(!b||!0!==b.navigate)),null;case"print":return e.print(),null;case"optoutOfCid":return Gc(this.ampdoc,"cid").then((f=>f.optOut())).catch((f=>{G().error("STANDARD-ACTIONS","Failed to opt out of CID",f)}))}throw F().createError("Unknown AMP action ",c)}ff(a){let b=a.node;let c=(a=a.args)&&a.position,d=a&&a.duration;c&&!["top","bottom","center"].includes(c)&&(c=void 0);Na(d)||(d=void 0);return this.J.animateScrollIntoView(b,c,d)}tg(a){try{a.node.focus()}catch(b){}return null}df(a){let b=a.node;b.classList.contains("i-amphtml-element")?this.Va.mutateElement(b,(()=>b.collapse()),!0):this.Va.mutateElement(b,(()=>bd(b,!1)));return null}gf(a){let b=a.node,c=yb(b);if(b.classList.contains("i-amphtml-layout-nodisplay"))return null;this.Va.measureElement((()=>{"none"==(c.getComputedStyle(b)||Yc).display&&b.hasAttribute("hidden")}));let d=Ui(b);d&&M(c,"platform").isIos()?(Yi(b,d),this.Va.mutateElement(b,(()=>{}))):this.Va.mutateElement(b,(()=>{Yi(b,d)}));return null}xg(a){return a.node.hasAttribute("hidden")?this.gf(a):this.df(a)}wg(a){let b=a.node,c=a.args,d=F().assertString(c["class"],"Argument 'class' must be a string.");if(Vi.test(d))return null;this.Va.mutateElement(b,(()=>{if(void 0!==c.force){let e=F().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.classList.toggle(d,e)}else b.classList.toggle(d)}));return null}vg(a){let b=a.node,c=a.args;this.Va.mutateElement(b,(()=>{if(void 0!==c.force){let d=F().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.checked=d}else b.checked=!0===b.checked?!1:!0}));return null}}function $i(a){a.h.onBroadcast((b=>{"amp-storage-reset"==b.type&&b.origin==a.pc&&(a.Ec=null)}))}function aj(a){a.Ec||(a.Ec=a.j.loadBlob(a.pc).then((b=>b?JSON.parse(atob(b)):{})).catch((b=>{G().expectedError("Storage","Failed to load store: ",b);return{}})).then((b=>new bj(b))));return a.Ec}function cj(a,b){return aj(a).then((c=>{b(c);c=btoa(JSON.stringify(c.obj));return a.j.saveBlob(a.pc,c)})).then(a.eg.bind(a))}class dj{constructor(a,b,c){this.ampdoc=a;this.h=b;this.j=c;this.Mg=c instanceof ej;this.pc=ye(this.ampdoc.win.location);this.Ec=null}get(a,b){return aj(this).then((c=>c.get(a,b)))}set(a,b,c){return this.setNonBoolean(a,b,c)}setNonBoolean(a,b,c){return cj(this,(d=>d.set(a,b,c)))}remove(a){return cj(this,(b=>b.remove(a)))}isViewerStorage(){return this.Mg}eg(){this.h.broadcast({type:"amp-storage-reset",origin:this.pc})}}class bj{constructor(a){this.obj=ma(a);this.Qg=8;this.Ba=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.Ba)}get(a,b){let c=(a=this.Ba[a])?a.t:void 0,d=b&&void 0!=c?c+b>Date.now():!0;return a&&d?a.v:void 0}set(a,b,c){if(void 0!==this.Ba[a]){a=this.Ba[a];let d=Date.now();c&&(d=a.t);a.v=b;a.t=d}else this.Ba[a]=y({v:b,t:Date.now()});b=Object.keys(this.Ba);if(b.length>this.Qg){let d=1/0,e=null;for(c=0;c{this.Hd?b(this.win.localStorage.getItem(`amp-store:${a}`)):b(null)}))}saveBlob(a,b){return new Promise((c=>{this.Hd&&this.win.localStorage.setItem(`amp-store:${a}`,b);c()}))}}class ej{constructor(a){this.h=a}loadBlob(a){return this.h.sendMessageAwaitResponse("loadStore",y({origin:a})).then((b=>b.blob))}saveBlob(a,b){return this.h.sendMessageAwaitResponse("saveStore",y({origin:a,blob:b})).catch((c=>{throw G().createExpectedError("Storage","Failed to save store: ",c)}))}}function gj(a){L(a,"storage",(function(){var b=O(a,"viewer");let c=parseInt(b.getParam("storage"),10)?new ej(b):new fj(a.win);b=new dj(a,b,c);$i(b);return b}),!0)}let hj=()=>{};function ij(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);c="";var d=b.tagName;"TEMPLATE"==d?c=b.getAttribute("type"):"SCRIPT"==d&&(c=b.getAttribute("template"));H(c,"Type must be specified: %s",b);if(d=b.__AMP_WAIT_)return d;d=jj(a,c).then((e=>{let f=b.__AMP_IMPL_=new e(b,a.B.win);delete b.__AMP_WAIT_;return f}));return b.__AMP_WAIT_=d}function jj(a,b){if(a.Vb[b])return a.Vb[b];var c=new v;let d=c.promise;c=c.resolve;a.Vb[b]=d;a.je[b]=c;return d}class kj{constructor(a){this.B=a;this.Vb={};this.je={}}whenReady(a){return ij(this,a).then(hj)}setHtmlForTemplate(a,b){return ij(this,a).then((c=>c.setHtml(b)))}renderTemplate(a,b){return ij(this,a).then((c=>c.render(b)))}renderTemplateAsString(a,b){return ij(this,a).then((c=>c.renderAsString(b)))}renderTemplateArray(a,b){return 0==b.length?Promise.resolve([]):ij(this,a).then((c=>b.map((d=>c.render(d)))))}findAndRenderTemplate(a,b,c){return this.renderTemplate(this.findTemplate(a,c),b)}findAndSetHtmlForTemplate(a,b,c){return this.setHtmlForTemplate(this.findTemplate(a,c),b)}findAndRenderTemplateArray(a,b,c){return this.renderTemplateArray(this.findTemplate(a,c),b)}hasTemplate(a,b){return!!this.maybeFindTemplate(a,b)}findTemplate(a,b){b=this.maybeFindTemplate(a,b);H(b,"Template not found for %s",a);let c=b.tagName;H("TEMPLATE"==c||"SCRIPT"==c&&"text/plain"===b.getAttribute("type"),'Template must be defined in a