self.AMP_CONFIG={"v":"012401091919000","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,"story-ad-placements":0.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"interaction-to-next-paint":1,"esm":1};/*AMP_CONFIG*/; (()=>{var t,i=class{constructor(){this.G=new e}abort(){if(!this.G.K&&(this.G.K=!0,this.G.Y)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.G,"currentTarget":this.G};this.G.Y(t)}}get signal(){return this.G}},e=class{constructor(){this.K=!1,this.Y=null}get aborted(){return this.K}get onabort(){return this.Y}set onabort(t){this.Y=t}};function s(){return t||(t=Promise.resolve(void 0))}var n=class{constructor(){this.promise=new Promise(((t,i)=>{this.resolve=t,this.reject=i}))}};function r(t){return new Promise((i=>{i(t())}))}function o(t){const i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;const{message:e,stack:s}=t,n=new Error(e);for(const i in t)n[i]=t[i];return n.stack=s,n}function h(t){let i=null,e="";for(const t of arguments)t instanceof Error&&!i?i=o(t):(e&&(e+=" "),e+=t);return i?e&&(i.message=e+": "+i.message):i=new Error(e),i}function l(t){var i,e;null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t)}function a(t){const i=h.apply(null,arguments);setTimeout((()=>{throw l(i),i}))}function u(t){const i=h.apply(null,arguments);return i.expected=!0,i}var{hasOwnProperty:c,toString:d}=Object.prototype;function f(t){return"[object Object]"===d.call(t)}function p(t){const i=Object.create(null);return t&&Object.assign(i,t),i}function m(t,i){return c.call(t,i)}function g(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function _(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function A(t){for(var i=1;i=0}function S(t,i,e="Assertion failed",s){var n,r;if(i)return i;t&&-1==e.indexOf(t)&&(e+=t);let o=3;const h=e.split("%s");let l=h.shift();const a=[l];for(;h.length;){const t=arguments[o++],i=h.shift();l+=x(t)+i,a.push(t,i.trim())}const u=new Error(l);throw u.messageArray=b(a,(t=>""!==t)),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,u),u}function O(t,i,e,s,n){return P(n)?t(e,n.concat([i])):t(e,`${n||s}: %s`,i),i}function k(t,i,e,s,n,r,o,h,l,a,u){return t}function C(t,i){return t}function L(t,i){return t}function N(t,i){return t}function D(t,i,e,s,n,r,o,h,l,a,u){return S(w,t,i,e,s,n,r,o,h,l,a,u)}function U(t){return JSON.parse(t)}function $(t,i){try{return U(t)}catch(t){return null==i||i(t),null}}function F(t){const i=new Uint8Array(t.length);for(let e=0;e0?s=t.setTimeout(o,h):(l=r,r=null,i.apply(null,l))}return function(...i){n=t.Date.now(),r=i,s||(s=t.setTimeout(o,e))}}var j=["javascript:","data:","vbscript:"],G=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function q(t,i=""){try{return decodeURIComponent(t)}catch(t){return i}}function W(t){const i=p();if(!t)return i;let e;for(;e=G.exec(t);){const t=q(e[1],e[1]),s=e[2]?q(e[2].replace(/\+/g," "),e[2]):"";i[t]=s}return i}function K(t){const{location:i}=t||self;return W(i.originalHash||i.hash)}var Y=t=>self.AMP_CONFIG?self.AMP_CONFIG[t]:null,Q=("string"==typeof Y("cdnProxyRegex")?new RegExp(Y("cdnProxyRegex")):Y("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function X(t){if(!self.document||!self.document.head)return null;if(self.location&&Q.test(self.location.origin))return null;const i=self.document.head.querySelector(`meta[name="${t}"]`);return i&&i.getAttribute("content")||null}var J=Y("thirdPartyUrl")||"https://3p.ampproject.net",Z=Y("thirdPartyFrameHost")||"ampproject.net",tt=("string"==typeof Y("thirdPartyFrameRegex")?new RegExp(Y("thirdPartyFrameRegex")):Y("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,it=Y("cdnUrl")||X("runtime-host")||"https://cdn.ampproject.org",et=/^https?:\/\/localhost(:\d+)?$/,st=Y("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",nt=Y("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",rt=Y("localDev")||!1,ot=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],ht=Y("geoApiUrl")||X("amp-geo-api"),lt="";function at(t){const i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:ct(t,K(t)),esm:!0,test:!1,rtvVersion:ut(t),ssrReady:!1}}(i)}function ut(t){var i;return lt||(lt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"012401091919000"),lt}function ct(t,i){const e=i||K(t);return["1","actions","amp","amp4ads","amp4email"].includes(e.development)||!!t.AMP_DEV_MODE}var dt=()=>{},ft=void 0;function pt(t){ft=t}var mt=(t,i)=>i.reduce(((t,i)=>`${t}&s[]=${gt(i)}`),`https://log.amp.dev/?v=012401091919000&id=${encodeURIComponent(t)}`),gt=t=>encodeURIComponent(String(x(t))),_t=t=>parseInt(K(t).log,10);self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var At=self.__AMP_LOG,vt=null;function Pt(t,i){if(!vt)throw new Error("failed to call initLogConstructor");return new vt(self,t,i)}function yt(t){return At.user||(At.user=bt(w)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(At.user.win,t)?At.userForEmbed||(At.userForEmbed=bt(I)):At.user}function bt(t){return Pt(((t,i)=>i||t>=1?4:2),t)}function Et(){return At.dev||(At.dev=Pt((t=>t>=3?4:t>=2?3:0)))}function Tt(t,i,e,s,n,r,o,h,l,a,u){return t}function Rt(t,i,e,s,n,r,o,h,l,a,u){return yt().assert(t,i,e,s,n,r,o,h,l,a,u)}function Mt(t){return(t.ownerDocument||t).defaultView}function wt(t,i){return t.replace(/^|,/g,`$&${i} `)}function It(t){return CSS.escape(t)}function xt(t){k(/^[\w-]+$/.test(t))}function Vt(t,i){return t.querySelector(wt(i,":scope"))}function St(t,i){return t.closest(i)}function Ot(t,i){for(let e=t.lastElementChild;e;e=e.previousElementSibling)if(i(e))return e;return null}function kt(t,i){return xt(i),Vt(t,`> [${i}]`)}function Ct(t){return!!function(t){let i;return T(t)?i=t:R(t)&&(i=t.tagName),!!i&&i.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(C(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var Lt={bubbles:!0,cancelable:!0};function Nt(t,i,e){if(i(t))e();else{const s=new(Mt(t).MutationObserver)((()=>{i(t)&&(s.disconnect(),e())}));s.observe(t,{childList:!0})}}function Dt(t){return new Promise((i=>function(t,i){Nt(t.documentElement,(()=>!!t.body),i)}(t,i)))}function Ut(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function $t(t,i,e){return function(t,i){for(const e in i)t.setAttribute(e,i[e]);return t}(t.createElement(i),e)}function Ft(t){const i=t.isConnected;if(void 0!==i)return i;let e=t;for(;e=zt(e),e.host;)e=e.host;return e.nodeType===Node.DOCUMENT_NODE}function zt(t){if(Node.prototype.getRootNode)return t.getRootNode();let i;for(i=t;i.parentNode&&(!(e=i)||"I-AMPHTML-SHADOW-ROOT"!=e.tagName&&(11!=e.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(e)));i=i.parentNode);var e;return i}function Ht(t,i){let e=t;do{if(e.nextSibling)return!0}while((e=e.parentNode)&&e!=i);return!1}function Bt(t){try{t.focus()}catch(t){}}function jt(t){return t.parent&&t.parent!=t}function Gt(t,i,e,s){const n=e||{};k(t.ownerDocument);const{bubbles:r,cancelable:o}=s||Lt,h=new MessageEvent(i,{data:n,bubbles:r,cancelable:o});t.dispatchEvent(h)}function qt(t,i){return i!==t&&t.contains(i)}function Wt(t){return t.hasAttribute("i-amphtml-ssr")}function Kt(t,i){const e=t.head.querySelector("script[nonce]");if(e){const t=e.nonce||e.getAttribute("nonce");i.setAttribute("nonce",null!=t?t:"")}}function Yt(t,i,e,s){return{left:t,top:i,width:e,height:s,bottom:i+s,right:t+e,x:t,y:i}}function Qt(t){return Yt(Number(t.left),Number(t.top),Number(t.width),Number(t.height))}function Xt(t,i,e){return 0==i&&0==e||0==t.width&&0==t.height?t:Yt(t.left+i,t.top+e,t.width,t.height)}function Jt(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((()=>{}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var Zt=class t{constructor(i,e){this.tt=i,this.et=A({root:null,rootMargin:"0px 0px 0px 0px"},e),this.nt=[],this.ot=null,t._upgraders.push(this.rt.bind(this))}get root(){return this.ot?this.ot.root:this.et.root||null}get rootMargin(){return this.ot?this.ot.rootMargin:this.et.rootMargin}get thresholds(){return this.ot?this.ot.thresholds:[].concat(this.et.threshold||0)}disconnect(){this.ot?this.ot.disconnect():this.nt.length=0}takeRecords(){return this.ot?this.ot.takeRecords():[]}observe(t){this.ot?this.ot.observe(t):-1==this.nt.indexOf(t)&&this.nt.push(t)}unobserve(t){if(this.ot)this.ot.unobserve(t);else{const i=this.nt.indexOf(t);-1!=i&&this.nt.splice(i,1)}}rt(t){const i=new t(this.tt,this.et);this.ot=i;for(const t of this.nt)i.observe(t);this.nt.length=0}};Zt._upgraders=[];var{hasOwnProperty:ti}=Object.prototype;function ii(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var ei,si=class t{constructor(i){this.tt=i,this.nt=[],this.ot=null,t._upgraders.push(this.rt.bind(this))}disconnect(){this.ot?this.ot.disconnect():this.nt.length=0}observe(t){this.ot?this.ot.observe(t):-1==this.nt.indexOf(t)&&this.nt.push(t)}unobserve(t){if(this.ot)this.ot.unobserve(t);else{const i=this.nt.indexOf(t);-1!=i&&this.nt.splice(i,1)}}rt(t){const i=new t(this.tt);this.ot=i;for(const t of this.nt)i.observe(t);this.nt.length=0}};si._upgraders=[],self.document&&(Jt(ei=self)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Zt,void(t.IntersectionObserver._stub=Zt);const i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(e,s){var n;return 9===(null==s||null===(n=s.root)||void 0===n?void 0:n.nodeType)?new i(e,s):new t(e,s)}}(t.IntersectionObserver,Zt),t.IntersectionObserver._stub=Zt,t.IntersectionObserver._native=i}(ei),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(ei),function(t){ii(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=si,t.ResizeObserver._stub=si)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:i}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:e}))}(self));var ni="cls",ri="clstu",oi="cls-1",hi="pc",li="inp",ai=["amp-mustache"],ui=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function ci(t){if(!t)return null;const i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),e=i?i[2]:void 0,s=i?i[3]:void 0;return e&&s?{extensionId:e,extensionVersion:s}:null}function di(t,i,e){const s=t.document.createElement("script");s.async=!0,pi(i)?e="":s.setAttribute(ai.indexOf(i)>=0?"custom-template":"custom-element",i),s.setAttribute("data-script",i),s.setAttribute("i-amphtml-inserted",""),s.setAttribute("type","module"),Kt(t.document,s),s.setAttribute("crossorigin","anonymous");const n=function(t,i,e,s){return`${it}/rtv/${at().rtvVersion}/v0/${i}${e?"-"+e:""}.mjs`}(t.location,i,e);let r={createScriptURL:function(t){return ui.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(r=self.trustedTypes.createPolicy("extension-script#createExtensionScript",r)),s.src=r.createScriptURL(n),s}function fi(t,i,e,s,n=!0){const r=":not([i-amphtml-loaded-new-version])"+(n?"":":not([i-amphtml-inserted])"),o=t.document.head.querySelectorAll(`script[src*="/${i}-"]${r}`),h=[];for(let t=0;t{})),{obj:null,promise:i,resolve:s,reject:e,context:null,ctor:null}}function Ni(t,i,e,s){return Di(t,i,e,s).then((t=>function(t,i,e){return Rt(t,"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.",i,e,e,e)}(t,i,e)))}function Di(t,i,e,s){const n=bi(t,i);if(n)return n;const r=Ri(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(e);return t?_i(r.win,"extensions").waitForExtension(e,t):null})).then((e=>e?s?bi(t,i):yi(t,i):null))}var Ui,$i=t=>Di(t,"access","amp-access"),Fi=t=>Di(t,"subscriptions","amp-subscriptions"),zi=t=>Pi(t,"action"),Hi=t=>Ni(t,"activity","amp-analytics"),Bi=t=>Ri(t),ji=t=>_i(t,"ampdoc"),Gi=t=>function(t,i,e){const s=Pi(t,i);return s?Promise.resolve(s):Di(t,i,"amp-bind")}(t,"bind"),qi=t=>yi(t,"cid"),Wi=t=>vi(t,"documentInfo").get(),Ki=t=>_i(t,"extensions"),Yi=t=>vi(t,"history"),Qi=t=>vi(t,"mutator"),Xi=t=>_i(t,"performance"),Ji=t=>_i(t,"platform"),Zi=t=>_i(t,"preconnect"),te=t=>vi(t,"resources"),ie=t=>function(t,i){return wi(t,"timer")}(t),ee=t=>Pi(t,"url-replace"),se=t=>Di(t,"geo","amp-geo",!0),ne=t=>Pi(t,"url"),re=t=>vi(t,"viewer"),oe=t=>_i(t,"vsync"),he=t=>vi(t,"viewport"),le="prerender",ae="preview",ue="visible",ce="hidden",de="paused",fe="inactive",pe=class{constructor(){this.Vt=null}add(t){return this.Vt||(this.Vt=[]),this.Vt.push(t),()=>{this.remove(t)}}remove(t){this.Vt&&E(this.Vt,t)}removeAll(){this.Vt&&(this.Vt.length=0)}fire(t){if(this.Vt)for(const i of this.Vt.slice())i(t)}getHandlerCount(){var t,i;return null!==(t=null===(i=this.Vt)||void 0===i?void 0:i.length)&&void 0!==t?t:0}},me=class{constructor(){this.Nt=p(),this.ti=null}get(t){const i=this.Nt[t];return null==i?null:i}whenSignal(t){var i;let e=null===(i=this.ti)||void 0===i?void 0:i[t];if(!e){const i=this.Nt[t];e=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new n,this.ti||(this.ti=p()),this.ti[t]=e}return e.promise}signal(t,i){var e;if(null!=this.Nt[t])return;const s=null!=i?i:Date.now();this.Nt[t]=s;const n=null===(e=this.ti)||void 0===e?void 0:e[t];null!=n&&n.resolve&&(n.resolve(s),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,i){var e;if(null!=this.Nt[t])return;this.Nt[t]=i;const s=null===(e=this.ti)||void 0===e?void 0:e[t];null!=s&&s.reject&&(s.reject(i),s.promise.catch((()=>{})),s.resolve=void 0,s.reject=void 0)}reset(t){var i;this.Nt[t]&&delete this.Nt[t];const e=null===(i=this.ti)||void 0===i?void 0:i[t];e&&!e.resolve&&delete this.ti[t]}},ge="building",_e="mounting",Ae="loading",ve="complete",Pe="error";function ye(t){return t.readyState!=Ae&&"uninitialized"!=t.readyState}function be(t){return t.readyState==ve}function Ee(t,i){Te(t,ye,i)}function Te(t,i,e){let s=i(t);if(s)e(t);else{const n=()=>{i(t)&&(s||(s=!0,e(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}function Re(t){return new Promise((i=>{Ee(t,i)}))}function Me(t){return new Promise((i=>{Te(t,be,i)}))}var we=["Webkit","webkit","Moz","moz","ms","O","o"],Ie={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function xe(t){const i=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return we.some((t=>i.startsWith(t+"-")))?`-${i}`:i}function Ve(t,i,e){if(i.startsWith("--"))return i;Ui||(Ui=p());let s=Ui[i];if(!s||e){if(s=i,void 0===t[i]){const e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),n=function(t,i){for(let e=0;eze(this.win.document,r))),this.ai()}dispose(){(function(t){const i=Si(t);for(const t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const e=i[t];e.sharedInstance||(e.obj?ki(t,e.obj):e.promise&&e.promise.then((i=>ki(t,i))))}})(this),this.ci.forEach((t=>t()))}isSingleDoc(){return Tt(null)}getParent(){return this.si}signals(){return this.ei}getParam(t){const i=this.ni[t];return null==i?null:i}getMeta(){return this.ri||(this.ri=p(),this.win.document.head.querySelectorAll("meta[name]").forEach((t=>{const i=t.getAttribute("name"),e=t.getAttribute("content");i&&null!==e&&void 0===this.ri[i]&&(this.ri[i]=e)}))),p(this.ri)}getMetaByName(t){if(!t)return null;const i=this.getMeta()[t];return void 0!==i?i:null}setMetaByName(t,i){Tt(null)}declaresExtension(t,i){const e=this.hi[t];return!(!e||i&&e!==i)}declareExtension(t,i){Tt(!this.hi[t]||this.hi[t]===i),this.hi[t]=i}getExtensionVersion(t){return this.hi[t]||null}setExtensionsKnown(){this.ei.signal(Ge)}whenExtensionsKnown(){return this.ei.whenSignal(Ge)}getRootNode(){return Tt(null)}getHeadNode(){}isBodyAvailable(){return Tt(!1)}getBody(){return Tt(null)}waitForBodyOpen(){return Tt(null)}isReady(){return Tt(null)}whenReady(){return Tt(null)}getUrl(){return Tt(null)}getElementById(t){return this.getRootNode().getElementById(t)}contains(t){return this.getRootNode().contains(t)}overrideVisibilityState(t){this.oi!=t&&(this.oi=t,this.ai())}ai(){const t=$e(this.win.document);let i,e=ue;for(let t=this.si;t;t=t.getParent())if(t.getVisibilityState()!=ue){e=t.getVisibilityState();break}const s=this.oi||ue;if(i=s==ue&&e==ue&&t==ue?ue:t==ce&&s==de?t:s==de||s==fe?s:e==de||e==fe?e:s==ae||t==ae||e==ae?ae:s==le||t==le||e==le?le:ce,this.D!=i){if(i==ue){var n;const{performance:t}=this.win;let i=Math.floor(null!==(n=t.timeOrigin)&&void 0!==n?n:t.timing.navigationStart);null!=this.D&&(i+=Math.floor(t.now())),this.li=i,this.ei.signal(qe,i),this.ei.signal(We,i)}else this.ei.reset(We);i==ae&&this.ei.signal(Ke),this.D=i,this.ui.fire()}}whenFirstPreviewedOrVisible(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])}whenFirstPreviewed(){return this.ei.whenSignal(Ke).then((()=>{}))}whenFirstVisible(){return this.ei.whenSignal(qe).then((()=>{}))}whenNextVisible(){return this.ei.whenSignal(We).then((()=>{}))}getFirstVisibleTime(){return this.ei.get(qe)}getLastVisibleTime(){return this.li}getVisibilityState(){return Tt(this.D)}isPreview(){return this.D==ae}isVisible(){return this.D==ue}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(t){return this.ui.add(t)}registerSingleton(t){return!this.ii[t]&&(this.ii[t]=!0,!0)}},Qe=class extends Ye{constructor(t,i){super(t,null,i),this.di=this.win.document.body?Promise.resolve(this.win.document.body):Dt(this.win.document).then((()=>this.getBody())),this.fi=Re(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return Be.getLocation(this.win).href}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.di}isReady(){return ye(this.win.document)}whenReady(){return this.fi}},Xe=class extends Ye{constructor(t,i,e,s){super(t,null,s),this.pi=i,this.mi=e,this._i=null;const r=new n;this.di=r.promise,this.Ai=r.resolve,this.gi=!1;const o=new n;this.fi=o.promise,this.Pi=o.resolve}isSingleDoc(){return!1}getRootNode(){return this.mi}getUrl(){return this.pi}getHeadNode(){return this.mi}isBodyAvailable(){return!!this._i}getBody(){return this._i}setBody(t){Tt(!this._i),this._i=t,this.Ai(t),this.Ai=void 0}waitForBodyOpen(){return this.di}isReady(){return this.gi}setReady(){Tt(!this.gi),this.gi=!0,this.Pi(),this.Pi=void 0}whenReady(){return this.fi}getMeta(){return p(this.ri)}setMetaByName(t,i){Tt(t),this.ri||(this.ri=p()),this.ri[t]=i}},Je=class extends Ye{constructor(t,i,e,s){super(t,e,s),this.pi=i,this.di=this.win.document.body?Promise.resolve(this.win.document.body):Dt(this.win.document).then((()=>this.getBody())),this.gi=!1;const r=new n;this.fi=r.promise,this.Pi=r.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.pi}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.di}isReady(){return this.gi}whenReady(){return this.fi}setReady(){Tt(!this.gi),this.gi=!0,this.Pi(),this.Pi=void 0}};function Ze(t,i){const e=p();return i?Object.assign(e,i):(t.name&&0==t.name.indexOf(je)&&Object.assign(e,W(t.name.substring(je.length))),t.location&&t.location.hash&&Object.assign(e,W(t.location.hash))),e}var ts="nodisplay",is="fixed",es="fixed-height",ss="responsive",ns="container",rs="fill",os="flex-item",hs="fluid",ls="intrinsic",as=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function us(t){if("nodisplay"===(i=t)||"fixed"===i||"fixed-height"===i||"responsive"===i||"container"===i||"fill"===i||"flex-item"===i||"fluid"===i||"intrinsic"===i)return t;var i}function cs(t){return"i-amphtml-layout-"+t}function ds(t){return t==is||t==es||t==ss||t==rs||t==os||t==hs||t==ls}function fs(t){return"number"==typeof t?t+"px":t&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(t)?/^\d+(\.\d+)?$/.test(t)?t+"px":t:void 0}function ps(t){!function(t){D(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(null!=t?t:""),"Invalid length value: %s",t)}(t);const i=/[a-z]+/i.exec(null!=t?t:"");return D(i,"Failed to read units from %s",t),i[0]}function ms(t){const i=parseFloat(t);return M(i)?i:void 0}function gs(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function _s(t,i,e,s){const n=y(t);for(const t of n){const n=i.getAttribute(t);null!==n?e.setAttribute(t,n):s&&e.removeAttribute(t)}}var As,vs="amp:attached",Ps="amp:load-start",ys="amp:load-end",bs="ready-upgrade",Es="upgraded",Ts="built",Rs="mounted",Ms="load-start",ws="render-start",Is="load-end",xs="unload";function Vs(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function Ss(t,i){return i.split(",").map((i=>{if(0==(i=i.replace(/\s+/g," ").trim()).length)return;let e,s,n;if(")"==i.charAt(i.length-1)){let t=1;for(n=i.length-2;n>=0;n--){const e=i.charAt(n);if("("==e?t--:")"==e&&t++,0==t)break}const e=n-1;if(n>0)for(n--;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(n>=e)return null}else for(n=i.length-2;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return n>=0?(e=i.substring(0,n+1).trim(),s=i.substring(n+1).trim()):(s=i,e=void 0),s?{query:e?t.matchMedia(e):null,value:s}:null})).filter(Boolean)}function Os(t,i,e){for(let s=0;s'],Ns={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Ds(t){const i=t.getAttribute("layout"),e=t.getAttribute("width"),s=t.getAttribute("height"),n=t.getAttribute("sizes"),r=t.getAttribute("heights"),o=i?us(i):null;D(void 0!==o,'Invalid "layout" value: %s, %s',i,t);const h=e&&"auto"!=e?fs(e):e;D(void 0!==h,'Invalid "width" value: %s, %s',e,t);const l=s&&"fluid"!=s?fs(s):s;let a,u,c;if(D(void 0!==l,'Invalid "height" value: %s, %s',s,t),o&&o!=is&&o!=es||h&&l||(d=(d=t.tagName).toUpperCase(),void 0===Ns[d]))a=h,u=l;else{const i=function(t){const i=t.tagName.toUpperCase();if(k(void 0!==Ns[i]),!Ns[i]){const e=t.ownerDocument,s=i.replace(/^AMP\-/,""),n=e.createElement(s);n.controls=!0,ke(n,{position:"absolute",visibility:"hidden"}),e.body.appendChild(n),Ns[i]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"},e.body.removeChild(n)}return Ns[i]}(t);a=h||o==es?h:i.width,u=l||i.height}var d;return c=o||(a||u?"fluid"==u?hs:!u||a&&"auto"!=a?u&&a&&(n||r)?ss:is:es:ns),c!=is&&c!=es&&c!=ss&&c!=ls||D(u,'The "height" attribute is missing: %s',t),c==es&&D(!a||"auto"==a,'The "width" attribute must be missing or "auto": %s',t),c!=is&&c!=ss&&c!=ls||D(a&&"auto"!=a,'The "width" attribute must be present and not "auto": %s',t),c==ss||c==ls?D(ps(a)==ps(u),'Length units should be the same for "width" and "height": %s, %s, %s',e,s,t):D(null===r,'"heights" attribute must be missing: %s',t),{layout:c,width:a,height:u}}var Us,$s="amp-experiment-toggles",Fs="__AMP__EXPERIMENT_TOGGLES";function zs(t,i){return!!Bs(t)[i]}function Hs(t,i,e,s){const n=zs(t,i),r=null!=e?e:!n;if(r!=n&&(Bs(t)[i]=r,!s)){const e=js(t);e[i]=r,function(t,i){const e=[];for(const t in i)e.push((!1===i[t]?"-":"")+t);try{var s;null===(s=t.localStorage)||void 0===s||s.setItem($s,e.join(","))}catch(t){yt().error("EXPERIMENTS","Failed to save experiments to localStorage.")}}(t,e)}return r}function Bs(t){var i,e,s,n,r;if(t[Fs])return t[Fs];t[Fs]=p();const o=t[Fs];k(o);const h=A(A({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(e=t.AMP_EXP)&&void 0!==e?e:U((null===(s=t.__AMP_EXP)||void 0===s?void 0:s.textContent)||"{}"));for(const t in h){const i=h[t];"number"==typeof i&&i>=0&&i<=1&&(o[t]=Math.random(){try{return r(t)}catch(t){var i,e;throw null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t),t}};const h=function(){if(void 0!==Us)return Us;Us=!1;try{const t={get capture(){return Us=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Us}(),l=!(null==s||!s.capture);return n.addEventListener(i,o,h?s:l),()=>{null==n||n.removeEventListener(i,o,h?s:l),r=null,n=null,o=null}}var qs="Failed to load:";function Ws(t,i,e,s){const n={detail:e};return Object.assign(n,s),new t.CustomEvent(i,n)}function Ks(t,i,e,s){return Gs(t,i,e,s)}function Ys(t){return t.data}function Qs(t,i,e,s){let n=e;const r=Gs(t,i,(t=>{try{n(t)}finally{n=null,r()}}),s);return r}function Xs(t){let i,e;if(function(t){return!!(t.complete||"complete"==t.readyState||Js(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const s=Js(t);return s&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(i=s?Qs(t,"loadedmetadata",n,{capture:!0}):Qs(t,"load",n),!t.tagName)return;let o=t;if(s&&!t.hasAttribute("src")&&(o=Ot(t,(t=>"SOURCE"===t.tagName)),!o))return r(new Error("Media has no source."));e=Qs(o,"error",r)})).then((()=>(e&&e(),t)),(()=>{i&&i(),function(t){Js(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let i=t;throw i&&i.src&&(i=i.src),yt().createError(qs,i)}(t)}))}function Js(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Zs={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function tn(t){const i=t.document;return Tt(i.body),Object.keys(Zs).filter((t=>i.querySelector(Zs[t])))}function en(t,i,e,s,n){const r=t.getHeadNode(),o=function(t,i,e,s){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=p());const r=!e&&s&&"amp-custom"!=s&&"amp-keyframes"!=s,o=e?"amp-runtime":r?`amp-extension=${s}`:null;if(o){const e=sn(t,n,o);if(e)return"STYLE"==e.tagName&&e.textContent!==i&&(e.textContent=i),e}const h=(t.ownerDocument||t).createElement("style");h.textContent=i;let l=null;return e?h.setAttribute("amp-runtime",""):r?(h.setAttribute("amp-extension",s||""),l=sn(t,n,"amp-runtime")):(s&&h.setAttribute(s,""),l=t.lastChild),function(t,i,e=null){if(!e)return void function(t,i){t.insertBefore(i,t.firstChild)}(t,i);const s=e.nextSibling;t.insertBefore(i,s)}(t,h,l),o&&(n[o]=h),h}(r,function(t,i){const e=t.__AMP_CSS_TR;return e?e(i):i}(r,i),s||!1,n||null);if(e){const i=t.getRootNode();if(hn(i,o))return e(o),o;const s=setInterval((()=>{hn(i,o)&&(clearInterval(s),e(o))}),4)}return o}function sn(t,i,e){if(i[e])return i[e];const s=t.querySelector(`style[${e}], link[${e}]`);return s?(i[e]=s,s):null}var nn=!1;function rn(t){Tt(t.defaultView),nn||(nn=!0,on(t))}function on(t){ke(t.body,{opacity:1,visibility:"visible","animation":"none"})}function hn(t,i){const e=t.styleSheets;for(let t=0;t"string"==typeof t?dn(t):t;function dn(t,i){return ln||(ln=self.document.createElement("a")),fn(ln,t)}function fn(t,i,e){return t.href="",new URL(i,t.href)}function pn(t,i,e){if(!i)return t;const s=t.split("#",2),n=s[0].split("?",2);let r=n[0]+(n[1]?e?`?${i}&${n[1]}`:`?${n[1]}&${i}`:`?${i}`);return r+=s[1]?`#${s[1]}`:"",r}function mn(t,i){return`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}function gn(t,i){return pn(t,_n(i))}function _n(t){const i=[];for(const e in t){let s=t[e];if(null!=s){s=y(s);for(let t=0;t=0&&t.indexOf(i,e)==e}(t.hostname,".localhost")}function vn(t,i,e="source"){return Rt(null!=t,"%s %s must be available",i,e),Rt(An(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',i,e,t),t}function Pn(t){const i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function yn(t){return Q.test(cn(t).origin)}function bn(t){return!(t&&j.includes(cn(t).protocol))}function En(t){const{hash:i,origin:e,pathname:s,search:n}=dn(t);return e+s+Tn(n)+i}function Tn(t){return function(t,i){if(!t||"?"==t)return"";const e=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),s=t.replace(e,"").replace(/^[?&]/,"");return s?"?"+s:""}(t)}function Rn(t){if(!yn(t=cn(t)))return t.href;const i=t.pathname.split("/"),e=i[1];Rt(an.has(e),"Unknown path prefix in url %s",t.href);const s=i[2],n="s"==s?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(s);return Rt(n.indexOf(".")>0,"Expected a . in origin %s",n),i.splice(1,"s"==s?3:2),n+i.join("/")+Tn(t.search)+(t.hash||"")}function Mn(t){return dn(Rn(t)).origin}function wn(t,i){return i=cn(i),new URL(t,i.href).toString()}function In(t,i){return xn(i),function(t,i,e,s){return pn(t,mn("__amp_source_origin",e),void 0)}(i,0,Mn(t.location.href))}function xn(t){const i=W(dn(t).search);Rt(!(un in i),"Source origin is not allowed in %s",t)}var Vn="CANCELLED",Sn="BLOCK_BY_CONSENT",On=self.__AMP_ERRORS||[];self.__AMP_ERRORS=On;var kn=function(t){return(kn=function(t){const i=function(t){let i=0;return()=>{let t=Math.pow(1.5,i++);return t+=function(t,i){let e=t*(i=i||.3)*Math.random();return Math.random()>.5&&(e*=-1),e}(t),1e3*t}}();return t=>setTimeout(t,i())}())(t)};function Cn(t,i){try{let e;if(t)if(void 0!==t.message)t=o(t),e=!0;else{const i=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(i))).origError=i}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){const i=function(t,i){for(let i=0;i-1&&(t.associatedElement=t.messageArray[i])}const s=i||t.associatedElement;if(s&&s.classList&&s.classList.add("i-amphtml-error"),self.console&&(V(t.message)||!t.expected)){const i=console.error||console.log;t.messageArray?i.apply(console,t.messageArray):s?i.call(console,t.message,s):i.call(console,t.message)}s&&s.dispatchCustomEventForTesting&&s.dispatchCustomEventForTesting("amp:error",t.message),Dn.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Ln(){return new Error(Vn)}function Nn(t){return!!t&&("string"==typeof t?t.startsWith(Sn):"string"==typeof t.message&&t.message.startsWith(Sn))}function Dn(t,i,e,n,r){!this||!this.document||r&&r.expected||rn(this.document);let o=!1;try{o=function(t){if(!t.document)return!1;const i=t.document.querySelectorAll("script[src]");for(let t=0;t.01)return;const h=function(t,i,e,s,n,r){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,n);let o=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==Vn)return;const h=!(self&&self.window),l=Math.random();if((function(t){return-1!=t.indexOf(qs)}(t)||"Script error."==t||h)&&(o=!0,l>.001))return;const a=V(t);if(a&&l>.1)return;const u=Object.create(null);u.v=at().rtvVersion,u.noAmp=r?"1":"0",u.m=t.replace(w,""),u.a=a?"1":"0",u.ex=o?"1":"0",u.dw=h?"1":"0";let c="1p";var d,f;if(c="esm",u.esm="1",u.rt="esm",u.cdn=it,u.ca=null!==(f=self.AMP_CONFIG)&&void 0!==f&&f.canary?"1":"0",u.bt=(null===(d=self.AMP_CONFIG)||void 0===d?void 0:d.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(u.or=self.location.ancestorOrigins[0]),self.viewerState&&(u.vs=self.viewerState),self.parent&&self.parent!=self&&(u.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),i=self.AMP.viewer.maybeGetMessagingOrigin();t&&(u.rvu=t),i&&(u.mso=i)}const p=[],m=self[Fs]||null;for(const t in m){const i=m[t];p.push(`${t}=${i?"1":"0"}`)}var g,_,A;return u.exps=p.join(","),n?(u.el=(null===(g=n.associatedElement)||void 0===g?void 0:g.tagName)||"u",n.args&&(u.args=JSON.stringify(n.args)),a||n.ignoreStack||!n.stack||(u.s=n.stack),n.message&&(n.message+=" _reported_")):(u.f=i||"",u.l=e||"",u.c=s||""),u.r=self.document?self.document.referrer:"",u.ae=On.join(","),u.fr=self.location.originalHash||self.location.hash,"production"===u.bt&&(u.pt="1"),A=t,(_=On).length>=25&&_.splice(0,_.length-25+1),_.push(A),u}(t,i,e,n,r,o);h&&kn((()=>{try{return function(t,i){return i.pt&&Math.random()<.9?s():function(t,i){const e=ji(t);if(!e.isSingleDoc())return Promise.resolve(!1);const s=e.getSingleDoc();if(!s.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=re(s);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(e=i).m,"a":e.a,"s":e.s,"el":e.el,"ex":e.ex,"v":e.v,"pt":e.pt}),!0);var e})):Promise.resolve(!1)}(t,i).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?nt:st,!0),t.send(JSON.stringify(i))}}))}(this,h).catch((()=>{}))}catch(t){}}))}var Un="Resource",$n=class t{static forElement(i){return Tt(t.forElementOptional(i))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(i,e){Tt(e.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(e),i.__AMP__OWNER=e;const s=i.getElementsByClassName("i-amphtml-element");for(let i=0;i{this.Ri=!1,this.Mi=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.Ri=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){Nn(t)||Et().error(Un,"failed to build:",this.debugid,t)}changeSize(t,i,e){this.element.applySize(t,i,e),this.requestMeasure()}overflowCallback(t,i,e,s){t&&(this.Di={height:i,width:e,margins:s}),this.element.overflowCallback(t,i,e,s)}resetPendingChangeSize(){this.Di=void 0}getPendingChangeSize(){return this.Di}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.Ti&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-")&&!("__AMP__RESOURCE"in this.element.parentElement))return;if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return void(this.Mi=1);this.Ci=!1;const t=this.xi;this.Fi();const i=this.xi,e=(n=i,!((s=t).width==n.width&&s.height===n.height));var s,n;(1==this.Mi||t.top!=i.top||e)&&this.element.isUpgraded()&&(1==this.Mi?this.Mi=2:4!=this.Mi&&5!=this.Mi||!this.element.isRelayoutNeeded()||(this.Mi=2)),this.hasBeenMeasured()||(this.Oi=i),this.element.updateLayoutBox(i,e)}ensureMeasured(){return this.hasBeenMeasured()?s():oe(this.hostWin).measure((()=>this.measure()))}Fi(){const t=he(this.element);this.xi=t.getLayoutRect(this.element);let i=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:e}=this.Ei.getAmpdoc(),{body:s}=e.document;for(let n=this.element;n&&n!=s;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==De(e,n).position){i=!0;break}}}this.Si=i,i&&(this.xi=Xt(this.xi,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){Ce(this.element,!1),this.xi=Yt(this.xi.left,this.xi.top,0,0),this.Si=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){Ce(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.Ci}hasBeenMeasured(){return!!this.Oi}requestMeasure(){this.Ci=!0}getLayoutSize(){return function(t){const{height:i,width:e}=t;return{width:e,height:i}}(this.xi)}getLayoutBox(){if(!this.Si)return this.xi;const t=he(this.element);return Xt(this.xi,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.Oi||this.xi}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==hs,i=this.getLayoutBox(),e=i.height>0&&i.width>0;return t||e}isFixed(){return this.Si}overlaps(t){return e=t,(i=this.getLayoutBox()).top<=e.bottom&&e.top<=i.bottom&&i.left<=e.right&&e.left<=i.right;var i,e}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(Tt(!1!==t),!this.isLayoutPending()||!0===t)return s();const i=t,e=String(i);return this.ki&&this.ki[e]?this.ki[e].promise:this.isWithinViewportRatio(i)?s():(this.ki=this.ki||{},this.ki[e]=new n,this.ki[e].promise)}Bi(){if(!this.ki)return;const t=this.getDistanceViewportRatio();for(const i in this.ki)this.isWithinViewportRatio(parseFloat(i),t)&&(this.ki[i].resolve(),delete this.ki[i])}getDistanceViewportRatio(){const t=he(this.element).getRect(),i=this.getLayoutBox(),e=this.Ei.getScrollDirection();let s=1,n=0;if(t.righti.right)return{distance:!1};if(t.bottomi.bottom))return{distance:!0};n=t.top-i.bottom,1==e&&(s=2)}return{distance:n,scrollPenalty:s,viewportHeight:t.height}}isWithinViewportRatio(t,i){if("boolean"==typeof t)return t;const{distance:e,scrollPenalty:s,viewportHeight:n}=i||this.getDistanceViewportRatio();return"boolean"==typeof e?e:e0&&!this.element.isRelayoutNeeded())return this.Mi=4,s();this.wi++,this.Mi=3,this.bi=new AbortController;const{signal:t}=this.bi,i=new Promise(((i,e)=>{oe(this.hostWin).mutate((()=>{let s;try{s=this.element.layoutCallback(t)}catch(t){e(t)}Promise.resolve(s).then(i,e)})),t.onabort=()=>e(Ln())})).then((()=>this.Hi(!0,t)),(i=>this.Hi(!1,t,i)));return this.Ni=i}Hi(t,i,e){if(this.bi=null,i.aborted){const t=Et().createError("layoutComplete race");throw t.associatedElement=this.element,Et().expectedError(Un,t),Ln()}if(this.Ui&&(this.Ui(),this.Ui=null),this.Ni=null,this.Mi=t?4:5,this.Vi=e,!t)return Promise.reject(e)}isLayoutPending(){return 4!=this.Mi&&5!=this.Mi}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Li}isInViewport(){return this.$i&&this.Bi(),this.$i}setInViewport(t){this.$i=t}unlayout(){0!=this.Mi&&1!=this.Mi&&2!=this.Mi&&(this.bi&&(this.bi.abort(),this.bi=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Mi=1,this.wi=0,this.Ni=null))}getTaskId(t){return this.debugid+"#"+t}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)}},Fn="ready-scan",zn="scheduler",Hn="250% 31.25%";function Bn(t){return gi(t,zn,class{constructor(t){this.ji=t;const{win:i}=t;this.zi=new i.IntersectionObserver((t=>this.Gi(t)),{root:jt(i)?i.document:null,rootMargin:Hn}),this.qi=new Map,this.Wi=new Map,this.Ki=[],this.Yi=!1,t.whenReady().then((()=>this.Ji())),this.Qi=t.onVisibilityChanged((()=>this.Xi()))}dispose(){this.zi.disconnect(),this.Wi.clear(),this.Qi&&(this.Qi(),this.Qi=null)}scheduleAsap(t){this.Wi.set(t,{asap:!0,isIntersecting:!1}),this.Zi(t)}schedule(t){this.Wi.has(t)||(t.deferredMount()?(this.Wi.set(t,{asap:!1,isIntersecting:!1}),this.zi.observe(t),this.qi.size>0&&this.qi.forEach(((i,e)=>{qt(e,t)&&i.observe(t)}))):this.Wi.set(t,{asap:!1,isIntersecting:!0}),this.Zi(t))}unschedule(t){this.Wi.has(t)&&(this.Wi.delete(t),this.zi.unobserve(t),this.qi.size>0&&this.qi.forEach((i=>{i.unobserve(t)})),this.Ki&&(E(this.Ki,t),this.Ji()))}setContainer(t,i){if(this.qi.has(t))return;const{win:e}=this.ji,s=new e.IntersectionObserver((t=>this.Gi(t)),{root:i||t,rootMargin:Hn});this.qi.set(t,s),this.Wi.forEach((({asap:i},e)=>{!i&&qt(t,e)&&s.observe(e)}))}removeContainer(t){const i=this.qi.get(t);i&&(i.disconnect(),this.qi.delete(t))}ts(){if(this.ji.isReady()&&!this.Yi){this.Yi=!0;const{win:t}=this.ji;t.setTimeout((()=>{this.ji.signals().signal(Fn)}),50)}}Xi(){const t=this.ji.getVisibilityState();t!=ue&&t!=ce&&t!=le&&t!=ae||this.Wi.forEach(((t,i)=>this.ss(i)))}Zi(t){const i=this.Ki;i?(i.includes(t)||i.push(t),this.Ji()):this.ss(t)}Ji(){const t=this.ji.isReady(),i=this.Ki;if(i)for(let e=0;et.mountInternal()))}}),vi(t,zn)}var jn=class{constructor(){this.es=[]}peek(){const t=this.length;return t?this.es[t-1].item:null}enqueue(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");const e=this.ns(i);this.es.splice(e,0,{item:t,priority:i})}ns(t){let i=-1,e=0,s=this.length;for(;e<=s&&(i=Math.floor((e+s)/2),i!==this.length);)if(this.es[i].priority0&&this.es[i-1].priority>=t))break;s=i-1}return i}forEach(t){let i=this.length;for(;i--;)t(this.es[i].item)}dequeue(){const t=this.es.pop();return t?t.item:null}get length(){return this.es.length}},Gn=/nochunking=1/.test(self.location.hash),qn=!1,Wn=s();function Kn(t,i,e){if(Gn)return void Wn.then(i);const s=(gi(n=t.documentElement||t,"chunk",Jn),vi(n,"chunk"));var n;s.runForStartup(i),e&&s.runForStartup((()=>{s.rs=!0}))}var Yn="not_run",Qn=class{constructor(t){this.state=Yn,this.hs=t}os(t){if("run"!=this.state){this.state="run";try{this.hs(t)}catch(t){throw this.us(t),t}}}ls(){return this.hs.displayName||this.hs.name}us(t){}cs(){return!1}ds(){return!1}},Xn=class extends Qn{constructor(t,i,e){super(t),this.fs=e}us(t){rn(self.document)}cs(){return this.ps()}ds(){return this.fs._s}ps(){return this.fs.ampdoc.isVisible()}},Jn=class{constructor(t){var i;this.ampdoc=t,this.i=t.win,this.As=new jn,this.gs=this.Ps.bind(this),this.vs=0,this.Es=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.Ts=!1,this.rs=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==Ys(t)&&this.Ps(null)})),this._s=!1,(i=t,yi(i,"viewer")).then((()=>{this._s=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.Rs()}))}run(t,i){const e=new Qn(t);this.Is(e,i)}runForStartup(t){const i=new Xn(t,this.i,this);this.Is(i,Number.POSITIVE_INFINITY)}Is(t,i){this.As.enqueue(t,i),this.Rs()}Ms(t){let i=this.As.peek();for(;i&&i.state!==Yn;)this.As.dequeue(),i=this.As.peek();return i&&t&&this.As.dequeue(),i}Ps(t){const i=this.Ms(!0);if(!i)return this.Ts=!1,this.vs=0,!1;let e;try{e=Date.now(),i.os(t)}finally{Wn.then().then().then().then().then().then().then().then().then((()=>{this.Ts=!1,this.vs+=Date.now()-e,this.Rs()}))}return!0}ys(t){if(!qn&&this.rs&&(this.Es?this.i.navigator.scheduling.isInputPending():this.vs>5))return this.vs=0,void this.ws();Wn.then((()=>{this.gs(t)}))}Rs(){if(this.Ts)return;const t=this.Ms();return t?t.cs()?(this.Ts=!0,void this.ys(null)):void(t.ds()&&this.i.requestIdleCallback?function(t,i,e,s){const n=Date.now();t.requestIdleCallback((function i(e){if(e.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||e.didTimeout?s(e):t.requestIdleCallback(i,{timeout:r})}else s(e)}),{timeout:2e3})}(this.i,0,0,this.gs):this.ws()):void 0}ws(){this.i.postMessage("amp-macro-task","*")}},Zn="activate",tr=class{static R1(){return!1}static deferredMount(t){return!0}static prerenderAllowed(t){return!1}static previewAllowed(t){return this.prerenderAllowed(t)}static usesLoading(t){return!1}static createLoaderLogoCallback(t){return{}}static getBuildPriority(t){return 0}static getPreconnects(t){return null}static requiresShadowDom(){return!1}constructor(t){this.element=t,this.win=Mt(t),this.actionMap_=null,this.defaultActionAlias_=null}signals(){return this.element.signals()}getDefaultActionAlias(){return this.defaultActionAlias_}getLayoutPriority(){return 0}updateLayoutPriority(t){this.element.getResources().updateLayoutPriority(this.element,t)}getLayout(){return this.element.getLayout()}getLayoutBox(){return this.element.getLayoutBox()}getLayoutSize(){return this.element.getLayoutSize()}getAmpDoc(){return this.element.getAmpDoc()}getVsync(){return oe(this.win)}getConsentPolicy(){let t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t}isLayoutSupported(t){return t==ts}isAlwaysFixed(){return!1}upgradeCallback(){return null}buildCallback(){}preconnectCallback(t){}attachedCallback(){}detachedCallback(){}setAsContainer(t){this.element.setAsContainerInternal(t)}removeAsContainer(){this.element.removeAsContainerInternal()}isBuildRenderBlocking(){return!1}createPlaceholderCallback(){return null}renderOutsideViewport(){return"inabox"==at(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(t,i){this.element.setReadyStateInternal(t,i)}mountCallback(t){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return s()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(t){return Xs(t)}registerAction(t,i,e=2){ir(this),this.actionMap_[t]={handler:i,minTrust:e}}registerDefaultAction(t,i="activate",e=2){Tt(!this.defaultActionAlias_),this.registerAction(i,t,e),this.defaultActionAlias_=i}executeAction(t,i){let{method:e}=t;e===Zn&&(e=this.defaultActionAlias_||e),ir(this);const s=this.actionMap_[e],{tagName:n}=this.element;Rt(s,`Method not found: ${e} in ${n}`);const{handler:r,minTrust:o}=s;if(t.satisfiesTrust(o))return r(t)}forwardEvents(t,i){const e=(P(t)?t:[t]).map((t=>Ks(i,t,(i=>{Gt(this.element,t,Ys(i)||{})}))));return()=>e.forEach((t=>t()))}getPlaceholder(){return this.element.getPlaceholder()}togglePlaceholder(t){this.element.togglePlaceholder(t)}getFallback(){return this.element.getFallback()}toggleFallback(t){this.element.toggleFallback(t)}toggleLoading(t,i=!1){this.element.toggleLoading(t,i)}getOverflowElement(){return this.element.getOverflowElement()}renderStarted(){this.element.renderStarted()}getViewport(){return he(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){Qi(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return Qi(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(t){Qi(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)}attemptChangeHeight(t){return Qi(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)}attemptChangeSize(t,i,e){return Qi(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,e)}measureElement(t){return Qi(this.getAmpDoc()).measureElement(t)}mutateElement(t,i){return this.measureMutateElement(null,t,i)}measureMutateElement(t,i,e){return Qi(this.getAmpDoc()).measureMutateElement(e||this.element,t,i)}mutateElementSkipRemeasure(t){return Qi(this.getAmpDoc()).mutateElement(this.element,t,!0)}collapsedCallback(t){}expand(){Qi(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(t){}onLayoutMeasure(){}user(){return yt(this.element)}getApi(){return this}};function ir(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var er=class extends tr{},sr="amp-",nr="send-positions",rr="position";function or(t){try{return!!t.location.href&&(t.test||!0)}catch(t){return!1}}var hr,lr=Date.now(),ar={bubbles:!1},ur=()=>!0,cr=[],dr=new Set;function fr(t){return"placeholder"in t}function pr(t){Tt(!t.js)}var mr=new WeakMap;function gr(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function _r(t,i,e){const s=gr(t);if(s[i]){if(s[i]!=e){Rt(s[i]==er,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),s[i]=e;for(let s=0;s{t.declareExtension(i,e),s.addEventListener("error",(()=>function(t){dr.add(t||"*");for(const i of cr)null!=t&&i.tagName.toLowerCase()!==t||i.markUnresolved()}(i))),Pr(t.win,i)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function Pr(t,i){gr(t)[i]||br(t,i,er)}function yr(t,i,e){br(i,e,gr(t)[e]||er)}function br(t,i,e){gr(t)[i]=e;const s=function(t,i){const e=function(t,i){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;const e=t.HTMLElement;return t.__AMP_BASE_CE_CLASS=class extends e{constructor(){super(),this.createdCallback()}createdCallback(){this.bs=!1,this.Vs=!1,this.Ss=null,this.xs=!1,this.Os=null,this.Cs=null,this.ks="upgrading",this.everAttached=!1,this.ji=null,this.Ei=null,this.Ns=ts,this.wi=0,this.Ds=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.Ls=void 0,this.layoutScheduleTime=void 0;const i=this;let e=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.Us=e===er?null:e||null,this.Us||cr.push(this),this.$s=null,this.Fs=1,this.Bs=0,this.Hs=void 0,this.js=void 0,this.ei=new me,this.Us&&this.ei.signal(bs);const s=Ai(t,"performance");this.zs=s&&s.isPerformanceTrackingOn(),this.Gs=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)}get readyState(){return this.ks}signals(){return this.ei}getAmpDoc(){return Tt(this.ji),this.ji}getResources(){return Tt(this.Ei),this.Ei}isUpgraded(){return 2==this.Fs}whenUpgraded(){return this.ei.whenSignal(Es)}upgrade(t){this.js||1==this.Fs&&(this.Us=t,this.ei.signal(bs),this.everAttached&&this.qs())}markUnresolved(){this.Us||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Bs}Ws(i,e){this.$s=i,this.Bs=t.Date.now()-e,this.Fs=2,this.setReadyStateInternal(ge),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ks(),this.dispatchCustomEventForTesting(vs),this.R1()||this.getResources().upgraded(this),this.ei.signal(Es)}Ks(){this.Ns!=ts&&this.$s&&!this.$s.isLayoutSupported(this.Ns)&&(Rt(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."),Rt(!1,`Layout not supported: ${this.Ns}`))}getBuildPriority(){return this.Us?this.Us.getBuildPriority(this):3}getLayoutPriority(){return this.$s?this.$s.getLayoutPriority():3}getDefaultActionAlias(){return Tt(this.isUpgraded()),this.$s.getDefaultActionAlias()}isBuilding(){return!!this.Ss}isBuilt(){return this.bs}whenBuilt(){return this.ei.whenSignal(Ts)}buildInternal(){if(pr(this),Tt(this.Us),this.Ss)return this.Ss;this.setReadyStateInternal(ge);const t=this.Ys();this.Js();const i=t.then((()=>{const t=this.Qs(),i=t?null:this.Xs();if(t||i)return Di(this,"consentPolicyManager","amp-consent").then((e=>!e||(t?e.whenPolicyUnblock(t):e.whenPurposesUnblock(i)))).then((t=>{if(!t)throw new Error(Sn)}))})).then((()=>Tt(this.$s).buildCallback()));return this.Ss=i.then((()=>{if(this.bs=!0,this.classList.add("i-amphtml-built"),this.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),this.ei.signal(Ts),this.R1()?this.setReadyStateInternal(this.ks!=ge?this.ks:_e):(this.setReadyStateInternal(Ae),this.preconnect(!1)),this.Vs&&this.ie(),this.Hs&&ie(Mt(this)).delay(this.Zs.bind(this),1),!this.getPlaceholder()){const t=this.createPlaceholder();t&&this.appendChild(t)}}),(t=>{throw this.ei.rejectSignal(Ts,t),this.R1()&&this.setReadyStateInternal(Pe,t),Nn(t)||Cn(t,this),t}))}build(){return this.Ss?this.Ss:this.ei.whenSignal(bs).then((()=>(this.R1()&&Bn(this.getAmpDoc()).scheduleAsap(this),this.whenBuilt())))}mountInternal(){if(this.Os)return this.Os;this.Cs=this.Cs||new AbortController;const{signal:t}=this.Cs;return this.Os=this.buildInternal().then((()=>{if(Tt(this.R1()),t.aborted)return;this.setReadyStateInternal(this.ks!=_e?this.ks:this.Us.usesLoading(this)?Ae:_e),this.xs=!0;const i=this.$s.mountCallback(t);return!!i&&i.then(ur)})).then((i=>{if(this.Cs=null,t.aborted)throw Ln();this.ei.signal(Rs),this.Us.usesLoading(this)&&!i||this.setReadyStateInternal(ve)})).catch((t=>{var i;throw this.Cs=null,(i=t)&&("string"==typeof i?i.startsWith(Vn):"string"==typeof i.message&&i.message.startsWith(Vn))?this.Os=null:(this.ei.rejectSignal(Rs,t),this.setReadyStateInternal(Pe,t)),t}))}mount(){if(this.Os)return this.Os;this.Cs=this.Cs||new AbortController;const{signal:t}=this.Cs;return this.ei.whenSignal(bs).then((()=>{if(!this.R1())return this.whenBuilt();if(t.aborted)throw Ln();return Bn(this.getAmpDoc()).scheduleAsap(this),this.whenMounted()}))}unmount(){this.Vs&&this.pause(),this.R1()?(this.Cs&&(this.Cs.abort(),this.Cs=null),Bn(this.getAmpDoc()).unschedule(this),this.xs&&this.$s.unmountCallback(),this.xs=!1,this.Os=null,this.Ie(),this.Vs&&this.qs(!0)):this.be()}whenMounted(){return this.ei.whenSignal(Rs)}whenLoaded(){return this.ei.whenSignal(Is)}ensureLoaded(t){return this.mount().then((()=>{if(this.R1())return this.Us.usesLoading(this)&&this.$s.ensureLoaded(),this.whenLoaded();const i=this.Ve();return i.whenBuilt().then((()=>{if(4!=i.getState()&&((3!=i.getState()||i.isMeasureRequested())&&i.measure(),i.isDisplayed()))return this.getResources().scheduleLayoutOrPreload(i,!0,t,!0),this.whenLoaded()}))}))}setAsContainerInternal(t){Bn(this.getAmpDoc()).setContainer(this,t)}removeAsContainerInternal(){Bn(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(t,i){if(t!==this.ks&&(this.ks=t,this.R1()))switch(t){case Ae:return this.ei.signal(Ms),this.ei.reset(xs),this.ei.reset(Is),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(Ps);case ve:return this.ei.signal(Ms),this.ei.signal(Is),this.ei.reset(xs),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Gt(this,"load",null,ar),void this.dispatchCustomEventForTesting(ys);case Pe:return this.ei.rejectSignal(Is,i),this.toggleLoading(!1),void Gt(this,"error",i,ar)}}preconnect(t){Tt(this.isUpgraded()),t?this.$s.preconnectCallback(t):Kn(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.$s.preconnectCallback(t)}))}R1(){return!!this.Us&&this.Us.R1()}deferredMount(){return!!this.Us&&this.Us.deferredMount(this)}isAlwaysFixed(){return!!this.$s&&this.$s.isAlwaysFixed()}updateLayoutBox(t,i=!1){this.isBuilt()&&this.onMeasure(i)}onMeasure(){Tt(this.isBuilt());try{this.$s.onLayoutMeasure()}catch(t){Cn(t,this)}}Js(){var t;return void 0!==this.sizerElement||this.Ns!==ss&&this.Ns!==ls||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null}Se(t){if(this.Ns!==ss)if(this.Ns!==ls);else{const i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else Oe(t,"paddingTop","0")}xe(){const t=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),i=!!this.Gs,e=this.ownerDocument.defaultView;t!=i&&e&&(t?(this.Gs=new class{constructor(t,i){this.i=t,this.tt=i,this.Oe={},this.Ce=null}start(){this.Ce=this.Oe,this.Oe={}}resolveMatchQuery(t){return"1"===this.ke(t,Vs,"1")}resolveListQuery(t){return this.ke(t,Ss,"")}complete(){for(const t in this.Ce)t in this.Oe||Os(this.Ce[t],this.tt,!1);this.Ce=null}dispose(){for(const t in this.Oe)Os(this.Oe[t],this.tt,!1);this.Oe={}}ke(t,i,e){if(!t.trim())return e;let s=this.Oe[t];return s||(k(this.Ce),s=this.Ce[t]),s||(s=i(this.i,t),Os(s,this.tt,!0)),this.Oe[t]=s,function(t){for(let i=0;ithis.Ne())),this.Ne()):this.De())}De(){this.Gs&&(this.Gs.dispose(),this.Gs=null)}Ne(){const t=this.Gs;if(!t)return;t.start();const i=this.getAttribute("media")||null,e=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!e);const s=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");s&&Oe(this,"width",t.resolveListQuery(s));const n=this.Ns===ss?this.getAttribute("heights"):null;if(n){const i=this.Js();i&&Oe(i,"paddingTop",t.resolveListQuery(n))}t.complete(),this.Ve().requestMeasure()}applySize(t,i,e){const s=this.Js();s&&(this.sizerElement=null,this.Se(s),this.Le((()=>{s&&Ut(s)}))),void 0!==t&&Oe(this,"height",t,"px"),void 0!==i&&Oe(this,"width",i,"px"),e&&(null!=e.top&&Oe(this,"marginTop",e.top,"px"),null!=e.right&&Oe(this,"marginRight",e.right,"px"),null!=e.bottom&&Oe(this,"marginBottom",e.bottom,"px"),null!=e.left&&Oe(this,"marginLeft",e.left,"px")),this.Ue()&&this.$e(),Gt(this,"amp:size-changed")}connectedCallback(){if(function(){if(void 0===hr){const t=self.document.createElement("template");hr="content"in t}return hr}()||void 0!==this.js||(this.js=!!St(this,"template")),!this.js&&!this.Vs&&Ft(this)){if(this.Vs=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.ji){const t=Mt(this),e=ji(t).getAmpDoc(this);this.ji=e,i(e,this,this.Us)}if(this.Ei||(this.Ei=te(this.ji)),this.getResources().add(this),this.everAttached){const t=this.reconstructWhenReparented();t&&this.Ie(),this.isUpgraded()&&(t&&!this.R1()&&this.getResources().upgraded(this),this.ie(),this.dispatchCustomEventForTesting(vs)),this.Us&&this.R1()&&this.qs()}else{this.everAttached=!0;try{this.Ns=function(t){const i=t.getAttribute("i-amphtml-layout");if(i){const s=us(i);var e;return k(s),s!=ss&&s!=ls||!t.firstElementChild?s==ts&&Ce(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(e=t.sizerElement)||void 0===e||e.setAttribute("slot","i-amphtml-svc")),s}const{height:s,layout:n,width:r}=Ds(t);if(t.classList.add(cs(n)),ds(n)&&t.classList.add("i-amphtml-layout-size-defined"),n==ts)Ce(t,!1);else if(n==is)ke(t,{width:L(r),height:L(s)});else if(n==es)Oe(t,"height",L(s));else if(n==ss){const i=t.ownerDocument.createElement("i-amphtml-sizer");i.setAttribute("slot","i-amphtml-svc");const e=ms(s),n=ms(r);N(e),N(n),ke(i,{paddingTop:e/n*100+"%"}),t.insertBefore(i,t.firstChild),t.sizerElement=i}else if(n==ls){const i=ks(t)(Ls),e=i.firstElementChild;C(e),e.setAttribute("src",`data:image/svg+xml;charset=utf-8,`),t.insertBefore(i,t.firstChild),t.sizerElement=i}else n==rs||n==ns||(n==os?(r&&Oe(t,"width",r),s&&Oe(t,"height",s)):n==hs&&(t.classList.add("i-amphtml-layout-awaiting-size"),r&&Oe(t,"width",r),Oe(t,"height",0)));return t.setAttribute("i-amphtml-layout",n),n}(this),this.xe()}catch(t){Cn(t,this)}this.Us?this.qs():(dr.has("*")||dr.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}}Ue(){return this.classList.contains("i-amphtml-layout-awaiting-size")}$e(){this.classList.remove("i-amphtml-layout-awaiting-size")}qs(t){if(this.R1()){if(!this.Os)if(Bn(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ss)this.setReadyStateInternal(this.Us&&this.Us.usesLoading(this)?Ae:_e);else if(this.setReadyStateInternal(ge),!t){const t=this.Us.getPreconnects(this);if(t&&t.length>0){const i=this.getAmpDoc();Kn(i,(()=>{const{win:e}=i;if(!e)return;const s=Zi(e);t.forEach((t=>s.url(i,t,!1)))}))}}}else this.Fe()}Fe(){if(this.js)return;if(1!=this.Fs)return;const i=new(Tt(this.Us))(this);this.Fs=4;const e=t.Date.now(),s=i.upgradeCallback();if(s){if("function"==typeof s.then)return s.then((t=>{this.Ws(t||i,e)})).catch((t=>{this.Fs=3,a(t)}));this.Ws(s,e)}else this.Ws(i,e)}disconnectedCallback(){this.disconnect(!1)}ie(){this.bs&&this.$s.attachedCallback()}disconnect(t){!this.js&&this.Vs&&(!t&&Ft(this)||(t&&this.classList.remove("i-amphtml-element"),this.Vs=!1,this.getResources().remove(this),this.$s&&this.$s.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.De()))}dispatchCustomEventForTesting(t,i){}prerenderAllowed(){return!this.hasAttribute("noprerender")&&!!this.Us&&this.Us.prerenderAllowed(this)}previewAllowed(){return!!this.Us&&this.Us.previewAllowed(this)}isBuildRenderBlocking(){return!!this.$s&&this.$s.isBuildRenderBlocking()}createPlaceholder(){return this.$s?this.$s.createPlaceholderCallback():null}createLoaderLogo(){return this.Us?this.Us.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return!!this.$s&&this.$s.renderOutsideViewport()}idleRenderOutsideViewport(){return!!this.$s&&this.$s.idleRenderOutsideViewport()}getLayoutBox(){return this.Ve().getLayoutBox()}getLayoutSize(){return this.Ve().getLayoutSize()}getOwner(){return this.Ve().getOwner()}getIntersectionChangeEntry(){const t=this.$s?this.$s.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),e=he(this.getAmpDoc()).getRect();return function(t,i,e){const s=function(t){let i=-1/0,e=1/0,s=-1/0,n=1/0;for(let t=0;tthis.$s))}Ys(){return this.ei.whenSignal(bs).then((()=>(this.Fe(),this.whenUpgraded())))}getApi(){return this.getImpl().then((t=>t.getApi()))}getLayout(){return this.Ns}layoutCallback(t){if(pr(this),Tt(this.isBuilt()),t.aborted)return Promise.reject(Ln());this.dispatchCustomEventForTesting(Ps);const i=0==this.wi;this.ei.reset(xs),i&&this.ei.signal(Ms),this.toggleLoading(!0);const e=r((()=>this.$s.layoutCallback()));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),e.then((()=>{if(t.aborted)throw Ln();i&&this.ei.signal(Is),this.setReadyStateInternal(ve),this.wi++,this.toggleLoading(!1),this.Ds||(this.$s.firstLayoutCompleted(),this.Ds=!0,this.dispatchCustomEventForTesting(ys))}),(e=>{if(t.aborted)throw Ln();throw i&&this.ei.rejectSignal(Is,e),this.setReadyStateInternal(Pe,e),this.wi++,this.toggleLoading(!1),e}))}pause(){this.isBuilt()&&(this.$s.pauseCallback(),!this.R1()&&this.$s.unlayoutOnPause()&&this.be())}resume(){this.isBuilt()&&this.$s.resumeCallback()}unlayoutCallback(){if(pr(this),!this.isBuilt())return!1;this.ei.signal(xs);const t=this.$s.unlayoutCallback();return t&&this.Ie(),this.dispatchCustomEventForTesting("amp:unload"),t}be(){this.Ve().unlayout(),this.Vs&&this.Ei&&this.Ei.schedulePass()}Ie(){this.wi=0,this.Ds=!1,this.ei.reset(Rs),this.ei.reset(ws),this.ei.reset(Ms),this.ei.reset(Is),this.ei.reset("ini-load")}reconstructWhenReparented(){return!!this.$s&&this.$s.reconstructWhenReparented()}collapse(){this.$s&&this.$s.collapse()}collapsedCallback(t){this.$s&&this.$s.collapsedCallback(t)}expand(){this.$s&&this.$s.expand()}mutatedAttributesCallback(t){this.$s?this.$s.mutatedAttributesCallback(t):this.R1()&&Bn(this).scheduleAsap(this)}enqueAction(t){pr(this),this.isBuilt()?this.Be(t,!1):(void 0===this.Hs&&(this.Hs=[]),Tt(this.Hs).push(t),this.build())}Zs(){if(!this.Hs)return;const t=Tt(this.Hs);this.Hs=null,t.forEach((t=>{this.Be(t,!0)}))}Be(t,i){try{this.$s.executeAction(t,i)}catch(i){a("Action execution failed:",i,t.node.tagName,t.method)}}Qs(){let t=this.getAttribute("data-block-on-consent");if(null===t){if(!function(t){let i=t.getAmpDoc().getMetaByName("amp-consent-blocking");return!!i&&(i=i.toUpperCase().replace(/\s+/g,""),i.split(",").includes(t.tagName))}(this))return null;t="default",this.setAttribute("data-block-on-consent",t)}return""==t||"default"==t?Tt(this.$s).getConsentPolicy():t}Xs(){var t;const i=this.getAttribute("data-block-on-consent-purposes")||null;return null==i||null===(t=i.replace(/\s+/g,""))||void 0===t?void 0:t.split(",")}getPlaceholder(){return Ot(this,(t=>t.hasAttribute("placeholder")&&!fr(t)))}togglePlaceholder(t){if(pr(this),t){const t=this.getPlaceholder();t&&t.classList.remove("amp-hidden")}else{const t=(xt("placeholder"),this.querySelectorAll(wt("> [placeholder]",":scope")));for(let i=0;i0||this.ei.get(ws);return!(this.Ns==ts||this.hasAttribute("noloading")||i&&!t||!function(t){const i=t.tagName.toUpperCase();return"AMP-AD"===(e=i)||"AMP-ANIM"===e||"AMP-EMBED"===e||"AMP-FACEBOOK"===e||"AMP-FACEBOOK-COMMENTS"===e||"AMP-FACEBOOK-PAGE"===e||"AMP-GOOGLE-DOCUMENT-EMBED"===e||"AMP-IFRAME"===e||"AMP-IMG"===e||"AMP-INSTAGRAM"===e||"AMP-LIST"===e||"AMP-PINTEREST"===e||"AMP-PLAYBUZZ"===e||"AMP-RENDER"===e||"AMP-TIKTOK"===e||"AMP-TWITTER"===e||function(t){return"AMP-VIDEO"!=t&&as.test(t)}(i);var e}(this)||Ct(this))}toggleLoading(t,i=!1){if(!this.ownerDocument||!this.ownerDocument.defaultView)return;const e=Pi(this.getAmpDoc(),"loadingIndicator");e&&((t=t&&this.He(i))?e.track(this):e.untrack(this))}getOverflowElement(){return void 0===this.Ls&&(this.Ls=kt(this,"overflow"),this.Ls&&(this.Ls.hasAttribute("tabindex")||this.Ls.setAttribute("tabindex","0"),this.Ls.hasAttribute("role")||this.Ls.setAttribute("role","button"))),this.Ls}overflowCallback(t,i,e){this.getOverflowElement(),this.Ls?(this.Ls.classList.toggle("amp-visible",t),this.Ls.onclick=t?()=>{const t=Qi(this.getAmpDoc());t.forceChangeSize(this,i,e),t.mutateElement(this,(()=>{this.overflowCallback(!1,i,e)}))}:null):t&&this.warnOnMissingOverflow}Le(t,i,e=!1){this.ji?Qi(this.getAmpDoc()).mutateElement(i||this,t,e):t()}},t.__AMP_BASE_CE_CLASS}(t,i);class s extends e{adoptedCallback(){Object.getPrototypeOf(this)!==n&&Object.setPrototypeOf(this,n)}}const n=s.prototype;return s}(t,Er);t.customElements.define(i,s)}function Er(t,i,e){mr.has(t)||(mr.set(t,!0),vr(t));const s=i.localName;e||t.declaresExtension(s)||Ki(t.win).installExtensionForDoc(t,s,"0.1")}var Tr="amp-img",Rr=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],Mr=class t extends tr{static R1(){return!1}static prerenderAllowed(){return!0}static usesLoading(){return!0}static getPreconnects(t){const i=t.getAttribute("src");if(i)return[i];const e=t.getAttribute("srcset");if(e){const t=/\S+/.exec(e);if(t)return[t[0]]}return null}constructor(t){super(t),this.je=!0,this.ze=null,this.Ge=null,this.qe=null,this.We=0}mutatedAttributesCallback(i){if(this.ze){const e=Rr.filter((t=>void 0!==i[t]));i.src&&!i.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),e.push("srcset"),this.user().warn(Tr,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),_s(e,this.element,this.ze,!0),this.propagateDataset(this.ze),t.R1()&&!this.ze.complete&&this.setReadyState(Ae)}}preconnectCallback(t){const i=this.element.getAttribute("src");if(i)Zi(this.win).url(this.getAmpDoc(),i,t);else{const i=this.element.getAttribute("srcset");if(!i)return;const e=/\S+/.exec(i);e&&Zi(this.win).url(this.getAmpDoc(),e[0],t)}}isLayoutSupported(t){return ds(t)}Ke(){if(this.ze)return this.ze;this.je=!this.element.hasAttribute("fallback");const t=Wt(this.element);var i,e;return t&&(this.ze=Vt(this.element,"> img:not([placeholder])")),this.ze=this.ze||new Image,this.ze.setAttribute("decoding","async"),this.element.id&&this.ze.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Tr,"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.")),this.Ye(!0),_s(Rr,this.element,this.ze),this.propagateDataset(this.ze),gs(this.ze,!0),i=this.element,e=this.ze,i.hasAttribute("object-fit")&&Oe(e,"object-fit",i.getAttribute("object-fit")),i.hasAttribute("object-position")&&Oe(e,"object-position",i.getAttribute("object-position")),t||this.element.appendChild(this.ze),this.ze}Ye(t){if(!this.ze)return;if(this.element.hasAttribute("i-amphtml-ssr"))return;if(this.element.hasAttribute("sizes")||this.ze.hasAttribute("sizes"))return;const i=this.element.getAttribute("srcset");if(!i||/[0-9]+x(?:,|$)/.test(i))return;const{width:e}=this.element.getLayoutSize();if(!this.Je(e))return;const s=this.getViewport().getWidth(),n=`(max-width: ${s}px) ${e}px, `;let r=e+"px";if(this.getLayout()!==is){const t=Math.round(100*e/s);r=Math.max(t,100)+"vw"}const o=n+r;t?this.ze.setAttribute("sizes",o):this.mutateElement((()=>{this.ze.setAttribute("sizes",o)})),this.We=e}Je(t){return!this.ze.hasAttribute("sizes")||t>this.We}reconstructWhenReparented(){return!1}mountCallback(){const t=!!this.ze,i=this.Ke();t||(Ks(i,"load",(()=>{this.setReadyState(ve),this.firstLayoutCompleted(),this.Qe()})),Ks(i,"error",(t=>{this.setReadyState(Pe,t),this.Xe()}))),i.complete?(this.setReadyState(ve),this.firstLayoutCompleted(),this.Qe()):this.setReadyState(Ae)}unmountCallback(){const t=this.ze;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ut(t),this.ze=null)}ensureLoaded(){this.ze.loading="eager"}layoutCallback(){this.Ke();const t=this.ze;this.Ge=Ks(t,"load",(()=>this.Qe())),this.qe=Ks(t,"error",(()=>this.Xe()));const{width:i}=this.element.getLayoutSize();return i<=0?s():this.loadPromise(t)}unlayoutCallback(){if(t.R1())return;this.qe&&(this.qe(),this.qe=null),this.Ge&&(this.Ge(),this.Ge=null);const i=this.ze;return i&&!i.complete&&(i.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ut(i),this.ze=null),!0}firstLayoutCompleted(){const t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Se(t,{"opacity":0}):this.togglePlaceholder(!1)}Qe(){!this.je&&this.ze.classList.contains("i-amphtml-ghost")&&(this.ze.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))}Xe(){this.je&&(this.ze.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.je=!1)}propagateDataset(t){for(const i in t.dataset)i in this.element.dataset||delete t.dataset[i];for(const i in this.element.dataset)i.startsWith("ampBind")&&"ampBind"!==i||t.dataset[i]!==this.element.dataset[i]&&(t.dataset[i]=this.element.dataset[i])}},wr=class extends tr{static prerenderAllowed(){return!0}isLayoutSupported(t){return t==ns||ds(t)}buildCallback(){!function(t){if(Wt(t))return;const i=function(t){var i;return us(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||Ds(t).layout}(t);if(i==ns)return;const e=t.ownerDocument.createElement("div");gs(e),function(t){return function(t,i){const e=[];for(let i=t.firstChild;i;i=i.nextSibling)!Ct(i)&&e.push(i);return e}(t)}(t).forEach((t=>{e.appendChild(t)})),t.appendChild(e)}(this.element)}};function Ir(t,i,e=!1,s,n){const r=new(Be.getImage(t));e&&(r.referrerPolicy="no-referrer");let o=0;var h;return null!=s&&((null===(h=t.document.featurePolicy)||void 0===h?void 0:h.allowedFeatures().includes("attribution-reporting"))?(o=6,s=xr(t,o,n)(s),r.attributionSrc=s):o=5),i=xr(t,o,n)(i),r.src=i,r}function xr(t,i,e){const s={"ATTRIBUTION_REPORTING_STATUS":()=>i},n=ee(e||t.document),r={"ATTRIBUTION_REPORTING_STATUS":!0};return t=>n.expandUrlSync(t,s,r)}var Vr="amp-pixel",Sr=class extends tr{constructor(t){super(t),this.Ze=null}isLayoutSupported(t){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true"),this.hn=this.element.getAttribute("referrerpolicy"),this.hn&&Rt("no-referrer"==this.hn,`${Vr}: invalid "referrerpolicy" value "${this.hn}". Only "no-referrer" is supported`),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.an.bind(this))}an(){if(this.Ze)return Et().error(Vr,"duplicate pixel"),this.Ze;this.Ze=ie(this.win).promise(1).then((()=>{const t=this.element.getAttribute("src");if(t)return ee(this.element).expandUrlAsync(this.dn(t)).then((t=>{if(this.win)return function(t,i,e,s,n){return e&&"no-referrer"!==e&&yt().error("pixel","Unsupported referrerPolicy: %s",e),"no-referrer"===e?function(t,i,e,s){if("referrerPolicy"in Image.prototype)return Ir(t,i,!0,e,s);{const e=$t(t.document,"iframe",{"src":"about:blank","style":"display:none"});return e.onload=()=>{Ir(e.contentWindow,i,void 0,void 0,s)},t.document.body.appendChild(e),e}}(t,i,s,n):Ir(t,i,!1,s,n)}(this.win,t,this.hn,this.element.getAttribute("attributionsrc"),this.element)}))}))}dn(t){return Rt(/^(https\:\/\/|\/\/)/i.test(t),'The src attribute must start with "https://" or "//". Invalid value: '+t),t}},Or=class{constructor(t,i,e){this.fn=ie(t),this.pn=i,this.mn=e||0,this._n=-1,this.An=0,this.gn=!1,this.Pn=()=>{this.vn()}}isPending(){return-1!=this._n}schedule(t){let i=t||this.mn;this.gn&&i<10&&(i=10);const e=Date.now()+i;return(!this.isPending()||e-this.An<-10)&&(this.cancel(),this.An=e,this._n=this.fn.delay(this.Pn,i),!0)}vn(){this._n=-1,this.An=0,this.gn=!0,this.pn(),this.gn=!1}cancel(){this.isPending()&&(this.fn.cancel(this._n),this._n=-1)}};function kr(t){return function(t,i){const e=i.documentElement;return["⚡4email","amp4email"].some((t=>e.hasAttribute(t)))}(0,t)}var Cr="Action",Lr="__AMP_ACTION_MAP__"+Math.random(),Nr="__AMP_ACTION_QUEUE__",Dr="__AMP_ACTION_HANDLER__",Ur={"form":["submit","clear"]},$r=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Fr={"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},zr=class{constructor(t,i,e,s,n,r,o,h="?",l=null,a=Math.random()){this.node=t,this.method=i,this.args=e,this.source=s,this.caller=n,this.event=r,this.trust=o,this.actionEventType=h,this.tagOrTarget=l||t.tagName,this.sequenceId=a}satisfiesTrust(t){if(!M(this.trust))return Et().error(Cr,`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trustt.value)).join(".")};r||(r=p()),r[l]=a,n=t.peek(),e(n.type==Yr.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else e(!1,`; unexpected token [${s.value||""}]`)}while(s.type!=Yr.SEPARATOR||")"!=s.value);var o;return r}function Wr(t,i,e,s){return Rt(e,"Invalid action definition in %s: [%s] %s",i,t,s||"")}function Kr(t,i,e,s,n){return void 0!==n?Wr(t,i,s.includes(e.type)&&e.value==n,`; expected [${n}]`):Wr(t,i,s.includes(e.type)),e}var Yr={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Qr=" \t\n\r\f\v \u2028\u2029",Xr=class{constructor(t){this.En=t,this.Tn=-1}next(t){const i=this.Rn(t||!1);return this.Tn=i.index,i}peek(t){return this.Rn(t||!1)}Rn(t){let i=this.Tn+1;if(i>=this.En.length)return{type:Yr.EOF,index:this.Tn};let e=this.En.charAt(i);if(-1!=Qr.indexOf(e)){for(i++;i=this.En.length)return{type:Yr.EOF,index:i};e=this.En.charAt(i)}if(t&&(Jr(e)||"."==e&&i+1="0"&&t<="9"}function Zr(t){return!!t&&"function"==typeof t.getFormData}var to=["GET","POST"],io=[P,f];function eo(t,i){const e=A({},i);if(Zr(i.body)){const t=i.body;e.headers["Content-Type"]="multipart/form-data;charset=utf-8",e.body=function(t){const i=[];for(let e=t.next();!e.done;e=t.next())i.push(e.value);return i}(t.entries())}return{input:t,init:e}}function so(t,i){const e=t||{},s=e.credentials;return k(void 0===s||"include"==s||"omit"==s),e.method=void 0===(n=e.method)?"GET":(n=n.toUpperCase(),k(to.includes(n)),n),e.headers=e.headers||{},i&&(e.headers.Accept=i),k(null!==e.body),e;var n}function no(t){return new Promise((i=>{if(t.ok)return i(t);const{status:e}=t,s=yt().createError(`HTTP error ${e}`);throw s.retriable=function(t){return 415==t||t>=500&&t<600}(e),s.response=t,s}))}var ro=class{constructor(t){this.win=t;const i=ji(t);this.In=i.isSingleDoc()?i.getSingleDoc():null}Mn(t,i){return function(t,i,e,n){if(!i)return s();const r=n.prerenderSafe?s():i.whenFirstVisible(),o=re(i),h=yn(e),l=o.hasCapability("xhrInterceptor"),a=n.bypassInterceptorForDev&&!1;return h||!l||a?r:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((()=>o.isTrustedViewer())).then((i=>{if(!i&&!zs(t,"untrusted-xhr-interception"))return;const s={"originalRequest":eo(e,n)};return o.sendMessageAwaitResponse("xhr",s).then((t=>function(t,i){if(D(f(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);const e=p(),s={status:200,statusText:"OK",getResponseHeader:t=>e[String(t).toLowerCase()]||null};if(t.init){const i=t.init;P(i.headers)&&i.headers.forEach((t=>{const i=t[0],s=t[1];e[String(i).toLowerCase()]=String(s)})),i.status&&(s.status=parseInt(i.status,10)),i.statusText&&(s.statusText=String(i.statusText))}return new Response(t.body?String(t.body):"",s)}(t,n.responseType)))})):r}(this.win,this.In,t,i).then((t=>{if(t)return t;if(Zr(i.body)){const t=i.body;i.body=t.getFormData()}return this.win.fetch.apply(null,arguments)}))}yn(t,i={}){return t=function(t,i,e){return k("string"==typeof i),!1!==e.ampCors&&(i=In(t,i)),i}(this.win,t,i),i=function(t,i,e){e=e||{};const s=function(t){return t.origin||dn(t.location.href).origin}(t);return s==dn(i).origin&&(e.headers=e.headers||{},e.headers["AMP-Same-Origin"]="true"),e}(this.win,t,i),this.Mn(t,i).then((t=>t),(i=>{const e=dn(t).origin;throw yt().createExpectedError("XHR",`Failed fetching (${e}/...):`,i&&i.message)}))}fetchJson(t,i){return this.fetch(t,function(t){const i=so(t,"application/json");if("POST"==i.method&&!Zr(i.body)){k(io.some((t=>t(i.body)))),i.headers["Content-Type"]=i.headers["Content-Type"]||"text/plain;charset=utf-8";const t=i.headers["Content-Type"];i.body="application/x-www-form-urlencoded"===t?_n(i.body):JSON.stringify(i.body)}return i}(i))}fetchText(t,i){return this.fetch(t,so(i,"text/plain"))}xssiJson(t,i){return i?t.text().then((t=>t.startsWith(i)?U(t.slice(i.length)):U(t))):t.json()}fetch(t,i){const e=so(i);return this.yn(t,e).then((t=>no(t)))}sendSignal(t,i){return this.yn(t,i).then((t=>no(t)))}getCorsUrl(t,i){return In(t,i)}},oo=class extends ro{constructor(t){super(t),this.wn=p()}fetch(t,i){const e=i&&i.headers&&i.headers.Accept||"",s=!i||!i.method||"GET"===i.method,n=this.bn(t,e),r=!!this.wn[n];if(s&&r)return this.wn[n].then((t=>t.clone()));const o=super.fetch(t,i);return s&&(this.wn[n]=o.then((t=>(delete this.wn[n],t.clone())),(t=>{throw delete this.wn[n],t}))),o}bn(t,i){return Pn(wn(t,Mn(this.win.location)))+i}},ho={"+":"-","/":"_","=":"."};function lo(t){const i=function(t){const i=new Array(t.length);for(let e=0;eho[t]))}var ao="Crypto";var uo=["prefetch","preload","preconnect","dns-prefetch"],co={attributes:!0,attributeFilter:["hidden"],subtree:!0};function fo(t){try{return t.state}catch(t){return null}}var po="History",mo="AMP.History";function go(t){const i=re(t);let e;return i.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?e=new class{constructor(t,i){this.win=t,this.Sn=i,this.xn=0,this.On=null,this.Cn=this.Sn.onMessage("historyPopped",(t=>this.kn(t)))}replaceStateForTarget(t){Tt("#"==t[0]),this.win.location.replace(t)}cleanup(){this.Cn()}setOnStateUpdated(t){this.On=t}Nn(t,i,e){return this.Dn(t)?t:i}Dn(t){return!!t&&void 0!==t.stackIndex}push(t){const i=A({"stackIndex":this.xn+1},t||{}),e="pushHistory";return this.Sn.sendMessageAwaitResponse(e,i).then((t=>{const s=i,n=this.Nn(t,s,e);return this.Ln(n),n}))}pop(t){if(t>this.xn)return this.get();const i={"stackIndex":this.xn},e="popHistory";return this.Sn.sendMessageAwaitResponse(e,i).then((t=>{const i={"stackIndex":this.xn-1},s=this.Nn(t,i,e);return this.Ln(s),s}))}replace(t){if(t&&t.url){if(!this.Sn.hasCapability("fullReplaceHistory")){const t={"stackIndex":this.xn};return Promise.resolve(t)}const i=t.url.replace(/#.*/,"");t.url=i}const i=A({"stackIndex":this.xn},t||{}),e="replaceHistory";return this.Sn.sendMessageAwaitResponse(e,i,!0).then((t=>{const s=i,n=this.Nn(t,s,e);return this.Ln(n),n}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.xn,title:""})}kn(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.Dn(t)&&this.Ln(t)}Ln(t){const{stackIndex:i}=t;this.xn!=i&&(this.xn=i,this.On&&this.On(t))}getFragment(){return this.Sn.hasCapability("fragment")?this.Sn.sendMessageAwaitResponse("getFragment",void 0,!0).then((t=>{if(!t)return"";let i=t;return"#"==i[0]&&(i=i.substr(1)),i})):Promise.resolve("")}updateFragment(t){return this.Sn.hasCapability("fragment")?this.Sn.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):s()}}(t.win,i):(mi(t.win,"global-history-binding",class{constructor(t){this.win=t,this.fn=ie(t);const{history:i}=this.win;this.Un=i.length-1;const e=fo(i);let s,n;e&&void 0!==e[mo]&&(this.Un=Math.min(e[mo],this.Un)),this.xn=this.Un,this.$n,this.On=null,this.Fn="state"in i,this.Bn=this.Hn(this.xn),i.pushState&&i.replaceState?(this.jn=i.originalPushState||i.pushState.bind(i),this.zn=i.originalReplaceState||i.replaceState.bind(i),s=(t,i,e)=>{this.Bn=t;try{this.jn(t,i,e||null)}catch(t){Et().error(po,"pushState failed: "+t.message)}},n=(t,i,e)=>{this.Bn=t;try{void 0!==e?this.zn(t,i,e):this.zn(t,i)}catch(t){Et().error(po,"replaceState failed: "+t.message)}},i.originalPushState||(i.originalPushState=this.jn),i.originalReplaceState||(i.originalReplaceState=this.zn)):(s=(t,i,e)=>{this.Bn=t},n=(t,i,e)=>{this.Bn=t}),this.Gn=s,this.qn=n;try{this.qn(this.Hn(this.xn,!0))}catch(t){Et().error(po,"Initial replaceState failed: "+t.message)}i.pushState=this.Wn.bind(this),i.replaceState=this.Kn.bind(this),this.Yn=t=>{t.state,this.Jn()},this.win.addEventListener("popstate",this.Yn)}cleanup(){this.jn&&(this.win.history.pushState=this.jn),this.zn&&(this.win.history.replaceState=this.zn),this.win.removeEventListener("popstate",this.Yn)}Hn(t,i){const e=p(i?this.Qn():void 0);return e[mo]=t,e}setOnStateUpdated(t){this.On=t}push(t){return this.Xn((()=>{const i=this.Zn(this.Qn(),t||{});return this.Wn(i,void 0,i.fragment?"#"+i.fragment:void 0),r((()=>this.Zn(i,{stackIndex:this.xn})))}))}pop(t){return t=Math.max(t,this.Un),this.Xn((()=>this.tr(this.xn-t+1))).then((t=>this.Zn(this.Qn(),{stackIndex:t})))}replace(t={}){return this.Xn((()=>{const i=this.Zn(this.Qn(),t||{}),e=(i.url||"").replace(/#.*/,""),s=i.fragment?"#"+i.fragment:"";return this.Kn(i,i.title,e||s?e+s:void 0),r((()=>this.Zn(i,{stackIndex:this.xn})))}))}get(){return r((()=>this.Zn(this.Qn(),{stackIndex:this.xn})))}backTo(t){return t=Math.max(t,this.Un),this.Xn((()=>this.tr(this.xn-t)))}Jn(){let t=this.Qn();const i=t?t[mo]:void 0;let e=this.xn;const s=this.$n;this.$n=void 0,e>this.win.history.length-2&&(e=this.win.history.length-2,this.Ln(this.Zn(t,{stackIndex:e}))),null==i?e+=1:e=iPromise.resolve(this.xn)))}Wn(t,i,e){this.ir(),t||(t={});let s=this.xn+1;t[mo]=s,this.Gn(t,i,e),s!=this.win.history.length-1&&(s=this.win.history.length-1,t[mo]=s,this.qn(t));const n=this.Zn(t,{stackIndex:s});this.Ln(n)}replaceStateForTarget(t){Tt("#"==t[0]),this.Xn((()=>{this.win.removeEventListener("popstate",this.Yn);try{this.win.location.replace(t)}finally{this.win.addEventListener("popstate",this.Yn)}return this.Kn(),s()}))}Kn(t,i,e){this.ir(),t||(t={});const s=Math.min(this.xn,this.win.history.length-1);t[mo]=s,this.qn(t,i,e);const n=this.Zn(t,{stackIndex:s});this.Ln(n)}Ln(t){this.ir(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.xn!=t.stackIndex&&(this.xn=t.stackIndex,this.On&&this.On(t))}getFragment(){let{hash:t}=this.win.location;return t=t.substr(1),Promise.resolve(t)}updateFragment(t){return this.replace({fragment:t})}Zn(t,i){const e=A(A({},t&&t.data||{}),i.data||{});return A(A(A({},t||{}),i),{},{data:e})}}),e=_i(t.win,"global-history-binding")),new class{constructor(t,i){this.ji=t,this.fn=ie(t.win),this.er=i,this.xn=0,this.nr=[],this.es=[],this.er.setOnStateUpdated(this.On.bind(this))}cleanup(){this.er.cleanup()}push(t,i){return this.rr((()=>this.er.push(i).then((i=>(this.On(i),t&&(this.nr[i.stackIndex]=t),i.stackIndex)))),"push")}pop(t){return this.rr((()=>this.er.pop(t).then((t=>{this.On(t)}))),"pop")}replace(t){return this.rr((()=>this.er.replace(t)),"replace")}get(){return this.rr((()=>this.er.get()),"get")}goBack(t){return this.rr((()=>this.xn<=0&&!t?s():this.er.pop(this.xn).then((t=>{this.On(t)}))),"goBack")}replaceStateForTarget(t){Tt("#"==t[0]);const i=this.ji.win.location.hash;return this.push((()=>{this.ji.win.location.replace(i||"#")})).then((()=>{this.er.replaceStateForTarget(t)}))}getFragment(){return this.er.getFragment()}updateFragment(t){return"#"==t[0]&&(t=t.substr(1)),this.er.updateFragment(t)}On(t){this.xn=t.stackIndex,this.hr(t)}hr(t){if(this.xn>=this.nr.length-1)return;const i=[];for(let t=this.nr.length-1;t>this.xn;t--)this.nr[t]&&(i.push(this.nr[t]),this.nr[t]=void 0);if(this.nr.splice(this.xn+1),i.length>0)for(let e=0;ei[e](t)),1)}rr(t,i){const e=new n,{promise:s,reject:r,resolve:o}=e,h=new Error("history trace for "+i+": ");return this.es.push({callback:t,resolve:o,reject:r,trace:h}),1==this.es.length&&this.ur(),s}ur(){if(0==this.es.length)return;const t=this.es[0];let i;try{i=t.callback()}catch(t){i=Promise.reject(t)}i.then((i=>{t.resolve(i)}),(i=>{Et().error(po,"failed to execute a task:",i),t.trace&&(t.trace.message+=i,Et().error(po,t.trace)),t.reject(i)})).then((()=>{this.es.splice(0,1),this.ur()}))}}(t,e)}var _o=null,Ao=["gclid","gclsrc"];function vo(){return Rt(_o,"E#19457 trackImpressionPromise")}function Po(t,i,e,s){let n;try{n=t.open(i,e,s)}catch(t){Et().error("DOM","Failed to open url on target: ",e,t)}var r,o;return!n&&"_top"!=e&&("number"!=typeof o&&(o=0),o+"noopener".length>(r=s||"").length||-1===r.indexOf("noopener",o))&&(n=t.open(i,"_top")),n}var yo="navigation",bo="click",Eo="contextmenu",To=["_top","_blank"],Ro="data-a4a-orig-href",Mo=class{constructor(t){this.ampdoc=t,this.da=t.getRootNode(),this.wl=he(this.ampdoc),this.Sn=re(this.ampdoc),this.cr=Yi(this.ampdoc),this.Rh=Ji(this.ampdoc.win),this.fa=this.Rh.isIos()&&this.Rh.isSafari(),this.bu=jt(this.ampdoc.win)&&this.Sn.isOvertakeHistory(),this.pa=this.da!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.ma="inabox"==at(this.ampdoc.win).runtime,this._a=this.da.nodeType==Node.DOCUMENT_NODE?this.da.documentElement:this.da,this.Aa=this.ga.bind(this),this.da.addEventListener(bo,this.Aa),this.da.addEventListener(Eo,this.Aa),this.Pa=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this.Pa=t})),this.Gu=!1,this.va=!1,Promise.all([this.Sn.isTrustedViewer(),this.Sn.getViewerOrigin()]).then((t=>{var i;this.Gu=t[0],this.va=(i=t[1],et.test(cn(i).origin))})),this.Ea=null,this.Ta=new jn,this.Ra=new jn}static installAnchorClickInterceptor(t,i){i.document.documentElement.addEventListener("click",wo.bind(null,t),!0)}cleanup(){this.Aa&&(this.da.removeEventListener(bo,this.Aa),this.da.removeEventListener(Eo,this.Aa))}openWindow(t,i,e,s){let n="";!this.Rh.isIos()&&this.Rh.isChrome()||s||(n+="noopener");const r=Po(t,i,e,n);r&&!s&&(r.opener=null)}navigateTo(t,i,e,s={}){const{opener:n=!1,target:r="_top"}=s;i=this.Ia(i);const o=ne(this._a);if(!o.isProtocolValid(i))return void yt().error(yo,"Cannot navigate to invalid protocol: "+i);Rt(To.includes(r),`Target '${r}' not supported.`);const h=o.getSourceUrl(t.location);i=o.resolveRelativeUrl(i,h),"_blank"!=r?e&&(this.Ea||(this.Ea=this.Ma()),this.Ea.includes(e)&&this.navigateToAmpUrl(i,e))||(t.top.location.href=i):this.openWindow(t,i,r,n)}navigateToAmpUrl(t,i){return!!this.Sn.hasCapability("a2a")&&(this.Sn.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)}Ma(){const t=this.da.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}ga(t){if(t.defaultPrevented)return;const i=St(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==bo?this.ya(i,t):t.type==Eo&&this.wa(i,t))}ya(t,i){this.ba(t);let e=this.Va(t.href);if(this.Sa(i,t,e))return;if(this.xa(i,t,e))return;const s=this.Oa();Io(e)!=Io(s)&&(this.Ca(t,i),e=this.Va(t.href)),this.ka(i,t,e,s)}wa(t,i){this.ba(t),this.Ca(t,i)}Ca(t,i){this.Ta.forEach((e=>{e(t,i)}))}Ia(t){return this.Ra.forEach((i=>{t=i(t)})),t}ba(t){let i=null;this.Pa&&!this.pa&&(i=function(t,i){const e=W(dn(Be.getLocation(t).href).search),s=[];for(let t=0;t=0;t--)void 0!==o[s[t]]&&s.splice(t,1);return function(t){let i="";for(let e=0;et.trim())).includes("amphtml")||!this.navigateToAmpUrl(e.href,"")||(t.preventDefault(),0))}ka(t,i,e,s){const n=Io(e),r=Io(s);if(e.hash&&n==r)this.Na(t,e,s);else{let e=(i.getAttribute("target")||"").toLowerCase();(this.pa||this.ma)&&"_top"!=e&&"_blank"!=e&&(e="_blank",i.setAttribute("target",e));const{win:r}=this.ampdoc,o=Ji(r),h=re(i);s.search&&o.isSafari()&&o.getMajorVersion()>=13&&h.isProxyOrigin()&&h.isEmbedded()&&this.Da(r,s,e),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}Da(t,i,e){const s=i.href,n=`${i.origin}${i.pathname}${i.hash}`;t.history.replaceState(null,"",n);const r=()=>{const i=t.location.href;i==n?t.history.replaceState(null,"",s):Et().error(yo,"Unexpected iframe URL change:",i,n)};"_blank"===e?t.setTimeout(r,0):t.addEventListener("pageshow",(function i(e){e.persisted&&(r(),t.removeEventListener("pageshow",i))}))}Na(t,i,e){if(t.preventDefault(),this.pa)return;const s=i.hash.slice(1);let n=null;if(s){const t=It(s);n=this.da.getElementById(s)||this.da.querySelector(`a[name="${t}"]`)}i.hash!=e.hash?this.cr.replaceStateForTarget(i.hash).then((()=>{this.La(n,s)})):this.La(n,s)}registerAnchorMutator(t,i){this.Ta.enqueue(t,i)}registerNavigateToMutator(t,i){this.Ra.enqueue(t,i)}La(t,i){t&&(this.wl.scrollIntoView(t),ie(this.ampdoc.win).delay((()=>this.wl.scrollIntoView(t)),1))}Va(t){return ne(this._a).parse(t)}Oa(){return this.Va("")}viewerInterceptsNavigation(t,i){const e=this.Sn.hasCapability("interceptNavigation"),s=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!e||!s||!this.Gu&&!this.va||(this.Sn.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))}};function wo(t,i){const e=St(i.target,"A");if(!e||!e.href)return;const s=e.getAttribute(Ro)||e.getAttribute("href");if(!s)return;const n={"CLICK_X":()=>i.pageX,"CLICK_Y":()=>i.pageY},r=ee(e).expandUrlSync(s,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=s&&(e.getAttribute(Ro)||e.setAttribute(Ro,s),e.setAttribute("href",r))}function Io(t){return`${t.origin}${t.pathname}${t.search}`}function xo(t){return P(t)?t:[t]}function Vo(t){mi(t,"platform",class{constructor(t){this.oo=t.navigator,this.i=t}isAndroid(){return/Android/i.test(this.oo.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this.oo.userAgent)}isSafari(){return/Safari/i.test(this.oo.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this.oo.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this.oo.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this.oo.userAgent)}isEdge(){return/Edge/i.test(this.oo.userAgent)}isWebKit(){return/WebKit/i.test(this.oo.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this.oo.userAgent)}isStandalone(){return this.isIos()&&this.oo.standalone||this.isChrome()&&this.i.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.oo.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.uo(/\sVersion\/(\d+)/,1):this.isChrome()?this.uo(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.uo(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.uo(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.uo(/Edge\/(\d+)/,1):0}uo(t,i){if(!this.oo.userAgent)return 0;const e=this.oo.userAgent.match(t);return!e||i>=e.length?0:parseInt(e[i],10)}getIosVersionString(){var t,i,e;return this.isIos()&&(null===(t=this.oo.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(e=i[1])||void 0===e?void 0:e.replace(/_/g,"."))||""}getIosMajorVersion(){const t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])}})}function So(t){return t.queryCommandSupported("copy")}function Oo(t){return t.hasAttribute("hidden")}var ko="STANDARD-ACTIONS",Co=/^i-amphtml-/;var Lo="__AMP_IMPL_",No=()=>{};function Do(t){mi(t,"timer",class{constructor(t){this.win=t,this.Cr=this.win.Promise.resolve(),this.kr=0,this.Nr={},this.Dr=Date.now()}timeSinceStart(){return Date.now()-this.Dr}delay(t,i){if(!i){const i="p"+this.kr++;return this.Cr.then((()=>{this.Nr[i]?delete this.Nr[i]:t()})).catch(Cn),i}return this.win.setTimeout((()=>{try{t()}catch(t){throw Cn(t),t}}),i)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.Nr[t]=!0}promise(t){return new this.win.Promise((i=>{if(-1==this.delay(i,t))throw new Error("Failed to schedule timer.")}))}timeoutPromise(t,i,e){let s;const n=new this.win.Promise(((i,n)=>{if(s=this.delay((()=>{n(yt().createError(e||"timeout"))}),t),-1==s)throw new Error("Failed to schedule timer.")}));if(!i)return n;const r=()=>{this.cancel(s)};return i.then(r,r),this.win.Promise.race([n,i])}poll(t,i){return new this.win.Promise((e=>{const s=this.win.setInterval((()=>{i()&&(this.win.clearInterval(s),e())}),t)}))}})}var Uo="Expander",$o=class{constructor(t,i,e,s,n,r){this.Lr=t,this.Ur=i,this.$r=e,this.Fr=s,this.Br=n,this.Hr=!r}expand(t){if(!t.length)return this.Fr?t:Promise.resolve(t);const i=this.Lr.getExpr(this.Ur,this.Br),e=this.jr(t,i);return e.length?this.zr(t,e):this.Fr?t:Promise.resolve(t)}getMacroNames(t){const i=this.Lr.getExpr(this.Ur,this.Br);return t.match(i)||[]}jr(t,i){const e=[];return t.replace(i,((t,i,s)=>{const{length:n}=t,r={start:s,stop:n+s-1,name:i,length:n};e.push(r)})),e}zr(t,i){const e=[];let s=0,n=0,r=i[n],o=0,h=!1;const l=u=>{let c="",d=[];const f=[];for(;st.join(""))).catch((t=>(a(t),"")))};return l(this.Hr)}Gr(t,i){const{encode:e,name:s}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.Fr&&null!=t.sync?n=t.sync:this.Fr?(yt().error(Uo,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Fr){const t=this.qr(n,s,i);return e?encodeURIComponent(t):t}return this.Wr(n,s,i).then((t=>e?encodeURIComponent(t):t))}Wr(t,i,e){let s;try{if("function"==typeof t){const i=t;s=e?this.Kr(e).then((t=>i.apply(null,t))):r(i)}else s=Promise.resolve(t);return s.then((t=>{let s;return this.Yr(i,t,e),s=null==t?"":t,s})).catch((t=>(a(t),this.Yr(i,"",e),Promise.resolve(""))))}catch(t){return a(t),this.Yr(i,"",e),Promise.resolve("")}}Kr(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}qr(t,i,e){try{let s,n=t;return"function"==typeof t&&(n=t.apply(null,this.Jr(e))),n&&"function"==typeof n.then?(yt().error(Uo,"ignoring async macro resolution"),s=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.Yr(i,n,e),s=n.toString()):(this.Yr(i,"",e),s=""),s}catch(t){return a(t),this.Yr(i,"",e),""}}Jr(t){return t?t.map((t=>t.join(""))):t}Yr(t,i,e){if(!this.$r)return;let s="";e&&(s=`(${e.filter((t=>""!==t)).join(",")})`),this.$r[`${t}${s}`]=i||""}},Fo={"navigationStart":1,"redirectStart":1,"redirectEnd":1,"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"secureConnectionStart":1,"connectEnd":1,"requestStart":1,"responseStart":1,"responseEnd":1,"domLoading":2,"domInteractive":2,"domContentLoaded":2,"domComplete":2,"loadEventStart":3,"loadEventEnd":4};function zo(t,i,e){const n=Fo[i]||3,r=e?Fo[e]||3:n,o=Math.max(n,r);let h;if(1===o)h=s();else if(2===o)h=Me(t.document);else if(3===o)h=Xs(t);else if(4===o){const i=ie(t);h=Xs(t).then((()=>i.promise(1)))}return Tt(h),h.then((()=>Ho(t,i,e)))}function Ho(t,i,e){const s=t.performance&&t.performance.timing;if(!s||0==s.navigationStart)return;const n=void 0===e?s[i]:s[e]-s[i];return!M(n)||n<0?void 0:n}function Bo(t,i){const e=t.performance&&t.performance.navigation;if(e&&void 0!==e[i])return e[i]}var jo="UrlReplacements";function Go(t){return()=>(new Date)[t]()}function qo(t,i){return()=>t[i]}function Wo(t,i){return i?(Rt("ISOCountry"===i,"The value passed to AMP_GEO() is not valid name:"+i),t&&t[i]||"unknown"):(null==t?void 0:t.matchedISOCountryGroups.join(","))||"unknown"}function Ko(t,i){Tt(t);try{void 0!==t(i)&&Et().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return a(t),!1}return!0}function Yo(t){if(t.defaultPrevented)return;const i=t.target;if(!i||"FORM"!=i.tagName)return;let e;e=i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"),e&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();const s=i.elements;for(let t=0;t"],Xo=18e4,Jo=null;function Zo(t){var i;(function(t){mi(t,"crypto",class{constructor(t){this.i=t;let i=null,e=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,e=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.no=e,this.ro=null}sha384(t){if("string"==typeof t&&(t=F(t)),!this.subtle||this.ro)return(this.ro||this.ho()).then((i=>i(t)));try{return this.subtle.digest({name:"SHA-384"},t).then((t=>new Uint8Array(t)),(i=>(i.message&&i.message.indexOf("secure origin")<0&&yt().error(ao,"SubtleCrypto failed, fallback to closure lib.",i),this.ho().then((()=>this.sha384(t))))))}catch(i){return Et().error(ao,"SubtleCrypto failed, fallback to closure lib.",i),this.ho().then((()=>this.sha384(t)))}}sha384Base64(t){return this.sha384(t).then((t=>lo(t)))}uniform(t){return this.sha384(t).then((t=>{let i=0;for(let e=2;e>=0;e--)i=(i+t[e])/256;return i}))}ho(){return this.ro?this.ro:this.ro=Ki(this.i).preloadExtension("amp-crypto-polyfill").then((()=>_i(this.i,"crypto-polyfill")))}isPkcsAvailable(){return Boolean(this.subtle)&&!1!==this.i.isSecureContext}importPkcsKey(t){Tt(this.isPkcsAvailable());const i=this.no?(e=JSON.stringify(t),"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):F(unescape(encodeURIComponent(e)))):t;var e;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])}verifyPkcs(t,i,e){return Tt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,e)}})})(t),mi(t,"batched-xhr",oo),Vo(t),Do(t),Do(i=t),mi(i,"vsync",class{constructor(t){this.win=t,this.lo=ji(this.win),this.co=this.ao(),this.As=[],this.do=[],this.fo=[],this.po=[],this._n=!1,this.mo=null,this._o=null,this.Ao=this.Po.bind(this),this.vo=new Or(this.win,this.Ao,16),this.Eo=new Or(this.win,this.Ao,40),this.To=this.Ro.bind(this),this.lo.isSingleDoc()?this.lo.getSingleDoc().onVisibilityChanged(this.To):Fe(this.win.document,this.To)}dispose(){ze(this.win.document,this.To)}Ro(){this._n&&this.Io()}run(t,i){this.As.push(t),this.fo.push(i||void 0),this.Rs()}runPromise(t,i){if(this.run(t,i),this.mo)return this.mo;const e=new n;return this._o=e.resolve,this.mo=e.promise}createTask(t){return i=>{this.run(t,i)}}mutate(t){this.run({measure:void 0,mutate:t})}mutatePromise(t){return this.runPromise({measure:void 0,mutate:t})}measure(t){this.run({measure:t,mutate:void 0})}measurePromise(t){return new Promise((i=>{this.measure((()=>{i(t())}))}))}canAnimate(t){return this.Mo(Tt(t))}Mo(t){if($e(this.win.document)!=ue)return!1;if(this.lo.isSingleDoc())return this.lo.getSingleDoc().isVisible();if(t){const i=this.lo.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0}runAnim(t,i,e){return!!this.Mo(t)&&(this.run(i,e),!0)}createAnimTask(t,i){return e=>this.runAnim(t,i,e)}runAnimMutateSeries(t,i,e){return this.Mo(t)?new Promise(((s,n)=>{const r=Date.now();let o=0;const h=this.createAnimTask(t,{mutate:t=>{const l=Date.now()-r;i(l,l-o,t)?e&&l>e?n(new Error("timeout")):(o=l,h(t)):s()}});h({})})):Promise.reject(Ln())}Rs(){this._n||(this._n=!0,this.Io())}Io(){this.Mo()?(this.co(this.Ao),this.Eo.schedule()):this.vo.schedule()}Po(){this.Eo.cancel(),this._n=!1;const{_o:t,fo:i,As:e}=this;this._o=null,this.mo=null,this.As=this.do,this.fo=this.po;for(let t=0;t{const e=Date.now(),s=Math.max(0,16-(e-i));i=e+s,this.win.setTimeout(t,s)}}}),function(t){mi(t,"xhr",ro)}(t),function(t){mi(t,"input",class{constructor(t){this.win=t,this.yo=this.wo.bind(this),this.bo=this.Vo.bind(this),this.So=null,this.xo=null,this.Oo=null,this.Co="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,this.ko=!1,this.win.document.addEventListener("keydown",this.yo),this.win.document.addEventListener("mousedown",this.bo),this.No=!0,this.Do=0,this.Lo=new pe,this.Uo=new pe,this.$o=new pe,this.Co&&(this.No=!this.Co,this.So=this.Fo.bind(this),Qs(t.document,"mousemove",this.So))}setupInputModeClasses(t){this.onTouchDetected((i=>{this.Bo(t,"amp-mode-touch",i)}),!0),this.onMouseDetected((i=>{this.Bo(t,"amp-mode-mouse",i)}),!0),this.onKeyboardStateChanged((i=>{this.Bo(t,"amp-mode-keyboard-active",i)}),!0)}isTouchDetected(){return this.Co}onTouchDetected(t,i){return i&&t(this.isTouchDetected()),this.Lo.add(t)}isMouseDetected(){return this.No}onMouseDetected(t,i){return i&&t(this.isMouseDetected()),this.Uo.add(t)}isKeyboardActive(){return this.ko}onKeyboardStateChanged(t,i){return i&&t(this.isKeyboardActive()),this.$o.add(t)}Bo(t,i,e){t.waitForBodyOpen().then((t=>{oe(this.win).mutate((()=>{t.classList.toggle(i,e)}))}))}wo(t){if(this.ko)return;if(t.defaultPrevented)return;const{target:i}=t;i&&("INPUT"==i.tagName||"TEXTAREA"==i.tagName||"SELECT"==i.tagName||"OPTION"==i.tagName||i.hasAttribute("contenteditable"))||(this.ko=!0,this.$o.fire(!0))}Vo(){this.ko&&(this.ko=!1,this.$o.fire(!1))}Fo(t){if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return void this.Ho();let i;this.Oo||(this.Oo=this.jo.bind(this),this.xo=this.Ho.bind(this));const e=function(t,i,e,s){let n;const r=new Promise((i=>{n=Qs(t,"click",i,void 0)}));return r.then(n,n),s&&s(n),r}(this.win.document,0,0,(t=>{i=t}));return ie(this.win).timeoutPromise(300,e).then(this.xo,(()=>{i&&i(),this.Oo()}))}jo(){this.No=!0,this.Uo.fire(!0)}Ho(){this.Do++,this.Do<=3&&Qs(this.win.document,"mousemove",this.So)}})}(t),function(t){mi(t,"preconnect",class{constructor(t){this.zo=t.document,this.Go=t.document.head,this.qo={},this.Wo={},this.Rh=Ji(t),this.qo[dn(t.location.href).origin]=!0,this.Ko=function(t){if(!Jo){const i=t.document.createElement("link"),e=i.relList;if(i.as="invalid-value",!e||!e.supports)return{};Jo={preconnect:e.supports("preconnect"),preload:e.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return Jo}(t),this.fn=ie(t)}url(t,i,e){t.whenFirstVisible().then((()=>{this.pi(t,i,e)}))}pi(t,i,e){if(!this.Yo(i))return;const{origin:s}=dn(i),n=Date.now(),r=this.qo[s];if(r&&n{h&&h.parentNode&&h.parentNode.removeChild(h),l.parentNode&&l.parentNode.removeChild(l)}),1e4),this.Jo(t,s)}preload(t,i,e){this.Yo(i)&&(this.Wo[i]||(this.Wo[i]=!0,this.url(t,i,!0),this.Ko.preload&&("document"==e&&this.Rh.isSafari()||t.whenFirstVisible().then((()=>{this.Qo(i)})))))}Qo(t){const i=ks(this.zo)(Qo);i.setAttribute("href",t),this.Ko.onlyValidAs?i.as="fetch":i.as="",this.Go.appendChild(i)}Yo(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))}Jo(t,i){if(this.Ko.preconnect||!this.Rh.isSafari()&&!this.Rh.isIos())return;const e=Date.now();this.qo[i]=e+Xo;const s=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(e-e%Xo),n=new XMLHttpRequest;n.open("HEAD",s,!0),n.withCredentials=!0,n.send()}})}(t)}var th=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function ih(t){if(null==t)return 0;const i=function(t){let i=t;for(;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(i=t);return i}(t),{nodeName:e}=i;return"IMG"===e||"AMP-IMG"===e?1:"VIDEO"===e||"AMP-VIDEO"===e?2:"AMP-CAROUSEL"===e?8:"AMP-BASE-CAROUSEL"===e?16:"AMP-AD"===e?4:!e.startsWith("AMP-")&&i.textContent?32:0}function eh(t){or(t.top)||mi(t,"iframeMessagingClient",sh.bind(null,t),!0)}function sh(t){const i=new class{constructor(t,i){this.i=t,this.qt=at().rtvVersion||null,this.Ht=i||null,this.Zt=null,this.Gt=1,this.Kt=p(),this.Qt()}getData(t,i,e){const s=t+"-result",n=this.Gt++,r=this.registerCallback(s,(t=>{t.messageId===n&&(r(),e(t.content))})),o={};o.payload=i,o.messageId=n,this.sendMessage(t,o)}makeRequest(t,i,e){const s=this.registerCallback(i,e);return this.sendMessage(t),s}requestOnce(t,i,e){const s=this.registerCallback(i,(t=>{s(),e(t)}));return this.sendMessage(t),s}registerCallback(t,i){return this.Xt(t).add(i)}sendMessage(t,i){const e=function(t,i,e={},s=null){const n=e;return n.type=t,n.sentinel=i,sr+(s||"")+JSON.stringify(n)}(t,this.Zt,i,this.qt);if(this.Ht)this.Yt(this.Ht,e);else for(let t=0,i=this.i;t<10&&i!=this.i.top;t++)i=i.parent,this.Yt(i,e),t++}Yt(t,i){this.tn(t)?this.nn(t,i):t.postMessage(i,"*")}nn(t,i){t.postMessage(i,{"targetOrigin":"*","includeUserActivation":!0})}Qt(){Gs(this.i,"message",(t=>{if(this.Ht&&t.source!=this.Ht)return;const i=function(t){if(!function(t){return"string"==typeof t&&t.startsWith(sr)&&-1!=t.indexOf("{")}(t))return null;L(t);const i=t.indexOf("{");return k(-1!=i),$(t.substr(i),(i=>{a(new Error(`MESSAGING: Failed to parse message: ${t}\n${i.message}`))}))}(Ys(t));i&&i.sentinel==this.Zt&&(i.origin=t.origin,this.Ht||(this.Ht=t.source),this.rn(i.type,i))}),void 0)}setSentinel(t){this.Zt=t}Xt(t){return t in this.Kt||(this.Kt[t]=new pe),this.Kt[t]}rn(t,i){t in this.Kt&&this.Kt[t].fire(i)}tn(t){return 1==t.postMessage.length}}(t),e=$(t.name);let s=null;return e&&e._context&&(s=e._context.sentinel),i.setSentinel(s||function(t){return String(t.Math.random()).substr(2)}(t)),i}function nh(t,i,e){t.requestAnimationFrame((()=>{i.measure&&i.measure(e),i.mutate&&i.mutate(e)}))}function rh(t){const i=new class{constructor(t){this.win=t,this.ph=new pe,this.mh=new pe;const i=t.innerWidth,e=t.innerHeight;this.Tt=Yt(0,0,i,e),this.im=Yt(0,e+1,i,e),this.rm=function(t){return Ai(t,"iframeMessagingClient")}(t),this.hm=null,this.lm=H(this.win,(()=>{this.ph.fire()}),100),this.am=or(this.win.top),this.um=this.am?function(t){return t.ampInaboxPositionObserver=t.ampInaboxPositionObserver||new class{constructor(t){this.i=t,this.xt=null,this.It=function(t){const i=t.document;return i.scrollingElement?i.scrollingElement:i.body&&(e=t.navigator.userAgent,/WebKit/i.test(e)&&!/Edge/i.test(e))?i.body:i.documentElement;var e}(this.i),this.Tt=null}observe(t,i){if(!this.xt){this.xt=new pe;const t=H(this.i,(()=>{this.$t(),this.xt.fire()}),100);this.$t(),this.i.addEventListener("scroll",t,!0),this.i.addEventListener("resize",t,!0)}return i(this.St(t)),this.xt.add((()=>{i(this.St(t))}))}$t(){this.Tt=this.getViewportRect()}St(t){return{"viewportRect":this.Tt,"targetRect":this.getTargetRect(t)}}getViewportRect(){const{It:t,i:i}=this,e=t.scrollLeft||i.pageXOffset,s=t.scrollTop||i.pageYOffset;return Yt(Math.round(e),Math.round(s),i.innerWidth,i.innerHeight)}getTargetRect(t){let i=Qt(t.getBoundingClientRect());for(let e=0,s=t.ownerDocument.defaultView;e<10&&s&&s!=this.i&&s!=this.i.top;e++,s=s.parent){const t=Qt(s.frameElement.getBoundingClientRect());i=Xt(i,t.left,t.top)}return i}}(t),t.ampInaboxPositionObserver}(this.win.top):null,this.dm=this.am?function(t){return t.ampInaboxFrameOverlayManager=t.ampInaboxFrameOverlayManager||new class{constructor(t){this.i=t,this.Ct=!1,this.Ut=!1,this.zt=null,this.kt()}kt(){this.i.addEventListener("resize",(()=>this.onWindowResize()))}onWindowResize(){this.Ct&&(this.Ut=!0)}expandFrame(t,i){!function(t,i,e){nh(t,{measure(e){e.viewportSize={width:t.innerWidth,height:t.innerHeight},e.rect=Qt(i.getBoundingClientRect())},mutate(s){const{height:n,width:r}=s.viewportSize,o=Yt(0,0,r,n);var h;!function(t,i,e,s){const n=Le(e.width/2-i.width/2-i.left),r=Le(e.height/2-i.height/2-i.top);var o,h;ke(t,{"position":"fixed","top":Le(i.top),"right":Le(e.width-(i.left+i.width)),"left":Le(i.left),"bottom":Le(e.height-(i.top+i.height)),"height":Le(i.height),"width":Le(i.width),"transition":"transform 150ms ease","transform":(o=n,h=r,null==h?`translate(${Ne(o,Le)})`:`translate(${Ne(o,Le)}, ${Ne(h,Le)})`),"margin":0})}(i,s.rect,s.viewportSize),Se(i,{"pointer-events":"none"}),h=()=>{nh(t,{mutate(){Ue(i,["pointer-events"]),function(t){ke(t,{"position":"fixed","z-index":1e3,"left":0,"right":0,"top":0,"bottom":0,"width":"100vw","height":"100vh","transition":null,"transform":null,"margin":0,"border":0})}(i),e(s.rect,o)}})},setTimeout(h,200)}},{})}(this.i,t,((t,e)=>{this.Ct=!0,this.Ut=!1,this.zt=t,i(e)}))}collapseFrame(t,i){!function(t,i,e,s){nh(t,{mutate(){!function(t){Ue(t,["position","z-index","left","right","top","bottom","width","height","margin","border"])}(i),e(),nh(t,{measure(){s(Qt(i.getBoundingClientRect()))}})}})}(this.i,t,(()=>{this.Ct=!1,this.Ut||i(this.zt)}),(t=>{this.zt=t,this.Ut&&i(this.zt)}))}}(t),t.ampInaboxFrameOverlayManager}(this.win.top):null,this.fm=null}connect(){return this.am?this.pm():this.gm()}gm(){return this.rm.makeRequest(nr,rr,(t=>{this._m(t.viewportRect,t.targetRect)})),s()}pm(){return(t=this.win.document.documentElement,yi(t,"resources")).then((()=>{this.fm=this.fm||this.um.observe(this.win.frameElement||this.getScrollingElement(),(t=>{this._m(t.viewportRect,t.targetRect)}))}));var t}_m(t,i){const e=this.Tt;this.Tt=t,this.Am(i),hh(this.Tt,e)&&this.mh.fire(),oh(this.Tt,e)&&this.lm()}getLayoutRect(t){const i=t.getBoundingClientRect(),{left:e,top:s}=i;return Yt(Math.round(e+this.im.left),Math.round(s+this.im.top),Math.round(i.width),Math.round(i.height))}onScroll(t){this.ph.add(t)}onResize(t){this.mh.add(t)}getSize(){return{width:this.Tt.width,height:this.Tt.height}}getScrollTop(){return this.Tt.top}getScrollLeft(){return this.Tt.left}getScrollingElement(){return this.getBodyElement()}getScrollingElementScrollsLikeViewport(){return!0}supportsPositionFixed(){return!1}Am(t){if(!t)return;const i=Xt(t,this.Tt.left,this.Tt.top);var e,s;(oh(e=i,s=this.im)||hh(e,s))&&(this.im=i,this.vm())}getChildResources(){return te(this.win.document.documentElement).get()}vm(){this.getChildResources().forEach((t=>t.measure()))}updateLightboxMode(t){return t?this.Pm():this.ym()}getRootClientRectAsync(){return this.am?this.pm().then((()=>this.um.getTargetRect(this.win.frameElement||this.getScrollingElement()))):(this.hm||(this.hm=new Promise((t=>{this.rm.requestOnce(nr,rr,(i=>{this.hm=null,k(i.targetRect),t(i.targetRect)}))}))),this.hm)}Pm(){return this.bm().then((()=>this.Em()))}ym(){return this.Tm().then((()=>this.Rm()))}bm(){return function(t,i){return oe(t).runPromise({measure:i=>{i.width=t.innerWidth,i.height=t.innerHeight},mutate:t=>{Se(i,{"background":"transparent","left":"50%","top":"50%","right":"auto","bottom":"auto","position":"absolute","height":Le(t.height),"width":Le(t.width),"margin-top":Le(-t.height/2),"margin-left":Le(-t.width/2)})}},{})}(this.win,this.getBodyElement())}Rm(){return function(t,i){return oe(t).mutatePromise((()=>{Ue(i,["position","left","top","right","bottom","width","height","margin-left","margin-top"])}))}(this.win,this.getBodyElement())}Em(){return new Promise(((t,i)=>{if(this.am){const e=this.win.frameElement;e?this.dm.expandFrame(e,(i=>{this.Am(i),t()})):i("Request to open lightbox failed; frame does not exist.")}else this.rm.requestOnce("full-overlay-frame","full-overlay-frame-response",(e=>{e.success?(this.Am(e.boxRect),t()):i("Request to open lightbox rejected by host document")}))}))}Tm(){return new Promise(((t,i)=>{if(this.am){const e=this.win.frameElement;e?this.dm.collapseFrame(e,(i=>{this.Am(i),t()})):i("Request to open lightbox failed; frame does not exist.")}else this.rm.requestOnce("cancel-full-overlay-frame","cancel-full-overlay-frame-response",(i=>{this.Am(i.boxRect),t()}))}))}getBodyElement(){return C(this.win.document.body)}disconnect(){this.fm&&(this.fm(),this.fm=null)}getScrollWidth(){return this.getScrollingElement().offsetWidth}getScrollHeight(){return this.getScrollingElement().offsetHeight}getContentHeight(){return this.getScrollHeight()}updatePaddingTop(){}hideViewerHeader(){}showViewerHeader(){}disableScroll(){}resetScroll(){}ensureReadyForElements(){}setScrollTop(){}contentHeightChanged(){}getBorderTop(){return 0}requiresFixedLayerTransfer(){return!1}overrideGlobalScrollTo(){return!1}}(t.win);gi(t,"viewport",(function(){return new class{constructor(t,i){const{win:e}=t;this.ampdoc=t,this.er=i,this.yh=null,this.kh=new pe,this.ph=new pe,this.mh=new pe,this.er.onScroll(this.Bh.bind(this)),this.er.onResize(this.Hh.bind(this)),this.zh=!1,this.ampdoc.onVisibilityChanged(this.Gh.bind(this)),this.Gh(),this.Mm=this.dispose.bind(this),e.addEventListener("pagehide",this.Mm);const s=e.document.documentElement;s.classList.add("i-amphtml-singledoc"),s.classList.add("i-amphtml-standalone"),jt(e)&&s.classList.add("i-amphtml-iframed")}dispose(){this.er.disconnect(),this.ampdoc.win.removeEventListener("pagehide",this.Mm)}ensureReadyForElements(){}getPaddingTop(){return 0}getScrollTop(){return this.er.getScrollTop()}getScrollLeft(){return this.er.getScrollLeft()}setScrollTop(t){}updatePaddingBottom(t){}getSize(){return this.er.getSize()}getHeight(){return this.getSize().height}getWidth(){return this.getSize().width}getScrollWidth(){return this.er.getScrollWidth()}getScrollHeight(){return this.er.getScrollHeight()}getContentHeight(){return this.er.getContentHeight()}contentHeightChanged(){}getRect(){if(null==this.yh){const t=this.getSize();this.yh=Yt(this.getScrollLeft(),this.getScrollTop(),t.width,t.height)}return this.yh}getLayoutRect(t){return this.er.getLayoutRect(t)}getClientRectAsync(t){const i=t.getBoundingClientRect();return this.er.getRootClientRectAsync().then((t=>t?Xt(i,t.left,t.top):Qt(i)))}supportsPositionFixed(){return!1}isDeclaredFixed(t){return!1}scrollIntoView(t){return s()}animateScrollIntoView(t,i,e,n){return s()}animateScrollWithinParent(t,i,e,n,r){return s()}getScrollingElement(){return this.er.getScrollingElement()}onChanged(t){return this.kh.add(t)}onScroll(t){return this.ph.add(t)}onResize(t){return this.mh.add(t)}enterLightboxMode(t,i){return this.enterOverlayMode(),this.er.updateLightboxMode(!0)}leaveLightboxMode(t){return this.leaveOverlayMode(),this.er.updateLightboxMode(!1)}enterOverlayMode(){this.disableTouchZoom(),this.disableScroll()}leaveOverlayMode(){this.resetScroll(),this.restoreOriginalTouchZoom()}disableScroll(){}resetScroll(){}resetTouchZoom(){}disableTouchZoom(){return!1}restoreOriginalTouchZoom(){return!1}updateFixedLayer(){return s()}addToFixedLayer(t,i){return s()}removeFromFixedLayer(t){}createFixedLayer(t){}so(){const t=this.getSize(),i=this.getScrollTop(),e=this.getScrollLeft();this.kh.fire({relayoutAll:!1,top:i,left:e,width:t.width,height:t.height,velocity:0})}Bh(){this.yh=null,this.er.getScrollTop()<0||(this.so(),this.ph.fire())}Hh(){this.yh=null;const t=this.getSize();this.so(),this.mh.fire({relayoutAll:!1,width:t.width,height:t.height})}Gh(){const t=this.ampdoc.isVisible();t!=this.zh&&(this.zh=t,t?(this.er.connect(),this.Hh()):this.er.disconnect())}}(t,i)}),!0)}function oh(t,i){return t.left!=i.left||t.top!=i.top}function hh(t,i){return t.width!=i.width||t.height!=i.height}function lh(t){eh(t.win),function(t){gi(t,"url",class{constructor(t){const i=t.getRootNode(),e=i.ownerDocument||i;this.Xo=e.createElement("a"),this.Zo=null}parse(t,i){return fn(this.Xo,t)}tu(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return bn(t)}getSourceOrigin(t){return Mn(this.tu(t))}getSourceUrl(t){return Rn(this.tu(t))}resolveRelativeUrl(t,i){return wn(t,this.tu(i))}assertHttpsUrl(t,i,e="source"){return vn(t,i,e)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return Rt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),dn(t).href}(t)}isProxyOrigin(t){return yn(this.tu(t))}isSecure(t){return An(this.tu(t))}getWinOrigin(t){return t.origin||this.tu(t.location.href).origin}getCdnUrlOnOrigin(t){if(yn(t))return t;const{hash:i,host:e,pathname:s,search:n}=this.tu(t),r=encodeURIComponent(e);return`${it}/c/${r}${s}${n}${i}`}},!0)}(t),function(t){gi(t,"templates",class{constructor(t){this.ji=t,this.iu={},this.su={}}whenReady(t){return this.eu(t).then(No)}setHtmlForTemplate(t,i){return this.eu(t).then((t=>this.nu(t,i)))}renderTemplate(t,i){return this.eu(t).then((t=>this.ru(t,i)))}renderTemplateAsString(t,i){return this.eu(t).then((t=>t.renderAsString(i)))}getTemplateRenderer(t){return this.eu(t).then((t=>({renderAsString:i=>t.renderAsString(i)})))}renderTemplateArray(t,i){return 0==i.length?Promise.resolve([]):this.eu(t).then((t=>i.map((i=>this.ru(t,i)))))}findAndRenderTemplate(t,i,e){return this.renderTemplate(this.findTemplate(t,e),i)}findAndSetHtmlForTemplate(t,i,e){return this.setHtmlForTemplate(this.findTemplate(t,e),i)}findAndRenderTemplateArray(t,i,e){return this.renderTemplateArray(this.findTemplate(t,e),i)}hasTemplate(t,i){return!!this.maybeFindTemplate(t,i)}findTemplate(t,i){const e=this.maybeFindTemplate(t,i);Rt(e,"Template not found for %s",t);const s=e.tagName;return Rt("TEMPLATE"==s||"SCRIPT"==s&&"text/plain"===e.getAttribute("type"),'Template must be defined in a