self.AMP_CONFIG={"v":"012111242025001","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};/*AMP_CONFIG*/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":1,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"story-ad-page-outlink":0.02};/*AMP_EXP*/var global=self;self.AMP=self.AMP||[];try{(function(_){if(self.AMP&&!Array.isArray(self.AMP))return;"use strict";function aa(){return"2111242025001"}class ba{constructor(){this.Xa=new ca}abort(){this.Xa.wd||(this.Xa.wd=!0,this.Xa.lc&&this.Xa.lc({type:"abort",bubbles:!1,cancelable:!1,target:this.Xa,currentTarget:this.Xa}))}get signal(){return this.Xa}}class ca{constructor(){this.wd=!1;this.lc=null}get aborted(){return this.wd}get onabort(){return this.lc}set onabort(a){this.lc=a}}let da;function q(){return da?da:da=Promise.resolve(void 0)}class u{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 ia(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 ja(a){let b=ha.apply(null,arguments);b.expected=!0;return b}let ka=Object.prototype.hasOwnProperty,la=Object.prototype.toString;function na(a){return"[object Object]"===la.call(a)}function v(a){let b=Object.create(null);a&&Object.assign(b,a);return b}function x(a){return a||{}}function oa(a){let b=v();for(let c in a){if(!ka.call(a,c))continue;let d=a[c];b[c]=na(d)?oa(d):d}return b}function pa(a,b,c){b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c;return a}pa["default"]=pa;pa.__esModule=!0;function y(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 Da(a,b,c,d,e){z(e)?a(c,e.concat([b])):a(c,`${e||d}: %s`,b);return b}function A(a,b,c,d,e){return Ca("​​​",a,b,c,d,e,void 0,void 0,void 0,void 0,void 0,void 0)}function Ea(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 Ia(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 Ja(a,b,c){function d(){e=0;let h=c-(a.Date.now()-f);if(0{};let Xa;function Ya(a){Xa=a}let Za=(a,b)=>b.reduce(((c,d)=>`${c}&s[]=${encodeURIComponent(String(Aa(d)))}`),`https://log.amp.dev/?v=${`01${aa()}`}&id=${encodeURIComponent(a)}`);function $a(a){var b;let c=a.win;return null!==(b=c.console)&&void 0!==b&&b.log&&0!=parseInt(Ma(c).log,10)?a.Fg(parseInt(Ma(void 0).log,10),!1):0}function ab(a,b,c,d){var e,f;if(c>(null!==(e=Xa)&&void 0!==e?e:a.Gg))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=z(d[0])?bb(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 cb(a,b){b=fa(b);a.Sb?b.message?-1==b.message.indexOf(a.Sb)&&(b.message+=a.Sb):b.message=a.Sb:Ba(b.message)&&(b.message=b.message.replace("​​​",""));return b}function bb(a,b){var c;let d=b.shift();return null!==(c=a.Id)&&void 0!==c&&c[d]?[a.Id[d]].concat(b):[`More info at ${Za(d,b)}`]}class db{constructor(a,b,c=""){this.win=a;this.Fg=b;this.Gg=$a(this);this.Sb=c;this.Id=null;this.wh=Ha((()=>{a.fetch(`${D.cdn}/rtv/${`01${aa()}`}/log-messages.simple.json`).then((d=>d.json()),Wa).then((d=>{d&&(this.Id=d)}))}));this.ob=this.assert.bind(this)}fine(a,...b){ab(this,a,4,b)}info(a,...b){ab(this,a,3,b)}warn(a,...b){ab(this,a,2,b)}error(a,...b){if(!ab(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(!ab(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 cb(this,ha.apply(null,arguments))}createExpectedError(a){return cb(this,ja.apply(null,arguments))}assert(a,b,c){return z(b)?this.assert.apply(this,[a].concat(bb(this,b))):Ca.apply(null,[this.Sb].concat(Array.prototype.slice.call(arguments)))}assertElement(a,b){return Da(this.ob,a,ya(a),"Element expected",b)}assertString(a,b){return Da(this.ob,a,"string"==typeof a,"String expected",b)}assertNumber(a,b){return Da(this.ob,a,"number"==typeof a,"Number expected",b)}assertArray(a,b){return Da(this.ob,a,z(a),"Array expected",b)}assertBoolean(a,b){return Da(this.ob,a,!!a===a,"Boolean expected",b)}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};let eb=self.__AMP_LOG;let fb=null;function gb(a,b){if(!fb)throw Error("failed to call initLogConstructor");return new fb(self,a,b)}function E(a){eb.user||(eb.user=hb("​​​"));var b=eb.user.win;return a&&a.ownerDocument.defaultView!=b?eb.userForEmbed||(eb.userForEmbed=hb("​​​​")):eb.user}function hb(a){return gb(((b,c)=>c||1<=b?4:2),a)}function F(){return eb.dev||(eb.dev=gb((a=>3<=a?4:2<=a?3:0)))}function G(a,b,c,d,e,f){return E().assert(a,b,c,d,e,f,void 0,void 0,void 0,void 0,void 0)}function ib(a){return(a.ownerDocument||a).defaultView} /* https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ function jb(a,b){return a.querySelector(b.replace(/^|,/g,"$&:scope "))}function lb(a,b){let c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1}function mb(a,b){for(;a&&void 0!==a;a=a.parentElement)if(b(a))return a;return null}function nb(a,b){return a.closest?a.closest(b):mb(a,(c=>lb(c,b)))}function ob(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function pb(a,b){let c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}function qb(a,b){/^[\w-]+$/.test(b);return jb(a,`> [${b}]`)}function rb(a){return pb(a,(b=>!sb(b)))}function sb(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 tb={bubbles:!0,cancelable:!0};function ub(a,b,c){if(b(a))c();else{let d=new(ib(a).MutationObserver)((()=>{b(a)&&(d.disconnect(),c())}));d.observe(a,{childList:!0})}}function vb(a,b){return new Promise((c=>{ub(a,b,c)}))}function wb(a,b){ub(a.documentElement,(()=>!!a.body),b)}function xb(a){return new Promise((b=>wb(a,b)))}function yb(a){var b;null===(b=a.parentElement)||void 0===b?void 0:b.removeChild(a)}function zb(a,b,c=null){c?a.insertBefore(b,c.nextSibling):a.insertBefore(b,a.firstChild)}function Ab(a){var b=x({src:"about:blank",style:"display:none"});a=a.createElement("iframe");for(let c in b)a.setAttribute(c,b[c]);return a}function Bb(a){let b=a.isConnected;if(void 0!==b)return b;do{if(a=Cb(a),a.host)a=a.host;else break}while(1);return a.nodeType===Node.DOCUMENT_NODE}function Cb(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 Db(a,b){let c=a;do{if(c.nextSibling)return!0}while((c=c.parentNode)&&c!=b);return!1}function Eb(a,b){let c=a.length;for(let d=0;d{}),{root:a.document}),!0}catch(b){return!1}}class Nb{constructor(a,b){this.Qa=a;this.mc=y({root:null,rootMargin:"0px 0px 0px 0px"},b);this.T=[];this.M=null;Nb._upgraders.push(this.he.bind(this))}get root(){return this.M?this.M.root:this.mc.root||null}get rootMargin(){return this.M?this.M.rootMargin:this.mc.rootMargin}get thresholds(){return this.M?this.M.thresholds:[].concat(this.mc.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))}he(a){let b=new a(this.Qa,this.mc);this.M=b;for(let c of this.T)b.observe(c);this.T.length=0}}Nb._upgraders=[];function Ob(){var a=Pb;!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 Yb(a){return new Promise((b=>{Wb(a,b)}))}function Zb(a){return new Promise((b=>{Xb(a,Vb,b)}))}let $b=["amp-mustache"];function ac(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 bc(a,b,c){let d=a.document.createElement("script");d.async=!0;b.startsWith("_")?c="":d.setAttribute(0<=$b.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=D.cdn;let f=Ua().rtvVersion;d.src=`${c}/rtv/${f}/v0/${b}${a?"-"+a:""}.mjs`;return d}function cc(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;gtc(b,d))))}}function tc(a,b){if("function"==typeof b.dispose)try{b.dispose()}catch(c){F().error("SERVICE","failed to dispose service",a,c)}}function kc(a,b){a=a.__AMP_SERVICES&&a.__AMP_SERVICES[b];return!(!a||!a.ctor)}function rc(){var a=new u;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 uc(a,b,c){return vc(a,b,c,void 0).then((d=>G(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 vc(a,b,c,d){let e=nc(a,b);if(e)return e;let f=gc(a);return f.whenExtensionsKnown().then((()=>{let g=f.getExtensionVersion(c);return g?L(f.win,"extensions").waitForExtension(c,g):null})).then((g=>g?d?nc(a,b):lc(a,b):null))}function wc(a){let b=jc(a,"bind");return b?Promise.resolve(b):vc(a,"bind","amp-bind")}function xc(a){return L(a,"ampdoc")}function yc(a){return L(a,"extensions")}var zc=a=>O(a,"documentInfo").get();class Q{constructor(){this.ma=null}add(a){this.ma||(this.ma=[]);this.ma.push(a);return()=>{this.remove(a)}}remove(a){this.ma&&va(this.ma,a)}removeAll(){this.ma&&(this.ma.length=0)}fire(a){if(this.ma)for(let b of this.ma)b(a)}getHandlerCount(){var a,b;return null!==(a=null===(b=this.ma)||void 0===b?void 0:b.length)&&void 0!==a?a:0}}class Ac{constructor(){this.Ha=v();this.Ja=null}get(a){a=this.Ha[a];return null==a?null:a}whenSignal(a){var b;let c=null===(b=this.Ja)||void 0===b?void 0:b[a];c||(b=this.Ha[a],c=null!=b?{promise:"number"==typeof b?Promise.resolve(b):Promise.reject(b)}:new u,this.Ja||(this.Ja=v()),this.Ja[a]=c);return c.promise}signal(a,b){var c;if(null==this.Ha[a]){var d=null!==b&&void 0!==b?b:Date.now();this.Ha[a]=d;a=null===(c=this.Ja)||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.Ha[a]&&(this.Ha[a]=b,a=null===(c=this.Ja)||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.Ha[a]&&delete this.Ha[a];let c=null===(b=this.Ja)||void 0===b?void 0:b[a];c&&!c.resolve&&delete this.Ja[a]}}let Bc;let Cc="Webkit webkit Moz moz ms O o".split(" "),Dc={getPropertyPriority:()=>"",getPropertyValue:()=>""};function Ec(a,b,c){if(b.startsWith("--"))return b;Bc||(Bc=v());let d=Bc[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;gLc(this.win.document,e)));this.ge()}dispose(){sc(this);this.fe.forEach((a=>a()))}isSingleDoc(){return null}getParent(){return this.pc}signals(){return this.C}getParam(a){a=this.tf[a];return null==a?null:a}getMeta(){if(this.na)return v(this.na);this.na=v();let a=this.win.document.head.querySelectorAll("meta[name]");Eb(a,(b=>{let c=b.getAttribute("name");b=b.getAttribute("content");c&&null!==b&&void 0===this.na[c]&&(this.na[c]=b)}));return v(this.na)}getMetaByName(a){if(!a)return null;a=this.getMeta()[a];return void 0!==a?a:null}setMetaByName(){}declaresExtension(a,b){let c=this.bd[a];return c?!b||c===b:!1}declareExtension(a,b){this.bd[a]=b}getExtensionVersion(a){return this.bd[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.ke!=a&&(this.ke=a,this.ge())}ge(){let a=Ic(this.win.document);let b="visible";for(let f=this.pc;f;f=f.getParent())if("visible"!=f.getVisibilityState()){b=f.getVisibilityState();break}let c;let d=this.ke||"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";if(this.Xb!=c){if("visible"==c){var e;let f=this.win.performance;let g=Math.floor(null!==(e=f.timeOrigin)&&void 0!==e?e:f.timing.navigationStart);null!=this.Xb&&(g+=Math.floor(f.now()));this.jf=g;this.C.signal("-ampdoc-first-visible",g);this.C.signal("-ampdoc-next-visible",g)}else this.C.reset("-ampdoc-next-visible");this.Xb=c;this.Pf.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.jf}getVisibilityState(){return this.Xb}isVisible(){return"visible"==this.Xb}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(a){return this.Pf.add(a)}registerSingleton(a){return this.vf[a]?!1:this.vf[a]=!0}}class Nc extends Qc{constructor(a,b){super(a,null,b);this.nb=this.win.document.body?Promise.resolve(this.win.document.body):xb(this.win.document).then((()=>this.getBody()));this.Nb=Yb(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.nb}isReady(){return Ub(this.win.document)}whenReady(){return this.Nb}}class Oc extends Qc{constructor(a,b,c,d){super(a,null,d);this.Vb=b;this.Cf=c;this.Rc=null;let e=new u;this.nb=e.promise;this.te=e.resolve;this.Pb=!1;let f=new u;this.Nb=f.promise;this.Ob=f.resolve}isSingleDoc(){return!1}getRootNode(){return this.Cf}getUrl(){return this.Vb}getHeadNode(){return this.Cf}isBodyAvailable(){return!!this.Rc}getBody(){return this.Rc}setBody(a){this.Rc=a;this.te(a);this.te=void 0}waitForBodyOpen(){return this.nb}isReady(){return this.Pb}setReady(){this.Pb=!0;this.Ob();this.Ob=void 0}whenReady(){return this.Nb}getMeta(){return v(this.na)}setMetaByName(a,b){this.na||(this.na=v());this.na[a]=b}}class Pc extends Qc{constructor(a,b,c,d){super(a,c,d);this.Vb=b;this.nb=this.win.document.body?Promise.resolve(this.win.document.body):xb(this.win.document).then((()=>this.getBody()));this.Pb=!1;a=new u;this.Nb=a.promise;this.Ob=a.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.Vb}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.nb}isReady(){return this.Pb}whenReady(){return this.Nb}setReady(){this.Pb=!0;this.Ob();this.Ob=void 0}}function Rc(){var a=self;J(a,"ampdoc",(function(){return new Mc(a)}))}let Sc=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function Tc(a){if("nodisplay"===a||"fixed"===a||"fixed-height"===a||"responsive"===a||"container"===a||"fill"===a||"flex-item"===a||"fluid"===a||"intrinsic"===a)return a}function Uc(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function Vc(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 Wc(a){A(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return A(/[a-z]+/i.exec(a),"Failed to read units from %s",a)[0]}function Xc(a){a=parseFloat(a);return za(a)?a:void 0}function Yc(a,b){a.classList.add("i-amphtml-fill-content");b&&a.classList.add("i-amphtml-replaced-content")}function Zc(a,b,c,d){let e=sa(a);for(let f of e)a=b.getAttribute(f),null!==a?c.setAttribute(f,a):d&&c.removeAttribute(f)}class $c{constructor(a,b){this.K=a;this.Qa=b;this.Ea={};this.Mb=null}start(){this.Mb=this.Ea;this.Ea={}}resolveMatchQuery(a){return"1"===this.wc(a,ad,"1")}resolveListQuery(a){return this.wc(a,bd,"")}complete(){for(let a in this.Mb)a in this.Ea||cd(this.Mb[a],this.Qa,!1);this.Mb=null}dispose(){for(let a in this.Ea)cd(this.Ea[a],this.Qa,!1);this.Ea={}}wc(a,b,c){if(!a.trim())return c;var d=this.Ea[a]||this.Mb[a];d||(d=b(this.K,a),cd(d,this.Qa,!0));this.Ea[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 cd(a,b,c){for(let d=0;d'],id={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function jd(a){let b=Tc(a.getAttribute("layout"));return b?b:kd(a).layout}function kd(a){let b=a.getAttribute("layout"),c=a.getAttribute("width"),d=a.getAttribute("height"),e=a.getAttribute("sizes"),f=a.getAttribute("heights"),g=b?Tc(b):null;A(void 0!==g,'Invalid "layout" value: %s, %s',b,a);let h=c&&"auto"!=c?Vc(c):c;A(void 0!==h,'Invalid "width" value: %s, %s',c,a);let k=d&&"fluid"!=d?Vc(d):d;A(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===id[l]);if(l){l=h;var m=k}else{l=a.tagName.toUpperCase();if(!id[l]){m=a.ownerDocument;var n=l.replace(/^AMP\-/,"");n=m.createElement(n);n.controls=!0;Gc(n,{position:"absolute",visibility:"hidden"});m.body.appendChild(n);id[l]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"};m.body.removeChild(n)}m=id[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||A(m,'The "height" attribute is missing: %s',a);"fixed-height"==n&&A(!l||"auto"==l,'The "width" attribute must be missing or "auto": %s',a);"fixed"!=n&&"responsive"!=n&&"intrinsic"!=n||A(l&&"auto"!=l,'The "width" attribute must be present and not "auto": %s',a);"responsive"==n||"intrinsic"==n?A(Wc(l)==Wc(m),'Length units should be the same for "width" and "height": %s, %s, %s',c,d,a):A(null===f,'"heights" attribute must be missing: %s',a);return{layout:n,width:l,height:m}}function ld(){let a=md();return b=>setTimeout(b,a())}function md(){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 sd;function td(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=ud(),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 ud(){if(void 0!==sd)return sd;sd=!1;try{let a={get capture(){sd=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(a){}return sd}function vd(a,b,c,d){return td(a,b,c,d)}function wd(a,b,c,d){let e=c;let f=td(a,b,(g=>{try{e(g)}finally{e=null,f()}}),d);return f}function xd(a,b){let c;let d=new Promise((e=>{c=wd(a,"click",e,void 0)}));d.then(c,c);b&&b(c);return d}function yd(a){return!!(a.complete||"complete"==a.readyState||zd(a)&&0{b=d?wd(a,"loadedmetadata",e,{capture:!0}):wd(a,"load",e);if(a.tagName){var g=a;if(d&&!a.hasAttribute("src")&&(g=ob(a,(h=>"SOURCE"===h.tagName)),!g))return f(Error("Media has no source."));c=wd(g,"error",f)}})).then((()=>{c&&c();return a}),(()=>{b&&b();zd(a)&&(a.__AMP_MEDIA_LOAD_FAILURE_SRC=a.currentSrc||!0);let e=a;e&&e.src&&(e=e.src);throw E().createError("Failed to load:",e)}))}function zd(a){return"AUDIO"===a.tagName||"VIDEO"===a.tagName}let Bd={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment","amp-story-render":"amp-story[standalone]"};function Cd(a){let b=Dd(a).map((c=>{let d=mc(a,c).then((e=>e&&"function"==typeof e.whenReady?e.whenReady().then((()=>e)):e));return M(a).timeoutPromise(3e3,d,`Render timeout waiting for service ${c} to be ready.`)}));return Promise.all(b)}function Dd(a){let b=a.document;return Object.keys(Bd).filter((c=>b.querySelector(Bd[c])))}function Ed(a,b,c,d){let e=a.getHeadNode(),f=Fd(e,Gd(e,b),d||null);if(c){let h=a.getRootNode();if(Hd(h,f))c(f);else var g=setInterval((()=>{Hd(h,f)&&(clearInterval(g),c(f))}),4)}}function Fd(a,b,c){let d=a.__AMP_CSS_SM;d||(d=a.__AMP_CSS_SM=v());let e=c&&"amp-custom"!=c&&"amp-keyframes"!=c,f=e?`amp-extension=${c}`:null;if(f){let k=Id(a,d,f);if(k)return"STYLE"==k.tagName&&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=Id(a,d,"amp-runtime")):(c&&g.setAttribute(c,""),h=a.lastChild);zb(a,g,h);f&&(d[f]=g);return g}function Id(a,b,c){return b[c]?b[c]:(a=a.querySelector(`style[${c}], link[${c}]`))?b[c]=a:null}function Gd(a,b){return(a=a.__AMP_CSS_TR)?a(b):b}let Jd=!1;function Kd(){var a=self.document;let b=a.defaultView;xb(a).then((()=>Cd(b))).catch((c=>{ia(c);return[]})).then((c=>{Jd=!0;a.body.getBoundingClientRect();Ld(a);gc(a).signals().signal("render-start");0"string"==typeof a?S(a):a;function S(a){Od||(Od=self.document.createElement("a"));return Rd(Od,a)}function Rd(a,b){a.href="";return new URL(b,a.href)}function Sd(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 Td(a,b){return`${encodeURIComponent(a)}=${encodeURIComponent(b)}`}function Ud(a,b){return Sd(a,Vd(b))}function Vd(a){let b=[];for(let c in a){let d=a[c];if(null!=d){d=sa(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?U(b.reason||Error("rejected promise "+b)):b.preventDefault()}))}function ie(a,b,c,d,e){!this||!this.document||e&&e.expected||Md(this.document);let f=!1;try{f=me()}catch(h){}if(!(f&&.01{try{return oe(this,g).catch((()=>{}))}catch(h){}}))}}function oe(a,b){return b.pt&&.9>Math.random()?q():pe(a,b).then((c=>{if(!c){let d=new XMLHttpRequest;d.open("POST",.1>Math.random()?D.betaErrorReporting:D.errorReporting,!0);d.send(JSON.stringify(b))}}))}function pe(a,b){a=xc(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",x({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 ne(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.Cb=!1;this.G=1;this.element.signals().signal("res-built")}),(a=>{this.maybeReportErrorOnBuildFailure(a);this.Cb=!1;this.element.signals().rejectSignal("res-built",a);throw a}))}maybeReportErrorOnBuildFailure(a){ke(a)||F().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.Td={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)}resetPendingChangeSize(){this.Td=void 0}getPendingChangeSize(){return this.Td}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(!(this.Cg&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.Cd=!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)||Dc).position){e=!0;break}}}if(this.dc=e)this.Y=Ib(this.Y,-d.getScrollLeft(),-d.getScrollTop());var b=this.Y,c=!(a.width==b.width&&a.height===b.height);(1==this.G||a.top!=b.top||c)&&this.element.isUpgraded()&&(1==this.G?this.G=2:4!=this.G&&5!=this.G||!this.element.isRelayoutNeeded()||(this.G=2));this.hasBeenMeasured()||(this.sd=b);this.element.updateLayoutBox(b,c)}else this.G=1}ensureMeasured(){return this.hasBeenMeasured()?q():L(this.hostWin,"vsync").measure((()=>this.measure()))}completeCollapse(){Hc(this.element,!1);this.Y=I(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(){Hc(this.element,!0);this.requestMeasure()}isMeasureRequested(){return this.Cd}hasBeenMeasured(){return!!this.sd}requestMeasure(){this.Cd=!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 Ib(this.Y,a.getScrollLeft(),a.getScrollTop())}getInitialLayoutBox(){return this.sd||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{L(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(je())})).then((()=>re(this,!0,a)),(b=>re(this,!1,a,b)))}isLayoutPending(){return 4!=this.G&&5!=this.G}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Hg}isInViewport(){this.Ad&&qe(this);return this.Ad}setInViewport(a){this.Ad=a}unlayout(){0!=this.G&&1!=this.G&&2!=this.G&&(this.$a&&(this.$a.abort(),this.$a=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.G=1,this.ua=0,this.Hb=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 te(a,b){for(let c=0;cue(a,d)))}function ye(a,b){let c=a.ib;c?(c.includes(b)||c.push(b),ve(a)):ue(a,b)}function we(a){a.B.isReady()&&!a.yf&&(a.yf=!0,a.B.win.setTimeout((()=>{a.B.signals().signal("ready-scan")}),50))}function ue(a,b){var c=a.ib;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 ze{constructor(a){this.B=a;let b=a.win;this.Od=new b.IntersectionObserver((c=>te(this,c)),{root:H(b)?b.document:null,rootMargin:"250% 31.25%"});this.Ca=new Map;this.aa=new Map;this.ib=[];this.yf=!1;a.whenReady().then((()=>ve(this)));this.le=a.onVisibilityChanged((()=>xe(this)))}dispose(){this.Od.disconnect();this.aa.clear();this.le&&(this.le(),this.le=null)}scheduleAsap(a){this.aa.set(a,{asap:!0,isIntersecting:!1});ye(this,a)}schedule(a){this.aa.has(a)||(a.deferredMount()?(this.aa.set(a,{asap:!1,isIntersecting:!1}),this.Od.observe(a),0{a!==c&&c.contains(a)&&b.observe(a)}))):this.aa.set(a,{asap:!1,isIntersecting:!0}),ye(this,a))}unschedule(a){this.aa.has(a)&&(this.aa.delete(a),this.Od.unobserve(a),0{b.unobserve(a)})),this.ib&&(va(this.ib,a),ve(this)))}setContainer(a,b){if(!this.Ca.has(a)){var c=new this.B.win.IntersectionObserver((d=>te(this,d)),{root:b||a,rootMargin:"250% 31.25%"});this.Ca.set(a,c);this.aa.forEach((({asap:d},e)=>{!d&&e!==a&&a.contains(e)&&c.observe(e)}))}}removeContainer(a){let b=this.Ca.get(a);b&&(b.disconnect(),this.Ca.delete(a))}}function Ae(a){K(a,"scheduler",ze);return O(a,"scheduler")}class Be{constructor(){this.J=[]}peek(){let a=this.length;return a?this.J[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.J[c].priority=b)e=c-1;else break}this.J.splice(c,0,{item:a,priority:b})}forEach(a){let b=this.length;for(;b--;)a(this.J[b].item)}dequeue(){return this.length?this.J.pop().item:null}get length(){return this.J.length}}let Ce=/nochunking=1/.test(self.location.hash);let De=q();function Ee(a){K(a,"chunk",Fe);return O(a,"chunk")}function Ge(a,b,c){if(Ce)De.then(b);else{var d=Ee(a.documentElement||a);d.runForStartup(b);c&&d.runForStartup((()=>{d.se=!0}))}}function He(a,b){Ce?De.then(b):Ee(a).run(b,10)}function Ie(a,b){if("run"!=a.state){a.state="run";try{a.hd(b)}catch(c){throw a.sf(),c}}}class Je{constructor(a){this.state="not_run";this.hd=a}xh(){return this.hd.displayName||this.hd.name}sf(){}cf(){return!1}Nf(){return!1}}class Ke extends Je{constructor(a,b){super(a);this.Je=b}sf(){Md(self.document)}cf(){return this.Je.ampdoc.isVisible()}Nf(){return this.Je.Ne}}function Le(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 Me(a){a.K.postMessage("amp-macro-task","*")}function Ne(a){a.se&&(a.kh?a.K.navigator.scheduling.isInputPending():5{a.ue(null)}))}class Fe{constructor(a){this.ampdoc=a;this.K=a.win;this.N=new Be;this.ue=this.Te.bind(this);this.vb=0;this.kh=!(!this.K.navigator.scheduling||!this.K.navigator.scheduling.isInputPending);this.yc=!1;this.se=this.K.document.documentElement.hasAttribute("i-amphtml-no-boilerplate");this.K.addEventListener("message",(b=>{"amp-macro-task"==b.data&&this.Te(null)}));this.Ne=!1;lc(a,"viewer").then((()=>{this.Ne=!0}));a.onVisibilityChanged((()=>{a.isVisible()&&this.wa()}))}run(a,b){a=new Je(a);this.N.enqueue(a,b);this.wa()}runForStartup(a){a=new Ke(a,this);this.N.enqueue(a,Number.POSITIVE_INFINITY);this.wa()}Te(a){let b=Le(this,!0);if(!b)return this.yc=!1,this.vb=0,!1;let c;try{c=Date.now(),Ie(b,a)}finally{De.then().then().then().then().then().then().then().then().then((()=>{this.yc=!1;this.vb+=Date.now()-c;this.wa()}))}return!0}wa(){if(!this.yc){var a=Le(this);a&&(a.cf()?(this.yc=!0,Ne(this)):a.Nf()&&this.K.requestIdleCallback?Oe(this.K,this.ue):Me(this))}}}function Oe(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 Pe{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=ib(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 L(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"==Ua(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(a,b){this.element.setReadyStateInternal(a,b)}mountCallback(){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return q()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(a){return Ad(a)}registerAction(a,b,c=2){Qe(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);Qe(this);let c=this.actionMap_[b];G(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=(z(a)?a:[a]).map((d=>vd(b,d,(e=>{Fb(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 E(this.element)}getApi(){return this}}function Qe(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}class Re extends Pe{}let Se=Date.now();let Te={bubbles:!1},Ue=()=>!0;let Ve;let We=[],Xe=new Set;function Ye(a){let b=Ze(a);class c extends b{adoptedCallback(){Object.getPrototypeOf(this)!==d&&Object.setPrototypeOf(this,d)}}let d=c.prototype;return c}function Ze(a){var b=$e;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.Ga=this.Wc=!1;this.Pa=null;this.Jd=!1;this.fa=this.Ia=null;this.Va="upgrading";this.everAttached=!1;this.o=this.B=null;this.ea="nodisplay";this.ua=0;this.zd=!1;this.warnOnMissingOverflow=!0;this.layoutScheduleTime=this.ga=this.sizerElement=void 0;var e=a.__AMP_EXTENDED_ELEMENTS&&a.__AMP_EXTENDED_ELEMENTS[this.localName];(this.L=e===Re?null:e||null)||We.push(this);this.A=null;this.lb=1;this.Lf=0;this.bb=this.Oa=void 0;this.C=new Ac;this.L&&this.C.signal("ready-upgrade");e=a;e=ec(e);this.yh=(e=kc(e,"performance")?ic(e,"performance"):null)&&e.isPerformanceTrackingOn();this.eb=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)}get readyState(){return this.Va}signals(){return this.C}getAmpDoc(){return this.B}getResources(){return this.o}isUpgraded(){return 2==this.lb}whenUpgraded(){return this.C.whenSignal("upgraded")}upgrade(e){this.bb||1!=this.lb||(this.L=e,this.C.signal("ready-upgrade"),this.everAttached&&this.Kc())}markUnresolved(){this.L||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Lf}$c(e,f){this.A=e;this.Lf=a.Date.now()-f;this.lb=2;this.setReadyStateInternal("building");this.classList.remove("amp-unresolved","i-amphtml-unresolved");this.Tf();this.la("amp:attached");this.R1()||this.getResources().upgraded(this);this.C.signal("upgraded")}Tf(){"nodisplay"!=this.ea&&this.A&&!this.A.isLayoutSupported(this.ea)&&(G(this.getAttribute("layout"),"The element did not specify a layout attribute. Check https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details."),G(!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.Pa}isBuilt(){return this.Wc}whenBuilt(){return this.C.whenSignal("built")}buildInternal(){if(this.Pa)return this.Pa;this.setReadyStateInternal("building");let e=this.Oe();this.jd();return this.Pa=e.then((()=>{let f=this.ig(),g=f?null:this.jg();if(f||g)return vc(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.Wc=!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.Va?this.Va:"mounting"):(this.setReadyStateInternal("loading"),this.preconnect(!1));this.Ga&&this.Me();this.Oa&&M(ib(this)).delay(this.bg.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);ke(f)||U(f,this);throw f}))}build(){return this.Pa?this.Pa:this.C.whenSignal("ready-upgrade").then((()=>{this.R1()&&Ae(this.getAmpDoc()).scheduleAsap(this);return this.whenBuilt()}))}mountInternal(){if(this.Ia)return this.Ia;this.fa=this.fa||new AbortController;let e=this.fa.signal;return this.Ia=this.buildInternal().then((()=>{this.R1();if(!e.aborted){this.setReadyStateInternal("mounting"!=this.Va?this.Va:this.L.usesLoading(this)?"loading":"mounting");this.Jd=!0;var f=this.A.mountCallback(e);return f?f.then(Ue):!1}})).then((f=>{this.fa=null;if(e.aborted)throw je();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.Ia=null:(this.C.rejectSignal("mounted",f),this.setReadyStateInternal("error",f));throw f}))}mount(){if(this.Ia)return this.Ia;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 je();Ae(this.getAmpDoc()).scheduleAsap(this);return this.whenMounted()}))}unmount(){this.Ga&&this.pause();this.R1()?(this.fa&&(this.fa.abort(),this.fa=null),Ae(this.getAmpDoc()).unschedule(this),this.Jd&&this.A.unmountCallback(),this.Jd=!1,this.Ia=null,this.Wd(),this.Ga&&this.Kc(!0)):this.Jf()}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.Fa();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){Ae(this.getAmpDoc()).setContainer(this,e)}removeAsContainerInternal(){Ae(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(e,f){if(e!==this.Va&&(this.Va=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.la("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);Fb(this,"load",null,Te);this.la("amp:load-end");break;case"error":this.C.rejectSignal("load-end",f),this.toggleLoading(!1),Fb(this,"error",f,Te)}}preconnect(e){this.isUpgraded();e?this.A.preconnectCallback(e):Ge(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){U(e,this)}}jd(){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}ah(e){if("responsive"===this.ea)R(e,"paddingTop","0");else if("intrinsic"===this.ea){let f=e.querySelector(".i-amphtml-intrinsic-sizer");f&&f.setAttribute("src","")}}ug(){let e=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),f=this.ownerDocument.defaultView;e!=!!this.eb&&f&&(e?(this.eb=new $c(f,(()=>this.qe())),this.qe()):this.Qe())}Qe(){this.eb&&(this.eb.dispose(),this.eb=null)}qe(){let e=this.eb;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&&R(this,"width",e.resolveListQuery(h));if(h="responsive"===this.ea?this.getAttribute("heights"):null){let k=this.jd();k&&R(k,"paddingTop",e.resolveListQuery(h))}e.complete();this.Fa().requestMeasure()}}applySize(e,f,g){let h=this.jd();h&&(this.sizerElement=null,this.ah(h),this.Lg((()=>{h&&yb(h)})));void 0!==e&&R(this,"height",e,"px");void 0!==f&&R(this,"width",f,"px");g&&(null!=g.top&&R(this,"marginTop",g.top,"px"),null!=g.right&&R(this,"marginRight",g.right,"px"),null!=g.bottom&&R(this,"marginBottom",g.bottom,"px"),null!=g.left&&R(this,"marginLeft",g.left,"px"));this.wg()&&this.ih();Fb(this,"amp:size-changed")}connectedCallback(){void 0===Ve&&(Ve="content"in self.document.createElement("template"));Ve||void 0!==this.bb||(this.bb=!!nb(this,"template"));if(!this.bb&&!this.Ga&&Bb(this)){this.Ga=!0;this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt");if(!this.B){var e=ib(this);this.B=e=xc(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.Wd();this.isUpgraded()&&(m&&!this.R1()&&this.getResources().upgraded(this),this.Me(),this.la("amp:attached"));this.L&&this.R1()&&this.Kc()}else{this.everAttached=!0;try{{let m=this.getAttribute("i-amphtml-layout");if(m){let n=Tc(m);if("responsive"!=n&&"intrinsic"!=n||!this.firstElementChild)"nodisplay"==n&&Hc(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}=kd(this);this.classList.add("i-amphtml-layout-"+k);Uc(k)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==k)Hc(this,!1);else if("fixed"==k)Gc(this,{width:l,height:h});else if("fixed-height"==k)R(this,"height",h);else if("responsive"==k){let n=this.ownerDocument.createElement("i-amphtml-sizer");n.setAttribute("slot","i-amphtml-svc");Gc(n,{paddingTop:Xc(h)/Xc(l)*100+"%"});this.insertBefore(n,this.firstChild);this.sizerElement=n}else if("intrinsic"==k){let n=fd(this)(hd);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&&R(this,"width",l),h&&R(this,"height",h)):"fluid"==k&&(this.classList.add("i-amphtml-layout-awaiting-size"),l&&R(this,"width",l),R(this,"height",0)));this.setAttribute("i-amphtml-layout",k);g=k}}this.ea=g;this.ug()}catch(m){U(m,this)}this.L?this.Kc():(Xe.has("*")||Xe.has(this.tagName.toLowerCase()))&&this.markUnresolved();this.isUpgraded()||this.la("amp:stubbed")}this.toggleLoading(!0)}}wg(){return this.classList.contains("i-amphtml-layout-awaiting-size")}ih(){this.classList.remove("i-amphtml-layout-awaiting-size")}Kc(e){if(!this.R1())this.If();else if(!this.Ia)if(Ae(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Pa)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=L(h,"preconnect");f.forEach((l=>k.url(g,l,!1)))}}))}}}If(){if(!this.bb&&1==this.lb){var e=new this.L(this);this.lb=4;var f=a.Date.now(),g=e.upgradeCallback();g?"function"==typeof g.then?g.then((h=>{this.$c(h||e,f)})).catch((h=>{this.lb=3;ia(h)})):this.$c(g,f):this.$c(e,f)}}disconnectedCallback(){this.disconnect(!1)}Me(){this.Wc&&this.A.attachedCallback()}disconnect(e){this.bb||!this.Ga||!e&&Bb(this)||(e&&this.classList.remove("i-amphtml-element"),this.Ga=!1,this.getResources().remove(this),this.A&&this.A.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.Qe())}la(){}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.Fa().getLayoutBox()}getLayoutSize(){return this.Fa().getLayoutSize()}getOwner(){return this.Fa().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=Gb(e,h,g)||I(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=Ib(f,-g.left,-g.top),e=Ib(e,-g.left,-g.top),l=Ib(l,-g.left,-g.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-Se,rootBounds:l,boundingClientRect:e,intersectionRect:f,intersectionRatio:k}}Fa(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.Fa().getId()}isRelayoutNeeded(){return this.A?this.A.isRelayoutNeeded():!1}getImpl(e=!0){return(e?this.build():this.Oe()).then((()=>this.A))}Oe(){return this.C.whenSignal("ready-upgrade").then((()=>{this.If();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(je());this.la("amp:load-start");let f=0==this.ua;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 je();f&&this.C.signal("load-end");this.setReadyStateInternal("complete");this.ua++;this.toggleLoading(!1);this.zd||(this.A.firstLayoutCompleted(),this.zd=!0,this.la("amp:load-end"))}),(h=>{if(e.aborted)throw je();f&&this.C.rejectSignal("load-end",h);this.setReadyStateInternal("error",h);this.ua++;this.toggleLoading(!1);throw h}))}pause(){this.isBuilt()&&(this.A.pauseCallback(),!this.R1()&&this.A.unlayoutOnPause()&&this.Jf())}resume(){this.isBuilt()&&this.A.resumeCallback()}unlayoutCallback(){if(!this.isBuilt())return!1;this.C.signal("unload");let e=this.A.unlayoutCallback();e&&this.Wd();this.la("amp:unload");return e}Jf(){this.Fa().unlayout();this.Ga&&this.o&&this.o.schedulePass()}Wd(){this.ua=0;this.zd=!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.Ue(e,!1):(void 0===this.Oa&&(this.Oa=[]),this.Oa.push(e),this.build())}bg(){if(this.Oa){var e=this.Oa;this.Oa=null;e.forEach((f=>{this.Ue(f,!0)}))}}Ue(e,f){try{this.A.executeAction(e,f)}catch(g){ia("Action execution failed:",g,e.node.tagName,e.method)}}ig(){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}jg(){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 ob(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)}Lg(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 af(a){Xe.add(a||"*");for(let b of We)null!=a&&b.tagName.toLowerCase()!==a||b.markUnresolved()}let bf=new WeakMap;function cf(a){a.__AMP_EXTENDED_ELEMENTS||(a.__AMP_EXTENDED_ELEMENTS={});return a.__AMP_EXTENDED_ELEMENTS}function df(a,b,c){let d=ef(a,c);d?d.then((()=>ff(a,b,c))):ff(a,b,c)}function ff(a,b,c){let d=cf(a);if(!d[b])gf(a,b,c);else if(d[b]!=c){G(d[b]==Re,"%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",(()=>af(b)));jf(a.win,b)}));a.isBodyAvailable()&&a.setExtensionsKnown()}function jf(a,b){cf(a)[b]||gf(a,b,Re)}function gf(a,b,c){cf(a)[b]=c;let d=Ye(a);a.customElements.define(b,d)}function $e(a,b,c){bf.has(a)||(bf.set(a,!0),hf(a));b=b.localName;c||a.declaresExtension(b)||yc(a.win).installExtensionForDoc(a,b,"0.1")}let kf="alt aria-describedby aria-label aria-labelledby crossorigin referrerpolicy title importance sizes srcset src".split(" ");function lf(a){!a.Yb&&a.F.classList.contains("i-amphtml-ghost")&&(a.F.classList.remove("i-amphtml-ghost"),a.toggleFallback(!1))}function mf(a){a.Yb&&(a.F.classList.add("i-amphtml-ghost"),a.toggleFallback(!0),a.togglePlaceholder(!1),a.Yb=!1)}class nf extends Pe{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.Ic=this.Jc=this.F=null;this.Df=0}mutatedAttributesCallback(a){if(this.F){let b=kf.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));Zc(b,this.element,this.F,!0);this.propagateDataset(this.F);nf.R1()&&!this.F.complete&&this.setReadyState("loading")}}preconnectCallback(a){var b=this.element.getAttribute("src");b?L(this.win,"preconnect").url(this.getAmpDoc(),b,a):(b=this.element.getAttribute("srcset"))&&(b=/\S+/.exec(b))&&L(this.win,"preconnect").url(this.getAmpDoc(),b[0],a)}isLayoutSupported(a){return Uc(a)}Bb(){if(this.F)return this.F;this.Yb=!this.element.hasAttribute("fallback");let a=this.element.hasAttribute("i-amphtml-ssr");a&&(this.F=jb(this.element,"> img:not([placeholder])"));this.F=this.F||new Image;this.F.setAttribute("decoding","async");this.element.id&&this.F.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.F&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.F.hasAttribute("sizes")){var b=this.element.getAttribute("srcset");if(b&&!/[0-9]+x(?:,|$)/.test(b)&&(({width:b}=this.element.getLayoutSize()),this.F.hasAttribute("sizes")?b>this.Df: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.F.setAttribute("sizes",d+e);this.Df=b}}Zc(kf,this.element,this.F);this.propagateDataset(this.F);Yc(this.F,!0);b=this.element;c=this.F;b.hasAttribute("object-fit")&&R(c,"object-fit",b.getAttribute("object-fit"));b.hasAttribute("object-position")&&R(c,"object-position",b.getAttribute("object-position"));a||this.element.appendChild(this.F);return this.F}reconstructWhenReparented(){return!1}mountCallback(){let a=!!this.F,b=this.Bb();a||(vd(b,"load",(()=>{this.setReadyState("complete");this.firstLayoutCompleted();lf(this)})),vd(b,"error",(c=>{this.setReadyState("error",c);mf(this)})));b.complete?(this.setReadyState("complete"),this.firstLayoutCompleted(),lf(this)):this.setReadyState("loading")}unmountCallback(){let a=this.F;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",yb(a),this.F=null)}ensureLoaded(){this.F.loading="eager"}layoutCallback(){this.Bb();let a=this.F;this.Jc=vd(a,"load",(()=>lf(this)));this.Ic=vd(a,"error",(()=>mf(this)));let{width:b}=this.element.getLayoutSize();return 0>=b?q():this.loadPromise(a)}unlayoutCallback(){if(!nf.R1()){this.Ic&&(this.Ic(),this.Ic=null);this.Jc&&(this.Jc(),this.Jc=null);var a=this.F;a&&!a.complete&&(a.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",yb(a),this.F=null);return!0}}firstLayoutCompleted(){let a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")?Fc(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 of(a){if(!a.hasAttribute("i-amphtml-ssr")&&"container"!=jd(a)){var b=a.ownerDocument.createElement("div");Yc(b);rb(a).forEach((c=>{b.appendChild(c)}));a.appendChild(b)}}class pf extends Pe{static prerenderAllowed(){return!0}isLayoutSupported(a){return"container"==a||Uc(a)}buildCallback(){of(this.element)}}function qf(a,b){if("referrerPolicy"in Image.prototype)return rf(a,b,!0);let c=Ab(a.document);c.onload=()=>{rf(c.contentWindow,b)};a.document.body.appendChild(c);return c}function rf(a,b,c=!1){a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a}function sf(a){G(/^(https:\/\/|\/\/)/i.test(a),'The src attribute must start with "https://" or "//". Invalid value: '+a);return a}class tf extends Pe{constructor(a){super(a);this.ee=null}isLayoutSupported(){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true");(this.tc=this.element.getAttribute("referrerpolicy"))&&G("no-referrer"==this.tc,`amp-pixel: invalid "referrerpolicy" value "${this.tc}". Only "no-referrer" is supported`);this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.ph.bind(this))}ph(){if(this.ee)return F().error("amp-pixel","duplicate pixel"),this.ee;this.ee=M(this.win).promise(1).then((()=>{let a=this.element.getAttribute("src");if(a)return jc(this.element,"url-replace").expandUrlAsync(sf(a)).then((b=>{if(this.win){var c=this.win,d=this.tc;d&&"no-referrer"!==d&&E().error("pixel","Unsupported referrerPolicy: %s",d);return"no-referrer"===d?qf(c,b):rf(c,b)}}))}))}}class uf{constructor(a,b,c){this.R=M(a);this.rg=b;this.ag=c||0;this.ra=-1;this.Nd=0;this.Wa=!1;this.Wf=()=>{this.rc()}}isPending(){return-1!=this.ra}schedule(a){let b=a||this.ag;this.Wa&&10>b&&(b=10);let c=Date.now()+b;return!this.isPending()||-10>c-this.Nd?(this.cancel(),this.Nd=c,this.ra=this.R.delay(this.Wf,b),!0):!1}rc(){this.ra=-1;this.Nd=0;this.Wa=!0;this.rg();this.Wa=!1}cancel(){this.isPending()&&(this.R.cancel(this.ra),this.ra=-1)}}function vf(a,b){let c=b.documentElement;return a.some((d=>c.hasAttribute(d)))}let wf="__AMP_ACTION_MAP__"+Math.random(),xf={form:["submit","clear"]},yf=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],zf={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 Af{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(!za(this.trust))return F().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=Ef(l.args,d,f),w=()=>{var r=Ff(a,p);if(r)return r=new Af(r,m,t,b,g.node,d,e,c,r.tagName||p,h),Gf(a,r);Hf(`Target "${p}" not found for action [${n}].`)};k=k?k.then(w):w()}));return 1<=g.actionInfos.length}function Gf(a,b){let c=b.method,d=b.tagOrTarget;if(a.da&&!If(b,a.da))return Hf(`"${d}.${c}" is not allowlisted ${JSON.stringify(a.da)}.`),null;let e=a.ld[d];if(e)return e(b);let f=b.node,g=a.We[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):Hf(`Unrecognized AMP element "${h}".`,f),null;let k=xf[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=ka.call(zf,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;Bf(b);this.trigger(c,a,b,3)}));else if("input-debounced"==a){let b=Ja(this.ampdoc.win,(c=>{this.trigger(c.target,a,c,3)}),300);this.V.addEventListener("input",(c=>{let d=new Lf(c);Bf(d);b(d)}))}else if("input-throttled"==a){let b=Ia(this.ampdoc.win,(c=>{this.trigger(c.target,a,c,3)}),100);this.V.addEventListener("input",(c=>{c=new Lf(c);Bf(c);b(c)}))}else"valid"!=a&&"invalid"!=a||this.V.addEventListener(a,(b=>{this.trigger(b.target,a,b,3)}))}addGlobalTarget(a,b){this.ld[a]=b}addGlobalMethodHandler(a,b,c=2){this.We[a]={handler:b,minTrust:c}}trigger(a,b,c,d,e){return Cf(this,a,b,c,d,e)}execute(a,b,c,d,e,f,g){a=new Af(a,b,c,d,e,f,g);Gf(this,a)}installActionHandler(a,b){"amp-"===(a.getAttribute("id")||"").substring(0,4)||a.tagName.toLowerCase();if(a.__AMP_ACTION_HANDLER__)F().error("Action",`Action handler already installed for ${a}`);else{a.__AMP_ACTION_HANDLER__=b;var c=a.__AMP_ACTION_QUEUE__;z(c)&&M(ib(a)).delay((()=>{c.forEach((d=>{try{b(d)}catch(e){F().error("Action","Action execution failed:",d,e)}}));a.__AMP_ACTION_QUEUE__.length=0}),1)}}hasAction(a,b,c){return!!Df(a,b,c)}hasResolvableAction(a,b,c){let d=Df(a,b,c);return d?d.actionInfos.some((e=>!!Ff(this,e.target))):!1}hasResolvableActionForTarget(a,b,c,d){return(a=Df(a,b,d))?a.actionInfos.some((e=>Ff(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.df||(this.da||(this.da=[]),z(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[wf]}}function If(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 Lf{constructor(a){this.detail=null;let b=this||v();for(let c in a)b[c]="function"===typeof a[c]?Mf:a[c]}}function Mf(){}function Jf(a,b){let c=Qf.bind(null,a,b),d=Rf.bind(null,a,b);b=null;let e=new Sf(a);let f,g;do{if(f=e.next(),f.type!=Tf&&(f.type!=X||";"!=f.value))if(f.type==Uf||f.type==Vf){let n=f.value;d(e.next(),[X],":");let p=[];do{let t=d(e.next(),[Uf,Vf]).value;let w="activate";var h=null;g=e.peek();if(g.type==X&&"."==g.value&&(e.next(),w=d(e.next(),[Uf,Vf]).value||w,g=e.peek(),g.type==X&&"("==g.value)){e.next();let r;h=e;var k=d,l=c,m=h.peek();let N=null;if(m.type==Wf)N=v(),({value:l}=h.next()),N.__AMP_OBJECT_STRING__=l,k(h.next(),[X],")");else do{r=h.next();m=r.type;let ma=r.value;if(m!=X||","!=ma&&")"!=ma)if(m==Uf||m==Vf){k(h.next(),[X],"=");r=k(h.next(!0),[Uf,Vf]);let kb=[r];if(r.type==Vf)for(m=h.peek();m.type==X&&"."==m.value;m=h.peek())h.next(),r=k(h.next(!1),[Vf]),kb.push(r);m=Xf(kb);N||(N=v());N[ma]=m;m=h.peek();l(m.type==X&&(","==m.value||")"==m.value),"Expected either [,] or [)]")}else l(!1,`; unexpected token [${r.value||""}]`)}while(r.type!=X||")"!=r.value);h=N}p.push({event:n,target:t,method:w,args:h,str:a});g=e.peek()}while(g.type==X&&","==g.value&&e.next());b||(b=v());b[n]=p}else c(!1,`; unexpected token [${f.value||""}]`)}while(f.type!=Tf);return b}function Xf(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map((b=>b.value)).join(".")}}function Ef(a,b,c){if(!a)return a;let d=c||x({});b&&(b=b.detail)&&(d.event=b);let e=v();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&&ka.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 Qf(a,b,c,d){return G(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}function Rf(a,b,c,d,e){void 0!==e?Qf(a,b,d.includes(c.type)&&c.value==e,`; expected [${e}]`):Qf(a,b,d.includes(c.type));return c}var Tf=1,X=2,Uf=3,Vf=4,Wf=5;function Yf(a,b){let c=a.qd+1;if(c>=a.O.length)return{type:Tf,index:a.qd};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:Tf,index:c};d=a.O.charAt(c)}if(b&&(Zf(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:Wf,value:a,index:c}}for(d=c+1;d=a}function $f(a){return!!a&&"function"==typeof a.getFormData}let ag=["GET","POST"],bg=[z,na];function cg(a,b){let c=y({},b);if($f(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 dg(a,b){A(na(a),"Object expected: %s",a);if("document"!=b)return new Response(a.body,a.init);let c=v(),d={status:200,statusText:"OK",getResponseHeader(e){return c[String(e).toLowerCase()]||null}};if(a.init){let e=a.init;z(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 eg(a,b,c,d){if(!b)return q();let e=d.prerenderSafe?q():b.whenFirstVisible(),f=O(b,"viewer"),g=T(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||nd(a,"untrusted-xhr-interception")){var m=x({originalRequest:cg(c,d)});return f.sendMessageAwaitResponse("xhr",m).then((n=>dg(n,d.responseType)))}}))}function fg(a,b,c){!1!==c.ampCors&&(b=de(a,b));return b}function gg(a,b){a=a||{};var c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),ag.includes(c));a.method=c;a.headers=a.headers||x({});b&&(a.headers.Accept=b);return a}function hg(a,b,c){c=c||{};let d=a.origin||S(a.location.href).origin;a=S(b).origin;d==a&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c}function ig(a){let b=gg(a,"application/json");"POST"!=b.method||$f(b.body)||(bg.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"]?Vd(b.body):JSON.stringify(b.body));return b}function jg(a){return new Promise((b=>{if(a.ok)return b(a);b=a.status;let c=E().createError(`HTTP error ${b}`);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c}))}function kg(a,b,c={}){b=fg(a.win,b,c);c=hg(a.win,b,c);return a.gg(b,c).then((d=>d),(d=>{let e=S(b).origin;throw E().createExpectedError("XHR",`Failed fetching (${e}/...):`,d&&d.message)}))}class lg{constructor(a){this.win=a;a=xc(a);this.Rf=a.isSingleDoc()?a.getSingleDoc():null}gg(a,b){return eg(this.win,this.Rf,a,b).then((c=>{if(c)return c;$f(b.body)&&(b.body=b.body.getFormData());return this.win.fetch.apply(null,arguments)}))}fetchJson(a,b){return this.fetch(a,ig(b))}fetchText(a,b){return this.fetch(a,gg(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=gg(b);return kg(this,a,b).then((c=>jg(c)))}sendSignal(a,b){return kg(this,a,b).then((c=>jg(c)))}getCorsUrl(a,b){return de(a,b)}}function mg(a,b,c){let d=ce(b,be(a.win.location));return Yd(d)+c}class ng extends lg{constructor(a){super(a);this.zb=v()}fetch(a,b){let c=!b||!b.method||"GET"===b.method,d=mg(this,a,b&&b.headers&&b.headers.Accept||""),e=!!this.zb[d];if(c&&e)return this.zb[d].then((g=>g.clone()));let f=super.fetch(a,b);c&&(this.zb[d]=f.then((g=>{delete this.zb[d];return g.clone()}),(g=>{delete this.zb[d];throw g})));return f}}let og={"+":"-","/":"_","=":"."};function pg(a){a=Fa(a);return btoa(a).replace(/[+/=]/g,(b=>og[b]))}function qg(a,b,c){b=b+";"+c;return L(a.B.win,"crypto").sha384Base64(b).then((d=>"amp-"+d))}class rg{constructor(a){this.B=a;this.h=O(this.B,"viewer");this.Vd=null;this.R=M(this.B.win)}isSupported(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()}getScopedCid(a){if(!this.h.isCctEmbedded())return Promise.resolve(null);this.Vd||(this.Vd=this.yb("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.Vd.then((b=>b?qg(this,b,a):null))}yb(a,b=!0){let c=x({publisherOrigin:be(this.B.win.location)});return this.R.timeoutPromise(3e4,L(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.yb(`${e.alternateUrl}?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc`,!1):f})))).catch((d=>{d&&d.response?d.response.json().then((e=>{F().error("CacheCidApi",JSON.stringify(e))})):d&&"fetchCidTimeout"==d.message?F().expectedError("CacheCidApi",d):F().error("CacheCidApi",d);return null}))}}function sg(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=sg(this.K,"AMP_TOKEN");return"$RETRIEVING"!==c})).then((()=>{if("$OPT_OUT"===c)return"$OPT_OUT";if(("$NOT_FOUND"!==c||!T(this.K.document.referrer))&&c&&"$"===c[0])return null;c&&(!c||"$"!==c[0])||vg(this,"$RETRIEVING",3e4);return this.yb("https://ampcid.google.com/v1/publisher:getClientId?key="+a,b,c).then((d=>{let e=this.Ze(d);return!e&&d.alternateUrl?this.yb(`${d.alternateUrl}?key=${a}`,b,c).then(this.Ze.bind(this)):e})).catch((d=>{vg(this,"$ERROR",3e4);d&&d.response?d.response.json().then((e=>{F().error("GoogleCidApi",JSON.stringify(e))})):F().error("GoogleCidApi",d);return null}))}))}yb(a,b,c){b=x({originScope:b,canonicalOrigin:this.Yc});c&&(b.securityToken=c);return this.R.timeoutPromise(3e4,L(this.K,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:b}).then((d=>d.json())))}Ze(a){if(a.optOut)return vg(this,"$OPT_OUT",31536e6),"$OPT_OUT";if(a.clientId)return vg(this,a.securityToken,31536e6),a.clientId;if(a.alternateUrl)return null;vg(this,"$NOT_FOUND",36e5);return null}}class xg{constructor(a){this.B=a;this.h=O(this.B,"viewer");({canonicalUrl:a}=zc(this.B));this.Yc=a?S(a).origin:null}isSupported(){return this.h.hasCapability("cid")?this.h.isTrustedViewer():Promise.resolve(!1)}getScopedCid(a,b){b=x({scope:b,clientIdApi:!!a,canonicalOrigin:this.Yc});a&&(b.apiKey=a);return this.h.sendMessageAwaitResponse("cid",b)}}let yg=/^[a-zA-Z0-9-_.]+$/,zg={googleanalytics:"AMP_ECID_GOOGLE"},Ag={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Bg(a,b,c){let d=b.scope,e=S(a.ampdoc.win.location.href);if(!T(e)){let f=Cg(a,d);return f?a.Zf.getScopedCid(f,d).then((g=>"$OPT_OUT"==g?null:g?(Dg(a.ampdoc.win,b.cookieName||d,g),g):Eg(a,b,c))):Eg(a,b,c)}return a.Of.isSupported().then((f=>{if(f){let g=Cg(a,d);return a.Of.getScopedCid(g,d)}return a.Fe.isSupported()&&Cg(a,d)?a.Fe.getScopedCid(d).then((g=>g?g:Fg(a,c,d,e))):Fg(a,c,d,e)}))}function Cg(a,b){a.Pc||(a.Pc=Gg(a));return a.Pc[b]}function Fg(a,b,c,d){return Hg(a,b).then((e=>{var f=L(a.ampdoc.win,"crypto"),g=f.sha384Base64;G(T(d),"Expected proxy origin %s",d.origin);var h=be(d);return g.call(f,e+h+c)}))}function Gg(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((()=>Jg(this.ampdoc))).then((d=>{if(d)return"";let e=Bg(this,a,c||b);return M(this.ampdoc.win).timeoutPromise(1e4,e,`Getting cid for "${a.scope}" timed out`).catch((f=>{ia(f)}))}))}optOut(){return Kg(this.ampdoc)}}function Kg(a){O(a,"viewer").sendMessage("cidOptOut",{});return lc(a,"storage").then((b=>b.set("amp-cid-optout",!0)))}function Jg(a){return lc(a,"storage").then((b=>b.get("amp-cid-optout").then((c=>!!c)))).catch((()=>!1))}function Dg(a,b,c){let d=Date.now()+31536e6;tg(a,b,c,d)}function Lg(a,b,c){lc(a,"storage").then((d=>{d.isViewerStorage()||d.setNonBoolean("amp-cid:"+b,c)}))}function Mg(a,b){let c=a.ampdoc,d=a.isBackupCidExpOn,e=b.disableBackup;a=b.scope;let f=b.cookieName||a,g=sg(c.win,f);return g?Promise.resolve(g):d&&!e?lc(c,"storage").then((h=>h.get("amp-cid:"+f,31536e6))).then((h=>h&&"string"==typeof h?h:null)):Promise.resolve(null)}function Eg(a,b,c){let d=a.ampdoc,e=a.isBackupCidExpOn,f=d.win,g=b.disableBackup,h=b.scope,k=b.cookieName||h;return Mg(a,b).then((l=>{if(!l&&!b.createCookieIfNotPresent)return Promise.resolve(null);if(l)return/^amp-/.test(l)&&(Dg(f,k,l),e&&!g&&Lg(d,k,l)),Promise.resolve(l);if(a.fd[h])return a.fd[h];let m=Ng(f).then((n=>"amp-"+n));Promise.all([m,c]).then((n=>{let p=n[0];sg(f,k)||(Dg(f,k,p),e&&!g&&Lg(d,k,p))}));return a.fd[h]=m}))}function Hg(a,b){if(a.Qc)return a.Qc;let c=a.ampdoc.win;return a.Qc=Og(a.ampdoc).then((d=>{let f,e=!1;d&&!Pg(d)?(f=Promise.resolve(d.cid),Qg(d)&&(e=!0)):(f=L(c,"crypto").sha384Base64(Rg(c)),e=!0);e&&f.then((g=>{Sg(a.ampdoc,b,g)}));return f}))}function Sg(a,b,c){let d=a.win;H(d)?Tg(a,Ug(c)):b.then((()=>{try{d.localStorage.setItem("amp-cid",Ug(c))}catch(e){}}))}function Tg(a,b){let c=O(a,"viewer");return c.isTrustedViewer().then((d=>{if(d)return F().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?(F().expectedError("CID","invalid cid format"),JSON.stringify(x({time:Date.now(),cid:e}))):e}))}))}function Ug(a){return JSON.stringify(x({time:Date.now(),cid:a}))}function Og(a){let b=a.win;let c;try{c=b.localStorage.getItem("amp-cid")}catch(e){}let d=Promise.resolve(c);!c&&H(b)&&(d=Tg(a));return d.then((e=>{if(!e)return null;e=JSON.parse(e);return{time:e.time,cid:e.cid}}))}function Pg(a){let b=a.time,c=Date.now();return b+31536e6pg(b).replace(/\.+$/,"")))}function Vg(a){return a.Lb?a.Lb:a.Lb=yc(a.K).preloadExtension("amp-crypto-polyfill").then((()=>L(a.K,"crypto-polyfill")))}class Wg{constructor(a){this.K=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.Ag=c;this.Lb=null}sha384(a){"string"===typeof a&&(a=Ea(a));if(!this.subtle||this.Lb)return(this.Lb||Vg(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")&&E().error("Crypto","SubtleCrypto failed, fallback to closure lib.",b);return Vg(this).then((()=>this.sha384(a)))}))}catch(b){return F().error("Crypto","SubtleCrypto failed, fallback to closure lib.",b),Vg(this).then((()=>this.sha384(a)))}}sha384Base64(a){return this.sha384(a).then((b=>pg(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.K.isSecureContext}importPkcsKey(a){this.isPkcsAvailable();if(this.Ag){var b=JSON.stringify(a);b="undefined"!==typeof TextEncoder?new TextEncoder("utf-8").encode(b):Ea(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 Xg=["prefetch","preload","preconnect","dns-prefetch"];class Yg{constructor(a){this.B=a;this.Sd=this.rd=null}get(){if(this.rd)return this.rd;let a=this.B;var b=a.getUrl();let c=ae(b);var d=a.getRootNode();b=d&&d.AMP&&d.AMP.canonicalUrl;if(!b){let h=d.querySelector("link[rel=canonical]");b=h?S(h.href).href:c}let e=String(Math.floor(1e4*a.win.Math.random())),f=Zg(a.win.document);d=$g(a.win.document);let g=ah(a);return this.rd={get sourceUrl(){return ae(a.getUrl())},canonicalUrl:b,pageViewId:e,get pageViewId64(){this.Sd||(this.Sd=Ng(a.win));return this.Sd},linkRels:f,viewport:d,replaceParams:g}}}function Zg(a){let b=v();if(a.head){let c=a.head.querySelectorAll("link[rel]");for(a=0;a{if(-1==Xg.indexOf(g)){var h=b[g];h?(z(h)||(h=b[g]=[h]),h.push(e)):b[g]=e}}))}}return b}function $g(a){let b=a.head.querySelector('meta[name="viewport"]');return b?b.getAttribute("content"):null}function ah(a){var b;(b=!a.isSingleDoc())||(b=a.win.location.href,b=Qd(b),b="a"!=(T(b)?b.pathname.split("/",2)[1]:null));if(b)return null;a=S(a.win.location.href);let c=B(a.search).amp_r;return void 0===c?null:B(c)}let bh={attributes:!0,attributeFilter:["hidden"],subtree:!0};function ch(a){if(!a.Ib){a.gb=new Q;var b=new a.K.MutationObserver((c=>{c&&a.gb.fire(c)}));a.Ib=b;b.observe(a.V,bh)}}class dh{constructor(a){this.V=a.getRootNode();this.K=(this.V.ownerDocument||this.V).defaultView;this.gb=this.Ib=null}add(a){ch(this);let b=this.gb.add(a);return()=>{b();0===this.gb.getHandlerCount()&&this.dispose()}}dispose(){this.Ib&&(this.Ib.disconnect(),this.gb.removeAll(),this.gb=this.Ib=null)}}function eh(a){try{return a.state}catch(b){return null}}function fh(a,b,c){let d=new u,e=d.promise;a.J.push({callback:b,resolve:d.resolve,reject:d.reject,trace:Error("history trace for "+c+": ")});1==a.J.length&&gh(a);return e}function hh(a,b){if(!(a.D>=a.Ya.length-1)){var c=[];for(let d=a.Ya.length-1;d>a.D;d--)a.Ya[d]&&(c.push(a.Ya[d]),a.Ya[d]=void 0);a.Ya.splice(a.D+1);if(0c[d](b)),1)}}function gh(a){if(0!=a.J.length){var b=a.J[0];try{var c=b.callback()}catch(d){c=Promise.reject(d)}c.then((d=>{b.resolve(d)}),(d=>{F().error("History","failed to execute a task:",d);b.trace&&(b.trace.message+=d,F().error("History",b.trace));b.reject(d)})).then((()=>{a.J.splice(0,1);gh(a)}))}}class ih{constructor(a,b){this.B=a;this.R=M(a.win);this.j=b;this.D=0;this.Ya=[];this.J=[];this.j.setOnStateUpdated(this.Z.bind(this))}cleanup(){this.j.cleanup()}push(a,b){return fh(this,(()=>this.j.push(b).then((c=>{this.Z(c);a&&(this.Ya[c.stackIndex]=a);return c.stackIndex}))),"push")}pop(a){return fh(this,(()=>this.j.pop(a).then((b=>{this.Z(b)}))),"pop")}replace(a){return fh(this,(()=>this.j.replace(a)),"replace")}get(){return fh(this,(()=>this.j.get()),"get")}goBack(a){return fh(this,(()=>0>=this.D&&!a?q():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;hh(this,a)}}function jh(a,b,c){a=v(c?kh(a):void 0);a["AMP.History"]=b;return a}function kh(a){return a.mh?eh(a.win.history):a.kb}function lh(a,b){return a.Lc?a.Lc.promise.then(b,b):b()}function mh(a,b){let c=y(y({},a&&a.data||{}),b.data||{});return y(y(y({},a||{}),b),{},{data:c})}function nh(a,b){if(0>=b)return Promise.resolve(a.D);a.kb=jh(a,a.D-b);let c=oh(a);a.win.history.go(-b);return c.then((()=>Promise.resolve(a.D)))}function oh(a){var b=new u;let c=b.reject,d=b.resolve;b=a.R.timeoutPromise(500,b.promise);a.Lc={promise:b,resolve:d,reject:c};return b}class ph{constructor(a){this.win=a;this.R=M(a);a=this.win.history;this.Za=a.length-1;let b=eh(a);b&&void 0!==b["AMP.History"]&&(this.Za=Math.min(b["AMP.History"],this.Za));this.D=this.Za;this.Z=null;this.mh="state"in a;this.kb=jh(this,this.D);let c,d;a.pushState&&a.replaceState?(this.nc=a.originalPushState||a.pushState.bind(a),this.Jb=a.originalReplaceState||a.replaceState.bind(a),c=(e,f,g)=>{this.kb=e;this.nc(e,f,g||null)},d=(e,f,g)=>{this.kb=e;void 0!==g?this.Jb(e,f,g):this.Jb(e,f)},a.originalPushState||(a.originalPushState=this.nc),a.originalReplaceState||(a.originalReplaceState=this.Jb)):(c=e=>{this.kb=e},d=e=>{this.kb=e});this.Vg=c;this.vc=d;try{this.vc(jh(this,this.D,!0))}catch(e){F().error("History","Initial replaceState failed: "+e.message)}a.pushState=this.bf.bind(this);a.replaceState=this.pd.bind(this);this.sc=()=>{let e=kh(this);let f=e?e["AMP.History"]:void 0;let g=this.D;let h=this.Lc;this.Lc=void 0;g>this.win.history.length-2&&(g=this.win.history.length-2,this.za(mh(e,{stackIndex:g})));g=void 0==f?g+1:f{let b=mh(kh(this),a||{});this.bf(b,void 0,b.fragment?"#"+b.fragment:void 0);return ea((()=>mh(b,{stackIndex:this.D})))}))}pop(a){a=Math.max(a,this.Za);return lh(this,(()=>nh(this,this.D-a+1))).then((b=>mh(kh(this),{stackIndex:b})))}replace(a={}){return lh(this,(()=>{let b=mh(kh(this),a||{}),c=(b.url||"").replace(/#.*/,""),d=b.fragment?"#"+b.fragment:"";this.pd(b,b.title,c||d?c+d:void 0);return ea((()=>mh(b,{stackIndex:this.D})))}))}get(){return ea((()=>mh(kh(this),{stackIndex:this.D})))}backTo(a){a=Math.max(a,this.Za);return lh(this,(()=>nh(this,this.D-a)))}bf(a,b,c){a||(a={});let d=this.D+1;a["AMP.History"]=d;this.Vg(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.vc(a));a=mh(a,{stackIndex:d});this.za(a)}replaceStateForTarget(a){lh(this,(()=>{this.win.removeEventListener("popstate",this.sc);try{this.win.location.replace(a)}finally{this.win.addEventListener("popstate",this.sc)}this.pd();return q()}))}pd(a,b,c){a||(a={});let d=Math.min(this.D,this.win.history.length-1);a["AMP.History"]=d;this.vc(a,b,c);a=mh(a,{stackIndex:d});this.za(a)}za(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 qh(a){return!!a&&void 0!==a.stackIndex}class rh{constructor(a,b){this.win=a;this.h=b;this.D=0;this.Z=null;this.qh=this.h.onMessage("historyPopped",(c=>{void 0!==c.newStackIndex&&(c.stackIndex=c.newStackIndex);qh(c)&&this.za(c)}))}replaceStateForTarget(a){this.win.location.replace(a)}cleanup(){this.qh()}setOnStateUpdated(a){this.Z=a}push(a){let b=y({stackIndex:this.D+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",b).then((c=>{c=qh(c)?c:b;this.za(c);return c}))}pop(a){if(a>this.D)return this.get();a=x({stackIndex:this.D});return this.h.sendMessageAwaitResponse("popHistory",a).then((b=>{let c=x({stackIndex:this.D-1});b=qh(b)?b:c;this.za(b);return b}))}replace(a){if(a&&a.url){if(!this.h.hasCapability("fullReplaceHistory")){let d=x({stackIndex:this.D});return Promise.resolve(d)}let c=a.url.replace(/#.*/,"");a.url=c}let b=y({stackIndex:this.D},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",b,!0).then((c=>{c=qh(c)?c:b;this.za(c);return c}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.D,title:""})}za(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",x({fragment:a}),!0):q()}}function sh(a){var b=O(a,"viewer");b.isOvertakeHistory()||a.win.__AMP_TEST_IFRAME?b=new rh(a.win,b):(J(a.win,"global-history-binding",ph),b=L(a.win,"global-history-binding"));return new ih(a,b)}function th(a,b){var c={};let d=c.needsRootBounds,e=c.threshold;c=H(b)&&d?b.document:void 0;return new b.IntersectionObserver(a,{threshold:e,root:c})}new WeakMap;new WeakMap;function uh(a,b){return yc(a.win).installExtensionForDoc(a,"amp-loader").then((()=>uc(b,"loader","amp-loader")))}function vh(a,b,c,d,e=a.win.Date.now()){let f=b.ownerDocument.createElement("div");uh(a,b).then((g=>{let h=a.win.Date.now()-e;g.initializeLoader(b,f,h,c,d)}));return f}let wh=['
'];class xh{constructor(a){this.B=a;a=a.win;let b=this.tg.bind(this);this.vd=th((c=>c.forEach(b)),a);this.Na=new WeakMap}dispose(){this.vd.disconnect()}track(a){this.vd.observe(a)}untrack(a){this.vd.unobserve(a);this.Ke(a)}tg(a){var b=a.boundingClientRect,c=b.height,d=b.width;b=a.target;a=a.isIntersecting&&20{ya(b.target)&&yh(this,b.target)};this.Ge=()=>{M(a).delay((()=>{this.win.document.activeElement&&yh(this,this.win.document.activeElement)}),500)};this.win.document.addEventListener("focus",this.He,!0);this.win.addEventListener("blur",this.Ge)}Ke(){this.win.document.removeEventListener("focus",this.He,!0);this.win.removeEventListener("blur",this.Ge)}onFocus(a){return this.qf.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&&yh(this,this.win.document.activeElement);for(let b=0;b!!V(e)));if(c){b=V(c);var d=b.getPendingChangeSize();void 0!==d&&Bh(a,b,d.height,d.width,d.margins,void 0,!0)}}function Bh(a,b,c,d,e,f,g,h){b.hasBeenMeasured()&&!e?Ch(a,b,c,d,void 0,f,g,h):a.H.measure((()=>{b.hasBeenMeasured()||b.measure();if(e){var k=a.win.getComputedStyle(b.element)||Dc;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;Ch(a,b,c,d,k,f,g,h)}))}function Dh(a,b,c,d,e=!1){let f=()=>{let h=a.I.getLayoutRect(b);return 0!=h.width&&0!=h.height?h.top:-1};let g=-1;return a.H.runPromise({measure:()=>{c&&c();e||(g=f())},mutate:()=>{d();if(!e){b.classList.contains("i-amphtml-element")&&V(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 Ch(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&&F().error("Mutator","attempting to change size with undefined dimensions",b.debugid),h&&h(!0))}class Eh{constructor(a){this.ampdoc=a;this.win=a.win;this.o=O(a,"resources");this.I=O(this.ampdoc,"viewport");this.H=L(this.win,"vsync");this.Nc=new zh(this.win);this.Nc.onFocus((b=>{Ah(this,b)}))}forceChangeSize(a,b,c,d,e){Bh(this,V(a),b,c,e,void 0,!0,d)}requestChangeSize(a,b,c,d,e){return new Promise(((f,g)=>{Bh(this,V(a),b,c,d,e,!1,(h=>{h?f():g(Error("changeSize attempt denied"))}))}))}expandElement(a){V(a).completeExpand();this.o.schedulePass(70)}attemptCollapse(a){return new Promise(((b,c)=>{Bh(this,V(a),0,0,void 0,void 0,!1,(d=>{d?(V(a).completeCollapse(),b()):c(F().createExpectedError("collapse attempt denied"))}))}))}collapseElement(a){let b=this.I.getLayoutRect(a);0!=b.width&&0!=b.height&&(nd(this.win,"dirty-collapse-element")?this.dirtyElement(a):this.o.setRelayoutTop(b.top));V(a).completeCollapse();this.o.schedulePass(70)}measureElement(a){return this.H.measurePromise(a)}mutateElement(a,b,c){return Dh(this,a,null,b,c)}measureMutateElement(a,b,c){return Dh(this,a,b,c)}dirtyElement(a){let b=!1;a.classList.contains("i-amphtml-element")?(a=V(a),this.o.setRelayoutTop(a.getLayoutBox().top)):b=!0;this.o.schedulePass(70,b)}}let Fh=null;let Gh=["gclid","gclsrc"],Hh=[/^t.co$/];function Ih(){return G(Fh,"E#19457 trackImpressionPromise")}function Jh(){var a=self,b=new u;let c=b.promise,d=b.resolve;Fh=M(a).timeoutPromise(8e3,c,"TrackImpressionPromise timeout").catch((()=>{}));b=O(a.document.documentElement,"viewer");let e=b.isTrustedViewer(),f=b.getReferrerUrl().then((g=>Kh(g)));Promise.all([e,f]).then((g=>{let h=g[1];if(g[0]||h||nd(a,"alp")){var k=Lh(a),l=Mh(a);Promise.all([k,l]).then((()=>{d()}),(()=>{}))}else d()}))}function Lh(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),q()):q()}function Kh(a){let b=S(a);return"https:"!=b.protocol?!1:Hh.some((c=>c.test(b.hostname)))}function Mh(a){let b=gc(a.document.documentElement),c=O(b,"viewer").getParam("click");if(!c||0!=c.indexOf("https://"))return q();a.location.hash&&(a.location.hash="");return b.whenFirstVisible().then((()=>Nh(a,c))).then((d=>{if(d){var e=d.location;(d=d.tracking_url||e)&&!T(d)&&((new Image).src=d);if(e&&a.history.replaceState){d=O(a.document.documentElement,"viewer");var f=a.location.href;e=S(e);e=B(e.search);e=Ud(f,e);a.history.propertyIsEnumerable(null,"",e);d.maybeUpdateFragmentForCct()}}})).catch((()=>{}))}function Nh(a,b){return L(a,"xhr").fetchJson(b,{credentials:"include"}).then((c=>204==c.status?null:c.json()))}function Oh(a){return a.whenReady().then((()=>!!a.getBody().querySelector("amp-analytics[type=googleanalytics]")))}function Ph(a,b,c,d){let e;try{e=a.open(b,c,d)}catch(g){F().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 Qh=["_top","_blank"];function Rh(a,b){a.pf.forEach((c=>{b=c(b)}));return b}function Sh(a){return(a=a.ia.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map((b=>b.trim())):[]}function Th(a,b){let c=null;if(a.pe&&!a.yd){a=S(a.ampdoc.win.location.href);var d=B(a.search);a=[];for(var e=0;ee.trim())).includes("amphtml")?a.navigateToAmpUrl(d.href,"")?(b.preventDefault(),!0):!1:!1}function Wh(a,b,c){a.oe.forEach((d=>{d(b,c)}))}function Xh(a,b,c,d){b.preventDefault();if(!a.yd){b=c.hash.slice(1);var e=null;if(b){let f=CSS.escape(b);e=a.ia.getElementById(b)||a.ia.querySelector(`a[name="${f}"]`)}c.hash!=d.hash?a.P.replaceStateForTarget(c.hash).then((()=>{Yh(a,e)})):Yh(a,e)}}function Zh(a,b,c){let d=b.href,e=`${b.origin}${b.pathname}${b.hash}`;a.history.propertyIsEnumerable(null,"",e);let f=()=>{let g=a.location.href;g==e?a.history.propertyIsEnumerable(null,"",d):F().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 Yh(a,b){b&&(a.I.scrollIntoView(b),M(a.ampdoc.win).delay((()=>a.I.scrollIntoView(b)),1))}class $h{constructor(a){this.ampdoc=a;this.ia=a.getRootNode();this.I=O(this.ampdoc,"viewport");this.h=O(this.ampdoc,"viewer");this.P=O(this.ampdoc,"history");this.pa=L(this.ampdoc.win,"platform");this.zg=this.pa.isIos()&&this.pa.isSafari();this.Eb=H(this.ampdoc.win)&&this.h.isOvertakeHistory();this.yd=this.ia!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent();this.yg="inabox"==Ua(this.ampdoc.win).runtime;this.zf=this.ia.nodeType==Node.DOCUMENT_NODE?this.ia.documentElement:this.ia;this.pb=this.qg.bind(this);this.ia.addEventListener("click",this.pb);this.ia.addEventListener("contextmenu",this.pb);this.pe=!1;Oh(this.ampdoc).then((b=>{this.pe=b}));this.ef=this.cb=!1;Promise.all([this.h.isTrustedViewer(),this.h.getViewerOrigin()]).then((b=>{this.cb=b[0];this.ef=D.localhostRegex.test(Qd(b[1]).origin)}));this.Mc=null;this.oe=new Be;this.pf=new Be}cleanup(){this.pb&&(this.ia.removeEventListener("click",this.pb),this.ia.removeEventListener("contextmenu",this.pb))}openWindow(a,b,c,d){let e="";!this.pa.isIos()&&this.pa.isChrome()||d||(e+="noopener");let f=Ph(a,b,c,e);f&&!d&&(f.opener=null)}navigateTo(a,b,c,d={}){let{opener:e=!1,target:f="_top"}=d;b=Rh(this,b);let g=jc(this.zf,"url");if(g.isProtocolValid(b))if(G(Qh.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.Mc||(this.Mc=Sh(this)),this.Mc.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}else E().error("navigation","Cannot navigate to invalid protocol: "+b)}navigateToAmpUrl(a,b){return this.h.hasCapability("a2a")?(this.h.sendMessage("a2aNavigate",x({url:a,requestedBy:b})),!0):!1}qg(a){if(!a.defaultPrevented){var b=nb(a.__AMP_CUSTOM_LINKER_TARGET__||a.target,"A");if(b&&b.href)if("click"==a.type){Th(this,b);var d,c=Uh(this,b.href);if(d=!Vh(this,a,b,c)){var e=c;if(this.Eb){d=ib(b);var f=b.href;e=e.protocol;"ftp:"==e?(Ph(d,f,"_blank"),a.preventDefault(),d=!0):(e=/^(https?|mailto):$/.test(e),this.zg&&!e?(Ph(d,f,"_top"),a.preventDefault(),d=!0):d=!1)}else d=!1;d=!d}if(d)if(d=Uh(this,""),ai(c)!=ai(d)&&(Wh(this,b,a),c=Uh(this,b.href)),f=c,c=ai(f),e=ai(d),f.hash&&c==e)Xh(this,a,f,d);else{f=(b.getAttribute("target")||"").toLowerCase();(this.yd||this.yg)&&"_top"!=f&&"_blank"!=f&&(f="_blank",b.setAttribute("target",f));e=this.ampdoc.win;let g=L(e,"platform");b=O(b,"viewer");d.search&&g.isSafari()&&13<=g.getMajorVersion()&&b.isProxyOrigin()&&b.isEmbedded()&&Zh(e,d,f);this.viewerInterceptsNavigation(c,"intercept_click")&&a.preventDefault()}}else"contextmenu"==a.type&&(Th(this,b),Wh(this,b,a))}}registerAnchorMutator(a,b){this.oe.enqueue(a,b)}registerNavigateToMutator(a,b){this.pf.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.cb&&!this.ef)return!1;this.h.sendMessage("navigateTo",x({url:a,requestedBy:b}));return!0}}function ai(a){return`${a.origin}${a.pathname}${a.search}`}function bi(a){return z(a)?a:[a]}function ci(a,b,c){di(a,b,c,(d=>{d.element.ensureLoaded(b.getLayoutPriority())}))}function di(a,b,c,d){for(let e of c)b.element.contains(e),ei(a,e,d)}function ei(a,b,c){if(b.classList.contains("i-amphtml-element"))c(a.o.getResourceForElement(b)),(b=b.getPlaceholder())&&ei(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=bi(b);di(this,a,b,(c=>{c.resume()}))}scheduleUnlayout(a,b){a=this.o.getResourceForElement(a);b=bi(b);di(this,a,b,(c=>{c.unlayout()}))}requireLayout(a){let b=[];ei(this,a,(c=>{b.push(c.element.ensureLoaded())}));return Promise.all(b)}}function gi(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 hi{constructor(a){this.U=a.navigator;this.K=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.K.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.U.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:gi(this,/\sVersion\/(\d+)/,1):this.isChrome()?gi(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?gi(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?gi(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?gi(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 ii{constructor(a){this.G=a;this.Hf=v()}addTransition(a,b,c){this.Hf[`${a}|${b}`]=c}setState(a){let b=this.G;this.G=a;a=this.Hf[`${b}|${a}`];null===a||void 0===a?void 0:a()}}class ji{constructor(){this.N=[];this.Tb={};this.ff=this.gf=0}getSize(){return this.N.length}getLastEnqueueTime(){return this.gf}getLastDequeueTime(){return this.ff}getTaskById(a){return this.Tb[a]||null}enqueue(a){this.N.push(a);this.Tb[a.id]=a;this.gf=Date.now()}dequeue(a){if(!this.removeAtIndex(a,this.N.indexOf(this.Tb[a.id])))return!1;this.ff=Date.now();return!0}peek(a){let b=1e6,c=null;for(let d=0;d{var h=a.I.getSize();if(0=m;if(!t)for(w=0;wh;r++)k=a.o[r],2==k.getState()&&!k.hasOwner()&&!k.element.R1()&&k.isDisplayed()&&k.idleRenderOutsideViewport()&&(a.scheduleLayoutOrPreload(k,!1),h++);for(r=0;rh;r++)k=a.o[r],2!=k.getState()||k.hasOwner()||k.element.R1()||!k.isDisplayed()||(a.scheduleLayoutOrPreload(k,!1),h++)}h=a.win.Date.now();k=-1;for(r=a.J.peek(a.we);r;){k=pi(a,r);if(16{},e=()=>{a.o.forEach((h=>h.pause()))},f=()=>{a.o.forEach((h=>{h.unload();ri(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 si(a){a.ampdoc.whenReady().then((()=>{a.ub=!0;a.De();a.va=null;L(a.win,"input").setupInputModeClasses(a.ampdoc)}))}function ti(a,b,c=!1){if(c||20>a.Ce||a.ampdoc.hasBeenVisible()||b.isBuildRenderBlocking())if(c=b.build())a.Ce++,a.Ee++,c.then((()=>a.schedulePass()),(d=>{ui(a,b);if(!ke(d))throw d}))}function mi(a,b,c=!1,d=!1){if(a.ta||a.xg)if("prerender"!=a.ampdoc.getVisibilityState()||b.prerenderAllowed())a.ub?ti(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.va.includes(b)||(a.va.push(b),a.De())}function ui(a,b){let c=a.o.indexOf(b);-1!=c&&a.o.splice(c,1);b.isBuilt()&&b.pauseOnRemove();3===b.getState()&&b.layoutCanceled();ri(a,b,!0)}function ri(a,b,c){if(1==b.getState()||2==b.getState())a.J.purge((d=>d.resource==b)),a.sa.purge((d=>d.resource==b)),ta(a.ha,(d=>d.resource===b));if(0==b.getState()&&c&&a.va){let d=a.va.indexOf(b);-1!=d&&a.va.splice(d,1)}}function vi(a,b,c){let d=a.I.getContentHeight();a=Math.max(.85*d,d-1e3);let e=c||b.getLayoutBox(),f=b.getInitialLayoutBox();return e.bottom>=a||f.bottom>=a}function li(a){var b=a.win.Date.now();let c=a.I.getRect(),d=c.height/10,e=c.height/10,f=.01>Math.abs(a.Fd)&&500=c.bottom-e||0==w&&t.bottom+Math.min(Qa,0)>=c.bottom-e)Ra=!0;else if(1Qa&&c.top+l<-Qa)continue;f?(l+=Qa,k.push(m)):a.ha.push(m);continue}else vi(a,p,t)?Ra=!0:0>Qa||0>w||0>r||(m.newHeight==t.height?a.H.run({measure:W=>{W.resize=!1;let Sa=p.element.parentElement;if(Sa){var Nj=Sa.getLayoutSize&&Sa.getLayoutSize().width||Sa.offsetWidth,Pf=Of;for(let dd=0;ddNj)return;W.resize=!0}},mutate:W=>{W.resize&&m.resource.changeSize(m.newHeight,m.newWidth,P);m.resource.overflowCallback(!W.resize,m.newHeight,m.newWidth,P)}},{}):m.resource.overflowCallback(!0,m.newHeight,m.newWidth,P));Ra&&(0<=t.top&&(h=-1==h?t.top:Math.min(h,t.top)),m.resource.changeSize(m.newHeight,m.newWidth,P),m.resource.overflowCallback(!1,m.newHeight,m.newWidth,P),a.Ra=!0);m.callback&&m.callback(Ra)}-1!=h&&a.setRelayoutTop(h);0{m.scrollHeight=a.I.getScrollHeight();m.scrollTop=a.I.getScrollTop()},mutate:m=>{let n=-1;k.forEach((t=>{let w=t.resource.getLayoutBox();n=-1==n?w.top:Math.min(n,w.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.I.getScrollHeight();p!=m.scrollHeight&&a.I.setScrollTop(m.scrollTop+(p-m.scrollHeight));a.Ra=!0}},{})}}function ni(a,b){b.length&&a.H.mutate((()=>{b.forEach((c=>{c.unload();ri(a,c)}))}))}function oi(a,b=Date.now()){let c=a.sa.getLastDequeueTime();return 0==a.sa.getSize()&&0==a.J.getSize()&&b>c+5e3&&0{d=Math.max(d,Math.max(1e3*(b.priority-e.priority),0)-(c-e.startTime))}));return d}function qi(a,b,c){return 0!=b.getState()&&b.isDisplayed()&&(a.ja||"prerender"==a.ampdoc.getVisibilityState()&&b.prerenderAllowed())&&(c||b.isInViewport()||b.renderOutsideViewport()||b.idleRenderOutsideViewport())?!0:!1}class wi{constructor(a){this.ampdoc=a;this.win=a.win;this.h=O(a,"viewer");this.ta=this.h.isRuntimeOn();this.xg=!1;this.dh=0;this.o=[];this.Ee=this.Ce=this.ne=0;this.ja=this.ampdoc.isVisible();this.ub=!1;this.gd=!0;this.Oc=!1;this.cc=-1;this.uc=!0;this.Rb=-1;this.Fd=this.fc=0;this.rc=new uf(this.win,(()=>this.doPass()));this.Zg=new uf(this.win,(()=>{this.uc=!0;this.schedulePass()}));this.sa=new ji;this.J=new ji;this.we=this.Yf.bind(this);this.ha=[];this.va=[];this.xd=!1;this.I=O(this.ampdoc,"viewport");this.H=L(this.win,"vsync");this.Nc=new zh(this.win);this.me=!1;this.$b=0;this.Ra=!1;this.qc=[];this.ed=[];this.Ve=new u;this.Qf=new ii(this.ampdoc.getVisibilityState());this.I.onChanged((b=>{this.fc=this.win.Date.now();this.Fd=b.velocity;b.relayoutAll&&(this.Ra=this.uc=!0);this.schedulePass()}));this.I.onScroll((()=>{this.fc=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.ta=b;this.schedulePass(1)}));Ge(this.ampdoc,(()=>{ki(this,this.Qf);this.schedulePass(0)}));si(this);this.Ec=Ia(this.win,(b=>{b=b.target;b.nodeType!==Node.ELEMENT_NODE||b===this.I.getScrollingElement()||this.ed.includes(b)||(this.ed.push(b),this.schedulePass(70))}),250);vd(this.win.document,"scroll",this.Ec,{capture:!0,passive:!0})}get(){return this.o.slice(0)}getAmpdoc(){return this.ampdoc}getResourceForElement(a){return V(a)}getResourceForElementOptional(a){return V(a)}getScrollDirection(){return Math.sign(this.Fd)||1}add(a){this.ne++;1==this.ne&&this.I.ensureReadyForElements();let b=V(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new se(++this.dh,a,this);this.o.push(b);this.Zg.schedule(1e3)}De(){if(!this.xd)try{this.xd=!0;for(let a=0;a{d.resource==c&&(d.priority=b)}));this.schedulePass()}schedulePass(a){return this.rc.schedule(a)}updateOrEnqueueMutateTask(a,b){let c=null;for(let d=0;dthis.doPass())))}ampInitComplete(){this.Oc=!0;this.schedulePass()}setRelayoutTop(a){this.Rb=-1==this.Rb?a:Math.min(a,this.Rb)}maybeHeightChanged(){this.Ra=!0}onNextPass(a){this.qc.push(a)}doPass(){if(this.ta){this.ja=this.ampdoc.isVisible();this.Ee=0;if(this.ub&&this.gd&&this.Oc){var a;this.gd=!1;let b=this.win.document,c=zc(this.ampdoc);this.h.sendMessage("documentLoaded",x({title:b.title,sourceUrl:ae(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.I.getContentHeight();this.h.sendMessage("documentHeight",x({height:this.$b}),!0)}!this.gd&&this.hg&&this.o.every((b=>b.getState()!=se.NOT_BUILT||b.element.R1()))&&(this.hg=!1,this.Ra=!0);this.I.getSize();this.rc.cancel();this.me=!1;this.Qf.setState(this.ampdoc.getVisibilityState());this.ub&&this.Oc&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.Ra&&(this.Ra=!1,this.H.measure((()=>{let b=this.I.getContentHeight();b!=this.$b&&(this.h.sendMessage("documentHeight",x({height:b}),!0),this.$b=b,this.I.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=>{E().error("STANDARD-ACTIONS",g)}))}function Ai(a,b){let c=ib(b.node),d=c.parent!=c;let e=!1;c.opener&&a.ampdoc.isSingleDoc()&&!d&&(c.close(),e=c.closed);return e?q():zi(a,b)}function Bi(a,b){a.classList.contains("i-amphtml-element")?a.expand():Hc(a,!0);if(b)try{b.focus()}catch(c){}}class Ci{constructor(a){this.ampdoc=a;let b=a.getHeadNode();this.Ua=O(a,"mutator");this.I=O(a,"viewport");a=jc(b,"action");a.addGlobalTarget("AMP",this.kg.bind(this));a.addGlobalMethodHandler("hide",this.Ye.bind(this));a.addGlobalMethodHandler("show",this.af.bind(this));a.addGlobalMethodHandler("toggleVisibility",this.pg.bind(this));a.addGlobalMethodHandler("scrollTo",this.$e.bind(this));a.addGlobalMethodHandler("focus",this.lg.bind(this));a.addGlobalMethodHandler("toggleClass",this.og.bind(this));a.addGlobalMethodHandler("toggleChecked",this.ng.bind(this))}kg(a){if(!a.satisfiesTrust(2))return null;let b=a.args,c=a.method,d=a.node,e=ib(d);switch(c){case"pushState":case"setState":return wc(d.nodeType===Node.DOCUMENT_NODE?d.documentElement:d).then((f=>{G(f,"AMP-BIND is not installed.");return f.invoke(a)}));case"navigateTo":return zi(this,a);case"closeOrNavigateTo":return Ai(this,a);case"scrollTo":return G(b.id,"AMP.scrollTo must provide element ID"),a.node=gc(d).getElementById(b.id),this.$e(a);case"goBack":return O(this.ampdoc,"history").goBack(!(!b||!0!==b.navigate)),null;case"print":return e.print(),null;case"optoutOfCid":return lc(this.ampdoc,"cid").then((f=>f.optOut())).catch((f=>{F().error("STANDARD-ACTIONS","Failed to opt out of CID",f)}))}throw E().createError("Unknown AMP action ",c)}$e(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);za(d)||(d=void 0);return this.I.animateScrollIntoView(b,c,d)}lg(a){try{a.node.focus()}catch(b){}return null}Ye(a){let b=a.node;b.classList.contains("i-amphtml-element")?this.Ua.mutateElement(b,(()=>b.collapse()),!0):this.Ua.mutateElement(b,(()=>Hc(b,!1)));return null}af(a){let b=a.node,c=ib(b);if(b.classList.contains("i-amphtml-layout-nodisplay"))return null;this.Ua.measureElement((()=>{"none"==(c.getComputedStyle(b)||Dc).display&&b.hasAttribute("hidden")}));let d=xi(b);d&&L(c,"platform").isIos()?(Bi(b,d),this.Ua.mutateElement(b,(()=>{}))):this.Ua.mutateElement(b,(()=>{Bi(b,d)}));return null}pg(a){return a.node.hasAttribute("hidden")?this.af(a):this.Ye(a)}og(a){let b=a.node,c=a.args,d=E().assertString(c["class"],"Argument 'class' must be a string.");if(yi.test(d))return null;this.Ua.mutateElement(b,(()=>{if(void 0!==c.force){let e=E().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.classList.toggle(d,e)}else b.classList.toggle(d)}));return null}ng(a){let b=a.node,c=a.args;this.Ua.mutateElement(b,(()=>{if(void 0!==c.force){let d=E().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.checked=d}else b.checked=!0===b.checked?!1:!0}));return null}}function Di(a){a.h.onBroadcast((b=>{"amp-storage-reset"==b.type&&b.origin==a.oc&&(a.Cc=null)}))}function Ei(a){a.Cc||(a.Cc=a.j.loadBlob(a.oc).then((b=>b?JSON.parse(atob(b)):{})).catch((b=>{F().expectedError("Storage","Failed to load store: ",b);return{}})).then((b=>new Fi(b))));return a.Cc}function Gi(a,b){return Ei(a).then((c=>{b(c);c=btoa(JSON.stringify(c.obj));return a.j.saveBlob(a.oc,c)})).then(a.Xf.bind(a))}class Hi{constructor(a,b,c){this.ampdoc=a;this.h=b;this.j=c;this.Eg=c instanceof Ii;this.oc=be(this.ampdoc.win.location);this.Cc=null}get(a,b){return Ei(this).then((c=>c.get(a,b)))}set(a,b,c){return this.setNonBoolean(a,b,c)}setNonBoolean(a,b,c){return Gi(this,(d=>d.set(a,b,c)))}remove(a){return Gi(this,(b=>b.remove(a)))}isViewerStorage(){return this.Eg}Xf(){this.h.broadcast({type:"amp-storage-reset",origin:this.oc})}}class Fi{constructor(a){this.obj=oa(a);this.Ig=8;this.Aa=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.Aa)}get(a,b){let c=(a=this.Aa[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.Aa[a]){a=this.Aa[a];let d=Date.now();c&&(d=a.t);a.v=b;a.t=d}else this.Aa[a]=x({v:b,t:Date.now()});b=Object.keys(this.Aa);if(b.length>this.Ig){let d=1/0,e=null;for(c=0;c{this.Bd?b(this.win.localStorage.getItem(`amp-store:${a}`)):b(null)}))}saveBlob(a,b){return new Promise((c=>{this.Bd&&this.win.localStorage.setItem(`amp-store:${a}`,b);c()}))}}class Ii{constructor(a){this.h=a}loadBlob(a){return this.h.sendMessageAwaitResponse("loadStore",x({origin:a})).then((b=>b.blob))}saveBlob(a,b){return this.h.sendMessageAwaitResponse("saveStore",x({origin:a,blob:b})).catch((c=>{throw F().createExpectedError("Storage","Failed to save store: ",c)}))}}function Ki(a){K(a,"storage",(function(){var b=O(a,"viewer");let c=parseInt(b.getParam("storage"),10)?new Ii(b):new Ji(a.win);b=new Hi(a,b,c);Di(b);return b}),!0)}let Li=()=>{};function Mi(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"));G(c,"Type must be specified: %s",b);if(d=b.__AMP_WAIT_)return d;d=Ni(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 Ni(a,b){if(a.Ub[b])return a.Ub[b];var c=new u;let d=c.promise;c=c.resolve;a.Ub[b]=d;a.de[b]=c;return d}class Oi{constructor(a){this.B=a;this.Ub={};this.de={}}whenReady(a){return Mi(this,a).then(Li)}setHtmlForTemplate(a,b){return Mi(this,a).then((c=>c.setHtml(b)))}renderTemplate(a,b){return Mi(this,a).then((c=>c.render(b)))}renderTemplateAsString(a,b){return Mi(this,a).then((c=>c.renderAsString(b)))}renderTemplateArray(a,b){return 0==b.length?Promise.resolve([]):Mi(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);G(b,"Template not found for %s",a);let c=b.tagName;G("TEMPLATE"==c||"SCRIPT"==c&&"text/plain"===b.getAttribute("type"),'Template must be defined in a