|
Server : LiteSpeed System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : dewac4139 ( 1077) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /home/planetslotlogin.com/public_html/wp-content/themes/mabar88/ |
Upload File : |
self.AMP_CONFIG={"v":"012203172113000","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,"esm":1};/*AMP_CONFIG*/self.AMP_EXP={"flexible-bitrate":0.1,"amp-story-first-page-max-bitrate":0.3,"story-disable-animations-first-page":1,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"story-ad-page-outlink":0.02,"amp-geo-ssr":1};/*AMP_EXP*/;
self,self.AMP=self.AMP||[];try{AMP._=AMP._||{},self.AMP&&!Array.isArray(self.AMP)||(()=>{var t,i=class{constructor(){this.j=new s}abort(){if(!this.j.C&&(this.j.C=!0,this.j.$)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.j,"currentTarget":this.j};this.j.$(t)}}get signal(){return this.j}},s=class{constructor(){this.C=!1,this.$=null}get aborted(){return this.C}get onabort(){return this.$}set onabort(t){this.$=t}};function e(t,i){(null==i||i>t.length)&&(i=t.length);for(var s=0,e=new Array(i);s<i;s++)e[s]=t[s];return e}function n(t,i){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=function(t,i){if(t){if("string"==typeof t)return e(t,i);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?e(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){s&&(t=s);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(){return t||(t=Promise.resolve(void 0))}var h=class{constructor(){this.promise=new Promise(((t,i)=>{this.resolve=t,this.reject=i}))}};function o(t){return new Promise((i=>{i(t())}))}function u(t){const i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;const{message:s,stack:e}=t,n=new Error(s);for(const i in t)n[i]=t[i];return n.stack=e,n}function l(t){let i=null,s="";for(var e,r=n(arguments,!0);!(e=r()).done;){const t=e.value;t instanceof Error&&!i?i=u(t):(s&&(s+=" "),s+=t)}return i?s&&(i.message=s+": "+i.message):i=new Error(s),i}function c(t){var i,s;null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,t)}function a(t){const i=l.apply(null,arguments);setTimeout((()=>{throw c(i),i}))}function d(t){const i=l.apply(null,arguments);return i.expected=!0,i}var{hasOwnProperty:f,toString:p}=Object.prototype;function m(t){return"[object Object]"===p.call(t)}function _(t){const i=Object.create(null);return t&&Object.assign(i,t),i}function A(t,i){return f.call(t,i)}function P(t){const i=_();for(const s in t){if(!A(t,s))continue;const e=t[s];i[s]=m(e)?P(e):e}return i}function g(t,i,s){return i in t?Object.defineProperty(t,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[i]=s,t}function v(t,i){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),s.push.apply(s,e)}return s}function E(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?v(Object(s),!0).forEach((function(i){g(t,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))}))}return t}var{isArray:T}=Array;function M(t){return T(t)?t:[t]}function I(t,i){const s=[];let e=0;for(let n=0;n<t.length;n++){const r=t[n];i(r,n,t)?s.push(r):(e<n&&(t[e]=r),e++)}return e<t.length&&(t.length=e),s}function R(t,i){for(let s=0;s<t.length;s++)if(i(t[s],s,t))return s;return-1}function y(t,i){const s=t.indexOf(i);return-1!=s&&(t.splice(s,1),!0)}function b(t,i){const s=t.length-i.length;return s>=0&&t.indexOf(i,s)==s}function w(t){return"string"==typeof t}function V(t){return 1==(null==t?void 0:t.nodeType)}function S(t){return"number"==typeof t&&isFinite(t)}var x="",O="";function C(t){return V(t)?(t=t).tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function k(t){return t.indexOf(x)>=0}function N(t){return t.replace(x,"")}function D(t,i,s="Assertion failed",e){var n,r;if(i)return i;t&&-1==s.indexOf(t)&&(s+=t);let h=3;const o=s.split("%s");let u=o.shift();const l=[u];for(;o.length;){const t=arguments[h++],i=o.shift();u+=C(t)+i,l.push(t,i.trim())}const c=new Error(u);throw c.messageArray=I(l,(t=>""!==t)),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,c),c}function L(t,i,s,e,n){return T(n)?t(s,n.concat([i])):t(s,`${n||e}: %s`,i),i}function U(t,i,s,e,n,r,h,o,u,l,c){return t}function $(t,i){return t}function F(t,i){return t}function B(t,i){return t}function H(t,i,s,e,n,r,h,o,u,l,c){return D(x,t,i,s,e,n,r,h,o,u,l,c)}function j(t){return JSON.parse(t)}function z(t){const i=new Uint8Array(t.length);for(let s=0;s<t.length;s++){const e=t.charCodeAt(s);U(e<=255),i[s]=e}return i}function G(t,i){let{crypto:s}=t;const e=new Uint8Array(i);return s.getRandomValues(e),e}function q(t,i,s){let e=0,n=null;function r(r){n=null,e=t.setTimeout(h,s),i.apply(null,r)}function h(){e=0,n&&r(n)}return function(...t){e?n=t:r(t)}}function W(t,i,s){let e=0,n=0,r=null;function h(){e=0;const o=s-(t.Date.now()-n);var u;o>0?e=t.setTimeout(h,o):(u=r,r=null,i.apply(null,u))}return function(...i){n=t.Date.now(),r=i,e||(e=t.setTimeout(h,s))}}var K=["javascript:","data:","vbscript:"],Y=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Q(t,i=""){try{return decodeURIComponent(t)}catch(t){return i}}function J(t){const i=_();if(!t)return i;let s;for(;s=Y.exec(t);){const t=Q(s[1],s[1]),e=s[2]?Q(s[2].replace(/\+/g," "),s[2]):"";i[t]=e}return i}function X(t){const{location:i}=t||self;return J(i.originalHash||i.hash)}var Z=self.AMP_CONFIG||{},tt=("string"==typeof Z.thirdPartyFrameRegex?new RegExp(Z.thirdPartyFrameRegex):Z.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,it=("string"==typeof Z.cdnProxyRegex?new RegExp(Z.cdnProxyRegex):Z.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function st(t){if(!self.document||!self.document.head)return null;if(self.location&&it.test(self.location.origin))return null;const i=self.document.head.querySelector(`meta[name="${t}"]`);return i&&i.getAttribute("content")||null}var et={thirdParty:Z.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:Z.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:tt,cdn:Z.cdnUrl||st("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:it,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:Z.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:Z.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:Z.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:Z.geoApiUrl||st("amp-geo-api")},nt={urls:et},rt="";function ht(t){const i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:ut(t,X(t)),esm:!0,test:!1,rtvVersion:ot(t)}}(i)}function ot(t){var i;return rt||(rt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"012203172113000"),rt}function ut(t,i){const s=i||X(t);return["1","actions","amp","amp4ads","amp4email"].includes(s.development)||!!t.AMP_DEV_MODE}var lt=()=>{},ct=void 0;function at(t){ct=t}var dt=(t,i)=>i.reduce(((t,i)=>`${t}&s[]=${ft(i)}`),`https://log.amp.dev/?v=012203172113000&id=${encodeURIComponent(t)}`),ft=t=>encodeURIComponent(String(C(t))),pt=t=>parseInt(X(t).log,10);self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var mt=self.__AMP_LOG,_t=null;function At(t,i){if(!_t)throw new Error("failed to call initLogConstructor");return new _t(self,t,i)}function Pt(t){return mt.user||(mt.user=gt(x)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(mt.user.win,t)?mt.userForEmbed||(mt.userForEmbed=gt(O)):mt.user}function gt(t){return At(((t,i)=>i||t>=1?4:2),t)}function vt(){return mt.dev||(mt.dev=At((t=>t>=3?4:t>=2?3:0)))}function Et(t,i,s,e,n,r,h,o,u,l,c){return t}function Tt(t,i,s,e,n,r,h,o,u,l,c){return Pt().assert(t,i,s,e,n,r,h,o,u,l,c)}function Mt(t){return(t.ownerDocument||t).defaultView}function It(t,i){return t.replace(/^|,/g,`$&${i} `)}function Rt(t){return CSS.escape(t)}function yt(t){U(/^[\w-]+$/.test(t))}function bt(t,i){return t.querySelector(It(i,":scope"))}function wt(t,i){const s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!s&&s.call(t,i)}function Vt(t,i,s){let e;for(e=t;e&&e!==s;e=e.parentElement)if(i(e))return e;return null}function St(t,i){return t.closest?t.closest(i):Vt(t,(t=>wt(t,i)))}function xt(t,i){for(let s=t.lastElementChild;s;s=s.previousElementSibling)if(i(s))return s;return null}function Ot(t,i){return yt(i),bt(t,`> [${i}]`)}function Ct(t){return!!function(t){let i;return w(t)?i=t:V(t)&&(i=t.tagName),!!i&&i.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&($(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var kt={bubbles:!0,cancelable:!0};function Nt(t,i,s){if(i(t))s();else{const e=new(Mt(t).MutationObserver)((()=>{i(t)&&(e.disconnect(),s())}));e.observe(t,{childList:!0})}}function Dt(t,i){Nt(t.documentElement,(()=>!!t.body),i)}function Lt(t){return new Promise((i=>Dt(t,i)))}function Ut(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function $t(t){const i=t.isConnected;if(void 0!==i)return i;let s=t;for(;s=Ft(s),s.host;)s=s.host;return s.nodeType===Node.DOCUMENT_NODE}function Ft(t){if(Node.prototype.getRootNode)return t.getRootNode();let i;for(i=t;i.parentNode&&(!(s=i)||"I-AMPHTML-SHADOW-ROOT"!=s.tagName&&(11!=s.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(s)));i=i.parentNode);var s;return i}function Bt(t,i){let s=t;do{if(s.nextSibling)return!0}while((s=s.parentNode)&&s!=i);return!1}function Ht(t){try{t.focus()}catch(t){}}function jt(t){return t.parent&&t.parent!=t}function zt(t,i,s,e){const n=s||{};U(t.ownerDocument);const r=t.ownerDocument.createEvent("Event");r.data=n;const{bubbles:h,cancelable:o}=e||kt;r.initEvent(i,h,o),t.dispatchEvent(r)}function Gt(t,i){return i!==t&&t.contains(i)}function qt(t){return t.hasAttribute("i-amphtml-ssr")}function Wt(t,i){const s=t.head.querySelector("script[nonce]");if(s){const t=s.nonce||s.getAttribute("nonce");i.setAttribute("nonce",null!=t?t:"")}}function Kt(t,i,s,e){return{left:t,top:i,width:s,height:e,bottom:i+e,right:t+s,x:t,y:i}}function Yt(t,i,s){return Kt(t.left-t.width*i,t.top-t.height*s,t.width*(1+2*i),t.height*(1+2*s))}function Qt(t,i,s){return 0==i&&0==s||0==t.width&&0==t.height?t:Kt(t.left+i,t.top+s,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 Xt=class{constructor(t,i){this.N=t,this.L=E({root:null,rootMargin:"0px 0px 0px 0px"},i),this.U=[],this.F=null,Xt._upgraders.push(this.G.bind(this))}get root(){return this.F?this.F.root:this.L.root||null}get rootMargin(){return this.F?this.F.rootMargin:this.L.rootMargin}get thresholds(){return this.F?this.F.thresholds:[].concat(this.L.threshold||0)}disconnect(){this.F?this.F.disconnect():this.U.length=0}takeRecords(){return this.F?this.F.takeRecords():[]}observe(t){this.F?this.F.observe(t):-1==this.U.indexOf(t)&&this.U.push(t)}unobserve(t){if(this.F)this.F.unobserve(t);else{const i=this.U.indexOf(t);-1!=i&&this.U.splice(i,1)}}G(t){const i=new t(this.N,this.L);this.F=i;for(var s,e=n(this.U,!0);!(s=e()).done;){const t=s.value;i.observe(t)}this.U.length=0}};Xt._upgraders=[];var{hasOwnProperty:Zt}=Object.prototype;function ti(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var ii,si=class{constructor(t){this.N=t,this.U=[],this.F=null,si._upgraders.push(this.G.bind(this))}disconnect(){this.F?this.F.disconnect():this.U.length=0}observe(t){this.F?this.F.observe(t):-1==this.U.indexOf(t)&&this.U.push(t)}unobserve(t){if(this.F)this.F.unobserve(t);else{const i=this.U.indexOf(t);-1!=i&&this.U.splice(i,1)}}G(t){const i=new t(this.N);this.F=i;for(var s,e=n(this.U,!0);!(s=e()).done;){const t=s.value;i.observe(t)}this.U.length=0}};si._upgraders=[],self.document&&(Jt(ii=self)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Xt,void(t.IntersectionObserver._stub=Xt);const i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(s,e){var n;return 9===(null==e||null===(n=e.root)||void 0===n?void 0:n.nodeType)?new i(s,e):new t(s,e)}}(t.IntersectionObserver,Xt),t.IntersectionObserver._stub=Xt,t.IntersectionObserver._native=i}(ii),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(ii),function(t){ti(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:s}))}(self));var ei="cls",ni="clstu",ri="cls-1",hi="pc",oi="building",ui="mounting",li="loading",ci="complete",ai="error";function di(t){return t.readyState!=li&&"uninitialized"!=t.readyState}function fi(t){return t.readyState==ci}function pi(t,i){mi(t,di,i)}function mi(t,i,s){let e=i(t);if(e)s(t);else{const n=()=>{i(t)&&(e||(e=!0,s(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}function _i(t){return new Promise((i=>{pi(t,i)}))}function Ai(t){return new Promise((i=>{mi(t,fi,i)}))}var Pi=["amp-mustache"];function gi(t){if(!t)return null;const i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)$/i),s=i?i[2]:void 0,e=i?i[3]:void 0;return s&&e?{extensionId:s,extensionVersion:e}:null}function vi(t,i,s){const e=t.document.createElement("script");e.async=!0,Ti(i)?s="":e.setAttribute(Pi.indexOf(i)>=0?"custom-template":"custom-element",i),e.setAttribute("data-script",i),e.setAttribute("i-amphtml-inserted",""),e.setAttribute("type","module"),Wt(t.document,e),e.setAttribute("crossorigin","anonymous");const n=function(t,i,s,e){return`${et.cdn}/rtv/${ht().rtvVersion}/v0/${i}${s?"-"+s:""}.mjs`}(t.location,i,s);return e.src=n,e}function Ei(t,i,s,e,n=!0){const r=":not([i-amphtml-loaded-new-version])"+(n?"":":not([i-amphtml-inserted])"),h=t.document.head.querySelectorAll(`script[src*="/${i}-"]${r}`),o=[];for(let t=0;t<h.length;t++){const n=h[t],r=gi(n.src);if(!r)continue;const{extensionId:u,extensionVersion:l}=r;u==i&&(Ti(i)||l==s||"latest"==l&&e)&&o.push(n)}return o}function Ti(t){return t.startsWith("_")}function Mi(t,i,s,e){Ni(t=Si(t),t,i,s),e&&ki(t,i)}function Ii(t,i,s,e){const n=Oi(t),r=Ci(n);Ni(r,n,i,s),e&&ki(r,i)}function Ri(t,i){return ki(t=Si(t),i)}function yi(t,i){return ki(Ci(Oi(t)),i)}function bi(t,i){const s=Ci(Oi(t));return Bi(s,i)?ki(s,i):null}function wi(t,i){return Di(Ci(t),i)}function Vi(t,i){return Li(Ci(t),i)}function Si(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function xi(t,i){const s=(t.ownerDocument||t).defaultView,e=i||Si(s);if(s&&s!=e&&Si(s)==e)try{return s.frameElement}catch(t){}return null}function Oi(t){return t.nodeType?function(t){return Ri(t,"ampdoc")}(Mt(t)).getAmpDoc(t):t}function Ci(t){const i=Oi(t);return i.isSingleDoc()?i.win:i}function ki(t,i){Et(Bi(t,i));const s=Ui(t)[i];return s.obj||(Et(s.ctor),Et(s.context),s.obj=new s.ctor(s.context),Et(s.obj),s.context=null,s.resolve&&s.resolve(s.obj)),s.obj}function Ni(t,i,s,e,n,r){const h=Ui(t);let o=h[s];o||(o=h[s]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:r||!1}),!n&&o.ctor||(o.ctor=e,o.context=i,o.sharedInstance=r||!1,o.resolve&&ki(t,s))}function Di(t,i){const s=Li(t,i);if(s)return s;const e=Ui(t);return e[i]=function(){const t=new h,{promise:i,reject:s,resolve:e}=t;return i.catch((()=>{})),{obj:null,promise:i,resolve:e,reject:s,context:null,ctor:null}}(),e[i].promise}function Li(t,i){const s=Ui(t)[i];return s?s.promise?s.promise:(ki(t,i),s.promise=Promise.resolve(s.obj)):null}function Ui(t){let i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function $i(t){return"function"==typeof t.dispose}function Fi(t,i){if($i(i))try{(function(t){return Et($i(t)),t})(i).dispose()}catch(i){vt().error("SERVICE","failed to dispose service",t,i)}}function Bi(t,i){const s=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!s||!s.ctor)}function Hi(t,i,s,e){return ji(t,i,s,e).then((t=>function(t,i,s){return Tt(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,s,s,s)}(t,i,s)))}function ji(t,i,s,e){const n=Vi(t,i);if(n)return n;const r=Oi(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(s);return t?Ri(r.win,"extensions").waitForExtension(s,t):null})).then((s=>s?e?Vi(t,i):wi(t,i):null))}var zi,Gi=t=>ji(t,"access","amp-access"),qi=t=>ji(t,"subscriptions","amp-subscriptions"),Wi=t=>bi(t,"action"),Ki=t=>Hi(t,"activity","amp-analytics"),Yi=t=>Oi(t),Qi=t=>Ri(t,"ampdoc"),Ji=t=>function(t,i,s){const e=bi(t,i);return e?Promise.resolve(e):ji(t,i,s)}(t,"bind","amp-bind"),Xi=t=>wi(t,"cid"),Zi=t=>Ri(t,"crypto"),ts=t=>yi(t,"documentInfo").get(),is=t=>Ri(t,"extensions"),ss=t=>yi(t,"history"),es=t=>yi(t,"mutator"),ns=t=>Ri(t,"performance"),rs=t=>function(t,i){return Bi(t=Si(t),i)?ki(t,i):null}(t,"performance"),hs=t=>Ri(t,"platform"),os=t=>Ri(t,"preconnect"),us=t=>yi(t,"resources"),ls=t=>wi(t,"storage"),cs=t=>function(t,i){return ki(t,"timer")}(t),as=t=>bi(t,"url-replace"),ds=t=>ji(t,"geo","amp-geo",!0),fs=t=>bi(t,"url"),ps=t=>yi(t,"viewer"),ms=t=>Ri(t,"vsync"),_s=t=>yi(t,"viewport"),As=t=>Ri(t,"xhr"),Ps={PRERENDER:"prerender",PREVIEW:"preview",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"},gs=class{constructor(){this.Et=null}add(t){return this.Et||(this.Et=[]),this.Et.push(t),()=>{this.remove(t)}}remove(t){this.Et&&y(this.Et,t)}removeAll(){this.Et&&(this.Et.length=0)}fire(t){if(this.Et)for(var i,s=n(this.Et,!0);!(i=s()).done;)(0,i.value)(t)}getHandlerCount(){var t,i;return null!==(t=null===(i=this.Et)||void 0===i?void 0:i.length)&&void 0!==t?t:0}},vs=class{constructor(){this.Tt=_(),this.It=null}get(t){const i=this.Tt[t];return null==i?null:i}whenSignal(t){var i;let s=null===(i=this.It)||void 0===i?void 0:i[t];if(!s){const i=this.Tt[t];s=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new h,this.It||(this.It=_()),this.It[t]=s}return s.promise}signal(t,i){var s;if(null!=this.Tt[t])return;const e=null!=i?i:Date.now();this.Tt[t]=e;const n=null===(s=this.It)||void 0===s?void 0:s[t];null!=n&&n.resolve&&(n.resolve(e),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,i){var s;if(null!=this.Tt[t])return;this.Tt[t]=i;const e=null===(s=this.It)||void 0===s?void 0:s[t];null!=e&&e.reject&&(e.reject(i),e.promise.catch((()=>{})),e.resolve=void 0,e.reject=void 0)}reset(t){var i;this.Tt[t]&&delete this.Tt[t];const s=null===(i=this.It)||void 0===i?void 0:i[t];s&&!s.resolve&&delete this.It[t]}},Es=["Webkit","webkit","Moz","moz","ms","O","o"],Ts={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function Ms(t){const i=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return Es.some((t=>i.startsWith(t+"-")))?`-${i}`:i}function Is(t,i,s){if(i.startsWith("--"))return i;zi||(zi=_());let e=zi[i];if(!e||s){if(e=i,void 0===t[i]){const s=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),n=function(t,i){for(let s=0;s<Es.length;s++){const e=Es[s]+i;if(void 0!==t[e])return e}return""}(t,s);void 0!==t[n]&&(e=n)}s||(zi[i]=e)}return e}function Rs(t,i){const{style:s}=t;for(const t in i)s.setProperty(Ms(Is(s,t)),String(i[t]),"important")}function ys(t,i,s,e,n){const r=Is(t.style,i,n);if(!r)return;const h=e?s+e:s;t.style.setProperty(Ms(r),h)}function bs(t,i){for(const s in i)ys(t,s,i[s])}function ws(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Vs(t){return`${t}px`}function Ss(t,i){return t.getComputedStyle(i)||Ts}function xs(t){const i=t[Is(t,"visibilityState",!0)];if(i)return i;const s=Is(t,"hidden",!0);return s in t&&t[s]?Ps.HIDDEN:Ps.VISIBLE}function Os(t,i){if(!t.addEventListener)return;const s=ks(t);s&&t.addEventListener(s,i)}function Cs(t,i){if(!t.removeEventListener)return;const s=ks(t);s&&t.removeEventListener(s,i)}function ks(t){const i=Is(t,"hidden",!0),s=i.indexOf("Hidden");return-1!=s?i.substring(0,s)+"Visibilitychange":"visibilitychange"}var Ns=class{static getTop(t){return t.top}static getLocation(t){return t.location}static getDocumentReferrer(t){return t.document.referrer}static getHostname(t){return t.location.hostname}static getUserAgent(t){return t.navigator.userAgent}static getUserLanguage(t){return t.navigator.userLanguage||t.navigator.language}static getDevicePixelRatio(){return self.devicePixelRatio||1}static getSendBeacon(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)}static getXMLHttpRequest(t){return t.XMLHttpRequest}static getImage(t){return t.Image}},Ds="__AMP__",Ls="-ampdoc-ext-known",Us="-ampdoc-first-visible",$s="-ampdoc-next-visible",Fs=class{constructor(t,i,s){this.win=t,this.Mt=_(),this.Rt=i,this.Vt=s&&s.signals||new vs,this.St=s&&s.params||_(),this.xt=null,this.Ot={};const e=this.St.visibilityState;var n;Et(!e||"prerender"===(n=e)||"preview"===n||"visible"===n||"hidden"===n||"paused"===n||"inactive"===n),this.Ct=s&&s.visibilityState||e||null,this.D=null,this.kt=new gs,this.Nt=null,this.Dt=[];const r=this.Lt.bind(this);this.Rt&&this.Dt.push(this.Rt.onVisibilityChanged(r)),Os(this.win.document,r),this.Dt.push((()=>Cs(this.win.document,r))),this.Lt()}dispose(){(function(t){const i=Ui(t);for(const t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const s=i[t];s.sharedInstance||(s.obj?Fi(t,s.obj):s.promise&&s.promise.then((i=>Fi(t,i))))}})(this),this.Dt.forEach((t=>t()))}isSingleDoc(){return Et(null)}getParent(){return this.Rt}signals(){return this.Vt}getParam(t){const i=this.St[t];return null==i?null:i}getMeta(){return this.xt||(this.xt=_(),function(t,i){const{length:s}=t;for(let e=0;e<s;e++)i(t[e])}(this.win.document.head.querySelectorAll("meta[name]"),(t=>{const i=t.getAttribute("name"),s=t.getAttribute("content");i&&null!==s&&void 0===this.xt[i]&&(this.xt[i]=s)}))),_(this.xt)}getMetaByName(t){if(!t)return null;const i=this.getMeta()[t];return void 0!==i?i:null}setMetaByName(t,i){Et(null)}declaresExtension(t,i){const s=this.Ot[t];return!(!s||i&&s!==i)}declareExtension(t,i){Et(!this.Ot[t]||this.Ot[t]===i),this.Ot[t]=i}getExtensionVersion(t){return this.Ot[t]||null}setExtensionsKnown(){this.Vt.signal(Ls)}whenExtensionsKnown(){return this.Vt.whenSignal(Ls)}getRootNode(){return Et(null)}getHeadNode(){}isBodyAvailable(){return Et(!1)}getBody(){return Et(null)}waitForBodyOpen(){return Et(null)}isReady(){return Et(null)}whenReady(){return Et(null)}getUrl(){return Et(null)}getElementById(t){return this.getRootNode().getElementById(t)}contains(t){return this.getRootNode().contains(t)}overrideVisibilityState(t){this.Ct!=t&&(this.Ct=t,this.Lt())}Lt(){const t=xs(this.win.document);let i,s=Ps.VISIBLE;for(let t=this.Rt;t;t=t.getParent())if(t.getVisibilityState()!=Ps.VISIBLE){s=t.getVisibilityState();break}const e=this.Ct||Ps.VISIBLE;if(i=e==Ps.VISIBLE&&s==Ps.VISIBLE&&t==Ps.VISIBLE?Ps.VISIBLE:t==Ps.HIDDEN&&e==Ps.PAUSED?t:e==Ps.PAUSED||e==Ps.INACTIVE?e:s==Ps.PAUSED||s==Ps.INACTIVE?s:e==Ps.PREVIEW||t==Ps.PREVIEW||s==Ps.PREVIEW?Ps.PREVIEW:e==Ps.PRERENDER||t==Ps.PRERENDER||s==Ps.PRERENDER?Ps.PRERENDER:Ps.HIDDEN,this.D!=i){if(i==Ps.VISIBLE){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.Nt=i,this.Vt.signal(Us,i),this.Vt.signal($s,i)}else this.Vt.reset($s);this.D=i,this.kt.fire()}}whenFirstVisible(){return this.Vt.whenSignal(Us).then((()=>{}))}whenNextVisible(){return this.Vt.whenSignal($s).then((()=>{}))}getFirstVisibleTime(){return this.Vt.get(Us)}getLastVisibleTime(){return this.Nt}getVisibilityState(){return Et(this.D)}isVisible(){return this.D==Ps.VISIBLE}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(t){return this.kt.add(t)}registerSingleton(t){return!this.Mt[t]&&(this.Mt[t]=!0,!0)}},Bs=class extends Fs{constructor(t,i){super(t,null,i),this.Ut=this.win.document.body?Promise.resolve(this.win.document.body):Lt(this.win.document).then((()=>this.getBody())),this.$t=_i(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return Ns.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.Ut}isReady(){return di(this.win.document)}whenReady(){return this.$t}},Hs=class extends Fs{constructor(t,i,s,e){super(t,null,e),this.Ft=i,this.Bt=s,this.Ht=null;const n=new h;this.Ut=n.promise,this.zt=n.resolve,this.Gt=!1;const r=new h;this.$t=r.promise,this.qt=r.resolve}isSingleDoc(){return!1}getRootNode(){return this.Bt}getUrl(){return this.Ft}getHeadNode(){return this.Bt}isBodyAvailable(){return!!this.Ht}getBody(){return this.Ht}setBody(t){Et(!this.Ht),this.Ht=t,this.zt(t),this.zt=void 0}waitForBodyOpen(){return this.Ut}isReady(){return this.Gt}setReady(){Et(!this.Gt),this.Gt=!0,this.qt(),this.qt=void 0}whenReady(){return this.$t}getMeta(){return _(this.xt)}setMetaByName(t,i){Et(t),this.xt||(this.xt=_()),this.xt[t]=i}},js=class extends Fs{constructor(t,i,s,e){super(t,s,e),this.Ft=i,this.Ut=this.win.document.body?Promise.resolve(this.win.document.body):Lt(this.win.document).then((()=>this.getBody())),this.Gt=!1;const n=new h;this.$t=n.promise,this.qt=n.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.Ft}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.Ut}isReady(){return this.Gt}whenReady(){return this.$t}setReady(){Et(!this.Gt),this.Gt=!0,this.qt(),this.qt=void 0}};function zs(t,i){const s=_();return i?Object.assign(s,i):(t.name&&0==t.name.indexOf(Ds)&&Object.assign(s,J(t.name.substring(Ds.length))),t.location&&t.location.hash&&Object.assign(s,J(t.location.hash))),s}var Gs="nodisplay",qs="fixed",Ws="fixed-height",Ks="responsive",Ys="container",Qs="fill",Js="flex-item",Xs="fluid",Zs="intrinsic",te=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function ie(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 se(t){return"i-amphtml-layout-"+t}function ee(t){return t==qs||t==Ws||t==Ks||t==Qs||t==Js||t==Xs||t==Zs}function ne(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 re(t){!function(t){H(/^\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 H(i,"Failed to read units from %s",t),i[0]}function he(t){const i=parseFloat(t);return S(i)?i:void 0}function oe(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function ue(t,i,s,e){for(var r,h=n(M(t),!0);!(r=h()).done;){const t=r.value,n=i.getAttribute(t);null!==n?s.setAttribute(t,n):e&&s.removeAttribute(t)}}var le,ce="amp:attached",ae="amp:load-start",de="amp:load-end",fe="ready-upgrade",pe="upgraded",me="built",_e="mounted",Ae="load-start",Pe="render-start",ge="load-end",ve="unload";function Ee(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function Te(t,i){return i.split(",").map((i=>{if(0==(i=i.replace(/\s+/g," ").trim()).length)return;let s,e,n;if(")"==i.charAt(i.length-1)){let t=1;for(n=i.length-2;n>=0;n--){const s=i.charAt(n);if("("==s?t--:")"==s&&t++,0==t)break}const s=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>=s)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?(s=i.substring(0,n+1).trim(),e=i.substring(n+1).trim()):(e=i,s=void 0),e?{query:s?t.matchMedia(s):null,value:e}:null})).filter(Boolean)}function Me(t,i,s){for(let e=0;e<t.length;e++){const{query:n}=t[e];n&&(void 0!==n.onchange?n.onchange=s?i:null:s?n.addListener(i):n.removeListener(i))}}function Ie(t){const i=t.ownerDocument||t;return le&&le.ownerDocument===i||(le=i.createElement("div")),Re}function Re(t){return function(t,i){U(1===i.length),t.innerHTML=i[0];const s=t.firstElementChild;return U(s),U(!s.nextElementSibling),t.removeChild(s),s}(le,t)}var ye=['<i-amphtml-sizer class=i-amphtml-sizer slot=i-amphtml-svc><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],be={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function we(t){const i=t.getAttribute("layout"),s=t.getAttribute("width"),e=t.getAttribute("height"),n=t.getAttribute("sizes"),r=t.getAttribute("heights"),h=i?ie(i):null;H(void 0!==h,'Invalid "layout" value: %s, %s',i,t);const o=s&&"auto"!=s?ne(s):s;H(void 0!==o,'Invalid "width" value: %s, %s',s,t);const u=e&&"fluid"!=e?ne(e):e;let l,c,a;if(H(void 0!==u,'Invalid "height" value: %s, %s',e,t),h&&h!=qs&&h!=Ws||o&&u||(d=(d=t.tagName).toUpperCase(),void 0===be[d]))l=o,c=u;else{const i=function(t){const i=t.tagName.toUpperCase();if(U(void 0!==be[i]),!be[i]){const s=t.ownerDocument,e=i.replace(/^AMP\-/,""),n=s.createElement(e);n.controls=!0,bs(n,{position:"absolute",visibility:"hidden"}),s.body.appendChild(n),be[i]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"},s.body.removeChild(n)}return be[i]}(t);l=o||h==Ws?o:i.width,c=u||i.height}var d;return a=h||(l||c?"fluid"==c?Xs:!c||l&&"auto"!=l?c&&l&&(n||r)?Ks:qs:Ws:Ys),a!=qs&&a!=Ws&&a!=Ks&&a!=Zs||H(c,'The "height" attribute is missing: %s',t),a==Ws&&H(!l||"auto"==l,'The "width" attribute must be missing or "auto": %s',t),a!=qs&&a!=Ks&&a!=Zs||H(l&&"auto"!=l,'The "width" attribute must be present and not "auto": %s',t),a==Ks||a==Zs?H(re(l)==re(c),'Length units should be the same for "width" and "height": %s, %s, %s',s,e,t):H(null===r,'"heights" attribute must be missing: %s',t),{layout:a,width:l,height:c}}var Ve,Se="amp-experiment-toggles",xe="__AMP__EXPERIMENT_TOGGLES";function Oe(t,i){return!!ke(t)[i]}function Ce(t,i,s,e){const n=Oe(t,i),r=null!=s?s:!n;if(r!=n&&(ke(t)[i]=r,!e)){const s=Ne(t);s[i]=r,function(t,i){const s=[];for(const t in i)s.push((!1===i[t]?"-":"")+t);try{var e;null===(e=t.localStorage)||void 0===e||e.setItem(Se,s.join(","))}catch(t){Pt().error("EXPERIMENTS","Failed to save experiments to localStorage.")}}(t,s)}return r}function ke(t){var i,s,e,r,h;if(t[xe])return t[xe];t[xe]=_();const o=t[xe];U(o);const u=E(E({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(s=t.AMP_EXP)&&void 0!==s?s:j((null===(e=t.__AMP_EXP)||void 0===e?void 0:e.textContent)||"{}"));for(const t in u){const i=u[t];"number"==typeof i&&i>=0&&i<=1&&(o[t]=Math.random()<i)}const l=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-doc-opt-in"];if(T(l)&&l.length){const i=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(i)for(var c,a,d=n((null===(c=i.getAttribute("content"))||void 0===c?void 0:c.split(","))||[],!0);!(a=d()).done;){const t=a.value;l.includes(t)&&(o[t]=!0)}}Object.assign(o,Ne(t));const f=null===(h=t.AMP_CONFIG)||void 0===h?void 0:h["allow-url-opt-in"];if(T(f)&&f.length){const i=J(t.location.originalHash||t.location.hash);for(var p,m=n(f,!0);!(p=m()).done;){const t=p.value,s=i[`e-${t}`];"1"==s&&(o[t]=!0),"0"==s&&(o[t]=!1)}}return o}function Ne(t){var i;let s="";try{var e;"localStorage"in t&&(s=null!==(e=t.localStorage.getItem(Se))&&void 0!==e?e:"")}catch(t){}const r=(null===(i=s)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],h=_();for(var o,u=n(r,!0);!(o=u()).done;){const t=o.value;t&&("-"==t[0]?h[t.substr(1)]=!1:h[t]=!0)}return h}function De(t,i,s,e){let n=t,r=s,h=t=>{try{return r(t)}catch(t){var i,s;throw null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,t),t}};const o=function(){if(void 0!==Ve)return Ve;Ve=!1;try{const t={get capture(){return Ve=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Ve}(),u=!(null==e||!e.capture);return n.addEventListener(i,h,o?e:u),()=>{null==n||n.removeEventListener(i,h,o?e:u),r=null,n=null,h=null}}var Le="Failed to load:";function Ue(t,i,s,e){const n={detail:s};return Object.assign(n,e),new t.CustomEvent(i,n)}function $e(t,i,s,e){return De(t,i,s,e)}function Fe(t){return t.data}function Be(t,i,s,e){let n=s;const r=De(t,i,(t=>{try{n(t)}finally{n=null,r()}}),e);return r}function He(t){let i,s;if(function(t){return!!(t.complete||"complete"==t.readyState||je(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const e=je(t);return e&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(i=e?Be(t,"loadedmetadata",n,{capture:!0}):Be(t,"load",n),!t.tagName)return;let h=t;if(e&&!t.hasAttribute("src")&&(h=xt(t,(t=>"SOURCE"===t.tagName)),!h))return r(new Error("Media has no source."));s=Be(h,"error",r)})).then((()=>(s&&s(),t)),(()=>{i&&i(),function(t){je(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let i=t;throw i&&i.src&&(i=i.src),Pt().createError(Le,i)}(t)}))}function je(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var ze={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function Ge(t){const i=t.document;return Et(i.body),Object.keys(ze).filter((t=>i.querySelector(ze[t])))}function qe(t,i,s){if(i[s])return i[s];const e=t.querySelector(`style[${s}], link[${s}]`);return e?(i[s]=e,e):null}var We=!1;function Ke(t){Et(t.defaultView),We||(We=!0,Ye(t))}function Ye(t){bs(t.body,{opacity:1,visibility:"visible","animation":"none"})}function Qe(t,i){const s=t.styleSheets;for(let t=0;t<s.length;t++)if(s[t].ownerNode==i)return!0;return!1}var Je,Xe=new Set(["c","v","a","ad"]),Ze="__amp_source_origin",tn=t=>"string"==typeof t?sn(t):t;function sn(t,i){return Je||(Je=self.document.createElement("a")),en(Je,t)}function en(t,i,s){return t.href="",new URL(i,t.href)}function nn(t,i,s){if(!i)return t;const e=t.split("#",2),n=e[0].split("?",2);let r=n[0]+(n[1]?s?`?${i}&${n[1]}`:`?${n[1]}&${i}`:`?${i}`);return r+=e[1]?`#${e[1]}`:"",r}function rn(t,i){return`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}function hn(t,i){return nn(t,on(i))}function on(t){const i=[];for(const s in t){let e=t[s];if(null!=e){e=M(e);for(let t=0;t<e.length;t++)i.push(rn(s,e[t]))}}return i.join("&")}function un(t){return"https:"==(t=tn(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||b(t.hostname,".localhost")}function ln(t,i,s="source"){return Tt(null!=t,"%s %s must be available",i,s),Tt(un(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,s,t),t}function cn(t){const i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function an(t){return et.cdnProxyRegex.test(tn(t).origin)}function dn(t){return!(t&&K.includes(tn(t).protocol))}function fn(t){const{hash:i,origin:s,pathname:e,search:n}=sn(t);return s+e+pn(n)+i}function pn(t){return function(t,i){if(!t||"?"==t)return"";const s=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),e=t.replace(s,"").replace(/^[?&]/,"");return e?"?"+e:""}(t)}function mn(t){if(!an(t=tn(t)))return t.href;const i=t.pathname.split("/"),s=i[1];Tt(Xe.has(s),"Unknown path prefix in url %s",t.href);const e=i[2],n="s"==e?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(e);return Tt(n.indexOf(".")>0,"Expected a . in origin %s",n),i.splice(1,"s"==e?3:2),n+i.join("/")+pn(t.search)+(t.hash||"")}function _n(t){return sn(mn(t)).origin}function An(t,i){return i=tn(i),new URL(t,i.href).toString()}function Pn(t,i){return gn(i),function(t,i,s,e){return nn(t,rn("__amp_source_origin",s),void 0)}(i,0,_n(t.location.href))}function gn(t){const i=J(sn(t).search);Tt(!(Ze in i),"Source origin is not allowed in %s",t)}var vn="CANCELLED",En="BLOCK_BY_CONSENT",Tn=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Tn;var Mn=function(t){return(Mn=function(t){const i=function(t){let i=0;return()=>{let t=Math.pow(1.5,i++);return t+=function(t,i){let s=t*(i=i||.3)*Math.random();return Math.random()>.5&&(s*=-1),s}(t),1e3*t}}();return t=>setTimeout(t,i())}())(t)};function In(t,i){try{let s;if(t)if(void 0!==t.message)t=u(t),s=!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=R(t.messageArray,(t=>null==t?void 0:t.tagName));i>-1&&(t.associatedElement=t.messageArray[i])}const e=i||t.associatedElement;if(e&&e.classList&&e.classList.add("i-amphtml-error"),self.console&&(k(t.message)||!t.expected)){const i=console.error||console.log;t.messageArray?i.apply(console,t.messageArray):e?i.call(console,t.message,e):i.call(console,t.message)}e&&e.dispatchCustomEventForTesting&&e.dispatchCustomEventForTesting("amp:error",t.message),bn.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Rn(){return new Error(vn)}function yn(t){return!!t&&("string"==typeof t?t.startsWith(En):"string"==typeof t.message&&t.message.startsWith(En))}function bn(t,i,s,e,n){!this||!this.document||n&&n.expected||Ke(this.document);let h=!1;try{h=function(t){if(!t.document)return!1;const i=t.document.querySelectorAll("script[src]");for(let t=0;t<i.length;t++)if(!an(i[t].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(h&&Math.random()>.01)return;const o=function(t,i,s,e,n,r){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,n);let h=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==vn)return;const o=!(self&&self.window),u=Math.random();if((function(t){return-1!=t.indexOf(Le)}(t)||"Script error."==t||o)&&(h=!0,u>.001))return;const l=k(t);if(l&&u>.1)return;const c=Object.create(null);c.v=ht().rtvVersion,c.noAmp=r?"1":"0",c.m=t.replace(x,""),c.a=l?"1":"0",c.ex=h?"1":"0",c.dw=o?"1":"0";let a="1p";if(a="esm",c.esm="1",c.rt="esm",c.ca=null!==(f=self.AMP_CONFIG)&&void 0!==f&&f.canary?"1":"0",c.bt=(null===(d=self.AMP_CONFIG)||void 0===d?void 0:d.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(c.or=self.location.ancestorOrigins[0]),self.viewerState&&(c.vs=self.viewerState),self.parent&&self.parent!=self&&(c.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),i=self.AMP.viewer.maybeGetMessagingOrigin();t&&(c.rvu=t),i&&(c.mso=i)}var d,f;const p=[],m=self[xe]||null;for(const t in m){const i=m[t];p.push(`${t}=${i?"1":"0"}`)}var _,A,P;return c.exps=p.join(","),n?(c.el=(null===(_=n.associatedElement)||void 0===_?void 0:_.tagName)||"u",n.args&&(c.args=JSON.stringify(n.args)),l||n.ignoreStack||!n.stack||(c.s=n.stack),n.message&&(n.message+=" _reported_")):(c.f=i||"",c.l=s||"",c.c=e||""),c.r=self.document?self.document.referrer:"",c.ae=Tn.join(","),c.fr=self.location.originalHash||self.location.hash,"production"===c.bt&&(c.pt="1"),P=t,(A=Tn).length>=25&&A.splice(0,A.length-25+1),A.push(P),c}(t,i,s,e,n,h);o&&Mn((()=>{try{return function(t,i){return i.pt&&Math.random()<.9?r():function(t,i){const s=Qi(t);if(!s.isSingleDoc())return Promise.resolve(!1);const e=s.getSingleDoc();if(!e.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=ps(e);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(s=i).m,"a":s.a,"s":s.s,"el":s.el,"ex":s.ex,"v":s.v,"pt":s.pt}),!0);var s})):Promise.resolve(!1)}(t,i).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?et.betaErrorReporting:et.errorReporting,!0),t.send(JSON.stringify(i))}}))}(this,o).catch((()=>{}))}catch(t){}}))}var wn="Resource",Vn=class{static forElement(t){return Et(Vn.forElementOptional(t))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(t,i){Et(i.contains(t)),Vn.forElementOptional(t)&&Vn.forElementOptional(t).updateOwner(i),t.__AMP__OWNER=i;const s=t.getElementsByClassName("i-amphtml-element");for(let t=0;t<s.length;t++){const i=s[t];Vn.forElementOptional(i)&&Vn.forElementOptional(i).updateOwner(void 0)}}constructor(t,i,s){i.__AMP__RESOURCE=this,this.Wt=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.Kt=s,this.Yt=i.hasAttribute("placeholder"),this.Jt=!1,this.Qt=void 0,this.Xt=i.isBuilt()?1:0,0==this.Xt&&i.isBuilding()&&this.build(),this.Zt=-1,this.ti=0,this.ii=null,this.si=null,this.ei=!1,this.ni=Kt(-1e4,-1e4,0,0),this.ri=null,this.hi=!1,this.oi=null,this.ui=null,this.li=void 0;const e=new h;this.ci=e.promise,this.ai=e.resolve,this.di=!1}getId(){return this.Wt}updateOwner(t){this.Qt=t}getOwner(){if(void 0===this.Qt){for(let t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Qt=t.__AMP__OWNER;break}void 0===this.Qt&&(this.Qt=null)}return this.Qt}hasOwner(){return!!this.getOwner()}getLayoutPriority(){return-1!=this.Zt?this.Zt:this.element.getLayoutPriority()}updateLayoutPriority(t){this.Zt=t}getState(){return this.Xt}isBuilt(){return this.element.isBuilt()}isBuilding(){return this.Jt}whenBuilt(){return this.element.signals().whenSignal("res-built")}build(){return this.Jt||!this.element.isUpgraded()?null:(this.Jt=!0,this.element.buildInternal().then((()=>{this.Jt=!1,this.Xt=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.Jt=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){yn(t)||vt().error(wn,"failed to build:",this.debugid,t)}changeSize(t,i,s){this.element.applySize(t,i,s),this.requestMeasure()}overflowCallback(t,i,s,e){t&&(this.li={height:i,width:s,margins:e}),this.element.overflowCallback(t,i,s,e)}resetPendingChangeSize(){this.li=void 0}getPendingChangeSize(){return this.li}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.Yt&&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.Xt=1);this.hi=!1;const t=this.ni;this.fi();const i=this.ni,s=(n=i,!((e=t).width==n.width&&e.height===n.height));var e,n;(1==this.Xt||t.top!=i.top||s)&&this.element.isUpgraded()&&(1==this.Xt?this.Xt=2:4!=this.Xt&&5!=this.Xt||!this.element.isRelayoutNeeded()||(this.Xt=2)),this.hasBeenMeasured()||(this.ri=i),this.element.updateLayoutBox(i,s)}ensureMeasured(){return this.hasBeenMeasured()?r():ms(this.hostWin).measure((()=>this.measure()))}fi(){const t=_s(this.element);this.ni=t.getLayoutRect(this.element);let i=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:s}=this.Kt.getAmpdoc(),{body:e}=s.document;for(let n=this.element;n&&n!=e;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==Ss(s,n).position){i=!0;break}}}this.ei=i,i&&(this.ni=Qt(this.ni,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){ws(this.element,!1),this.ni=Kt(this.ni.left,this.ni.top,0,0),this.ei=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){ws(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.hi}hasBeenMeasured(){return!!this.ri}requestMeasure(){this.hi=!0}getLayoutSize(){return function(t){const{height:i,width:s}=t;return{width:s,height:i}}(this.ni)}getLayoutBox(){if(!this.ei)return this.ni;const t=_s(this.element);return Qt(this.ni,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.ri||this.ni}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==Xs,i=this.getLayoutBox(),s=i.height>0&&i.width>0;return t||s}isFixed(){return this.ei}overlaps(t){return s=t,(i=this.getLayoutBox()).top<=s.bottom&&s.top<=i.bottom&&i.left<=s.right&&s.left<=i.right;var i,s}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(Et(!1!==t),!this.isLayoutPending()||!0===t)return r();const i=t,s=String(i);return this.oi&&this.oi[s]?this.oi[s].promise:this.isWithinViewportRatio(i)?r():(this.oi=this.oi||{},this.oi[s]=new h,this.oi[s].promise)}pi(){if(!this.oi)return;const t=this.getDistanceViewportRatio();for(const i in this.oi)this.isWithinViewportRatio(parseFloat(i),t)&&(this.oi[i].resolve(),delete this.oi[i])}getDistanceViewportRatio(){const t=_s(this.element).getRect(),i=this.getLayoutBox(),s=this.Kt.getScrollDirection();let e=1,n=0;if(t.right<i.left||t.left>i.right)return{distance:!1};if(t.bottom<i.top)n=i.top-t.bottom,-1==s&&(e=2);else{if(!(t.top>i.bottom))return{distance:!0};n=t.top-i.bottom,1==s&&(e=2)}return{distance:n,scrollPenalty:e,viewportHeight:t.height}}isWithinViewportRatio(t,i){if("boolean"==typeof t)return t;const{distance:s,scrollPenalty:e,viewportHeight:n}=i||this.getDistanceViewportRatio();return"boolean"==typeof s?s:s<n*t/e}renderOutsideViewport(){return this.pi(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}idleRenderOutsideViewport(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())}layoutScheduled(t){this.Xt=3,this.element.layoutScheduleTime=t}layoutCanceled(){this.Xt=this.hasBeenMeasured()?2:1}startLayout(){if(this.ui)return this.ui;if(4==this.Xt)return r();if(5==this.Xt)return Promise.reject(this.si);if(Et(0!=this.Xt),Et(this.isDisplayed()),3!=this.Xt){const t=vt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.Xt);return In(t,this.element),Promise.reject(t)}if(this.ti>0&&!this.element.isRelayoutNeeded())return this.Xt=4,r();this.ti++,this.Xt=3,this.ii=new AbortController;const{signal:t}=this.ii,i=new Promise(((i,s)=>{ms(this.hostWin).mutate((()=>{let e;try{e=this.element.layoutCallback(t)}catch(t){s(t)}Promise.resolve(e).then(i,s)})),t.onabort=()=>s(Rn())})).then((()=>this.mi(!0,t)),(i=>this.mi(!1,t,i)));return this.ui=i}mi(t,i,s){if(this.ii=null,i.aborted){const t=vt().createError("layoutComplete race");throw t.associatedElement=this.element,vt().expectedError(wn,t),Rn()}if(this.ai&&(this.ai(),this.ai=null),this.ui=null,this.Xt=t?4:5,this.si=s,!t)return Promise.reject(s)}isLayoutPending(){return 4!=this.Xt&&5!=this.Xt}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.ci}isInViewport(){return this.di&&this.pi(),this.di}setInViewport(t){this.di=t}unlayout(){0!=this.Xt&&1!=this.Xt&&2!=this.Xt&&(this.ii&&(this.ii.abort(),this.ii=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Xt=1,this.ti=0,this.ui=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)}},Sn="ready-scan",xn="scheduler",On="250% 31.25%";function Cn(t){return Ii(t,xn,class{constructor(t){this._i=t;const{win:i}=t;this.Ai=new i.IntersectionObserver((t=>this.gi(t)),{root:jt(i)?i.document:null,rootMargin:On}),this.Pi=new Map,this.vi=new Map,this.Ei=[],this.Ti=!1,t.whenReady().then((()=>this.yi())),this.Ii=t.onVisibilityChanged((()=>this.Mi()))}dispose(){this.Ai.disconnect(),this.vi.clear(),this.Ii&&(this.Ii(),this.Ii=null)}scheduleAsap(t){this.vi.set(t,{asap:!0,isIntersecting:!1}),this.Ri(t)}schedule(t){this.vi.has(t)||(t.deferredMount()?(this.vi.set(t,{asap:!1,isIntersecting:!1}),this.Ai.observe(t),this.Pi.size>0&&this.Pi.forEach(((i,s)=>{Gt(s,t)&&i.observe(t)}))):this.vi.set(t,{asap:!1,isIntersecting:!0}),this.Ri(t))}unschedule(t){this.vi.has(t)&&(this.vi.delete(t),this.Ai.unobserve(t),this.Pi.size>0&&this.Pi.forEach((i=>{i.unobserve(t)})),this.Ei&&(y(this.Ei,t),this.yi()))}setContainer(t,i){if(this.Pi.has(t))return;const{win:s}=this._i,e=new s.IntersectionObserver((t=>this.gi(t)),{root:i||t,rootMargin:On});this.Pi.set(t,e),this.vi.forEach((({asap:i},s)=>{!i&&Gt(t,s)&&e.observe(s)}))}removeContainer(t){const i=this.Pi.get(t);i&&(i.disconnect(),this.Pi.delete(t))}wi(){if(this._i.isReady()&&!this.Ti){this.Ti=!0;const{win:t}=this._i;t.setTimeout((()=>{this._i.signals().signal(Sn)}),50)}}Mi(){const t=this._i.getVisibilityState();t!=Ps.VISIBLE&&t!=Ps.HIDDEN&&t!=Ps.PRERENDER&&t!=Ps.PREVIEW||this.vi.forEach(((t,i)=>this.bi(i)))}Ri(t){const i=this.Ei;i?(i.includes(t)||i.push(t),this.yi()):this.bi(t)}yi(){const t=this._i.isReady(),i=this.Ei;if(i)for(let s=0;s<i.length;s++){const e=i[s];(t||Bt(e,this._i.getRootNode()))&&(i.splice(s--,1),this.bi(e))}t&&(this.Ei=null,this.wi())}gi(t){for(let i=0;i<t.length;i++){const{isIntersecting:s,target:e}=t[i],n=e,r=this.vi.get(n);if(!r)continue;const h=s||r.isIntersecting;h!==r.isIntersecting&&this.vi.set(n,{asap:r.asap,isIntersecting:h}),h&&this.bi(n)}}bi(t){const i=this.Ei,s=!(i&&i.includes(t)),{asap:e,isIntersecting:n}=this.vi.get(t)||{asap:!1,isIntersecting:!1},r=this._i.getVisibilityState();if(!s||!e&&!n||!(r==Ps.VISIBLE||r==Ps.HIDDEN||r==Ps.PRERENDER&&t.prerenderAllowed()||r==Ps.PREVIEW&&t.previewAllowed()))return;this.unschedule(t);const{win:h}=this._i;(e||t.getBuildPriority()<=0?h.setTimeout:h.requestIdleCallback||h.setTimeout)((()=>t.mountInternal()))}}),yi(t,xn)}var kn=class{constructor(){this.Vi=[]}peek(){const t=this.length;return t?this.Vi[t-1].item:null}enqueue(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");const s=this.Si(i);this.Vi.splice(s,0,{item:t,priority:i})}Si(t){let i=-1,s=0,e=this.length;for(;s<=e&&(i=Math.floor((s+e)/2),i!==this.length);)if(this.Vi[i].priority<t)s=i+1;else{if(!(i>0&&this.Vi[i-1].priority>=t))break;e=i-1}return i}forEach(t){let i=this.length;for(;i--;)t(this.Vi[i].item)}dequeue(){const t=this.Vi.pop();return t?t.item:null}get length(){return this.Vi.length}},Nn=/nochunking=1/.test(self.location.hash),Dn=r();function Ln(t){return Ii(t,"chunk",jn),yi(t,"chunk")}function Un(t,i,s){if(Nn)return void Dn.then(i);const e=Ln(t.documentElement||t);e.runForStartup(i),s&&e.runForStartup((()=>{e.xi=!0}))}function $n(t,i,s){Nn?Dn.then(i):Ln(t).run(i,s)}var Fn="not_run",Bn=class{constructor(t){this.state=Fn,this.Oi=t}Ci(t){if("run"!=this.state){this.state="run";try{this.Oi(t)}catch(t){throw this.ki(t),t}}}Ni(){return this.Oi.displayName||this.Oi.name}ki(t){}Di(){return!1}Li(){return!1}},Hn=class extends Bn{constructor(t,i,s){super(t),this.Ui=s}ki(t){Ke(self.document)}Di(){return this.$i()}Li(){return this.Ui.Fi}$i(){return this.Ui.ampdoc.isVisible()}},jn=class{constructor(t){var i;this.ampdoc=t,this.i=t.win,this.Bi=new kn,this.Hi=this.ji.bind(this),this.zi=0,this.Gi=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.qi=!1,this.xi=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==Fe(t)&&this.ji(null)})),this.Fi=!1,(i=t,wi(i,"viewer")).then((()=>{this.Fi=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.Wi()}))}run(t,i){const s=new Bn(t);this.Ki(s,i)}runForStartup(t){const i=new Hn(t,this.i,this);this.Ki(i,Number.POSITIVE_INFINITY)}Ki(t,i){this.Bi.enqueue(t,i),this.Wi()}Yi(t){let i=this.Bi.peek();for(;i&&i.state!==Fn;)this.Bi.dequeue(),i=this.Bi.peek();return i&&t&&this.Bi.dequeue(),i}ji(t){const i=this.Yi(!0);if(!i)return this.qi=!1,this.zi=0,!1;let s;try{s=Date.now(),i.Ci(t)}finally{Dn.then().then().then().then().then().then().then().then().then((()=>{this.qi=!1,this.zi+=Date.now()-s,this.Wi()}))}return!0}Ji(t){if(this.xi&&(this.Gi?this.i.navigator.scheduling.isInputPending():this.zi>5))return this.zi=0,void this.Qi();Dn.then((()=>{this.Hi(t)}))}Wi(){if(this.qi)return;const t=this.Yi();return t?t.Di()?(this.qi=!0,void this.Ji(null)):void(t.Li()&&this.i.requestIdleCallback?function(t,i,s,e){const n=Date.now();t.requestIdleCallback((function i(s){if(s.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||s.didTimeout?e(s):t.requestIdleCallback(i,{timeout:r})}else e(s)}),{timeout:2e3})}(this.i,0,0,this.Hi):this.Qi()):void 0}Qi(){this.i.postMessage("amp-macro-task","*")}},zn="activate",Gn=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 ms(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==Gs}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"==ht(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(t,i){this.element.setReadyStateInternal(t,i)}mountCallback(t){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return r()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(t){return He(t)}registerAction(t,i,s=2){qn(this),this.actionMap_[t]={handler:i,minTrust:s}}registerDefaultAction(t,i="activate",s=2){Et(!this.defaultActionAlias_),this.registerAction(i,t,s),this.defaultActionAlias_=i}executeAction(t,i){let{method:s}=t;s===zn&&(s=this.defaultActionAlias_||s),qn(this);const e=this.actionMap_[s],{tagName:n}=this.element;Tt(e,`Method not found: ${s} in ${n}`);const{handler:r,minTrust:h}=e;if(t.satisfiesTrust(h))return r(t)}forwardEvents(t,i){const s=(T(t)?t:[t]).map((t=>$e(i,t,(i=>{zt(this.element,t,Fe(i)||{})}))));return()=>s.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 _s(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){es(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return es(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(t){es(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)}attemptChangeHeight(t){return es(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)}attemptChangeSize(t,i,s){return es(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,s)}measureElement(t){return es(this.getAmpDoc()).measureElement(t)}mutateElement(t,i){return this.measureMutateElement(null,t,i)}measureMutateElement(t,i,s){return es(this.getAmpDoc()).measureMutateElement(s||this.element,t,i)}mutateElementSkipRemeasure(t){return es(this.getAmpDoc()).mutateElement(this.element,t,!0)}collapsedCallback(t){}expand(){es(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(t){}onLayoutMeasure(){}user(){return Pt(this.element)}getApi(){return this}};function qn(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var Wn,Kn=class extends Gn{},Yn=Date.now(),Qn={bubbles:!1},Jn=()=>!0,Xn=[],Zn=new Set;function tr(t,i){const s=function(t,i){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;const s=t.HTMLElement;return t.__AMP_BASE_CE_CLASS=class extends s{constructor(){super(),this.createdCallback()}createdCallback(){this.Xi=!1,this.Zi=!1,this.ts=null,this.ss=!1,this.es=null,this.ns=null,this.rs="upgrading",this.everAttached=!1,this._i=null,this.Kt=null,this.hs=Gs,this.ti=0,this.os=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.us=void 0,this.layoutScheduleTime=void 0;const i=this;let s=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.ls=s===Kn?null:s||null,this.ls||Xn.push(this),this.cs=null,this.ds=1,this.fs=0,this.ps=void 0,this._s=void 0,this.Vt=new vs,this.ls&&this.Vt.signal(fe);const e=rs(t);this.As=e&&e.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.rs}signals(){return this.Vt}getAmpDoc(){return Et(this._i),this._i}getResources(){return Et(this.Kt),this.Kt}isUpgraded(){return 2==this.ds}whenUpgraded(){return this.Vt.whenSignal(pe)}upgrade(t){this._s||1==this.ds&&(this.ls=t,this.Vt.signal(fe),this.everAttached&&this.Ps())}markUnresolved(){this.ls||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.fs}vs(i,s){this.cs=i,this.fs=t.Date.now()-s,this.ds=2,this.setReadyStateInternal(oi),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Es(),this.dispatchCustomEventForTesting(ce),this.R1()||this.getResources().upgraded(this),this.Vt.signal(pe)}Es(){this.hs!=Gs&&this.cs&&!this.cs.isLayoutSupported(this.hs)&&(Tt(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."),Tt(!1,`Layout not supported: ${this.hs}`))}getBuildPriority(){return this.ls?this.ls.getBuildPriority(this):3}getLayoutPriority(){return this.cs?this.cs.getLayoutPriority():3}getDefaultActionAlias(){return Et(this.isUpgraded()),this.cs.getDefaultActionAlias()}isBuilding(){return!!this.ts}isBuilt(){return this.Xi}whenBuilt(){return this.Vt.whenSignal(me)}buildInternal(){if(sr(this),Et(this.ls),this.ts)return this.ts;this.setReadyStateInternal(oi);const t=this.Ts();this.ys();const i=t.then((()=>{const t=this.Is(),i=t?null:this.Ms();if(t||i)return(s=this,ji(s,"consentPolicyManager","amp-consent")).then((s=>!s||(t?s.whenPolicyUnblock(t):s.whenPurposesUnblock(i)))).then((t=>{if(!t)throw new Error(En)}));var s})).then((()=>Et(this.cs).buildCallback()));return this.ts=i.then((()=>{if(this.Xi=!0,this.classList.add("i-amphtml-built"),this.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),this.Vt.signal(me),this.R1()?this.setReadyStateInternal(this.rs!=oi?this.rs:ui):(this.setReadyStateInternal(li),this.preconnect(!1)),this.Zi&&this.Rs(),this.ps&&cs(Mt(this)).delay(this.ws.bind(this),1),!this.getPlaceholder()){const t=this.createPlaceholder();t&&this.appendChild(t)}}),(t=>{throw this.Vt.rejectSignal(me,t),this.R1()&&this.setReadyStateInternal(ai,t),yn(t)||In(t,this),t}))}build(){return this.ts?this.ts:this.Vt.whenSignal(fe).then((()=>(this.R1()&&Cn(this.getAmpDoc()).scheduleAsap(this),this.whenBuilt())))}mountInternal(){if(this.es)return this.es;this.ns=this.ns||new AbortController;const{signal:t}=this.ns;return this.es=this.buildInternal().then((()=>{if(Et(this.R1()),t.aborted)return;this.setReadyStateInternal(this.rs!=ui?this.rs:this.ls.usesLoading(this)?li:ui),this.ss=!0;const i=this.cs.mountCallback(t);return!!i&&i.then(Jn)})).then((i=>{if(this.ns=null,t.aborted)throw Rn();this.Vt.signal(_e),this.ls.usesLoading(this)&&!i||this.setReadyStateInternal(ci)})).catch((t=>{var i;throw this.ns=null,(i=t)&&("string"==typeof i?i.startsWith(vn):"string"==typeof i.message&&i.message.startsWith(vn))?this.es=null:(this.Vt.rejectSignal(_e,t),this.setReadyStateInternal(ai,t)),t}))}mount(){if(this.es)return this.es;this.ns=this.ns||new AbortController;const{signal:t}=this.ns;return this.Vt.whenSignal(fe).then((()=>{if(!this.R1())return this.whenBuilt();if(t.aborted)throw Rn();return Cn(this.getAmpDoc()).scheduleAsap(this),this.whenMounted()}))}unmount(){this.Zi&&this.pause(),this.R1()?(this.ns&&(this.ns.abort(),this.ns=null),Cn(this.getAmpDoc()).unschedule(this),this.ss&&this.cs.unmountCallback(),this.ss=!1,this.es=null,this.bs(),this.Zi&&this.Ps(!0)):this.Vs()}whenMounted(){return this.Vt.whenSignal(_e)}whenLoaded(){return this.Vt.whenSignal(ge)}ensureLoaded(t){return this.mount().then((()=>{if(this.R1())return this.ls.usesLoading(this)&&this.cs.ensureLoaded(),this.whenLoaded();const i=this.Ss();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){Cn(this.getAmpDoc()).setContainer(this,t)}removeAsContainerInternal(){Cn(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(t,i){if(t!==this.rs&&(this.rs=t,this.R1()))switch(t){case li:return this.Vt.signal(Ae),this.Vt.reset(ve),this.Vt.reset(ge),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(ae);case ci:return this.Vt.signal(Ae),this.Vt.signal(ge),this.Vt.reset(ve),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),zt(this,"load",null,Qn),void this.dispatchCustomEventForTesting(de);case ai:return this.Vt.rejectSignal(ge,i),this.toggleLoading(!1),void zt(this,"error",i,Qn)}}preconnect(t){Et(this.isUpgraded()),t?this.cs.preconnectCallback(t):Un(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.cs.preconnectCallback(t)}))}R1(){return!!this.ls&&this.ls.R1()}deferredMount(){return!!this.ls&&this.ls.deferredMount(this)}isAlwaysFixed(){return!!this.cs&&this.cs.isAlwaysFixed()}updateLayoutBox(t,i=!1){this.isBuilt()&&this.onMeasure(i)}onMeasure(){Et(this.isBuilt());try{this.cs.onLayoutMeasure()}catch(t){In(t,this)}}ys(){var t;return void 0!==this.sizerElement||this.hs!==Ks&&this.hs!==Zs||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null}xs(t){if(this.hs!==Ks)if(this.hs!==Zs);else{const i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else ys(t,"paddingTop","0")}Os(){const t=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),i=!!this.gs,s=this.ownerDocument.defaultView;t!=i&&s&&(t?(this.gs=new class{constructor(t,i){this.i=t,this.N=i,this.Cs={},this.ks=null}start(){this.ks=this.Cs,this.Cs={}}resolveMatchQuery(t){return"1"===this.Ns(t,Ee,"1")}resolveListQuery(t){return this.Ns(t,Te,"")}complete(){for(const t in this.ks)t in this.Cs||Me(this.ks[t],this.N,!1);this.ks=null}dispose(){for(const t in this.Cs)Me(this.Cs[t],this.N,!1);this.Cs={}}Ns(t,i,s){if(!t.trim())return s;let e=this.Cs[t];return e||(U(this.ks),e=this.ks[t]),e||(e=i(this.i,t),Me(e,this.N,!0)),this.Cs[t]=e,function(t){for(let i=0;i<t.length;i++){const{query:s,value:e}=t[i];if(!s||s.matches)return e}return""}(e)}}(s,(()=>this.Ds())),this.Ds()):this.Ls())}Ls(){this.gs&&(this.gs.dispose(),this.gs=null)}Ds(){const t=this.gs;if(!t)return;t.start();const i=this.getAttribute("media")||null,s=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!s);const e=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");e&&ys(this,"width",t.resolveListQuery(e));const n=this.hs===Ks?this.getAttribute("heights"):null;if(n){const i=this.ys();i&&ys(i,"paddingTop",t.resolveListQuery(n))}t.complete(),this.Ss().requestMeasure()}applySize(t,i,s){const e=this.ys();e&&(this.sizerElement=null,this.xs(e),this.Us((()=>{e&&Ut(e)}))),void 0!==t&&ys(this,"height",t,"px"),void 0!==i&&ys(this,"width",i,"px"),s&&(null!=s.top&&ys(this,"marginTop",s.top,"px"),null!=s.right&&ys(this,"marginRight",s.right,"px"),null!=s.bottom&&ys(this,"marginBottom",s.bottom,"px"),null!=s.left&&ys(this,"marginLeft",s.left,"px")),this.$s()&&this.Fs(),zt(this,"amp:size-changed")}connectedCallback(){if(function(){if(void 0===Wn){const t=self.document.createElement("template");Wn="content"in t}return Wn}()||void 0!==this._s||(this._s=!!St(this,"template")),!this._s&&!this.Zi&&$t(this)){if(this.Zi=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this._i){const t=Mt(this),s=Qi(t).getAmpDoc(this);this._i=s,i(s,this,this.ls)}if(this.Kt||(this.Kt=us(this._i)),this.getResources().add(this),this.everAttached){const t=this.reconstructWhenReparented();t&&this.bs(),this.isUpgraded()&&(t&&!this.R1()&&this.getResources().upgraded(this),this.Rs(),this.dispatchCustomEventForTesting(ce)),this.ls&&this.R1()&&this.Ps()}else{this.everAttached=!0;try{this.hs=function(t){const i=t.getAttribute("i-amphtml-layout");if(i){const e=ie(i);var s;return U(e),e!=Ks&&e!=Zs||!t.firstElementChild?e==Gs&&ws(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(s=t.sizerElement)||void 0===s||s.setAttribute("slot","i-amphtml-svc")),e}const{height:e,layout:n,width:r}=we(t);if(t.classList.add(se(n)),ee(n)&&t.classList.add("i-amphtml-layout-size-defined"),n==Gs)ws(t,!1);else if(n==qs)bs(t,{width:F(r),height:F(e)});else if(n==Ws)ys(t,"height",F(e));else if(n==Ks){const i=t.ownerDocument.createElement("i-amphtml-sizer");i.setAttribute("slot","i-amphtml-svc");const s=he(e),n=he(r);B(s),B(n),bs(i,{paddingTop:s/n*100+"%"}),t.insertBefore(i,t.firstChild),t.sizerElement=i}else if(n==Zs){const i=Ie(t)(ye),s=i.firstElementChild;$(s),s.setAttribute("src",`data:image/svg+xml;charset=utf-8,<svg height="${e}" width="${r}" xmlns="http://www.w3.org/2000/svg" version="1.1"/>`),t.insertBefore(i,t.firstChild),t.sizerElement=i}else n==Qs||n==Ys||(n==Js?(r&&ys(t,"width",r),e&&ys(t,"height",e)):n==Xs&&(t.classList.add("i-amphtml-layout-awaiting-size"),r&&ys(t,"width",r),ys(t,"height",0)));return t.setAttribute("i-amphtml-layout",n),n}(this),this.Os()}catch(t){In(t,this)}this.ls?this.Ps():(Zn.has("*")||Zn.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}}$s(){return this.classList.contains("i-amphtml-layout-awaiting-size")}Fs(){this.classList.remove("i-amphtml-layout-awaiting-size")}Ps(t){if(this.R1()){if(!this.es)if(Cn(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.ts)this.setReadyStateInternal(this.ls&&this.ls.usesLoading(this)?li:ui);else if(this.setReadyStateInternal(oi),!t){const t=this.ls.getPreconnects(this);if(t&&t.length>0){const i=this.getAmpDoc();Un(i,(()=>{const{win:s}=i;if(!s)return;const e=os(s);t.forEach((t=>e.url(i,t,!1)))}))}}}else this.Bs()}Bs(){if(this._s)return;if(1!=this.ds)return;const i=new(Et(this.ls))(this);this.ds=4;const s=t.Date.now(),e=i.upgradeCallback();if(e){if("function"==typeof e.then)return e.then((t=>{this.vs(t||i,s)})).catch((t=>{this.ds=3,a(t)}));this.vs(e,s)}else this.vs(i,s)}disconnectedCallback(){this.disconnect(!1)}Rs(){this.Xi&&this.cs.attachedCallback()}disconnect(t){!this._s&&this.Zi&&(!t&&$t(this)||(t&&this.classList.remove("i-amphtml-element"),this.Zi=!1,this.getResources().remove(this),this.cs&&this.cs.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.Ls()))}dispatchCustomEventForTesting(t,i){}prerenderAllowed(){return!this.hasAttribute("noprerender")&&!!this.ls&&this.ls.prerenderAllowed(this)}previewAllowed(){return!!this.ls&&this.ls.previewAllowed(this)}isBuildRenderBlocking(){return!!this.cs&&this.cs.isBuildRenderBlocking()}createPlaceholder(){return this.cs?this.cs.createPlaceholderCallback():null}createLoaderLogo(){return this.ls?this.ls.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return!!this.cs&&this.cs.renderOutsideViewport()}idleRenderOutsideViewport(){return!!this.cs&&this.cs.idleRenderOutsideViewport()}getLayoutBox(){return this.Ss().getLayoutBox()}getLayoutSize(){return this.Ss().getLayoutSize()}getOwner(){return this.Ss().getOwner()}getIntersectionChangeEntry(){const t=this.cs?this.cs.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),s=_s(this.getAmpDoc()).getRect();return function(t,i,s){const e=function(t){let i=-1/0,s=1/0,e=-1/0,n=1/0;for(let t=0;t<arguments.length;t++){const r=arguments[t];if(r&&(i=Math.max(i,r.left),s=Math.min(s,r.left+r.width),e=Math.max(e,r.top),n=Math.min(n,r.top+r.height),s<i||n<e))return null}return s==1/0?null:Kt(i,e,s-i,n-e)}(t,i,s)||Kt(0,0,0,0);return function(t,i,s,e){let n=t,r=i;return i&&(r=r,s=Qt(s,-i.left,-i.top),n=Qt(n,-i.left,-i.top),r=Qt(r,-i.left,-i.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-Yn,rootBounds:r,boundingClientRect:n,intersectionRect:s,intersectionRatio:e}}(t,s,e,function(t,i){const s=t.width*t.height,e=i.width*i.height;return 0===e?0:s/e}(e,t))}(t,i&&i.getLayoutBox(),s)}Ss(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.Ss().getId()}isRelayoutNeeded(){return!!this.cs&&this.cs.isRelayoutNeeded()}getImpl(t=!0){return(t?this.build():this.Ts()).then((()=>this.cs))}Ts(){return this.Vt.whenSignal(fe).then((()=>(this.Bs(),this.whenUpgraded())))}getApi(){return this.getImpl().then((t=>t.getApi()))}getLayout(){return this.hs}layoutCallback(t){if(sr(this),Et(this.isBuilt()),t.aborted)return Promise.reject(Rn());this.dispatchCustomEventForTesting(ae);const i=0==this.ti;this.Vt.reset(ve),i&&this.Vt.signal(Ae),this.toggleLoading(!0);const s=o((()=>this.cs.layoutCallback()));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),s.then((()=>{if(t.aborted)throw Rn();i&&this.Vt.signal(ge),this.setReadyStateInternal(ci),this.ti++,this.toggleLoading(!1),this.os||(this.cs.firstLayoutCompleted(),this.os=!0,this.dispatchCustomEventForTesting(de))}),(s=>{if(t.aborted)throw Rn();throw i&&this.Vt.rejectSignal(ge,s),this.setReadyStateInternal(ai,s),this.ti++,this.toggleLoading(!1),s}))}pause(){this.isBuilt()&&(this.cs.pauseCallback(),!this.R1()&&this.cs.unlayoutOnPause()&&this.Vs())}resume(){this.isBuilt()&&this.cs.resumeCallback()}unlayoutCallback(){if(sr(this),!this.isBuilt())return!1;this.Vt.signal(ve);const t=this.cs.unlayoutCallback();return t&&this.bs(),this.dispatchCustomEventForTesting("amp:unload"),t}Vs(){this.Ss().unlayout(),this.Zi&&this.Kt&&this.Kt.schedulePass()}bs(){this.ti=0,this.os=!1,this.Vt.reset(_e),this.Vt.reset(Pe),this.Vt.reset(Ae),this.Vt.reset(ge),this.Vt.reset("ini-load")}reconstructWhenReparented(){return!!this.cs&&this.cs.reconstructWhenReparented()}collapse(){this.cs&&this.cs.collapse()}collapsedCallback(t){this.cs&&this.cs.collapsedCallback(t)}expand(){this.cs&&this.cs.expand()}mutatedAttributesCallback(t){this.cs?this.cs.mutatedAttributesCallback(t):this.R1()&&Cn(this).scheduleAsap(this)}enqueAction(t){sr(this),this.isBuilt()?this.Hs(t,!1):(void 0===this.ps&&(this.ps=[]),Et(this.ps).push(t),this.build())}ws(){if(!this.ps)return;const t=Et(this.ps);this.ps=null,t.forEach((t=>{this.Hs(t,!0)}))}Hs(t,i){try{this.cs.executeAction(t,i)}catch(i){a("Action execution failed:",i,t.node.tagName,t.method)}}Is(){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?Et(this.cs).getConsentPolicy():t}Ms(){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 xt(this,(t=>t.hasAttribute("placeholder")&&!ir(t)))}togglePlaceholder(t){if(sr(this),t){const t=this.getPlaceholder();t&&t.classList.remove("amp-hidden")}else{const t=(this,yt("placeholder"),"> [placeholder]",this.querySelectorAll(It("> [placeholder]",":scope")));for(let i=0;i<t.length;i++)ir(t[i])||t[i].classList.add("amp-hidden")}}getFallback(){return Ot(this,"fallback")}toggleFallback(t){sr(this);const i=this.Ss().getState();if((this.R1()||!t||0!=i&&1!=i&&2!=i)&&(this.classList.toggle("amp-notsupported",t),1==t)){const t=this.getFallback();t&&(s=this.getAmpDoc(),yi(s,"owners")).scheduleLayout(this,t)}var s}renderStarted(){this.Vt.signal(Pe),this.togglePlaceholder(!1),this.toggleLoading(!1)}js(t){const i=this.ti>0||this.Vt.get(Pe);return!(this.hs==Gs||this.hasAttribute("noloading")||i&&!t||!function(t){const i=t.tagName.toUpperCase();return"AMP-AD"===(s=i)||"AMP-ANIM"===s||"AMP-EMBED"===s||"AMP-FACEBOOK"===s||"AMP-FACEBOOK-COMMENTS"===s||"AMP-FACEBOOK-PAGE"===s||"AMP-GOOGLE-DOCUMENT-EMBED"===s||"AMP-IFRAME"===s||"AMP-IMG"===s||"AMP-INSTAGRAM"===s||"AMP-LIST"===s||"AMP-PINTEREST"===s||"AMP-PLAYBUZZ"===s||"AMP-RENDER"===s||"AMP-TIKTOK"===s||"AMP-TWITTER"===s||function(t){return"AMP-VIDEO"!=t&&te.test(t)}(i);var s}(this)||Ct(this))}toggleLoading(t,i=!1){if(!this.ownerDocument||!this.ownerDocument.defaultView)return;const s=bi(this.getAmpDoc(),"loadingIndicator");s&&((t=t&&this.js(i))?s.track(this):s.untrack(this))}getOverflowElement(){return void 0===this.us&&(this.us=Ot(this,"overflow"),this.us&&(this.us.hasAttribute("tabindex")||this.us.setAttribute("tabindex","0"),this.us.hasAttribute("role")||this.us.setAttribute("role","button"))),this.us}overflowCallback(t,i,s){this.getOverflowElement(),this.us?(this.us.classList.toggle("amp-visible",t),this.us.onclick=t?()=>{const t=es(this.getAmpDoc());t.forceChangeSize(this,i,s),t.mutateElement(this,(()=>{this.overflowCallback(!1,i,s)}))}:null):t&&this.warnOnMissingOverflow}Us(t,i,s=!1){this._i?es(this.getAmpDoc()).mutateElement(i||this,t,s):t()}},t.__AMP_BASE_CE_CLASS}(t,i);class e extends s{adoptedCallback(){Object.getPrototypeOf(this)!==n&&Object.setPrototypeOf(this,n)}}const n=e.prototype;return e}function ir(t){return"placeholder"in t}function sr(t){Et(!t._s)}function er(t){Zn.add(t||"*");for(var i,s=n(Xn,!0);!(i=s()).done;){const s=i.value;null!=t&&s.tagName.toLowerCase()!==t||s.markUnresolved()}}var nr=new WeakMap;function rr(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function hr(t,i,s){const e=rr(t);if(e[i]){if(e[i]!=s){Tt(e[i]==Kn,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),e[i]=s;for(let e=0;e<Xn.length;e++){const n=Xn[e];n.tagName.toLowerCase()==i&&n.ownerDocument.defaultView==t&&(or(n,s),Xn.splice(e--,1))}}}else ar(t,i,s)}function or(t,i){try{t.upgrade(i)}catch(i){In(i,t)}}function ur(t){(function(t){if(!t)return[];const i=t.querySelectorAll("script[custom-element],script[custom-template]"),s=[];for(let t=0;t<i.length;t++){const e=i[t],n=e.getAttribute("custom-element")||e.getAttribute("custom-template"),r=gi(e.src);n&&r&&s.push({script:e,extensionId:n,extensionVersion:r.extensionVersion})}return s})(t.getHeadNode()).forEach((({extensionId:i,extensionVersion:s,script:e})=>{t.declareExtension(i,s),e.addEventListener("error",(()=>er(i))),lr(t.win,i)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function lr(t,i){rr(t)[i]||ar(t,i,Kn)}function cr(t,i,s){ar(i,s,rr(t)[s]||Kn)}function ar(t,i,s){rr(t)[i]=s;const e=tr(t,dr);t.customElements.define(i,e)}function dr(t,i,s){nr.has(t)||(nr.set(t,!0),ur(t));const e=i.localName;s||t.declaresExtension(e)||is(t.win).installExtensionForDoc(t,e,"0.1")}var fr="amp-img",pr=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],mr=class extends Gn{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 s=t.getAttribute("srcset");if(s){const t=/\S+/.exec(s);if(t)return[t[0]]}return null}constructor(t){super(t),this.zs=!0,this.Gs=null,this.qs=null,this.Ws=null,this.Ks=0}mutatedAttributesCallback(t){if(this.Gs){const i=pr.filter((i=>void 0!==t[i]));t.src&&!t.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),i.push("srcset"),this.user().warn(fr,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),ue(i,this.element,this.Gs,!0),this.propagateDataset(this.Gs),mr.R1()&&!this.Gs.complete&&this.setReadyState(li)}}preconnectCallback(t){const i=this.element.getAttribute("src");if(i)os(this.win).url(this.getAmpDoc(),i,t);else{const i=this.element.getAttribute("srcset");if(!i)return;const s=/\S+/.exec(i);s&&os(this.win).url(this.getAmpDoc(),s[0],t)}}isLayoutSupported(t){return ee(t)}Ys(){if(this.Gs)return this.Gs;this.zs=!this.element.hasAttribute("fallback");const t=qt(this.element);var i,s;return t&&(this.Gs=bt(this.element,"> img:not([placeholder])")),this.Gs=this.Gs||new Image,this.Gs.setAttribute("decoding","async"),this.element.id&&this.Gs.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(fr,"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 <img> element.")),this.Js(!0),ue(pr,this.element,this.Gs),this.propagateDataset(this.Gs),oe(this.Gs,!0),i=this.element,s=this.Gs,i.hasAttribute("object-fit")&&ys(s,"object-fit",i.getAttribute("object-fit")),i.hasAttribute("object-position")&&ys(s,"object-position",i.getAttribute("object-position")),t||this.element.appendChild(this.Gs),this.Gs}Js(t){if(!this.Gs)return;if(this.element.hasAttribute("i-amphtml-ssr"))return;if(this.element.hasAttribute("sizes")||this.Gs.hasAttribute("sizes"))return;const i=this.element.getAttribute("srcset");if(!i||/[0-9]+x(?:,|$)/.test(i))return;const{width:s}=this.element.getLayoutSize();if(!this.Qs(s))return;const e=this.getViewport().getWidth(),n=`(max-width: ${e}px) ${s}px, `;let r=s+"px";if(this.getLayout()!==qs){const t=Math.round(100*s/e);r=Math.max(t,100)+"vw"}const h=n+r;t?this.Gs.setAttribute("sizes",h):this.mutateElement((()=>{this.Gs.setAttribute("sizes",h)})),this.Ks=s}Qs(t){return!this.Gs.hasAttribute("sizes")||t>this.Ks}reconstructWhenReparented(){return!1}mountCallback(){const t=!!this.Gs,i=this.Ys();t||($e(i,"load",(()=>{this.setReadyState(ci),this.firstLayoutCompleted(),this.Xs()})),$e(i,"error",(t=>{this.setReadyState(ai,t),this.Zs()}))),i.complete?(this.setReadyState(ci),this.firstLayoutCompleted(),this.Xs()):this.setReadyState(li)}unmountCallback(){const t=this.Gs;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ut(t),this.Gs=null)}ensureLoaded(){this.Gs.loading="eager"}layoutCallback(){this.Ys();const t=this.Gs;this.qs=$e(t,"load",(()=>this.Xs())),this.Ws=$e(t,"error",(()=>this.Zs()));const{width:i}=this.element.getLayoutSize();return i<=0?r():this.loadPromise(t)}unlayoutCallback(){if(mr.R1())return;this.Ws&&(this.Ws(),this.Ws=null),this.qs&&(this.qs(),this.qs=null);const t=this.Gs;return t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Ut(t),this.Gs=null),!0}firstLayoutCompleted(){const t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Rs(t,{"opacity":0}):this.togglePlaceholder(!1)}Xs(){!this.zs&&this.Gs.classList.contains("i-amphtml-ghost")&&(this.Gs.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))}Zs(){this.zs&&(this.Gs.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.zs=!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])}},_r=class extends Gn{static prerenderAllowed(){return!0}isLayoutSupported(t){return t==Ys||ee(t)}buildCallback(){!function(t){if(qt(t))return;const i=function(t){var i;return ie(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||we(t).layout}(t);if(i==Ys)return;const s=t.ownerDocument.createElement("div");oe(s),function(t){return function(t,i){const s=[];for(let i=t.firstChild;i;i=i.nextSibling)!Ct(i)&&s.push(i);return s}(t)}(t).forEach((t=>{s.appendChild(t)})),t.appendChild(s)}(this.element)}};function Ar(t,i,s=!1){const e=new(Ns.getImage(t));return s&&(e.referrerPolicy="no-referrer"),e.src=i,e}var Pr="amp-pixel",gr=class extends Gn{constructor(t){super(t),this.te=null}isLayoutSupported(t){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true"),this.ie=this.element.getAttribute("referrerpolicy"),this.ie&&Tt("no-referrer"==this.ie,`${Pr}: invalid "referrerpolicy" value "${this.ie}". Only "no-referrer" is supported`),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.se.bind(this))}se(){if(this.te)return vt().error(Pr,"duplicate pixel"),this.te;this.te=cs(this.win).promise(1).then((()=>{const t=this.element.getAttribute("src");if(t)return as(this.element).expandUrlAsync(this.ee(t)).then((t=>{if(this.win)return function(t,i,s){return s&&"no-referrer"!==s&&Pt().error("pixel","Unsupported referrerPolicy: %s",s),"no-referrer"===s?function(t,i){if("referrerPolicy"in Image.prototype)return Ar(t,i,!0);{const e=(s={"src":"about:blank","style":"display:none"},function(t,i){for(const s in i)t.setAttribute(s,i[s]);return t}(t.document.createElement("iframe"),s));return e.onload=()=>{Ar(e.contentWindow,i)},t.document.body.appendChild(e),e}var s}(t,i):Ar(t,i)}(this.win,t,this.ie)}))}))}ee(t){return Tt(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t}},vr=class{constructor(t,i,s){this.ne=cs(t),this.re=i,this.he=s||0,this.oe=-1,this.ue=0,this.le=!1,this.ce=()=>{this.ae()}}isPending(){return-1!=this.oe}schedule(t){let i=t||this.he;this.le&&i<10&&(i=10);const s=Date.now()+i;return(!this.isPending()||s-this.ue<-10)&&(this.cancel(),this.ue=s,this.oe=this.ne.delay(this.ce,i),!0)}ae(){this.oe=-1,this.ue=0,this.le=!0,this.re(),this.le=!1}cancel(){this.isPending()&&(this.ne.cancel(this.oe),this.oe=-1)}};function Er(t,i){const s=i.documentElement;return t.some((t=>s.hasAttribute(t)))}function Tr(t){return Er(["⚡4email","amp4email"],t)}function Mr(t){return Er(["⚡","amp"],t)}var Ir="Action",Rr="__AMP_ACTION_MAP__"+Math.random(),yr="__AMP_ACTION_QUEUE__",br="__AMP_ACTION_HANDLER__",wr={"form":["submit","clear"]},Vr=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Sr={"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},xr=class{constructor(t,i,s,e,n,r,h,o="?",u=null,l=Math.random()){this.node=t,this.method=i,this.args=s,this.source=e,this.caller=n,this.event=r,this.trust=h,this.actionEventType=o,this.tagOrTarget=u||t.tagName,this.sequenceId=l}satisfiesTrust(t){if(!S(this.trust))return vt().error(Ir,`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust<t){const t=function(t){switch(t){case 1:return"low";case 3:return"high";default:return U(2===t),"default"}}(this.trust);return Pt().error(Ir,`"${this.actionEventType}" event with "${t}" trust is not allowed to invoke "${this.tagOrTarget.toLowerCase()}.${this.method}".`),!1}return!0}};function Or(t){return"amp-"===t.substring(0,4)}var Cr=class{constructor(t){this.detail=null,function(t,i){const s=i||_();for(const i in t){const e=t[i];s[i]="function"==typeof e?kr:t[i]}}(t,this)}};function kr(){Et(null)}function Nr(t,i){const s=Lr.bind(null,t,i),e=Ur.bind(null,t,i);let n=null;const r=new Br(t);let h,o;do{if(h=r.next(),h.type==$r.EOF||h.type==$r.SEPARATOR&&";"==h.value);else if(h.type==$r.LITERAL||h.type==$r.ID){const i=h.value;e(r.next(),[$r.SEPARATOR],":");const u=[];do{const n=e(r.next(),[$r.LITERAL,$r.ID]).value;let h=zn,l=null;o=r.peek(),o.type==$r.SEPARATOR&&"."==o.value&&(r.next(),h=e(r.next(),[$r.LITERAL,$r.ID]).value||h,o=r.peek(),o.type==$r.SEPARATOR&&"("==o.value&&(r.next(),l=Dr(r,e,s))),u.push({event:i,target:n,method:h,args:l,str:t}),o=r.peek()}while(o.type==$r.SEPARATOR&&","==o.value&&r.next());n||(n=_()),n[i]=u}else s(!1,`; unexpected token [${h.value||""}]`)}while(h.type!=$r.EOF);return n}function Dr(t,i,s){let e,n=t.peek(),r=null;if(n.type==$r.OBJECT){r=_();const{value:s}=t.next();r.__AMP_OBJECT_STRING__=s,i(t.next(),[$r.SEPARATOR],")")}else do{e=t.next();const{type:o,value:u}=e;if(o!=$r.SEPARATOR||","!=u&&")"!=u)if(o==$r.LITERAL||o==$r.ID){i(t.next(),[$r.SEPARATOR],"="),e=i(t.next(!0),[$r.LITERAL,$r.ID]);const o=[e];if(e.type==$r.ID)for(n=t.peek();n.type==$r.SEPARATOR&&"."==n.value;n=t.peek())t.next(),e=i(t.next(!1),[$r.ID]),o.push(e);const l=0==(h=o).length?null:1==h.length?h[0].value:{expression:h.map((t=>t.value)).join(".")};r||(r=_()),r[u]=l,n=t.peek(),s(n.type==$r.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else s(!1,`; unexpected token [${e.value||""}]`)}while(e.type!=$r.SEPARATOR||")"!=e.value);var h;return r}function Lr(t,i,s,e){return Tt(s,"Invalid action definition in %s: [%s] %s",i,t,e||"")}function Ur(t,i,s,e,n){return void 0!==n?Lr(t,i,e.includes(s.type)&&s.value==n,`; expected [${n}]`):Lr(t,i,e.includes(s.type)),s}var $r={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Fr=" \t\n\r\f\v \u2028\u2029",Br=class{constructor(t){this.de=t,this.fe=-1}next(t){const i=this.pe(t||!1);return this.fe=i.index,i}peek(t){return this.pe(t||!1)}pe(t){let i=this.fe+1;if(i>=this.de.length)return{type:$r.EOF,index:this.fe};let s=this.de.charAt(i);if(-1!=Fr.indexOf(s)){for(i++;i<this.de.length&&-1!=Fr.indexOf(this.de.charAt(i));i++);if(i>=this.de.length)return{type:$r.EOF,index:i};s=this.de.charAt(i)}if(t&&(Hr(s)||"."==s&&i+1<this.de.length&&Hr(this.de[i+1]))){let t="."==s,e=i+1;for(;e<this.de.length;e++){const i=this.de.charAt(e);if("."!=i){if(!Hr(i))break}else t=!0}const n=this.de.substring(i,e),r=t?parseFloat(n):parseInt(n,10);return i=e-1,{type:$r.LITERAL,value:r,index:i}}if(-1!=";:.()=,|!".indexOf(s))return{type:$r.SEPARATOR,value:s,index:i};if(-1!="\"'".indexOf(s)){let t=-1;for(let e=i+1;e<this.de.length;e++)if(this.de.charAt(e)==s){t=e;break}if(-1==t)return{type:$r.INVALID,index:i};const e=this.de.substring(i+1,t);return i=t,{type:$r.LITERAL,value:e,index:i}}if("{"==s){let t=1,s=-1;for(let e=i+1;e<this.de.length;e++){const i=this.de[e];if("{"==i?t++:"}"==i&&t--,t<=0){s=e;break}}if(-1==s)return{type:$r.INVALID,index:i};const e=this.de.substring(i,s+1);return i=s,{type:$r.OBJECT,value:e,index:i}}let e=i+1;for(;e<this.de.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.de.charAt(e));e++);const n=this.de.substring(i,e);if(i=e-1,t&&("true"==n||"false"==n)){const t="true"==n;return{type:$r.LITERAL,value:t,index:i}}return Hr(n.charAt(0))?{type:$r.LITERAL,value:n,index:i}:{type:$r.ID,value:n,index:i}}};function Hr(t){return t>="0"&&t<="9"}function jr(t){return!!t&&"function"==typeof t.getFormData}var zr=["GET","POST"],Gr=[T,m];function qr(t,i){const s=E({},i);if(jr(i.body)){const t=i.body;s.headers["Content-Type"]="multipart/form-data;charset=utf-8",s.body=function(t){const i=[];for(let s=t.next();!s.done;s=t.next())i.push(s.value);return i}(t.entries())}return{input:t,init:s}}function Wr(t,i){const s=t||{},e=s.credentials;return U(void 0===e||"include"==e||"omit"==e),s.method=void 0===(n=s.method)?"GET":(n=n.toUpperCase(),U(zr.includes(n)),n),s.headers=s.headers||{},i&&(s.headers.Accept=i),U(null!==s.body),s;var n}function Kr(t){return new Promise((i=>{if(t.ok)return i(t);const{status:s}=t,e=Pt().createError(`HTTP error ${s}`);throw e.retriable=function(t){return 415==t||t>=500&&t<600}(s),e.response=t,e}))}var Yr=class{constructor(t){this.win=t;const i=Qi(t);this.me=i.isSingleDoc()?i.getSingleDoc():null}_e(t,i){return function(t,i,s,e){if(!i)return r();const n=e.prerenderSafe?r():i.whenFirstVisible(),h=ps(i),o=an(s),u=h.hasCapability("xhrInterceptor"),l=e.bypassInterceptorForDev&&!1;return o||!u||l?n:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?n.then((()=>h.isTrustedViewer())).then((i=>{if(!i&&!Oe(t,"untrusted-xhr-interception"))return;const n={"originalRequest":qr(s,e)};return h.sendMessageAwaitResponse("xhr",n).then((t=>function(t,i){if(H(m(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);const s=_(),e={status:200,statusText:"OK",getResponseHeader:t=>s[String(t).toLowerCase()]||null};if(t.init){const i=t.init;T(i.headers)&&i.headers.forEach((t=>{const i=t[0],e=t[1];s[String(i).toLowerCase()]=String(e)})),i.status&&(e.status=parseInt(i.status,10)),i.statusText&&(e.statusText=String(i.statusText))}return new Response(t.body?String(t.body):"",e)}(t,e.responseType)))})):n}(this.win,this.me,t,i).then((t=>{if(t)return t;if(jr(i.body)){const t=i.body;i.body=t.getFormData()}return this.win.fetch.apply(null,arguments)}))}Ae(t,i={}){return t=function(t,i,s){return U("string"==typeof i),!1!==s.ampCors&&(i=Pn(t,i)),i}(this.win,t,i),i=function(t,i,s){s=s||{};const e=function(t){return t.origin||sn(t.location.href).origin}(t);return e==sn(i).origin&&(s.headers=s.headers||{},s.headers["AMP-Same-Origin"]="true"),s}(this.win,t,i),this._e(t,i).then((t=>t),(i=>{const s=sn(t).origin;throw Pt().createExpectedError("XHR",`Failed fetching (${s}/...):`,i&&i.message)}))}fetchJson(t,i){return this.fetch(t,function(t){const i=Wr(t,"application/json");if("POST"==i.method&&!jr(i.body)){U(Gr.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?on(i.body):JSON.stringify(i.body)}return i}(i))}fetchText(t,i){return this.fetch(t,Wr(i,"text/plain"))}xssiJson(t,i){return i?t.text().then((t=>t.startsWith(i)?j(t.slice(i.length)):j(t))):t.json()}fetch(t,i){const s=Wr(i);return this.Ae(t,s).then((t=>Kr(t)))}sendSignal(t,i){return this.Ae(t,i).then((t=>Kr(t)))}getCorsUrl(t,i){return Pn(t,i)}},Qr=class extends Yr{constructor(t){super(t),this.ge=_()}fetch(t,i){const s=i&&i.headers&&i.headers.Accept||"",e=!i||!i.method||"GET"===i.method,n=this.Pe(t,s),r=!!this.ge[n];if(e&&r)return this.ge[n].then((t=>t.clone()));const h=super.fetch(t,i);return e&&(this.ge[n]=h.then((t=>(delete this.ge[n],t.clone())),(t=>{throw delete this.ge[n],t}))),h}Pe(t,i){return cn(An(t,_n(this.win.location)))+i}},Jr={"+":"-","/":"_","=":"."};function Xr(t){const i=function(t){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[s]=String.fromCharCode(t[s]);return i.join("")}(t);return btoa(i).replace(/[+/=]/g,(t=>Jr[t]))}var Zr="AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc",th="CacheCidApi",ih="-test-amp-cookie-tmp";function sh(t,i){const s=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!s)return null;const e=s.split(";");for(let t=0;t<e.length;t++){const s=e[t].trim(),n=s.indexOf("=");if(-1!=n&&Q(s.substring(0,n).trim())==i){const t=s.substring(n+1).trim();return Q(t,t)}}return null}function eh(t,i,s,e,n={}){let r;!function(t,i,s){if(i.allowOnProxyOrigin)return void Tt(!i.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");Tt(!an(t.location.href),`Should never attempt to set cookie on proxy origin: ${s}`);const e=sn(t.location.href).hostname.toLowerCase(),n=sn(et.cdn).hostname.toLowerCase();Tt(!(e==n||b(e,"."+n)),"Should never attempt to set cookie on proxy origin. (in depth check): "+s)}(t,n,i),n.domain?r=n.domain:n.highestAvailableDomain&&(r=function(t){const i=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(i){const s=i.getAttribute("content")||"",e=_n(t.location.href);return b(e,"."+s)?s:e.split("://")[1]}if(!an(t.location.href)){const i=t.location.hostname.split(".");let s=i[i.length-1];const e=function(t){let i=ih;for(;sh(t,i);)i=ih+0;return i}(t);for(let n=i.length-2;n>=0;n--)if(s=i[n]+"."+s,nh(t,e,"delete",Date.now()+1e3,s),"delete"==sh(t,e))return nh(t,e,"delete",Date.now()-1e3,s),s}return null}(t)),nh(t,i,s,e,r,n.sameSite,n.secure)}function nh(t,i,s,e,n,r,h){"ampproject.org"==n&&(s="delete",e=0);const o=encodeURIComponent(i)+"="+encodeURIComponent(s)+"; path=/"+(n?"; domain="+n:"")+"; expires="+new Date(e).toUTCString()+function(t,i){return i?`; SameSite=${i}`:""}(0,r)+(h?"; Secure":"");try{t.document.cookie=o}catch(t){}}var rh="GoogleCidApi",hh="AMP_TOKEN",oh="$RETRIEVING",uh="$OPT_OUT",lh="$NOT_FOUND",ch=3e4,ah=31536e6,dh=31536e6,fh=/^[a-zA-Z0-9-_.]+$/,ph="amp-cid-optout",mh={"googleanalytics":"AMP_ECID_GOOGLE"},_h={"googleanalytics":"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Ah(t,i,s){eh(t,i,s,Date.now()+dh,{highestAvailableDomain:!0})}function Ph(t,i,s){ls(t).then((t=>{if(!t.isViewerStorage()){const e=gh(i);t.setNonBoolean(e,s)}}))}function gh(t){return"amp-cid:"+t}function vh(t,i,s){const{ampdoc:e}=t,{win:n}=e,{disableBackup:r,scope:h}=i,o=i.cookieName||h;return function(t,i){const{ampdoc:s}=t,{win:e}=s,{disableBackup:n,scope:r}=i,h=i.cookieName||r,o=sh(e,h);return o?Promise.resolve(o):n?Promise.resolve(null):ls(s).then((t=>{const i=gh(h);return t.get(i,dh)})).then((t=>t&&"string"==typeof t?t:null))}(t,i).then((u=>{if(!u&&!i.createCookieIfNotPresent)return Promise.resolve(null);if(u)return/^amp-/.test(u)&&(Ah(n,o,u),r||Ph(e,o,u)),Promise.resolve(u);if(t.ve[h])return t.ve[h];const l=Ih(n).then((t=>"amp-"+t));return Promise.all([l,s]).then((t=>{const i=t[0];sh(n,o)||(Ah(n,o,i),r||Ph(e,o,i))})),t.ve[h]=l}))}function Eh(t,i){const s=ps(t);return s.isTrustedViewer().then((t=>{if(t)return vt().expectedError("CID","Viewer does not provide cap=cid"),s.sendMessageAwaitResponse("cid",i).then((t=>t&&!function(t,i){try{return j(t)}catch(t){return null}}(t)?(vt().expectedError("CID","invalid cid format"),JSON.stringify({"time":Date.now(),"cid":t})):t))}))}function Th(t){return JSON.stringify({"time":Date.now(),"cid":t})}function Mh(t){return G(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Ih(t){const i=Mh(t);if("string"==typeof i)return Zi(t).sha384Base64(i);{const t=i;return o((()=>Xr(t).replace(/\.+$/,"")))}}var Rh="Crypto";var yh=["prefetch","preload","preconnect","dns-prefetch"],bh={attributes:!0,attributeFilter:["hidden"],subtree:!0};function wh(t){try{return t.state}catch(t){return null}}var Vh="History",Sh="AMP.History";function xh(t){const i=ps(t);let s;return i.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?s=new class{constructor(t,i){this.win=t,this.Ee=i,this.Te=0,this.ye=null,this.Ie=this.Ee.onMessage("historyPopped",(t=>this.Me(t)))}replaceStateForTarget(t){Et("#"==t[0]),this.win.location.replace(t)}cleanup(){this.Ie()}setOnStateUpdated(t){this.ye=t}Re(t,i,s){return this.we(t)?t:i}we(t){return!!t&&void 0!==t.stackIndex}push(t){const i=E({"stackIndex":this.Te+1},t||{}),s="pushHistory";return this.Ee.sendMessageAwaitResponse(s,i).then((t=>{const e=i,n=this.Re(t,e,s);return this.be(n),n}))}pop(t){if(t>this.Te)return this.get();const i={"stackIndex":this.Te},s="popHistory";return this.Ee.sendMessageAwaitResponse(s,i).then((t=>{const i={"stackIndex":this.Te-1},e=this.Re(t,i,s);return this.be(e),e}))}replace(t){if(t&&t.url){if(!this.Ee.hasCapability("fullReplaceHistory")){const t={"stackIndex":this.Te};return Promise.resolve(t)}const i=t.url.replace(/#.*/,"");t.url=i}const i=E({"stackIndex":this.Te},t||{}),s="replaceHistory";return this.Ee.sendMessageAwaitResponse(s,i,!0).then((t=>{const e=i,n=this.Re(t,e,s);return this.be(n),n}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.Te,title:""})}Me(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.we(t)&&this.be(t)}be(t){const{stackIndex:i}=t;this.Te!=i&&(this.Te=i,this.ye&&this.ye(t))}getFragment(){return this.Ee.hasCapability("fragment")?this.Ee.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.Ee.hasCapability("fragment")?this.Ee.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):r()}}(t.win,i):(Mi(t.win,"global-history-binding",class{constructor(t){this.win=t,this.ne=cs(t);const{history:i}=this.win;this.Ve=i.length-1;const s=wh(i);let e,n;s&&void 0!==s[Sh]&&(this.Ve=Math.min(s[Sh],this.Ve)),this.Te=this.Ve,this.Se,this.ye=null,this.xe="state"in i,this.Oe=this.Ce(this.Te),i.pushState&&i.replaceState?(this.ke=i.originalPushState||i.pushState.bind(i),this.Ne=i.originalReplaceState||i.replaceState.bind(i),e=(t,i,s)=>{this.Oe=t,this.ke(t,i,s||null)},n=(t,i,s)=>{this.Oe=t,void 0!==s?this.Ne(t,i,s):this.Ne(t,i)},i.originalPushState||(i.originalPushState=this.ke),i.originalReplaceState||(i.originalReplaceState=this.Ne)):(e=(t,i,s)=>{this.Oe=t},n=(t,i,s)=>{this.Oe=t}),this.De=e,this.Le=n;try{this.Le(this.Ce(this.Te,!0))}catch(t){vt().error(Vh,"Initial replaceState failed: "+t.message)}i.pushState=this.Ue.bind(this),i.replaceState=this.$e.bind(this),this.Fe=t=>{t.state,this.Be()},this.win.addEventListener("popstate",this.Fe)}cleanup(){this.ke&&(this.win.history.pushState=this.ke),this.Ne&&(this.win.history.replaceState=this.Ne),this.win.removeEventListener("popstate",this.Fe)}Ce(t,i){const s=_(i?this.He():void 0);return s[Sh]=t,s}setOnStateUpdated(t){this.ye=t}push(t){return this.je((()=>{const i=this.ze(this.He(),t||{});return this.Ue(i,void 0,i.fragment?"#"+i.fragment:void 0),o((()=>this.ze(i,{stackIndex:this.Te})))}))}pop(t){return t=Math.max(t,this.Ve),this.je((()=>this.Ge(this.Te-t+1))).then((t=>this.ze(this.He(),{stackIndex:t})))}replace(t={}){return this.je((()=>{const i=this.ze(this.He(),t||{}),s=(i.url||"").replace(/#.*/,""),e=i.fragment?"#"+i.fragment:"";return this.$e(i,i.title,s||e?s+e:void 0),o((()=>this.ze(i,{stackIndex:this.Te})))}))}get(){return o((()=>this.ze(this.He(),{stackIndex:this.Te})))}backTo(t){return t=Math.max(t,this.Ve),this.je((()=>this.Ge(this.Te-t)))}Be(){let t=this.He();const i=t?t[Sh]:void 0;let s=this.Te;const e=this.Se;this.Se=void 0,s>this.win.history.length-2&&(s=this.win.history.length-2,this.be(this.ze(t,{stackIndex:s}))),null==i?s+=1:s=i<this.win.history.length?i:this.win.history.length-1,t||(t={}),t[Sh]=s,this.Le(t,void 0,void 0),s!=this.Te&&this.be(this.ze(t,{stackIndex:s})),s<this.Ve&&(this.Ve=s),e&&e.resolve()}He(){return this.xe?wh(this.win.history):this.Oe}qe(){Et(!this.Se)}je(t){return this.Se?this.Se.promise.then(t,t):t()}We(){this.qe();const t=new h,{reject:i,resolve:s}=t,e=this.ne.timeoutPromise(500,t.promise);return this.Se={promise:e,resolve:s,reject:i},e}Ge(t){if(this.qe(),t<=0)return Promise.resolve(this.Te);this.Oe=this.Ce(this.Te-t);const i=this.We();return this.win.history.go(-t),i.then((()=>Promise.resolve(this.Te)))}Ue(t,i,s){this.qe(),t||(t={});let e=this.Te+1;t[Sh]=e,this.De(t,i,s),e!=this.win.history.length-1&&(e=this.win.history.length-1,t[Sh]=e,this.Le(t));const n=this.ze(t,{stackIndex:e});this.be(n)}replaceStateForTarget(t){Et("#"==t[0]),this.je((()=>{this.win.removeEventListener("popstate",this.Fe);try{this.win.location.replace(t)}finally{this.win.addEventListener("popstate",this.Fe)}return this.$e(),r()}))}$e(t,i,s){this.qe(),t||(t={});const e=Math.min(this.Te,this.win.history.length-1);t[Sh]=e,this.Le(t,i,s);const n=this.ze(t,{stackIndex:e});this.be(n)}be(t){this.qe(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.Te!=t.stackIndex&&(this.Te=t.stackIndex,this.ye&&this.ye(t))}getFragment(){let{hash:t}=this.win.location;return t=t.substr(1),Promise.resolve(t)}updateFragment(t){return this.replace({fragment:t})}ze(t,i){const s=E(E({},t&&t.data||{}),i.data||{});return E(E(E({},t||{}),i),{},{data:s})}}),s=Ri(t.win,"global-history-binding")),new class{constructor(t,i){this._i=t,this.ne=cs(t.win),this.Ke=i,this.Te=0,this.Ye=[],this.Vi=[],this.Ke.setOnStateUpdated(this.ye.bind(this))}cleanup(){this.Ke.cleanup()}push(t,i){return this.Je((()=>this.Ke.push(i).then((i=>(this.ye(i),t&&(this.Ye[i.stackIndex]=t),i.stackIndex)))),"push")}pop(t){return this.Je((()=>this.Ke.pop(t).then((t=>{this.ye(t)}))),"pop")}replace(t){return this.Je((()=>this.Ke.replace(t)),"replace")}get(){return this.Je((()=>this.Ke.get()),"get")}goBack(t){return this.Je((()=>this.Te<=0&&!t?r():this.Ke.pop(this.Te).then((t=>{this.ye(t)}))),"goBack")}replaceStateForTarget(t){Et("#"==t[0]);const i=this._i.win.location.hash;return this.push((()=>{this._i.win.location.replace(i||"#")})).then((()=>{this.Ke.replaceStateForTarget(t)}))}getFragment(){return this.Ke.getFragment()}updateFragment(t){return"#"==t[0]&&(t=t.substr(1)),this.Ke.updateFragment(t)}ye(t){this.Te=t.stackIndex,this.Qe(t)}Qe(t){if(this.Te>=this.Ye.length-1)return;const i=[];for(let t=this.Ye.length-1;t>this.Te;t--)this.Ye[t]&&(i.push(this.Ye[t]),this.Ye[t]=void 0);if(this.Ye.splice(this.Te+1),i.length>0)for(let s=0;s<i.length;s++)this.ne.delay((()=>i[s](t)),1)}Je(t,i){const s=new h,{promise:e,reject:n,resolve:r}=s,o=new Error("history trace for "+i+": ");return this.Vi.push({callback:t,resolve:r,reject:n,trace:o}),1==this.Vi.length&&this.Xe(),e}Xe(){if(0==this.Vi.length)return;const t=this.Vi[0];let i;try{i=t.callback()}catch(t){i=Promise.reject(t)}i.then((i=>{t.resolve(i)}),(i=>{vt().error(Vh,"failed to execute a task:",i),t.trace&&(t.trace.message+=i,vt().error(Vh,t.trace)),t.reject(i)})).then((()=>{this.Vi.splice(0,1),this.Xe()}))}}(t,s)}new WeakMap,new WeakMap;var Oh=['<div slot=i-amphtml-svc class="i-amphtml-svc i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],Ch=class{constructor(t,i){this.win=t,this.Ze=i,this.tn=[],this.sn=new gs,this.en=t=>{V(t.target)&&this.nn(t.target)},this.rn=i=>{cs(t).delay((()=>{this.win.document.activeElement&&this.nn(this.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.en,!0),this.win.addEventListener("blur",this.rn)}hn(){this.win.document.removeEventListener("focus",this.en,!0),this.win.removeEventListener("blur",this.rn)}onFocus(t){return this.sn.add(t)}nn(t){const i=Date.now();0==this.tn.length||this.tn[this.tn.length-1].el!=t?this.tn.push({el:t,time:i}):this.tn[this.tn.length-1].time=i,this.purgeBefore(i-this.Ze),this.sn.fire(t)}getLast(){return 0==this.tn.length?null:this.tn[this.tn.length-1].el}purgeBefore(t){let i=this.tn.length-1;for(let s=0;s<this.tn.length;s++)if(this.tn[s].time>=t){i=s-1;break}-1!=i&&this.tn.splice(0,i+1)}hasDescendantsOf(t){this.win.document.activeElement&&this.nn(this.win.document.activeElement);for(let i=0;i<this.tn.length;i++)if(t.contains(this.tn[i].el))return!0;return!1}},kh=null,Nh=["gclid","gclsrc"],Dh=[/^t.co$/];function Lh(){return Tt(kh,"E#19457 trackImpressionPromise")}function Uh(t,i,s,e){let n;try{n=t.open(i,s,e)}catch(t){vt().error("DOM","Failed to open url on target: ",s,t)}var r,h;return!n&&"_top"!=s&&("number"!=typeof h&&(h=0),h+"noopener".length>(r=e||"").length||-1===r.indexOf("noopener",h))&&(n=t.open(i,"_top")),n}var $h="navigation",Fh="click",Bh="contextmenu",Hh=["_top","_blank"],jh="data-a4a-orig-href";function zh(t,i){const s=St(i.target,"A");if(!s||!s.href)return;const e=s.getAttribute(jh)||s.getAttribute("href");if(!e)return;const n={"CLICK_X":()=>i.pageX,"CLICK_Y":()=>i.pageY},r=as(s).expandUrlSync(e,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=e&&(s.getAttribute(jh)||s.setAttribute(jh,e),s.setAttribute("href",r))}function Gh(t){return`${t.origin}${t.pathname}${t.search}`}function qh(t){return T(t)?t:[t]}function Wh(t){Mi(t,"platform",class{constructor(t){this._h=t.navigator,this.i=t}isAndroid(){return/Android/i.test(this._h.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this._h.userAgent)}isSafari(){return/Safari/i.test(this._h.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this._h.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this._h.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this._h.userAgent)}isEdge(){return/Edge/i.test(this._h.userAgent)}isWebKit(){return/WebKit/i.test(this._h.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this._h.userAgent)}isStandalone(){return this.isIos()&&this._h.standalone||this.isChrome()&&this.i.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this._h.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.Ah(/\sVersion\/(\d+)/,1):this.isChrome()?this.Ah(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.Ah(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.Ah(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.Ah(/Edge\/(\d+)/,1):0}Ah(t,i){if(!this._h.userAgent)return 0;const s=this._h.userAgent.match(t);return!s||i>=s.length?0:parseInt(s[i],10)}getIosVersionString(){var t,i,s;return this.isIos()&&(null===(t=this._h.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(s=i[1])||void 0===s?void 0:s.replace(/_/g,"."))||""}getIosMajorVersion(){const t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])}})}var Kh=class{constructor(){this.Bi=[],this.on={},this.un=0,this.ln=0}getSize(){return this.Bi.length}getLastEnqueueTime(){return this.un}getLastDequeueTime(){return this.ln}getTaskById(t){return this.on[t]||null}enqueue(t){Et(!this.on[t.id]),this.Bi.push(t),this.on[t.id]=t,this.un=Date.now()}dequeue(t){const i=this.on[t.id];return!!this.removeAtIndex(t,this.Bi.indexOf(i))&&(this.ln=Date.now(),!0)}peek(t){let i=1e6,s=null;for(let e=0;e<this.Bi.length;e++){const n=this.Bi[e],r=t(n);r<i&&(i=r,s=n)}return s}forEach(t){this.Bi.forEach(t)}removeAtIndex(t,i){const s=this.on[t.id];return!(!s||this.Bi[i]!=s||(this.Bi.splice(i,1),delete this.on[t.id],0))}purge(t){let i=this.Bi.length;for(;i--;)t(this.Bi[i])&&this.removeAtIndex(this.Bi[i],i)}};function Yh(t){return t.queryCommandSupported("copy")}function Qh(t){return t.hasAttribute("hidden")}var Jh="STANDARD-ACTIONS",Xh=/^i-amphtml-/;function Zh(t){Ii(t,"standard-actions",class{constructor(t){this.ampdoc=t;const i=t.getHeadNode();this.cn=es(t),this.an=_s(t),this.dn(Wi(i)),this.fn()}dn(t){t.addGlobalTarget("AMP",this.pn.bind(this)),t.addGlobalMethodHandler("hide",this.mn.bind(this)),t.addGlobalMethodHandler("show",this._n.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.An.bind(this)),t.addGlobalMethodHandler("scrollTo",this.gn.bind(this)),t.addGlobalMethodHandler("focus",this.Pn.bind(this)),t.addGlobalMethodHandler("toggleClass",this.vn.bind(this)),t.addGlobalMethodHandler("copy",this.En.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.Tn.bind(this))}fn(){this.yn()&&this.ampdoc.waitForBodyOpen().then((t=>{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))}yn(){var t,i;try{const t=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(t)return"yes"===t}catch(t){}return null===(t=(i=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(i,"(prefers-color-scheme: dark)").matches}pn(t){if(!t.satisfiesTrust(2))return null;const{args:i,method:s,node:e}=t,n=Mt(e);switch(s){case"pushState":case"setState":const s=e.nodeType===Node.DOCUMENT_NODE?e.documentElement:e;return Ji(s).then((i=>(Tt(i,"AMP-BIND is not installed."),i.invoke(t))));case"navigateTo":return this.In(t);case"closeOrNavigateTo":return this.Mn(t);case"scrollTo":return Tt(i.id,"AMP.scrollTo must provide element ID"),t.node=Oi(e).getElementById(i.id),this.gn(t);case"goBack":return ss(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return n.print(),null;case"copy":return this.En(t);case"optoutOfCid":return Xi(this.ampdoc).then((t=>t.optOut())).catch((t=>{vt().error(Jh,"Failed to opt out of CID",t)}));case"toggleTheme":return this.Rn(),null}throw Pt().createError("Unknown AMP action ",s)}En(t){const{args:i,node:s}=t,e=Mt(s),n="copy-error";let r;if("AMP"===t.tagOrTarget)r=i.text.trim();else{var h;const i=$(t.node);r=(null!==(h=i.value)&&void 0!==h?h:i.textContent).trim()}const o=function(t,i,s){const n=Ue(e,`${t}`,{data:{type:i}});Wi(s.caller).trigger(s.caller,t,n,3)};var u,l,c;null!==(l=(u=e.document).defaultView)&&void 0!==l&&null!==(c=l.navigator)&&void 0!==c&&c.clipboard||Yh(u)?function(t,i,s,e){var n;null!==(n=t.navigator)&&void 0!==n&&n.clipboard?t.navigator.clipboard.writeText(i).then(s,e):Yh(t.document)&&function(t,i){var s;let e=!1;const n=t.document,r=n.createElement("textarea");bs(r,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),r.value=i,r.readOnly=!0,r.contentEditable="true",n.body.appendChild(r),null===(s=t.getSelection())||void 0===s||s.removeAllRanges(),r.focus(),r.setSelectionRange(0,i.length);try{e=n.execCommand("copy")}catch(t){}return Ut(r),e}(t,i)?s():e()}(e,r,(()=>{o("copy-success","success",t)}),(()=>{o(n,"error",t)})):o(n,"unsupported",t)}In(t){const{args:i,caller:s,method:e,node:n}=t,h=Mt(n);let o=r();return s.tagName.startsWith("AMP-")&&(o=s.getImpl().then((t=>{"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),o.then((()=>{var t;(t=this.ampdoc,yi(t,"navigation")).navigateTo(h,i.url,`AMP.${e}`,{target:i.target,opener:i.opener})}),(t=>{Pt().error(Jh,t)}))}Rn(){this.ampdoc.waitForBodyOpen().then((t=>{try{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";this.yn()?(t.classList.remove(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(t.classList.add(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))}Mn(t){const{node:i}=t,s=Mt(i),e=s.parent!=s;let n=!1;return s.opener&&this.ampdoc.isSingleDoc()&&!e&&(s.close(),n=s.closed),n?r():this.In(t)}gn(t){const i=t.node,{args:s}=t;let e=s&&s.position,n=s&&s.duration;return e&&!["top","bottom","center"].includes(e)&&(e=void 0),S(n)||(n=void 0),this.an.animateScrollIntoView(i,e,n)}Pn(t){return Ht(t.node),null}mn(t){const i=t.node;if(i.classList.contains("i-amphtml-element")){const t=i;this.cn.mutateElement(t,(()=>t.collapse()),!0)}else this.cn.mutateElement(i,(()=>ws(i,!1)));return null}_n(t){const{node:i}=t,s=i,e=Mt(s);if(s.classList.contains(se(Gs)))return null;this.cn.measureElement((()=>{"none"==Ss(e,s).display&&Qh(s)}));const n=(r=s).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");var r;return n&&hs(e).isIos()?(this.wn(s,n),this.cn.mutateElement(s,(()=>{}))):this.cn.mutateElement(s,(()=>{this.wn(s,n)})),null}wn(t,i){t.classList.contains("i-amphtml-element")?t.expand():ws(t,!0),i&&Ht(i)}An(t){return Qh(t.node)?this._n(t):this.mn(t)}vn(t){const i=t.node,{args:s}=t,e=Pt().assertString(s.class,"Argument 'class' must be a string.");return Xh.test(e)||this.cn.mutateElement(i,(()=>{if(void 0!==s.force){const t=Pt().assertBoolean(s.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(e,t)}else i.classList.toggle(e)})),null}Tn(t){const i=t.node,{args:s}=t;return this.cn.mutateElement(i,(()=>{if(void 0!==s.force){const t=Pt().assertBoolean(s.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null}},!0)}var to="Storage",io=class{constructor(t){this.Ee=t}loadBlob(t){return this.Ee.sendMessageAwaitResponse("loadStore",{"origin":t}).then((t=>t.blob))}saveBlob(t,i){return this.Ee.sendMessageAwaitResponse("saveStore",{"origin":t,"blob":i}).catch((t=>{throw vt().createExpectedError(to,"Failed to save store: ",t)}))}};function so(t){Ii(t,"storage",(function(){const i=ps(t),s=parseInt(i.getParam("storage"),10)?new io(i):new class{constructor(t){if(this.win=t,this.bn=this.Vn(),!this.bn){const t=new Error("localStorage not supported.");vt().expectedError(to,t)}}Vn(){try{return"localStorage"in this.win&&(this.win.localStorage.getItem("test"),!0)}catch(t){return!1}}Sn(t){return`amp-store:${t}`}loadBlob(t){return new Promise((i=>{this.bn?i(this.win.localStorage.getItem(this.Sn(t))):i(null)}))}saveBlob(t,i){return new Promise((s=>{this.bn?(this.win.localStorage.setItem(this.Sn(t),i),s()):s()}))}}(t.win);return new class{constructor(t,i,s){this.ampdoc=t,this.Ee=i,this.Ke=s,this.On=s instanceof io,this.h=_n(this.ampdoc.win.location),this.Cn=null}xn(){return this.kn(),this}get(t,i){return this.Nn().then((s=>s.get(t,i)))}set(t,i,s){return Et("boolean"==typeof i),this.setNonBoolean(t,i,s)}setNonBoolean(t,i,s){return this.Dn((e=>e.set(t,i,s)))}remove(t){return this.Dn((i=>i.remove(t)))}isViewerStorage(){return this.On}Nn(){return this.Cn||(this.Cn=this.Ke.loadBlob(this.h).then((t=>t?j(atob(t)):{})).catch((t=>(vt().expectedError(to,"Failed to load store: ",t),{}))).then((t=>new class{constructor(t,i){this.obj=P(t),this.Ln=i||8,this.Un=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this.Un)}get(t,i){const s=this.Un[t],e=s?s.t:void 0,n=!i||null==e||e+i>Date.now();return s&&n?s.v:void 0}set(t,i,s){if(Et("__proto__"!=t&&"prototype"!=t),void 0!==this.Un[t]){const e=this.Un[t];let n=Date.now();s&&(n=e.t),e.v=i,e.t=n}else this.Un[t]={"v":i,"t":Date.now()};const e=Object.keys(this.Un);if(e.length>this.Ln){let t=1/0,i=null;for(let s=0;s<e.length;s++){const n=this.Un[e[s]];n.t<t&&(i=e[s],t=n.t)}i&&delete this.Un[i]}}remove(t){delete this.Un[t]}}(t)))),this.Cn}Dn(t){return this.Nn().then((i=>{t(i);const s=btoa(JSON.stringify(i.obj));return this.Ke.saveBlob(this.h,s)})).then(this.$n.bind(this))}kn(){this.Ee.onBroadcast((t=>{"amp-storage-reset"==t.type&&t.origin==this.h&&(this.Cn=null)}))}$n(){this.Ee.broadcast({"type":"amp-storage-reset","origin":this.h})}}(t,i,s).xn()}),!0)}var eo="__AMP_IMPL_",no=()=>{};function ro(t){Mi(t,"timer",class{constructor(t){this.win=t,this.Fn=this.win.Promise.resolve(),this.Bn=0,this.Hn={},this.jn=Date.now()}timeSinceStart(){return Date.now()-this.jn}delay(t,i){if(!i){const i="p"+this.Bn++;return this.Fn.then((()=>{this.Hn[i]?delete this.Hn[i]:t()})).catch(In),i}return this.win.setTimeout((()=>{try{t()}catch(t){throw In(t),t}}),i)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.Hn[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,s){let e;const n=new this.win.Promise(((i,n)=>{if(e=this.delay((()=>{n(Pt().createError(s||"timeout"))}),t),-1==e)throw new Error("Failed to schedule timer.")}));if(!i)return n;const r=()=>{this.cancel(e)};return i.then(r,r),this.win.Promise.race([n,i])}poll(t,i){return new this.win.Promise((s=>{const e=this.win.setInterval((()=>{i()&&(this.win.clearInterval(e),s())}),t)}))}})}var ho="Expander",oo=class{constructor(t,i,s,e,n,r){this.zn=t,this.Gn=i,this.qn=s,this.Wn=e,this.Kn=n,this.Yn=!r}expand(t){if(!t.length)return this.Wn?t:Promise.resolve(t);const i=this.zn.getExpr(this.Gn,this.Kn),s=this.Jn(t,i);return s.length?this.Qn(t,s):this.Wn?t:Promise.resolve(t)}getMacroNames(t){const i=this.zn.getExpr(this.Gn,this.Kn);return t.match(i)||[]}Jn(t,i){const s=[];return t.replace(i,((t,i,e)=>{const{length:n}=t,r={start:e,stop:n+e-1,name:i,length:n};s.push(r)})),s}Qn(t,i){const s=[];let e=0,n=0,r=i[n],h=0,o=!1;const u=l=>{let c="",d=[];const f=[];for(;e<t.length&&n<=i.length;){const a=c.trim();if(r&&e===r.start){let o;a&&d.push(h?(p=c).trimStart?p.trimStart():(p+"_").trim().slice(0,-1):c),o=this.Gn&&A(this.Gn,r.name)?{name:r.name,prioritized:this.Gn[r.name],encode:l}:E(E({},this.zn.get(r.name)),{},{name:r.name,encode:l}),e=r.stop+1,r=i[++n],"("===t[e]?(e++,h++,s.push(o),d.push(u(!1))):d.push(this.Xn(o)),c=""}else if("`"===t[e])o?(o=!1,c.length&&d.push(c)):(o=!0,a&&d.push(a)),c="",e++;else if(h&&","===t[e]&&!o)a&&d.push(a),f.push(d),d=[],","===t[e+1]&&(f.push([""]),e++),c="",e++;else{if(h&&")"===t[e]&&!o){e++,h--;const t=s.pop();return a&&d.push(a),f.push(d),this.Xn(t,f)}c+=t[e],e++}e===t.length&&c.length&&d.push(c)}var p;return this.Wn?d.join(""):Promise.all(d).then((t=>t.join(""))).catch((t=>(a(t),"")))};return u(this.Yn)}Xn(t,i){const{encode:s,name:e}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.Wn&&null!=t.sync?n=t.sync:this.Wn?(Pt().error(ho,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Wn){const t=this.Zn(n,e,i);return s?encodeURIComponent(t):t}return this.tr(n,e,i).then((t=>s?encodeURIComponent(t):t))}tr(t,i,s){let e;try{if("function"==typeof t){const i=t;e=s?this.ir(s).then((t=>i.apply(null,t))):o(i)}else e=Promise.resolve(t);return e.then((t=>{let e;return this.sr(i,t,s),e=null==t?"":t,e})).catch((t=>(a(t),this.sr(i,"",s),Promise.resolve(""))))}catch(t){return a(t),this.sr(i,"",s),Promise.resolve("")}}ir(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}Zn(t,i,s){try{let e,n=t;return"function"==typeof t&&(n=t.apply(null,this.er(s))),n&&"function"==typeof n.then?(Pt().error(ho,"ignoring async macro resolution"),e=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.sr(i,n,s),e=n.toString()):(this.sr(i,"",s),e=""),e}catch(t){return a(t),this.sr(i,"",s),""}}er(t){return t?t.map((t=>t.join(""))):t}sr(t,i,s){if(!this.qn)return;let e="";s&&(e=`(${s.filter((t=>""!==t)).join(",")})`),this.qn[`${t}${e}`]=i||""}},uo={"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 lo(t,i,s){const e=uo[i]||3,n=s?uo[s]||3:e,h=Math.max(e,n);let o;if(1===h)o=r();else if(2===h)o=Ai(t.document);else if(3===h)o=He(t);else if(4===h){const i=cs(t);o=He(t).then((()=>i.promise(1)))}return Et(o),o.then((()=>co(t,i,s)))}function co(t,i,s){const e=t.performance&&t.performance.timing;if(!e||0==e.navigationStart)return;const n=void 0===s?e[i]:e[s]-e[i];return!S(n)||n<0?void 0:n}function ao(t,i){const s=t.performance&&t.performance.navigation;if(s&&void 0!==s[i])return s[i]}var fo="UrlReplacements";function po(t){return()=>(new Date)[t]()}function mo(t,i){return()=>t[i]}function _o(t,i){return i?(Tt("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"}var Ao="Viewer",Po=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i;function go(t){let i;return t instanceof Error?((t=u(t)).message="No messaging channel: "+t.message,i=t):i=new Error("No messaging channel: "+t),i.message=N(i.message),i}var vo=class{static solveYValueFromXValue(t,i,s,e,n,r,h,o,u){return vo.nr(vo.rr(t,i,e,r,o),s,n,h,u)}static rr(t,i,s,e,n){const r=1e-6;let h=(t-i)/(n-i);if(h<=0)return 0;if(h>=1)return 1;let o=0,u=1,l=0;for(let c=0;c<8;c++){l=vo.hr(h,i,s,e,n);const c=(vo.hr(h+r,i,s,e,n)-l)/r;if(Math.abs(l-t)<r)return h;if(Math.abs(c)<r)break;l<t?o=h:u=h,h-=(l-t)/c}for(let c=0;Math.abs(l-t)>r&&c<8;c++)l<t?(o=h,h=(h+u)/2):(u=h,h=(h+o)/2),l=vo.hr(h,i,s,e,n);return h}static hr(t,i,s,e,n){if(0==t)return i;if(1==t)return n;let r=vo.ur(i,s,t),h=vo.ur(s,e,t);const o=vo.ur(e,n,t);return r=vo.ur(r,h,t),h=vo.ur(h,o,t),vo.ur(r,h,t)}static nr(t,i,s,e,n){if(0==t)return i;if(1==t)return n;let r=vo.ur(i,s,t),h=vo.ur(s,e,t);const o=vo.ur(e,n,t);return r=vo.ur(r,h,t),h=vo.ur(h,o,t),vo.ur(r,h,t)}static ur(t,i,s){return t+s*(i-t)}},Eo={LINEAR:t=>t,EASE:t=>vo.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1),EASE_IN:t=>vo.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1),EASE_OUT:t=>vo.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1),EASE_IN_OUT:t=>vo.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)},To={"linear":Eo.LINEAR,"ease":Eo.EASE,"ease-in":Eo.EASE_IN,"ease-out":Eo.EASE_OUT,"ease-in-out":Eo.EASE_IN_OUT};function Mo(t){if(!t)return null;if(w(t)){if(-1!=(t=t).indexOf("cubic-bezier")){const r=t.match(/cubic-bezier\((.+)\)/);if(r){const t=r[1].split(",").map(parseFloat);if(4==t.length){for(let i=0;i<4;i++)if(isNaN(t[i]))return null;return i=t[0],s=t[1],e=t[2],n=t[3],t=>vo.solveYValueFromXValue(t,0,0,i,s,e,n,1,1)}}return null}return To[t]}var i,s,e,n;return t}var Io="Animation",Ro=function(){},yo=class{static animate(t,i,s,e){return new yo(t).setCurve(e).add(0,i,1).start(s)}constructor(t,i){this.lr=t,this.cr=i||ms(self),this.ar=null,this.dr=[]}setCurve(t){return t&&(this.ar=Mo(t)),this}add(t,i,s,e){return this.dr.push({delay:t,func:i,duration:s,curve:Mo(e)}),this}start(t){return new bo(this.cr,this.lr,this.dr,this.ar,t)}},bo=class{constructor(t,i,s,e,n){this.cr=t,this.lr=i,this.dr=[];for(let t=0;t<s.length;t++){const i=s[t];this.dr.push({delay:i.delay,func:i.func,duration:i.duration,curve:i.curve||e,started:!1,completed:!1})}this.pr=n,this.jn=Date.now(),this.le=!0,this.Xt={};const r=new h;this.mr=r.promise,this.Ns=r.resolve,this._r=r.reject,this.Ar=this.cr.createAnimTask(this.lr,{mutate:this.gr.bind(this)}),this.cr.canAnimate(this.lr)?this.Ar(this.Xt):this.Pr(!1,0)}then(t,i){return t||i?this.mr.then(t,i):this.mr}thenAlways(t){const i=t||Ro;return this.then(i,i)}halt(t){this.Pr(!1,t||0)}Pr(t,i){if(this.le){if(this.le=!1,0!=i){this.dr.length>1&&this.dr.sort(((t,i)=>t.delay+t.duration-(i.delay+i.duration)));try{if(i>0)for(let t=0;t<this.dr.length;t++)this.dr[t].func(1,!0);else for(let t=this.dr.length-1;t>=0;t--)this.dr[t].func(0,!1)}catch(i){vt().error(Io,"completion failed: "+i,i),t=!1}}t?this.Ns():this._r()}}gr(t){if(!this.le)return;const i=Date.now(),s=Math.min((i-this.jn)/this.pr,1);for(let t=0;t<this.dr.length;t++){const i=this.dr[t];!i.started&&s>=i.delay&&(i.started=!0)}for(let t=0;t<this.dr.length;t++){const i=this.dr[t];i.started&&!i.completed&&this.vr(i,s)}1==s?this.Pr(!0,0):this.cr.canAnimate(this.lr)?this.Ar(this.Xt):this.Pr(!1,0)}vr(t,i){let s,e;if(t.duration>0){if(s=Math.min((i-t.delay)/t.duration,1),e=s,t.curve&&1!=e)try{e=t.curve(s)}catch(t){return vt().error(Io,"step curve failed: "+t,t),void this.Pr(!1,0)}}else s=1,e=1;1==s&&(t.completed=!0);try{t.func(e,t.completed)}catch(t){return vt().error(Io,"step mutate failed: "+t,t),void this.Pr(!1,0)}}};function wo(t,i){let s;for(let e=i.lastElementChild;e;e=e.previousElementSibling)if(e.getBoundingClientRect().height>0){const i=Ss(t,e);if("static"==i.position||"relative"==i.position){s=i;break}}return s?parseInt(s.marginBottom,10):0}function Vo(t,i,s){return function(t,i,s){const e=parseInt(Ss(t,i)[s],10);return isNaN(e)?0:e}(t,i===t.document.body?t.document.documentElement:i,s)}function So(t,i){return Vo(t,i,"scrollPaddingTop")}function xo(t){const i=ps(t),{win:s}=t;let e;return e=t.isSingleDoc()&&function(t,i){return hs(t).isIos()&&jt(t)&&i.isEmbedded()&&!i.hasCapability("iframeScroll")?Oo.NATURAL_IOS_EMBED:Oo.NATURAL}(s,i)==Oo.NATURAL_IOS_EMBED?new class{constructor(t){this.win=t,this.cr=ms(t);const i=this.win.document,{documentElement:s}=i,e=s.className;s.classList.add("i-amphtml-ios-embed");const n=i.createElement("html");this.Er=n,n.id="i-amphtml-wrapper",n.className=e,this.Tr=new gs,this.yr=new gs,this.Ir=this.Mr.bind(this),this.Rr=()=>this.yr.fire(),this.wr=0,this.br=!1,Dt(i,this.Vr.bind(this)),_i(i).then((()=>{s.classList.add("i-amphtml-ios-overscroll")}))}ensureReadyForElements(){this.Vr()}Vr(){if(this.br)return;this.br=!0;const t=this.win.document,i=t.body;t.documentElement.appendChild(this.Er),this.Er.appendChild(i),Object.defineProperty(t,"body",{get:()=>i}),this.Mr()}connect(){this.win.addEventListener("resize",this.Rr),this.Er.addEventListener("scroll",this.Ir)}disconnect(){this.win.removeEventListener("resize",this.Rr),this.Er.removeEventListener("scroll",this.Ir)}getBorderTop(){return 1}requiresFixedLayerTransfer(){return!Oe(this.win,"ios-fixed-no-transfer")||parseFloat(hs(this.win).getIosVersionString())<12.2}overrideGlobalScrollTo(){return!0}supportsPositionFixed(){return!0}onScroll(t){this.Tr.add(t)}onResize(t){this.yr.add(t)}updatePaddingTop(t){this.wr=t,Rs(this.Er,{"padding-top":Vs(t)})}hideViewerHeader(t,i){t||this.updatePaddingTop(0)}showViewerHeader(t,i){t||this.updatePaddingTop(i)}disableScroll(){this.Er.classList.add("i-amphtml-scroll-disabled")}resetScroll(){this.Er.classList.remove("i-amphtml-scroll-disabled")}updateLightboxMode(t){return r()}getSize(){return{width:this.win.innerWidth,height:this.win.innerHeight}}getScrollTop(){return this.Er.scrollTop}getScrollLeft(){return 0}getScrollWidth(){return this.Er.scrollWidth}getScrollHeight(){return this.Er.scrollHeight}getContentHeight(){const t=this.win.document.body,{height:i}=t.getBoundingClientRect(),s=wo(this.win,t),e=Ss(this.win,t);return parseInt(e.marginTop,10)+this.wr+i+s+parseInt(e.marginBottom,10)}contentHeightChanged(){}getLayoutRect(t,i,s){const e=t.getBoundingClientRect(),n=null!=s?s:this.getScrollTop(),r=null!=i?i:this.getScrollLeft();return Kt(Math.round(e.left+r),Math.round(e.top+n),Math.round(e.width),Math.round(e.height))}getRootClientRectAsync(){return Promise.resolve(null)}setScrollTop(t){this.Er.scrollTop=t||1}Mr(t){0==this.Er.scrollTop&&(this.Er.scrollTop=1,t&&t.preventDefault()),t&&this.Tr.fire()}getScrollingElement(){return this.Er}getScrollingElementScrollsLikeViewport(){return!1}}(s):new class{constructor(t){this.ampdoc=t,this.win=t.win,this.Sr=hs(this.win),this.Tr=new gs,this.yr=new gs,this.Ir=this.Or.bind(this),this.Rr=()=>this.yr.fire()}Or(){this.Tr.fire()}connect(){this.win.addEventListener("scroll",this.Ir),this.win.addEventListener("resize",this.Rr)}disconnect(){this.win.removeEventListener("scroll",this.Ir),this.win.removeEventListener("resize",this.Rr)}ensureReadyForElements(){}getBorderTop(){return 0}requiresFixedLayerTransfer(){return!1}overrideGlobalScrollTo(){return!1}supportsPositionFixed(){return!0}onScroll(t){this.Tr.add(t)}onResize(t){this.yr.add(t)}updatePaddingTop(t){Rs(this.win.document.documentElement,{"padding-top":Vs(t)})}hideViewerHeader(t,i){t||this.updatePaddingTop(0)}showViewerHeader(t,i){t||this.updatePaddingTop(i)}disableScroll(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")}resetScroll(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")}updateLightboxMode(t){return r()}getSize(){const t=this.win.innerWidth,i=this.win.innerHeight;if(t&&i)return{width:t,height:i};const s=this.win.document.documentElement;return{width:s.clientWidth,height:s.clientHeight}}getScrollTop(){const t=this.getScrollingElement().scrollTop||this.win.pageYOffset,{host:i}=this.ampdoc.getRootNode();return i?t-i.offsetTop:t}getScrollLeft(){return 0}getScrollWidth(){return this.getScrollingElement().scrollWidth}getScrollHeight(){return this.getScrollingElement().scrollHeight}getContentHeight(){const t=this.getScrollingElement(),i=t.getBoundingClientRect(),s=i.top+this.getScrollTop(),e=hs(this.win).isSafari()?wo(this.win,t):0,n=Ss(this.win,t);return s+parseInt(n.marginTop,10)+i.height+e+parseInt(n.marginBottom,10)}contentHeightChanged(){}getLayoutRect(t,i,s){const e=t.getBoundingClientRect(),n=null!=s?s:this.getScrollTop(),r=null!=i?i:this.getScrollLeft();return Kt(Math.round(e.left+r),Math.round(e.top+n),Math.round(e.width),Math.round(e.height))}getRootClientRectAsync(){return Promise.resolve(null)}setScrollTop(t){this.getScrollingElement().scrollTop=t}getScrollingElement(){const t=this.win.document;return t.scrollingElement?t.scrollingElement:t.body&&this.Sr.isWebKit()?t.body:t.documentElement}getScrollingElementScrollsLikeViewport(){return!0}}(t),new class{constructor(t,i,s){const{win:e}=t;this.ampdoc=t,this.Cr=this.ampdoc.win.document,this.Ke=i,this.Ee=s,this.kr=null,this.Nr=null,this.Dr=null,this.Lr=!1,this.Ur=null,this.wr=Number(s.getParam("paddingTop")||0),this.$r=0,this.ne=cs(e),this.cr=ms(e),this.Fr=!1,this.Br=null,this.Hr=0,this.jr=new gs,this.Tr=new gs,this.yr=new gs,this.zr=void 0,this.Gr=void 0,this.qr=null,this.Ee.onMessage("viewport",this.Wr.bind(this)),this.Ee.onMessage("scroll",this.Kr.bind(this)),this.Ee.onMessage("disableScroll",this.Yr.bind(this)),this.Ee.isEmbedded()&&this.Ke.updatePaddingTop(this.wr),this.Ke.onScroll(this.Jr.bind(this)),this.Ke.onResize(this.Qr.bind(this)),this.onScroll(this.Xr.bind(this)),this.Zr=!1,this.ampdoc.onVisibilityChanged(this.th.bind(this)),this.th();const n=this.Cr.documentElement;if(t.isSingleDoc()&&n.classList.add("i-amphtml-singledoc"),s.isEmbedded()?n.classList.add("i-amphtml-embedded"):n.classList.add("i-amphtml-standalone"),jt(e)&&n.classList.add("i-amphtml-iframed"),"1"===s.getParam("webview")&&n.classList.add("i-amphtml-webview"),jt(e)&&"scrollRestoration"in e.history&&(e.history.scrollRestoration="manual"),this.Ke.overrideGlobalScrollTo())try{Object.defineProperty(e,"scrollTo",{value:(t,i)=>this.setScrollTop(i)}),["pageYOffset","scrollY"].forEach((t=>{Object.defineProperty(e,t,{get:()=>this.getScrollTop()})}))}catch(t){}hs(e).isIos()&&jt(e)&&this.ampdoc.isSingleDoc()&&this.ampdoc.whenReady().then((()=>{e.scrollTo(-.1,0)}))}dispose(){this.Ke.disconnect()}ensureReadyForElements(){this.Ke.ensureReadyForElements()}th(){const t=this.ampdoc.isVisible();t!=this.Zr&&(this.Zr=t,t?(this.Ke.connect(),this.Nr&&this.Qr(),this.Dr&&(this.Dr=null,this.getScrollTop())):this.Ke.disconnect())}getPaddingTop(){return this.wr}getScrollTop(){return null==this.Dr&&(this.Dr=this.Ke.getScrollTop()),this.Dr}getScrollLeft(){return null==this.Ur&&(this.Ur=this.Ke.getScrollLeft()),this.Ur}setScrollTop(t){this.Dr=null,this.Ke.setScrollTop(t)}updatePaddingBottom(t){this.ampdoc.waitForBodyOpen().then((i=>{ys(i,"borderBottom",`${t}px solid transparent`)}))}getSize(){if(this.Nr)return this.Nr;if(this.Nr=this.Ke.getSize(),0==this.Nr.width||0==this.Nr.height){const t=this.ampdoc.getVisibilityState();t!=Ps.PRERENDER&&t!=Ps.VISIBLE||Math.random()<.01&&vt().error("Viewport","viewport has zero dimensions")}return this.Nr}getHeight(){return this.getSize().height}getWidth(){return this.getSize().width}getScrollWidth(){return this.Ke.getScrollWidth()}getScrollHeight(){return this.Ke.getScrollHeight()}getContentHeight(){return this.Ke.getContentHeight()}contentHeightChanged(){this.Ke.contentHeightChanged()}getRect(){if(null==this.kr){const t=this.getScrollTop(),i=this.getScrollLeft(),s=this.getSize();this.kr=Kt(i,t,s.width,s.height)}return this.kr}getLayoutRect(t){const i=this.getScrollLeft(),s=this.getScrollTop(),e=xi(t,this.ampdoc.win);if(e){const n=this.Ke.getLayoutRect(t,0,0),r=this.Ke.getLayoutRect(e,i,s);return Kt(Math.round(n.left+r.left),Math.round(n.top+r.top),Math.round(n.width),Math.round(n.height))}return this.Ke.getLayoutRect(t,i,s)}getClientRectAsync(t){const i=this.cr.measurePromise((()=>t.getBoundingClientRect()));let s=this.Ke.getRootClientRectAsync();const e=xi(t,this.ampdoc.win);return e&&(s=this.cr.measurePromise((()=>e.getBoundingClientRect()))),Promise.all([i,s]).then((t=>{const i=t[0],s=t[1];return s?Qt(i,s.left,s.top):(e=i,Kt(Number(e.left),Number(e.top),Number(e.width),Number(e.height)));var e}))}supportsPositionFixed(){return this.Ke.supportsPositionFixed()}isDeclaredFixed(t){return!!this.qr&&this.qr.isDeclaredFixed(t)}scrollIntoView(t){return this.ih(t).then((i=>this.sh(t,i)))}sh(t,i){const s=this.Ke.getLayoutRect(t).top,e=So(this.ampdoc.win,i);o((()=>Math.max(0,s-this.wr-e))).then((t=>this.eh(i,t)))}animateScrollIntoView(t,i="top",s,e){return Et(!e||void 0!==s),this.ih(t).then((n=>this.animateScrollWithinParent(t,n,i,s,e)))}animateScrollWithinParent(t,i,s,e,n){Et(!n||void 0!==e);const r=this.Ke.getLayoutRect(t),{height:h}=this.nh(i)?this.getSize():this.getLayoutRect(i),{win:o}=this.ampdoc,u=So(o,i),l=function(t,i){return Vo(t,i,"scrollPaddingBottom")}(o,i);let c=-u;return"bottom"===s?c=-h+l+r.height:"center"===s&&(c=-(h-u-l)/2+r.height/2),this.rh(i).then((t=>{const s=r.top-this.wr+c,h=Math.max(0,s);if(h!=t)return this.hh(i,t,h,e,n)}))}hh(t,i,s,e,n="ease-in"){const r=void 0!==e?e:function(t,i,s=500){return Math.floor(function(t,i,s){return U(0<=s),Math.min(Math.max(t,0),s)}(.65*Math.abs(t-i),0,s))}(i,s),h=(o=i,u=s,t=>o+(u-o)*t);var o,u;return yo.animate(t,(i=>{this.eh(t,h(i))}),r,n).thenAlways((()=>{this.eh(t,s)}))}ih(t){return this.cr.measurePromise((()=>St(t,".i-amphtml-scrollable")||this.Ke.getScrollingElement()))}eh(t,i){this.nh(t)?this.Ke.setScrollTop(i):this.cr.mutate((()=>{t.scrollTop=i}))}rh(t){return this.nh(t)?o((()=>this.getScrollTop())):this.cr.measurePromise((()=>t.scrollTop))}nh(t){return t==this.Ke.getScrollingElement()}getScrollingElement(){return this.Br?this.Br:this.Br=this.Ke.getScrollingElement()}onChanged(t){return this.jr.add(t)}onScroll(t){return this.Tr.add(t)}onResize(t){return this.yr.add(t)}enterLightboxMode(t,i){return this.Ee.sendMessage("requestFullOverlay",{},!0),this.enterOverlayMode(),this.qr&&this.qr.enterLightbox(t,i),t&&this.maybeEnterFieLightboxMode(t),this.Ke.updateLightboxMode(!0)}leaveLightboxMode(t){return this.Ee.sendMessage("cancelFullOverlay",{},!0),this.qr&&this.qr.leaveLightbox(),this.leaveOverlayMode(),t&&this.maybeLeaveFieLightboxMode(t),this.Ke.updateLightboxMode(!1)}isLightboxExperimentOn(){return Oe(this.ampdoc.win,"amp-lightbox-a4a-proto")}maybeEnterFieLightboxMode(t){const i=this.oh(t);i&&(Et(this.isLightboxExperimentOn()),i.enterFullOverlayMode())}maybeLeaveFieLightboxMode(t){const i=this.oh(t);i&&Et(i).leaveFullOverlayMode()}oh(t){const i=xi(t,this.ampdoc.win);return i&&i.__AMP_EMBED__}enterOverlayMode(){this.disableTouchZoom(),this.disableScroll()}leaveOverlayMode(){this.resetScroll(),this.restoreOriginalTouchZoom()}disableScroll(){const{win:t}=this.ampdoc,{documentElement:i}=t.document;let s;this.cr.measure((()=>{const e=Ss(t,i).marginRight,n=function(t){const{documentElement:i}=t.document;return t.innerWidth-i.clientWidth}(this.ampdoc.win);s=parseInt(e,10)+n})),this.cr.mutate((()=>{ys(i,"margin-right",s,"px"),this.Ke.disableScroll()}))}resetScroll(){const{win:t}=this.ampdoc,{documentElement:i}=t.document;this.cr.mutate((()=>{ys(i,"margin-right",""),this.Ke.resetScroll()}))}resetTouchZoom(){const t=this.ampdoc.win.innerHeight,i=this.Cr.documentElement.clientHeight;t&&i&&t===i||this.disableTouchZoom()&&this.ne.delay((()=>{this.restoreOriginalTouchZoom()}),50)}disableTouchZoom(){const t=this.uh();if(!t)return!1;const i=function(t,i){const s=function(t){const i=Object.create(null);if(!t)return i;const s=t.split(/,|;/);for(let t=0;t<s.length;t++){const e=s[t].split("="),n=e[0].trim();let r=e[1];r=(r||"").trim(),n&&(i[n]=r)}return i}(t);let e=!1;for(const t in i)s[t]!==i[t]&&(e=!0,void 0!==i[t]?s[t]=i[t]:delete s[t]);return e?function(t){let i="";for(const s in t)i.length>0&&(i+=","),t[s]?i+=s+"="+t[s]:i+=s;return i}(s):t}(t.content,{"maximum-scale":"1","user-scalable":"no"});return this.lh(i)}restoreOriginalTouchZoom(){return void 0!==this.Gr&&this.lh(this.Gr)}updateFixedLayer(){return this.qr?this.qr.update():r()}addToFixedLayer(t,i){return this.qr?this.qr.addElement(t,i):r()}removeFromFixedLayer(t){this.qr&&this.qr.removeElement(t)}createFixedLayer(t){this.qr=new t(this.ampdoc,this.cr,this.Ke.getBorderTop(),this.wr,this.Ke.requiresFixedLayerTransfer()),this.ampdoc.whenReady().then((()=>this.qr.setup()))}lh(t){const i=this.uh();return!(!i||i.content==t||(i.content=t,0))}uh(){return jt(this.ampdoc.win)?null:(void 0===this.zr&&(this.zr=this.Cr.querySelector("meta[name=viewport]"),this.zr&&(this.Gr=this.zr.content)),this.zr)}Kr(t){const i=t.scrollTop;this.setScrollTop(i)}Wr(t){const i=t.paddingTop,s=t.duration||0,e=t.curve,n=t.transient;if(null!=i&&i!=this.wr&&(this.$r=this.wr,this.wr=i,this.qr)){const t=this.qr.animateFixedElements(this.wr,this.$r,s,e,n);i<this.$r?this.Ke.hideViewerHeader(n,this.$r):t.then((()=>{this.Ke.showViewerHeader(n,i)}))}}Yr(t){t?this.disableScroll():this.resetScroll()}ah(t,i){const s=this.getSize(),e=this.getScrollTop(),n=this.getScrollLeft();this.jr.fire({relayoutAll:t,top:e,left:n,width:s.width,height:s.height,velocity:i})}Jr(){this.kr=null,this.Hr++,this.Ur=this.Ke.getScrollLeft();const t=this.Ke.getScrollTop();if(!(t<0)){if(this.Dr=t,!this.Fr){this.Fr=!0;const i=Date.now();this.ne.delay((()=>{this.cr.measure((()=>{this.dh(i,t)}))}),36)}this.Tr.fire()}}dh(t,i){this.Dr=this.Ke.getScrollTop();const s=this.Dr,e=Date.now();let n=0;e!=t&&(n=(s-i)/(e-t)),Math.abs(n)<.03?(this.ah(!1,n),this.Fr=!1):this.ne.delay((()=>this.cr.measure(this.dh.bind(this,e,s))),20)}Xr(){this.Lr||(this.Lr=!0,this.cr.measure((()=>{this.Lr=!1,this.Ee.sendMessage("scroll",{"scrollTop":this.getScrollTop()},!0)})))}Qr(){this.kr=null;const t=this.Nr;this.Nr=null;const i=this.getSize();this.updateFixedLayer().then((()=>{const s=!t||t.width!=i.width;this.ah(s,0),(s||t.height!=i.height)&&this.yr.fire({relayoutAll:s,width:i.width,height:i.height})}))}}(t,e,i)}var Oo={NATURAL:"natural",NATURAL_IOS_EMBED:"natural-ios-embed"};function Co(t,i){Et(t);try{void 0!==t(i)&&vt().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return a(t),!1}return!0}function ko(t){if(t.defaultPrevented)return;const i=t.target;if(!i||"FORM"!=i.tagName)return;let s;s=i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"),s&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();const e=i.elements;for(let t=0;t<e.length;t++)Tt(!e[t].name||e[t].name!=Ze,"Illegal input name, %s found: %s",Ze,e[t]);const n=i.getAttribute("action"),r=i.getAttribute("action-xhr"),h=(i.getAttribute("method")||"GET").toUpperCase();if(r&&(ln(r,i,"action-xhr"),Tt(!an(r),"form action-xhr should not be on AMP CDN: %s",i),gn(r)),n&&(ln(n,i,"action"),Tt(!an(n),"form action should not be on AMP CDN: %s",i),gn(n)),"GET"==h)Tt(r||n,"form action-xhr or action attribute is required for method=GET: %s",i);else if("POST"==h){if(n){const t="form";Pt().error(t,"action attribute is invalid for method=POST: %s",i)}r||(t.preventDefault(),Tt(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",i))}const o=i.getAttribute("target");o?Tt("_blank"==o||"_top"==o,"form target=%s is invalid can only be _blank or _top: %s",o,i):i.setAttribute("target","_top"),r&&(t.preventDefault(),t.stopImmediatePropagation(),Wi(i).execute(i,"submit",null,i,i,t,3))}var No=["<link rel=preload referrerpolicy=origin>"],Do=18e4,Lo=null;function Uo(t){var i;(function(t){Mi(t,"crypto",class{constructor(t){this.i=t;let i=null,s=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,s=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.fh=s,this.ph=null}sha384(t){if("string"==typeof t&&(t=z(t)),!this.subtle||this.ph)return(this.ph||this.mh()).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&&Pt().error(Rh,"SubtleCrypto failed, fallback to closure lib.",i),this.mh().then((()=>this.sha384(t))))))}catch(i){return vt().error(Rh,"SubtleCrypto failed, fallback to closure lib.",i),this.mh().then((()=>this.sha384(t)))}}sha384Base64(t){return this.sha384(t).then((t=>Xr(t)))}uniform(t){return this.sha384(t).then((t=>{let i=0;for(let s=2;s>=0;s--)i=(i+t[s])/256;return i}))}mh(){return this.ph?this.ph:this.ph=is(this.i).preloadExtension("amp-crypto-polyfill").then((()=>Ri(this.i,"crypto-polyfill")))}isPkcsAvailable(){return Boolean(this.subtle)&&!1!==this.i.isSecureContext}importPkcsKey(t){Et(this.isPkcsAvailable());const i=this.fh?(s=JSON.stringify(t),"undefined"!=typeof TextEncoder?(new TextEncoder).encode(s):z(unescape(encodeURIComponent(s)))):t;var s;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])}verifyPkcs(t,i,s){return Et(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,s)}})})(t),Mi(t,"batched-xhr",Qr),Wh(t),ro(t),ro(i=t),Mi(i,"vsync",class{constructor(t){this.win=t,this.gh=Qi(this.win),this.Ph=this.Eh(),this.Bi=[],this.Th=[],this.yh=[],this.Ih=[],this.oe=!1,this.Mh=null,this.Rh=null,this.wh=this.bh.bind(this),this.Vh=new vr(this.win,this.wh,16),this.Sh=new vr(this.win,this.wh,40),this.xh=this.Oh.bind(this),this.gh.isSingleDoc()?this.gh.getSingleDoc().onVisibilityChanged(this.xh):Os(this.win.document,this.xh)}dispose(){Cs(this.win.document,this.xh)}Oh(){this.oe&&this.Ch()}run(t,i){this.Bi.push(t),this.yh.push(i||void 0),this.Wi()}runPromise(t,i){if(this.run(t,i),this.Mh)return this.Mh;const s=new h;return this.Rh=s.resolve,this.Mh=s.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.kh(Et(t))}kh(t){if(xs(this.win.document)!=Ps.VISIBLE)return!1;if(this.gh.isSingleDoc())return this.gh.getSingleDoc().isVisible();if(t){const i=this.gh.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0}runAnim(t,i,s){return!!this.kh(t)&&(this.run(i,s),!0)}createAnimTask(t,i){return s=>this.runAnim(t,i,s)}runAnimMutateSeries(t,i,s){return this.kh(t)?new Promise(((e,n)=>{const r=Date.now();let h=0;const o=this.createAnimTask(t,{mutate:t=>{const u=Date.now()-r;i(u,u-h,t)?s&&u>s?n(new Error("timeout")):(h=u,o(t)):e()}});o({})})):Promise.reject(Rn())}Wi(){this.oe||(this.oe=!0,this.Ch())}Ch(){this.kh()?(this.Ph(this.wh),this.Sh.schedule()):this.Vh.schedule()}bh(){this.Sh.cancel(),this.oe=!1;const{Rh:t,yh:i,Bi:s}=this;this.Rh=null,this.Mh=null,this.Bi=this.Th,this.yh=this.Ih;for(let t=0;t<s.length;t++)s[t].measure&&(Co(s[t].measure,i[t])||(s[t].mutate=void 0));for(let t=0;t<s.length;t++)s[t].mutate&&Co(s[t].mutate,i[t]);this.Th=s,this.Ih=i,this.Th.length=0,this.Ih.length=0,t&&t()}Eh(){const t=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(t)return t.bind(this.win);let i=0;return t=>{const s=Date.now(),e=Math.max(0,16-(s-i));i=s+e,this.win.setTimeout(t,e)}}}),function(t){Mi(t,"xhr",Yr)}(t),function(t){Mi(t,"input",class{constructor(t){this.win=t,this.Nh=this.Dh.bind(this),this.Lh=this.Uh.bind(this),this.$h=null,this.Fh=null,this.Bh=null,this.Hh="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,this.jh=!1,this.win.document.addEventListener("keydown",this.Nh),this.win.document.addEventListener("mousedown",this.Lh),this.zh=!0,this.Gh=0,this.qh=new gs,this.Wh=new gs,this.Kh=new gs,this.Hh&&(this.zh=!this.Hh,this.$h=this.Yh.bind(this),Be(t.document,"mousemove",this.$h))}setupInputModeClasses(t){this.onTouchDetected((i=>{this.Jh(t,"amp-mode-touch",i)}),!0),this.onMouseDetected((i=>{this.Jh(t,"amp-mode-mouse",i)}),!0),this.onKeyboardStateChanged((i=>{this.Jh(t,"amp-mode-keyboard-active",i)}),!0)}isTouchDetected(){return this.Hh}onTouchDetected(t,i){return i&&t(this.isTouchDetected()),this.qh.add(t)}isMouseDetected(){return this.zh}onMouseDetected(t,i){return i&&t(this.isMouseDetected()),this.Wh.add(t)}isKeyboardActive(){return this.jh}onKeyboardStateChanged(t,i){return i&&t(this.isKeyboardActive()),this.Kh.add(t)}Jh(t,i,s){t.waitForBodyOpen().then((t=>{ms(this.win).mutate((()=>{t.classList.toggle(i,s)}))}))}Dh(t){if(this.jh)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.jh=!0,this.Kh.fire(!0))}Uh(){this.jh&&(this.jh=!1,this.Kh.fire(!1))}Yh(t){if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return void this.Qh();let i;this.Bh||(this.Bh=this.Xh.bind(this),this.Fh=this.Qh.bind(this));const s=function(t,i,s,e){let n;const r=new Promise((i=>{n=Be(t,"click",i,void 0)}));return r.then(n,n),e&&e(n),r}(this.win.document,0,0,(t=>{i=t}));return cs(this.win).timeoutPromise(300,s).then(this.Fh,(()=>{i&&i(),this.Bh()}))}Xh(){this.zh=!0,this.Wh.fire(!0)}Qh(){this.Gh++,this.Gh<=3&&Be(this.win.document,"mousemove",this.$h)}})}(t),function(t){Mi(t,"preconnect",class{constructor(t){this.Zh=t.document,this.io=t.document.head,this.so={},this.eo={},this.Sr=hs(t),this.so[sn(t.location.href).origin]=!0,this.no=function(t){if(!Lo){const i=t.document.createElement("link"),s=i.relList;if(i.as="invalid-value",!s||!s.supports)return{};Lo={preconnect:s.supports("preconnect"),preload:s.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return Lo}(t),this.ne=cs(t)}url(t,i,s){t.whenFirstVisible().then((()=>{this.Ft(t,i,s)}))}Ft(t,i,s){if(!this.ro(i))return;const{origin:e}=sn(i),n=Date.now(),r=this.so[e];if(r&&n<r)return void(s&&(this.so[e]=n+Do));const h=s?Do:1e4;let o;this.so[e]=n+h,this.no.preconnect||(o=this.Zh.createElement("link"),o.setAttribute("rel","dns-prefetch"),o.setAttribute("href",e),this.io.appendChild(o));const u=this.Zh.createElement("link");u.setAttribute("rel","preconnect"),u.setAttribute("href",e),u.setAttribute("referrerpolicy","origin"),this.io.appendChild(u),this.ne.delay((()=>{o&&o.parentNode&&o.parentNode.removeChild(o),u.parentNode&&u.parentNode.removeChild(u)}),1e4),this.ho(t,e)}preload(t,i,s){this.ro(i)&&(this.eo[i]||(this.eo[i]=!0,this.url(t,i,!0),this.no.preload&&("document"==s&&this.Sr.isSafari()||t.whenFirstVisible().then((()=>{this.oo(i)})))))}oo(t){const i=Ie(this.Zh)(No);i.setAttribute("href",t),this.no.onlyValidAs?i.as="fetch":i.as="",this.io.appendChild(i)}ro(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))}ho(t,i){if(this.no.preconnect||!this.Sr.isSafari()&&!this.Sr.isIos())return;const s=Date.now();this.so[i]=s+Do;const e=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(s-s%Do),n=new XMLHttpRequest;n.open("HEAD",e,!0),n.withCredentials=!0,n.send()}})}(t)}function $o(t){Et(!t.getParent()),function(t,i){(function(t){Ii(t,"url",class{constructor(t){const i=t.getRootNode(),s=i.ownerDocument||i;this.uo=s.createElement("a"),this.lo=null}parse(t,i){return en(this.uo,t)}co(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return dn(t)}getSourceOrigin(t){return _n(this.co(t))}getSourceUrl(t){return mn(this.co(t))}resolveRelativeUrl(t,i){return An(t,this.co(i))}assertHttpsUrl(t,i,s="source"){return ln(t,i,s)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return Tt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),sn(t).href}(t)}isProxyOrigin(t){return an(this.co(t))}isSecure(t){return un(this.co(t))}getWinOrigin(t){return t.origin||this.co(t.location.href).origin}getCdnUrlOnOrigin(t){if(an(t))return t;const{hash:i,host:s,pathname:e,search:n}=this.co(t),r=encodeURIComponent(s);return`${et.cdn}/c/${r}${e}${n}${i}`}},!0)})(t),function(t){Ii(t,"templates",class{constructor(t){this._i=t,this.ao={},this.do={}}whenReady(t){return this.fo(t).then(no)}setHtmlForTemplate(t,i){return this.fo(t).then((t=>this.po(t,i)))}renderTemplate(t,i){return this.fo(t).then((t=>this.mo(t,i)))}renderTemplateAsString(t,i){return this.fo(t).then((t=>t.renderAsString(i)))}getTemplateRenderer(t){return this.fo(t).then((t=>({renderAsString:i=>t.renderAsString(i)})))}renderTemplateArray(t,i){return 0==i.length?Promise.resolve([]):this.fo(t).then((t=>i.map((i=>this.mo(t,i)))))}findAndRenderTemplate(t,i,s){return this.renderTemplate(this.findTemplate(t,s),i)}findAndSetHtmlForTemplate(t,i,s){return this.setHtmlForTemplate(this.findTemplate(t,s),i)}findAndRenderTemplateArray(t,i,s){return this.renderTemplateArray(this.findTemplate(t,s),i)}hasTemplate(t,i){return!!this.maybeFindTemplate(t,i)}findTemplate(t,i){const s=this.maybeFindTemplate(t,i);Tt(s,"Template not found for %s",t);const e=s.tagName;return Tt("TEMPLATE"==e||"SCRIPT"==e&&"text/plain"===s.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),s}maybeFindTemplate(t,i){const s=t.getAttribute("template");return s?Ft(t).getElementById(s):i?bt(t,i):t.querySelector('template[type], script[type="text/plain"]')}fo(t){const i=t[eo];if(i)return Promise.resolve(i);let s="";const{tagName:e}=t;"TEMPLATE"==e?s=t.getAttribute("type"):"SCRIPT"==e&&(s=t.getAttribute("template")),Tt(s,"Type must be specified: %s",t);let n=t.__AMP_WAIT_;return n||(n=this._o(t,s).then((i=>{const s=i,e=t[eo]=new s(t,this._i.win);return delete t.__AMP_WAIT_,e})),t.__AMP_WAIT_=n,n)}_o(t,i){if(this.ao[i])return this.ao[i];const s=new h,{promise:e,resolve:n}=s;return this.ao[i]=e,this.do[i]=n,e}Ao(t,i){if(this.ao[t]){const s=this.do[t];Tt(s,"Duplicate template type: %s",t),delete this.do[t],s(i)}else this.ao[t]=Promise.resolve(i)}mo(t,i){return t.render(i)}po(t,i){return t.setHtml(i)}})}(t),Ii(t,"documentInfo",class{constructor(t){this._i=t,this.Po=null,this.vo=null}get(){if(this.Po)return this.Po;const t=this._i,i=mn(t.getUrl()),s=t.getRootNode();let e=s&&s.AMP&&s.AMP.canonicalUrl;if(!e){const t=s.querySelector("link[rel=canonical]");e=t?sn(t.href).href:i}const n=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),r=function(t){const i=_();if(t.head){const s=t.head.querySelectorAll("link[rel]");for(let t=0;t<s.length;t++){const e=s[t],{href:n}=e,r=e.getAttribute("rel");r&&n&&r.split(/\s+/).forEach((t=>{if(-1!=yh.indexOf(t))return;let s=i[t];s?(T(s)||(s=i[t]=[s]),s.push(n)):i[t]=n}))}}return i}(t.win.document),h=function(t){const i=t.head.querySelector('meta[name="viewport"]');return i?i.getAttribute("content"):null}(t.win.document),o=function(t){if(!t.isSingleDoc()||"a"!=(i=t.win.location.href,an(i=tn(i))?i.pathname.split("/",2)[1]:null))return null;var i;const s=J(sn(t.win.location.href).search).amp_r;return void 0===s?null:J(s)}(t);return this.Po={get sourceUrl(){return mn(t.getUrl())},canonicalUrl:e,pageViewId:n,get pageViewId64(){return this.vo||(this.vo=Ih(t.win)),this.vo},linkRels:r,viewport:h,replaceParams:o}}}),function(t){Ii(t,"cid",class{constructor(t){this.ampdoc=t,this.Eo=null,this.ve=Object.create(null),this.To=new class{constructor(t){this._i=t,this.Ee=ps(this._i),this.yo=null,this.ne=cs(this._i.win)}isSupported(){return this.Ee.isCctEmbedded()&&this.Ee.isProxyOrigin()}getScopedCid(t){if(!this.Ee.isCctEmbedded())return Promise.resolve(null);if(!this.yo){const t="https://ampcid.google.com/v1/cache:getClientId?key="+Zr;this.yo=this.Io(t)}return this.yo.then((i=>i?this.Mo(i,t):null))}Io(t,i=!0){const s={"publisherOrigin":_n(this._i.win.location)},e="fetchCidTimeout";return this.ne.timeoutPromise(3e4,As(this._i.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:s}),e).then((t=>t.json().then((t=>{if(t.optOut)return null;const s=t.publisherClientId;if(!s&&i&&t.alternateUrl){const i=`${t.alternateUrl}?key=${Zr}`;return this.Io(i,!1)}return s})))).catch((t=>(t&&t.response?t.response.json().then((t=>{vt().error(th,JSON.stringify(t))})):t&&t.message==e?vt().expectedError(th,t):vt().error(th,t),null)))}Mo(t,i){const s=t+";"+i;return Zi(this._i.win).sha384Base64(s).then((t=>"amp-"+t))}}(t),this.Ro=new class{constructor(t){this._i=t,this.Ee=ps(this._i);const{canonicalUrl:i}=ts(this._i);this.wo=i?sn(i).origin:null}isSupported(){return this.Ee.hasCapability("cid")?this.Ee.isTrustedViewer():Promise.resolve(!1)}getScopedCid(t,i){const s={"scope":i,"clientIdApi":!!t,"canonicalOrigin":this.wo};return t&&(s.apiKey=t),this.Ee.sendMessageAwaitResponse("cid",s)}}(t),this.bo=new class{constructor(t){this.i=t.win,this.ne=cs(this.i),this.Vo={};const{canonicalUrl:i}=ts(t);this.wo=i?sn(i).origin:null}getScopedCid(t,i){if(this.Vo[i])return this.Vo[i];let s;return this.Vo[i]=this.ne.poll(200,(()=>(s=sh(this.i,hh),s!==oh))).then((()=>{if(s===uh)return uh;if((s!==lh||!this.So())&&this.xo(s))return null;s&&!this.xo(s)||this.Oo(oh,ch);const e="https://ampcid.google.com/v1/publisher:getClientId?key="+t;return this.Io(e,i,s).then((e=>{const n=this.v(e);if(!n&&e.alternateUrl){const n=`${e.alternateUrl}?key=${t}`;return this.Io(n,i,s).then(this.v.bind(this))}return n})).catch((t=>(this.Oo("$ERROR",ch),t&&t.response?t.response.json().then((t=>{vt().error(rh,JSON.stringify(t))})):vt().error(rh,t),null)))}))}Io(t,i,s){const e={"originScope":i,"canonicalOrigin":this.wo};return s&&(e.securityToken=s),this.ne.timeoutPromise(ch,As(this.i).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:e}).then((t=>t.json())))}v(t){return t.optOut?(this.Oo(uh,ah),uh):t.clientId?(this.Oo(t.securityToken,ah),t.clientId):(t.alternateUrl||this.Oo(lh,36e5),null)}Oo(t,i){t&&eh(this.i,hh,t,this.Co(i),{highestAvailableDomain:!0})}Co(t){return this.i.Date.now()+t}So(){return an(Ns.getDocumentReferrer(this.i))}xo(t){return t&&"$"===t[0]}}(t),this.ko=null}get(t,i,s){return Tt(fh.test(t.scope)&&fh.test(t.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",t.scope),i.then((()=>this.ampdoc.whenFirstVisible())).then((()=>{return t=this.ampdoc,ls(t).then((t=>t.get(ph).then((t=>!!t)))).catch((()=>!1));var t})).then((e=>{if(e)return"";const n=this.No(t,s||i);return cs(this.ampdoc.win).timeoutPromise(1e4,n,`Getting cid for "${t.scope}" timed out`).catch((t=>{a(t)}))}))}optOut(){return t=this.ampdoc,ps(t).sendMessage("cidOptOut",{}),ls(t).then((t=>t.set(ph,!0)));var t}No(t,i){const{scope:s}=t,e=sn(this.ampdoc.win.location.href);if(!an(e)){const e=this.Do(s);return e?this.bo.getScopedCid(e,s).then((e=>{if(e==uh)return null;if(e){const i=t.cookieName||s;return Ah(this.ampdoc.win,i,e),e}return vh(this,t,i)})):vh(this,t,i)}return this.Ro.isSupported().then((t=>{if(t){const t=this.Do(s);return this.Ro.getScopedCid(t,s)}return this.To.isSupported()&&this.Do(s)?this.To.getScopedCid(s).then((t=>t||this.Lo(i,s,e))):this.Lo(i,s,e)}))}Lo(t,i,s){return function(t,i){if(t.Eo)return t.Eo;const{win:s}=t.ampdoc;return t.Eo=function(t){const{win:i}=t;let s;try{s=i.localStorage.getItem("amp-cid")}catch(t){}let e=Promise.resolve(s);return!s&&jt(i)&&(e=Eh(t)),e.then((t=>{if(!t)return null;const i=j(t);return{time:i.time,cid:i.cid}}))}(t.ampdoc).then((e=>{let n,r=!1;return e&&!function(t){const i=t.time,s=Date.now();return i+dh<s}(e)?(n=Promise.resolve(e.cid),e.time+864e5<Date.now()&&(r=!0)):(n=Zi(s).sha384Base64(Mh(s)),r=!0),r&&n.then((s=>{!function(t,i,s){const{win:e}=t;jt(e)?Eh(t,Th(s)):i.then((()=>{try{e.localStorage.setItem("amp-cid",Th(s))}catch(t){}}))}(t.ampdoc,i,s)})),n}))}(this,t).then((t=>Zi(this.ampdoc.win).sha384Base64(t+function(t){return Tt(an(t),"Expected proxy origin %s",t.origin),_n(t)}(s)+i)))}Do(t){return this.ko||(this.ko=this.Uo()),this.ko[t]}Uo(){const t={},i=this.ampdoc.getMetaByName("amp-google-client-id-api");return i&&i.split(",").forEach((i=>{if((i=i.trim()).indexOf("=")>0){const s=i.split("="),e=s[0].trim();t[e]=s[1].trim()}else{const s=i,e=mh[s];e&&(t[e]=_h[s])}})),t}})}(t),function(t){Ii(t,"viewer",class{constructor(t){this.ampdoc=t,this.win=t.win,this.$o=jt(this.win),this.Fo=!0,this.Bo=!1,this.Ho=_(),this.jo=_(),this.zo=new gs,this.Go=new gs,this.qo=null,this.Wo=null,this.Ko=[],this.Yo=_(),this.Jo=_(),t.isSingleDoc()&&Object.assign(this.Jo,J(this.win.location.hash)),this.Fo=!parseInt(t.getParam("off"),10),this.Bo=!(!parseInt(t.getParam("history"),10)&&!this.Bo),this.Qo=null,this.Xo=an(sn(this.ampdoc.win.location.href));const i=new h;this.Zo=i.resolve,this.tu=this.iu(i.promise),this.su=null,this.eu=null;const s=t.getParam("referrer");if(this.nu=this.isEmbedded()&&null!=s&&!1!==this.ru()?s:this.win.document.referrer,this.hu=new Promise((i=>{this.isEmbedded()&&null!=t.getParam("referrer")?this.isTrustedViewer().then((s=>{s?i(t.getParam("referrer")):(i(this.win.document.referrer),this.nu!=this.win.document.referrer&&(vt().expectedError(Ao,"Untrusted viewer referrer override: "+this.nu+" at "+this.Wo),this.nu=this.win.document.referrer))})):i(this.win.document.referrer)})),this.ou=cn(this.win.location.href||""),this.uu=new Promise((i=>{const s=t.getParam("viewerUrl");this.isEmbedded()&&s?this.isTrustedViewer().then((t=>{t?this.ou=Et(s):vt().expectedError(Ao,"Untrusted viewer url override: "+s+" at "+this.Wo),i(this.ou)})):i(this.ou)})),this.Jo.click){const t=cn(this.win.location.href);t!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",t),delete this.Jo.click)}this.ampdoc.whenFirstVisible().then((()=>{this.maybeUpdateFragmentForCct()})),this.ampdoc.isSingleDoc()&&this.lu()}iu(t){if(!(this.$o&&!this.win.__AMP_TEST_IFRAME&&(this.ampdoc.getParam("origin")||this.ampdoc.getParam("visibilityState")||-1!=this.win.location.search.indexOf("amp_js_v"))||this.isWebviewEmbedded()||this.isCctEmbedded())&&this.ampdoc.isSingleDoc())return null;const i="initMessagingChannel timeout";return cs(this.win).timeoutPromise(2e4,t,i).catch((t=>{let s=go(t);throw s&&b(s.message,i)&&(s=vt().createExpectedError(s)),In(s),s}))}getAmpDoc(){return this.ampdoc}getParam(t){return this.ampdoc.getParam(t)}hasCapability(t){const i=this.ampdoc.getParam("cap");return!!i&&-1!=i.split(",").indexOf(t)}isEmbedded(){return!!this.tu}isWebviewEmbedded(){return!this.$o&&"1"==this.ampdoc.getParam("webview")}isCctEmbedded(){if(null!=this.Qo)return this.Qo;if(this.Qo=!1,!this.$o){const t=J(this.win.location.search);this.Qo="1"===t.amp_gsa&&(t.amp_js_v||"").startsWith("a")}return this.Qo}isProxyOrigin(){return this.Xo}maybeUpdateFragmentForCct(){if(!this.isCctEmbedded())return;if(!this.win.history.replaceState)return;const t=_n(this.win.location.href),{canonicalUrl:i}=ts(this.ampdoc),s=_n(i);this.cu(t,s)&&(this.Jo.ampshare=i,this.win.history.replaceState({},"","#"+on(this.Jo)))}cu(t,i){const s=t=>t.split(".").length>2?t.replace(Po,"$1"):t;return s(t)==s(i)}isRuntimeOn(){return this.Fo}toggleRuntime(){this.Fo=!this.Fo,this.zo.fire(this.Fo)}onRuntimeState(t){return this.zo.add(t)}isOvertakeHistory(){return this.Bo}getVisibilityState(){return this.ampdoc.getVisibilityState()}isVisible(){return this.ampdoc.isVisible()}hasBeenVisible(){return this.ampdoc.hasBeenVisible()}whenFirstVisible(){return this.ampdoc.whenFirstVisible()}whenNextVisible(){return this.ampdoc.whenNextVisible()}getFirstVisibleTime(){return this.ampdoc.getFirstVisibleTime()}getLastVisibleTime(){return this.ampdoc.getLastVisibleTime()}onVisibilityChanged(t){return this.ampdoc.onVisibilityChanged(t)}au(t){var i;t&&(Et("prerender"===(i=t)||"preview"===i||"visible"===i||"hidden"===i||"paused"===i||"inactive"===i),t===Ps.HIDDEN&&(t=null!=this.ampdoc.getLastVisibleTime()?Ps.INACTIVE:Ps.PRERENDER),this.ampdoc.overrideVisibilityState(t))}getResolvedViewerUrl(){return this.ou}getViewerUrl(){return this.uu}maybeGetMessagingOrigin(){return this.Wo}getUnconfirmedReferrerUrl(){return this.nu}getReferrerUrl(){return this.hu}isTrustedViewer(){if(!this.su){const t=this.ru();this.su=void 0!==t?Promise.resolve(t):this.tu.then((t=>!!t&&this.du(t)))}return this.su}ru(){return!!this.isEmbedded()&&(!this.win.location.ancestorOrigins||this.isWebviewEmbedded()||this.isCctEmbedded()?void 0:this.win.location.ancestorOrigins.length>0&&this.du(this.win.location.ancestorOrigins[0]))}getViewerOrigin(){if(!this.eu){let t;this.isEmbedded()?this.win.location.ancestorOrigins&&this.win.location.ancestorOrigins.length>0&&(t=this.win.location.ancestorOrigins[0]):t="",this.eu=void 0!==t?Promise.resolve(t):cs(this.win).timeoutPromise(1e3,this.tu).catch((()=>""))}return this.eu}du(t){const i=sn(t),{protocol:s}=i;return"x-thread:"==s||"https:"==s&&et.trustedViewerHosts.some((t=>t.test(i.hostname)))}onMessage(t,i){let s=this.Ho[t];s||(s=new gs,this.Ho[t]=s);const e=s.add(i);return this.Yo[t]&&(this.Yo[t].forEach((t=>{s.fire(t.data),t.deferred.resolve()})),this.Yo[t]=[]),e}onMessageRespond(t,i){return this.jo[t]=i,this.Yo[t]&&(this.Yo[t].forEach((t=>{t.deferred.resolve(i(t.data))})),this.Yo[t]=[]),()=>{this.jo[t]===i&&delete this.jo[t]}}receiveMessage(t,i,s){if("visibilitychange"==t)return this.au(i.state),r();if("broadcast"==t)return this.Go.fire(i),r();const e=this.Ho[t],n=this.jo[t];if(!e&&!n){if(this.Yo[t]=this.Yo[t]||[],this.Yo[t].length>=50)return;const s=new h;return this.Yo[t].push({data:i,deferred:s}),s.promise}return e&&e.fire(i),n?n(i):e?r():void 0}setMessageDeliverer(t,i){if(this.qo)throw new Error("message channel can only be initialized once");if(null==i)throw new Error("message channel must have an origin");if(this.qo=t,this.Wo=i,this.Zo(i),this.Ko.length>0){const t=this.Ko.slice(0);this.Ko=[],t.forEach((t=>{const i=this.qo(t.eventType,t.data,t.awaitResponse);t.awaitResponse&&t.responseResolver(i)}))}}maybeGetMessageDeliverer(){return this.qo}sendMessage(t,i,s=!1){this.fu(t,i,s,!1)}sendMessageAwaitResponse(t,i,s=!1){return this.fu(t,i,s,!0)}fu(t,i,s,e){if(this.qo)return o((()=>this.qo(t,i,e)));if(!this.tu)return e?Promise.reject(go()):r();if(!s)return this.tu.then((()=>this.qo(t,i,e)));const n=R(this.Ko,(i=>i.eventType==t));let u;if(-1!=n)u=this.Ko.splice(n,1)[0],u.data=i,u.awaitResponse=u.awaitResponse||e;else{const s=new h,{promise:n,resolve:r}=s;u={eventType:t,data:i,awaitResponse:e,responsePromise:n,responseResolver:r}}return this.Ko.push(u),u.responsePromise}broadcast(t){return this.tu?this.fu("broadcast",t,!1,!1).then((()=>!0),(()=>!1)):Promise.resolve(!1)}onBroadcast(t){return this.Go.add(t)}whenMessagingReady(){return this.tu}replaceUrl(t){if(t&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{const i=sn(this.win.location.href),s=sn(cn(t)+this.win.location.hash);i.origin==s.origin&&_n(i)==_n(s)&&(this.win.history.replaceState({},"",s.href),this.win.location.originalHref=i.href)}catch(t){vt().error(Ao,"replaceUrl failed",t)}}lu(){if(this.ampdoc.getVisibilityState()==Ps.VISIBLE)return;const t=[],i=()=>t.forEach((t=>t())),s=()=>{this.au(Ps.VISIBLE),i(),vt().expectedError(Ao,"Received user action in non-visible doc")},e={capture:!0,passive:!0};t.push($e(this.win,"keydown",s,e),$e(this.win,"touchstart",s,e),$e(this.win,"mousedown",s,e)),this.whenFirstVisible().then(i)}},!0)}(t),function(t){Ii(t,"viewport",xo,!0)}(t),function(t){Ii(t,"hidden-observer",class{constructor(t){this.pu=t.getRootNode();const i=this.pu.ownerDocument||this.pu;this.i=Et(i.defaultView),this.mu=null,this._u=null}add(t){this.Au();const i=this._u.add(t);return()=>{i(),0===this._u.getHandlerCount()&&this.dispose()}}Au(){if(this.mu)return;this._u=new gs;const t=new this.i.MutationObserver((t=>{t&&this._u.fire(t)}));this.mu=t,t.observe(this.pu,bh)}dispose(){this.mu&&(this.mu.disconnect(),this._u.removeAll(),this.mu=null,this._u=null)}})}(t),function(t){Ii(t,"history",xh)}(t),function(t){Ii(t,"resources",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Ee=ps(t),this.Fo=this.Ee.isRuntimeOn(),this.gu=!1,this.Pu=0,this.Kt=[],this.vu=0,this.Eu=0,this.Tu=0,this.Zr=this.ampdoc.isVisible(),this.yu=!1,this.Iu=!0,this.Mu=!1,this.Ru=-1,this.wu=!0,this.bu=-1,this.Vu=0,this.Su=0,this.ae=new vr(this.win,(()=>this.doPass())),this.xu=new vr(this.win,(()=>{this.wu=!0,this.schedulePass()})),this.Ou=new Kh,this.Vi=new Kh,this.Cu=this.ku.bind(this),this.Nu=[],this.Du=[],this.Lu=!1,this.an=_s(this.ampdoc),this.cr=ms(this.win),this.Uu=new Ch(this.win,6e4),this.$u=!1,this.Fu=0,this.Bu=!1,this.Hu=[],this.ju=[],this.zu=new h,this.Gu=new class{constructor(t){this.Xt=t,this.qu=_()}addTransition(t,i,s){const e=this.Wu(t,i);U(!this.qu[e]),this.qu[e]=s}setState(t){const i=this.Xt;this.Xt=t;const s=this.Wu(i,t),e=this.qu[s];null==e||e()}Wu(t,i){return`${t}|${i}`}}(this.ampdoc.getVisibilityState()),this.an.onChanged((t=>{this.Vu=this.win.Date.now(),this.Su=t.velocity,t.relayoutAll&&(this.wu=!0,this.Bu=!0),this.schedulePass()})),this.an.onScroll((()=>{this.Vu=this.win.Date.now()})),this.ampdoc.onVisibilityChanged((()=>{-1==this.Ru&&this.ampdoc.isVisible()&&(this.Ru=this.win.Date.now()),this.schedulePass()})),this.Ee.onRuntimeState((t=>{this.Fo=t,this.schedulePass(1)})),Un(this.ampdoc,(()=>{this.Ku(this.Gu),this.schedulePass(0)})),this.Yu(),this.dh=q(this.win,(t=>this.Ju(t)),250),$e(this.win.document,"scroll",this.dh,{capture:!0,passive:!0})}Yu(){this.ampdoc.whenReady().then((()=>{this.yu=!0,this.Qu(),this.Du=null,(t=>Ri(t,"input"))(this.win).setupInputModeClasses(this.ampdoc)}))}get(){return this.Kt.slice(0)}getAmpdoc(){return this.ampdoc}getResourceForElement(t){return Vn.forElement(t)}getResourceForElementOptional(t){return Vn.forElementOptional(t)}getScrollDirection(){return Math.sign(this.Su)||1}add(t){this.vu++,1==this.vu&&this.an.ensureReadyForElements();let i=Vn.forElementOptional(t);i&&0!=i.getState()&&!t.reconstructWhenReparented()?i.requestMeasure():i=new Vn(++this.Pu,t,this),this.Kt.push(i),this.xu.schedule(1e3)}Xu(){return this.Eu<20||this.ampdoc.getVisibilityState()==Ps.PREVIEW||this.ampdoc.hasBeenVisible()}Zu(t,i=!1,s=!1){if(!this.Fo&&!this.gu)return;const e=this.ampdoc.getVisibilityState(),n=e==Ps.PRERENDER&&!t.prerenderAllowed(),r=e==Ps.PREVIEW&&!t.previewAllowed();n||r||(this.yu?this.tl(t,s):t.isBuilt()||t.isBuilding()||i&&this.Du.includes(t)||(this.Du.push(t),this.Qu()))}Qu(){if(!this.Lu)try{this.Lu=!0,this.il()}finally{this.Lu=!1}}il(){for(let t=0;t<this.Du.length;t++){const i=this.Du[t];(this.yu||Bt(i.element,this.ampdoc.getRootNode()))&&(this.Du.splice(t--,1),this.tl(i))}}tl(t,i=!1){if(!i&&!this.Xu()&&!t.isBuildRenderBlocking())return null;const s=t.build();return s?(this.Eu++,this.Tu++,s.then((()=>this.schedulePass()),(i=>{if(this.sl(t),!yn(i))throw i}))):null}remove(t){const i=Vn.forElementOptional(t);i&&this.sl(i)}sl(t){const i=this.Kt.indexOf(t);-1!=i&&this.Kt.splice(i,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.nl(t,!0)}upgraded(t){const i=Vn.forElement(t);this.Zu(i)}updateLayoutPriority(t,i){const s=Vn.forElement(t);s.updateLayoutPriority(i),this.Vi.forEach((t=>{t.resource==s&&(t.priority=i)})),this.schedulePass()}schedulePass(t){return this.ae.schedule(t)}updateOrEnqueueMutateTask(t,i){let s=null;for(let i=0;i<this.Nu.length;i++)if(this.Nu[i].resource==t){s=this.Nu[i];break}s?(s.newHeight=i.newHeight,s.newWidth=i.newWidth,s.marginChange=i.marginChange,s.event=i.event,s.force=i.force||s.force,s.callback=i.callback):this.Nu.push(i)}schedulePassVsync(){this.$u||(this.$u=!0,this.cr.mutate((()=>this.doPass())))}ampInitComplete(){this.Mu=!0,this.schedulePass()}setRelayoutTop(t){-1==this.bu?this.bu=t:this.bu=Math.min(t,this.bu)}maybeHeightChanged(){this.Bu=!0}onNextPass(t){this.Hu.push(t)}doPass(){if(this.Fo){if(this.Zr=this.ampdoc.isVisible(),this.Tu=0,this.yu&&this.Iu&&this.Mu){var t;this.Iu=!1;const i=this.win.document,s=ts(this.ampdoc);this.Ee.sendMessage("documentLoaded",{"title":i.title,"sourceUrl":mn(this.ampdoc.getUrl()),"isStory":"AMP-STORY"===(null===(t=i.body.firstElementChild)||void 0===t?void 0:t.tagName),"serverLayout":i.documentElement.hasAttribute("i-amphtml-element"),"linkRels":s.linkRels,"metaTags":{"viewport":s.viewport},"viewport":s.viewport},!0),this.Fu=this.an.getContentHeight(),this.Ee.sendMessage("documentHeight",{"height":this.Fu},!0)}!this.Iu&&this.rl&&this.Kt.every((t=>t.getState()!=Vn.NOT_BUILT||t.element.R1()))&&(this.rl=!1,this.Bu=!0),this.an.getSize(),this.ae.cancel(),this.$u=!1,this.Gu.setState(this.ampdoc.getVisibilityState()),this.hl(),this.Bu&&(this.Bu=!1,this.cr.measure((()=>{const t=this.an.getContentHeight();t!=this.Fu&&(this.Ee.sendMessage("documentHeight",{"height":t},!0),this.Fu=t,this.an.contentHeightChanged())})));for(let t=0;t<this.Hu.length;t++)(0,this.Hu[t])();this.Hu.length=0}}hl(){this.yu&&this.Mu&&!this.ampdoc.signals().get(Sn)&&this.ampdoc.signals().signal(Sn)}ol(){return this.Nu.length>0}ul(){const t=this.win.Date.now(),i=this.an.getRect(),s=i.height/10,e=i.height/10,n=Math.abs(this.Su)<.01&&t-this.Vu>500||t-this.Vu>1e3;if(this.Nu.length>0){const t=this.Nu;this.Nu=[];let r=-1;const h=[];let o=0;for(let u=0;u<t.length;u++){const l=t[u],{event:c,resource:a}=l,d=a.getLayoutBox();let f,p=0,m=0,_=0,A=0,{bottom:P,top:g}=d;if(l.marginChange){f=l.marginChange.newMargins;const t=l.marginChange.currentMargins;null!=f.top&&(p=f.top-t.top),null!=f.bottom&&(m=f.bottom-t.bottom),null!=f.left&&(_=f.left-t.left),null!=f.right&&(A=f.right-t.right),p&&(g=d.top-t.top),m&&(P=d.bottom+t.bottom)}const v=l.newHeight-d.height,E=l.newWidth-d.width;let T=!1;if(0==v&&0==p&&0==m&&0==E&&0==_&&0==A);else if(l.force||!this.Zr)T=!0;else if(this.Uu.hasDescendantsOf(a.element)||c&&c.userActivation&&c.userActivation.hasBeenActive)T=!0;else if(g>=i.bottom-e||0==p&&d.bottom+Math.min(v,0)>=i.bottom-e)T=!0;else{if(i.top>1&&P<=i.top+s){if(v<0&&i.top+o<-v)continue;n?(o+=v,h.push(l)):this.Nu.push(l);continue}this.ll(a,d)?T=!0:v<0||p<0||m<0||(l.newHeight==d.height?this.cr.run({measure:t=>{t.resize=!1;const i=a.element.parentElement;if(!i)return;const s=i.getLayoutSize&&i.getLayoutSize().width||i.offsetWidth;let e=E;for(let t=0;t<i.childElementCount;t++)if(e+=i.children[t].offsetWidth,e>s)return;t.resize=!0},mutate:t=>{t.resize&&l.resource.changeSize(l.newHeight,l.newWidth,f),l.resource.overflowCallback(!t.resize,l.newHeight,l.newWidth,f)}},{}):l.resource.overflowCallback(!0,l.newHeight,l.newWidth,f))}T&&(d.top>=0&&(r=-1==r?d.top:Math.min(r,d.top)),l.resource.changeSize(l.newHeight,l.newWidth,f),l.resource.overflowCallback(!1,l.newHeight,l.newWidth,f),this.Bu=!0),l.callback&&l.callback(T)}-1!=r&&this.setRelayoutTop(r),h.length>0&&this.cr.run({measure:t=>{t.scrollHeight=this.an.getScrollHeight(),t.scrollTop=this.an.getScrollTop()},mutate:t=>{let i=-1;h.forEach((t=>{const s=t.resource.getLayoutBox();i=-1==i?s.top:Math.min(i,s.top),t.resource.changeSize(t.newHeight,t.newWidth,t.marginChange?t.marginChange.newMargins:void 0),t.callback&&t.callback(!0)})),-1!=i&&this.setRelayoutTop(i);const s=this.an.getScrollHeight();s!=t.scrollHeight&&this.an.setScrollTop(t.scrollTop+(s-t.scrollHeight)),this.Bu=!0}},{})}}ll(t,i,s){const e=this.an.getContentHeight(),n=Math.max(.85*e,e-1e3),r=i||t.getLayoutBox(),h=s||t.getInitialLayoutBox();return r.bottom>=n||h.bottom>=n}cl(t){const i=t.isDisplayed();return t.measure(),!(i&&!t.isDisplayed())}al(t){t.length&&this.cr.mutate((()=>{t.forEach((t=>{t.unload(),this.nl(t)}))}))}dl(){const t=this.win.Date.now(),{ju:i,wu:s,bu:e}=this;this.wu=!1,this.bu=-1;let n,r=0,h=0;for(let t=0;t<this.Kt.length;t++){const i=this.Kt[t];0!=i.getState()||i.isBuilding()||i.element.R1()||this.Zu(i,!0),!s&&i.hasBeenMeasured()&&1!=i.getState()||r++,i.isMeasureRequested()&&h++}if(r>0||h>0||s||-1!=e||i.length>0)for(let t=0;t<this.Kt.length;t++){const r=this.Kt[t];if(r.hasOwner()&&!r.isMeasureRequested()||r.element.R1())continue;let h=s||1==r.getState()||!r.hasBeenMeasured()||r.isMeasureRequested()||-1!=e&&r.getLayoutBox().bottom>=e;if(!h)for(let t=0;t<i.length;t++)if(i[t].contains(r.element)){h=!0;break}h&&(this.cl(r)||(n||(n=[]),n.push(r)))}i.length=0,n&&this.al(n);const o=this.an.getRect();let u;u=this.Zr?Yt(o,.25,2):o;const l=this.Zr?Yt(o,.25,.25):o;for(let t=0;t<this.Kt.length;t++){const i=this.Kt[t];if(0==i.getState()||i.hasOwner()||i.element.R1())continue;const s=this.Zr&&i.isDisplayed()&&i.overlaps(l);i.setInViewport(s)}if(u)for(let t=0;t<this.Kt.length;t++){const i=this.Kt[t];i.isBuilt()||i.isBuilding()||i.hasOwner()||i.element.R1()||!i.hasBeenMeasured()||!i.isDisplayed()||!i.overlaps(u)||this.Zu(i,!0,!0),2!=i.getState()||i.hasOwner()||i.isDisplayed()&&i.overlaps(u)&&this.scheduleLayoutOrPreload(i,!0)}if(this.Zr&&this.fl(t)){let t=0;for(let i=0;i<this.Kt.length&&t<4;i++){const s=this.Kt[i];2==s.getState()&&!s.hasOwner()&&!s.element.R1()&&s.isDisplayed()&&s.idleRenderOutsideViewport()&&(this.scheduleLayoutOrPreload(s,!1),t++)}for(let i=0;i<this.Kt.length&&t<4;i++){const s=this.Kt[i];2!=s.getState()||s.hasOwner()||s.element.R1()||!s.isDisplayed()||(this.scheduleLayoutOrPreload(s,!1),t++)}}}fl(t=Date.now()){const i=this.Ou.getLastDequeueTime();return 0==this.Ou.getSize()&&0==this.Vi.getSize()&&t>i+5e3&&i>0}pl(){const t=this.win.Date.now();let i=-1,s=this.Vi.peek(this.Cu);for(;s&&(i=this.ml(s),!(i>16));){this.Vi.dequeue(s);const e=this.Ou.getTaskById(s.id);if(e){const t=this._l.bind(this,s);e.promise.then(t,t)}else{const{resource:i}=s,e=!0;i.measure(),e&&this.Al(i,s.forceOutsideViewport)?(s.promise=s.callback(),s.startTime=t,this.Ou.enqueue(s),s.promise.then(this.gl.bind(this,s,!0),this.gl.bind(this,s,!1)).catch(In)):i.layoutCanceled()}s=this.Vi.peek(this.Cu),i=-1}if(i>=0)return i;let e=2*(t-this.Ou.getLastDequeueTime());return e=Math.max(Math.min(3e4,e),5e3),e}ku(t){const i=this.an.getRect(),s=t.resource.getLayoutBox();let e=Math.floor((s.top-i.top)/i.height);return Math.sign(e)!=this.getScrollDirection()&&(e*=2),e=Math.abs(e),10*t.priority+e}ml(t){const i=this.win.Date.now();if(0==this.Ou.getSize()){if(-1===this.Ru)return 0;const s=1e3*t.priority;return Math.max(s-(i-this.Ru),0)}let s=0;return this.Ou.forEach((e=>{const n=Math.max(1e3*(t.priority-e.priority),0);s=Math.max(s,n-(i-e.startTime))})),s}_l(t){this.Vi.getTaskById(t.id)||this.Vi.enqueue(t)}gl(t,i,s){if(this.Ou.dequeue(t),this.schedulePass(1e3),!i)return Promise.reject(s)}Al(t,i){if(0==t.getState()||!t.isDisplayed())return!1;const s=this.ampdoc.getVisibilityState(),e=s==Ps.PRERENDER&&t.prerenderAllowed(),n=s==Ps.PREVIEW&&t.previewAllowed();return!!(this.Zr||e||n)&&!!(i||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())}scheduleLayoutOrPreload(t,i,s,e){if(t.element.R1())return;const n=0!=t.getState(),r=t.isDisplayed();n&&r||Et(!1);const h=e||!1;this.Al(t,h)&&(i?this.Wi(t,"L",0,s||0,h,t.startLayout.bind(t)):this.Wi(t,"P",2,s||0,h,t.startLayout.bind(t)))}Wi(t,i,s,e,n,r){const h=t.getTaskId(i),o={id:h,resource:t,priority:Math.max(t.getLayoutPriority(),e)+s,forceOutsideViewport:n,callback:r,scheduleTime:this.win.Date.now(),startTime:0,promise:null},u=this.Vi.getTaskById(h);(!u||o.priority<u.priority)&&(u&&this.Vi.dequeue(u),this.Vi.enqueue(o),this.schedulePass(this.ml(o))),o.resource.layoutScheduled(o.scheduleTime)}whenFirstPass(){return this.zu.promise}Ku(t){const{HIDDEN:i,INACTIVE:s,PAUSED:e,PRERENDER:n,PREVIEW:r,VISIBLE:h}=Ps,o=()=>{const t=this.an.getSize();if(t.height>0&&t.width>0){this.ol()&&this.ul(),this.dl();let t=this.pl();this.ol()&&(t=Math.min(t,500)),this.Zr&&this.schedulePass(t),this.zu.resolve()}},u=()=>{},l=()=>{this.Kt.forEach((t=>t.pause()))},c=()=>{this.Kt.forEach((t=>{t.unload(),this.nl(t)})),this.Pl()},a=()=>{this.Kt.forEach((t=>t.resume())),o()};t.addTransition(n,n,o),t.addTransition(n,r,o),t.addTransition(n,h,o),t.addTransition(n,i,o),t.addTransition(n,s,o),t.addTransition(n,e,o),t.addTransition(r,r,o),t.addTransition(r,h,o),t.addTransition(r,i,o),t.addTransition(r,s,o),t.addTransition(r,e,o),t.addTransition(h,h,o),t.addTransition(h,i,o),t.addTransition(h,s,c),t.addTransition(h,e,l),t.addTransition(i,h,o),t.addTransition(i,i,o),t.addTransition(i,s,c),t.addTransition(i,e,l),t.addTransition(s,h,a),t.addTransition(s,i,a),t.addTransition(s,s,u),t.addTransition(s,e,o),t.addTransition(e,h,a),t.addTransition(e,i,o),t.addTransition(e,s,c),t.addTransition(e,e,u)}Pl(){try{this.win.getSelection().removeAllRanges()}catch(t){}}nl(t,i){if(1!=t.getState()&&2!=t.getState()||(this.Vi.purge((i=>i.resource==t)),this.Ou.purge((i=>i.resource==t)),I(this.Nu,(i=>i.resource===t))),0==t.getState()&&i&&this.Du){const i=this.Du.indexOf(t);-1!=i&&this.Du.splice(i,1)}}Ju(t){const{target:i}=t;if(i.nodeType!==Node.ELEMENT_NODE)return;if(i===this.an.getScrollingElement())return;const s=i;this.ju.includes(s)||(this.ju.push(s),this.schedulePass(70))}})}(t),function(t){Ii(t,"owners",class{constructor(t){this.Kt=us(t)}setOwner(t,i){Vn.setOwner(t,i)}schedulePreload(t,i){this.vl(this.Kt.getResourceForElement(t),!1,qh(i))}scheduleLayout(t,i){this.vl(this.Kt.getResourceForElement(t),!0,qh(i))}schedulePause(t,i){const s=this.Kt.getResourceForElement(t);i=qh(i),this.El(s,i,(t=>{t.pause()}))}scheduleResume(t,i){const s=this.Kt.getResourceForElement(t);i=qh(i),this.El(s,i,(t=>{t.resume()}))}scheduleUnlayout(t,i){const s=this.Kt.getResourceForElement(t);i=qh(i),this.El(s,i,(t=>{t.unlayout()}))}requireLayout(t,i){const s=[];return this.Tl(t,(t=>{s.push(t.element.ensureLoaded())})),Promise.all(s)}El(t,i,s){for(var e,r=n(i,!0);!(e=r()).done;){const i=e.value;Et(t.element.contains(i)),this.Tl(i,s)}}Tl(t,i){if(t.classList.contains("i-amphtml-element")){i(this.Kt.getResourceForElement(t));const s=t.getPlaceholder();s&&this.Tl(s,i)}else{const s=t.getElementsByClassName("i-amphtml-element"),e=[];for(let t=0;t<s.length;t++){const n=s[t];let r=!1;for(let t=0;t<e.length;t++)if(e[t].contains(n)){r=!0;break}r||(e.push(n),i(this.Kt.getResourceForElement(n)))}}}vl(t,i,s){this.El(t,s,(i=>{i.element.ensureLoaded(t.getLayoutPriority())}))}})}(t),function(t){Ii(t,"mutator",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Kt=us(t),this.an=_s(this.ampdoc),this.cr=ms(this.win),this.Uu=new Ch(this.win,6e4),this.Uu.onFocus((t=>{this.yl(t)}))}forceChangeSize(t,i,s,e,n){this.Il(Vn.forElement(t),i,s,n,void 0,!0,e)}requestChangeSize(t,i,s,e,n){return new Promise(((r,h)=>{this.Il(Vn.forElement(t),i,s,e,n,!1,(t=>{t?r():h(new Error("changeSize attempt denied"))}))}))}expandElement(t){Vn.forElement(t).completeExpand(),this.Kt.schedulePass(70)}attemptCollapse(t){return new Promise(((i,s)=>{this.Il(Vn.forElement(t),0,0,void 0,void 0,!1,(e=>{e?(Vn.forElement(t).completeCollapse(),i()):s(vt().createExpectedError("collapse attempt denied"))}))}))}collapseElement(t){const i=this.an.getLayoutRect(t);0!=i.width&&0!=i.height&&(Oe(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.Kt.setRelayoutTop(i.top)),Vn.forElement(t).completeCollapse(),this.Kt.schedulePass(70)}measureElement(t){return this.cr.measurePromise(t)}mutateElement(t,i,s){return this.Ml(t,null,i,s)}measureMutateElement(t,i,s){return this.Ml(t,i,s)}Rl(t){const i=Ss(this.win,t.element);return{top:parseInt(i.marginTop,10)||0,right:parseInt(i.marginRight,10)||0,bottom:parseInt(i.marginBottom,10)||0,left:parseInt(i.marginLeft,10)||0}}Ml(t,i,s,e=!1){const n=()=>{const i=this.an.getLayoutRect(t);return 0!=i.width&&0!=i.height?i.top:-1};let r=-1;return this.cr.runPromise({measure:()=>{i&&i(),e||(r=n())},mutate:()=>{if(s(),e)return;t.classList.contains("i-amphtml-element")&&Vn.forElement(t).requestMeasure();const i=t.getElementsByClassName("i-amphtml-element");for(let t=0;t<i.length;t++)Vn.forElement(i[t]).requestMeasure();this.Kt.schedulePass(70),-1!=r&&this.Kt.setRelayoutTop(r),this.cr.measure((()=>{const t=n();-1!=t&&t!=r&&(this.Kt.setRelayoutTop(t),this.Kt.schedulePass(70)),this.Kt.maybeHeightChanged()}))}})}dirtyElement(t){let i=!1;if(t.classList.contains("i-amphtml-element")){const i=Vn.forElement(t);this.Kt.setRelayoutTop(i.getLayoutBox().top)}else i=!0;this.Kt.schedulePass(70,i)}yl(t){const i=Vt(t,(t=>!!Vn.forElementOptional(t)));if(!i)return;const s=Vn.forElement(i),e=s.getPendingChangeSize();void 0!==e&&this.Il(s,e.height,e.width,e.margins,void 0,!0)}Il(t,i,s,e,n,r,h){t.hasBeenMeasured()&&!e?this.wl(t,i,s,void 0,n,r,h):this.cr.measure((()=>{t.hasBeenMeasured()||t.measure();const o=e?{newMargins:e,currentMargins:this.Rl(t)}:void 0;this.wl(t,i,s,o,n,r,h)}))}wl(t,i,s,e,n,r,h){t.resetPendingChangeSize();const o=t.getLayoutSize();if(!(void 0!==i&&i!=o.height||void 0!==s&&s!=o.width||void 0!==e&&(u=e.currentMargins,l=e.newMargins,void 0!==l.top&&l.top!=u.top||void 0!==l.right&&l.right!=u.right||void 0!==l.bottom&&l.bottom!=u.bottom||void 0!==l.left&&l.left!=u.left)))return void 0===i&&void 0===s&&void 0===e&&vt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(h&&h(!0));var u,l;this.Kt.updateOrEnqueueMutateTask(t,{resource:t,newHeight:i,newWidth:s,marginChange:e,event:n,force:r,callback:h}),this.Kt.schedulePassVsync()}})}(t),function(t){Ii(t,"url-replace",(function(t){return new class{constructor(t,i){this.ampdoc=t,this.zn=i}expandStringSync(t,i,s){return new oo(this.zn,i,void 0,!0,s,!0).expand(t)}expandStringAsync(t,i,s){return new oo(this.zn,i,void 0,void 0,s,!0).expand(t)}expandUrlSync(t,i,s){return this.bl(t,new oo(this.zn,i,void 0,!0,s).expand(t))}expandUrlAsync(t,i,s,e){return new oo(this.zn,i,void 0,void 0,s,e).expand(t).then((i=>this.bl(t,i)))}expandInputValueAsync(t){return this.Vl(t,!1)}expandInputValueSync(t){return this.Vl(t,!0)}Vl(t,i){Et("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());const s=this.Sl(t);if(!s)return i?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);const e=new oo(this.zn,void 0,void 0,i,s).expand(t["amp-original-value"]||t.value);return i?t.value=e:e.then((i=>(t.value=i,i)))}Sl(t,i){const s=t.getAttribute("data-amp-replace");if(!s)return;const e={};return s.trim().split(/\s+/).forEach((t=>{i&&!A(i,t)||(e[t]=!0)})),e}xl(t){const i=ts(this.ampdoc);if(t.origin==sn(i.canonicalUrl).origin||t.origin==sn(i.sourceUrl).origin)return!0;const s=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(s){const i=s.trim().split(/\s+/);for(let s=0;s<i.length;s++)if(t.origin==sn(i[s]).origin)return!0}return!1}maybeExpandLink(t,i){Et("A"==t.tagName);const s=t;let e=s.getAttribute("data-amp-addparams")||"";const n=this.Sl(s,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(!n&&!e&&!i)return;let r=s["amp-original-href"]||s.getAttribute("href");const h=sn(r);null==s["amp-original-href"]&&(s["amp-original-href"]=r);const o=this.xl(h);if(e&&(e=o?this.Ol(e,n):e,r=hn(r,J(e))),!o)return s.href=r;if(i){if(!n||!n.QUERY_PARAM){const t={"QUERY_PARAM":!0};i=this.expandUrlSync(i,void 0,t)}r=hn(r,J(i))}return r=this.Ol(r,n),s.href=r}Ol(t,i){return i?this.expandUrlSync(t,void 0,i):t}collectVars(t,i){const s=Object.create(null);return new oo(this.zn,i,s).expand(t).then((()=>s))}collectDisallowedVarsSync(t){const i=t.getAttribute("src"),s=new oo(this.zn).getMacroNames(i),e=this.Sl(t);return e?s.filter((t=>!e[t])):s}bl(t,i){return sn(i).protocol!=sn(t).protocol?(Pt().error(fo,"Illegal replacement of the protocol: ",t),t):(Tt(dn(i),"The replacement url has invalid protocol: %s",i),i)}getVariableSource(){return this.zn}}(t,new class extends class{constructor(t){this.ampdoc=t,this.Cl=Object.create(null),this.kl=!1,this.Nl()}Ys(){this.initialize(),this.kl=!0}initialize(){}get(t){return this.kl||this.Ys(),this.Cl[t]}set(t,i){return Et(-1==t.indexOf("RETURN")),this.Cl[t]=this.Cl[t]||{sync:void 0,async:void 0},this.Cl[t].sync=i,this}setAsync(t,i){return Et(-1==t.indexOf("RETURN")),this.Cl[t]=this.Cl[t]||{sync:void 0,async:void 0},this.Cl[t].async=i,this}setBoth(t,i,s){return this.set(t,i).setAsync(t,s)}getExpr(t,i){this.kl||this.Ys();const s=E(E({},this.Cl),t);return this.Dl(Object.keys(s),i)}Dl(t,i){if(this.Nl()&&(t=t.filter((t=>this.Nl().includes(t)))),i&&(t=t.filter((t=>i[t]))),0===t.length)return/_^/g;t.sort(((t,i)=>i.length-t.length));const s=t.map((t=>"$"===t[0]?"\\"+t:t)).join("|");return new RegExp("\\$?("+s+")","g")}Nl(){return this.Ll?this.Ll:this.ampdoc.isSingleDoc()&&Tr(this.ampdoc.getRootNode())?(this.Ll=[""],this.Ll):void 0}}{constructor(t){super(t),this.Ul=null}$l(t,i,s){return this.setBoth(t,(()=>co(this.ampdoc.win,i,s)),(()=>lo(this.ampdoc.win,i,s)))}initialize(){const{win:t}=this.ampdoc,i=this.ampdoc.getHeadNode(),s=_s(this.ampdoc);ds(this.ampdoc).then((t=>{this.Ul=t})),this.set("RANDOM",(()=>Math.random()));const e=Object.create(null);this.set("COUNTER",(t=>e[t]=1+(0|e[t]))),this.set("CANONICAL_URL",(()=>this.Fl().canonicalUrl)),this.set("CANONICAL_HOST",(()=>sn(this.Fl().canonicalUrl).host)),this.set("CANONICAL_HOSTNAME",(()=>sn(this.Fl().canonicalUrl).hostname)),this.set("CANONICAL_PATH",(()=>sn(this.Fl().canonicalUrl).pathname)),this.setAsync("DOCUMENT_REFERRER",(()=>ps(this.ampdoc).getReferrerUrl())),this.setAsync("EXTERNAL_REFERRER",(()=>ps(this.ampdoc).getReferrerUrl().then((i=>i?sn(mn(i)).hostname===Ns.getHostname(t)?null:i:null)))),this.set("TITLE",(()=>{const i=t.document;return i.originalTitle||i.title})),this.set("AMPDOC_URL",(()=>cn(this.Bl(t.location.href)))),this.set("AMPDOC_HOST",(()=>{const i=sn(t.location.href);return i&&i.host})),this.set("AMPDOC_HOSTNAME",(()=>{const i=sn(t.location.href);return i&&i.hostname}));const n=()=>{const t=this.Fl();return cn(this.Bl(t.sourceUrl))};this.setBoth("SOURCE_URL",(()=>n()),(()=>Lh().then((()=>n())))),this.set("SOURCE_HOST",(()=>sn(this.Fl().sourceUrl).host)),this.set("SOURCE_HOSTNAME",(()=>sn(this.Fl().sourceUrl).hostname)),this.set("SOURCE_PATH",(()=>sn(this.Fl().sourceUrl).pathname)),this.set("PAGE_VIEW_ID",(()=>this.Fl().pageViewId)),this.setAsync("PAGE_VIEW_ID_64",(()=>this.Fl().pageViewId64)),this.setBoth("QUERY_PARAM",((t,i="")=>this.Hl(t,i)),((t,i="")=>Lh().then((()=>this.Hl(t,i))))),this.set("FRAGMENT_PARAM",((t,i="")=>this.jl(t,i)));let h=null;this.setBoth("CLIENT_ID",(t=>h?h[t]:null),((t,s,e,n)=>{Tt(t,"The first argument to CLIENT_ID, the fallback Cookie name, is required");let o=r();return s&&(o=(t=>Hi(t,"userNotificationManager","amp-user-notification"))(i).then((t=>t.get(s)))),Xi(this.ampdoc).then((i=>(n="true"==n,i.get({scope:t,createCookieIfNotPresent:!0,cookieName:e||void 0,disableBackup:n},o)))).then((i=>(h||(h=Object.create(null)),i&&"_ga"==(e||t)&&("string"==typeof i?i=i.replace(/^(GA1|1)\.[\d-]+\./,""):vt().error(fo,"non-string cid, what is it?",Object.keys(i))),h[t]=i,i)))})),this.setAsync("VARIANT",(t=>this.zl((i=>{const s=i[t];return Tt(void 0!==s,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+t),null===s?"none":s}),"VARIANT"))),this.setAsync("VARIANTS",(()=>this.zl((t=>{const i=[];for(const s in t){const e=t[s];i.push(s+"."+(e||"none"))}return i.join("!")}),"VARIANTS"))),this.setBoth("AMP_GEO",(t=>_o(this.Ul,t)),(t=>this.Gl((i=>_o(i,t)),"AMP_GEO"))),this.set("TIMESTAMP",po("getTime")),this.set("TIMESTAMP_ISO",po("toISOString")),this.set("TIMEZONE",po("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(()=>s.getScrollHeight())),this.set("SCROLL_WIDTH",(()=>s.getScrollWidth())),this.set("VIEWPORT_HEIGHT",(()=>s.getHeight())),this.set("VIEWPORT_WIDTH",(()=>s.getWidth()));const{screen:o}=t;this.set("SCREEN_WIDTH",mo(o,"width")),this.set("SCREEN_HEIGHT",mo(o,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",mo(o,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",mo(o,"availWidth")),this.set("SCREEN_COLOR_DEPTH",mo(o,"colorDepth")),this.set("DOCUMENT_CHARSET",(()=>{const i=t.document;return i.characterSet||i.charset})),this.set("BROWSER_LANGUAGE",(()=>{const i=t.navigator;return(i.language||i.userLanguage||i.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(()=>t.navigator.userAgent)),this.setAsync("UACH",(i=>{var s,e,n;return(null===(s=t.navigator)||void 0===s||null===(e=s.userAgentData)||void 0===e||null===(n=e.getHighEntropyValues([i]))||void 0===n?void 0:n.then((t=>"object"!=typeof t[i]?t[i]:JSON.stringify(t[i]))))||Promise.resolve("")})),this.$l("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.$l("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.$l("TCP_CONNECT_TIME","connectStart","connectEnd"),this.$l("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.$l("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.$l("REDIRECT_TIME","navigationStart","fetchStart"),this.$l("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.$l("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(()=>this.ql((t=>t.getAccessReaderId()),"ACCESS_READER_ID"))),this.setAsync("AUTHDATA",(t=>(Tt(t,"The first argument to AUTHDATA, the field, is required"),this.ql((i=>i.getAuthdataField(t)),"AUTHDATA")))),this.setAsync("VIEWER",(()=>ps(this.ampdoc).getViewerOrigin().then((t=>null==t?"":t)))),this.setAsync("TOTAL_ENGAGED_TIME",(()=>Ki(i).then((t=>t.getTotalEngagedTime())))),this.setAsync("INCREMENTAL_ENGAGED_TIME",((t,s)=>Ki(i).then((i=>i.getIncrementalEngagedTime(t,"false"!==s))))),this.set("NAV_TIMING",((i,s)=>(Tt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),co(t,i,s)))),this.setAsync("NAV_TIMING",((i,s)=>(Tt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),lo(t,i,s)))),this.set("NAV_TYPE",(()=>ao(t,"type"))),this.set("NAV_REDIRECT_COUNT",(()=>ao(t,"redirectCount"))),this.set("AMP_VERSION",(()=>"2203172113000")),this.set("BACKGROUND_STATE",(()=>this.ampdoc.isVisible()?"0":"1")),this.setAsync("VIDEO_STATE",((t,i)=>{return(s=this.ampdoc,yi(s,"video-manager")).getVideoStateProperty(t,i);var s})),this.setAsync("AMP_STATE",(t=>{const i=this.ampdoc.getRootNode(),s=i.documentElement||i;return Ji(s).then((i=>i&&i.getStateValue(t)||""))}))}Bl(t){const{replaceParams:i}=this.Fl();return i?function(t,i){const s=J(sn(t).search),e={},n=Object.keys(i);for(let t=0;t<n.length;t++)A(s,n[t])||(e[n[t]]=i[n[t]]);return hn(t,e)}(fn(t),i):t}Fl(){return ts(this.ampdoc)}ql(t,i){const s=this.ampdoc.getHeadNode();return Promise.all([Gi(s),qi(s)]).then((s=>{const e=s[0],n=s[1],r=e||n;return r?e&&n?t(n)||t(e):t(r):(Pt().error(fo,"Access or subsciptions service is not installed to access: ",i),null)}))}Hl(t,i){Tt(t,"The first argument to QUERY_PARAM, the query string param is required");const s=J(sn(fn(this.ampdoc.win.location.href)).search),{replaceParams:e}=this.Fl();return void 0!==s[t]?s[t]:e&&void 0!==e[t]?e[t]:i}jl(t,i){Tt(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),Tt("string"==typeof t,"param should be a string");const s=X(this.ampdoc.win);return void 0===s[t]?i:s[t]}zl(t,i){return(s=this.ampdoc.getHeadNode(),ji(s,"variant","amp-experiment",!0)).then((t=>(Tt(t,"To use variable %s, amp-experiment should be configured",i),t.getVariants()))).then((i=>t(i)));var s}Gl(t,i){return null!==this.Ul?t(this.Ul):ds(this.ampdoc.getHeadNode()).then((s=>(Tt(s,"To use variable %s, amp-geo should be configured",i),this.Ul=s,t(s))))}}(t))}))}(t),function(t){Ii(t,"action",class{constructor(t,i){this.ampdoc=t,this.pu=i||t.getRootNode(),this.Wl=this.ampdoc.isSingleDoc()&&Tr(this.pu),this.Kn=this.Wl?Vr:null,this.Kl=_(),this.Yl=_(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}addEvent(t){if("tap"==t)this.pu.addEventListener("click",(i=>{if(!i.defaultPrevented){const s=i.target;this.trigger(s,t,i,3)}})),this.pu.addEventListener("keydown",(i=>{const{key:s,target:e}=i,n=e;if("Enter"==s||" "==s){const s=n.getAttribute("role"),e=s&&A(Sr,s.toLowerCase());!i.defaultPrevented&&e&&this.trigger(n,t,i,3)&&i.preventDefault()}}));else if("submit"==t)this.pu.addEventListener(t,(i=>{const s=i.target;this.trigger(s,t,i,3)}));else if("change"==t)this.pu.addEventListener(t,(i=>{const s=i.target;this.Jl(i),this.trigger(s,t,i,3)}));else if("input-debounced"==t){const i=W(this.ampdoc.win,(i=>{const s=i.target;this.trigger(s,t,i,3)}),300);this.pu.addEventListener("input",(t=>{const s=new Cr(t);this.Jl(s),i(s)}))}else if("input-throttled"==t){const i=q(this.ampdoc.win,(i=>{const s=i.target;this.trigger(s,t,i,3)}),100);this.pu.addEventListener("input",(t=>{const s=new Cr(t);this.Jl(s),i(s)}))}else"valid"!=t&&"invalid"!=t||this.pu.addEventListener(t,(i=>{const s=i.target;this.trigger(s,t,i,3)}))}addGlobalTarget(t,i){this.Kl[t]=i}addGlobalMethodHandler(t,i,s=2){this.Yl[t]={handler:i,minTrust:s}}trigger(t,i,s,e,n){return this.Ql(t,i,s,e,n)}execute(t,i,s,e,n,r,h){const o=new xr(t,i,s,e,n,r,h);this.Xl(o)}installActionHandler(t,i){if(Et(Or(t.getAttribute("id")||"")||t.tagName.toLowerCase()in wr),t[br])return void vt().error(Ir,`Action handler already installed for ${t}`);t[br]=i;const s=t[yr];T(s)&&cs(Mt(t)).delay((()=>{s.forEach((t=>{try{i(t)}catch(i){vt().error(Ir,"Action execution failed:",t,i)}})),t[yr].length=0}),1)}hasAction(t,i,s){return!!this.Zl(t,i,s)}hasResolvableAction(t,i,s){const e=this.Zl(t,i,s);return!!e&&e.actionInfos.some((t=>{const{target:i}=t;return!!this.tc(i)}))}hasResolvableActionForTarget(t,i,s,e){const n=this.Zl(t,i,e);return!!n&&n.actionInfos.some((t=>{const{target:i}=t;return this.tc(i)==s}))}tc(t){return this.Kl[t]?this.pu:this.pu.getElementById(t)}setAllowlist(t){Et(t.every((t=>t.tagOrTarget&&t.method))),this.Kn=t}addToAllowlist(t,i,s){s&&s.includes("email")!==this.Wl||(this.Kn||(this.Kn=[]),T(i)||(i=[i]),i.forEach((i=>{this.Kn.some((s=>s.tagOrTarget==t&&s.method==i))||this.Kn.push({tagOrTarget:t,method:i})})))}Ql(t,i,s,e,r){const h=this.Zl(t,i);if(!h)return!1;const o=Math.random();let u=null;return h.actionInfos.forEach((l=>{const{args:c,method:a,str:d,target:f}=l,p=function(t,i,s){if(!t)return t;const e=s||{};if(i){const t=function(t){return t.detail}(i);t&&(e.event=t)}const r=_();return Object.keys(t).forEach((i=>{let s=t[i];if("object"==typeof s&&s.expression){const t=s.expression,i=function(t,i){if("."==i)return t;let s=t;for(var e,r=n(i.split("."),!0);!(e=r()).done;){const t=e.value;if(!(t&&s&&void 0!==s[t]&&"object"==typeof s&&A(s,t))){s=void 0;break}s=s[t]}return s}(e,t);s=void 0===i?null:i}e[s]?r[i]=e[s]:r[i]=s})),r}(c,s,r),m=()=>{const n=this.tc(f);if(!n)return void this.ic(`Target "${f}" not found for action [${d}].`);const r=new xr(n,a,p,t,h.node,s,e,i,n.tagName||f,o);return this.Xl(r)};u=u?u.then(m):m()})),h.actionInfos.length>=1}ic(t,i){if(i){const s=Pt().createError(`[Action] ${t}`);throw In(s,i),s}Pt().error(Ir,t)}Xl(t){const{method:i,tagOrTarget:s}=t;if(this.Kn&&!function(t,i){let{method:s}=t;const{node:e,tagOrTarget:n}=t;s===zn&&"function"==typeof e.getDefaultActionAlias&&(s=e.getDefaultActionAlias());const r=s.toLowerCase(),h=n.toLowerCase();return i.some((t=>(t.tagOrTarget.toLowerCase()===h||"*"===t.tagOrTarget)&&t.method.toLowerCase()===r))}(t,this.Kn))return this.ic(`"${s}.${i}" is not allowlisted ${JSON.stringify(this.Kn)}.`),null;const e=this.Kl[s];if(e)return e(t);const n=t.node,r=this.Yl[i];if(r&&t.satisfiesTrust(r.minTrust))return r.handler(t);const h=n.tagName.toLowerCase();if(Or(h))return n.enqueAction?n.enqueAction(t):this.ic(`Unrecognized AMP element "${h}".`,n),null;const o=wr[h];if(Or(n.getAttribute("id")||"")||o&&o.indexOf(i)>-1){const i=n[br];return i?i(t):(n[yr]=n[yr]||[],n[yr].push(t)),null}return this.ic(`Target (${s}) doesn't support "${i}" action.`,t.caller),null}Zl(t,i,s){let e=t;for(;e;){if(s&&e==s)return null;const t=this.sc(e,i);if(t&&!(n=e).disabled&&!wt(n,":disabled"))return{node:e,actionInfos:Et(t)};e=e.parentElement}var n;return null}sc(t,i){const s=this.ec(t,i);return s&&s[i]||null}ec(t,i){let s=t[Rr];return void 0===s&&(s=null,t.hasAttribute("on")?(s=Nr(t.getAttribute("on"),t),t[Rr]=s):t.hasAttribute("execute")&&(s=Nr(`${i}:${t.getAttribute("execute")}`,t),t[Rr]=s)),s}setActions(t,i){t.setAttribute("on",i),delete t[Rr]}Jl(t){const i=_(),{target:s}=t;if(void 0!==s.value&&(i.value=s.value),"INPUT"==s.tagName&&(i.valueAsNumber=Number(s.value)),void 0!==s.checked&&(i.checked=s.checked),void 0===s.min&&void 0===s.max||(i.min=s.min,i.max=s.max),s.files&&(i.files=(e=s.files,e?Array.prototype.slice.call(e):[]).map((t=>({"name":t.name,"size":t.size,"type":t.type})))),Object.keys(i).length>0)try{t.detail=i}catch(t){}var e}},!0)}(t),Zh(t),so(t),function(t){Ii(t,$h,class{constructor(t){this.ampdoc=t,this.nc=t.getRootNode(),this.an=_s(this.ampdoc),this.Ee=ps(this.ampdoc),this.tn=ss(this.ampdoc),this.Sr=hs(this.ampdoc.win),this.rc=this.Sr.isIos()&&this.Sr.isSafari(),this.$o=jt(this.ampdoc.win)&&this.Ee.isOvertakeHistory(),this.hc=this.nc!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.oc="inabox"==ht(this.ampdoc.win).runtime,this.uc=this.nc.nodeType==Node.DOCUMENT_NODE?this.nc.documentElement:this.nc,this.lc=this.cc.bind(this),this.nc.addEventListener(Fh,this.lc),this.nc.addEventListener(Bh,this.lc),this.ac=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this.ac=t})),this.su=!1,this.dc=!1,Promise.all([this.Ee.isTrustedViewer(),this.Ee.getViewerOrigin()]).then((t=>{var i;this.su=t[0],this.dc=(i=t[1],et.localhostRegex.test(tn(i).origin))})),this.fc=null,this.mc=new kn,this._c=new kn}static installAnchorClickInterceptor(t,i){i.document.documentElement.addEventListener("click",zh.bind(null,t),!0)}cleanup(){this.lc&&(this.nc.removeEventListener(Fh,this.lc),this.nc.removeEventListener(Bh,this.lc))}openWindow(t,i,s,e){let n="";!this.Sr.isIos()&&this.Sr.isChrome()||e||(n+="noopener");const r=Uh(t,i,s,n);r&&!e&&(r.opener=null)}navigateTo(t,i,s,e={}){const{opener:n=!1,target:r="_top"}=e;i=this.Ac(i);const h=fs(this.uc);if(!h.isProtocolValid(i))return void Pt().error($h,"Cannot navigate to invalid protocol: "+i);Tt(Hh.includes(r),`Target '${r}' not supported.`);const o=h.getSourceUrl(t.location);i=h.resolveRelativeUrl(i,o),"_blank"!=r?s&&(this.fc||(this.fc=this.gc()),this.fc.includes(s)&&this.navigateToAmpUrl(i,s))||(t.top.location.href=i):this.openWindow(t,i,r,n)}navigateToAmpUrl(t,i){return!!this.Ee.hasCapability("a2a")&&(this.Ee.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)}gc(){const t=this.nc.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}cc(t){if(t.defaultPrevented)return;const i=St(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==Fh?this.Pc(i,t):t.type==Bh&&this.vc(i,t))}Pc(t,i){this.Ec(t);let s=this.Tc(t.href);if(this.yc(i,t,s))return;if(this.Ic(i,t,s))return;const e=this.Mc();Gh(s)!=Gh(e)&&(this.Rc(t,i),s=this.Tc(t.href)),this.wc(i,t,s,e)}vc(t,i){this.Ec(t),this.Rc(t,i)}Rc(t,i){this.mc.forEach((s=>{s(t,i)}))}Ac(t){return this._c.forEach((i=>{t=i(t)})),t}Ec(t){let i=null;this.ac&&!this.hc&&(i=function(t,i){const s=J(sn(Ns.getLocation(t).href).search),e=[];for(let t=0;t<Nh.length;t++){const i=Nh[t];void 0!==s[i]&&e.push(i)}const n=i.getAttribute("data-amp-addparams");let{href:r}=i;n&&(r=hn(r,J(n)));const h=J(sn(r).search);for(let t=e.length-1;t>=0;t--)void 0!==h[e[t]]&&e.splice(t,1);return function(t){let i="";for(let s=0;s<t.length;s++){const e=t[s];i+=0==s?`${e}=QUERY_PARAM(${e})`:`&${e}=QUERY_PARAM(${e})`}return i}(e)}(this.ampdoc.win,t)),as(t).maybeExpandLink(t,i)}Ic(t,i,s){if(!this.$o)return!1;const e=Mt(i),n=i.href,{protocol:r}=s;if("ftp:"==r)return Uh(e,n,"_blank"),t.preventDefault(),!0;const h=/^(https?|mailto):$/.test(r);return!(!this.rc||h||(Uh(e,n,"_top"),t.preventDefault(),0))}yc(t,i,s){return!(!i.hasAttribute("rel")||!i.getAttribute("rel").split(" ").map((t=>t.trim())).includes("amphtml")||!this.navigateToAmpUrl(s.href,"<a rel=amphtml>")||(t.preventDefault(),0))}wc(t,i,s,e){const n=Gh(s),r=Gh(e);if(s.hash&&n==r)this.bc(t,s,e);else{let s=(i.getAttribute("target")||"").toLowerCase();(this.hc||this.oc)&&"_top"!=s&&"_blank"!=s&&(s="_blank",i.setAttribute("target",s));const{win:r}=this.ampdoc,h=hs(r),o=ps(i);e.search&&h.isSafari()&&h.getMajorVersion()>=13&&o.isProxyOrigin()&&o.isEmbedded()&&this.Vc(r,e,s),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}Vc(t,i,s){const e=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,"",e):vt().error($h,"Unexpected iframe URL change:",i,n)};"_blank"===s?t.setTimeout(r,0):t.addEventListener("pageshow",(function i(s){s.persisted&&(r(),t.removeEventListener("pageshow",i))}))}bc(t,i,s){if(t.preventDefault(),this.hc)return;const e=i.hash.slice(1);let n=null;if(e){const t=Rt(e);n=this.nc.getElementById(e)||this.nc.querySelector(`a[name="${t}"]`)}i.hash!=s.hash?this.tn.replaceStateForTarget(i.hash).then((()=>{this.Sc(n,e)})):this.Sc(n,e)}registerAnchorMutator(t,i){this.mc.enqueue(t,i)}registerNavigateToMutator(t,i){this._c.enqueue(t,i)}Sc(t,i){t&&(this.an.scrollIntoView(t),cs(this.ampdoc.win).delay((()=>this.an.scrollIntoView(t)),1))}Tc(t){return fs(this.uc).parse(t)}Mc(){return this.Tc("")}viewerInterceptsNavigation(t,i){const s=this.Ee.hasCapability("interceptNavigation"),e=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!s||!e||!this.su&&!this.dc||(this.Ee.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))}},!0)}(t),function(t){t.whenExtensionsKnown().then((()=>{t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",ko,!0)}))}(t),Ii(t,"loadingIndicator",class{constructor(t){this._i=t;const{win:i}=t,s=this.xc.bind(this);this.Oc=function(t,i,s={}){const{needsRootBounds:e,rootMargin:n,threshold:r}=s,h=jt(i)&&(e||n)?i.document:void 0;return new i.IntersectionObserver(t,{threshold:r,root:h,rootMargin:n})}((t=>t.forEach(s)),i),this.yh=new WeakMap}dispose(){this.Oc.disconnect()}track(t){this.Oc.observe(t)}untrack(t){this.Oc.unobserve(t),this.hn(t)}xc(t){const{boundingClientRect:i,isIntersecting:s,target:e}=t,{height:n,width:r}=i,h=e,o=s&&r>20&&n>20;let u=this.yh.get(h);o!==(u&&u.shown||!1)&&(o&&!u&&(u=this.Cc(h,r,n),this.yh.set(h,u)),u&&(u.shown=o,u.container.classList.toggle("amp-hidden",!o),u.loader.classList.toggle("amp-active",o)))}Cc(t,i,s){const e=Date.now(),n=function(t,i,s,e,n=t.win.Date.now()){const r=i.ownerDocument.createElement("div");return function(t,i){return is(t.win).installExtensionForDoc(t,"amp-loader").then((()=>(t=>Hi(t,"loader","amp-loader"))(i)))}(t,i).then((h=>{const o=t.win.Date.now()-n;h.initializeLoader(i,r,o,s,e)})),r}(this._i,t,i,s,e),r=Ie(this._i.win.document)(Oh);return r.appendChild(n),t.appendChild(r),{shown:!1,loader:n,container:r}}hn(t){const i=this.yh.get(t);i&&(this.yh.delete(t),Ut(i.container))}})}(t)}function Fo(t){return t.waitForBodyOpen().then((()=>{const i=t.getBody(),s=(e=i,n=()=>!!i.firstElementChild,new Promise((t=>{Nt(e,n,t)})));var e,n;return cs(t.win).timeoutPromise(2e3,s).then((()=>"AMP-STORY"===i.firstElementChild.tagName),(()=>!1))}))}var Bo=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Ho(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:s}=i;return"IMG"===s||"AMP-IMG"===s?1:"VIDEO"===s||"AMP-VIDEO"===s?2:"AMP-CAROUSEL"===s?8:"AMP-BASE-CAROUSEL"===s?16:"AMP-AD"===s?4:!s.startsWith("AMP-")&&i.textContent?32:0}function jo(t){const i=t.document;if(!i.fonts||!i.fonts.values)return;const s=i.fonts.values();let e;for(;e=s.next();){const t=e.value;if(!t)return;"loading"==t.status&&"display"in t&&"auto"==t.display&&(t.display="swap")}}var zo=["amp-ad","amp-embed","amp-video"],Go="extensions",qo="latest",Wo="__AMP_EXT_LDR";function Ko(t){zo.forEach((i=>{lr(t,i)}))}function Yo(){return{}}function Qo(t,i){return`${t}:${i}`}var Jo,Xo="-shadowcsshost",Zo=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("("+Xo+Zo,"gim"),new RegExp("(-shadowcsscontext"+Zo,"gim"),new RegExp(Xo,"gim"),new RegExp("-shadowcsscontext","gim"),_t=class{constructor(t,i,s=""){this.win=t,this.J=i,this.W=this.X(),this.B=s,this.Z=null,this.K=function(t){let i=!1,s=null,e=t;return(...t)=>(i||(s=e.apply(self,t),i=!0,e=null),s)}((()=>{t.fetch(`${et.cdn}/rtv/012203172113000/log-messages.simple.json`).then((t=>t.json()),lt).then((t=>{t&&(this.Z=t)}))})),this.Y=this.assert.bind(this)}X(){var t;const{win:i}=this;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=pt(i)?this.tt():0}tt(t){return this.J(pt(t),!1)}et(t,i,s){var e,n;if(i>(null!==(e=ct)&&void 0!==e?e:this.W))return!1;const r=this.win.console,h=null!==(n={1:r.error,3:r.info,2:r.warn}[i])&&void 0!==n?n:r.log,o=this.nt(s),u=`[${t}]`;return w(o[0])?o[0]=u+" "+o[0]:o.unshift(u),h.apply(r,o),!0}fine(t,...i){this.et(t,4,i)}info(t,...i){this.et(t,3,i)}warn(t,...i){this.et(t,2,i)}error(t,...i){if(!this.et(t,1,i)){var s,e;const n=this.createError.apply(this,i);n.name=t||n.name,null===(s=(e=self).__AMP_REPORT_ERROR)||void 0===s||s.call(e,n)}}expectedError(t,...i){var s,e;this.et(t,1,i)||null===(s=(e=self).__AMP_REPORT_ERROR)||void 0===s||s.call(e,this.createExpectedError.apply(this,i))}createError(t){return this.rt(l.apply(null,arguments))}createExpectedError(t){return this.rt(d.apply(null,arguments))}rt(t){return t=u(t),this.B?t.message?-1==t.message.indexOf(this.B)&&(t.message+=this.B):t.message=this.B:k(t.message)&&(t.message=N(t.message)),t}nt(t){return T(t[0])?this.ot(t[0]):t}ot(t){var i;const s=t.shift();return null!==(i=this.Z)&&void 0!==i&&i[s]?[this.Z[s]].concat(t):[`More info at ${dt(s,t)}`]}assert(t,i,s){return T(i)?this.assert.apply(this,[t].concat(this.ot(i))):D.apply(null,[this.B].concat(Array.prototype.slice.call(arguments)))}assertElement(t,i){return function(t,i,s){return L(t,i,V(i),"Element expected",s)}(this.Y,t,i)}assertString(t,i){return function(t,i,s){return L(t,i,w(i),"String expected",s)}(this.Y,t,i)}assertNumber(t,i){return function(t,i,s){return L(t,i,"number"==typeof i,"Number expected",s)}(this.Y,t,i)}assertArray(t,i){return function(t,i,s){return L(t,i,T(i),"Array expected",s)}(this.Y,t,i)}assertBoolean(t,i){return function(t,i,s){return L(t,i,!!i===i,"Boolean expected",s)}(this.Y,t,i)}},vt(),Pt(),Jo=function(t,i,s){In(i,s),i&&t&&k(i.message)&&!(i.message.indexOf(O)>=0)&&function(t,i){if(Qi(i).isSingleDoc()){const s={"errorName":t.name,"errorMessage":t.message};!function(t,i,s={},e=!0){var n;(n=t,ji(n,"amp-analytics-instrumentation","amp-analytics")).then((n=>{n&&n.triggerEventForTarget(t,i,s,e)}))}(function(t){const i=Qi(t).getSingleDoc().getRootNode();return i.documentElement||i.body||i}(i),"user-error",s,!1)}}(i,t)}.bind(null,self),self.__AMP_REPORT_ERROR=Jo;var tu,iu="runtime";function su(t,i){if(t.__AMP_TAG)return r();t.__AMP_TAG=!0;const s=t.AMP||[];Mi(t,"extensions",class{constructor(t){this.win=t,this.gh=Qi(t),this.Dc={},this.Lc=null,this.Uc=null,this.$c=null}registerExtension(t,i,s,e,n){var r;const h=s?this.Dc[Qo(t,qo)]:null,o=this.Fc(t,i,null===(r=null==h?void 0:h.auto)||void 0===r||r);if(o.latest=s,!o.loaded){s&&(this.Dc[Qo(t,qo)]=o);try{var u,l;this.Lc=t,this.Uc=i,this.$c=s,e(n,n._),o.loaded=!0,null===(u=o.resolve)||void 0===u||u.call(o,o.extension),null==h||null===(l=h.resolve)||void 0===l||l.call(h,o.extension)}catch(t){var c,a;throw o.error=t,null===(c=o.reject)||void 0===c||c.call(o,t),null==h||null===(a=h.reject)||void 0===a||a.call(h,t),t}finally{this.Lc=null,this.Uc=null,this.$c=null}}}waitForExtension(t,i){const s=this.Bc(this.Fc(t,i));return cs(this.win).timeoutPromise(16e3,s).catch((i=>{if(!i.message.includes("timeout"))throw i;return Pt().error(Go,`Waited over 16s to load extension ${t}.`),s}))}preloadExtension(t,i="0.1"){"amp-embed"==t&&(t="amp-ad");const s=this.Fc(t,i);return this.Hc(t,i,s),this.Bc(s)}installExtensionForDoc(t,i,s="0.1"){const e=t.getRootNode();let n=e[Wo];return n||(n=e[Wo]=_()),n[i]?n[i]:(t.declareExtension(i,s),lr(t.win,i),n[i]=this.preloadExtension(i,s).then((()=>this.installExtensionInDoc(t,i,s))))}reloadExtension(t,i,s){const e=Ei(this.win,t,i,s,!1),n=this.Dc[Qo(t,i)];return n&&(Et(!n.loaded&&!n.error),n.scriptPresent=!1),e.forEach((i=>i.setAttribute("i-amphtml-loaded-new-version",t))),this.preloadExtension(t,i)}importUnwrapped(t,i,s="0.1",e=!0){const n=Ei(t,i,s,e);let r,h=n.length>0?n[0]:null;return h?r=h.__AMP_SCR_LOADED:(h=vi(this.win,i,s),r=h.__AMP_SCR_LOADED=new Promise(((t,i)=>{h.onload=t,h.onerror=i})),t.document.head.appendChild(h)),r}loadElementClass(t,i="0.1"){return this.preloadExtension(t,i).then((i=>Et(i.elements[t]).implementationClass))}addElement(t,i,s){this.jc(t).extension.elements[t]={implementationClass:i,css:s},this.addDocFactory((e=>{this.zc(e,t,i,s)}))}addTemplate(t,i){this.addDocFactory((s=>{!function(t,i,s){yi(t,"templates").Ao(i,s)}(s,t,i)}))}zc(t,i,s,e){e?function(t,i,s,e,n){const r=t.getHeadNode(),h=function(t,i,s,e){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=_());const r=e&&"amp-custom"!=e&&"amp-keyframes"!=e,h=r?`amp-extension=${e}`:null;if(h){const s=qe(t,n,h);if(s)return"STYLE"==s.tagName&&s.textContent!==i&&(s.textContent=i),s}const o=(t.ownerDocument||t).createElement("style");o.textContent=i;let u=null;return r?(o.setAttribute("amp-extension",e||""),u=qe(t,n,"amp-runtime")):(e&&o.setAttribute(e,""),u=t.lastChild),function(t,i,s=null){if(!s)return void function(t,i){t.insertBefore(i,t.firstChild)}(t,i);const e=s.nextSibling;t.insertBefore(i,e)}(t,o,u),h&&(n[h]=o),o}(r,function(t,i){const s=t.__AMP_CSS_TR;return s?s(i):i}(r,i),0,n||null);if(s){const i=t.getRootNode();if(Qe(i,h))return s(),h;const e=setInterval((()=>{Qe(i,h)&&(clearInterval(e),s())}),4)}}(t,e,(()=>{this.Gc(t.win,i,s)}),0,i):this.Gc(t.win,i,s)}Gc(t,i,s){(function(t,i,s){const e=function(t,i){if(i.requiresShadowDom()&&!t.Element.prototype.attachShadow)return is(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,s);e?e.then((()=>hr(t,i,s))):hr(t,i,s)})(t,i,s),Mi(t,i,Yo)}addService(t,i){this.jc(t).extension.services.push({serviceName:t,serviceClass:i}),this.addDocFactory((s=>{Ii(s,t,i,!0)}))}addDocFactory(t,i){const s=this.jc(i);if(s.docFactories.push(t),this.Lc&&this.gh.isSingleDoc()){const i=this.gh.getAmpDoc(this.win.document),e=this.Lc,n=this.Uc,r=this.$c||!1;(i.declaresExtension(e,n)||r&&i.declaresExtension(e,qo)||s.auto)&&t(i)}}preinstallEmbed(t,i){const s=this.win,e=t.win;!function(t,i){cr(t,i,"amp-img"),cr(t,i,"amp-pixel")}(s,e),Ko(e),i.forEach((({extensionId:i,extensionVersion:s})=>{t.declareExtension(i,s),zo.includes(i)||lr(e,i)}))}installExtensionsInDoc(t,i){return Promise.all(i.map((({extensionId:i,extensionVersion:s})=>this.installExtensionInDoc(t,i,s))))}installExtensionInDoc(t,i,s="0.1"){return t.declareExtension(i,s),this.Bc(this.Fc(i,s)).then((()=>{this.Fc(i,s).docFactories.forEach((s=>{try{s(t)}catch(t){a("Doc factory failed: ",t,i)}}))}))}Fc(t,i,s){const e=Qo(t,i);let n=this.Dc[e];return n||(n={version:i,latest:i==qo,extension:{elements:{},services:[]},auto:s||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.Dc[e]=n),n}jc(t){return this.Lc||vt().error(Go,"unknown extension for ",t),this.Fc(this.Lc||"_UNKNOWN_",this.Uc||"")}Bc(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{const i=new h;t.promise=i.promise,t.resolve=i.resolve,t.reject=i.reject}return t.promise}Hc(t,i,s){if(this.qc(t,i,s)){const e=vi(this.win,t,i);this.win.document.head.appendChild(e),s.scriptPresent=!0}}qc(t,i,s){if(s.loaded||s.error)return!1;if(void 0===s.scriptPresent){const e=Ei(this.win,t,i,s.latest);s.scriptPresent=e.length>0}return!s.scriptPresent}});const e=is(t);Uo(t),Ko(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config=nt,t.AMP.BaseElement=Gn,t.AMP.registerElement=e.addElement.bind(e),t.AMP.registerTemplate=e.addTemplate.bind(e),t.AMP.registerServiceForDoc=e.addService.bind(e),t.AMP.isExperimentOn=Oe.bind(null,t),t.AMP.toggleExperiment=Ce.bind(null,t),t.AMP.setLogLevel=at.bind(null),t.AMP.setTickFunction=(t,i)=>{};const n=i(t,e);function o(i){!function(t,i,s){"function"==typeof i||"high"==i.p?r().then(s):(s.displayName=i.n,Un(t.document,s))}(t,i,(()=>{n.then((()=>{"function"==typeof i?i(t.AMP,t.AMP.Wc):e.registerExtension(i.n,i.ev,i.l,i.f,t.AMP)}))}))}for(let i=0;i<s.length;i++){const e=s[i];if(eu(t,e))s.splice(i--,1);else if("function"==typeof e||"high"==e.p){try{o(e)}catch(t){vt().error(iu,"Extension failed: ",t,e.n)}s.splice(i--,1)}}!function(t,i){t.document.body&&!function(t){return Ge(t).length>0}(t)?cs(t).delay(i,1):i()}(t,(()=>{t.AMP.push=function(i){eu(t,i)||o(i)};for(let i=0;i<s.length;i++){const e=s[i];if(!eu(t,e))try{o(e)}catch(t){vt().error(iu,"Extension failed: ",t,e.n)}}s.length=0})),t.AMP.push||(t.AMP.push=s.push.bind(s)),hs(t).isIos()&&ys(t.document.documentElement,"cursor","pointer");const u=is(t);return ti(t)&&u.preloadExtension("amp-resize-observer-polyfill"),Jt(t)&&u.preloadExtension("amp-intersection-observer-polyfill"),n}function eu(t,i){if("function"==typeof i)return!1;if(!i.m)return!0;const{v:s}=i;return"2203172113000"!=s&&(is(t).reloadExtension(i.n,i.ev,i.l),!0)}function nu(t,i){Un(self.document,(function(){Uo(self),$o(t),i.coreServicesAvailable(),function(t){const i=new h,{promise:s,resolve:e}=i;kh=cs(t).timeoutPromise(8e3,s,"TrackImpressionPromise timeout").catch((t=>{}));const n=ps(t.document.documentElement),o=n.isTrustedViewer(),u=n.getReferrerUrl().then((t=>function(t){const i=sn(t);return"https:"==i.protocol&&Dh.some((t=>t.test(i.hostname)))}(t)));Promise.all([o,u]).then((i=>{const s=i[0],n=i[1];if(!s&&!n&&!Oe(t,"alp"))return void e();const h=function(t){const i=ps(t.document.documentElement);return i.getParam("replaceUrl")?i.hasCapability("replaceUrl")?i.sendMessageAwaitResponse("getReplaceUrl",void 0).then((t=>{t&&"object"==typeof t&&i.replaceUrl(t.replaceUrl||null)}),(t=>{})):(i.replaceUrl(i.getParam("replaceUrl")||null),r()):r()}(t),o=function(t){const i=Yi(t.document.documentElement),s=ps(i).getParam("click");return s?0!=s.indexOf("https://")?r():(Ns.getLocation(t).hash&&(Ns.getLocation(t).hash=""),i.whenFirstVisible().then((()=>function(t,i){return As(t).fetchJson(i,{credentials:"include"}).then((t=>204==t.status?null:t.json()))}(t,s))).then((i=>{!function(t,i){if(!i)return;const s=i.location,e=i.tracking_url||s;if(e&&!an(e)&&((new Image).src=e),s){if(!t.history.replaceState)return;const i=ps(t.document.documentElement),e=hn(Ns.getLocation(t).href,J(sn(s).search));t.history.replaceState(null,"",e),i.maybeUpdateFragmentForCct()}}(t,i)})).catch((t=>{}))):r()}(t);Promise.all([h,o]).then((()=>{e()}),(()=>{}))}))}(self)})),Un(self.document,(function(){su(self,(t=>(function(t){const{documentElement:i}=t.document,s=Qi(t).getSingleDoc();t.AMP.ampdoc=s;const e=ps(i);t.AMP.viewer=e;const n=_s(i);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=n.getScrollLeft.bind(n),t.AMP.viewport.getScrollWidth=n.getScrollWidth.bind(n),t.AMP.viewport.getWidth=n.getWidth.bind(n)}(t),function(t){t.AMP.installAmpdocServices=$o.bind(null);{const i=t.document.querySelector("style[amp-runtime]");t.AMP.combinedCss=i?i.textContent:""}}(t),Lt(t.document).then((()=>{ur(t.AMP.ampdoc)})))))})),Un(self.document,(function(){!function(t){!function(t){ar(t,fr,mr)}(t),function(t){ar(t,Pr,gr)}(t),function(t){ar(t,"amp-layout",_r)}(t)}(self)})),Un(self.document,(function(){ur(t),Ai(self.document).then((()=>er()))})),Un(self.document,(function(){(function(t){const{documentElement:i}=t.document;"0"==ps(i).getParam("p2r")&&hs(t).isChrome()&&new class{constructor(t,i){this.op=t,this.an=i,this.t_=!1,this.i_=0,this.s_=this.sm.bind(this),this.e_=this.nm.bind(this),this.n_=this.rm.bind(this),this.r_=this.h_.bind(this),this.op.addEventListener("touchstart",this.s_,!0)}cleanup(){this.o_(),this.op.removeEventListener("touchstart",this.s_,!0)}sm(t){this.t_||!t.touches||1!=t.touches.length||this.an.getScrollTop()>0||this.u_(t.touches[0].clientY)}u_(t){this.t_=!0,this.i_=t,this.op.addEventListener("touchmove",this.e_,!0),this.op.addEventListener("touchend",this.n_,!0),this.op.addEventListener("touchcancel",this.r_,!0)}o_(){this.t_=!1,this.i_=0,this.op.removeEventListener("touchmove",this.e_,!0),this.op.removeEventListener("touchend",this.n_,!0),this.op.removeEventListener("touchcancel",this.r_,!0)}nm(t){if(!this.t_)return;const i=t.touches[0].clientY-this.i_;i>0&&t.preventDefault(),0!=i&&this.o_()}rm(t){this.o_()}h_(t){this.o_()}}(t.document,_s(i))})(self),function(t){const{win:i}=t;Mr(i.document)&&t.isSingleDoc()&&$n(t,(()=>{Fo(t).then((s=>{s||is(i).installExtensionForDoc(t,"amp-auto-lightbox")}))}),10)}(t),function(t){const{win:i}=t;Mr(i.document)&&hs(t.win).isStandalone()&&$n(t,(()=>{is(i).installExtensionForDoc(t,"amp-standalone").then((()=>Hi(t.getBody(),"standalone","amp-standalone"))).then((t=>t.initialize()))}),10)}(t),function(t){const i=t.location.href;if(i.startsWith("about:"))return;let s=!1;const e=X(t);ut(t,e)&&(s="0"!==e.validate),s&&function(t,i){const s=t.createElement("script");s.src=i,Wt(t,s);const e=He(s).then((()=>{t.head.removeChild(s)}),(()=>{}));return t.head.appendChild(s),e}(t.document,`${et.cdn}/v0/validator_wasm.js`).then((()=>{amp.validator.validateUrlAndLog(i,t.document)}))}(self),function(t){Et(t.defaultView);const i=t.defaultView;Lt(t).then((()=>function(t){const i=Ge(t).map((i=>{const s=function(t,i){return Di(t,i)}(t,i).then((t=>t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((()=>t)):t));return cs(t).timeoutPromise(3e3,s,`Render timeout waiting for service ${i} to be ready.`)}));return Promise.all(i)}(i))).catch((t=>(a(t),[]))).then((s=>{We=!0,t.body.getBoundingClientRect(),Ye(t),Oi(t).signals().signal(Pe),s.length>0&&us(t.documentElement).schedulePass(1,!0);try{const t=ns(i);t.tick("mbv"),t.flush()}catch(t){}}))}(self.document),function(t){Ai(t).then((()=>{const i=t.defaultView;if(i){const s=os(i),e=ts(t.documentElement),n=Yi(t);s.url(n,e.sourceUrl),s.url(n,e.canonicalUrl)}}))}(self.document)}),!0),Un(self.document,(function(){i.tick("e_is"),us(t).ampInitComplete(),i.flush()}))}self.location&&(self.location.originalHash=self.location.hash);try{!function(t){t.onerror=bn,t.addEventListener("unhandledrejection",(t=>{!t.reason||t.reason.message!==vn&&t.reason.message!==En&&"AbortError"!==t.reason.message?In(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,i,s){Mi(t,"ampdoc",(function(){return new class{constructor(t,i,s){this.win=t,this.kc=null,i&&(this.kc=new Bs(t,{params:zs(t,s)}),t.document.__AMPDOC=this.kc)}isSingleDoc(){return!!this.kc}getSingleDoc(){return Et(this.kc)}Nc(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null}getAmpDocIfAvailable(t){let i=t;for(;i;){const s=this.Nc(t);if(s)return s;const e=Ft(i);if(!e)break;const n=e.__AMPDOC;if(n)return n;i=e.host?e.host:xi(e,this.win)}return null}getAmpDoc(t){const i=this.getAmpDocIfAvailable(t);if(!i)throw vt().createError("No ampdoc found for",t);return i}installShadowDoc(t,i,s){Et(!i.__AMPDOC);const e=new Hs(this.win,t,i,s);return i.__AMPDOC=e,e}installFieDoc(t,i,s){const e=i.document;Et(!e.__AMPDOC);const n=Et(i.frameElement),r=new js(i,t,this.getAmpDoc(n),s);return e.__AMPDOC=r,r}}(t,!0,void 0)}))}(self),tu=Qi(self)}catch(t){throw Ke(self.document),t}Un(self.document,(function(){const t=tu.getAmpDoc(self.document);Wh(self),Mi(self,"performance",class{constructor(t){this.win=t,this.vg=Xr(G(t,16)),this._g=[],this.Ag=t.performance.timeOrigin||t.performance.timing.navigationStart,this._i=null,this.Ee=null,this.Kt=null,this.yg=null,this.Pg=!1,this.bg=!1,this.Ig=_(),this.wg=void 0,this.Eg=new vs,this.Tg=0,this.Sg=[],this.Mg=0;const i=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(i.includes("paint")||this.Eg.rejectSignal("fcp",vt().createExpectedError("First Contentful Paint not supported")),this.Rg=i.includes("layout-shift"),!this.Rg){const t=vt().createExpectedError("Cumulative Layout Shift not supported");this.Eg.rejectSignal(ei,t),this.Eg.rejectSignal(ri,t)}this.xg=i.includes("first-input"),this.xg||this.Eg.rejectSignal("fid",vt().createExpectedError("First Input Delay not supported")),this.kg=i.includes("largest-contentful-paint"),this.kg||this.Eg.rejectSignal("lcp",vt().createExpectedError("Largest Contentful Paint not supported")),this.jg=i.includes("navigation"),this.Vg=this.Vg.bind(this),this.addEnabledExperiment("rtv-"+ht(this.win).rtvVersion),_i(t.document).then((()=>{this.tick("dr"),this.flush()})),Ai(t.document).then((()=>this.Og())),this.Cg(),this.Ng=!1,this.Lg=W(t,(()=>{this.Dg()}),6e3)}coreServicesAvailable(){const{documentElement:t}=this.win.document;this._i=Yi(t),this.Ee=ps(t),this.Kt=us(t),this.yg=ts(this._i),this.bg=this.Ee.isEmbedded()&&"1"===this.Ee.getParam("csi"),this._i.onVisibilityChanged(this.flush.bind(this)),this.zg();const i=this.Ee.whenMessagingReady();return this._i.whenFirstVisible().then((()=>{this.tick("ofv"),this.flush()})),(this.kg||this.Rg)&&this._i.onVisibilityChanged(this.Vg),i?i.then((()=>{this.tickDelta("msr",this.win.performance.now()),this.tick("timeOrigin",void 0,this.Ag);const t=this._i.getMetaByName("amp-usqp");return t&&t.split(",").forEach((t=>{this.addEnabledExperiment("ssr-"+t)})),this.Ug()})).then((()=>{this.Pg=!0,this.$g(),this.flush()})):r()}Ug(){return Fo(Qi(this.win).getSingleDoc()).then((t=>{t&&this.addEnabledExperiment("story")}))}Og(){this.tick("ol"),this.flush()}Cg(){if("inabox"===ht(this.win).runtime)return;let t=!1,i=!1,s=!1,e=!1;const n=n=>{if("first-paint"!=n.name||t)if("first-contentful-paint"!=n.name||i)if("first-input"!==n.entryType||s)"layout-shift"===n.entryType?n.hadRecentInput||(this.Fg(n),this.Mg+=n.value):"largest-contentful-paint"===n.entryType?this.Hg(n):"navigation"!=n.entryType||e||(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((t=>this.tick(t,n[t]))),e=!0);else{const t=n.processingStart-n.startTime;this.tickDelta("fid",t),s=!0}else{const t=n.startTime+n.duration;this.tickDelta("fcp",t),this.tickSinceVisible("fcpv",t),i=!0}else this.tickDelta("fp",n.startTime+n.duration),t=!0},r=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(n),r.push("paint")),this.xg&&this.Bg(n,{type:"first-input",buffered:!0}),this.Rg&&this.Bg(n,{type:"layout-shift",buffered:!0}),this.kg&&this.Bg(n,{type:"largest-contentful-paint",buffered:!0}),this.jg&&this.Bg(n,{type:"navigation",buffered:!0}),r.length>0&&this.Bg(n,{entryTypes:r})}Bg(t,i){try{new this.win.PerformanceObserver((i=>{i.getEntries().forEach(t),this.flush()})).observe(i)}catch(t){}}qg(){const t=this._i.getVisibilityState();return t===Ps.INACTIVE||t===Ps.HIDDEN}Vg(){this.qg()&&(this.Gg(),this.Dg())}Wg(){if(!this.Ng){this.Ng=!0;const{win:t}=this,i=parseInt(Ss(t,t.document.body).getPropertyValue("--google-font-exp"),10);i>=0&&this.addEnabledExperiment(`google-font-exp=${i}`)}}Gg(){this.Rg&&(this.Wg(),this.Kg())}Fg(t){if(!this._i)return;if(this.qg())return;const i=this.Sg;if(i.length>0){const s=i[0],e=i[i.length-1];if(t.startTime-e.startTime<1e3&&t.startTime-s.startTime<5e3)return void i.push(t);this.Dg()}i.push(t),this.Lg()}Dg(){const t=this.Sg,i=this.Eg.get(ei);let s=0,e=0;for(var r,h=n(t,!0);!(r=h()).done;){const t=r.value;if(t.sources)for(var o,u=n(t.sources,!0);!(o=u()).done;)s|=Ho(o.value.node);e+=t.value}t.length=0,this.Wg(),(null==i||e>i)&&(this.Eg.reset(ei),this.Eg.reset(ni),this.tickDelta(ei,e),this.tickDelta(ni,s),this.flush())}Kg(){0===this.Tg?(this.tickDelta(ri,this.Mg),this.flush(),this.Tg=1):1===this.Tg&&(this.tickDelta("cls-2",this.Mg),this.flush(),this.Tg=2)}Hg(t){const{element:i,startTime:s}=t,e=Ho(i);this.tickDelta("lcpt",e),this.tickDelta("lcp",s),this.tickSinceVisible("lcpv",s),this.flush()}zg(){const t=!this._i.hasBeenVisible();let i=-1;this._i.whenFirstVisible().then((()=>{i=this.win.performance.now(),this.mark("visible")})),this.Yg().then((()=>{if(t){const t=i>-1?this.win.performance.now()-i:0;this._i.whenFirstVisible().then((()=>{this.tickDelta(hi,t)})),this.Jg(t),this.mark(hi)}else this.tick(hi),this.Jg(this.win.performance.now()-i);this.flush()}))}Yg(){return this.Kt.whenFirstPass().then((()=>{const{documentElement:t}=this.win.document,i=_s(t).getSize();return Kt(0,0,i.width,i.height),s=t,this.win,function(t,i){const s=Yi(t);return s.signals().whenSignal(Sn).then((()=>{const t=us(s).get().filter((t=>!(!t.prerenderAllowed()||Bo.includes(t.element.tagName)))).map((t=>t.element));return 0===t.length?Promise.resolve([]):new Promise((i=>{const{win:e}=s,n=new e.IntersectionObserver((t=>{n.disconnect();const s=[];for(let i=0;i<t.length;i++){const{isIntersecting:e,target:n}=t[i];e&&s.push(n)}i(s)}),{root:jt(e)?e.document:null,threshold:.01});for(let i=0;i<Math.min(t.length,100);i++)n.observe(t[i])})).then((t=>Promise.all(t.map((t=>t.whenLoaded())))))}))}(s);var s}))}tick(t,i,s){Et(null==i||null==s);const e={"label":t};let n;null!=i?e.delta=n=Math.max(i,0):null!=s?e.value=s:(this.mark(t),n=this.win.performance.now(),e.value=this.Ag+n),this.win.dispatchEvent(Ue(this.win,"perf",{label:t,delta:n})),this.Pg&&this.bg?this.Ee.sendMessage("tick",e):this.Xg(e),this.Eg.signal(t,n)}mark(t){var i,s;null===(i=(s=this.win.performance).mark)||void 0===i||i.call(s,t)}tickDelta(t,i){this.tick(t,i)}tickSinceVisible(t,i){var s,e;const n=null==i?this.win.performance.now():i,r=this.Ag+n,h=null!==(s=this.Ee)&&void 0!==s&&s.isEmbedded()?null===(e=this._i)||void 0===e?void 0:e.getFirstVisibleTime():this.Ag,o=h?Math.max(r-h,0):0;this.tickDelta(t,o)}flush(){this.Pg&&this.bg&&(null==this.wg&&(this.wg=Object.keys(this.Ig).join(",")),this.Ee.sendMessage("sendCsi",{"ampexp":this.wg,"canonicalUrl":this.yg.canonicalUrl,"eventid":this.vg},!0))}addEnabledExperiment(t){this.Ig[t]=!0,this.wg=void 0}Xg(t){this._g.length>=50&&this._g.shift(),this._g.push(t)}$g(){this.Ee&&(this.bg?(this._g.forEach((t=>{this.Ee.sendMessage("tick",t)})),this._g.length=0):this._g.length=0)}Jg(t){this.Ee&&this.Ee.sendMessage("prerenderComplete",{"value":t},!0)}isPerformanceTrackingOn(){return this.bg}getMetric(t){return this.Eg.whenSignal(t)}});const i=ns(self);i.addEnabledExperiment("esm"),function(t){pi(t.document,(()=>function(t){let i=1500;const s=t.performance;s&&s.timing&&s.timing.navigationStart&&(i=Date.now()-s.timing.navigationStart);const e=Math.max(1,2100-i);t.setTimeout((()=>{jo(t);const{styleSheets:i}=t.document;if(!i)return;const s=t.document.querySelectorAll(`link[rel~="stylesheet"]:not([href^="${Rt(et.cdn)}"])`),n=[];for(let t=0;t<s.length;t++){const e=s[t];let r=!1;for(let t=0;t<i.length;t++)if(i[t].ownerNode==e){r=!0;break}r||n.push(e)}for(let i=0;i<n.length;i++){const s=n[i],r=s.media||"all";s.media="print",s.onload=()=>{s.media=r,jo(t)},s.setAttribute("i-amphtml-timeout",e),s.parentNode.insertBefore(s,s.nextSibling)}}),e)}(t)))}(self),i.tick("is"),nu(t,i)})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version 2203172113000",self.location.href),self.document.documentElement.setAttribute("amp-version","2203172113000")})()}catch(t){throw setTimeout((function(){var t=document.body.style;t.opacity=1,t.visibility="visible",t.animation="none",t.WebkitAnimation="none;"}),1e3),t}
//# sourceMappingURL=v0.mjs.map