var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
self.AMP_CONFIG={"v":"012404021934000","type":"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"flexAdSlots":0.05,"flexible-bitrate":0.1,"ios-fixed-no-transfer":0,"story-ad-placements":0.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"interaction-to-next-paint":1};/*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,"story-remote-localization":1,"amp-story-subscriptions":1,"attribution-reporting":0.04};/*AMP_EXP*/;
self,self.AMP=self.AMP||[];try{AMP._=AMP._||{},self.AMP&&!Array.isArray(self.AMP)||function(){function t(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(i,n,r){return n&&t(i.prototype,n),r&&t(i,r),i}var n,r=function(){function t(){this.jt=new e}return t.prototype.abort=function(){if(!this.jt.Tt&&(this.jt.Tt=!0,this.jt.Mt)){var t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.jt,"currentTarget":this.jt};this.jt.Mt(t)}},i(t,[{key:"signal",get:function(){return this.jt}}]),t}(),e=function(){function t(){this.Tt=!1,this.Mt=null}return i(t,[{key:"aborted",get:function(){return this.Tt}},{key:"onabort",get:function(){return this.Mt},set:function(t){this.Mt=t}}]),t}();function s(t,i){for(var n=i||0,r=this.length,e=n>=0?n:Math.max(r+n,0);e<r;e++){var s=this[e];if(s===t||t!=t&&s!=s)return!0}return!1}function u(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n<i;n++)r[n]=t[n];return r}function o(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,i){if(t){if("string"==typeof t)return u(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}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 h(){return n||(n=Promise.resolve(void 0))}var a=function(){var t=this;this.promise=new Promise((function(i,n){t.resolve=i,t.reject=n}))};function c(t){return new Promise((function(i){i(t())}))}function f(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var n=t.message,r=t.stack,e=new Error(n);for(var s in t)e[s]=t[s];return e.stack=r,e}function l(t){for(var i,n=null,r="",e=o(arguments,!0);!(i=e()).done;){var s=i.value;s instanceof Error&&!n?n=f(s):(r&&(r+=" "),r+=s)}return n?r&&(n.message=r+": "+n.message):n=new Error(r),n}function v(t){var i,n;null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t)}function d(t){var i=l.apply(null,arguments);setTimeout((function(){throw v(i),i}))}function m(t){var i=l.apply(null,arguments);return i.expected=!0,i}function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=Object.prototype,b=g.hasOwnProperty,y=g.toString;function w(t){return"[object Object]"===y.call(t)}function A(t){var i=Object.create(null);return t&&Object.assign(i,t),i}function x(t,i){return b.call(t,i)}function E(t){var i=A();for(var n in t)if(x(t,n)){var r=t[n];i[n]=w(r)?E(r):r}return i}var P=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,O=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],I={"childList":!0,"subtree":!0};function T(t,i){if(!P.test(i)||O.includes(i))throw new t('invalid custom element name "'.concat(i,'"'))}var M=function(){function t(t,i){this.t=t,this.Pt=i,this.kt=A()}var i=t.prototype;return i.define=function(t,i,n){this.Pt.define(t,i,n);var r=this.kt,e=r[t];e&&(e.resolve(),delete r[t])},i.get=function(t){var i=this.Pt.getByName(t);if(i)return i.ctor},i.whenDefined=function(t){var i=this.t;if(i.Promise,T(i.SyntaxError,t),this.Pt.getByName(t))return h();var n=this.kt,r=n[t];return r||(r=new a,n[t]=r),r.promise},i.upgrade=function(t){this.Pt.upgrade(t)},t}(),S=function(){function t(t){this.t=t,this.It=A(),this.Ut="",this.Lt=null,this.Nt=null,this._t=[t.document]}var i=t.prototype;return i.current=function(){var t=this.Lt;return this.Lt=null,t},i.getByName=function(t){var i=this.It[t];if(i)return i},i.getByConstructor=function(t){var i=this.It;for(var n in i){var r=i[n];if(r.ctor===t)return r}},i.define=function(t,i,n){var r=this.t,e=r.Error,s=r.SyntaxError;if(n)throw new e("Extending native custom elements is not supported");if(T(s,t),this.getByName(t)||this.getByConstructor(i))throw new e('duplicate definition "'.concat(t,'"'));this.It[t]={name:t,ctor:i},this.Ht(t);for(var u,h=o(this._t,!0);!(u=h()).done;){var a=u.value;this.upgrade(a,t)}},i.upgrade=function(t,i){for(var n,r=!!i,e=i||this.Ut,s=o(this.zt(t,e),!0);!(n=s()).done;){var u=n.value;r?this.Dt(u):this.upgradeSelf(u)}},i.upgradeSelf=function(t){var i=this.getByName(t.localName);i&&this.Bt(t,i)},i.zt=function(t,i){return i&&t.querySelectorAll?t.querySelectorAll(i):[]},i.Bt=function(t,i){var n=i.ctor;if(!(t instanceof n)){this.Lt=t;try{if(new n!==t)throw new this.t.Error("Constructor illegally returned a different instance.")}catch(t){d(t)}}},i.Dt=function(t){var i=this.getByName(t.localName);if(i&&(this.Bt(t,i),t.connectedCallback))try{t.connectedCallback()}catch(t){d(t)}},i.Ft=function(t){if(t.disconnectedCallback)try{t.disconnectedCallback()}catch(t){d(t)}},i.Ht=function(t){var i=this;if(this.Ut)this.Ut+=",".concat(t);else{this.Ut=t;var n=new this.t.MutationObserver((function(t){t&&i.Jt(t)}));this.Nt=n;for(var r,e=o(this._t,!0);!(r=e()).done;){var s=r.value;n.observe(s,I)}!function(t,i){var n,r=t.Document,e=t.Element,s=t.Node,u=t.document,o=r.prototype,h=e.prototype,a=s.prototype,c=o.createElement,f=o.importNode,l=a.appendChild,v=a.cloneNode,d=a.insertBefore,m=a.removeChild,p=a.replaceChild;o.createElement=function(t){var n=i.getByName(t);return n?new n.ctor:c.apply(this,arguments)},o.importNode=function(){var t=f.apply(this,arguments);return t&&this===u&&(i.upgradeSelf(t),i.upgrade(t)),t},a.appendChild=function(){var t=l.apply(this,arguments);return i.sync(),t},a.insertBefore=function(){var t=d.apply(this,arguments);return i.sync(),t},a.removeChild=function(){var t=m.apply(this,arguments);return i.sync(),t},a.replaceChild=function(){var t=p.apply(this,arguments);return i.sync(),t},a.cloneNode=function(){var t=v.apply(this,arguments);return t.ownerDocument===u&&(i.upgradeSelf(t),i.upgrade(t)),t};var g=h,b=Object.getOwnPropertyDescriptor(g,"innerHTML");if(b||(g=Object.getPrototypeOf(t.HTMLElement.prototype),b=Object.getOwnPropertyDescriptor(g,"innerHTML")),null!==(n=b)&&void 0!==n&&n.configurable){var y=b.set;b.set=function(t){y.call(this,t),i.upgrade(this)},Object.defineProperty(g,"innerHTML",b)}}(this.t,this)}},i.observe=function(t){this._t.push(t),this.Nt&&this.Nt.observe(t,I)},i.sync=function(){this.Nt&&this.Jt(this.Nt.takeRecords())},i.Jt=function(t){for(var i,n=o(t,!0);!(i=n()).done;){var r=i.value;if(r){for(var e,s=r.addedNodes,u=r.removedNodes,h=o(s,!0);!(e=h()).done;){var a=e.value,c=this.zt(a,this.Ut);this.Dt(a);for(var f,l=o(c,!0);!(f=l()).done;){var v=f.value;this.Dt(v)}}for(var d,m=o(u,!0);!(d=m()).done;){var p=d.value,g=this.zt(p,this.Ut);this.Ft(p);for(var b,y=o(g,!0);!(b=y()).done;){var w=b.value;this.Ft(w)}}}}},t}();function R(t,i){i.prototype=Object.create(t.prototype,{constructor:{configurable:!0,writable:!0,value:i}}),_(i,t)}function _(t,i){Object.setPrototypeOf?Object.setPrototypeOf(t,i):{__proto__:{"test":!0}}.test?t.__proto__=i:function(t,i){for(var n=i;null!==n&&!Object.isPrototypeOf.call(n,t);){for(var r,e=o(Object.getOwnPropertyNames(n),!0);!(r=e()).done;){var s=r.value;if(!Object.hasOwnProperty.call(t,s)){var u=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,u)}}n=Object.getPrototypeOf(n)}}(t,i)}function k(t){return t==this||this.documentElement.contains(t)}function C(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function N(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?N(Object(n),!0).forEach((function(i){C(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function j(t,i){return(j=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function U(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&j(t,i)}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function z(t,i){if(i&&("object"===p(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function H(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L(t);if(i){var e=L(this).constructor;n=Reflect.construct(r,arguments,e)}else n=r.apply(this,arguments);return z(this,n)}}function G(t){return t?Array.prototype.slice.call(t):[]}var V=Array.isArray;function F(t){return V(t)?t:[t]}function B(t,i){for(var n=[],r=0,e=0;e<t.length;e++){var s=t[e];i(s,e,t)?n.push(s):(r<e&&(t[r]=s),r++)}return r<t.length&&(t.length=r),n}function q(t,i){for(var n=0;n<t.length;n++)if(i(t[n],n,t))return n;return-1}function $(t,i){var n=t.indexOf(i);return-1!=n&&(t.splice(n,1),!0)}function W(t,i){var n=t.length-i.length;return n>=0&&t.indexOf(i,n)==n}function Y(t){return"string"==typeof t}function K(t){return 1==(null==t?void 0:t.nodeType)}function J(t){return"number"==typeof t&&isFinite(t)}var X="​​​",Q="​​​​";function Z(t){return K(t)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t}function tt(t){return t.indexOf(X)>=0}function it(t){return t.replace(X,"")}function nt(t,i){var n,r,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(i)return i;t&&-1==e.indexOf(t)&&(e+=t);for(var s=3,u=e.split("%s"),o=u.shift(),h=[o];u.length;){var a=arguments[s++],c=u.shift();o+=Z(a)+c,h.push(a,c.trim())}var f=new Error(o);throw f.messageArray=B(h,(function(t){return""!==t})),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,f),f}function rt(t,i,n,r,e){return V(e)?t(n,e.concat([i])):t(n,"".concat(e||r,": %s"),i),i}function et(t,i,n,r,e,s,u,o,h,a,c){return t}function st(t,i){return t}function ut(t,i){return t}function ot(t,i){return t}function ht(t,i,n,r,e,s,u,o,h,a,c){return nt(X,t,i,n,r,e,s,u,o,h,a,c)}function at(t){return JSON.parse(t)}function ct(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):ft(unescape(encodeURIComponent(t)))}function ft(t){for(var i=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);et(r<=255),i[n]=r}return i}function lt(t,i){var n=t.crypto;if(!(n=n||t.msCrypto)||!n.getRandomValues)return null;var r=new Uint8Array(i);return n.getRandomValues(r),r}function vt(t){var i=!1,n=null,r=t;return function(){if(!i){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];n=r.apply(self,e),i=!0,r=null}return n}}function dt(t,i,n){var r=0,e=null;function s(s){e=null,r=t.setTimeout(u,n),i.apply(null,s)}function u(){r=0,e&&s(e)}return function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];r?e=i:s(i)}}function mt(t,i,n){var r=0,e=0,s=null;function u(){r=0;var o,h=n-(t.Date.now()-e);h>0?r=t.setTimeout(u,h):(o=s,s=null,i.apply(null,o))}return function(){e=t.Date.now();for(var i=arguments.length,o=new Array(i),h=0;h<i;h++)o[h]=arguments[h];s=o,r||(r=t.setTimeout(u,n))}}var pt=["javascript:","data:","vbscript:"],gt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function bt(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}function yt(t){var i,n=A();if(!t)return n;for(;i=gt.exec(t);){var r=bt(i[1],i[1]),e=i[2]?bt(i[2].replace(/\+/g," "),i[2]):"";n[r]=e}return n}function wt(t){var i=(t||self).location;return yt(i.originalHash||i.hash)}var At=function(t){return self.AMP_CONFIG?self.AMP_CONFIG[t]:null},xt=("string"==typeof At("cdnProxyRegex")?new RegExp(At("cdnProxyRegex")):At("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Et(t){if(!self.document||!self.document.head)return null;if(self.location&&xt.test(self.location.origin))return null;var i=self.document.head.querySelector('meta[name="'.concat(t,'"]'));return i&&i.getAttribute("content")||null}var Pt=At("thirdPartyUrl")||"https://3p.ampproject.net",Ot=At("thirdPartyFrameHost")||"ampproject.net",It=("string"==typeof At("thirdPartyFrameRegex")?new RegExp(At("thirdPartyFrameRegex")):At("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,Tt=At("cdnUrl")||Et("runtime-host")||"https://cdn.ampproject.org",Mt=/^https?:\/\/localhost(:\d+)?$/,St=At("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",Rt=At("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",_t=At("localDev")||!1,kt=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],Ct=At("geoApiUrl")||Et("amp-geo-api"),Nt="";function Dt(t){var i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:Ut(t,wt(t)),esm:!1,test:!1,rtvVersion:jt(t),ssrReady:!1}}(i)}function jt(t){var i;return Nt||(Nt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"01".concat("2404021934000")),Nt}function Ut(t,i){var n=i||wt(t);return["1","actions","amp","amp4ads","amp4email"].includes(n.development)||!!t.AMP_DEV_MODE}var Lt=function(){},zt=void 0;function Ht(t){zt=t}var Gt=function(){return"01".concat("2404021934000")},Vt=function(t,i){return i.reduce((function(t,i){return"".concat(t,"&s[]=").concat(Bt(i))}),"https://log.amp.dev/?v=".concat(Gt(),"&id=").concat(encodeURIComponent(t)))},Ft=function(){return"".concat(Tt,"/rtv/").concat(Gt(),"log-messages.simple.json")},Bt=function(t){return encodeURIComponent(String(Z(t)))},qt=function(t){return parseInt(wt(t).log,10)},$t=function(){function t(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.win=t,this.rn=i,this.en=this.on(),this.un=r,this.fn=null,this.sn=vt((function(){t.fetch(Ft()).then((function(t){return t.json()}),Lt).then((function(t){t&&(n.fn=t)}))})),this.an=this.assert.bind(this)}var i=t.prototype;return i.on=function(){var t,i=this.win;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=qt(i)?this.cn():0},i.cn=function(t){return this.rn(qt(t),Dt().development)},i.ln=function(t,i,n){var r,e,s;if(i>(null!==(r=zt)&&void 0!==r?r:this.en))return!1;var u=this.win.console,o=null!==(e=(s={},C(s,1,u.error),C(s,3,u.info),C(s,2,u.warn),s)[i])&&void 0!==e?e:u.log,h=this.hn(n),a="[".concat(t,"]");return Y(h[0])?h[0]=a+" "+h[0]:h.unshift(a),o.apply(u,h),!0},i.fine=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.ln(t,4,n)},i.info=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.ln(t,3,n)},i.warn=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.ln(t,2,n)},i.error=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];if(!this.ln(t,1,n)){var e,s,u=this.createError.apply(this,n);u.name=t||u.name,null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,u)}},i.expectedError=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];var e,s;this.ln(t,1,n)||null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,this.createExpectedError.apply(this,n))},i.createError=function(t){return this.vn(l.apply(null,arguments))},i.createExpectedError=function(t){return this.vn(m.apply(null,arguments))},i.vn=function(t){return t=f(t),this.un?t.message?-1==t.message.indexOf(this.un)&&(t.message+=this.un):t.message=this.un:tt(t.message)&&(t.message=it(t.message)),t},i.hn=function(t){return V(t[0])?this.dn(t[0]):t},i.dn=function(t){var i,n=t.shift();return Dt(this.win).development&&this.sn(),null!==(i=this.fn)&&void 0!==i&&i[n]?[this.fn[n]].concat(t):["More info at ".concat(Vt(n,t))]},i.assert=function(t,i,n){return V(i)?this.assert.apply(this,[t].concat(this.dn(i))):nt.apply(null,[this.un].concat(Array.prototype.slice.call(arguments)))},i.assertElement=function(t,i){return function(t,i,n){return rt(t,i,K(i),"Element expected",n)}(this.an,t,i)},i.assertString=function(t,i){return function(t,i,n){return rt(t,i,Y(i),"String expected",n)}(this.an,t,i)},i.assertNumber=function(t,i){return function(t,i,n){return rt(t,i,"number"==typeof i,"Number expected",n)}(this.an,t,i)},i.assertArray=function(t,i){return function(t,i,n){return rt(t,i,V(i),"Array expected",n)}(this.an,t,i)},i.assertBoolean=function(t,i){return function(t,i,n){return rt(t,i,!!i===i,"Boolean expected",n)}(this.an,t,i)},t}();self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Wt=self.__AMP_LOG,Yt=null;function Kt(t,i){if(!Yt)throw new Error("failed to call initLogConstructor");return new Yt(self,t,i)}function Jt(t){return Wt.user||(Wt.user=Xt(X)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(Wt.user.win,t)?Wt.userForEmbed||(Wt.userForEmbed=Xt(Q)):Wt.user}function Xt(t){return Kt((function(t,i){return i||t>=1?4:2}),t)}function Qt(){return Wt.dev||(Wt.dev=Kt((function(t){return t>=3?4:t>=2?3:0})))}function Zt(t,i,n,r,e,s,u,o,h,a,c){return t}function ti(t,i,n,r,e,s,u,o,h,a,c){return Jt().assert(t,i,n,r,e,s,u,o,h,a,c)}var ii=["GET","POST"];function ni(t,i){var n=new XMLHttpRequest;if(!("withCredentials"in n))throw Qt().createExpectedError("CORS is not supported");return n.open(t,i,!0),n}var ri=function(){function t(t){this.qt=t,this.status=this.qt.status,this.statusText=this.qt.statusText,this.ok=this.status>=200&&this.status<300,this.headers=new si(t),this.bodyUsed=!1,this.body=null,this.url=t.responseURL}var i=t.prototype;return i.clone=function(){return et(!this.bodyUsed),new t(this.qt)},i.Gt=function(){return et(!this.bodyUsed),this.bodyUsed=!0,Promise.resolve(this.qt.responseText)},i.text=function(){return this.Gt()},i.json=function(){return this.Gt().then(at)},i.arrayBuffer=function(){return this.Gt().then(ct)},t}();function ei(t){return void 0===t?"GET":(t=t.toUpperCase(),et(ii.includes(t)),t)}var si=function(){function t(t){this.qt=t}var i=t.prototype;return i.get=function(t){return this.qt.getResponseHeader(t)},i.has=function(t){return null!=this.qt.getResponseHeader(t)},t}(),ui=function(t){U(n,t);var i=H(n);function n(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=A(),e=D({status:200,statusText:"OK",responseText:t?String(t):"",getResponseHeader:function(t){var i=String(t).toLowerCase();return x(r,i)?r[i]:null}},n);if(e.status=void 0===n.status?200:parseInt(n.status,10),V(n.headers))n.headers.forEach((function(t){var i=t[0],n=t[1];r[String(i).toLowerCase()]=String(n)}));else if(w(n.headers))for(var s in n.headers)r[String(s).toLowerCase()]=String(n.headers[s]);return n.statusText&&(e.statusText=String(n.statusText)),i.call(this,e)}return n}(ri);function oi(t){return(t.ownerDocument||t).defaultView}var hi,ai=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function ci(t,i,n,r,e){return e||(i?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function fi(t){return void 0!==hi?hi:hi=function(t){try{var i=t.ownerDocument,n=i.createElement("div"),r=i.createElement("div");return n.appendChild(r),n.querySelector(":scope div")===r}catch(t){return!1}}(t)}function li(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}function vi(t){return String(t).replace(ai,ci)}function di(t){et(/^[\w-]+$/.test(t))}function mi(t,i){var n=t.classList,r="i-amphtml-scoped";n.add(r);var e=li(i,".".concat(r)),s=t.querySelectorAll(e);return n.remove(r),s}function pi(t,i){if(fi(t))return t.querySelector(li(i,":scope"));var n=mi(t,i)[0];return void 0===n?null:n}function gi(t,i){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!n&&n.call(t,i)}function bi(t,i,n){var r;for(r=t;r&&r!==n;r=r.parentElement)if(i(r))return r;return null}function yi(t,i){return t.closest?t.closest(i):bi(t,(function(t){return gi(t,i)}))}function wi(t,i){for(var n=t.lastElementChild;n;n=n.previousElementSibling)if(i(n))return n;return null}function Ai(t,i){return di(i),pi(t,"> [".concat(i,"]"))}function xi(t){return Y(i=t)?n=i:K(i)&&(n=i.tagName),!(!n||!n.toLowerCase().startsWith("i-"))||t.nodeType===Node.ELEMENT_NODE&&(st(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"));var i,n}var Ei,Pi={bubbles:!0,cancelable:!0};function Oi(t,i,n){if(i(t))n();else{var r=oi(t);if(r.MutationObserver){var e=new r.MutationObserver((function(){i(t)&&(e.disconnect(),n())}));e.observe(t,{childList:!0})}else var s=r.setInterval((function(){i(t)&&(r.clearInterval(s),n())}),5)}}function Ii(t,i){Oi(t.documentElement,(function(){return!!t.body}),i)}function Ti(t){return new Promise((function(i){return Ii(t,i)}))}function Mi(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function Si(t,i){t.insertBefore(i,t.firstChild)}function Ri(t){var i=t.isConnected;if(void 0!==i)return i;for(var n=t;(n=_i(n)).host;)n=n.host;return n.nodeType===Node.DOCUMENT_NODE}function _i(t){if(Node.prototype.getRootNode)return t.getRootNode();var i,n;for(i=t;i.parentNode&&(!(n=i)||"I-AMPHTML-SHADOW-ROOT"!=n.tagName&&(11!=n.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(n)));i=i.parentNode);return i}function ki(t,i){var n=t;do{if(n.nextSibling)return!0}while((n=n.parentNode)&&n!=i);return!1}function Ci(t){try{t.focus()}catch(t){}}function Ni(t){return t.parent&&t.parent!=t}function Di(t,i,n,r){var e=n||{};et(t.ownerDocument);var s=r||Pi,u=s.bubbles,o=s.cancelable,h=new MessageEvent(i,{data:e,bubbles:u,cancelable:o});t.dispatchEvent(h)}function ji(t,i){return i!==t&&t.contains(i)}function Ui(t){return t.hasAttribute("i-amphtml-ssr")}function Li(t,i){var n=t.head.querySelector("script[nonce]");if(n){var r=n.nonce||n.getAttribute("nonce");i.setAttribute("nonce",null!=r?r:"")}}function zi(t,i,n,r){return{left:t,top:i,width:n,height:r,bottom:i+r,right:t+n,x:t,y:i}}function Hi(t,i,n){return zi(t.left-t.width*i,t.top-t.height*n,t.width*(1+2*i),t.height*(1+2*n))}function Gi(t,i,n){return 0==i&&0==n||0==t.width&&0==t.height?t:zi(t.left+i,t.top+n,t.width,t.height)}function Vi(){return Ri(this)?Ei.call(this):zi(0,0,0,0)}function Fi(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((function(){}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var Bi=function(){function t(i,n){this.Wt=i,this.Zt=D({root:null,rootMargin:"0px 0px 0px 0px"},n),this.$t=[],this.Xt=null,t._upgraders.push(this.Kt.bind(this))}var n=t.prototype;return n.disconnect=function(){this.Xt?this.Xt.disconnect():this.$t.length=0},n.takeRecords=function(){return this.Xt?this.Xt.takeRecords():[]},n.observe=function(t){this.Xt?this.Xt.observe(t):-1==this.$t.indexOf(t)&&this.$t.push(t)},n.unobserve=function(t){if(this.Xt)this.Xt.unobserve(t);else{var i=this.$t.indexOf(t);-1!=i&&this.$t.splice(i,1)}},n.Kt=function(t){var i=new t(this.Wt,this.Zt);this.Xt=i;for(var n,r=o(this.$t,!0);!(n=r()).done;){var e=n.value;i.observe(e)}this.$t.length=0},i(t,[{key:"root",get:function(){return this.Xt?this.Xt.root:this.Zt.root||null}},{key:"rootMargin",get:function(){return this.Xt?this.Xt.rootMargin:this.Zt.rootMargin}},{key:"thresholds",get:function(){return this.Xt?this.Xt.thresholds:[].concat(this.Zt.threshold||0)}}]),t}();function qi(t){return(t=Number(t))?t>0?1:-1:t}Bi._upgraders=[];var $i=Object.prototype.hasOwnProperty;function Wi(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var e=arguments[r];if(null!=e)for(var s in e)$i.call(e,s)&&(n[s]=e[s])}return n}function Yi(t){return Object.keys(t).map((function(i){return t[i]}))}function Ki(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var Ji,Xi=function(){function t(i){this.Wt=i,this.$t=[],this.Xt=null,t._upgraders.push(this.Kt.bind(this))}var i=t.prototype;return i.disconnect=function(){this.Xt?this.Xt.disconnect():this.$t.length=0},i.observe=function(t){this.Xt?this.Xt.observe(t):-1==this.$t.indexOf(t)&&this.$t.push(t)},i.unobserve=function(t){if(this.Xt)this.Xt.unobserve(t);else{var i=this.$t.indexOf(t);-1!=i&&this.$t.splice(i,1)}},i.Kt=function(t){var i=new t(this.Wt);this.Xt=i;for(var n,r=o(this.$t,!0);!(n=r()).done;){var e=n.value;i.observe(e)}this.$t.length=0},t}();function Qi(t,i){var n=i>0?0|i:0;return this.substr(n,t.length)===t}Xi._upgraders=[],(Ji=self).fetch||(Object.defineProperty(Ji,"fetch",{value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){var e=ei(i.method||"GET"),s=ni(e,t);"include"==i.credentials&&(s.withCredentials=!0),"document"!==i.responseType&&"text"!==i.responseType||(s.responseType=i.responseType),i.headers&&Object.keys(i.headers).forEach((function(t){s.setRequestHeader(t,i.headers[t])})),s.onreadystatechange=function(){if(!(s.readyState<2))return s.status<100||s.status>599?(s.onreadystatechange=null,void r(Jt().createExpectedError("Unknown HTTP status ".concat(s.status)))):void(4==s.readyState&&n(new ri(s)))},s.onerror=function(){r(Jt().createExpectedError("Network failure"))},s.onabort=function(){r(Jt().createExpectedError("Request aborted"))},"POST"==e?s.send(i.body):s.send()}))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(Ji,"Response",{value:ui,writable:!0,enumerable:!1,configurable:!0})),function(t){t.Math.sign||t.Object.defineProperty(t.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:qi})}(self),function(t){t.Object.assign||t.Object.defineProperty(t.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:Wi})}(self),function(t){t.Object.values||t.Object.defineProperty(t.Object,"values",{configurable:!0,writable:!0,value:Yi})}(self),function(t){t.Array.prototype.includes||t.Object.defineProperty(t.Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:s})}(self),function(t){var i=t.Map,n=new i;if(n.set(0,0)!==n){var r=n.set;t.Object.defineProperty(i.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){var i=t.WeakMap,n=new i;if(n.set({},0)!==n){var r=n.set;t.Object.defineProperty(i.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){var i=t.Set,n=new i([1]);if(n.size<1&&(t.Set=function(t){var n=new i;if(t)for(var r=G(t),e=0;e<r.length;e++)n.add(r[e]);return n}),n.add(0)!==n){var r=n.add;t.Object.defineProperty(i.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){t.String.prototype.startsWith||t.Object.defineProperty(t.String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:Qi})}(self),self.document&&(function(t){var i=t.HTMLDocument||t.Document;i&&!i.prototype.contains&&t.Object.defineProperty(i.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:k})}(self),function(t){(function(t){if(!t.document)return!1;try{return 0!==t.document.createElement("div").getBoundingClientRect().top}catch(t){return!0}})(t)&&(Ei=Element.prototype.getBoundingClientRect,t.Object.defineProperty(t.Element.prototype,"getBoundingClientRect",{value:Vi}))}(self),function(t,i){var n=t.document,r=function(t){var i=t.customElements;return!!(i&&i.define&&i.get&&i.whenDefined)}(t);if(!(!n||r&&function(t){return-1===t.HTMLElement.toString().indexOf("[native code]")}(t))){var e=!0,s=!1;if(i&&r)try{var u=t.Reflect,o=Object.create(i.prototype);Function.call.call(i,o),s=!(null==u||!u.construct)}catch(t){e=!1}s?function(t){var i=t.HTMLElement,n=t.Reflect;function r(){var t=this.constructor;return n.construct(i,[],t)}R(i,r),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=r}(t):e&&function(t){var i=t.Element,n=t.HTMLElement,r=t.document,e=r.createElement,s=new S(t),u=new M(t,s);Object.defineProperty(t,"customElements",{enumerable:!0,configurable:!0,value:u});var o=i.prototype,h=o.attachShadow,a=o.createShadowRoot;function c(){var t=this.constructor,i=s.current();if(!i){var n=s.getByConstructor(t);i=e.call(r,n.name)}return _(i,t.prototype),i}h&&(o.attachShadow=function(t){var i=h.apply(this,arguments);return s.observe(i),i},o.attachShadow.toString=function(){return h.toString()}),a&&(o.createShadowRoot=function(){var t=a.apply(this,arguments);return s.observe(t),t},o.createShadowRoot.toString=function(){return a.toString()}),R(n,c),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=c,c.call||(c.apply=t.Function.apply,c.bind=t.Function.bind,c.call=t.Function.call)}(t)}}(self,function(){return function(){}}()),function(t){Fi(t)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Bi,void(t.IntersectionObserver._stub=Bi);var i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(n,r){var e;return 9===(null==r||null===(e=r.root)||void 0===e?void 0:e.nodeType)?new i(n,r):new t(n,r)}}(t.IntersectionObserver,Bi),t.IntersectionObserver._stub=Bi,t.IntersectionObserver._native=i}(t),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get:function(){return this.intersectionRatio>0}})}(t)}(self),function(t){Ki(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=Xi,t.ResizeObserver._stub=Xi)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:r}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:e}))}(self));var Zi="cls",tn="clstu",nn="cls-1",rn="pc",en="inp",sn="building",un="mounting",on="loading",hn="complete",an="error";function cn(t){return t.readyState!=on&&"uninitialized"!=t.readyState}function fn(t){return t.readyState==hn}function ln(t,i){vn(t,cn,i)}function vn(t,i,n){var r=i(t);r?n(t):t.addEventListener("readystatechange",(function e(){i(t)&&(r||(r=!0,n(t)),t.removeEventListener("readystatechange",e))}))}function dn(t){return new Promise((function(i){ln(t,i)}))}function mn(t){return new Promise((function(i){vn(t,fn,i)}))}var pn=["amp-mustache"],gn="latest",bn=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function yn(t){if(!t)return null;var i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),n=i?i[2]:void 0,r=i?i[3]:void 0;return n&&r?{extensionId:n,extensionVersion:r}:null}function wn(t,i,n){var r=t.document.createElement("script");r.async=!0,xn(i)?n="":r.setAttribute(pn.indexOf(i)>=0?"custom-template":"custom-element",i),r.setAttribute("data-script",i),r.setAttribute("i-amphtml-inserted",""),Li(t.document,r),r.setAttribute("crossorigin","anonymous");var e=function(t,i,n,r){var e=Tt,s=Dt().rtvVersion,u=n?"-"+n:"";return"".concat(e,"/rtv/").concat(s,"/v0/").concat(i).concat(u).concat(".js")}(t.location,i,n),s={createScriptURL:function(t){return bn.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(s=self.trustedTypes.createPolicy("extension-script#createExtensionScript",s)),r.src=s.createScriptURL(e),r}function An(t,i,n,r){for(var e=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=":not([i-amphtml-loaded-new-version])"+(e?"":":not([i-amphtml-inserted])"),u=t.document.head.querySelectorAll('script[src*="/'.concat(i,'-"]').concat(s)),o=[],h=0;h<u.length;h++){var a=u[h],c=yn(a.src);if(c){var f=c.extensionId,l=c.extensionVersion;f==i&&(xn(i)||l==n||l==gn&&r)&&o.push(a)}}return o}function xn(t){return t.startsWith("_")}function En(t,i,n,r){Dn(t=Rn(t),t,i,n),r&&Nn(t,i)}function Pn(t,i,n,r){var e=kn(t),s=Cn(e);Dn(s,e,i,n),r&&Nn(s,i)}function On(t,i){return Nn(t=Rn(t),i)}function In(t,i){return Nn(Cn(kn(t)),i)}function Tn(t,i){var n=Cn(kn(t));return Gn(n,i)?Nn(n,i):null}function Mn(t,i){return jn(Cn(t),i)}function Sn(t,i){return Un(Cn(t),i)}function Rn(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function _n(t,i){var n=(t.ownerDocument||t).defaultView,r=i||Rn(n);if(n&&n!=r&&Rn(n)==r)try{return n.frameElement}catch(t){}return null}function kn(t){return t.nodeType?function(t){return On(t,"ampdoc")}(oi(t)).getAmpDoc(t):t}function Cn(t){var i=kn(t);return i.isSingleDoc()?i.win:i}function Nn(t,i){Zt(Gn(t,i));var n=Ln(t)[i];return n.obj||(Zt(n.ctor),Zt(n.context),n.obj=new n.ctor(n.context),Zt(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function Dn(t,i,n,r,e,s){var u=Ln(t),o=u[n];o||(o=u[n]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:s||!1}),!e&&o.ctor||(o.ctor=r,o.context=i,o.sharedInstance=s||!1,o.resolve&&Nn(t,n))}function jn(t,i){var n=Un(t,i);if(n)return n;var r,e,s,u,o=Ln(t);return o[i]=(e=(r=new a).promise,s=r.reject,u=r.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:u,reject:s,context:null,ctor:null}),o[i].promise}function Un(t,i){var n=Ln(t)[i];return n?n.promise?n.promise:(Nn(t,i),n.promise=Promise.resolve(n.obj)):null}function Ln(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function zn(t){return"function"==typeof t.dispose}function Hn(t,i){if(zn(i))try{(function(t){return Zt(zn(t)),t})(i).dispose()}catch(i){Qt().error("SERVICE","failed to dispose service",t,i)}}function Gn(t,i){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!n||!n.ctor)}function Vn(t,i,n,r){return Fn(t,i,n,r).then((function(t){return function(t,i,n){return ti(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,n,n,n)}(t,i,n)}))}function Fn(t,i,n,r){var e=Sn(t,i);if(e)return e;var s=kn(t);return s.whenExtensionsKnown().then((function(){var t=s.getExtensionVersion(n);return t?On(s.win,"extensions").waitForExtension(n,t):null})).then((function(n){return n?r?Sn(t,i):Mn(t,i):null}))}var Bn,qn=function(t){return Fn(t,"access","amp-access")},$n=function(t){return Fn(t,"subscriptions","amp-subscriptions")},Wn=function(t){return Tn(t,"action")},Yn=function(t){return Vn(t,"activity","amp-analytics")},Kn=function(t){return kn(t)},Jn=function(t){return On(t,"ampdoc")},Xn=function(t){return Fn(t,"amp-analytics-instrumentation","amp-analytics")},Qn=function(t){return function(t,i,n){var r=Tn(t,i);return r?Promise.resolve(r):Fn(t,i,"amp-bind")}(t,"bind")},Zn=function(t){return Mn(t,"cid")},tr=function(t){return On(t,"crypto")},ir=function(t){return In(t,"documentInfo").get()},nr=function(t){return On(t,"extensions")},rr=function(t){return In(t,"history")},er=function(t){return Tn(t,"loadingIndicator")},sr=function(t){return In(t,"mutator")},ur=function(t){return On(t,"performance")},or=function(t){return On(t,"platform")},hr=function(t){return On(t,"preconnect")},ar=function(t){return In(t,"resources")},cr=function(t){return Mn(t,"storage")},fr=function(t){return function(t,i){return Nn(t,"timer")}(t)},lr=function(t){return Tn(t,"url-replace")},vr=function(t){return Fn(t,"geo","amp-geo",!0)},dr=function(t){return Tn(t,"url")},mr=function(t){return In(t,"viewer")},pr=function(t){return On(t,"vsync")},gr=function(t){return In(t,"viewport")},br=function(t){return On(t,"xhr")},yr="prerender",wr="preview",Ar="visible",xr="hidden",Er="paused",Pr="inactive",Or=function(){function t(){this.yn=null}var i=t.prototype;return i.add=function(t){var i=this;return this.yn||(this.yn=[]),this.yn.push(t),function(){i.remove(t)}},i.remove=function(t){this.yn&&$(this.yn,t)},i.removeAll=function(){this.yn&&(this.yn.length=0)},i.fire=function(t){if(this.yn)for(var i,n=o(this.yn.slice(),!0);!(i=n()).done;)(0,i.value)(t)},i.getHandlerCount=function(){var t,i;return null!==(t=null===(i=this.yn)||void 0===i?void 0:i.length)&&void 0!==t?t:0},t}(),Ir=function(){function t(){this.Nn=A(),this.ti=null}var i=t.prototype;return i.get=function(t){var i=this.Nn[t];return null==i?null:i},i.whenSignal=function(t){var i,n=null===(i=this.ti)||void 0===i?void 0:i[t];if(!n){var r=this.Nn[t];n=null!=r?{promise:"number"==typeof r?Promise.resolve(r):Promise.reject(r)}:new a,this.ti||(this.ti=A()),this.ti[t]=n}return n.promise},i.signal=function(t,i){var n;if(null==this.Nn[t]){var r=null!=i?i:Date.now();this.Nn[t]=r;var e=null===(n=this.ti)||void 0===n?void 0:n[t];null!=e&&e.resolve&&(e.resolve(r),e.resolve=void 0,e.reject=void 0)}},i.rejectSignal=function(t,i){var n;if(null==this.Nn[t]){this.Nn[t]=i;var r=null===(n=this.ti)||void 0===n?void 0:n[t];null!=r&&r.reject&&(r.reject(i),r.promise.catch((function(){})),r.resolve=void 0,r.reject=void 0)}},i.reset=function(t){var i;this.Nn[t]&&delete this.Nn[t];var n=null===(i=this.ti)||void 0===i?void 0:i[t];n&&!n.resolve&&delete this.ti[t]},t}(),Tr=["Webkit","webkit","Moz","moz","ms","O","o"],Mr={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function Sr(t){var i=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return Tr.some((function(t){return i.startsWith(t+"-")}))?"-".concat(i):i}function Rr(t,i,n){if(i.startsWith("--"))return i;Bn||(Bn=A());var r=Bn[i];if(!r||n){if(r=i,void 0===t[i]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),s=function(t,i){for(var n=0;n<Tr.length;n++){var r=Tr[n]+i;if(void 0!==t[r])return r}return""}(t,e);void 0!==t[s]&&(r=s)}n||(Bn[i]=r)}return r}function _r(t,i){var n=t.style;for(var r in i)n.setProperty(Sr(Rr(n,r)),String(i[r]),"important")}function kr(t,i,n,r,e){var s=Rr(t.style,i,e);if(s){var u=r?n+r:n;t.style.setProperty(Sr(s),u)}}function Cr(t,i){for(var n in i)kr(t,n,i[n])}function Nr(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Dr(t){return"".concat(t,"px")}function jr(t,i){return t.getComputedStyle(i)||Mr}function Ur(t){var i=t[Rr(t,"visibilityState",!0)];if(i)return i;var n=Rr(t,"hidden",!0);return n in t&&t[n]?xr:Ar}function Lr(t,i){if(t.addEventListener){var n=Hr(t);n&&t.addEventListener(n,i)}}function zr(t,i){if(t.removeEventListener){var n=Hr(t);n&&t.removeEventListener(n,i)}}function Hr(t){var i=Rr(t,"hidden",!0),n=i.indexOf("Hidden");return-1!=n?i.substring(0,n)+"Visibilitychange":"visibilitychange"}var Gr=function(){function t(){}return t.getTop=function(t){return t.top},t.getLocation=function(t){return t.location},t.getDocumentReferrer=function(t){return t.document.referrer},t.getHostname=function(t){return t.location.hostname},t.getUserAgent=function(t){return t.navigator.userAgent},t.getUserLanguage=function(t){return t.navigator.userLanguage||t.navigator.language},t.getDevicePixelRatio=function(){return self.devicePixelRatio||1},t.getSendBeacon=function(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)},t.getXMLHttpRequest=function(t){return t.XMLHttpRequest},t.getImage=function(t){return t.Image},t}(),Vr="__AMP__",Fr="-ampdoc-ext-known",Br="-ampdoc-first-visible",qr="-ampdoc-next-visible",$r="-ampdoc-first-previewed",Wr=function(){function t(t,i,n){this.win=t,this.ii=null,i&&(this.ii=new Kr(t,{params:Qr(t,n)}),t.document.__AMPDOC=this.ii)}var i=t.prototype;return i.isSingleDoc=function(){return!!this.ii},i.getSingleDoc=function(){return Zt(this.ii)},i.ni=function(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null},i.getAmpDocIfAvailable=function(t){for(var i=t;i;){var n=this.ni(t);if(n)return n;var r=_i(i);if(!r)break;var e=r.__AMPDOC;if(e)return e;i=r.host?r.host:_n(r,this.win)}return null},i.getAmpDoc=function(t){var i=this.getAmpDocIfAvailable(t);if(!i)throw Qt().createError("No ampdoc found for",t);return i},i.installShadowDoc=function(t,i,n){Zt(!i.__AMPDOC);var r=new Jr(this.win,t,i,n);return i.__AMPDOC=r,r},i.installFieDoc=function(t,i,n){var r=i.document;Zt(!r.__AMPDOC);var e=Zt(i.frameElement),s=new Xr(i,t,this.getAmpDoc(e),n);return r.__AMPDOC=s,s},t}(),Yr=function(){function t(t,i,n){var r=this;this.win=t,this.ri=A(),this.ei=i,this.si=n&&n.signals||new Ir,this.oi=n&&n.params||A(),this.ui=null,this.hi={};var e,s=this.oi.visibilityState;Zt(!s||"prerender"===(e=s)||"preview"===e||"visible"===e||"hidden"===e||"paused"===e||"inactive"===e),this.ai=n&&n.visibilityState||s||null,this.J=null,this.ci=new Or,this.fi=null,this.li=[];var u=this.vi.bind(this);this.ei&&this.li.push(this.ei.onVisibilityChanged(u)),Lr(this.win.document,u),this.li.push((function(){return zr(r.win.document,u)})),this.vi()}var i=t.prototype;return i.dispose=function(){(function(t){var i=Ln(t),n=function(t){if(!Object.prototype.hasOwnProperty.call(i,t))return"continue";var n=i[t];if(n.sharedInstance)return"continue";n.obj?Hn(t,n.obj):n.promise&&n.promise.then((function(i){return Hn(t,i)}))};for(var r in i)n(r)})(this),this.li.forEach((function(t){return t()}))},i.isSingleDoc=function(){return Zt(null)},i.getParent=function(){return this.ei},i.signals=function(){return this.si},i.getParam=function(t){var i=this.oi[t];return null==i?null:i},i.getMeta=function(){var t=this;return this.ui||(this.ui=A(),this.win.document.head.querySelectorAll("meta[name]").forEach((function(i){var n=i.getAttribute("name"),r=i.getAttribute("content");n&&null!==r&&void 0===t.ui[n]&&(t.ui[n]=r)}))),A(this.ui)},i.getMetaByName=function(t){if(!t)return null;var i=this.getMeta()[t];return void 0!==i?i:null},i.setMetaByName=function(t,i){Zt(null)},i.declaresExtension=function(t,i){var n=this.hi[t];return!(!n||i&&n!==i)},i.declareExtension=function(t,i){Zt(!this.hi[t]||this.hi[t]===i),this.hi[t]=i},i.getExtensionVersion=function(t){return this.hi[t]||null},i.setExtensionsKnown=function(){this.si.signal(Fr)},i.whenExtensionsKnown=function(){return this.si.whenSignal(Fr)},i.getRootNode=function(){return Zt(null)},i.getHeadNode=function(){},i.isBodyAvailable=function(){return Zt(!1)},i.getBody=function(){return Zt(null)},i.waitForBodyOpen=function(){return Zt(null)},i.isReady=function(){return Zt(null)},i.whenReady=function(){return Zt(null)},i.getUrl=function(){return Zt(null)},i.getElementById=function(t){return this.getRootNode().getElementById(t)},i.contains=function(t){return this.getRootNode().contains(t)},i.overrideVisibilityState=function(t){this.ai!=t&&(this.ai=t,this.vi())},i.vi=function(){for(var t,i=Ur(this.win.document),n=Ar,r=this.ei;r;r=r.getParent())if(r.getVisibilityState()!=Ar){n=r.getVisibilityState();break}var e=this.ai||Ar;if(t=e==Ar&&n==Ar&&i==Ar?Ar:i==xr&&e==Er?i:e==Er||e==Pr?e:n==Er||n==Pr?n:e==wr||i==wr||n==wr?wr:e==yr||i==yr||n==yr?yr:xr,this.J!=t){if(t==Ar){var s,u=this.win.performance,o=Math.floor(null!==(s=u.timeOrigin)&&void 0!==s?s:u.timing.navigationStart);null!=this.J&&(o+=Math.floor(u.now())),this.fi=o,this.si.signal(Br,o),this.si.signal(qr,o)}else this.si.reset(qr);t==wr&&this.si.signal($r),this.J=t,this.ci.fire()}},i.whenFirstPreviewedOrVisible=function(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])},i.whenFirstPreviewed=function(){return this.si.whenSignal($r).then((function(){}))},i.whenFirstVisible=function(){return this.si.whenSignal(Br).then((function(){}))},i.whenNextVisible=function(){return this.si.whenSignal(qr).then((function(){}))},i.getFirstVisibleTime=function(){return this.si.get(Br)},i.getLastVisibleTime=function(){return this.fi},i.getVisibilityState=function(){return Zt(this.J)},i.isPreview=function(){return this.J==wr},i.isVisible=function(){return this.J==Ar},i.hasBeenVisible=function(){return null!=this.getLastVisibleTime()},i.onVisibilityChanged=function(t){return this.ci.add(t)},i.registerSingleton=function(t){return!this.ri[t]&&(this.ri[t]=!0,!0)},t}(),Kr=function(t){U(n,t);var i=H(n);function n(t,n){var r;return(r=i.call(this,t,null,n)).di=r.win.document.body?Promise.resolve(r.win.document.body):Ti(r.win.document).then((function(){return r.getBody()})),r.mi=dn(r.win.document),r}var r=n.prototype;return r.isSingleDoc=function(){return!0},r.getRootNode=function(){return this.win.document},r.getUrl=function(){return Gr.getLocation(this.win).href},r.getHeadNode=function(){return this.win.document.head},r.isBodyAvailable=function(){return!!this.win.document.body},r.getBody=function(){return this.win.document.body},r.waitForBodyOpen=function(){return this.di},r.isReady=function(){return cn(this.win.document)},r.whenReady=function(){return this.mi},n}(Yr),Jr=function(t){U(n,t);var i=H(n);function n(t,n,r,e){var s;(s=i.call(this,t,null,e)).pi=n,s.bi=r,s.gi=null;var u=new a;s.di=u.promise,s.yi=u.resolve,s.wi=!1;var o=new a;return s.mi=o.promise,s.Ai=o.resolve,s}var r=n.prototype;return r.isSingleDoc=function(){return!1},r.getRootNode=function(){return this.bi},r.getUrl=function(){return this.pi},r.getHeadNode=function(){return this.bi},r.isBodyAvailable=function(){return!!this.gi},r.getBody=function(){return this.gi},r.setBody=function(t){Zt(!this.gi),this.gi=t,this.yi(t),this.yi=void 0},r.waitForBodyOpen=function(){return this.di},r.isReady=function(){return this.wi},r.setReady=function(){Zt(!this.wi),this.wi=!0,this.Ai(),this.Ai=void 0},r.whenReady=function(){return this.mi},r.getMeta=function(){return A(this.ui)},r.setMetaByName=function(t,i){Zt(t),this.ui||(this.ui=A()),this.ui[t]=i},n}(Yr),Xr=function(t){U(n,t);var i=H(n);function n(t,n,r,e){var s;(s=i.call(this,t,r,e)).pi=n,s.di=s.win.document.body?Promise.resolve(s.win.document.body):Ti(s.win.document).then((function(){return s.getBody()})),s.wi=!1;var u=new a;return s.mi=u.promise,s.Ai=u.resolve,s}var r=n.prototype;return r.isSingleDoc=function(){return!1},r.getRootNode=function(){return this.win.document},r.getUrl=function(){return this.pi},r.getHeadNode=function(){return this.win.document.head},r.isBodyAvailable=function(){return!!this.win.document.body},r.getBody=function(){return this.win.document.body},r.waitForBodyOpen=function(){return this.di},r.isReady=function(){return this.wi},r.whenReady=function(){return this.mi},r.setReady=function(){Zt(!this.wi),this.wi=!0,this.Ai(),this.Ai=void 0},n}(Yr);function Qr(t,i){var n=A();return i?Object.assign(n,i):(t.name&&0==t.name.indexOf(Vr)&&Object.assign(n,yt(t.name.substring(Vr.length))),t.location&&t.location.hash&&Object.assign(n,yt(t.location.hash))),n}function Zr(t){if(!t.hasAttribute("src")&&"srcset"in t==0){var i=t.getAttribute("srcset")||"",n=/\S+/.exec(i);if(null==n)return;var r=n[0];t.setAttribute("src",r)}}var te="nodisplay",ie="fixed",ne="fixed-height",re="responsive",ee="container",se="fill",ue="flex-item",oe="fluid",he="intrinsic",ae=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function ce(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 fe(t){return"i-amphtml-layout-"+t}function le(t){return t==ie||t==ne||t==re||t==se||t==ue||t==oe||t==he}function ve(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 de(t){!function(t){ht(/^\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);var i=/[a-z]+/i.exec(null!=t?t:"");return ht(i,"Failed to read units from %s",t),i[0]}function me(t){var i=parseFloat(t);return J(i)?i:void 0}function pe(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function ge(t,i,n,r){for(var e,s=o(F(t),!0);!(e=s()).done;){var u=e.value,h=i.getAttribute(u);null!==h?n.setAttribute(u,h):r&&n.removeAttribute(u)}}var be,ye="amp:attached",we="amp:load-start",Ae="amp:load-end",xe="ready-upgrade",Ee="upgraded",Pe="built",Oe="mounted",Ie="load-start",Te="render-start",Me="load-end",Se="unload",Re=function(){function t(t,i){this.t=t,this.Wt=i,this.xi={},this.Ei=null}var i=t.prototype;return i.start=function(){this.Ei=this.xi,this.xi={}},i.resolveMatchQuery=function(t){return"1"===this.Oi(t,_e,"1")},i.resolveListQuery=function(t){return this.Oi(t,ke,"")},i.complete=function(){for(var t in this.Ei)t in this.xi||Ce(this.Ei[t],this.Wt,!1);this.Ei=null},i.dispose=function(){for(var t in this.xi)Ce(this.xi[t],this.Wt,!1);this.xi={}},i.Oi=function(t,i,n){if(!t.trim())return n;var r=this.xi[t];return r||(et(this.Ei),r=this.Ei[t]),r||Ce(r=i(this.t,t),this.Wt,!0),this.xi[t]=r,function(t){for(var i=0;i<t.length;i++){var n=t[i],r=n.query,e=n.value;if(!r||r.matches)return e}return""}(r)},t}();function _e(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function ke(t,i){return i.split(",").map((function(i){if(0!=(i=i.replace(/\s+/g," ").trim()).length){var n,r,e;if(")"==i.charAt(i.length-1)){var s=1;for(e=i.length-2;e>=0;e--){var u=i.charAt(e);if("("==u?s--:")"==u&&s++,0==s)break}var o=e-1;if(e>0)for(e--;e>=0;e--){var h=i.charAt(e);if(!("%"==h||"-"==h||"_"==h||h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"))break}if(e>=o)return null}else for(e=i.length-2;e>=0;e--){var a=i.charAt(e);if(!("%"==a||"."==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}return e>=0?(n=i.substring(0,e+1).trim(),r=i.substring(e+1).trim()):(r=i,n=void 0),r?{query:n?t.matchMedia(n):null,value:r}:null}})).filter(Boolean)}function Ce(t,i,n){for(var r=0;r<t.length;r++){var e=t[r].query;e&&(void 0!==e.onchange?e.onchange=n?i:null:n?e.addListener(i):e.removeListener(i))}}function Ne(t){var i=t.ownerDocument||t;return be&&be.ownerDocument===i||(be=i.createElement("div")),De}function De(t){return function(t,i){if(et(1===i.length),et(Array.isArray(i)||x(i,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){var n=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=n.createHTML("ignored")}else t.innerHTML=i[0];var r=t.firstElementChild;return et(r),et(!r.nextElementSibling),t.removeChild(r),r}(be,t)}var je=['<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>'],Ue={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Le(t){var i=t.getAttribute("layout"),n=t.getAttribute("width"),r=t.getAttribute("height"),e=t.getAttribute("sizes"),s=t.getAttribute("heights"),u=i?ce(i):null;ht(void 0!==u,'Invalid "layout" value: %s, %s',i,t);var o=n&&"auto"!=n?ve(n):n;ht(void 0!==o,'Invalid "width" value: %s, %s',n,t);var h,a,c,f,l=r&&"fluid"!=r?ve(r):r;if(ht(void 0!==l,'Invalid "height" value: %s, %s',r,t),u&&u!=ie&&u!=ne||o&&l||(f=(f=t.tagName).toUpperCase(),void 0===Ue[f]))h=o,a=l;else{var v=function(t){var i=t.tagName.toUpperCase();if(et(void 0!==Ue[i]),!Ue[i]){var n=t.ownerDocument,r=i.replace(/^AMP\-/,""),e=n.createElement(r);e.controls=!0,Cr(e,{position:"absolute",visibility:"hidden"}),n.body.appendChild(e),Ue[i]={width:(e.offsetWidth||1)+"px",height:(e.offsetHeight||1)+"px"},n.body.removeChild(e)}return Ue[i]}(t);h=o||u==ne?o:v.width,a=l||v.height}return(c=u||(h||a?"fluid"==a?oe:!a||h&&"auto"!=h?a&&h&&(e||s)?re:ie:ne:ee))!=ie&&c!=ne&&c!=re&&c!=he||ht(a,'The "height" attribute is missing: %s',t),c==ne&&ht(!h||"auto"==h,'The "width" attribute must be missing or "auto": %s',t),c!=ie&&c!=re&&c!=he||ht(h&&"auto"!=h,'The "width" attribute must be present and not "auto": %s',t),c==re||c==he?ht(de(h)==de(a),'Length units should be the same for "width" and "height": %s, %s, %s',n,r,t):ht(null===s,'"heights" attribute must be missing: %s',t),{layout:c,width:h,height:a}}var ze,He="EXPERIMENTS",Ge="amp-experiment-toggles",Ve="__AMP__EXPERIMENT_TOGGLES";function Fe(t,i){return!!qe(t)[i]}function Be(t,i,n,r){var e=Fe(t,i),s=null!=n?n:!e;if(s!=e&&(qe(t)[i]=s,!r)){var u=$e(t);u[i]=s,function(t,i){var n=[];for(var r in i)n.push((!1===i[r]?"-":"")+r);try{var e;null===(e=t.localStorage)||void 0===e||e.setItem(Ge,n.join(","))}catch(t){Jt().error(He,"Failed to save experiments to localStorage.")}}(t,u),Jt().warn(He,'"%s" experiment %s for the domain "%s". See: https://amp.dev/documentation/guides-and-tutorials/learn/experimental',i,s?"enabled":"disabled",t.location.hostname)}return s}function qe(t){var i,n,r,e,s;if(t[Ve])return t[Ve];t[Ve]=A();var u=t[Ve];et(u);var h=D(D({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(n=t.AMP_EXP)&&void 0!==n?n:at((null===(r=t.__AMP_EXP)||void 0===r?void 0:r.textContent)||"{}"));for(var a in h){var c=h[a];"number"==typeof c&&c>=0&&c<=1&&(u[a]=Math.random()<c)}var f=null===(e=t.AMP_CONFIG)||void 0===e?void 0:e["allow-doc-opt-in"];if(V(f)&&f.length){var l=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(l)for(var v,d,m=o((null===(v=l.getAttribute("content"))||void 0===v?void 0:v.split(","))||[],!0);!(d=m()).done;){var p=d.value;f.includes(p)&&(u[p]=!0)}}Object.assign(u,$e(t));var g=null===(s=t.AMP_CONFIG)||void 0===s?void 0:s["allow-url-opt-in"];if(V(g)&&g.length)for(var b,y=yt(t.location.originalHash||t.location.hash),w=o(g,!0);!(b=w()).done;){var x=b.value,E=y["e-".concat(x)];"1"==E&&(u[x]=!0),"0"==E&&(u[x]=!1)}return u}function $e(t){var i,n="";try{var r;"localStorage"in t&&(n=null!==(r=t.localStorage.getItem(Ge))&&void 0!==r?r:"")}catch(t){Qt().warn(He,"Failed to retrieve experiments from localStorage.")}for(var e,s=(null===(i=n)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],u=A(),h=o(s,!0);!(e=h()).done;){var a=e.value;a&&("-"==a[0]?u[a.substr(1)]=!1:u[a]=!0)}return u}function We(t,i,n,r){var e=t,s=n,u=function(t){try{return s(t)}catch(t){var i,n;throw null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t),t}},o=function(){if(void 0!==ze)return ze;ze=!1;try{var t={get capture(){return ze=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return ze}(),h=!(null==r||!r.capture);return e.addEventListener(i,u,o?r:h),function(){null==e||e.removeEventListener(i,u,o?r:h),s=null,e=null,u=null}}var Ye="Failed to load:";function Ke(t,i,n,r){var e={detail:n};if(Object.assign(e,r),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,e);var s=t.document.createEvent("CustomEvent");return s.initCustomEvent(i,!!e.bubbles,!!e.cancelable,n),s}function Je(t,i,n,r){return We(t,i,n,r)}function Xe(t){return t.data}function Qe(t,i,n,r){var e=n,s=We(t,i,(function(t){try{e(t)}finally{e=null,s()}}),r);return s}function Ze(t){var i,n;if(function(t){return!!(t.complete||"complete"==t.readyState||ts(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);var r=ts(t);return r&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise((function(e,s){if(i=r?Qe(t,"loadedmetadata",e,{capture:!0}):Qe(t,"load",e),t.tagName){var u=t;if(r&&!t.hasAttribute("src")&&!(u=wi(t,(function(t){return"SOURCE"===t.tagName}))))return s(new Error("Media has no source."));n=Qe(u,"error",s)}})).then((function(){return n&&n(),t}),(function(){i&&i(),function(t){ts(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);var i=t;throw i&&i.src&&(i=i.src),Jt().createError(Ye,i)}(t)}))}function ts(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var is={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function ns(t){var i=t.document;return Zt(i.body),Object.keys(is).filter((function(t){return i.querySelector(is[t])}))}function rs(t,i,n,r,e){var s=t.getHeadNode(),u=function(t,i,n,r){var e=t.__AMP_CSS_SM;e||(e=t.__AMP_CSS_SM=A());var s=!n&&r&&"amp-custom"!=r&&"amp-keyframes"!=r,u=n?"amp-runtime":s?"amp-extension=".concat(r):null;if(u){var o=es(t,e,u);if(o)return"STYLE"==o.tagName&&o.textContent!==i&&(o.textContent=i),o}var h=(t.ownerDocument||t).createElement("style");h.textContent=i;var a=null;return n?h.setAttribute("amp-runtime",""):s?(h.setAttribute("amp-extension",r||""),a=es(t,e,"amp-runtime")):(r&&h.setAttribute(r,""),a=t.lastChild),function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n){var r=n.nextSibling;t.insertBefore(i,r)}else Si(t,i)}(t,h,a),u&&(e[u]=h),h}(s,function(t,i){var n=t.__AMP_CSS_TR;return n?n(i):i}(s,i),r||!1,e||null);if(n){var o=t.getRootNode();if(hs(o,u))return n(u),u;var h=setInterval((function(){hs(o,u)&&(clearInterval(h),n(u))}),4)}return u}function es(t,i,n){if(i[n])return i[n];var r=t.querySelector("style[".concat(n,"], link[").concat(n,"]"));return r?(i[n]=r,r):null}var ss=!1;function us(t){Zt(t.defaultView),ss||(ss=!0,os(t))}function os(t){Cr(t.body,{opacity:1,visibility:"visible","animation":"none"})}function hs(t,i){for(var n=t.styleSheets,r=0;r<n.length;r++)if(n[r].ownerNode==i)return!0;return!1}var as,cs,fs=function(){function t(t){this.En=t,this.In=0,this.On=0,this.Rn=A()}var i=t.prototype;return i.has=function(t){return!!this.Rn[t]},i.get=function(t){var i=this.Rn[t];if(i)return i.access=++this.On,i.payload},i.put=function(t,i){this.has(t)||this.In++,this.Rn[t]={payload:i,access:this.On},this.jn()},i.jn=function(){if(!(this.In<=this.En)){var t,i=this.Rn,n=this.On+1;for(var r in i){var e=i[r].access;e<n&&(n=e,t=r)}void 0!==t&&(delete i[t],this.In--)}},t}(),ls=new Set(["c","v","a","ad"]),vs="__amp_source_origin",ds=function(t){return"string"==typeof t?ms(t):t};function ms(t,i){return as||(as=self.document.createElement("a"),cs=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new fs(100))),ps(as,t,i?null:cs)}function ps(t,i,n){if(n&&n.has(i))return n.get(i);t.href=i,t.protocol||(t.href=t.href);var r,e={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==e.pathname[0]&&(e.pathname="/"+e.pathname),("http:"==e.protocol&&80==e.port||"https:"==e.protocol&&443==e.port)&&(e.port="",e.host=e.hostname),r=t.origin&&"null"!=t.origin?t.origin:"data:"!=e.protocol&&e.host?e.protocol+"//"+e.host:e.href,e.origin=r;var s=e;return n&&n.put(i,s),s}function gs(t,i,n){if(!i)return t;var r=t.split("#",2),e=r[0].split("?",2);return e[0]+(e[1]?n?"?".concat(i,"&").concat(e[1]):"?".concat(e[1],"&").concat(i):"?".concat(i))+(r[1]?"#".concat(r[1]):"")}function bs(t,i){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(i))}function ys(t,i){return gs(t,ws(i))}function ws(t){var i=[];for(var n in t){var r=t[n];if(null!=r){r=F(r);for(var e=0;e<r.length;e++)i.push(bs(n,r[e]))}}return i.join("&")}function As(t){return"https:"==(t=ds(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||W(t.hostname,".localhost")}function xs(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source";return ti(null!=t,"%s %s must be available",i,n),ti(As(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,n,t),t}function Es(t){var i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function Ps(t){return xt.test(ds(t).origin)}function Os(t){return!(t&&pt.includes(ds(t).protocol))}function Is(t){var i=ms(t),n=i.hash;return i.origin+i.pathname+Ts(i.search)+n}function Ts(t){return function(t,i){if(!t||"?"==t)return"";var n=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(n,"").replace(/^[?&]/,"");return r?"?"+r:""}(t)}function Ms(t){if(!Ps(t=ds(t)))return t.href;var i=t.pathname.split("/"),n=i[1];ti(ls.has(n),"Unknown path prefix in url %s",t.href);var r=i[2],e="s"==r?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(r);return ti(e.indexOf(".")>0,"Expected a . in origin %s",e),i.splice(1,"s"==r?3:2),e+i.join("/")+Ts(t.search)+(t.hash||"")}function Ss(t){return ms(Ms(t)).origin}function Rs(t,i){return i=ds(i),"function"==typeof URL?new URL(t,i.href).toString():function(t,i){i=ds(i);var n=ms(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(n.protocol)?n.href:t.startsWith("//")?i.protocol+t:t.startsWith("/")?i.origin+t:i.origin+i.pathname.replace(/\/[^/]*$/,"/")+t}(t,i)}function _s(t,i){return ks(i),function(t,i,n,r){return gs(t,bs("__amp_source_origin",n),void 0)}(i,0,Ss(t.location.href))}function ks(t){var i=yt(ms(t).search);ti(!(vs in i),"Source origin is not allowed in %s",t)}var Cs="CANCELLED",Ns="BLOCK_BY_CONSENT",Ds=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Ds;var js=function(t){return(i=0,n=function(){var t=Math.pow(1.5,i++);return 1e3*(t+function(t,i){var n=t*(i=i||.3)*Math.random();return Math.random()>.5&&(n*=-1),n}(t))},js=function(t){return setTimeout(t,n())})(t);var i,n};function Us(t,i){try{if(t)if(void 0!==t.message)t=f(t);else{var n=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(n))).origError=n}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){var r=q(t.messageArray,(function(t){return null==t?void 0:t.tagName}));r>-1&&(t.associatedElement=t.messageArray[r])}var e=i||t.associatedElement;if(e&&e.classList&&(e.classList.add("i-amphtml-error"),Dt().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",t.message))),self.console&&(tt(t.message)||!t.expected)){var s=console.error||console.log;t.messageArray?s.apply(console,t.messageArray):e?s.call(console,t.message,e):s.call(console,t.message)}e&&e.dispatchCustomEventForTesting&&e.dispatchCustomEventForTesting("amp:error",t.message),Hs.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Ls(){return new Error(Cs)}function zs(t){return!!t&&("string"==typeof t?t.startsWith(Ns):"string"==typeof t.message&&t.message.startsWith(Ns))}function Hs(t,i,n,r,e){var s=this;if(!this||!this.document||e&&e.expected||us(this.document),!Dt().development){var u=!1;try{u=function(t){if(!t.document)return!1;for(var i=t.document.querySelectorAll("script[src]"),n=0;n<i.length;n++)if(!Ps(i[n].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(!(u&&Math.random()>.01)){var o=function(t,i,n,r,e,s){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,e);var u,o,h=!(!e||!e.expected);if(!/_reported_/.test(t)&&t!=Cs){var a=!(self&&self.window),c=Math.random();if(!((function(t){return-1!=t.indexOf(Ye)}(t)||"Script error."==t||a)&&(h=!0,c>.001))){var f=tt(t);if(!(f&&c>.1)){var l=Object.create(null);l.v=Dt().rtvVersion,l.noAmp=s?"1":"0",l.m=t.replace(X,""),l.a=f?"1":"0",l.ex=h?"1":"0",l.dw=a?"1":"0";var v="1p";if(self.context&&self.context.location?(v="3p",l["3p"]="1"):Dt().runtime&&(v=Dt().runtime),l.rt=v,l.cdn=Tt,"inabox"===v&&(l.adid=Dt().a4aId),l.ca=null!==(o=self.AMP_CONFIG)&&void 0!==o&&o.canary?"1":"0",l.bt=(null===(u=self.AMP_CONFIG)||void 0===u?void 0:u.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(l.or=self.location.ancestorOrigins[0]),self.viewerState&&(l.vs=self.viewerState),self.parent&&self.parent!=self&&(l.iem="1"),self.AMP&&self.AMP.viewer){var d=self.AMP.viewer.getResolvedViewerUrl(),m=self.AMP.viewer.maybeGetMessagingOrigin();d&&(l.rvu=d),m&&(l.mso=m)}var p,g,b,y=[],w=self[Ve]||null;for(var A in w){var x=w[A];y.push("".concat(A,"=").concat(x?"1":"0"))}return l.exps=y.join(","),e?(l.el=(null===(p=e.associatedElement)||void 0===p?void 0:p.tagName)||"u",e.args&&(l.args=JSON.stringify(e.args)),f||e.ignoreStack||!e.stack||(l.s=e.stack),e.message&&(e.message+=" _reported_")):(l.f=i||"",l.l=n||"",l.c=r||""),l.r=self.document?self.document.referrer:"",l.ae=Ds.join(","),l.fr=self.location.originalHash||self.location.hash,"production"===l.bt&&(l.pt="1"),b=t,(g=Ds).length>=25&&g.splice(0,g.length-25+1),g.push(b),l}}}}(t,i,n,r,e,u);o&&js((function(){try{return function(t,i){return i.pt&&Math.random()<.9?h():function(t,i){var n=Jn(t);if(!n.isSingleDoc())return Promise.resolve(!1);var r=n.getSingleDoc();if(!r.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var e=mr(r);return e.hasCapability("errorReporter")?e.isTrustedViewer().then((function(t){return!!t&&(e.sendMessage("error",{"m":(n=i).m,"a":n.a,"s":n.s,"el":n.el,"ex":n.ex,"v":n.v,"pt":n.pt}),!0);var n})):Promise.resolve(!1)}(t,i).then((function(t){if(!t){var n=new XMLHttpRequest;n.open("POST",Math.random()<.1?Rt:St,!0),n.send(JSON.stringify(i))}}))}(s,o).catch((function(){}))}catch(t){}}))}}}var Gs="Resource",Vs=function(){function t(t,i,n){i.__AMP__RESOURCE=this,this.Ti=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.Pi=n,this.Ii=i.hasAttribute("placeholder"),this.Si=!1,this.Mi=void 0,this.Ri=i.isBuilt()?1:0,0==this.Ri&&i.isBuilding()&&this.build(),this._i=-1,this.ki=0,this.Ni=null,this.Ci=null,this.ji=!1,this.Di=zi(-1e4,-1e4,0,0),this.Ui=null,this.zi=!1,this.Li=null,this.Hi=null,this.Gi=void 0;var r=new a;this.Vi=r.promise,this.Fi=r.resolve,this.Bi=!1}t.forElement=function(i){return Zt(t.forElementOptional(i))},t.forElementOptional=function(t){return t.__AMP__RESOURCE},t.setOwner=function(i,n){Zt(n.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(n),i.__AMP__OWNER=n;for(var r=i.getElementsByClassName("i-amphtml-element"),e=0;e<r.length;e++){var s=r[e];t.forElementOptional(s)&&t.forElementOptional(s).updateOwner(void 0)}};var i=t.prototype;return i.getId=function(){return this.Ti},i.updateOwner=function(t){this.Mi=t},i.getOwner=function(){if(void 0===this.Mi){for(var t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Mi=t.__AMP__OWNER;break}void 0===this.Mi&&(this.Mi=null)}return this.Mi},i.hasOwner=function(){return!!this.getOwner()},i.getLayoutPriority=function(){return-1!=this._i?this._i:this.element.getLayoutPriority()},i.updateLayoutPriority=function(t){this._i=t},i.getState=function(){return this.Ri},i.isBuilt=function(){return this.element.isBuilt()},i.isBuilding=function(){return this.Si},i.whenBuilt=function(){return this.element.signals().whenSignal("res-built")},i.build=function(){var t=this;return this.Si||!this.element.isUpgraded()?null:(this.Si=!0,this.element.buildInternal().then((function(){t.Si=!1,t.Ri=1,t.element.signals().signal("res-built")}),(function(i){throw t.maybeReportErrorOnBuildFailure(i),t.Si=!1,t.element.signals().rejectSignal("res-built",i),i})))},i.maybeReportErrorOnBuildFailure=function(t){zs(t)||Qt().error(Gs,"failed to build:",this.debugid,t)},i.changeSize=function(t,i,n){this.element.applySize(t,i,n),this.requestMeasure()},i.overflowCallback=function(t,i,n,r){t&&(this.Gi={height:i,width:n,margins:r}),this.element.overflowCallback(t,i,n,r)},i.resetPendingChangeSize=function(){this.Gi=void 0},i.getPendingChangeSize=function(){return this.Gi},i.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()},i.measure=function(){if(!(this.Ii&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.zi=!1;var t=this.Di;this.qi();var i,n,r=this.Di,e=(n=r,!((i=t).width==n.width&&i.height===n.height));(1==this.Ri||t.top!=r.top||e)&&this.element.isUpgraded()&&(1==this.Ri?this.Ri=2:4!=this.Ri&&5!=this.Ri||!this.element.isRelayoutNeeded()||(this.Ri=2)),this.hasBeenMeasured()||(this.Ui=r),this.element.updateLayoutBox(r,e)}else this.Ri=1},i.ensureMeasured=function(){var t=this;return this.hasBeenMeasured()?h():pr(this.hostWin).measure((function(){return t.measure()}))},i.qi=function(){var t=gr(this.element);this.Di=t.getLayoutRect(this.element);var i=!1;if(t.supportsPositionFixed()&&this.isDisplayed())for(var n=this.Pi.getAmpdoc().win,r=n.document.body,e=this.element;e&&e!=r;e=e.offsetParent){if(e.isAlwaysFixed&&e.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(e)&&"fixed"==jr(n,e).position){i=!0;break}}this.ji=i,i&&(this.Di=Gi(this.Di,-t.getScrollLeft(),-t.getScrollTop()))},i.completeCollapse=function(){Nr(this.element,!1),this.Di=zi(this.Di.left,this.Di.top,0,0),this.ji=!1,this.element.updateLayoutBox(this.getLayoutBox());var t=this.getOwner();t&&t.collapsedCallback(this.element)},i.completeExpand=function(){Nr(this.element,!0),this.requestMeasure()},i.isMeasureRequested=function(){return this.zi},i.hasBeenMeasured=function(){return!!this.Ui},i.requestMeasure=function(){this.zi=!0},i.getLayoutSize=function(){return i=(t=this.Di).height,{width:t.width,height:i};var t,i},i.getLayoutBox=function(){if(!this.ji)return this.Di;var t=gr(this.element);return Gi(this.Di,t.getScrollLeft(),t.getScrollTop())},i.getInitialLayoutBox=function(){return this.Ui||this.Di},i.isDisplayed=function(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;var t=this.element.getLayout()==oe,i=this.getLayoutBox(),n=i.height>0&&i.width>0;return t||n},i.isFixed=function(){return this.ji},i.overlaps=function(t){return n=t,(i=this.getLayoutBox()).top<=n.bottom&&n.top<=i.bottom&&i.left<=n.right&&n.left<=i.right;var i,n},i.prerenderAllowed=function(){return this.element.prerenderAllowed()},i.previewAllowed=function(){return this.element.previewAllowed()},i.isBuildRenderBlocking=function(){return this.element.isBuildRenderBlocking()},i.whenWithinViewport=function(t){if(Zt(!1!==t),!this.isLayoutPending()||!0===t)return h();var i=t,n=String(i);return this.Li&&this.Li[n]?this.Li[n].promise:this.isWithinViewportRatio(i)?h():(this.Li=this.Li||{},this.Li[n]=new a,this.Li[n].promise)},i.$i=function(){if(this.Li){var t=this.getDistanceViewportRatio();for(var i in this.Li)this.isWithinViewportRatio(parseFloat(i),t)&&(this.Li[i].resolve(),delete this.Li[i])}},i.getDistanceViewportRatio=function(){var t=gr(this.element).getRect(),i=this.getLayoutBox(),n=this.Pi.getScrollDirection(),r=1,e=0;if(t.right<i.left||t.left>i.right)return{distance:!1};if(t.bottom<i.top)e=i.top-t.bottom,-1==n&&(r=2);else{if(!(t.top>i.bottom))return{distance:!0};e=t.top-i.bottom,1==n&&(r=2)}return{distance:e,scrollPenalty:r,viewportHeight:t.height}},i.isWithinViewportRatio=function(t,i){if("boolean"==typeof t)return t;var n=i||this.getDistanceViewportRatio(),r=n.distance,e=n.scrollPenalty,s=n.viewportHeight;return"boolean"==typeof r?r:r<s*t/e},i.renderOutsideViewport=function(){return this.$i(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())},i.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())},i.layoutScheduled=function(t){this.Ri=3,this.element.layoutScheduleTime=t},i.layoutCanceled=function(){this.Ri=this.hasBeenMeasured()?2:1},i.startLayout=function(){var t=this;if(this.Hi)return this.Hi;if(4==this.Ri)return h();if(5==this.Ri)return Promise.reject(this.Ci);if(Zt(0!=this.Ri),Zt(this.isDisplayed()),3!=this.Ri){var i=Qt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.Ri);return Us(i,this.element),Promise.reject(i)}if(this.ki>0&&!this.element.isRelayoutNeeded())return Qt().fine(Gs,"layout canceled since it wasn't requested:",this.debugid,this.Ri),this.Ri=4,h();Qt().fine(Gs,"start layout:",this.debugid,"count:",this.ki),this.ki++,this.Ri=3,this.Ni=new AbortController;var n=this.Ni.signal,r=new Promise((function(i,r){pr(t.hostWin).mutate((function(){var e;try{e=t.element.layoutCallback(n)}catch(t){r(t)}Promise.resolve(e).then(i,r)})),n.onabort=function(){return r(Ls())}})).then((function(){return t.Wi(!0,n)}),(function(i){return t.Wi(!1,n,i)}));return this.Hi=r},i.Wi=function(t,i,n){if(this.Ni=null,i.aborted){var r=Qt().createError("layoutComplete race");throw r.associatedElement=this.element,Qt().expectedError(Gs,r),Ls()}if(this.Fi&&(this.Fi(),this.Fi=null),this.Hi=null,this.Ri=t?4:5,this.Ci=n,!t)return Qt().fine(Gs,"loading failed:",this.debugid,n),Promise.reject(n);Qt().fine(Gs,"layout complete:",this.debugid)},i.isLayoutPending=function(){return 4!=this.Ri&&5!=this.Ri},i.loadedOnce=function(){return this.element.R1()?this.element.whenLoaded():this.Vi},i.isInViewport=function(){return this.Bi&&this.$i(),this.Bi},i.setInViewport=function(t){this.Bi=t},i.unlayout=function(){0!=this.Ri&&1!=this.Ri&&2!=this.Ri&&(this.Ni&&(this.Ni.abort(),this.Ni=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Ri=1,this.ki=0,this.Hi=null))},i.getTaskId=function(t){return this.debugid+"#"+t},i.pause=function(){this.element.pause()},i.pauseOnRemove=function(){this.element.pause()},i.resume=function(){this.element.resume()},i.unload=function(){this.element.unmount()},i.disconnect=function(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)},t}(),Fs="ready-scan",Bs="scheduler",qs="250% 31.25%",$s=function(){function t(t){var i=this;this.Ki=t;var n=t.win;this.Yi=new n.IntersectionObserver((function(t){return i.Ji(t)}),{root:Ni(n)?n.document:null,rootMargin:qs}),this.Xi=new Map,this.Qi=new Map,this.Zi=[],this.ir=!1,t.whenReady().then((function(){return i.er()})),this.sr=t.onVisibilityChanged((function(){return i.ur()}))}var i=t.prototype;return i.dispose=function(){this.Yi.disconnect(),this.Qi.clear(),this.sr&&(this.sr(),this.sr=null)},i.scheduleAsap=function(t){this.Qi.set(t,{asap:!0,isIntersecting:!1}),this.hr(t)},i.schedule=function(t){this.Qi.has(t)||(t.deferredMount()?(this.Qi.set(t,{asap:!1,isIntersecting:!1}),this.Yi.observe(t),this.Xi.size>0&&this.Xi.forEach((function(i,n){ji(n,t)&&i.observe(t)}))):this.Qi.set(t,{asap:!1,isIntersecting:!0}),this.hr(t))},i.unschedule=function(t){this.Qi.has(t)&&(this.Qi.delete(t),this.Yi.unobserve(t),this.Xi.size>0&&this.Xi.forEach((function(i){i.unobserve(t)})),this.Zi&&($(this.Zi,t),this.er()))},i.setContainer=function(t,i){var n=this;if(!this.Xi.has(t)){var r=new this.Ki.win.IntersectionObserver((function(t){return n.Ji(t)}),{root:i||t,rootMargin:qs});this.Xi.set(t,r),this.Qi.forEach((function(i,n){!i.asap&&ji(t,n)&&r.observe(n)}))}},i.removeContainer=function(t){var i=this.Xi.get(t);i&&(i.disconnect(),this.Xi.delete(t))},i.ar=function(){var t=this;this.Ki.isReady()&&!this.ir&&(this.ir=!0,this.Ki.win.setTimeout((function(){t.Ki.signals().signal(Fs)}),50))},i.ur=function(){var t=this,i=this.Ki.getVisibilityState();i!=Ar&&i!=xr&&i!=yr&&i!=wr||this.Qi.forEach((function(i,n){return t.cr(n)}))},i.hr=function(t){var i=this.Zi;i?(i.includes(t)||i.push(t),this.er()):this.cr(t)},i.er=function(){var t=this.Ki.isReady(),i=this.Zi;if(i)for(var n=0;n<i.length;n++){var r=i[n];(t||ki(r,this.Ki.getRootNode()))&&(i.splice(n--,1),this.cr(r))}t&&(this.Zi=null,this.ar())},i.Ji=function(t){for(var i=0;i<t.length;i++){var n=t[i],r=n.isIntersecting,e=n.target,s=this.Qi.get(e);if(s){var u=r||s.isIntersecting;u!==s.isIntersecting&&this.Qi.set(e,{asap:s.asap,isIntersecting:u}),u&&this.cr(e)}}},i.cr=function(t){var i=this.Zi,n=!(i&&i.includes(t)),r=this.Qi.get(t)||{asap:!1,isIntersecting:!1},e=r.asap,s=r.isIntersecting,u=this.Ki.getVisibilityState();if(n&&(e||s)&&(u==Ar||u==xr||u==yr&&t.prerenderAllowed()||u==wr&&t.previewAllowed())){this.unschedule(t);var o=this.Ki.win;(e||t.getBuildPriority()<=0?o.setTimeout:o.requestIdleCallback||o.setTimeout)((function(){return t.mountInternal()}))}},t}();function Ws(t){return Pn(t,Bs,$s),In(t,Bs)}var Ys=function(){function t(){this.lr=[]}var n=t.prototype;return n.peek=function(){var t=this.length;return t?this.lr[t-1].item:null},n.enqueue=function(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");var n=this.vr(i);this.lr.splice(n,0,{item:t,priority:i})},n.vr=function(t){for(var i=-1,n=0,r=this.length;n<=r&&(i=Math.floor((n+r)/2))!==this.length;)if(this.lr[i].priority<t)n=i+1;else{if(!(i>0&&this.lr[i-1].priority>=t))break;r=i-1}return i},n.forEach=function(t){for(var i=this.length;i--;)t(this.lr[i].item)},n.dequeue=function(){var t=this.lr.pop();return t?t.item:null},i(t,[{key:"length",get:function(){return this.lr.length}}]),t}(),Ks="CHUNK",Js=/nochunking=1/.test(self.location.hash),Xs=h();function Qs(t){return Pn(t,"chunk",eu),In(t,"chunk")}function Zs(t,i,n){if(Js)Xs.then(i);else{var r=Qs(t.documentElement||t);r.runForStartup(i),n&&r.runForStartup((function(){r.dr=!0}))}}function tu(t,i,n){Js?Xs.then(i):Qs(t).run(i,n)}var iu="not_run",nu=function(){function t(t){this.state=iu,this.mr=t}var i=t.prototype;return i.pr=function(t){if("run"!=this.state){this.state="run";try{this.mr(t)}catch(t){throw this.br(t),t}}},i.gr=function(){return this.mr.displayName||this.mr.name},i.br=function(t){},i.yr=function(){return!1},i.wr=function(){return!1},t}(),ru=function(t){U(n,t);var i=H(n);function n(t,n,r){var e;return(e=i.call(this,t)).Ar=r,e}var r=n.prototype;return r.br=function(t){us(self.document)},r.yr=function(){return this.Er()},r.wr=function(){return this.Ar.Or},r.Er=function(){return this.Ar.ampdoc.isVisible()},n}(nu),eu=function(){function t(t){var i,n=this;this.ampdoc=t,this.t=t.win,this.Tr=new Ys,this.Pr=this.Ir.bind(this),this.Sr=0,this.Mr=!(!this.t.navigator.scheduling||!this.t.navigator.scheduling.isInputPending),this.Rr=!1,this.dr=this.t.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.t.addEventListener("message",(function(t){"amp-macro-task"==Xe(t)&&n.Ir(null)})),this.Or=!1,(i=t,Mn(i,"viewer")).then((function(){n.Or=!0})),t.onVisibilityChanged((function(){t.isVisible()&&n._r()}))}var i=t.prototype;return i.run=function(t,i){var n=new nu(t);this.kr(n,i)},i.runForStartup=function(t){var i=new ru(t,this.t,this);this.kr(i,Number.POSITIVE_INFINITY)},i.kr=function(t,i){this.Tr.enqueue(t,i),this._r()},i.Nr=function(t){for(var i=this.Tr.peek();i&&i.state!==iu;)this.Tr.dequeue(),i=this.Tr.peek();return i&&t&&this.Tr.dequeue(),i},i.Ir=function(t){var i,n=this,r=this.Nr(!0);if(!r)return this.Rr=!1,this.Sr=0,!1;try{i=Date.now(),r.pr(t)}finally{Xs.then().then().then().then().then().then().then().then().then((function(){n.Rr=!1,n.Sr+=Date.now()-i,Qt().fine(Ks,r.gr(),"Chunk duration",Date.now()-i,n.Sr),n._r()}))}return!0},i.Cr=function(t){var i=this;if(this.dr&&(this.Mr?this.t.navigator.scheduling.isInputPending():this.Sr>5))return this.Sr=0,void this.jr();Xs.then((function(){i.Pr(t)}))},i._r=function(){if(!this.Rr){var t=this.Nr();if(t)return t.yr()?(this.Rr=!0,void this.Cr(null)):void(t.wr()&&this.t.requestIdleCallback?function(t,i,n,r){var e=Date.now();t.requestIdleCallback((function i(s){if(s.timeRemaining()<15){var u=n-(Date.now()-e);u<=0||s.didTimeout?(Qt().fine(Ks,"Timed out",n,s.didTimeout),r(s)):(Qt().fine(Ks,"Rescheduling with",u,s.timeRemaining()),t.requestIdleCallback(i,{timeout:u}))}else Qt().fine(Ks,"Running idle callback with ",15),r(s)}),{timeout:n})}(this.t,0,2e3,this.Pr):this.jr())}},i.jr=function(){this.t.postMessage("amp-macro-task","*")},t}(),su="activate",uu=function(){function t(t){this.element=t,this.win=oi(t),this.actionMap_=null,this.defaultActionAlias_=null}t.R1=function(){return!1},t.deferredMount=function(t){return!0},t.prerenderAllowed=function(t){return!1},t.previewAllowed=function(t){return this.prerenderAllowed(t)},t.usesLoading=function(t){return!1},t.createLoaderLogoCallback=function(t){return{}},t.getBuildPriority=function(t){return 0},t.getPreconnects=function(t){return null},t.requiresShadowDom=function(){return!1};var i=t.prototype;return i.signals=function(){return this.element.signals()},i.getDefaultActionAlias=function(){return this.defaultActionAlias_},i.getLayoutPriority=function(){return 0},i.updateLayoutPriority=function(t){this.element.getResources().updateLayoutPriority(this.element,t)},i.getLayout=function(){return this.element.getLayout()},i.getLayoutBox=function(){return this.element.getLayoutBox()},i.getLayoutSize=function(){return this.element.getLayoutSize()},i.getAmpDoc=function(){return this.element.getAmpDoc()},i.getVsync=function(){return pr(this.win)},i.getConsentPolicy=function(){var t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t},i.isLayoutSupported=function(t){return t==te},i.isAlwaysFixed=function(){return!1},i.upgradeCallback=function(){return null},i.buildCallback=function(){},i.preconnectCallback=function(t){},i.attachedCallback=function(){},i.detachedCallback=function(){},i.setAsContainer=function(t){this.element.setAsContainerInternal(t)},i.removeAsContainer=function(){this.element.removeAsContainerInternal()},i.isBuildRenderBlocking=function(){return!1},i.createPlaceholderCallback=function(){return null},i.renderOutsideViewport=function(){return"inabox"==Dt(this.win).runtime||3},i.idleRenderOutsideViewport=function(){return!1},i.ensureLoaded=function(){},i.setReadyState=function(t,i){this.element.setReadyStateInternal(t,i)},i.mountCallback=function(t){},i.unmountCallback=function(){},i.isRelayoutNeeded=function(){return!1},i.layoutCallback=function(){return h()},i.firstLayoutCompleted=function(){this.togglePlaceholder(!1)},i.pauseCallback=function(){},i.resumeCallback=function(){},i.unlayoutCallback=function(){return!1},i.unlayoutOnPause=function(){return!1},i.reconstructWhenReparented=function(){return!0},i.loadPromise=function(t){return Ze(t)},i.registerAction=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;ou(this),this.actionMap_[t]={handler:i,minTrust:n}},i.registerDefaultAction=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:su,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Zt(!this.defaultActionAlias_),this.registerAction(i,t,n),this.defaultActionAlias_=i},i.executeAction=function(t,i){var n=t.method;n===su&&(n=this.defaultActionAlias_||n),ou(this);var r=this.actionMap_[n],e=this.element.tagName;ti(r,"Method not found: ".concat(n," in ").concat(e));var s=r.handler,u=r.minTrust;if(t.satisfiesTrust(u))return s(t)},i.forwardEvents=function(t,i){var n=this,r=(V(t)?t:[t]).map((function(t){return Je(i,t,(function(i){Di(n.element,t,Xe(i)||{})}))}));return function(){return r.forEach((function(t){return t()}))}},i.getPlaceholder=function(){return this.element.getPlaceholder()},i.togglePlaceholder=function(t){this.element.togglePlaceholder(t)},i.getFallback=function(){return this.element.getFallback()},i.toggleFallback=function(t){this.element.toggleFallback(t)},i.toggleLoading=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.element.toggleLoading(t,i)},i.getOverflowElement=function(){return this.element.getOverflowElement()},i.renderStarted=function(){this.element.renderStarted()},i.getViewport=function(){return gr(this.getAmpDoc())},i.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()},i.collapse=function(){sr(this.getAmpDoc()).collapseElement(this.element)},i.attemptCollapse=function(){return sr(this.getAmpDoc()).attemptCollapse(this.element)},i.forceChangeHeight=function(t){sr(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)},i.attemptChangeHeight=function(t){return sr(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)},i.attemptChangeSize=function(t,i,n){return sr(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,n)},i.measureElement=function(t){return sr(this.getAmpDoc()).measureElement(t)},i.mutateElement=function(t,i){return this.measureMutateElement(null,t,i)},i.measureMutateElement=function(t,i,n){return sr(this.getAmpDoc()).measureMutateElement(n||this.element,t,i)},i.mutateElementSkipRemeasure=function(t){return sr(this.getAmpDoc()).mutateElement(this.element,t,!0)},i.collapsedCallback=function(t){},i.expand=function(){sr(this.getAmpDoc()).expandElement(this.element)},i.mutatedAttributesCallback=function(t){},i.onLayoutMeasure=function(){},i.user=function(){return Jt(this.element)},i.getApi=function(){return this},t}();function ou(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var hu,au=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}return n}(uu),cu=Date.now(),fu={bubbles:!1},lu=function(){return!0},vu=[],du=new Set;function mu(t,n){var r=function(t,n){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;var r=function(r){U(s,r);var e=H(s);function s(){var t;return(t=e.call(this)).createdCallback(),t}var u=s.prototype;return u.createdCallback=function(){this.Dr=!1,this.Ur=!1,this.zr=null,this.Lr=!1,this.Hr=null,this.Gr=null,this.Vr="upgrading",this.everAttached=!1,this.Ki=null,this.Pi=null,this.Fr=te,this.ki=0,this.Br=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.qr=void 0,this.layoutScheduleTime=void 0;var i=this,n=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.$r=n===au?null:n||null,this.$r||vu.push(this),this.Wr=null,this.Kr=1,this.Yr=0,this.Jr=void 0,this.Xr=void 0,this.si=new Ir,this.$r&&this.si.signal(xe);var r=function(t,i){return Gn(t=Rn(t),i)?Nn(t,i):null}(t,"performance");this.Qr=r&&r.isPerformanceTrackingOn(),this.Zr=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)},u.signals=function(){return this.si},u.getAmpDoc=function(){return Zt(this.Ki),this.Ki},u.getResources=function(){return Zt(this.Pi),this.Pi},u.isUpgraded=function(){return 2==this.Kr},u.whenUpgraded=function(){return this.si.whenSignal(Ee)},u.upgrade=function(t){this.Xr||1==this.Kr&&(this.$r=t,this.si.signal(xe),this.everAttached&&this.te())},u.markUnresolved=function(){this.$r||this.classList.add("amp-unresolved","i-amphtml-unresolved")},u.getUpgradeDelayMs=function(){return this.Yr},u.ie=function(i,n){this.Wr=i,this.Yr=t.Date.now()-n,this.Kr=2,this.setReadyStateInternal(sn),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.ne(),this.dispatchCustomEventForTesting(ye),this.R1()||this.getResources().upgraded(this),this.si.signal(Ee)},u.ne=function(){this.Fr!=te&&this.Wr&&!this.Wr.isLayoutSupported(this.Fr)&&(ti(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."),ti(!1,"Layout not supported: ".concat(this.Fr)))},u.getBuildPriority=function(){return this.$r?this.$r.getBuildPriority(this):3},u.getLayoutPriority=function(){return this.Wr?this.Wr.getLayoutPriority():3},u.getDefaultActionAlias=function(){return Zt(this.isUpgraded()),this.Wr.getDefaultActionAlias()},u.isBuilding=function(){return!!this.zr},u.isBuilt=function(){return this.Dr},u.whenBuilt=function(){return this.si.whenSignal(Pe)},u.buildInternal=function(){var t=this;if(gu(this),Zt(this.$r),this.zr)return this.zr;this.setReadyStateInternal(sn);var i=this.re();this.ee();var n=i.then((function(){var i,n=t.se(),r=n?null:t.oe();if(n||r)return(i=t,Fn(i,"consentPolicyManager","amp-consent")).then((function(t){return!t||(n?t.whenPolicyUnblock(n):t.whenPurposesUnblock(r))})).then((function(t){if(!t)throw new Error(Ns)}))})).then((function(){return Zt(t.Wr).buildCallback()}));return this.zr=n.then((function(){if(t.Dr=!0,t.classList.add("i-amphtml-built"),t.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),t.si.signal(Pe),t.R1()?t.setReadyStateInternal(t.Vr!=sn?t.Vr:un):(t.setReadyStateInternal(on),t.preconnect(!1)),t.Ur&&t.Vn(),t.Jr&&fr(oi(t)).delay(t.ue.bind(t),1),!t.getPlaceholder()){var i=t.createPlaceholder();i&&t.appendChild(i)}}),(function(i){throw t.si.rejectSignal(Pe,i),t.R1()&&t.setReadyStateInternal(an,i),zs(i)||Us(i,t),i}))},u.build=function(){var t=this;return this.zr?this.zr:this.si.whenSignal(xe).then((function(){return t.R1()&&Ws(t.getAmpDoc()).scheduleAsap(t),t.whenBuilt()}))},u.mountInternal=function(){var t=this;if(this.Hr)return this.Hr;this.Gr=this.Gr||new AbortController;var i=this.Gr.signal;return this.Hr=this.buildInternal().then((function(){if(Zt(t.R1()),!i.aborted){t.setReadyStateInternal(t.Vr!=un?t.Vr:t.$r.usesLoading(t)?on:un),t.Lr=!0;var n=t.Wr.mountCallback(i);return!!n&&n.then(lu)}})).then((function(n){if(t.Gr=null,i.aborted)throw Ls();t.si.signal(Oe),t.$r.usesLoading(t)&&!n||t.setReadyStateInternal(hn)})).catch((function(i){var n;throw t.Gr=null,(n=i)&&("string"==typeof n?n.startsWith(Cs):"string"==typeof n.message&&n.message.startsWith(Cs))?t.Hr=null:(t.si.rejectSignal(Oe,i),t.setReadyStateInternal(an,i)),i}))},u.mount=function(){var t=this;if(this.Hr)return this.Hr;this.Gr=this.Gr||new AbortController;var i=this.Gr.signal;return this.si.whenSignal(xe).then((function(){if(!t.R1())return t.whenBuilt();if(i.aborted)throw Ls();return Ws(t.getAmpDoc()).scheduleAsap(t),t.whenMounted()}))},u.unmount=function(){this.Ur&&this.pause(),this.R1()?(this.Gr&&(this.Gr.abort(),this.Gr=null),Ws(this.getAmpDoc()).unschedule(this),this.Lr&&this.Wr.unmountCallback(),this.Lr=!1,this.Hr=null,this.he(),this.Ur&&this.te(!0)):this.ae()},u.whenMounted=function(){return this.si.whenSignal(Oe)},u.whenLoaded=function(){return this.si.whenSignal(Me)},u.ensureLoaded=function(t){var i=this;return this.mount().then((function(){if(i.R1())return i.$r.usesLoading(i)&&i.Wr.ensureLoaded(),i.whenLoaded();var n=i.ce();return n.whenBuilt().then((function(){if(4!=n.getState()&&((3!=n.getState()||n.isMeasureRequested())&&n.measure(),n.isDisplayed()))return i.getResources().scheduleLayoutOrPreload(n,!0,t,!0),i.whenLoaded()}))}))},u.setAsContainerInternal=function(t){Ws(this.getAmpDoc()).setContainer(this,t)},u.removeAsContainerInternal=function(){Ws(this.getAmpDoc()).removeContainer(this)},u.setReadyStateInternal=function(t,i){if(t!==this.Vr&&(this.Vr=t,this.R1()))switch(t){case on:return this.si.signal(Ie),this.si.reset(Se),this.si.reset(Me),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(we);case hn:return this.si.signal(Ie),this.si.signal(Me),this.si.reset(Se),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Di(this,"load",null,fu),void this.dispatchCustomEventForTesting(Ae);case an:return this.si.rejectSignal(Me,i),this.toggleLoading(!1),void Di(this,"error",i,fu)}},u.preconnect=function(t){var i=this;Zt(this.isUpgraded()),t?this.Wr.preconnectCallback(t):Zs(this.getAmpDoc(),(function(){i.ownerDocument&&i.ownerDocument.defaultView&&i.Wr.preconnectCallback(t)}))},u.R1=function(){return!!this.$r&&this.$r.R1()},u.deferredMount=function(){return!!this.$r&&this.$r.deferredMount(this)},u.isAlwaysFixed=function(){return!!this.Wr&&this.Wr.isAlwaysFixed()},u.updateLayoutBox=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isBuilt()&&this.onMeasure(i)},u.onMeasure=function(){Zt(this.isBuilt());try{this.Wr.onLayoutMeasure()}catch(t){Us(t,this)}},u.ee=function(){var t;return void 0!==this.sizerElement||this.Fr!==re&&this.Fr!==he||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null},u.fe=function(t){if(this.Fr!==re)if(this.Fr!==he);else{var i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else kr(t,"paddingTop","0")},u.le=function(){var t=this,i=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),n=!!this.Zr,r=this.ownerDocument.defaultView;i!=n&&r&&(i?(this.Zr=new Re(r,(function(){return t.ve()})),this.ve()):this.de())},u.de=function(){this.Zr&&(this.Zr.dispose(),this.Zr=null)},u.ve=function(){var t=this.Zr;if(t){t.start();var i=this.getAttribute("media")||null,n=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!n);var r=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");r&&kr(this,"width",t.resolveListQuery(r));var e=this.Fr===re?this.getAttribute("heights"):null;if(e){var s=this.ee();s&&kr(s,"paddingTop",t.resolveListQuery(e))}t.complete(),this.ce().requestMeasure()}},u.applySize=function(t,i,n){var r=this.ee();r&&(this.sizerElement=null,this.fe(r),this.me((function(){r&&Mi(r)}))),void 0!==t&&kr(this,"height",t,"px"),void 0!==i&&kr(this,"width",i,"px"),n&&(null!=n.top&&kr(this,"marginTop",n.top,"px"),null!=n.right&&kr(this,"marginRight",n.right,"px"),null!=n.bottom&&kr(this,"marginBottom",n.bottom,"px"),null!=n.left&&kr(this,"marginLeft",n.left,"px")),this.pe()&&this.be(),Di(this,"amp:size-changed")},u.connectedCallback=function(){if(function(){if(void 0===hu){var t=self.document.createElement("template");hu="content"in t}return hu}()||void 0!==this.Xr||(this.Xr=!!yi(this,"template")),!this.Xr&&!this.Ur&&Ri(this)){if(this.Ur=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.Ki){var t=oi(this),i=Jn(t).getAmpDoc(this);this.Ki=i,n(i,this,this.$r)}if(this.Pi||(this.Pi=ar(this.Ki)),this.getResources().add(this),this.everAttached){var r=this.reconstructWhenReparented();r&&this.he(),this.isUpgraded()&&(r&&!this.R1()&&this.getResources().upgraded(this),this.Vn(),this.dispatchCustomEventForTesting(ye)),this.$r&&this.R1()&&this.te()}else{this.everAttached=!0;try{this.Fr=function(t){var i=t.getAttribute("i-amphtml-layout");if(i){var n,r=ce(i);return et(r),r!=re&&r!=he||!t.firstElementChild?r==te&&Nr(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(n=t.sizerElement)||void 0===n||n.setAttribute("slot","i-amphtml-svc")),r}var e=Le(t),s=e.height,u=e.layout,o=e.width;if(t.classList.add(fe(u)),le(u)&&t.classList.add("i-amphtml-layout-size-defined"),u==te)Nr(t,!1);else if(u==ie)Cr(t,{width:ut(o),height:ut(s)});else if(u==ne)kr(t,"height",ut(s));else if(u==re){var h=t.ownerDocument.createElement("i-amphtml-sizer");h.setAttribute("slot","i-amphtml-svc");var a=me(s),c=me(o);ot(a),ot(c),Cr(h,{paddingTop:a/c*100+"%"}),t.insertBefore(h,t.firstChild),t.sizerElement=h}else if(u==he){var f=Ne(t)(je),l=f.firstElementChild;st(l),l.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'.concat(s,'" width="').concat(o,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')),t.insertBefore(f,t.firstChild),t.sizerElement=f}else u==se||u==ee||(u==ue?(o&&kr(t,"width",o),s&&kr(t,"height",s)):u==oe&&(t.classList.add("i-amphtml-layout-awaiting-size"),o&&kr(t,"width",o),kr(t,"height",0)));return t.setAttribute("i-amphtml-layout",u),u}(this),this.le()}catch(t){Us(t,this)}this.$r?this.te():(du.has("*")||du.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}},u.pe=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")},u.be=function(){this.classList.remove("i-amphtml-layout-awaiting-size")},u.te=function(t){if(this.R1()){if(!this.Hr)if(Ws(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.zr)this.setReadyStateInternal(this.$r&&this.$r.usesLoading(this)?on:un);else if(this.setReadyStateInternal(sn),!t){var i=this.$r.getPreconnects(this);if(i&&i.length>0){var n=this.getAmpDoc();Zs(n,(function(){var t=n.win;if(t){var r=hr(t);i.forEach((function(t){return r.url(n,t,!1)}))}}))}}}else this.ge()},u.ge=function(){var i=this;if(!this.Xr&&1==this.Kr){var n=new(Zt(this.$r))(this);this.Kr=4;var r=t.Date.now(),e=n.upgradeCallback();if(e){if("function"==typeof e.then)return e.then((function(t){i.ie(t||n,r)})).catch((function(t){i.Kr=3,d(t)}));this.ie(e,r)}else this.ie(n,r)}},u.disconnectedCallback=function(){this.disconnect(!1)},u.Vn=function(){this.Dr&&this.Wr.attachedCallback()},u.disconnect=function(t){!this.Xr&&this.Ur&&(!t&&Ri(this)||(t&&this.classList.remove("i-amphtml-element"),this.Ur=!1,this.getResources().remove(this),this.Wr&&this.Wr.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.de()))},u.dispatchCustomEventForTesting=function(t,i){},u.prerenderAllowed=function(){return!this.hasAttribute("noprerender")&&!!this.$r&&this.$r.prerenderAllowed(this)},u.previewAllowed=function(){return!!this.$r&&this.$r.previewAllowed(this)},u.isBuildRenderBlocking=function(){return!!this.Wr&&this.Wr.isBuildRenderBlocking()},u.createPlaceholder=function(){return this.Wr?this.Wr.createPlaceholderCallback():null},u.createLoaderLogo=function(){return this.$r?this.$r.createLoaderLogoCallback(this):{}},u.renderOutsideViewport=function(){return!!this.Wr&&this.Wr.renderOutsideViewport()},u.idleRenderOutsideViewport=function(){return!!this.Wr&&this.Wr.idleRenderOutsideViewport()},u.getLayoutBox=function(){return this.ce().getLayoutBox()},u.getLayoutSize=function(){return this.ce().getLayoutSize()},u.getOwner=function(){return this.ce().getOwner()},u.getIntersectionChangeEntry=function(){var t=this.Wr?this.Wr.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),n=gr(this.getAmpDoc()).getRect();return function(t,i,n){var r,e,s,u,o=function(t){for(var i=-1/0,n=1/0,r=-1/0,e=1/0,s=0;s<arguments.length;s++){var u=arguments[s];if(u&&(i=Math.max(i,u.left),n=Math.min(n,u.left+u.width),r=Math.max(r,u.top),e=Math.min(e,u.top+u.height),n<i||e<r))return null}return n==1/0?null:zi(i,r,n-i,e-r)}(t,i,n)||zi(0,0,0,0);return function(t,i,n,r){var e=t,s=i;return i&&(n=Gi(n,-i.left,-i.top),e=Gi(e,-i.left,-i.top),s=Gi(s,-i.left,-i.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-cu,rootBounds:s,boundingClientRect:e,intersectionRect:n,intersectionRatio:r}}(t,n,o,(e=t,s=(r=o).width*r.height,0==(u=e.width*e.height)?0:s/u))}(t,i&&i.getLayoutBox(),n)},u.ce=function(){return this.getResources().getResourceForElement(this)},u.getResourceId=function(){return this.ce().getId()},u.isRelayoutNeeded=function(){return!!this.Wr&&this.Wr.isRelayoutNeeded()},u.getImpl=function(){var t=this;return(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.re():this.build()).then((function(){return t.Wr}))},u.re=function(){var t=this;return this.si.whenSignal(xe).then((function(){return t.ge(),t.whenUpgraded()}))},u.getApi=function(){return this.getImpl().then((function(t){return t.getApi()}))},u.getLayout=function(){return this.Fr},u.layoutCallback=function(t){var i=this;if(gu(this),Zt(this.isBuilt()),t.aborted)return Promise.reject(Ls());this.dispatchCustomEventForTesting(we);var n=0==this.ki;this.si.reset(Se),n&&this.si.signal(Ie),this.toggleLoading(!0);var r=c((function(){return i.Wr.layoutCallback()}));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),r.then((function(){if(t.aborted)throw Ls();n&&i.si.signal(Me),i.setReadyStateInternal(hn),i.ki++,i.toggleLoading(!1),i.Br||(i.Wr.firstLayoutCompleted(),i.Br=!0,i.dispatchCustomEventForTesting(Ae))}),(function(r){if(t.aborted)throw Ls();throw n&&i.si.rejectSignal(Me,r),i.setReadyStateInternal(an,r),i.ki++,i.toggleLoading(!1),r}))},u.pause=function(){this.isBuilt()&&(this.Wr.pauseCallback(),!this.R1()&&this.Wr.unlayoutOnPause()&&this.ae())},u.resume=function(){this.isBuilt()&&this.Wr.resumeCallback()},u.unlayoutCallback=function(){if(gu(this),!this.isBuilt())return!1;this.si.signal(Se);var t=this.Wr.unlayoutCallback();return t&&this.he(),this.dispatchCustomEventForTesting("amp:unload"),t},u.ae=function(){this.ce().unlayout(),this.Ur&&this.Pi&&this.Pi.schedulePass()},u.he=function(){this.ki=0,this.Br=!1,this.si.reset(Oe),this.si.reset(Te),this.si.reset(Ie),this.si.reset(Me),this.si.reset("ini-load")},u.reconstructWhenReparented=function(){return!!this.Wr&&this.Wr.reconstructWhenReparented()},u.collapse=function(){this.Wr&&this.Wr.collapse()},u.collapsedCallback=function(t){this.Wr&&this.Wr.collapsedCallback(t)},u.expand=function(){this.Wr&&this.Wr.expand()},u.mutatedAttributesCallback=function(t){this.Wr?this.Wr.mutatedAttributesCallback(t):this.R1()&&Ws(this).scheduleAsap(this)},u.enqueAction=function(t){gu(this),this.isBuilt()?this.ye(t,!1):(void 0===this.Jr&&(this.Jr=[]),Zt(this.Jr).push(t),this.build())},u.ue=function(){var t=this;if(this.Jr){var i=Zt(this.Jr);this.Jr=null,i.forEach((function(i){t.ye(i,!0)}))}},u.ye=function(t,i){try{this.Wr.executeAction(t,i)}catch(i){d("Action execution failed:",i,t.node.tagName,t.method)}},u.se=function(){var t,i,n=this.getAttribute("data-block-on-consent");if(null===n){if(!(i=(t=this).getAmpDoc().getMetaByName("amp-consent-blocking"))||!(i=i.toUpperCase().replace(/\s+/g,"")).split(",").includes(t.tagName))return null;n="default",this.setAttribute("data-block-on-consent",n)}return""==n||"default"==n?Zt(this.Wr).getConsentPolicy():n},u.oe=function(){var t,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(",")},u.getPlaceholder=function(){return wi(this,(function(t){return t.hasAttribute("placeholder")&&!pu(t)}))},u.togglePlaceholder=function(t){if(gu(this),t){var i=this.getPlaceholder();i&&i.classList.remove("amp-hidden")}else for(var n=(this,e=void 0,void 0,di("placeholder"),e=this,s="> [".concat("placeholder","]"),fi(e)?e.querySelectorAll(li(s,":scope")):mi(e,s)),r=0;r<n.length;r++)pu(n[r])||n[r].classList.add("amp-hidden");var e,s},u.getFallback=function(){return Ai(this,"fallback")},u.toggleFallback=function(t){gu(this);var i,n=this.ce().getState();if((this.R1()||!t||0!=n&&1!=n&&2!=n)&&(this.classList.toggle("amp-notsupported",t),1==t)){var r=this.getFallback();r&&(i=this.getAmpDoc(),In(i,"owners")).scheduleLayout(this,r)}},u.renderStarted=function(){this.si.signal(Te),this.togglePlaceholder(!1),this.toggleLoading(!1)},u.we=function(t){var i,n,r=this.ki>0||this.si.get(Te);return!(this.Fr==te||this.hasAttribute("noloading")||r&&!t||(this,n=this.tagName.toUpperCase(),"AMP-AD"!==(i=n)&&"AMP-ANIM"!==i&&"AMP-EMBED"!==i&&"AMP-FACEBOOK"!==i&&"AMP-FACEBOOK-COMMENTS"!==i&&"AMP-FACEBOOK-PAGE"!==i&&"AMP-GOOGLE-DOCUMENT-EMBED"!==i&&"AMP-IFRAME"!==i&&"AMP-IMG"!==i&&"AMP-INSTAGRAM"!==i&&"AMP-LIST"!==i&&"AMP-PINTEREST"!==i&&"AMP-PLAYBUZZ"!==i&&"AMP-RENDER"!==i&&"AMP-TIKTOK"!==i&&"AMP-TWITTER"!==i&&!function(t){return"AMP-VIDEO"!=t&&ae.test(t)}(n))||xi(this))},u.toggleLoading=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ownerDocument&&this.ownerDocument.defaultView){var n=er(this.getAmpDoc());n&&((t=t&&this.we(i))?n.track(this):n.untrack(this))}},u.getOverflowElement=function(){return void 0===this.qr&&(this.qr=Ai(this,"overflow"),this.qr&&(this.qr.hasAttribute("tabindex")||this.qr.setAttribute("tabindex","0"),this.qr.hasAttribute("role")||this.qr.setAttribute("role","button"))),this.qr},u.overflowCallback=function(t,i,n){var r=this;this.getOverflowElement(),this.qr?(this.qr.classList.toggle("amp-visible",t),this.qr.onclick=t?function(){var t=sr(r.getAmpDoc());t.forceChangeSize(r,i,n),t.mutateElement(r,(function(){r.overflowCallback(!1,i,n)}))}:null):t&&this.warnOnMissingOverflow&&Jt().warn("CustomElement","Cannot resize element and overflow is not available",this)},u.me=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.Ki?sr(this.getAmpDoc()).mutateElement(i||this,t,n):t()},i(s,[{key:"readyState",get:function(){return this.Vr}}]),s}(t.HTMLElement);return t.__AMP_BASE_CE_CLASS=r,t.__AMP_BASE_CE_CLASS}(t,n),e=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}return n.prototype.adoptedCallback=function(){Object.getPrototypeOf(this)!==s&&Object.setPrototypeOf(this,s)},n}(r),s=e.prototype;return e}function pu(t){return"placeholder"in t}function gu(t){Zt(!t.Xr)}function bu(t){du.add(t||"*");for(var i,n=o(vu,!0);!(i=n()).done;){var r=i.value;null!=t&&r.tagName.toLowerCase()!==t||r.markUnresolved()}}var yu=new WeakMap;function wu(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function Au(t,i,n){var r=wu(t);if(r[i]){if(r[i]!=n){ti(r[i]==au,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),r[i]=n;for(var e=0;e<vu.length;e++){var s=vu[e];s.tagName.toLowerCase()==i&&s.ownerDocument.defaultView==t&&(xu(s,n),vu.splice(e--,1))}}}else Iu(t,i,n)}function xu(t,i){try{t.upgrade(i)}catch(i){Us(i,t)}}function Eu(t){(function(t){if(!t)return[];for(var i=t.querySelectorAll("script[custom-element],script[custom-template]"),n=[],r=0;r<i.length;r++){var e=i[r],s=e.getAttribute("custom-element")||e.getAttribute("custom-template"),u=yn(e.src);s&&u&&n.push({script:e,extensionId:s,extensionVersion:u.extensionVersion})}return n})(t.getHeadNode()).forEach((function(i){var n=i.extensionId,r=i.extensionVersion,e=i.script;t.declareExtension(n,r),e.addEventListener("error",(function(){return bu(n)})),Pu(t.win,n)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function Pu(t,i){wu(t)[i]||Iu(t,i,au)}function Ou(t,i,n){Iu(i,n,wu(t)[n]||au)}function Iu(t,i,n){wu(t)[i]=n;var r=mu(t,Tu);t.customElements.define(i,r)}function Tu(t,i,n){yu.has(t)||(yu.set(t,!0),Eu(t));var r=i.localName;n||t.declaresExtension(r)||nr(t.win).installExtensionForDoc(t,r,"0.1")}var Mu="amp-img",Su=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],Ru=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).Ae=!0,n.xe=null,n.Ee=null,n.Oe=null,n.Te=0,n}n.R1=function(){return!1},n.prerenderAllowed=function(){return!0},n.usesLoading=function(){return!0},n.getPreconnects=function(t){var i=t.getAttribute("src");if(i)return[i];var n=t.getAttribute("srcset");if(n){var r=/\S+/.exec(n);if(r)return[r[0]]}return null};var r=n.prototype;return r.mutatedAttributesCallback=function(t){if(this.xe){var i=Su.filter((function(i){return void 0!==t[i]}));t.src&&!t.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),i.push("srcset"),this.user().warn(Mu,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),ge(i,this.element,this.xe,!0),this.propagateDataset(this.xe),Zr(this.xe),n.R1()&&!this.xe.complete&&this.setReadyState(on)}},r.preconnectCallback=function(t){var i=this.element.getAttribute("src");if(i)hr(this.win).url(this.getAmpDoc(),i,t);else{var n=this.element.getAttribute("srcset");if(!n)return;var r=/\S+/.exec(n);r&&hr(this.win).url(this.getAmpDoc(),r[0],t)}},r.isLayoutSupported=function(t){return le(t)},r.Pe=function(){if(this.xe)return this.xe;this.Ae=!this.element.hasAttribute("fallback");var t,i,n=Ui(this.element);return n&&(this.xe=pi(this.element,"> img:not([placeholder])")),this.xe=this.xe||new Image,this.xe.setAttribute("decoding","async"),this.element.id&&this.xe.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Mu,"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.Ie(!0),ge(Su,this.element,this.xe),this.propagateDataset(this.xe),Zr(this.xe),pe(this.xe,!0),t=this.element,i=this.xe,t.hasAttribute("object-fit")&&kr(i,"object-fit",t.getAttribute("object-fit")),t.hasAttribute("object-position")&&kr(i,"object-position",t.getAttribute("object-position")),n||this.element.appendChild(this.xe),this.xe},r.Ie=function(t){var i=this;if(this.xe&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.xe.hasAttribute("sizes")){var n=this.element.getAttribute("srcset");if(n&&!/[0-9]+x(?:,|$)/.test(n)){var r=this.element.getLayoutSize().width;if(this.Se(r)){var e=this.getViewport().getWidth(),s="(max-width: ".concat(e,"px) ").concat(r,"px, "),u=r+"px";if(this.getLayout()!==ie){var o=Math.round(100*r/e);u=Math.max(o,100)+"vw"}var h=s+u;t?this.xe.setAttribute("sizes",h):this.mutateElement((function(){i.xe.setAttribute("sizes",h)})),this.Te=r}}}},r.Se=function(t){return!this.xe.hasAttribute("sizes")||t>this.Te},r.reconstructWhenReparented=function(){return!1},r.mountCallback=function(){var t=this,i=!!this.xe,n=this.Pe();i||(Je(n,"load",(function(){t.setReadyState(hn),t.firstLayoutCompleted(),t.Me()})),Je(n,"error",(function(i){t.setReadyState(an,i),t.Re()}))),n.complete?(this.setReadyState(hn),this.firstLayoutCompleted(),this.Me()):this.setReadyState(on)},r.unmountCallback=function(){var t=this.xe;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Mi(t),this.xe=null)},r.ensureLoaded=function(){this.xe.loading="eager"},r.layoutCallback=function(){var t=this;this.Pe();var i=this.xe;return this.Ee=Je(i,"load",(function(){return t.Me()})),this.Oe=Je(i,"error",(function(){return t.Re()})),this.element.getLayoutSize().width<=0?h():this.loadPromise(i)},r.unlayoutCallback=function(){if(!n.R1()){this.Oe&&(this.Oe(),this.Oe=null),this.Ee&&(this.Ee(),this.Ee=null);var t=this.xe;return t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Mi(t),this.xe=null),!0}},r.firstLayoutCompleted=function(){var t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?_r(t,{"opacity":0}):this.togglePlaceholder(!1)},r.Me=function(){!this.Ae&&this.xe.classList.contains("i-amphtml-ghost")&&(this.xe.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))},r.Re=function(){this.Ae&&(this.xe.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.Ae=!1)},r.propagateDataset=function(t){for(var i in t.dataset)i in this.element.dataset||delete t.dataset[i];for(var n in this.element.dataset)n.startsWith("ampBind")&&"ampBind"!==n||t.dataset[n]!==this.element.dataset[n]&&(t.dataset[n]=this.element.dataset[n])},n}(uu),_u=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}n.prerenderAllowed=function(){return!0};var r=n.prototype;return r.isLayoutSupported=function(t){return t==ee||le(t)},r.buildCallback=function(){!function(t){if(!Ui(t)){var i=function(t){var i;return ce(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||Le(t).layout}(t);if(i!=ee){var n=t.ownerDocument.createElement("div");pe(n),function(t){return function(t,i){for(var n=[],r=t.firstChild;r;r=r.nextSibling)!xi(r)&&n.push(r);return n}(t)}(t).forEach((function(t){n.appendChild(t)})),t.appendChild(n)}}}(this.element)},n}(uu);function ku(t){var i;return null===(i=t.featurePolicy)||void 0===i?void 0:i.allowedFeatures().includes("attribution-reporting")}function Cu(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,e=arguments.length>4?arguments[4]:void 0,s=Gr.getImage(t),u=new s;n&&(u.referrerPolicy="no-referrer");var o=0;if(null!=r)if(ku(t.document)){var h=Nu(t,o=6,e);r=h(r),u.attributionSrc=r}else o=5;var a=Nu(t,o,e);return i=a(i),u.src=i,u}function Nu(t,i,n){var r={"ATTRIBUTION_REPORTING_STATUS":function(){return i}},e=lr(n||t.document),s={"ATTRIBUTION_REPORTING_STATUS":!0};return function(t){return e.expandUrlSync(t,r,s)}}var Du="amp-pixel",ju=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t))._e=null,n}var r=n.prototype;return r.isLayoutSupported=function(t){return!0},r.buildCallback=function(){this.element.setAttribute("aria-hidden","true"),this.ke=this.element.getAttribute("referrerpolicy"),this.ke&&ti("no-referrer"==this.ke,"".concat(Du,': invalid "referrerpolicy" value "').concat(this.ke,'".')+' Only "no-referrer" is supported'),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?Qt().info(Du,"inabox img already present"):this.getAmpDoc().whenFirstVisible().then(this.Ne.bind(this))},r.Ne=function(){var t=this;if(this._e)return Qt().error(Du,"duplicate pixel"),this._e;this._e=fr(this.win).promise(1).then((function(){var i=t.element.getAttribute("src");if(i)return lr(t.element).expandUrlAsync(t.Ce(i)).then((function(i){if(t.win){var n=function(t,i,n,r,e){return n&&"no-referrer"!==n&&Jt().error("pixel","Unsupported referrerPolicy: %s",n),"no-referrer"===n?function(t,i,n,r){if("referrerPolicy"in Image.prototype)return Cu(t,i,!0,n,r);var e,s=(e={"src":"about:blank","style":"display:none"},function(t,i){for(var n in i)t.setAttribute(n,i[n]);return t}(t.document.createElement("iframe"),e));return s.onload=function(){Cu(s.contentWindow,i,void 0,void 0,r)},t.document.body.appendChild(s),s}(t,i,r,e):Cu(t,i,!1,r,e)}(t.win,i,t.ke,t.element.getAttribute("attributionsrc"),t.element);return Qt().info(Du,"pixel triggered: ",i),n}}))}))},r.Ce=function(t){return ti(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t},n}(uu),Uu=function(){function t(t,i,n){var r=this;this.je=fr(t),this.De=i,this.Ue=n||0,this.ze=-1,this.Le=0,this.He=!1,this.Ge=function(){r.Ve()}}var i=t.prototype;return i.isPending=function(){return-1!=this.ze},i.schedule=function(t){var i=t||this.Ue;this.He&&i<10&&(i=10);var n=Date.now()+i;return(!this.isPending()||n-this.Le<-10)&&(this.cancel(),this.Le=n,this.ze=this.je.delay(this.Ge,i),!0)},i.Ve=function(){this.ze=-1,this.Le=0,this.He=!0,this.De(),this.He=!1},i.cancel=function(){this.isPending()&&(this.je.cancel(this.ze),this.ze=-1)},t}();function Lu(t,i){var n=i.documentElement;return t.some((function(t){return n.hasAttribute(t)}))}function zu(t){return Lu(["⚡4email","amp4email"],t)}function Hu(t){return Lu(["⚡","amp"],t)}var Gu="Action",Vu="__AMP_ACTION_MAP__"+Math.random(),Fu="__AMP_ACTION_QUEUE__",Bu="__AMP_ACTION_HANDLER__",qu={"form":["submit","clear"]},$u=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Wu={"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},Yu=function(){function t(t,i,n,r,e,s,u){var o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"?",h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,a=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Math.random();this.node=t,this.method=i,this.args=n,this.source=r,this.caller=e,this.event=s,this.trust=u,this.actionEventType=o,this.tagOrTarget=h||t.tagName,this.sequenceId=a}return t.prototype.satisfiesTrust=function(t){if(!J(this.trust))return Qt().error(Gu,"Invalid trust for '".concat(this.method,"': ").concat(this.trust)),!1;if(this.trust<t){var i=function(t){switch(t){case 1:return"low";case 3:return"high";default:return et(2===t),"default"}}(this.trust);return Jt().error(Gu,'"'.concat(this.actionEventType,'" event with "').concat(i,'" trust is not allowed to ')+'invoke "'.concat(this.tagOrTarget.toLowerCase(),".").concat(this.method,'".')),!1}return!0},t}(),Ku=function(){function t(t,i){this.ampdoc=t,this.Fe=i||t.getRootNode(),this.Be=this.ampdoc.isSingleDoc()&&zu(this.Fe),this.qe=this.Be?$u:null,this.$e=A(),this.We=A(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}var i=t.prototype;return i.addEvent=function(t){var i=this;if("tap"==t)this.Fe.addEventListener("click",(function(n){if(!n.defaultPrevented){var r=n.target;i.trigger(r,t,n,3)}})),this.Fe.addEventListener("keydown",(function(n){var r=n.key,e=n.target;if("Enter"==r||" "==r){var s=e.getAttribute("role"),u=s&&x(Wu,s.toLowerCase());!n.defaultPrevented&&u&&i.trigger(e,t,n,3)&&n.preventDefault()}}));else if("submit"==t)this.Fe.addEventListener(t,(function(n){var r=n.target;i.trigger(r,t,n,3)}));else if("change"==t)this.Fe.addEventListener(t,(function(n){var r=n.target;i.Ke(n),i.trigger(r,t,n,3)}));else if("input-debounced"==t){var n=mt(this.ampdoc.win,(function(n){var r=n.target;i.trigger(r,t,n,3)}),300);this.Fe.addEventListener("input",(function(t){var r=new Xu(t);i.Ke(r),n(r)}))}else if("input-throttled"==t){var r=dt(this.ampdoc.win,(function(n){var r=n.target;i.trigger(r,t,n,3)}),100);this.Fe.addEventListener("input",(function(t){var n=new Xu(t);i.Ke(n),r(n)}))}else"valid"!=t&&"invalid"!=t||this.Fe.addEventListener(t,(function(n){var r=n.target;i.trigger(r,t,n,3)}))},i.addGlobalTarget=function(t,i){this.$e[t]=i},i.addGlobalMethodHandler=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this.We[t]={handler:i,minTrust:n}},i.trigger=function(t,i,n,r,e){return this.Ye(t,i,n,r,e)},i.execute=function(t,i,n,r,e,s,u){var o=new Yu(t,i,n,r,e,s,u);this.Je(o)},i.installActionHandler=function(t,i){if(Zt(Ju(t.getAttribute("id")||"")||t.tagName.toLowerCase()in qu),t[Bu])Qt().error(Gu,"Action handler already installed for ".concat(t));else{t[Bu]=i;var n=t[Fu];V(n)&&fr(oi(t)).delay((function(){n.forEach((function(t){try{i(t)}catch(i){Qt().error(Gu,"Action execution failed:",t,i)}})),t[Fu].length=0}),1)}},i.hasAction=function(t,i,n){return!!this.Xe(t,i,n)},i.hasResolvableAction=function(t,i,n){var r=this,e=this.Xe(t,i,n);return!!e&&e.actionInfos.some((function(t){var i=t.target;return!!r.Qe(i)}))},i.hasResolvableActionForTarget=function(t,i,n,r){var e=this,s=this.Xe(t,i,r);return!!s&&s.actionInfos.some((function(t){var i=t.target;return e.Qe(i)==n}))},i.Qe=function(t){return this.$e[t]?this.Fe:this.Fe.getElementById(t)},i.setAllowlist=function(t){Zt(t.every((function(t){return t.tagOrTarget&&t.method}))),this.qe=t},i.addToAllowlist=function(t,i,n){var r=this;n&&n.includes("email")!==this.Be||(this.qe||(this.qe=[]),V(i)||(i=[i]),i.forEach((function(i){r.qe.some((function(n){return n.tagOrTarget==t&&n.method==i}))||r.qe.push({tagOrTarget:t,method:i})})))},i.Ye=function(t,i,n,r,e){var s=this,u=this.Xe(t,i);if(!u)return!1;var h=Math.random(),a=null;return u.actionInfos.forEach((function(c){var f=c.args,l=c.method,v=c.str,d=c.target,m=function(t,i,n){if(!t)return t;var r=n||{};if(i){var e=function(t){return t.detail}(i);e&&(r.event=e)}var s=A();return Object.keys(t).forEach((function(i){var n=t[i];if("object"==p(n)&&n.expression){var e=n.expression,u=function(t,i){if("."==i)return t;for(var n,r=t,e=o(i.split("."),!0);!(n=e()).done;){var s=n.value;if(!(s&&r&&void 0!==r[s]&&"object"==p(r)&&x(r,s))){r=void 0;break}r=r[s]}return r}(r,e);n=void 0===u?null:u}r[n]?s[i]=r[n]:s[i]=n})),s}(f,n,e),g=function(){var e=s.Qe(d);if(e){var o=new Yu(e,l,m,t,u.node,n,r,i,e.tagName||d,h);return s.Je(o)}s.Ze('Target "'.concat(d,'" not found for action [').concat(v,"]."))};a=a?a.then(g):g()})),u.actionInfos.length>=1},i.Ze=function(t,i){if(i){var n=Jt().createError("[".concat(Gu,"] ").concat(t));throw Us(n,i),n}Jt().error(Gu,t)},i.Je=function(t){var i=t.method,n=t.tagOrTarget;if(this.qe&&!function(t,i){var n=t.method,r=t.node,e=t.tagOrTarget;n===su&&"function"==typeof r.getDefaultActionAlias&&(n=r.getDefaultActionAlias());var s=n.toLowerCase(),u=e.toLowerCase();return i.some((function(t){return(t.tagOrTarget.toLowerCase()===u||"*"===t.tagOrTarget)&&t.method.toLowerCase()===s}))}(t,this.qe))return this.Ze('"'.concat(n,".").concat(i,'" is not allowlisted ').concat(JSON.stringify(this.qe),".")),null;var r=this.$e[n];if(r)return r(t);var e=t.node,s=this.We[i];if(s&&t.satisfiesTrust(s.minTrust))return s.handler(t);var u=e.tagName.toLowerCase();if(Ju(u))return e.enqueAction?e.enqueAction(t):this.Ze('Unrecognized AMP element "'.concat(u,'".'),e),null;var o=qu[u];if(Ju(e.getAttribute("id")||"")||o&&o.indexOf(i)>-1){var h=e[Bu];return h?h(t):(e[Fu]=e[Fu]||[],e[Fu].push(t)),null}return this.Ze("Target (".concat(n,") doesn't support \"").concat(i,'" action.'),t.caller),null},i.Xe=function(t,i,n){for(var r,e=t;e;){if(n&&e==n)return null;var s=this.ts(e,i);if(s&&!(r=e).disabled&&!gi(r,":disabled"))return{node:e,actionInfos:Zt(s)};e=e.parentElement}return null},i.ts=function(t,i){var n=this.ns(t,i);return n&&n[i]||null},i.ns=function(t,i){var n=t[Vu];if(void 0===n)if(n=null,t.hasAttribute("on"))n=Zu(t.getAttribute("on"),t),t[Vu]=n;else if(t.hasAttribute("execute")){var r=t.getAttribute("execute");n=Zu("".concat(i,":").concat(r),t),t[Vu]=n}return n},i.setActions=function(t,i){t.setAttribute("on",i),delete t[Vu]},i.Ke=function(t){var i=A(),n=t.target;if(void 0!==n.value&&(i.value=n.value),"INPUT"==n.tagName&&(i.valueAsNumber=Number(n.value)),void 0!==n.checked&&(i.checked=n.checked),void 0===n.min&&void 0===n.max||(i.min=n.min,i.max=n.max),n.files&&(i.files=G(n.files).map((function(t){return{"name":t.name,"size":t.size,"type":t.type}}))),Object.keys(i).length>0)try{t.detail=i}catch(t){}},t}();function Ju(t){return"amp-"===t.substring(0,4)}var Xu=function(t){this.detail=null,function(t,i){var n=i||A();for(var r in t){var e=t[r];n[r]="function"==typeof e?Qu:t[r]}}(t,this)};function Qu(){Zt(null)}function Zu(t,i){var n,r,e=io.bind(null,t,i),s=no.bind(null,t,i),u=null,o=new so(t);do{if((n=o.next()).type==ro.EOF||n.type==ro.SEPARATOR&&";"==n.value);else if(n.type==ro.LITERAL||n.type==ro.ID){var h=n.value;s(o.next(),[ro.SEPARATOR],":");var a=[];do{var c=s(o.next(),[ro.LITERAL,ro.ID]).value,f=su,l=null;(r=o.peek()).type==ro.SEPARATOR&&"."==r.value&&(o.next(),f=s(o.next(),[ro.LITERAL,ro.ID]).value||f,(r=o.peek()).type==ro.SEPARATOR&&"("==r.value&&(o.next(),l=to(o,s,e))),a.push({event:h,target:c,method:f,args:l,str:t}),r=o.peek()}while(r.type==ro.SEPARATOR&&","==r.value&&o.next());u||(u=A()),u[h]=a}else e(!1,"; unexpected token [".concat(n.value||"","]"))}while(n.type!=ro.EOF);return u}function to(t,i,n){var r,e,s=t.peek(),u=null;if(s.type==ro.OBJECT){u=A();var o=t.next().value;u.__AMP_OBJECT_STRING__=o,i(t.next(),[ro.SEPARATOR],")")}else do{var h=r=t.next(),a=h.type,c=h.value;if(a!=ro.SEPARATOR||","!=c&&")"!=c)if(a==ro.LITERAL||a==ro.ID){i(t.next(),[ro.SEPARATOR],"=");var f=[r=i(t.next(!0),[ro.LITERAL,ro.ID])];if(r.type==ro.ID)for(s=t.peek();s.type==ro.SEPARATOR&&"."==s.value;s=t.peek())t.next(),r=i(t.next(!1),[ro.ID]),f.push(r);var l=0==(e=f).length?null:1==e.length?e[0].value:{expression:e.map((function(t){return t.value})).join(".")};u||(u=A()),u[c]=l,n((s=t.peek()).type==ro.SEPARATOR&&(","==s.value||")"==s.value),"Expected either [,] or [)]")}else n(!1,"; unexpected token [".concat(r.value||"","]"))}while(r.type!=ro.SEPARATOR||")"!=r.value);return u}function io(t,i,n,r){return ti(n,"Invalid action definition in %s: [%s] %s",i,t,r||"")}function no(t,i,n,r,e){return void 0!==e?io(t,i,r.includes(n.type)&&n.value==e,"; expected [".concat(e,"]")):io(t,i,r.includes(n.type)),n}var ro={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},eo=" \t\n\r\f\v \u2028\u2029",so=function(){function t(t){this.rs=t,this.es=-1}var i=t.prototype;return i.next=function(t){var i=this.ss(t||!1);return this.es=i.index,i},i.peek=function(t){return this.ss(t||!1)},i.ss=function(t){var i=this.es+1;if(i>=this.rs.length)return{type:ro.EOF,index:this.es};var n=this.rs.charAt(i);if(-1!=eo.indexOf(n)){for(i++;i<this.rs.length&&-1!=eo.indexOf(this.rs.charAt(i));i++);if(i>=this.rs.length)return{type:ro.EOF,index:i};n=this.rs.charAt(i)}if(t&&(uo(n)||"."==n&&i+1<this.rs.length&&uo(this.rs[i+1]))){for(var r="."==n,e=i+1;e<this.rs.length;e++){var s=this.rs.charAt(e);if("."!=s){if(!uo(s))break}else r=!0}var u=this.rs.substring(i,e),o=r?parseFloat(u):parseInt(u,10);return i=e-1,{type:ro.LITERAL,value:o,index:i}}if(-1!=";:.()=,|!".indexOf(n))return{type:ro.SEPARATOR,value:n,index:i};if(-1!="\"'".indexOf(n)){for(var h=-1,a=i+1;a<this.rs.length;a++)if(this.rs.charAt(a)==n){h=a;break}if(-1==h)return{type:ro.INVALID,index:i};var c=this.rs.substring(i+1,h);return i=h,{type:ro.LITERAL,value:c,index:i}}if("{"==n){for(var f=1,l=-1,v=i+1;v<this.rs.length;v++){var d=this.rs[v];if("{"==d?f++:"}"==d&&f--,f<=0){l=v;break}}if(-1==l)return{type:ro.INVALID,index:i};var m=this.rs.substring(i,l+1);return i=l,{type:ro.OBJECT,value:m,index:i}}for(var p=i+1;p<this.rs.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.rs.charAt(p));p++);var g=this.rs.substring(i,p);if(i=p-1,t&&("true"==g||"false"==g)){var b="true"==g;return{type:ro.LITERAL,value:b,index:i}}return uo(g.charAt(0))?{type:ro.LITERAL,value:g,index:i}:{type:ro.ID,value:g,index:i}},t}();function uo(t){return t>="0"&&t<="9"}function oo(t){return!!t&&"function"==typeof t.getFormData}var ho=["GET","POST"],ao=[V,w];function co(t,i){var n=D({},i);if(oo(i.body)){var r=i.body;n.headers["Content-Type"]="multipart/form-data;charset=utf-8",n.body=function(t){for(var i=[],n=t.next();!n.done;n=t.next())i.push(n.value);return i}(r.entries())}return{input:t,init:n}}function fo(t,i,n,r){if(!i)return h();var e=r.prerenderSafe?h():i.whenFirstVisible(),s=mr(i),u=Ps(n),o=s.hasCapability("xhrInterceptor"),a=r.bypassInterceptorForDev&&!1;return u||!o||a?e:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?e.then((function(){return s.isTrustedViewer()})).then((function(i){if(i||Fe(t,"untrusted-xhr-interception")){var e={"originalRequest":co(n,r)};return s.sendMessageAwaitResponse("xhr",e).then((function(t){return function(t,i){if(ht(w(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);var n=A(),r={status:200,statusText:"OK",getResponseHeader:function(t){return n[String(t).toLowerCase()]||null}};if(t.init){var e=t.init;V(e.headers)&&e.headers.forEach((function(t){var i=t[0],r=t[1];n[String(i).toLowerCase()]=String(r)})),e.status&&(r.status=parseInt(e.status,10)),e.statusText&&(r.statusText=String(e.statusText))}return new Response(t.body?String(t.body):"",r)}(t,r.responseType)}))}})):e}function lo(t,i,n){return et("string"==typeof i),!1!==n.ampCors&&(i=_s(t,i)),i}function vo(t,i){var n,r=t||{},e=r.credentials;return et(void 0===e||"include"==e||"omit"==e),r.method=void 0===(n=r.method)?"GET":(n=n.toUpperCase(),et(ho.includes(n)),n),r.headers=r.headers||{},i&&(r.headers.Accept=i),et(null!==r.body),r}function mo(t,i,n){n=n||{};var r=function(t){return t.origin||ms(t.location.href).origin}(t);return r==ms(i).origin&&(n.headers=n.headers||{},n.headers["AMP-Same-Origin"]="true"),n}function po(t){return new Promise((function(i){if(t.ok)return i(t);var n=t.status,r=Jt().createError("HTTP error ".concat(n));throw r.retriable=function(t){return 415==t||t>=500&&t<600}(n),r.response=t,r}))}var go=function(){function t(t){this.win=t;var i=Jn(t);this.os=i.isSingleDoc()?i.getSingleDoc():null}var i=t.prototype;return i.us=function(t,i){var n=arguments,r=this;return fo(this.win,this.os,t,i).then((function(t){if(t)return t;if(oo(i.body)){var e=i.body;i.body=e.getFormData()}return r.win.fetch.apply(null,n)}))},i.hs=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=lo(this.win,t,i),i=mo(this.win,t,i),this.us(t,i).then((function(t){return t}),(function(i){var n=ms(t).origin;throw Jt().createExpectedError("XHR","Failed fetching (".concat(n,"/...):"),i&&i.message)}))},i.fetchJson=function(t,i){return this.fetch(t,function(t){var i=vo(t,"application/json");if("POST"==i.method&&!oo(i.body)){et(ao.some((function(t){return t(i.body)}))),i.headers["Content-Type"]=i.headers["Content-Type"]||"text/plain;charset=utf-8";var n=i.headers["Content-Type"];i.body="application/x-www-form-urlencoded"===n?ws(i.body):JSON.stringify(i.body)}return i}(i))},i.fetchText=function(t,i){return this.fetch(t,vo(i,"text/plain"))},i.xssiJson=function(t,i){return i?t.text().then((function(t){return t.startsWith(i)?at(t.slice(i.length)):(Jt().warn("XHR",'Failed to strip missing prefix "'.concat(i,'" in fetch response.')),at(t))})):t.json()},i.fetch=function(t,i){var n=vo(i);return this.hs(t,n).then((function(t){return po(t)}))},i.sendSignal=function(t,i){return this.hs(t,i).then((function(t){return po(t)}))},i.getCorsUrl=function(t,i){return _s(t,i)},t}(),bo=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).cs=A(),n}var r=n.prototype;return r.fetch=function(i,n){var r=this,e=n&&n.headers&&n.headers.Accept||"",s=!n||!n.method||"GET"===n.method,u=this.fs(i,e),o=!!this.cs[u];if(s&&o)return this.cs[u].then((function(t){return t.clone()}));var h=t.prototype.fetch.call(this,i,n);return s&&(this.cs[u]=h.then((function(t){return delete r.cs[u],t.clone()}),(function(t){throw delete r.cs[u],t}))),h},r.fs=function(t,i){return Es(Rs(t,Ss(this.win.location)))+i},n}(go),yo={"+":"-","/":"_","=":"."};function wo(t){var i=function(t){for(var i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(t);return btoa(i).replace(/[+/=]/g,(function(t){return yo[t]}))}var Ao="AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc",xo="CacheCidApi",Eo=function(){function t(t){this.Ki=t,this.ls=mr(this.Ki),this.vs=null,this.je=fr(this.Ki.win)}var i=t.prototype;return i.isSupported=function(){return this.ls.isCctEmbedded()&&this.ls.isProxyOrigin()},i.getScopedCid=function(t){var i=this;return this.ls.isCctEmbedded()?(this.vs||(this.vs=this.ds("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc")),this.vs.then((function(n){return n?i.ps(n,t):null}))):Promise.resolve(null)},i.ds=function(t){var i=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={"publisherOrigin":Ss(this.Ki.win.location)},e="fetchCidTimeout";return this.je.timeoutPromise(3e4,br(this.Ki.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:r}),e).then((function(t){return t.json().then((function(t){if(t.optOut)return null;var r=t.publisherClientId;if(!r&&n&&t.alternateUrl){var e="".concat(t.alternateUrl,"?key=").concat(Ao);return i.ds(e,!1)}return r}))})).catch((function(t){return t&&t.response?t.response.json().then((function(t){Qt().error(xo,JSON.stringify(t))})):t&&t.message==e?Qt().expectedError(xo,t):Qt().error(xo,t),null}))},i.ps=function(t,i){var n=t+";"+i;return tr(this.Ki.win).sha384Base64(n).then((function(t){return"amp-"+t}))},t}(),Po="-test-amp-cookie-tmp";function Oo(t,i){var n=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!n)return null;for(var r=n.split(";"),e=0;e<r.length;e++){var s=r[e].trim(),u=s.indexOf("=");if(-1!=u&&bt(s.substring(0,u).trim())==i){var o=s.substring(u+1).trim();return bt(o,o)}}return null}function Io(t,i,n,r){var e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};So(t,e,i);var s=void 0;e.domain?s=e.domain:e.highestAvailableDomain&&(s=To(t)),Mo(t,i,n,r,s,e.sameSite,e.secure)}function To(t){var i=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(i){var n=i.getAttribute("content")||"",r=Ss(t.location.href);return W(r,"."+n)?n:r.split("://")[1]}if(!Ps(t.location.href))for(var e=t.location.hostname.split("."),s=e[e.length-1],u=function(t){for(var i=Po;Oo(t,i);)i=Po+0;return i}(t),o=e.length-2;o>=0;o--)if(s=e[o]+"."+s,Mo(t,u,"delete",Date.now()+1e3,s),"delete"==Oo(t,u))return Mo(t,u,"delete",Date.now()-1e3,s),s;return null}function Mo(t,i,n,r,e,s,u){"ampproject.org"==e&&(n="delete",r=0);var o=encodeURIComponent(i)+"="+encodeURIComponent(n)+"; path=/"+(e?"; domain="+e:"")+"; expires="+new Date(r).toUTCString()+function(t,i){return i?"; SameSite=".concat(i):""}(0,s)+(u?"; Secure":"");try{t.document.cookie=o}catch(t){}}function So(t,i,n){if(i.allowOnProxyOrigin)ti(!i.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");else{ti(!Ps(t.location.href),"Should never attempt to set cookie on proxy origin: ".concat(n));var r=ms(t.location.href).hostname.toLowerCase(),e=ms(Tt).hostname.toLowerCase();ti(!(r==e||W(r,"."+e)),"Should never attempt to set cookie on proxy origin. (in depth check): "+n)}}var Ro="GoogleCidApi",_o="AMP_TOKEN",ko="$RETRIEVING",Co="$OPT_OUT",No="$NOT_FOUND",Do=3e4,jo=31536e6,Uo=function(){function t(t){this.t=t.win,this.je=fr(this.t),this.bs={};var i=ir(t).canonicalUrl;this.gs=i?ms(i).origin:null}var i=t.prototype;return i.getScopedCid=function(t,i){var n,r=this;return this.bs[i]?this.bs[i]:this.bs[i]=this.je.poll(200,(function(){return(n=Oo(r.t,_o))!==ko})).then((function(){if(n===Co)return Co;if((n!==No||!r.ys())&&r.ws(n))return null;n&&!r.ws(n)||r.As(ko,Do);var e="https://ampcid.google.com/v1/publisher:getClientId?key="+t;return r.ds(e,i,n).then((function(e){var s=r.R(e);if(!s&&e.alternateUrl){var u="".concat(e.alternateUrl,"?key=").concat(t);return r.ds(u,i,n).then(r.R.bind(r))}return s})).catch((function(t){return r.As("$ERROR",Do),t&&t.response?t.response.json().then((function(t){Qt().error(Ro,JSON.stringify(t))})):Qt().error(Ro,t),null}))}))},i.ds=function(t,i,n){var r={"originScope":i,"canonicalOrigin":this.gs};return n&&(r.securityToken=n),this.je.timeoutPromise(Do,br(this.t).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:r}).then((function(t){return t.json()})))},i.R=function(t){return t.optOut?(this.As(Co,jo),Co):t.clientId?(this.As(t.securityToken,jo),t.clientId):(t.alternateUrl||this.As(No,36e5),null)},i.As=function(t,i){t&&Io(this.t,_o,t,this.xs(i),{highestAvailableDomain:!0})},i.xs=function(t){return this.t.Date.now()+t},i.ys=function(){return Ps(Gr.getDocumentReferrer(this.t))},i.ws=function(t){return t&&"$"===t[0]},t}(),Lo=function(){function t(t){this.Ki=t,this.ls=mr(this.Ki);var i=ir(this.Ki).canonicalUrl;this.gs=i?ms(i).origin:null}var i=t.prototype;return i.isSupported=function(){return this.ls.hasCapability("cid")?this.ls.isTrustedViewer():Promise.resolve(!1)},i.getScopedCid=function(t,i){var n={"scope":i,"clientIdApi":!!t,"canonicalOrigin":this.gs};return t&&(n.apiKey=t),this.ls.sendMessageAwaitResponse("cid",n)},t}(),zo=31536e6,Ho=/^[a-zA-Z0-9-_.]+$/,Go="amp-cid-optout",Vo="amp-google-client-id-api",Fo={"googleanalytics":"AMP_ECID_GOOGLE"},Bo={"googleanalytics":"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"},qo=function(){function t(t){this.ampdoc=t,this.Es=null,this.Os=Object.create(null),this.Ts=new Eo(t),this.Ps=new Lo(t),this.Is=new Uo(t),this.Ss=null}var i=t.prototype;return i.get=function(t,i,n){var r=this;return ti(Ho.test(t.scope)&&Ho.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((function(){return r.ampdoc.whenFirstVisible()})).then((function(){return t=r.ampdoc,cr(t).then((function(t){return t.get(Go).then((function(t){return!!t}))})).catch((function(){return!1}));var t})).then((function(e){if(e)return"";var s=r.Ms(t,n||i);return fr(r.ampdoc.win).timeoutPromise(1e4,s,'Getting cid for "'.concat(t.scope,'" timed out')).catch((function(t){d(t)}))}))},i.optOut=function(){return t=this.ampdoc,mr(t).sendMessage("cidOptOut",{}),cr(t).then((function(t){return t.set(Go,!0)}));var t},i.Ms=function(t,i){var n=this,r=t.scope,e=ms(this.ampdoc.win.location.href);if(!Ps(e)){var s=this.Rs(r);return s?this.Is.getScopedCid(s,r).then((function(e){if(e==Co)return null;if(e){var s=t.cookieName||r;return $o(n.ampdoc.win,s,e),e}return Ko(n,t,i)})):Ko(this,t,i)}return this.Ps.isSupported().then((function(t){if(t){var s=n.Rs(r);return n.Ps.getScopedCid(s,r)}return n.Ts.isSupported()&&n.Rs(r)?n.Ts.getScopedCid(r).then((function(t){return t||n._s(i,r,e)})):n._s(i,r,e)}))},i._s=function(t,i,n){var r=this;return function(t,i){if(t.Es)return t.Es;var n=t.ampdoc.win;return t.Es=function(t){var i,n=t.win;try{i=n.localStorage.getItem("amp-cid")}catch(t){}var r=Promise.resolve(i);return!i&&Ni(n)&&(r=Jo(t)),r.then((function(t){if(!t)return null;var i=at(t);return{time:i.time,cid:i.cid}}))}(t.ampdoc).then((function(r){var e,s,u,o=!1;return!r||(s=r.time,u=Date.now(),s+zo<u)?(e=tr(n).sha384Base64(Qo(n)),o=!0):(e=Promise.resolve(r.cid),r.time+864e5<Date.now()&&(o=!0)),o&&e.then((function(n){!function(t,i,n){var r=t.win;Ni(r)?Jo(t,Xo(n)):i.then((function(){try{r.localStorage.setItem("amp-cid",Xo(n))}catch(t){}}))}(t.ampdoc,i,n)})),e}))}(this,t).then((function(t){return tr(r.ampdoc.win).sha384Base64(t+function(t){return ti(Ps(t),"Expected proxy origin %s",t.origin),Ss(t)}(n)+i)}))},i.Rs=function(t){return this.Ss||(this.Ss=this.ks()),this.Ss[t]},i.ks=function(){var t={},i=this.ampdoc.getMetaByName(Vo);return i&&i.split(",").forEach((function(i){if((i=i.trim()).indexOf("=")>0){var n=i.split("="),r=n[0].trim();t[r]=n[1].trim()}else{var e=i,s=Fo[e];s?t[s]=Bo[e]:Jt().warn("CID","Unsupported client for Google CID API: ".concat(e,".")+'Please remove or correct meta[name="'.concat(Vo,'"]'))}})),t},t}();function $o(t,i,n){Io(t,i,n,Date.now()+zo,{highestAvailableDomain:!0})}function Wo(t,i,n){cr(t).then((function(t){if(!t.isViewerStorage()){var r=Yo(i);t.setNonBoolean(r,n)}}))}function Yo(t){return"amp-cid:"+t}function Ko(t,i,n){var r=t.ampdoc,e=r.win,s=i.disableBackup,u=i.scope,o=i.cookieName||u;return function(t,i){var n=t.ampdoc,r=n.win,e=i.disableBackup,s=i.scope,u=i.cookieName||s,o=Oo(r,u);return o?Promise.resolve(o):e?Promise.resolve(null):cr(n).then((function(t){var i=Yo(u);return t.get(i,zo)})).then((function(t){return t&&"string"==typeof t?t:null}))}(t,i).then((function(h){if(!h&&!i.createCookieIfNotPresent)return Promise.resolve(null);if(h)return/^amp-/.test(h)&&($o(e,o,h),s||Wo(r,o,h)),Promise.resolve(h);if(t.Os[u])return t.Os[u];var a=Zo(e).then((function(t){return"amp-"+t}));return Promise.all([a,n]).then((function(t){var i=t[0];Oo(e,o)||($o(e,o,i),s||Wo(r,o,i))})),t.Os[u]=a}))}function Jo(t,i){var n=mr(t);return n.isTrustedViewer().then((function(t){if(t)return Qt().expectedError("CID","Viewer does not provide cap=cid"),n.sendMessageAwaitResponse("cid",i).then((function(t){return t&&!function(t,i){try{return at(t)}catch(t){return null}}(t)?(Qt().expectedError("CID","invalid cid format"),JSON.stringify({"time":Date.now(),"cid":t})):t}))}))}function Xo(t){return JSON.stringify({"time":Date.now(),"cid":t})}function Qo(t){return lt(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Zo(t){var i=Qo(t);if("string"==typeof i)return tr(t).sha384Base64(i);var n=i;return c((function(){return wo(n).replace(/\.+$/,"")}))}var th="Crypto",ih=function(){function t(t){this.t=t;var i=null,n=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,n=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.Ns=n,this.Cs=null}var i=t.prototype;return i.sha384=function(t){var i=this;if("string"==typeof t&&(t=ft(t)),!this.subtle||this.Cs)return(this.Cs||this.js()).then((function(i){return i(t)}));try{return this.subtle.digest({name:"SHA-384"},t).then((function(t){return new Uint8Array(t)}),(function(n){return n.message&&n.message.indexOf("secure origin")<0&&Jt().error(th,"SubtleCrypto failed, fallback to closure lib.",n),i.js().then((function(){return i.sha384(t)}))}))}catch(n){return Qt().error(th,"SubtleCrypto failed, fallback to closure lib.",n),this.js().then((function(){return i.sha384(t)}))}},i.sha384Base64=function(t){return this.sha384(t).then((function(t){return wo(t)}))},i.uniform=function(t){return this.sha384(t).then((function(t){for(var i=0,n=2;n>=0;n--)i=(i+t[n])/256;return i}))},i.js=function(){var t=this;return this.Cs?this.Cs:this.Cs=nr(this.t).preloadExtension("amp-crypto-polyfill").then((function(){return On(t.t,"crypto-polyfill")}))},i.isPkcsAvailable=function(){return Boolean(this.subtle)&&!1!==this.t.isSecureContext},i.importPkcsKey=function(t){Zt(this.isPkcsAvailable());var i=this.Ns?ct(JSON.stringify(t)):t;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])},i.verifyPkcs=function(t,i,n){return Zt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,n)},t}(),nh=["prefetch","preload","preconnect","dns-prefetch"],rh=function(){function t(t){this.Ki=t,this.Ds=null,this.Us=null}return t.prototype.get=function(){if(this.Ds)return this.Ds;var t=this.Ki,i=Ms(t.getUrl()),n=t.getRootNode(),r=n&&n.AMP&&n.AMP.canonicalUrl;if(!r){var e=n.querySelector("link[rel=canonical]");r=e?ms(e.href).href:i}var s,u=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),o=function(t){var i=A();if(t.head)for(var n=t.head.querySelectorAll("link[rel]"),r=function(t){var r=n[t],e=r.href,s=r.getAttribute("rel");if(!s||!e)return"continue";s.split(/\s+/).forEach((function(t){if(-1==nh.indexOf(t)){var n=i[t];n?(V(n)||(n=i[t]=[n]),n.push(e)):i[t]=e}}))},e=0;e<n.length;e++)r(e);return i}(t.win.document),h=(s=t.win.document.head.querySelector('meta[name="viewport"]'))?s.getAttribute("content"):null,a=function(t){if(!t.isSingleDoc()||"a"!=(i=t.win.location.href,Ps(i=ds(i))?i.pathname.split("/",2)[1]:null))return null;var i,n=yt(ms(t.win.location.href).search).amp_r;return void 0===n?null:yt(n)}(t);return this.Ds={get sourceUrl(){return Ms(t.getUrl())},canonicalUrl:r,pageViewId:u,get pageViewId64(){return this.Us||(this.Us=Zo(t.win)),this.Us},linkRels:o,viewport:h,replaceParams:a}},t}(),eh={attributes:!0,attributeFilter:["hidden"],subtree:!0},sh=function(){function t(t){this.Fe=t.getRootNode();var i=this.Fe.ownerDocument||this.Fe;this.t=Zt(i.defaultView),this.Nt=null,this.zs=null}var i=t.prototype;return i.add=function(t){var i=this;this.Ls();var n=this.zs.add(t);return function(){n(),0===i.zs.getHandlerCount()&&i.dispose()}},i.Ls=function(){var t=this;if(!this.Nt){this.zs=new Or;var i=new this.t.MutationObserver((function(i){i&&t.zs.fire(i)}));this.Nt=i,i.observe(this.Fe,eh)}},i.dispose=function(){this.Nt&&(this.Nt.disconnect(),this.zs.removeAll(),this.Nt=null,this.zs=null)},t}();function uh(t){try{return t.state}catch(t){return null}}var oh="History",hh="AMP.History",ah=function(){function t(t,i){this.Ki=t,this.je=fr(t.win),this.Hs=i,this.Gs=0,this.Vs=[],this.lr=[],this.Hs.setOnStateUpdated(this.Fs.bind(this))}var i=t.prototype;return i.cleanup=function(){this.Hs.cleanup()},i.push=function(t,i){var n=this;return this.Bs((function(){return n.Hs.push(i).then((function(i){return n.Fs(i),t&&(n.Vs[i.stackIndex]=t),i.stackIndex}))}),"push")},i.pop=function(t){var i=this;return this.Bs((function(){return i.Hs.pop(t).then((function(t){i.Fs(t)}))}),"pop")},i.replace=function(t){var i=this;return this.Bs((function(){return i.Hs.replace(t)}),"replace")},i.get=function(){var t=this;return this.Bs((function(){return t.Hs.get()}),"get")},i.goBack=function(t){var i=this;return this.Bs((function(){return i.Gs<=0&&!t?h():i.Hs.pop(i.Gs).then((function(t){i.Fs(t)}))}),"goBack")},i.replaceStateForTarget=function(t){var i=this;Zt("#"==t[0]);var n=this.Ki.win.location.hash;return this.push((function(){i.Ki.win.location.replace(n||"#")})).then((function(){i.Hs.replaceStateForTarget(t)}))},i.getFragment=function(){return this.Hs.getFragment()},i.updateFragment=function(t){return"#"==t[0]&&(t=t.substr(1)),this.Hs.updateFragment(t)},i.Fs=function(t){this.Gs=t.stackIndex,this.qs(t)},i.qs=function(t){var i=this;if(!(this.Gs>=this.Vs.length-1)){for(var n=[],r=this.Vs.length-1;r>this.Gs;r--)this.Vs[r]&&(n.push(this.Vs[r]),this.Vs[r]=void 0);if(this.Vs.splice(this.Gs+1),n.length>0)for(var e=function(r){i.je.delay((function(){return n[r](t)}),1)},s=0;s<n.length;s++)e(s)}},i.Bs=function(t,i){var n=new a,r=n.promise,e=n.reject,s=n.resolve,u=new Error("history trace for "+i+": ");return this.lr.push({callback:t,resolve:s,reject:e,trace:u}),1==this.lr.length&&this.$s(),r},i.$s=function(){var t=this;if(0!=this.lr.length){var i,n=this.lr[0];try{i=n.callback()}catch(t){i=Promise.reject(t)}i.then((function(t){n.resolve(t)}),(function(t){Qt().error(oh,"failed to execute a task:",t),n.trace&&(n.trace.message+=t,Qt().error(oh,n.trace)),n.reject(t)})).then((function(){t.lr.splice(0,1),t.$s()}))}},t}(),ch=function(){function t(t){var i=this;this.win=t,this.je=fr(t);var n=this.win.history;this.Ws=n.length-1;var r,e,s=uh(n);s&&void 0!==s[hh]&&(this.Ws=Math.min(s[hh],this.Ws)),this.Gs=this.Ws,this.Ks,this.Fs=null,this.Ys="state"in n,this.Js=this.Xs(this.Gs),n.pushState&&n.replaceState?(this.Qs=n.originalPushState||n.pushState.bind(n),this.Zs=n.originalReplaceState||n.replaceState.bind(n),r=function(t,n,r){i.Js=t;try{i.Qs(t,n,r||null)}catch(t){Qt().error(oh,"pushState failed: "+t.message)}},e=function(t,n,r){i.Js=t;try{void 0!==r?i.Zs(t,n,r):i.Zs(t,n)}catch(t){Qt().error(oh,"replaceState failed: "+t.message)}},n.originalPushState||(n.originalPushState=this.Qs),n.originalReplaceState||(n.originalReplaceState=this.Zs)):(r=function(t,n,r){i.Js=t},e=function(t,n,r){i.Js=t}),this.io=r,this.no=e;try{this.no(this.Xs(this.Gs,!0))}catch(t){Qt().error(oh,"Initial replaceState failed: "+t.message)}n.pushState=this.ro.bind(this),n.replaceState=this.eo.bind(this),this.so=function(t){var n=t.state;Qt().fine(oh,"popstate event: "+i.win.history.length+", "+JSON.stringify(n)),i.oo()},this.win.addEventListener("popstate",this.so)}var i=t.prototype;return i.cleanup=function(){this.Qs&&(this.win.history.pushState=this.Qs),this.Zs&&(this.win.history.replaceState=this.Zs),this.win.removeEventListener("popstate",this.so)},i.Xs=function(t,i){var n=A(i?this.uo():void 0);return n[hh]=t,n},i.setOnStateUpdated=function(t){this.Fs=t},i.push=function(t){var i=this;return this.ho((function(){var n=i.ao(i.uo(),t||{});return i.ro(n,void 0,n.fragment?"#"+n.fragment:void 0),c((function(){return i.ao(n,{stackIndex:i.Gs})}))}))},i.pop=function(t){var i=this;return t=Math.max(t,this.Ws),this.ho((function(){return i.co(i.Gs-t+1)})).then((function(t){return i.ao(i.uo(),{stackIndex:t})}))},i.replace=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ho((function(){var n=t.ao(t.uo(),i||{}),r=(n.url||"").replace(/#.*/,""),e=n.fragment?"#"+n.fragment:"";return t.eo(n,n.title,r||e?r+e:void 0),c((function(){return t.ao(n,{stackIndex:t.Gs})}))}))},i.get=function(){var t=this;return c((function(){return t.ao(t.uo(),{stackIndex:t.Gs})}))},i.backTo=function(t){var i=this;return t=Math.max(t,this.Ws),this.ho((function(){return i.co(i.Gs-t)}))},i.oo=function(){var t=this.uo();Qt().fine(oh,"history event: "+this.win.history.length+", "+JSON.stringify(t));var i=t?t[hh]:void 0,n=this.Gs,r=this.Ks;this.Ks=void 0,n>this.win.history.length-2&&(n=this.win.history.length-2,this.fo(this.ao(t,{stackIndex:n}))),null==i?n+=1:n=i<this.win.history.length?i:this.win.history.length-1,t||(t={}),t[hh]=n,this.no(t,void 0,void 0),n!=this.Gs&&this.fo(this.ao(t,{stackIndex:n})),n<this.Ws&&(this.Ws=n),r&&r.resolve()},i.uo=function(){return this.Ys?uh(this.win.history):this.Js},i.lo=function(){Zt(!this.Ks)},i.ho=function(t){return this.Ks?this.Ks.promise.then(t,t):t()},i.vo=function(){this.lo();var t=new a,i=t.reject,n=t.resolve,r=this.je.timeoutPromise(500,t.promise);return this.Ks={promise:r,resolve:n,reject:i},r},i.co=function(t){var i=this;if(this.lo(),t<=0)return Promise.resolve(this.Gs);this.Js=this.Xs(this.Gs-t);var n=this.vo();return this.win.history.go(-t),n.then((function(){return Promise.resolve(i.Gs)}))},i.ro=function(t,i,n){this.lo(),t||(t={});var r=this.Gs+1;t[hh]=r,this.io(t,i,n),r!=this.win.history.length-1&&(r=this.win.history.length-1,t[hh]=r,this.no(t));var e=this.ao(t,{stackIndex:r});this.fo(e)},i.replaceStateForTarget=function(t){var i=this;Zt("#"==t[0]),this.ho((function(){i.win.removeEventListener("popstate",i.so);try{i.win.location.replace(t)}finally{i.win.addEventListener("popstate",i.so)}return i.eo(),h()}))},i.eo=function(t,i,n){this.lo(),t||(t={});var r=Math.min(this.Gs,this.win.history.length-1);t[hh]=r,this.no(t,i,n);var e=this.ao(t,{stackIndex:r});this.fo(e)},i.fo=function(t){this.lo(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.Gs!=t.stackIndex&&(Qt().fine(oh,"stack index changed: "+this.Gs+" -> "+t.stackIndex),this.Gs=t.stackIndex,this.Fs&&this.Fs(t))},i.getFragment=function(){var t=this.win.location.hash;return t=t.substr(1),Promise.resolve(t)},i.updateFragment=function(t){return this.replace({fragment:t})},i.ao=function(t,i){var n=D(D({},t&&t.data||{}),i.data||{});return D(D(D({},t||{}),i),{},{data:n})},t}(),fh=function(){function t(t,i){var n=this;this.win=t,this.ls=i,this.Gs=0,this.Fs=null,this.do=this.ls.onMessage("historyPopped",(function(t){return n.mo(t)}))}var i=t.prototype;return i.replaceStateForTarget=function(t){Zt("#"==t[0]),this.win.location.replace(t)},i.cleanup=function(){this.do()},i.setOnStateUpdated=function(t){this.Fs=t},i.po=function(t,i,n){return this.bo(t)?t:(Qt().warn(oh,'Ignored unexpected "%s" data:',n,t),i)},i.bo=function(t){return!!t&&void 0!==t.stackIndex},i.push=function(t){var i=this,n=D({"stackIndex":this.Gs+1},t||{}),r="pushHistory";return this.ls.sendMessageAwaitResponse(r,n).then((function(t){var e=n,s=i.po(t,e,r);return i.fo(s),s}))},i.pop=function(t){var i=this;if(t>this.Gs)return this.get();var n={"stackIndex":this.Gs},r="popHistory";return this.ls.sendMessageAwaitResponse(r,n).then((function(t){var n={"stackIndex":i.Gs-1},e=i.po(t,n,r);return i.fo(e),e}))},i.replace=function(t){var i=this;if(t&&t.url){if(!this.ls.hasCapability("fullReplaceHistory")){var n={"stackIndex":this.Gs};return Promise.resolve(n)}var r=t.url.replace(/#.*/,"");t.url=r}var e=D({"stackIndex":this.Gs},t||{}),s="replaceHistory";return this.ls.sendMessageAwaitResponse(s,e,!0).then((function(t){var n=e,r=i.po(t,n,s);return i.fo(r),r}))},i.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.Gs,title:""})},i.mo=function(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.bo(t)?this.fo(t):Qt().warn(oh,'Ignored unexpected "historyPopped" data:',t)},i.fo=function(t){var i=t.stackIndex;this.Gs!=i&&(Qt().fine(oh,"stackIndex: ".concat(this.Gs," -> ").concat(i)),this.Gs=i,this.Fs&&this.Fs(t))},i.getFragment=function(){return this.ls.hasCapability("fragment")?this.ls.sendMessageAwaitResponse("getFragment",void 0,!0).then((function(t){if(!t)return"";var i=t;return"#"==i[0]&&(i=i.substr(1)),i})):Promise.resolve("")},i.updateFragment=function(t){return this.ls.hasCapability("fragment")?this.ls.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):h()},t}();function lh(t){var i,n=mr(t);return n.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?i=new fh(t.win,n):(En(t.win,"global-history-binding",ch),i=On(t.win,"global-history-binding")),new ah(t,i)}function vh(t,i){return nr(t.win).installExtensionForDoc(t,"amp-loader").then((function(){return function(t){return Vn(t,"loader","amp-loader")}(i)}))}var dh=['<div slot=i-amphtml-svc class="i-amphtml-svc i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],mh=function(){function t(t){this.Ki=t;var i=t.win,n=this.yo.bind(this);this.wo=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.needsRootBounds,e=n.rootMargin,s=n.threshold,u=Ni(i)&&(r||e)?i.document:void 0;return new i.IntersectionObserver(t,{threshold:s,root:u,rootMargin:e})}((function(t){return t.forEach(n)}),i),this.Ao=new WeakMap}var i=t.prototype;return i.dispose=function(){this.wo.disconnect()},i.track=function(t){this.wo.observe(t)},i.untrack=function(t){this.wo.unobserve(t),this.xo(t)},i.yo=function(t){var i=t.boundingClientRect,n=t.isIntersecting,r=t.target,e=i.height,s=i.width,u=r,o=n&&s>20&&e>20,h=this.Ao.get(u);o!==(h&&h.shown||!1)&&(o&&!h&&(h=this.Eo(u,s,e),this.Ao.set(u,h)),h&&(h.shown=o,h.container.classList.toggle("amp-hidden",!o),h.loader.classList.toggle("amp-active",o)))},i.Eo=function(t,i,n){var r=Date.now(),e=function(t,i,n,r){var e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.win.Date.now(),s=i.ownerDocument.createElement("div");return vh(t,i).then((function(u){var o=t.win.Date.now()-e;u.initializeLoader(i,s,o,n,r)})),s}(this.Ki,t,i,n,r),s=Ne(this.Ki.win.document)(dh);return s.appendChild(e),t.appendChild(s),{shown:!1,loader:e,container:s}},i.xo=function(t){var i=this.Ao.get(t);i&&(this.Ao.delete(t),Mi(i.container))},t}(),ph=function(){function t(t,i){var n=this;this.win=t,this.Oo=i,this.To=[],this.Po=new Or,this.Io=function(t){K(t.target)&&n.So(t.target)},this.Mo=function(i){fr(t).delay((function(){n.win.document.activeElement&&n.So(n.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.Io,!0),this.win.addEventListener("blur",this.Mo)}var i=t.prototype;return i.xo=function(){this.win.document.removeEventListener("focus",this.Io,!0),this.win.removeEventListener("blur",this.Mo)},i.onFocus=function(t){return this.Po.add(t)},i.So=function(t){var i=Date.now();0==this.To.length||this.To[this.To.length-1].el!=t?this.To.push({el:t,time:i}):this.To[this.To.length-1].time=i,this.purgeBefore(i-this.Oo),this.Po.fire(t)},i.getLast=function(){return 0==this.To.length?null:this.To[this.To.length-1].el},i.purgeBefore=function(t){for(var i=this.To.length-1,n=0;n<this.To.length;n++)if(this.To[n].time>=t){i=n-1;break}-1!=i&&this.To.splice(0,i+1)},i.hasDescendantsOf=function(t){this.win.document.activeElement&&this.So(this.win.document.activeElement);for(var i=0;i<this.To.length;i++)if(t.contains(this.To[i].el))return!0;return!1},t}(),gh=70,bh=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.Pi=ar(t),this.Ro=gr(this.ampdoc),this._o=pr(this.win),this.ko=new ph(this.win,6e4),this.ko.onFocus((function(t){i.No(t)}))}var i=t.prototype;return i.forceChangeSize=function(t,i,n,r,e){this.Co(Vs.forElement(t),i,n,e,void 0,!0,r)},i.requestChangeSize=function(t,i,n,r,e){var s=this;return new Promise((function(u,o){s.Co(Vs.forElement(t),i,n,r,e,!1,(function(t){t?u():o(new Error("changeSize attempt denied"))}))}))},i.expandElement=function(t){Vs.forElement(t).completeExpand(),this.Pi.schedulePass(gh)},i.attemptCollapse=function(t){var i=this;return new Promise((function(n,r){i.Co(Vs.forElement(t),0,0,void 0,void 0,!1,(function(i){i?(Vs.forElement(t).completeCollapse(),n()):r(Qt().createExpectedError("collapse attempt denied"))}))}))},i.collapseElement=function(t){var i=this.Ro.getLayoutRect(t);0!=i.width&&0!=i.height&&(Fe(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.Pi.setRelayoutTop(i.top)),Vs.forElement(t).completeCollapse(),this.Pi.schedulePass(gh)},i.measureElement=function(t){return this._o.measurePromise(t)},i.mutateElement=function(t,i,n){return this.jo(t,null,i,n)},i.measureMutateElement=function(t,i,n){return this.jo(t,i,n)},i.Do=function(t){var i=jr(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}},i.jo=function(t,i,n){var r=this,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=function(){var i=r.Ro.getLayoutRect(t);return 0!=i.width&&0!=i.height?i.top:-1},u=-1;return this._o.runPromise({measure:function(){i&&i(),e||(u=s())},mutate:function(){if(n(),!e){t.classList.contains("i-amphtml-element")&&Vs.forElement(t).requestMeasure();for(var i=t.getElementsByClassName("i-amphtml-element"),o=0;o<i.length;o++)Vs.forElement(i[o]).requestMeasure();r.Pi.schedulePass(gh),-1!=u&&r.Pi.setRelayoutTop(u),r._o.measure((function(){var t=s();-1!=t&&t!=u&&(r.Pi.setRelayoutTop(t),r.Pi.schedulePass(gh)),r.Pi.maybeHeightChanged()}))}}})},i.dirtyElement=function(t){var i=!1;if(t.classList.contains("i-amphtml-element")){var n=Vs.forElement(t);this.Pi.setRelayoutTop(n.getLayoutBox().top)}else i=!0;this.Pi.schedulePass(gh,i)},i.No=function(t){var i=bi(t,(function(t){return!!Vs.forElementOptional(t)}));if(i){var n=Vs.forElement(i),r=n.getPendingChangeSize();void 0!==r&&this.Co(n,r.height,r.width,r.margins,void 0,!0)}},i.Co=function(t,i,n,r,e,s,u){var o=this;t.hasBeenMeasured()&&!r?this.Uo(t,i,n,void 0,e,s,u):this._o.measure((function(){t.hasBeenMeasured()||t.measure();var h=r?{newMargins:r,currentMargins:o.Do(t)}:void 0;o.Uo(t,i,n,h,e,s,u)}))},i.Uo=function(t,i,n,r,e,s,u){t.resetPendingChangeSize();var o,h,a=t.getLayoutSize();if(!(void 0!==i&&i!=a.height||void 0!==n&&n!=a.width||void 0!==r&&(o=r.currentMargins,h=r.newMargins,void 0!==h.top&&h.top!=o.top||void 0!==h.right&&h.right!=o.right||void 0!==h.bottom&&h.bottom!=o.bottom||void 0!==h.left&&h.left!=o.left)))return void 0===i&&void 0===n&&void 0===r&&Qt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(u&&u(!0));this.Pi.updateOrEnqueueMutateTask(t,{resource:t,newHeight:i,newWidth:n,marginChange:r,event:e,force:s,callback:u}),this.Pi.schedulePassVsync()},t}(),yh=null,wh=["gclid","gclsrc"],Ah=[/^t.co$/];function xh(){return ti(yh,"E#19457 trackImpressionPromise")}function Eh(t,i,n,r){var e,s,u;try{e=t.open(i,n,r)}catch(t){Qt().error("DOM","Failed to open url on target: ",n,t)}return!e&&"_top"!=n&&("number"!=typeof u&&(u=0),u+"noopener".length>(s=r||"").length||-1===s.indexOf("noopener",u))&&(e=t.open(i,"_top")),e}var Ph="navigation",Oh="click",Ih="contextmenu",Th=["_top","_blank"],Mh="data-a4a-orig-href",Sh=function(){function t(t){var i=this;this.ampdoc=t,this.zo=t.getRootNode(),this.Ro=gr(this.ampdoc),this.ls=mr(this.ampdoc),this.To=rr(this.ampdoc),this.Lo=or(this.ampdoc.win),this.Ho=this.Lo.isIos()&&this.Lo.isSafari(),this.Go=Ni(this.ampdoc.win)&&this.ls.isOvertakeHistory(),this.Vo=this.zo!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.Fo="inabox"==Dt(this.ampdoc.win).runtime,this.Bo=this.zo.nodeType==Node.DOCUMENT_NODE?this.zo.documentElement:this.zo,this.qo=this.$o.bind(this),this.zo.addEventListener(Oh,this.qo),this.zo.addEventListener(Ih,this.qo),this.Wo=!1,function(t){return t.whenReady().then((function(){return!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")}))}(this.ampdoc).then((function(t){i.Wo=t})),this.Ko=!1,this.Yo=!1,Promise.all([this.ls.isTrustedViewer(),this.ls.getViewerOrigin()]).then((function(t){var n;i.Ko=t[0],i.Yo=(n=t[1],Mt.test(ds(n).origin))})),this.Jo=null,this.Xo=new Ys,this.Qo=new Ys}t.installAnchorClickInterceptor=function(t,i){i.document.documentElement.addEventListener("click",Rh.bind(null,t),!0)};var i=t.prototype;return i.cleanup=function(){this.qo&&(this.zo.removeEventListener(Oh,this.qo),this.zo.removeEventListener(Ih,this.qo))},i.openWindow=function(t,i,n,r){var e="";!this.Lo.isIos()&&this.Lo.isChrome()||r||(e+="noopener");var s=Eh(t,i,n,e);s&&!r&&(s.opener=null)},i.navigateTo=function(t,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e=r.opener,s=void 0!==e&&e,u=r.target,o=void 0===u?"_top":u;i=this.Zo(i);var h=dr(this.Bo);if(h.isProtocolValid(i)){ti(Th.includes(o),"Target '".concat(o,"' not supported."));var a=h.getSourceUrl(t.location);i=h.resolveRelativeUrl(i,a),"_blank"!=o?n&&(this.Jo||(this.Jo=this.tu()),this.Jo.includes(n)&&this.navigateToAmpUrl(i,n))||(t.top.location.href=i):this.openWindow(t,i,o,s)}else Jt().error(Ph,"Cannot navigate to invalid protocol: "+i)},i.navigateToAmpUrl=function(t,i){return!!this.ls.hasCapability("a2a")&&(this.ls.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)},i.tu=function(){var t=this.zo.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((function(t){return t.trim()})):[]},i.$o=function(t){if(!t.defaultPrevented){var i=yi(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==Oh?this.iu(i,t):t.type==Ih&&this.nu(i,t))}},i.iu=function(t,i){this.ru(t);var n=this.eu(t.href);if(!this.su(i,t,n)&&!this.ou(i,t,n)){var r=this.uu();_h(n)!=_h(r)&&(this.hu(t,i),n=this.eu(t.href)),this.au(i,t,n,r)}},i.nu=function(t,i){this.ru(t),this.hu(t,i)},i.hu=function(t,i){this.Xo.forEach((function(n){n(t,i)}))},i.Zo=function(t){return this.Qo.forEach((function(i){t=i(t)})),t},i.ru=function(t){var i=null;this.Wo&&!this.Vo&&(i=function(t,i){for(var n=yt(ms(Gr.getLocation(t).href).search),r=[],e=0;e<wh.length;e++){var s=wh[e];void 0!==n[s]&&r.push(s)}var u=i.getAttribute("data-amp-addparams"),o=i.href;u&&(o=ys(o,yt(u)));for(var h=yt(ms(o).search),a=r.length-1;a>=0;a--)void 0!==h[r[a]]&&r.splice(a,1);return function(t){for(var i="",n=0;n<t.length;n++){var r=t[n];i+=0==n?"".concat(r,"=QUERY_PARAM(").concat(r,")"):"&".concat(r,"=QUERY_PARAM(").concat(r,")")}return i}(r)}(this.ampdoc.win,t)),lr(t).maybeExpandLink(t,i)},i.ou=function(t,i,n){if(!this.Go)return!1;var r=oi(i),e=i.href,s=n.protocol;if("ftp:"==s)return Eh(r,e,"_blank"),t.preventDefault(),!0;var u=/^(https?|mailto):$/.test(s);return!(!this.Ho||u||(Eh(r,e,"_top"),t.preventDefault(),0))},i.su=function(t,i,n){return!(!i.hasAttribute("rel")||!i.getAttribute("rel").split(" ").map((function(t){return t.trim()})).includes("amphtml")||!this.navigateToAmpUrl(n.href,"<a rel=amphtml>")||(t.preventDefault(),0))},i.au=function(t,i,n,r){var e=_h(n),s=_h(r);if(n.hash&&e==s)this.cu(t,n,r);else{var u=(i.getAttribute("target")||"").toLowerCase();(this.Vo||this.Fo)&&"_top"!=u&&"_blank"!=u&&(u="_blank",i.setAttribute("target",u));var o=this.ampdoc.win,h=or(o),a=mr(i);r.search&&h.isSafari()&&h.getMajorVersion()>=13&&a.isProxyOrigin()&&a.isEmbedded()&&this.fu(o,r,u),this.viewerInterceptsNavigation(e,"intercept_click")&&t.preventDefault()}},i.fu=function(t,i,n){Qt().info(Ph,"Removing iframe query string before navigation:",i.search);var r=i.href,e="".concat(i.origin).concat(i.pathname).concat(i.hash);t.history.propertyIsEnumerable(null,"",e);var s=function(){var i=t.location.href;i==e?(Qt().info(Ph,"Restored iframe URL with query string:",r),t.history.propertyIsEnumerable(null,"",r)):Qt().error(Ph,"Unexpected iframe URL change:",i,e)};"_blank"===n?t.setTimeout(s,0):t.addEventListener("pageshow",(function i(n){n.persisted&&(s(),t.removeEventListener("pageshow",i))}))},i.cu=function(t,i,n){var r=this;if(t.preventDefault(),!this.Vo){var e=i.hash.slice(1),s=null;if(e){var u=vi(e);s=this.zo.getElementById(e)||this.zo.querySelector('a[name="'.concat(u,'"]'))}i.hash!=n.hash?this.To.replaceStateForTarget(i.hash).then((function(){r.lu(s,e)})):this.lu(s,e)}},i.registerAnchorMutator=function(t,i){this.Xo.enqueue(t,i)},i.registerNavigateToMutator=function(t,i){this.Qo.enqueue(t,i)},i.lu=function(t,i){var n=this;t?(this.Ro.scrollIntoView(t),fr(this.ampdoc.win).delay((function(){return n.Ro.scrollIntoView(t)}),1)):Qt().warn(Ph,"failed to find element with id=".concat(i," or a[name=").concat(i,"]"))},i.eu=function(t){return dr(this.Bo).parse(t)},i.uu=function(){return this.eu("")},i.viewerInterceptsNavigation=function(t,i){var n=this.ls.hasCapability("interceptNavigation"),r=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!n||!r||!this.Ko&&!this.Yo||(this.ls.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))},t}();function Rh(t,i){var n=yi(i.target,"A");if(n&&n.href){var r=n.getAttribute(Mh)||n.getAttribute("href");if(r){var e={"CLICK_X":function(){return i.pageX},"CLICK_Y":function(){return i.pageY}},s=lr(n).expandUrlSync(r,e,{"CLICK_X":!0,"CLICK_Y":!0});s!=r&&(n.getAttribute(Mh)||n.setAttribute(Mh,r),n.setAttribute("href",s))}}}function _h(t){return"".concat(t.origin).concat(t.pathname).concat(t.search)}function kh(t){return V(t)?t:[t]}var Ch=function(){function t(t){this.Pi=ar(t)}var i=t.prototype;return i.setOwner=function(t,i){Vs.setOwner(t,i)},i.schedulePreload=function(t,i){this.vu(this.Pi.getResourceForElement(t),!1,kh(i))},i.scheduleLayout=function(t,i){this.vu(this.Pi.getResourceForElement(t),!0,kh(i))},i.schedulePause=function(t,i){var n=this.Pi.getResourceForElement(t);i=kh(i),this.du(n,i,(function(t){t.pause()}))},i.scheduleResume=function(t,i){var n=this.Pi.getResourceForElement(t);i=kh(i),this.du(n,i,(function(t){t.resume()}))},i.scheduleUnlayout=function(t,i){var n=this.Pi.getResourceForElement(t);i=kh(i),this.du(n,i,(function(t){t.unlayout()}))},i.requireLayout=function(t,i){var n=[];return this.mu(t,(function(t){n.push(t.element.ensureLoaded())})),Promise.all(n)},i.du=function(t,i,n){for(var r,e=o(i,!0);!(r=e()).done;){var s=r.value;Zt(t.element.contains(s)),this.mu(s,n)}},i.mu=function(t,i){if(t.classList.contains("i-amphtml-element")){i(this.Pi.getResourceForElement(t));var n=t.getPlaceholder();n&&this.mu(n,i)}else for(var r=t.getElementsByClassName("i-amphtml-element"),e=[],s=0;s<r.length;s++){for(var u=r[s],o=!1,h=0;h<e.length;h++)if(e[h].contains(u)){o=!0;break}o||(e.push(u),i(this.Pi.getResourceForElement(u)))}},i.vu=function(t,i,n){this.du(t,n,(function(i){i.element.ensureLoaded(t.getLayoutPriority())}))},t}(),Nh=function(){function t(t){this.pu=t.navigator,this.t=t}var i=t.prototype;return i.isAndroid=function(){return/Android/i.test(this.pu.userAgent)},i.isIos=function(){return/iPhone|iPad|iPod/i.test(this.pu.userAgent)},i.isSafari=function(){return/Safari/i.test(this.pu.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()},i.isChrome=function(){return/Chrome|CriOS/i.test(this.pu.userAgent)&&!this.isEdge()&&!this.isOpera()},i.isFirefox=function(){return/Firefox|FxiOS/i.test(this.pu.userAgent)&&!this.isEdge()},i.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.pu.userAgent)},i.isEdge=function(){return/Edge/i.test(this.pu.userAgent)},i.isWebKit=function(){return/WebKit/i.test(this.pu.userAgent)&&!this.isEdge()},i.isWindows=function(){return/Windows/i.test(this.pu.userAgent)},i.isStandalone=function(){return this.isIos()&&this.pu.standalone||this.isChrome()&&this.t.matchMedia("(display-mode: standalone)").matches},i.isBot=function(){return/bot/i.test(this.pu.userAgent)},i.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.bu(/\sVersion\/(\d+)/,1):this.isChrome()?this.bu(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.bu(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.bu(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.bu(/Edge\/(\d+)/,1):0},i.bu=function(t,i){if(!this.pu.userAgent)return 0;var n=this.pu.userAgent.match(t);return!n||i>=n.length?0:parseInt(n[i],10)},i.getIosVersionString=function(){var t,i,n;return this.isIos()&&(null===(t=this.pu.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(n=i[1])||void 0===n?void 0:n.replace(/_/g,"."))||""},i.getIosMajorVersion=function(){var t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])},t}();function Dh(t){En(t,"platform",Nh)}var jh=function(){function t(t){this.Ri=t,this.gu=A()}var i=t.prototype;return i.addTransition=function(t,i,n){var r=this.yu(t,i);et(!this.gu[r]),this.gu[r]=n},i.setState=function(t){var i=this.Ri;this.Ri=t;var n=this.yu(i,t),r=this.gu[n];null==r||r()},i.yu=function(t,i){return"".concat(t,"|").concat(i)},t}(),Uh=function(){function t(){this.Tr=[],this.wu={},this.Au=0,this.xu=0}var i=t.prototype;return i.getSize=function(){return this.Tr.length},i.getLastEnqueueTime=function(){return this.Au},i.getLastDequeueTime=function(){return this.xu},i.getTaskById=function(t){return this.wu[t]||null},i.enqueue=function(t){Zt(!this.wu[t.id]),this.Tr.push(t),this.wu[t.id]=t,this.Au=Date.now()},i.dequeue=function(t){var i=this.wu[t.id];return!!this.removeAtIndex(t,this.Tr.indexOf(i))&&(this.xu=Date.now(),!0)},i.peek=function(t){for(var i=1e6,n=null,r=0;r<this.Tr.length;r++){var e=this.Tr[r],s=t(e);s<i&&(i=s,n=e)}return n},i.forEach=function(t){this.Tr.forEach(t)},i.removeAtIndex=function(t,i){var n=this.wu[t.id];return!(!n||this.Tr[i]!=n||(this.Tr.splice(i,1),delete this.wu[t.id],0))},i.purge=function(t){for(var i=this.Tr.length;i--;)t(this.Tr[i])&&this.removeAtIndex(this.Tr[i],i)},t}(),Lh="Resources",zh=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.ls=mr(t),this.Eu=this.ls.isRuntimeOn(),this.Ou=!1,this.Tu=0,this.Pi=[],this.Pu=0,this.Iu=0,this.Su=0,this.Mu=this.ampdoc.isVisible(),this.Ru=!1,this._u=!0,this.ku=!1,this.Nu=-1,this.Cu=!0,this.ju=-1,this.Du=0,this.Uu=0,this.Ve=new Uu(this.win,(function(){return i.doPass()})),this.zu=new Uu(this.win,(function(){i.Cu=!0,i.schedulePass()})),this.Lu=new Uh,this.lr=new Uh,this.Hu=this.Gu.bind(this),this.Vu=[],this.Fu=[],this.Bu=!1,this.Ro=gr(this.ampdoc),this._o=pr(this.win),this.ko=new ph(this.win,6e4),this.qu=!1,this.$u=0,this.Wu=!1,this.Ku=[],this.Yu=[],this.Ju=new a,this.Xu=new jh(this.ampdoc.getVisibilityState()),this.Ro.onChanged((function(t){i.Du=i.win.Date.now(),i.Uu=t.velocity,t.relayoutAll&&(i.Cu=!0,i.Wu=!0),i.schedulePass()})),this.Ro.onScroll((function(){i.Du=i.win.Date.now()})),this.ampdoc.onVisibilityChanged((function(){-1==i.Nu&&i.ampdoc.isVisible()&&(i.Nu=i.win.Date.now()),i.schedulePass()})),this.ls.onRuntimeState((function(t){Qt().fine(Lh,"Runtime state:",t),i.Eu=t,i.schedulePass(1)})),Zs(this.ampdoc,(function(){i.Qu(i.Xu),i.schedulePass(0)})),this.Zu(),this.th=dt(this.win,(function(t){return i.ih(t)}),250),Je(this.win.document,"scroll",this.th,{capture:!0,passive:!0})}var i=t.prototype;return i.Zu=function(){var t=this;this.ampdoc.whenReady().then((function(){t.Ru=!0,t.nh(),t.Fu=null,function(t){return On(t,"input")}(t.win).setupInputModeClasses(t.ampdoc);var i=function(){return t.zu.schedule()};i(),Promise.race([Ze(t.win),fr(t.win).promise(3100)]).then(i),t.win.document.fonts&&"loaded"!=t.win.document.fonts.status&&t.win.document.fonts.ready.then(i)}))},i.get=function(){return this.Pi.slice(0)},i.getAmpdoc=function(){return this.ampdoc},i.getResourceForElement=function(t){return Vs.forElement(t)},i.getResourceForElementOptional=function(t){return Vs.forElementOptional(t)},i.getScrollDirection=function(){return Math.sign(this.Uu)||1},i.add=function(t){this.Pu++,1==this.Pu&&this.Ro.ensureReadyForElements();var i=Vs.forElementOptional(t);i&&0!=i.getState()&&!t.reconstructWhenReparented()?(i.requestMeasure(),Qt().fine(Lh,"resource reused:",i.debugid)):(i=new Vs(++this.Tu,t,this),Qt().fine(Lh,"resource added:",i.debugid)),this.Pi.push(i),this.zu.schedule(1e3)},i.rh=function(){return this.Iu<20||this.ampdoc.getVisibilityState()==wr||this.ampdoc.hasBeenVisible()},i.eh=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.Eu||this.Ou;if(r){var e=this.ampdoc.getVisibilityState(),s=e==yr&&!t.prerenderAllowed(),u=e==wr&&!t.previewAllowed();s||u||(this.Ru?this.sh(t,n):t.isBuilt()||t.isBuilding()||i&&this.Fu.includes(t)||(this.Fu.push(t),this.nh()))}},i.nh=function(){if(!this.Bu)try{this.Bu=!0,this.oh()}finally{this.Bu=!1}},i.oh=function(){for(var t=0;t<this.Fu.length;t++){var i=this.Fu[t];(this.Ru||ki(i.element,this.ampdoc.getRootNode()))&&(this.Fu.splice(t--,1),this.sh(i))}},i.sh=function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n&&!this.rh()&&!t.isBuildRenderBlocking())return null;var r=t.build();return r?(Qt().fine(Lh,"build resource:",t.debugid),this.Iu++,this.Su++,r.then((function(){return i.schedulePass()}),(function(n){if(i.uh(t),!zs(n))throw n}))):null},i.remove=function(t){var i=Vs.forElementOptional(t);i&&this.uh(i)},i.uh=function(t){var i=this.Pi.indexOf(t);-1!=i&&this.Pi.splice(i,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.hh(t,!0),Qt().fine(Lh,"resource removed:",t.debugid)},i.upgraded=function(t){var i=Vs.forElement(t);this.eh(i),Qt().fine(Lh,"resource upgraded:",i.debugid)},i.updateLayoutPriority=function(t,i){var n=Vs.forElement(t);n.updateLayoutPriority(i),this.lr.forEach((function(t){t.resource==n&&(t.priority=i)})),this.schedulePass()},i.schedulePass=function(t){return this.Ve.schedule(t)},i.updateOrEnqueueMutateTask=function(t,i){for(var n=null,r=0;r<this.Vu.length;r++)if(this.Vu[r].resource==t){n=this.Vu[r];break}n?(n.newHeight=i.newHeight,n.newWidth=i.newWidth,n.marginChange=i.marginChange,n.event=i.event,n.force=i.force||n.force,n.callback=i.callback):this.Vu.push(i)},i.schedulePassVsync=function(){var t=this;this.qu||(this.qu=!0,this._o.mutate((function(){return t.doPass()})))},i.ampInitComplete=function(){this.ku=!0,Qt().fine(Lh,"ampInitComplete"),this.schedulePass()},i.setRelayoutTop=function(t){-1==this.ju?this.ju=t:this.ju=Math.min(t,this.ju)},i.maybeHeightChanged=function(){this.Wu=!0},i.onNextPass=function(t){this.Ku.push(t)},i.doPass=function(){var t=this;if(this.Eu){if(this.Mu=this.ampdoc.isVisible(),this.Su=0,this.Ru&&this._u&&this.ku){var i;this._u=!1;var n=this.win.document,r=ir(this.ampdoc);this.ls.sendMessage("documentLoaded",{"title":n.title,"sourceUrl":Ms(this.ampdoc.getUrl()),"isStory":"AMP-STORY"===(null===(i=n.body.firstElementChild)||void 0===i?void 0:i.tagName),"serverLayout":n.documentElement.hasAttribute("i-amphtml-element"),"linkRels":r.linkRels,"metaTags":{"viewport":r.viewport},"viewport":r.viewport},!0),this.$u=this.Ro.getContentHeight(),this.ls.sendMessage("documentHeight",{"height":this.$u},!0),Qt().fine(Lh,"document height on load: %s",this.$u)}!this._u&&this.ah&&this.Pi.every((function(t){return t.getState()!=Vs.NOT_BUILT||t.element.R1()}))&&(this.ah=!1,this.Wu=!0);var e=this.Ro.getSize();Qt().fine(Lh,"PASS: visible=",this.Mu,", relayoutAll=",this.Cu,", relayoutTop=",this.ju,", viewportSize=",e.width,e.height),this.Ve.cancel(),this.qu=!1,this.Xu.setState(this.ampdoc.getVisibilityState()),this.fh(),this.Wu&&(this.Wu=!1,this._o.measure((function(){var i=t.Ro.getContentHeight();i!=t.$u&&(t.ls.sendMessage("documentHeight",{"height":i},!0),t.$u=i,Qt().fine(Lh,"document height changed: %s",t.$u),t.Ro.contentHeightChanged())})));for(var s=0;s<this.Ku.length;s++)(0,this.Ku[s])();this.Ku.length=0}else Qt().fine(Lh,"runtime is off")},i.fh=function(){this.Ru&&this.ku&&!this.ampdoc.signals().get(Fs)&&(this.ampdoc.signals().signal(Fs),Qt().fine(Lh,"signal: ready-scan"))},i.lh=function(){return this.Vu.length>0},i.dh=function(){var t=this,i=this.win.Date.now(),n=this.Ro.getRect(),r=n.height/10,e=n.height/10,s=Math.abs(this.Uu)<.01&&i-this.Du>500||i-this.Du>1e3;if(this.Vu.length>0){Qt().fine(Lh,"change size requests:",this.Vu.length);var u=this.Vu;this.Vu=[];for(var o=-1,h=[],a=0,c=function(i){var c=u[i],f=c,l=f.event,v=f.resource,d=v.getLayoutBox(),m=0,p=0,g=0,b=0,y=d.bottom,w=d.top,A=void 0;if(c.marginChange){A=c.marginChange.newMargins;var x=c.marginChange.currentMargins;null!=A.top&&(m=A.top-x.top),null!=A.bottom&&(p=A.bottom-x.bottom),null!=A.left&&(g=A.left-x.left),null!=A.right&&(b=A.right-x.right),m&&(w=d.top-x.top),p&&(y=d.bottom+x.bottom)}var E=c.newHeight-d.height,P=c.newWidth-d.width,O=!1;if(0==E&&0==m&&0==p&&0==P&&0==g&&0==b);else if(c.force||!t.Mu)O=!0;else if(t.ko.hasDescendantsOf(v.element)||l&&l.userActivation&&l.userActivation.hasBeenActive)O=!0;else if(w>=n.bottom-e||0==m&&d.bottom+Math.min(E,0)>=n.bottom-e)O=!0;else{if(n.top>1&&y<=n.top+r)return E<0&&n.top+a<-E||(s?(a+=E,h.push(c)):t.Vu.push(c)),"continue";t.mh(v,d)?O=!0:E<0||m<0||p<0||(c.newHeight==d.height?t._o.run({measure:function(t){t.resize=!1;var i=v.element.parentElement;if(i){for(var n=i.getLayoutSize&&i.getLayoutSize().width||i.offsetWidth,r=P,e=0;e<i.childElementCount;e++)if((r+=i.children[e].offsetWidth)>n)return;t.resize=!0}},mutate:function(t){t.resize&&c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!t.resize,c.newHeight,c.newWidth,A)}},{}):c.resource.overflowCallback(!0,c.newHeight,c.newWidth,A))}O&&(d.top>=0&&(o=-1==o?d.top:Math.min(o,d.top)),c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!1,c.newHeight,c.newWidth,A),t.Wu=!0),c.callback&&c.callback(O)},f=0;f<u.length;f++)c(f);-1!=o&&this.setRelayoutTop(o),h.length>0&&this._o.run({measure:function(i){i.scrollHeight=t.Ro.getScrollHeight(),i.scrollTop=t.Ro.getScrollTop()},mutate:function(i){var n=-1;h.forEach((function(t){var i=t.resource.getLayoutBox();n=-1==n?i.top:Math.min(n,i.top),t.resource.changeSize(t.newHeight,t.newWidth,t.marginChange?t.marginChange.newMargins:void 0),t.callback&&t.callback(!0)})),-1!=n&&t.setRelayoutTop(n);var r=t.Ro.getScrollHeight();r!=i.scrollHeight&&t.Ro.setScrollTop(i.scrollTop+(r-i.scrollHeight)),t.Wu=!0}},{})}},i.mh=function(t,i,n){var r=this.Ro.getContentHeight(),e=Math.max(.85*r,r-1e3),s=i||t.getLayoutBox(),u=n||t.getInitialLayoutBox();return s.bottom>=e||u.bottom>=e},i.ph=function(t){var i=t.isDisplayed();return t.measure(),!(i&&!t.isDisplayed())},i.bh=function(t){var i=this;t.length&&this._o.mutate((function(){t.forEach((function(t){t.unload(),i.hh(t)})),Qt().fine(Lh,"unload:",t)}))},i.gh=function(){var t=this.win.Date.now(),i=this.Yu,n=this.Cu,r=this.ju;this.Cu=!1,this.ju=-1;for(var e,s=0,u=0,o=0;o<this.Pi.length;o++){var h=this.Pi[o];0!=h.getState()||h.isBuilding()||h.element.R1()||this.eh(h,!0),!n&&h.hasBeenMeasured()&&1!=h.getState()||s++,h.isMeasureRequested()&&u++}if(s>0||u>0||n||-1!=r||i.length>0)for(var a=0;a<this.Pi.length;a++){var c=this.Pi[a];if(!(c.hasOwner()&&!c.isMeasureRequested()||c.element.R1())){var f=n||1==c.getState()||!c.hasBeenMeasured()||c.isMeasureRequested()||-1!=r&&c.getLayoutBox().bottom>=r;if(!f)for(var l=0;l<i.length;l++)if(i[l].contains(c.element)){f=!0;break}f&&(this.ph(c)||(e||(e=[]),e.push(c)))}}i.length=0,e&&this.bh(e);var v,d=this.Ro.getRect();v=this.Mu?Hi(d,.25,2):d;for(var m=this.Mu?Hi(d,.25,.25):d,p=0;p<this.Pi.length;p++){var g=this.Pi[p];if(0!=g.getState()&&!g.hasOwner()&&!g.element.R1()){var b=this.Mu&&g.isDisplayed()&&g.overlaps(m);g.setInViewport(b)}}if(v)for(var y=0;y<this.Pi.length;y++){var w=this.Pi[y];w.isBuilt()||w.isBuilding()||w.hasOwner()||w.element.R1()||!w.hasBeenMeasured()||!w.isDisplayed()||!w.overlaps(v)||this.eh(w,!0,!0),2!=w.getState()||w.hasOwner()||w.isDisplayed()&&w.overlaps(v)&&this.scheduleLayoutOrPreload(w,!0)}if(this.Mu&&this.yh(t)){for(var A=0,x=0;x<this.Pi.length&&A<4;x++){var E=this.Pi[x];2==E.getState()&&!E.hasOwner()&&!E.element.R1()&&E.isDisplayed()&&E.idleRenderOutsideViewport()&&(Qt().fine(Lh,"idleRenderOutsideViewport layout:",E.debugid),this.scheduleLayoutOrPreload(E,!1),A++)}for(var P=0;P<this.Pi.length&&A<4;P++){var O=this.Pi[P];2!=O.getState()||O.hasOwner()||O.element.R1()||!O.isDisplayed()||(Qt().fine(Lh,"idle layout:",O.debugid),this.scheduleLayoutOrPreload(O,!1),A++)}}},i.yh=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),i=this.Lu.getLastDequeueTime();return 0==this.Lu.getSize()&&0==this.lr.getSize()&&t>i+5e3&&i>0},i.wh=function(){for(var t=this.win.Date.now(),i=-1,n=this.lr.peek(this.Hu);n&&(i=this.Ah(n),Qt().fine(Lh,"peek from queue:",n.id,"sched at",n.scheduleTime,"score",this.Hu(n),"timeout",i),!(i>16));){this.lr.dequeue(n);var r=this.Lu.getTaskById(n.id);if(r){var e=this.xh.bind(this,n);r.promise.then(e,e)}else{var s=n.resource;s.measure(),this.Eh(s,n.forceOutsideViewport)?(n.promise=n.callback(),n.startTime=t,Qt().fine(Lh,"exec:",n.id,"at",n.startTime),this.Lu.enqueue(n),n.promise.then(this.Oh.bind(this,n,!0),this.Oh.bind(this,n,!1)).catch(Us)):(Qt().fine(Lh,"cancelled",n.id),s.layoutCanceled())}n=this.lr.peek(this.Hu),i=-1}if(Qt().fine(Lh,"queue size:",this.lr.getSize(),"exec size:",this.Lu.getSize()),i>=0)return i;var u=2*(t-this.Lu.getLastDequeueTime());return Math.max(Math.min(3e4,u),5e3)},i.Gu=function(t){var i=this.Ro.getRect(),n=t.resource.getLayoutBox(),r=Math.floor((n.top-i.top)/i.height);return Math.sign(r)!=this.getScrollDirection()&&(r*=2),r=Math.abs(r),10*t.priority+r},i.Ah=function(t){var i=this.win.Date.now();if(0==this.Lu.getSize()){if(-1===this.Nu)return 0;var n=1e3*t.priority;return Math.max(n-(i-this.Nu),0)}var r=0;return this.Lu.forEach((function(n){var e=Math.max(1e3*(t.priority-n.priority),0);r=Math.max(r,e-(i-n.startTime))})),r},i.xh=function(t){this.lr.getTaskById(t.id)||this.lr.enqueue(t)},i.Oh=function(t,i,n){if(this.Lu.dequeue(t),this.schedulePass(1e3),!i)return Qt().info(Lh,"task failed:",t.id,t.resource.debugid,n),Promise.reject(n)},i.Eh=function(t,i){if(0==t.getState()||!t.isDisplayed())return!1;var n=this.ampdoc.getVisibilityState(),r=n==yr&&t.prerenderAllowed(),e=n==wr&&t.previewAllowed();return!!(this.Mu||r||e)&&!!(i||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())},i.scheduleLayoutOrPreload=function(t,i,n,r){if(!t.element.R1()){var e=0!=t.getState(),s=t.isDisplayed();e&&s||Zt(!1);var u=r||!1;this.Eh(t,u)&&(i?this._r(t,"L",0,n||0,u,t.startLayout.bind(t)):this._r(t,"P",2,n||0,u,t.startLayout.bind(t)))}},i._r=function(t,i,n,r,e,s){var u=t.getTaskId(i),o={id:u,resource:t,priority:Math.max(t.getLayoutPriority(),r)+n,forceOutsideViewport:e,callback:s,scheduleTime:this.win.Date.now(),startTime:0,promise:null};Qt().fine(Lh,"schedule:",o.id,"at",o.scheduleTime);var h=this.lr.getTaskById(u);(!h||o.priority<h.priority)&&(h&&this.lr.dequeue(h),this.lr.enqueue(o),this.schedulePass(this.Ah(o))),o.resource.layoutScheduled(o.scheduleTime)},i.whenFirstPass=function(){return this.Ju.promise},i.Qu=function(t){var i=this,n=xr,r=Pr,e=Er,s=yr,u=wr,o=Ar,h=function(){var t=i.Ro.getSize();if(t.height>0&&t.width>0){i.lh()&&i.dh(),i.gh();var n=i.wh();i.lh()&&(n=Math.min(n,500)),i.Mu?i.schedulePass(n)?Qt().fine(Lh,"next pass:",n):Qt().fine(Lh,"pass already scheduled"):Qt().fine(Lh,"document is not visible: no scheduling"),i.Ju.resolve()}},a=function(){},c=function(){i.Pi.forEach((function(t){return t.pause()}))},f=function(){i.Pi.forEach((function(t){t.unload(),i.hh(t)})),i.Th()},l=function(){i.Pi.forEach((function(t){return t.resume()})),h()};t.addTransition(s,s,h),t.addTransition(s,u,h),t.addTransition(s,o,h),t.addTransition(s,n,h),t.addTransition(s,r,h),t.addTransition(s,e,h),t.addTransition(u,u,h),t.addTransition(u,o,h),t.addTransition(u,n,h),t.addTransition(u,r,h),t.addTransition(u,e,h),t.addTransition(o,o,h),t.addTransition(o,n,h),t.addTransition(o,r,f),t.addTransition(o,e,c),t.addTransition(n,o,h),t.addTransition(n,n,h),t.addTransition(n,r,f),t.addTransition(n,e,c),t.addTransition(r,o,l),t.addTransition(r,n,l),t.addTransition(r,r,a),t.addTransition(r,e,h),t.addTransition(e,o,l),t.addTransition(e,n,h),t.addTransition(e,r,f),t.addTransition(e,e,a)},i.Th=function(){try{this.win.getSelection().removeAllRanges()}catch(t){}},i.hh=function(t,i){if(1!=t.getState()&&2!=t.getState()||(this.lr.purge((function(i){return i.resource==t})),this.Lu.purge((function(i){return i.resource==t})),B(this.Vu,(function(i){return i.resource===t}))),0==t.getState()&&i&&this.Fu){var n=this.Fu.indexOf(t);-1!=n&&this.Fu.splice(n,1)}},i.ih=function(t){var i=t.target;if(i.nodeType===Node.ELEMENT_NODE&&i!==this.Ro.getScrollingElement()){var n=i;this.Yu.includes(n)||(this.Yu.push(n),this.schedulePass(70))}},t}();function Hh(t){return t.queryCommandSupported("copy")}function Gh(t){return t.hasAttribute("hidden")}var Vh="STANDARD-ACTIONS",Fh=/^i-amphtml-/,Bh=function(){function t(t){this.ampdoc=t;var i=t.getHeadNode();this.Ph=sr(t),this.Ro=gr(t),this.Ih(Wn(i)),this.Sh()}var i=t.prototype;return i.Ih=function(t){t.addGlobalTarget("AMP",this.Mh.bind(this)),t.addGlobalMethodHandler("hide",this.Rh.bind(this)),t.addGlobalMethodHandler("show",this._h.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.kh.bind(this)),t.addGlobalMethodHandler("scrollTo",this.Nh.bind(this)),t.addGlobalMethodHandler("focus",this.Ch.bind(this)),t.addGlobalMethodHandler("toggleClass",this.jh.bind(this)),t.addGlobalMethodHandler("copy",this.Dh.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.Uh.bind(this))},i.Sh=function(){this.zh()&&this.ampdoc.waitForBodyOpen().then((function(t){var i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))},i.zh=function(){var t,i;try{var n=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(n)return"yes"===n}catch(t){}return null===(t=(i=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(i,"(prefers-color-scheme: dark)").matches},i.Mh=function(t){if(!t.satisfiesTrust(2))return null;var i=t.args,n=t.method,r=t.node,e=oi(r);switch(n){case"pushState":case"setState":var s=r.nodeType===Node.DOCUMENT_NODE?r.documentElement:r;return Qn(s).then((function(i){return ti(i,"AMP-BIND is not installed."),i.invoke(t)}));case"navigateTo":return this.Lh(t);case"closeOrNavigateTo":return this.Hh(t);case"scrollTo":return ti(i.id,"AMP.scrollTo must provide element ID"),t.node=kn(r).getElementById(i.id),this.Nh(t);case"goBack":return rr(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return e.print(),null;case"copy":return this.Dh(t);case"optoutOfCid":return Zn(this.ampdoc).then((function(t){return t.optOut()})).catch((function(t){Qt().error(Vh,"Failed to opt out of CID",t)}));case"toggleTheme":return this.Gh(),null}throw Jt().createError("Unknown AMP action ",n)},i.Dh=function(t){var i,n=t.args,r=oi(t.node),e="copy-error";if("AMP"===t.tagOrTarget)i=n.text.trim();else{var s,u=st(t.node);i=(null!==(s=u.value)&&void 0!==s?s:u.textContent).trim()}var o,h,a,c=function(t,i,n){var e={data:{type:i}},s=Ke(r,"".concat(t),e);Wn(n.caller).trigger(n.caller,t,s,3)};null!==(h=(o=r.document).defaultView)&&void 0!==h&&null!==(a=h.navigator)&&void 0!==a&&a.clipboard||Hh(o)?function(t,i,n,r){var e;null!==(e=t.navigator)&&void 0!==e&&e.clipboard?t.navigator.clipboard.writeText(i).then(n,r):Hh(t.document)&&function(t,i){var n,r=!1,e=t.document,s=e.createElement("textarea");Cr(s,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),s.value=i,s.readOnly=!0,s.contentEditable="true",e.body.appendChild(s),null===(n=t.getSelection())||void 0===n||n.removeAllRanges(),s.focus(),s.setSelectionRange(0,i.length);try{r=e.execCommand("copy")}catch(t){}return Mi(s),r}(t,i)?n():r()}(r,i,(function(){c("copy-success","success",t)}),(function(){c(e,"error",t)})):c(e,"unsupported",t)},i.Lh=function(t){var i=this,n=t.args,r=t.caller,e=t.method,s=oi(t.node),u=h();return r.tagName.startsWith("AMP-")&&(u=r.getImpl().then((function(t){"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),u.then((function(){var t;(t=i.ampdoc,In(t,"navigation")).navigateTo(s,n.url,"AMP.".concat(e),{target:n.target,opener:n.opener})}),(function(t){Jt().error(Vh,t)}))},i.Gh=function(){var t=this;this.ampdoc.waitForBodyOpen().then((function(i){try{var n=i.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.zh()?(i.classList.remove(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(i.classList.add(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))},i.Hh=function(t){var i=oi(t.node),n=i.parent!=i,r=!1;return i.opener&&this.ampdoc.isSingleDoc()&&!n&&(i.close(),r=i.closed),r?h():this.Lh(t)},i.Nh=function(t){var i=t.node,n=t.args,r=n&&n.position,e=n&&n.duration;return r&&!["top","bottom","center"].includes(r)&&(r=void 0),J(e)||(e=void 0),this.Ro.animateScrollIntoView(i,r,e)},i.Ch=function(t){return Ci(t.node),null},i.Rh=function(t){var i=t.node;if(i.classList.contains("i-amphtml-element")){var n=i;this.Ph.mutateElement(n,(function(){return n.collapse()}),!0)}else this.Ph.mutateElement(i,(function(){return Nr(i,!1)}));return null},i._h=function(t){var i=this,n=t.node,r=oi(n);if(n.classList.contains(fe(te)))return Jt().warn(Vh,"Elements with layout=nodisplay cannot be dynamically shown.",n),null;this.Ph.measureElement((function(){"none"!=jr(r,n).display||Gh(n)||Jt().warn(Vh,'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',n)}));var e,s=(e=n).hasAttribute("autofocus")?e:e.querySelector("[autofocus]");return s&&or(r).isIos()?(this.Vh(n,s),this.Ph.mutateElement(n,(function(){}))):this.Ph.mutateElement(n,(function(){i.Vh(n,s)})),null},i.Vh=function(t,i){t.classList.contains("i-amphtml-element")?t.expand():Nr(t,!0),i&&Ci(i)},i.kh=function(t){return Gh(t.node)?this._h(t):this.Rh(t)},i.jh=function(t){var i=t.node,n=t.args,r=Jt().assertString(n.class,"Argument 'class' must be a string.");return Fh.test(r)||this.Ph.mutateElement(i,(function(){if(void 0!==n.force){var t=Jt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(r,t)}else i.classList.toggle(r)})),null},i.Uh=function(t){var i=t.node,n=t.args;return this.Ph.mutateElement(i,(function(){if(void 0!==(null==n?void 0:n.force)){var t=Jt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null},t}(),qh="Storage",$h=function(){function t(t,i,n){this.ampdoc=t,this.ls=i,this.Hs=n,this.Fh=n instanceof Kh,this.i=Ss(this.ampdoc.win.location),this.Bh=null}var i=t.prototype;return i.qh=function(){return this.$h(),this},i.get=function(t,i){return this.Wh().then((function(n){return n.get(t,i)}))},i.set=function(t,i,n){return Zt("boolean"==typeof i),this.setNonBoolean(t,i,n)},i.setNonBoolean=function(t,i,n){return this.Kh((function(r){return r.set(t,i,n)}))},i.remove=function(t){return this.Kh((function(i){return i.remove(t)}))},i.isViewerStorage=function(){return this.Fh},i.Wh=function(){return this.Bh||(this.Bh=this.Hs.loadBlob(this.i).then((function(t){return t?at(atob(t)):{}})).catch((function(t){return Qt().expectedError(qh,"Failed to load store: ",t),{}})).then((function(t){return new Wh(t)}))),this.Bh},i.Kh=function(t){var i=this;return this.Wh().then((function(n){t(n);var r=btoa(JSON.stringify(n.obj));return i.Hs.saveBlob(i.i,r)})).then(this.Yh.bind(this))},i.$h=function(){var t=this;this.ls.onBroadcast((function(i){"amp-storage-reset"==i.type&&i.origin==t.i&&(Qt().fine(qh,"Received reset message"),t.Bh=null)}))},i.Yh=function(){Qt().fine(qh,"Broadcasted reset message"),this.ls.broadcast({"type":"amp-storage-reset","origin":this.i})},t}(),Wh=function(){function t(t,i){this.obj=E(t),this.Jh=i||8,this.Xh=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this.Xh)}var i=t.prototype;return i.get=function(t,i){var n=this.Xh[t],r=n?n.t:void 0,e=!i||null==r||r+i>Date.now();return n&&e?n.v:void 0},i.set=function(t,i,n){if(Zt("__proto__"!=t&&"prototype"!=t),void 0!==this.Xh[t]){var r=this.Xh[t],e=Date.now();n&&(e=r.t),r.v=i,r.t=e}else this.Xh[t]={"v":i,"t":Date.now()};var s=Object.keys(this.Xh);if(s.length>this.Jh){for(var u=1/0,o=null,h=0;h<s.length;h++){var a=this.Xh[s[h]];a.t<u&&(o=s[h],u=a.t)}o&&delete this.Xh[o]}},i.remove=function(t){delete this.Xh[t]},t}(),Yh=function(){function t(t){if(this.win=t,this.Qh=this.Zh(),!this.Qh){var i=new Error("localStorage not supported.");Qt().expectedError(qh,i)}}var i=t.prototype;return i.Zh=function(){try{return"localStorage"in this.win&&(this.win.localStorage.getItem("test"),!0)}catch(t){return!1}},i.ta=function(t){return"amp-store:".concat(t)},i.loadBlob=function(t){var i=this;return new Promise((function(n){i.Qh?n(i.win.localStorage.getItem(i.ta(t))):n(null)}))},i.saveBlob=function(t,i){var n=this;return new Promise((function(r){n.Qh?(n.win.localStorage.setItem(n.ta(t),i),r()):r()}))},t}(),Kh=function(){function t(t){this.ls=t}var i=t.prototype;return i.loadBlob=function(t){return this.ls.sendMessageAwaitResponse("loadStore",{"origin":t}).then((function(t){return t.blob}))},i.saveBlob=function(t,i){return this.ls.sendMessageAwaitResponse("saveStore",{"origin":t,"blob":i}).catch((function(t){throw Qt().createExpectedError(qh,"Failed to save store: ",t)}))},t}(),Jh="__AMP_IMPL_",Xh=function(){},Qh=function(){function t(t){this.Ki=t,this.ia={},this.na={}}var i=t.prototype;return i.whenReady=function(t){return this.ra(t).then(Xh)},i.setHtmlForTemplate=function(t,i){var n=this;return this.ra(t).then((function(t){return n.ea(t,i)}))},i.renderTemplate=function(t,i){var n=this;return this.ra(t).then((function(t){return n.sa(t,i)}))},i.renderTemplateAsString=function(t,i){return this.ra(t).then((function(t){return t.renderAsString(i)}))},i.getTemplateRenderer=function(t){return this.ra(t).then((function(t){return{renderAsString:function(i){return t.renderAsString(i)}}}))},i.renderTemplateArray=function(t,i){var n=this;return 0==i.length?Promise.resolve([]):this.ra(t).then((function(t){return i.map((function(i){return n.sa(t,i)}))}))},i.findAndRenderTemplate=function(t,i,n){return this.renderTemplate(this.findTemplate(t,n),i)},i.findAndSetHtmlForTemplate=function(t,i,n){return this.setHtmlForTemplate(this.findTemplate(t,n),i)},i.findAndRenderTemplateArray=function(t,i,n){return this.renderTemplateArray(this.findTemplate(t,n),i)},i.hasTemplate=function(t,i){return!!this.maybeFindTemplate(t,i)},i.findTemplate=function(t,i){var n=this.maybeFindTemplate(t,i);ti(n,"Template not found for %s",t);var r=n.tagName;return ti("TEMPLATE"==r||"SCRIPT"==r&&"text/plain"===n.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),n},i.maybeFindTemplate=function(t,i){var n=t.getAttribute("template");return n?_i(t).getElementById(n):i?pi(t,i):t.querySelector('template[type], script[type="text/plain"]')},i.ra=function(t){var i=this,n=t[Jh];if(n)return Promise.resolve(n);var r="",e=t.tagName;"TEMPLATE"==e?r=t.getAttribute("type"):"SCRIPT"==e&&(r=t.getAttribute("template")),ti(r,"Type must be specified: %s",t);var s=t.__AMP_WAIT_;return s||(s=this.oa(t,r).then((function(n){var r=n,e=t[Jh]=new r(t,i.Ki.win);return delete t.__AMP_WAIT_,e})),t.__AMP_WAIT_=s,s)},i.oa=function(t,i){if(this.ia[i])return this.ia[i];var n=new a,r=n.promise,e=n.resolve;return this.ia[i]=r,this.na[i]=e,r},i.ua=function(t,i){if(this.ia[t]){var n=this.na[t];ti(n,"Duplicate template type: %s",t),delete this.na[t],n(i)}else this.ia[t]=Promise.resolve(i)},i.sa=function(t,i){return t.render(i)},i.ea=function(t,i){return t.setHtml(i)},t}(),Zh=function(){function t(t){this.win=t,this.ha=this.win.Promise.resolve(),this.aa=0,this.ca={},this.fa=Date.now()}var i=t.prototype;return i.timeSinceStart=function(){return Date.now()-this.fa},i.delay=function(t,i){var n=this;if(!i){var r="p"+this.aa++;return this.ha.then((function(){n.ca[r]?delete n.ca[r]:t()})).catch(Us),r}return this.win.setTimeout((function(){try{t()}catch(t){throw Us(t),t}}),i)},i.cancel=function(t){"string"!=typeof t?this.win.clearTimeout(t):this.ca[t]=!0},i.promise=function(t){var i=this;return new this.win.Promise((function(n){if(-1==i.delay(n,t))throw new Error("Failed to schedule timer.")}))},i.timeoutPromise=function(t,i,n){var r,e=this,s=new this.win.Promise((function(i,s){if(-1==(r=e.delay((function(){s(Jt().createError(n||"timeout"))}),t)))throw new Error("Failed to schedule timer.")}));if(!i)return s;var u=function(){e.cancel(r)};return i.then(u,u),this.win.Promise.race([s,i])},i.poll=function(t,i){var n=this;return new this.win.Promise((function(r){var e=n.win.setInterval((function(){i()&&(n.win.clearInterval(e),r())}),t)}))},t}();function ta(t){En(t,"timer",Zh)}var ia=function(){function t(t){var i=t.getRootNode(),n=i.ownerDocument||i;this.la=n.createElement("a"),this.Rn=new fs(100)}var i=t.prototype;return i.parse=function(t,i){return ps(this.la,t,i?null:this.Rn)},i.va=function(t){return"string"!=typeof t?t:this.parse(t)},i.isProtocolValid=function(t){return Os(t)},i.getSourceOrigin=function(t){return Ss(this.va(t))},i.getSourceUrl=function(t){return Ms(this.va(t))},i.resolveRelativeUrl=function(t,i){return Rs(t,this.va(i))},i.assertHttpsUrl=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source";return xs(t,i,n)},i.assertAbsoluteHttpOrHttpsUrl=function(t){return function(t){return ti(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),ms(t).href}(t)},i.isProxyOrigin=function(t){return Ps(this.va(t))},i.isSecure=function(t){return As(this.va(t))},i.getWinOrigin=function(t){return t.origin||this.va(t.location.href).origin},i.getCdnUrlOnOrigin=function(t){if(Ps(t))return t;var i=this.va(t),n=i.hash,r=i.host,e=i.pathname,s=i.search,u=encodeURIComponent(r);return"".concat(Tt,"/c/").concat(u).concat(e).concat(s).concat(n)},t}(),na="Expander",ra=function(){function t(t,i,n,r,e,s){this.da=t,this.ma=i,this.pa=n,this.ba=r,this.qe=e,this.ga=!s}var i=t.prototype;return i.expand=function(t){if(!t.length)return this.ba?t:Promise.resolve(t);var i=this.da.getExpr(this.ma,this.qe),n=this.ya(t,i);return n.length?this.wa(t,n):this.ba?t:Promise.resolve(t)},i.getMacroNames=function(t){var i=this.da.getExpr(this.ma,this.qe);return t.match(i)||[]},i.ya=function(t,i){var n=[];return t.replace(i,(function(t,i,r){var e=t.length,s={start:r,stop:e+r-1,name:i,length:e};n.push(s)})),n},i.wa=function(t,i){var n=this,r=[],e=0,s=0,u=i[s],o=0,h=!1;return function a(c){for(var f,l="",v=[],m=[];e<t.length&&s<=i.length;){var p,g=l.trim();if(u&&e===u.start)g&&v.push(o?(f=l).trimStart?f.trimStart():(f+"_").trim().slice(0,-1):l),p=n.ma&&x(n.ma,u.name)?{name:u.name,prioritized:n.ma[u.name],encode:c}:D(D({},n.da.get(u.name)),{},{name:u.name,encode:c}),e=u.stop+1,u=i[++s],"("===t[e]?(e++,o++,r.push(p),v.push(a(!1))):v.push(n.Aa(p)),l="";else if("`"===t[e])h?(h=!1,l.length&&v.push(l)):(h=!0,g&&v.push(g)),l="",e++;else if(o&&","===t[e]&&!h)g&&v.push(g),m.push(v),v=[],","===t[e+1]&&(m.push([""]),e++),l="",e++;else{if(o&&")"===t[e]&&!h){e++,o--;var b=r.pop();return g&&v.push(g),m.push(v),n.Aa(b,m)}l+=t[e],e++}e===t.length&&l.length&&v.push(l)}return n.ba?v.join(""):Promise.all(v).then((function(t){return t.join("")})).catch((function(t){return d(t),""}))}(this.ga)},i.Aa=function(t,i){var n,r=t.encode,e=t.name;if(null!=t.prioritized?n=t.prioritized:this.ba&&null!=t.sync?n=t.sync:this.ba?(Jt().error(na,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.ba){var s=this.xa(n,e,i);return r?encodeURIComponent(s):s}return this.Ea(n,e,i).then((function(t){return r?encodeURIComponent(t):t}))},i.Ea=function(t,i,n){var r,e=this;try{if("function"==typeof t){var s=t;r=n?this.Oa(n).then((function(t){return s.apply(null,t)})):c(s)}else r=Promise.resolve(t);return r.then((function(t){return e.Ta(i,t,n),null==t?"":t})).catch((function(t){return d(t),e.Ta(i,"",n),Promise.resolve("")}))}catch(t){return d(t),this.Ta(i,"",n),Promise.resolve("")}},i.Oa=function(t){return Promise.all(t.map((function(t){return Promise.all(t).then((function(t){return t.join("")}))})))},i.xa=function(t,i,n){try{var r,e=t;return"function"==typeof t&&(e=t.apply(null,this.Pa(n))),e&&"function"==typeof e.then?(Jt().error(na,"ignoring async macro resolution"),r=""):"string"==typeof e||"number"==typeof e||"boolean"==typeof e?(this.Ta(i,e,n),r=e.toString()):(this.Ta(i,"",n),r=""),r}catch(t){return d(t),this.Ta(i,"",n),""}},i.Pa=function(t){return t?t.map((function(t){return t.join("")})):t},i.Ta=function(t,i,n){if(this.pa){var r="";if(n){var e=n.filter((function(t){return""!==t})).join(",");r="(".concat(e,")")}this.pa["".concat(t).concat(r)]=i||""}},t}(),ea={"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 sa(t,i,n){var r,e=ea[i]||3,s=n?ea[n]||3:e,u=Math.max(e,s);if(1===u)r=h();else if(2===u)r=mn(t.document);else if(3===u)r=Ze(t);else if(4===u){var o=fr(t);r=Ze(t).then((function(){return o.promise(1)}))}return Zt(r),r.then((function(){return ua(t,i,n)}))}function ua(t,i,n){var r=t.performance&&t.performance.timing;if(r&&0!=r.navigationStart){var e=void 0===n?r[i]:r[n]-r[i];return!J(e)||e<0?void 0:e}}function oa(t,i){var n=t.performance&&t.performance.navigation;if(n&&void 0!==n[i])return n[i]}var ha="UrlReplacements";function aa(t){return function(){return(new Date)[t]()}}function ca(t,i){return function(){return t[i]}}function fa(t,i){return i?(ti("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 la=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).Ia=null,n.Sa={},n}var r=n.prototype;return r.Ma=function(t,i,n){var r=this;return this.setBoth(t,(function(){return ua(r.ampdoc.win,i,n)}),(function(){return sa(r.ampdoc.win,i,n)}))},r.initialize=function(){var t=this,i=this.ampdoc.win,n=this.ampdoc.getHeadNode(),r=gr(this.ampdoc);vr(this.ampdoc).then((function(i){t.Ia=i})),this.set("RANDOM",(function(){return Math.random()}));var e=Object.create(null);this.set("COUNTER",(function(t){return e[t]=1+(0|e[t])})),this.set("CANONICAL_URL",(function(){return t.Ra().canonicalUrl})),this.set("CANONICAL_HOST",(function(){return ms(t.Ra().canonicalUrl).host})),this.set("CANONICAL_HOSTNAME",(function(){return ms(t.Ra().canonicalUrl).hostname})),this.set("CANONICAL_PATH",(function(){return ms(t.Ra().canonicalUrl).pathname})),this.setAsync("DOCUMENT_REFERRER",(function(){return mr(t.ampdoc).getReferrerUrl()})),this.setAsync("EXTERNAL_REFERRER",(function(){return mr(t.ampdoc).getReferrerUrl().then((function(t){return t?ms(Ms(t)).hostname===Gr.getHostname(i)?null:t:null}))})),this.set("TITLE",(function(){var t=i.document;return t.originalTitle||t.title})),this.set("AMPDOC_URL",(function(){return Es(t._a(i.location.href))})),this.set("AMPDOC_HOST",(function(){var t=ms(i.location.href);return t&&t.host})),this.set("AMPDOC_HOSTNAME",(function(){var t=ms(i.location.href);return t&&t.hostname}));var s=function(){var i=t.Ra();return Es(t._a(i.sourceUrl))};this.setBoth("SOURCE_URL",(function(){return s()}),(function(){return xh().then((function(){return s()}))})),this.set("SOURCE_HOST",(function(){return ms(t.Ra().sourceUrl).host})),this.set("SOURCE_HOSTNAME",(function(){return ms(t.Ra().sourceUrl).hostname})),this.set("SOURCE_PATH",(function(){return ms(t.Ra().sourceUrl).pathname})),this.set("PAGE_VIEW_ID",(function(){return t.Ra().pageViewId})),this.setAsync("PAGE_VIEW_ID_64",(function(){return t.Ra().pageViewId64})),this.setBoth("QUERY_PARAM",(function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.ka(i,n)}),(function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return xh().then((function(){return t.ka(i,n)}))})),this.set("FRAGMENT_PARAM",(function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.Na(i,n)}));var u=null;this.setBoth("CLIENT_ID",(function(t){return u?u[t]:null}),(function(i,r,e,s){ti(i,"The first argument to CLIENT_ID, the fallback Cookie name, is required");var o=h();return r&&(o=function(t){return Vn(t,"userNotificationManager","amp-user-notification")}(n).then((function(t){return t.get(r)}))),Zn(t.ampdoc).then((function(t){return s="true"==s,t.get({scope:i,createCookieIfNotPresent:!0,cookieName:e||void 0,disableBackup:s},o)})).then((function(t){return u||(u=Object.create(null)),t&&"_ga"==(e||i)&&("string"==typeof t?t=t.replace(/^(GA1|1)\.[\d-]+\./,""):Qt().error(ha,"non-string cid, what is it?",Object.keys(t))),u[i]=t,t}))})),this.setAsync("VARIANT",(function(i){return t.Ca((function(t){var n=t[i];return ti(void 0!==n,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+i),null===n?"none":n}),"VARIANT")})),this.setAsync("VARIANTS",(function(){return t.Ca((function(t){var i=[];for(var n in t){var r=t[n];i.push(n+"."+(r||"none"))}return i.join("!")}),"VARIANTS")})),this.setBoth("AMP_GEO",(function(i){return fa(t.Ia,i)}),(function(i){return t.ja((function(t){return fa(t,i)}),"AMP_GEO")})),this.set("TIMESTAMP",aa("getTime")),this.set("TIMESTAMP_ISO",aa("toISOString")),this.set("TIMEZONE",aa("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(function(){return r.getScrollHeight()})),this.set("SCROLL_WIDTH",(function(){return r.getScrollWidth()})),this.set("VIEWPORT_HEIGHT",(function(){return r.getHeight()})),this.set("VIEWPORT_WIDTH",(function(){return r.getWidth()}));var o=i.screen;this.set("SCREEN_WIDTH",ca(o,"width")),this.set("SCREEN_HEIGHT",ca(o,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",ca(o,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",ca(o,"availWidth")),this.set("SCREEN_COLOR_DEPTH",ca(o,"colorDepth")),this.set("DOCUMENT_CHARSET",(function(){var t=i.document;return t.characterSet||t.charset})),this.set("BROWSER_LANGUAGE",(function(){var t=i.navigator;return(t.language||t.userLanguage||t.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(function(){return i.navigator.userAgent})),this.setBoth("UACH",(function(i){var n;return null!==(n=t.Sa[i])&&void 0!==n?n:""}),(function(n){return t.Da(n,i)})),this.Ma("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.Ma("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.Ma("TCP_CONNECT_TIME","connectStart","connectEnd"),this.Ma("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.Ma("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.Ma("REDIRECT_TIME","navigationStart","fetchStart"),this.Ma("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.Ma("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(function(){return t.Ua((function(t){return t.getAccessReaderId()}),"ACCESS_READER_ID")})),this.setAsync("AUTHDATA",(function(i){return ti(i,"The first argument to AUTHDATA, the field, is required"),t.Ua((function(t){return t.getAuthdataField(i)}),"AUTHDATA")})),this.setAsync("VIEWER",(function(){return mr(t.ampdoc).getViewerOrigin().then((function(t){return null==t?"":t}))})),this.setAsync("TOTAL_ENGAGED_TIME",(function(){return Yn(n).then((function(t){return t.getTotalEngagedTime()}))})),this.setAsync("INCREMENTAL_ENGAGED_TIME",(function(t,i){return Yn(n).then((function(n){return n.getIncrementalEngagedTime(t,"false"!==i)}))})),this.set("NAV_TIMING",(function(t,n){return ti(t,"The first argument to NAV_TIMING, the start attribute name, is required"),ua(i,t,n)})),this.setAsync("NAV_TIMING",(function(t,n){return ti(t,"The first argument to NAV_TIMING, the start attribute name, is required"),sa(i,t,n)})),this.set("NAV_TYPE",(function(){return oa(i,"type")})),this.set("NAV_REDIRECT_COUNT",(function(){return oa(i,"redirectCount")})),this.set("AMP_VERSION",(function(){return"2404021934000"})),this.set("BACKGROUND_STATE",(function(){return t.ampdoc.isVisible()?"0":"1"})),this.setAsync("VIDEO_STATE",(function(i,n){return(r=t.ampdoc,In(r,"video-manager")).getVideoStateProperty(i,n);var r})),this.setAsync("AMP_STATE",(function(i){var n=t.ampdoc.getRootNode(),r=n.documentElement||n;return Qn(r).then((function(t){return t&&t.getStateValue(i)||""}))}))},r._a=function(t){var i=this.Ra().replaceParams;return i?function(t,i){for(var n=yt(ms(t).search),r={},e=Object.keys(i),s=0;s<e.length;s++)x(n,e[s])||(r[e[s]]=i[e[s]]);return ys(t,r)}(Is(t),i):t},r.Ra=function(){return ir(this.ampdoc)},r.Ua=function(t,i){var n=this.ampdoc.getHeadNode();return Promise.all([qn(n),$n(n)]).then((function(n){var r=n[0],e=n[1],s=r||e;return s?r&&e?t(e)||t(r):t(s):(Jt().error(ha,"Access or subsciptions service is not installed to access: ",i),null)}))},r.ka=function(t,i){ti(t,"The first argument to QUERY_PARAM, the query string param is required");var n=yt(ms(Is(this.ampdoc.win.location.href)).search),r=this.Ra().replaceParams;return void 0!==n[t]?n[t]:r&&void 0!==r[t]?r[t]:i},r.Na=function(t,i){ti(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),ti("string"==typeof t,"param should be a string");var n=wt(this.ampdoc.win);return void 0===n[t]?i:n[t]},r.Ca=function(t,i){return(n=this.ampdoc.getHeadNode(),Fn(n,"variant","amp-experiment",!0)).then((function(t){return ti(t,"To use variable %s, amp-experiment should be configured",i),t.getVariants()})).then((function(i){return t(i)}));var n},r.ja=function(t,i){var n=this;return null!==this.Ia?t(this.Ia):vr(this.ampdoc.getHeadNode()).then((function(r){return ti(r,"To use variable %s, amp-geo should be configured",i),n.Ia=r,t(r)}))},r.Da=function(t,i){var n,r,e,s=this;return t in this.Sa?Promise.resolve(this.Sa[t]):(null===(n=i.navigator)||void 0===n||null===(r=n.userAgentData)||void 0===r||null===(e=r.getHighEntropyValues([t]))||void 0===e?void 0:e.then((function(i){var n="object"!==p(i[t])?i[t]:JSON.stringify(i[t]);return s.Sa[t]=n,n})))||Promise.resolve("")},n}(function(){function t(t){this.ampdoc=t,this.za=Object.create(null),this.La=!1,this.Ha()}var i=t.prototype;return i.Pe=function(){this.initialize(),this.La=!0},i.initialize=function(){},i.get=function(t){return this.La||this.Pe(),this.za[t]},i.set=function(t,i){return Zt(-1==t.indexOf("RETURN")),this.za[t]=this.za[t]||{sync:void 0,async:void 0},this.za[t].sync=i,this},i.setAsync=function(t,i){return Zt(-1==t.indexOf("RETURN")),this.za[t]=this.za[t]||{sync:void 0,async:void 0},this.za[t].async=i,this},i.setBoth=function(t,i,n){return this.set(t,i).setAsync(t,n)},i.getExpr=function(t,i){this.La||this.Pe();var n=D(D({},this.za),t);return this.Ga(Object.keys(n),i)},i.Ga=function(t,i){var n=this;if(this.Ha()&&(t=t.filter((function(t){return n.Ha().includes(t)}))),i&&(t=t.filter((function(t){return i[t]}))),0===t.length)return/_^/g;t.sort((function(t,i){return i.length-t.length}));var r=t.map((function(t){return"$"===t[0]?"\\"+t:t})).join("|");return new RegExp("\\$?("+r+")","g")},i.Ha=function(){return this.Va?this.Va:this.ampdoc.isSingleDoc()&&zu(this.ampdoc.getRootNode())?(this.Va=[""],this.Va):void 0},t}()),va=function(){function t(t,i){this.ampdoc=t,this.da=i}var i=t.prototype;return i.expandStringSync=function(t,i,n){return new ra(this.da,i,void 0,!0,n,!0).expand(t)},i.expandStringAsync=function(t,i,n){return new ra(this.da,i,void 0,void 0,n,!0).expand(t)},i.expandUrlSync=function(t,i,n){return this.Fa(t,new ra(this.da,i,void 0,!0,n).expand(t))},i.expandUrlAsync=function(t,i,n,r){var e=this;return new ra(this.da,i,void 0,void 0,n,r).expand(t).then((function(i){return e.Fa(t,i)}))},i.expandInputValueAsync=function(t){return this.Ba(t,!1)},i.expandInputValueSync=function(t){return this.Ba(t,!0)},i.Ba=function(t,i){Zt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());var n=this.qa(t);if(!n)return i?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);var r=new ra(this.da,void 0,void 0,i,n).expand(t["amp-original-value"]||t.value);return i?t.value=r:r.then((function(i){return t.value=i,i}))},i.qa=function(t,i){var n=t.getAttribute("data-amp-replace");if(n){var r={};return n.trim().split(/\s+/).forEach((function(t){!i||x(i,t)?r[t]=!0:Jt().warn("URL","Ignoring unsupported replacement",t)})),r}},i.Yn=function(t){var i=ir(this.ampdoc);if(t.origin==ms(i.canonicalUrl).origin||t.origin==ms(i.sourceUrl).origin)return!0;var n=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(n)for(var r=n.trim().split(/\s+/),e=0;e<r.length;e++)if(t.origin==ms(r[e]).origin)return!0;return!1},i.maybeExpandLink=function(t,i){Zt("A"==t.tagName);var n=t,r=n.getAttribute("data-amp-addparams")||"",e=this.qa(n,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(e||r||i){var s=n["amp-original-href"]||n.getAttribute("href"),u=ms(s);null==n["amp-original-href"]&&(n["amp-original-href"]=s);var o=this.Yn(u);return r&&(s=ys(s,yt(r=o?this.$a(r,e):r))),o?(i&&(e&&e.QUERY_PARAM||(i=this.expandUrlSync(i,void 0,{"QUERY_PARAM":!0})),s=ys(s,yt(i))),s=this.$a(s,e),n.href=s):(e&&Jt().warn("URL","Ignoring link replacement %s because the link does not go to the document's source, canonical, or allowlisted origin.",s),n.href=s)}},i.$a=function(t,i){return i?this.expandUrlSync(t,void 0,i):t},i.collectVars=function(t,i){var n=Object.create(null);return new ra(this.da,i,n).expand(t).then((function(){return n}))},i.collectDisallowedVarsSync=function(t){var i=t.getAttribute("src"),n=new ra(this.da).getMacroNames(i),r=this.qa(t);return r?n.filter((function(t){return!r[t]})):n},i.Fa=function(t,i){return ms(i,!0).protocol!=ms(t,!0).protocol?(Jt().error(ha,"Illegal replacement of the protocol: ",t),t):(ti(Os(i),"The replacement url has invalid protocol: %s",i),i)},i.getVariableSource=function(){return this.da},t}(),da="Viewer",ma=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,pa=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.Go=Ni(this.win),this.Eu=!0,this.Wa=!1,this.Ka=A(),this.Ya=A(),this.Ja=new Or,this.Xa=new Or,this.Qa=null,this.Za=null,this.tc=[],this.ic=A(),this.nc=A(),t.isSingleDoc()&&Object.assign(this.nc,yt(this.win.location.hash)),this.Eu=!parseInt(t.getParam("off"),10),Qt().fine(da,"- runtimeOn:",this.Eu),this.Wa=!(!parseInt(t.getParam("history"),10)&&!this.Wa),Qt().fine(da,"- history:",this.Wa),Qt().fine(da,"- visibilityState:",this.ampdoc.getVisibilityState()),this.rc=null,this.ec=Ps(ms(this.ampdoc.win.location.href));var n=new a;this.sc=n.resolve,this.oc=this.uc(n.promise),this.Ko=null,this.hc=null;var r=t.getParam("referrer");if(this.ac=this.isEmbedded()&&null!=r&&!1!==this.cc()?r:this.win.document.referrer,this.fc=new Promise((function(n){i.isEmbedded()&&null!=t.getParam("referrer")?i.isTrustedViewer().then((function(r){r?n(t.getParam("referrer")):(n(i.win.document.referrer),i.ac!=i.win.document.referrer&&(Qt().expectedError(da,"Untrusted viewer referrer override: "+i.ac+" at "+i.Za),i.ac=i.win.document.referrer))})):n(i.win.document.referrer)})),this.lc=Es(this.win.location.href||""),this.vc=new Promise((function(n){var r=t.getParam("viewerUrl");i.isEmbedded()&&r?i.isTrustedViewer().then((function(t){t?i.lc=Zt(r):Qt().expectedError(da,"Untrusted viewer url override: "+r+" at "+i.Za),n(i.lc)})):n(i.lc)})),this.nc.click){var e=Es(this.win.location.href);e!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.propertyIsEnumerable({},"",e),delete this.nc.click,Qt().fine(da,"replace fragment:"+this.win.location.href))}this.ampdoc.whenFirstVisible().then((function(){i.maybeUpdateFragmentForCct()})),this.ampdoc.isSingleDoc()&&this.dc()}var i=t.prototype;return i.uc=function(t){if(!(this.Go&&!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;var i="initMessagingChannel timeout";return fr(this.win).timeoutPromise(2e4,t,i).catch((function(t){var n=ga(t);throw n&&W(n.message,i)&&(n=Qt().createExpectedError(n)),Us(n),n}))},i.getAmpDoc=function(){return this.ampdoc},i.getParam=function(t){return this.ampdoc.getParam(t)},i.hasCapability=function(t){var i=this.ampdoc.getParam("cap");return!!i&&-1!=i.split(",").indexOf(t)},i.isEmbedded=function(){return!!this.oc},i.isWebviewEmbedded=function(){return!this.Go&&"1"==this.ampdoc.getParam("webview")},i.isCctEmbedded=function(){if(null!=this.rc)return this.rc;if(this.rc=!1,!this.Go){var t=yt(this.win.location.search);this.rc="1"===t.amp_gsa&&(t.amp_js_v||"").startsWith("a")}return this.rc},i.isProxyOrigin=function(){return this.ec},i.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var t=Ss(this.win.location.href),i=ir(this.ampdoc).canonicalUrl,n=Ss(i);this.mc(t,n)&&(this.nc.ampshare=i,this.win.history.propertyIsEnumerable({},"","#"+ws(this.nc)))}},i.mc=function(t,i){var n=function(t){return t.split(".").length>2?t.replace(ma,"$1"):t};return n(t)==n(i)},i.isRuntimeOn=function(){return this.Eu},i.toggleRuntime=function(){this.Eu=!this.Eu,Qt().fine(da,"Runtime state:",this.Eu),this.Ja.fire(this.Eu)},i.onRuntimeState=function(t){return this.Ja.add(t)},i.isOvertakeHistory=function(){return this.Wa},i.getVisibilityState=function(){return this.ampdoc.getVisibilityState()},i.isVisible=function(){return this.ampdoc.isVisible()},i.hasBeenVisible=function(){return this.ampdoc.hasBeenVisible()},i.whenFirstVisible=function(){return this.ampdoc.whenFirstVisible()},i.whenNextVisible=function(){return this.ampdoc.whenNextVisible()},i.getFirstVisibleTime=function(){return this.ampdoc.getFirstVisibleTime()},i.getLastVisibleTime=function(){return this.ampdoc.getLastVisibleTime()},i.onVisibilityChanged=function(t){return this.ampdoc.onVisibilityChanged(t)},i.bc=function(t){var i;t&&(Zt("prerender"===(i=t)||"preview"===i||"visible"===i||"hidden"===i||"paused"===i||"inactive"===i),t===xr&&(t=null!=this.ampdoc.getLastVisibleTime()?Pr:yr),this.ampdoc.overrideVisibilityState(t),Qt().fine(da,"visibilitychange event:",this.ampdoc.getVisibilityState()))},i.getResolvedViewerUrl=function(){return this.lc},i.getViewerUrl=function(){return this.vc},i.maybeGetMessagingOrigin=function(){return this.Za},i.getUnconfirmedReferrerUrl=function(){return this.ac},i.getReferrerUrl=function(){return this.fc},i.isTrustedViewer=function(){var t=this;if(!this.Ko){var i=this.cc();this.Ko=void 0!==i?Promise.resolve(i):this.oc.then((function(i){return!!i&&t.gc(i)}))}return this.Ko},i.cc=function(){return!!this.isEmbedded()&&(!this.win.location.ancestorOrigins||this.isWebviewEmbedded()||this.isCctEmbedded()?void 0:this.win.location.ancestorOrigins.length>0&&this.gc(this.win.location.ancestorOrigins[0]))},i.getViewerOrigin=function(){var t;return this.hc||(this.isEmbedded()?this.win.location.ancestorOrigins&&this.win.location.ancestorOrigins.length>0&&(t=this.win.location.ancestorOrigins[0]):t="",this.hc=void 0!==t?Promise.resolve(t):fr(this.win).timeoutPromise(1e3,this.oc).catch((function(){return""}))),this.hc},i.gc=function(t){var i=ms(t),n=i.protocol;return"x-thread:"==n||"https:"==n&&kt.some((function(t){return t.test(i.hostname)}))},i.onMessage=function(t,i){var n=this.Ka[t];n||(n=new Or,this.Ka[t]=n);var r=n.add(i);return this.ic[t]&&(this.ic[t].forEach((function(t){n.fire(t.data),t.deferred.resolve()})),this.ic[t]=[]),r},i.onMessageRespond=function(t,i){var n=this;return this.Ya[t]=i,this.ic[t]&&(this.ic[t].forEach((function(t){t.deferred.resolve(i(t.data))})),this.ic[t]=[]),function(){n.Ya[t]===i&&delete n.Ya[t]}},i.receiveMessage=function(t,i,n){if("visibilitychange"==t)return this.bc(i.state),h();if("broadcast"==t)return this.Xa.fire(i),h();var r=this.Ka[t],e=this.Ya[t];if(!r&&!e){if(this.ic[t]=this.ic[t]||[],this.ic[t].length>=50)return;var s=new a;return this.ic[t].push({data:i,deferred:s}),s.promise}return r&&r.fire(i),e?e(i):r?h():void 0},i.setMessageDeliverer=function(t,i){var n=this;if(this.Qa)throw new Error("message channel can only be initialized once");if(null==i)throw new Error("message channel must have an origin");if(Qt().fine(da,"message channel established with origin: ",i),this.Qa=t,this.Za=i,this.sc(i),this.tc.length>0){var r=this.tc.slice(0);this.tc=[],r.forEach((function(t){var i=n.Qa(t.eventType,t.data,t.awaitResponse);t.awaitResponse&&t.responseResolver(i)}))}},i.maybeGetMessageDeliverer=function(){return this.Qa},i.sendMessage=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.ut(t,i,n,!1)},i.sendMessageAwaitResponse=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.ut(t,i,n,!0)},i.ut=function(t,i,n,r){var e=this;if(this.Qa)return c((function(){return e.Qa(t,i,r)}));if(!this.oc)return r?Promise.reject(ga()):h();if(!n)return this.oc.then((function(){return e.Qa(t,i,r)}));var s,u=q(this.tc,(function(i){return i.eventType==t}));if(-1!=u)(s=this.tc.splice(u,1)[0]).data=i,s.awaitResponse=s.awaitResponse||r;else{var o=new a,f=o.promise,l=o.resolve;s={eventType:t,data:i,awaitResponse:r,responsePromise:f,responseResolver:l}}return this.tc.push(s),s.responsePromise},i.broadcast=function(t){return this.oc?this.ut("broadcast",t,!1,!1).then((function(){return!0}),(function(){return!1})):Promise.resolve(!1)},i.onBroadcast=function(t){return this.Xa.add(t)},i.whenMessagingReady=function(){return this.oc},i.replaceUrl=function(t){if(t&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var i=ms(this.win.location.href),n=ms(Es(t)+this.win.location.hash);i.origin==n.origin&&Ss(i)==Ss(n)&&(this.win.history.propertyIsEnumerable({},"",n.href),this.win.location.originalHref=i.href,Qt().fine(da,"replace url:"+n.href))}catch(t){Qt().error(da,"replaceUrl failed",t)}},i.dc=function(){var t=this;if(this.ampdoc.getVisibilityState()!=Ar){var i=[],n=function(){return i.forEach((function(t){return t()}))},r=function(){t.bc(Ar),n(),Qt().expectedError(da,"Received user action in non-visible doc")},e={capture:!0,passive:!0};i.push(Je(this.win,"keydown",r,e),Je(this.win,"touchstart",r,e),Je(this.win,"mousedown",r,e)),this.whenFirstVisible().then(n)}},t}();function ga(t){var i;return t instanceof Error?((t=f(t)).message="No messaging channel: "+t.message,i=t):i=new Error("No messaging channel: "+t),i.message=it(i.message),i}function ba(t,i){return function(n){return t+(i-t)*n}}function ya(t,i,n){return et(i<=n),Math.min(Math.max(t,i),n)}var wa=function(){function t(){}return t.solveYValueFromXValue=function(i,n,r,e,s,u,o,h,a){return t.yc(t.wc(i,n,e,u,h),r,s,o,a)},t.wc=function(i,n,r,e,s){var u=1e-6,o=(i-n)/(s-n);if(o<=0)return 0;if(o>=1)return 1;for(var h=0,a=1,c=0,f=0;f<8;f++){c=t.Ac(o,n,r,e,s);var l=(t.Ac(o+u,n,r,e,s)-c)/u;if(Math.abs(c-i)<u)return o;if(Math.abs(l)<u)break;c<i?h=o:a=o,o-=(c-i)/l}for(var v=0;Math.abs(c-i)>u&&v<8;v++)c<i?(h=o,o=(o+a)/2):(a=o,o=(o+h)/2),c=t.Ac(o,n,r,e,s);return o},t.Ac=function(i,n,r,e,s){if(0==i)return n;if(1==i)return s;var u=t.xc(n,r,i),o=t.xc(r,e,i),h=t.xc(e,s,i);return u=t.xc(u,o,i),o=t.xc(o,h,i),t.xc(u,o,i)},t.yc=function(i,n,r,e,s){if(0==i)return n;if(1==i)return s;var u=t.xc(n,r,i),o=t.xc(r,e,i),h=t.xc(e,s,i);return u=t.xc(u,o,i),o=t.xc(o,h,i),t.xc(u,o,i)},t.xc=function(t,i,n){return t+n*(i-t)},t}(),Aa={LINEAR:function(t){return t},EASE:function(t){return wa.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1)},EASE_IN:function(t){return wa.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1)},EASE_OUT:function(t){return wa.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1)},EASE_IN_OUT:function(t){return wa.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)}},xa={"linear":Aa.LINEAR,"ease":Aa.EASE,"ease-in":Aa.EASE_IN,"ease-out":Aa.EASE_OUT,"ease-in-out":Aa.EASE_IN_OUT};function Ea(t){if(!t)return null;if(Y(t)){if(-1!=t.indexOf("cubic-bezier")){var i=t.match(/cubic-bezier\((.+)\)/);if(i){var n=i[1].split(",").map(parseFloat);if(4==n.length){for(var r=0;r<4;r++)if(isNaN(n[r]))return null;return e=n[0],s=n[1],u=n[2],o=n[3],function(t){return wa.solveYValueFromXValue(t,0,0,e,s,u,o,1,1)}}}return null}return xa[t]}var e,s,u,o;return t}var Pa="Animation",Oa=function(){},Ia=function(){function t(t,i){this.Ec=t,this._o=i||pr(self),this.Oc=null,this.Tc=[]}t.animate=function(i,n,r,e){return new t(i).setCurve(e).add(0,n,1).start(r)};var i=t.prototype;return i.setCurve=function(t){return t&&(this.Oc=Ea(t)),this},i.add=function(t,i,n,r){return this.Tc.push({delay:t,func:i,duration:n,curve:Ea(r)}),this},i.start=function(t){return new Ta(this._o,this.Ec,this.Tc,this.Oc,t)},t}(),Ta=function(){function t(t,i,n,r,e){this._o=t,this.Ec=i,this.Tc=[];for(var s=0;s<n.length;s++){var u=n[s];this.Tc.push({delay:u.delay,func:u.func,duration:u.duration,curve:u.curve||r,started:!1,completed:!1})}this.Pc=e,this.fa=Date.now(),this.He=!0,this.Ri={};var o=new a;this.Ic=o.promise,this.Oi=o.resolve,this.Sc=o.reject,this.Mc=this._o.createAnimTask(this.Ec,{mutate:this.Rc.bind(this)}),this._o.canAnimate(this.Ec)?this.Mc(this.Ri):(Qt().warn(Pa,"cannot animate"),this._c(!1,0))}var i=t.prototype;return i.then=function(t,i){return t||i?this.Ic.then(t,i):this.Ic},i.thenAlways=function(t){var i=t||Oa;return this.then(i,i)},i.halt=function(t){this._c(!1,t||0)},i._c=function(t,i){if(this.He){if(this.He=!1,0!=i){this.Tc.length>1&&this.Tc.sort((function(t,i){return t.delay+t.duration-(i.delay+i.duration)}));try{if(i>0)for(var n=0;n<this.Tc.length;n++)this.Tc[n].func(1,!0);else for(var r=this.Tc.length-1;r>=0;r--)this.Tc[r].func(0,!1)}catch(i){Qt().error(Pa,"completion failed: "+i,i),t=!1}}t?this.Oi():this.Sc()}},i.Rc=function(t){if(this.He){for(var i=Date.now(),n=Math.min((i-this.fa)/this.Pc,1),r=0;r<this.Tc.length;r++){var e=this.Tc[r];!e.started&&n>=e.delay&&(e.started=!0)}for(var s=0;s<this.Tc.length;s++){var u=this.Tc[s];u.started&&!u.completed&&this.kc(u,n)}1==n?this._c(!0,0):this._o.canAnimate(this.Ec)?this.Mc(this.Ri):(Qt().warn(Pa,"cancel animation"),this._c(!1,0))}},i.kc=function(t,i){var n,r;if(t.duration>0){if(r=n=Math.min((i-t.delay)/t.duration,1),t.curve&&1!=r)try{r=t.curve(n)}catch(t){return Qt().error(Pa,"step curve failed: "+t,t),void this._c(!1,0)}}else n=1,r=1;1==n&&(t.completed=!0);try{t.func(r,t.completed)}catch(t){return Qt().error(Pa,"step mutate failed: "+t,t),void this._c(!1,0)}},t}();function Ma(t,i){for(var n,r=i.lastElementChild;r;r=r.previousElementSibling)if(r.getBoundingClientRect().height>0){var e=jr(t,r);if("static"==e.position||"relative"==e.position){n=e;break}}return n?parseInt(n.marginBottom,10):0}var Sa=function(){function t(t){var i=this;this.win=t,this._o=pr(t);var n=this.win.document,r=n.documentElement,e=r.className;r.classList.add("i-amphtml-ios-embed");var s=n.createElement("html");this.Nc=s,s.id="i-amphtml-wrapper",s.className=e,this.Cc=new Or,this.jc=new Or,this.Dc=this.Uc.bind(this),this.zc=function(){return i.jc.fire()},this.Lc=0,this.Hc=!1,Ii(n,this.Gc.bind(this)),dn(n).then((function(){r.classList.add("i-amphtml-ios-overscroll")})),Qt().fine("Viewport","initialized ios-embed-wrapper viewport")}var i=t.prototype;return i.ensureReadyForElements=function(){this.Gc()},i.Gc=function(){if(!this.Hc){this.Hc=!0;var t=this.win.document,i=t.body;t.documentElement.appendChild(this.Nc),this.Nc.appendChild(i),Object.defineProperty(t,"body",{get:function(){return i}}),this.Uc()}},i.connect=function(){this.win.addEventListener("resize",this.zc),this.Nc.addEventListener("scroll",this.Dc)},i.disconnect=function(){this.win.removeEventListener("resize",this.zc),this.Nc.removeEventListener("scroll",this.Dc)},i.getBorderTop=function(){return 1},i.requiresFixedLayerTransfer=function(){return!Fe(this.win,"ios-fixed-no-transfer")||parseFloat(or(this.win).getIosVersionString())<12.2},i.overrideGlobalScrollTo=function(){return!0},i.supportsPositionFixed=function(){return!0},i.onScroll=function(t){this.Cc.add(t)},i.onResize=function(t){this.jc.add(t)},i.updatePaddingTop=function(t){this.Lc=t,_r(this.Nc,{"padding-top":Dr(t)})},i.hideViewerHeader=function(t,i){t||this.updatePaddingTop(0)},i.showViewerHeader=function(t,i){t||this.updatePaddingTop(i)},i.disableScroll=function(){this.Nc.classList.add("i-amphtml-scroll-disabled")},i.resetScroll=function(){this.Nc.classList.remove("i-amphtml-scroll-disabled")},i.updateLightboxMode=function(t){return h()},i.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}},i.getScrollTop=function(){return this.Nc.scrollTop},i.getScrollLeft=function(){return 0},i.getScrollWidth=function(){return this.Nc.scrollWidth},i.getScrollHeight=function(){return this.Nc.scrollHeight},i.getContentHeight=function(){var t=this.win.document.body,i=t.getBoundingClientRect().height,n=Ma(this.win,t),r=jr(this.win,t);return parseInt(r.marginTop,10)+this.Lc+i+n+parseInt(r.marginBottom,10)},i.contentHeightChanged=function(){},i.getLayoutRect=function(t,i,n){var r=t.getBoundingClientRect(),e=null!=n?n:this.getScrollTop(),s=null!=i?i:this.getScrollLeft();return zi(Math.round(r.left+s),Math.round(r.top+e),Math.round(r.width),Math.round(r.height))},i.getRootClientRectAsync=function(){return Promise.resolve(null)},i.setScrollTop=function(t){this.Nc.scrollTop=t||1},i.Uc=function(t){0==this.Nc.scrollTop&&(this.Nc.scrollTop=1,t&&t.preventDefault()),t&&this.Cc.fire()},i.getScrollingElement=function(){return this.Nc},i.getScrollingElementScrollsLikeViewport=function(){return!1},t}(),Ra=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.Lo=or(this.win),this.Cc=new Or,this.jc=new Or,this.Dc=this.Vc.bind(this),this.zc=function(){return i.jc.fire()},Qt().fine("Viewport","initialized natural viewport")}var i=t.prototype;return i.Vc=function(){this.Cc.fire()},i.connect=function(){this.win.addEventListener("scroll",this.Dc),this.win.addEventListener("resize",this.zc)},i.disconnect=function(){this.win.removeEventListener("scroll",this.Dc),this.win.removeEventListener("resize",this.zc)},i.ensureReadyForElements=function(){},i.getBorderTop=function(){return 0},i.requiresFixedLayerTransfer=function(){return!1},i.overrideGlobalScrollTo=function(){return!1},i.supportsPositionFixed=function(){return!0},i.onScroll=function(t){this.Cc.add(t)},i.onResize=function(t){this.jc.add(t)},i.updatePaddingTop=function(t){_r(this.win.document.documentElement,{"padding-top":Dr(t)})},i.hideViewerHeader=function(t,i){t||this.updatePaddingTop(0)},i.showViewerHeader=function(t,i){t||this.updatePaddingTop(i)},i.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")},i.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")},i.updateLightboxMode=function(t){return h()},i.getSize=function(){var t=this.win.innerWidth,i=this.win.innerHeight;if(t&&i)return{width:t,height:i};var n=this.win.document.documentElement;return{width:n.clientWidth,height:n.clientHeight}},i.getScrollTop=function(){var t=this.getScrollingElement().scrollTop||this.win.pageYOffset,i=this.ampdoc.getRootNode().host;return i?t-i.offsetTop:t},i.getScrollLeft=function(){return 0},i.getScrollWidth=function(){return this.getScrollingElement().scrollWidth},i.getScrollHeight=function(){return this.getScrollingElement().scrollHeight},i.getContentHeight=function(){var t=this.getScrollingElement(),i=t.getBoundingClientRect(),n=i.top+this.getScrollTop(),r=or(this.win).isSafari()?Ma(this.win,t):0,e=jr(this.win,t);return n+parseInt(e.marginTop,10)+i.height+r+parseInt(e.marginBottom,10)},i.contentHeightChanged=function(){},i.getLayoutRect=function(t,i,n){var r=t.getBoundingClientRect(),e=null!=n?n:this.getScrollTop(),s=null!=i?i:this.getScrollLeft();return zi(Math.round(r.left+s),Math.round(r.top+e),Math.round(r.width),Math.round(r.height))},i.getRootClientRectAsync=function(){return Promise.resolve(null)},i.setScrollTop=function(t){this.getScrollingElement().scrollTop=t},i.getScrollingElement=function(){var t=this.win.document;return t.scrollingElement?t.scrollingElement:t.body&&this.Lo.isWebKit()?t.body:t.documentElement},i.getScrollingElementScrollsLikeViewport=function(){return!0},t}(),_a="Viewport";function ka(t,i,n){return function(t,i,n){var r=parseInt(jr(t,i)[n],10);return isNaN(r)?0:r}(t,i===t.document.body?t.document.documentElement:i,n)}function Ca(t,i){return ka(t,i,"scrollPaddingTop")}var Na=function(){function t(t,i,n){var r=this,e=t.win;this.ampdoc=t,this.Fc=this.ampdoc.win.document,this.Hs=i,this.ls=n,this.Bc=null,this.In=null,this.qc=null,this.$c=!1,this.Wc=null,this.Lc=Number(n.getParam("paddingTop")||0),this.Kc=0,this.je=fr(e),this._o=pr(e),this.Yc=!1,this.xn=null,this.Jc=0,this.Xc=new Or,this.Cc=new Or,this.jc=new Or,this.Qc=void 0,this.Zc=void 0,this.tf=null,this.ls.onMessage("viewport",this.if.bind(this)),this.ls.onMessage("scroll",this.nf.bind(this)),this.ls.onMessage("disableScroll",this.rf.bind(this)),this.ls.isEmbedded()&&this.Hs.updatePaddingTop(this.Lc),this.Hs.onScroll(this.ef.bind(this)),this.Hs.onResize(this.sf.bind(this)),this.onScroll(this.uf.bind(this)),this.Mu=!1,this.ampdoc.onVisibilityChanged(this.hf.bind(this)),this.hf();var s=this.Fc.documentElement;if(t.isSingleDoc()&&s.classList.add("i-amphtml-singledoc"),n.isEmbedded()?s.classList.add("i-amphtml-embedded"):s.classList.add("i-amphtml-standalone"),Ni(e)&&s.classList.add("i-amphtml-iframed"),"1"===n.getParam("webview")&&s.classList.add("i-amphtml-webview"),Ni(e)&&"scrollRestoration"in e.history&&(e.history.scrollRestoration="manual"),this.Hs.overrideGlobalScrollTo())try{Object.defineProperty(e,"scrollTo",{value:function(t,i){return r.setScrollTop(i)}}),["pageYOffset","scrollY"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return r.getScrollTop()}})}))}catch(t){}or(e).isIos()&&Ni(e)&&this.ampdoc.isSingleDoc()&&this.ampdoc.whenReady().then((function(){e.scrollTo(-.1,0)}))}var i=t.prototype;return i.dispose=function(){this.Hs.disconnect()},i.ensureReadyForElements=function(){this.Hs.ensureReadyForElements()},i.hf=function(){var t=this.ampdoc.isVisible();t!=this.Mu&&(this.Mu=t,t?(this.Hs.connect(),this.In&&this.sf(),this.qc&&(this.qc=null,this.getScrollTop())):this.Hs.disconnect())},i.getPaddingTop=function(){return this.Lc},i.getScrollTop=function(){return null==this.qc&&(this.qc=this.Hs.getScrollTop()),this.qc},i.getScrollLeft=function(){return null==this.Wc&&(this.Wc=this.Hs.getScrollLeft()),this.Wc},i.setScrollTop=function(t){this.qc=null,this.Hs.setScrollTop(t)},i.updatePaddingBottom=function(t){this.ampdoc.waitForBodyOpen().then((function(i){kr(i,"borderBottom","".concat(t,"px solid transparent"))}))},i.getSize=function(){if(this.In)return this.In;if(this.In=this.Hs.getSize(),0==this.In.width||0==this.In.height){var t=this.ampdoc.getVisibilityState();t!=yr&&t!=Ar||Math.random()<.01&&Qt().error(_a,"viewport has zero dimensions")}return this.In},i.getHeight=function(){return this.getSize().height},i.getWidth=function(){return this.getSize().width},i.getScrollWidth=function(){return this.Hs.getScrollWidth()},i.getScrollHeight=function(){return this.Hs.getScrollHeight()},i.getContentHeight=function(){return this.Hs.getContentHeight()},i.contentHeightChanged=function(){this.Hs.contentHeightChanged()},i.getRect=function(){if(null==this.Bc){var t=this.getScrollTop(),i=this.getScrollLeft(),n=this.getSize();this.Bc=zi(i,t,n.width,n.height)}return this.Bc},i.getLayoutRect=function(t){var i=this.getScrollLeft(),n=this.getScrollTop(),r=_n(t,this.ampdoc.win);if(r){var e=this.Hs.getLayoutRect(t,0,0),s=this.Hs.getLayoutRect(r,i,n);return zi(Math.round(e.left+s.left),Math.round(e.top+s.top),Math.round(e.width),Math.round(e.height))}return this.Hs.getLayoutRect(t,i,n)},i.getClientRectAsync=function(t){var i=this._o.measurePromise((function(){return t.getBoundingClientRect()})),n=this.Hs.getRootClientRectAsync(),r=_n(t,this.ampdoc.win);return r&&(n=this._o.measurePromise((function(){return r.getBoundingClientRect()}))),Promise.all([i,n]).then((function(t){var i,n=t[0],r=t[1];return r?Gi(n,r.left,r.top):(i=n,zi(Number(i.left),Number(i.top),Number(i.width),Number(i.height)))}))},i.supportsPositionFixed=function(){return this.Hs.supportsPositionFixed()},i.isDeclaredFixed=function(t){return!!this.tf&&this.tf.isDeclaredFixed(t)},i.scrollIntoView=function(t){var i=this;return this.af(t).then((function(n){return i.cf(t,n)}))},i.cf=function(t,i){var n=this,r=this.Hs.getLayoutRect(t).top,e=Ca(this.ampdoc.win,i);c((function(){return Math.max(0,r-n.Lc-e)})).then((function(t){return n.ff(i,t)}))},i.animateScrollIntoView=function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r=arguments.length>2?arguments[2]:void 0,e=arguments.length>3?arguments[3]:void 0;return Zt(!e||void 0!==r),this.af(t).then((function(s){return i.animateScrollWithinParent(t,s,n,r,e)}))},i.animateScrollWithinParent=function(t,i,n,r,e){var s=this;Zt(!e||void 0!==r);var u=this.Hs.getLayoutRect(t),o=(this.lf(i)?this.getSize():this.getLayoutRect(i)).height,h=this.ampdoc.win,a=Ca(h,i),c=function(t,i){return ka(t,i,"scrollPaddingBottom")}(h,i),f=-a;return"bottom"===n?f=-o+c+u.height:"center"===n&&(f=-(o-a-c)/2+u.height/2),this.vf(i).then((function(t){var n=u.top-s.Lc+f,o=Math.max(0,n);if(o!=t)return s.df(i,t,o,r,e)}))},i.df=function(t,i,n,r){var e=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ease-in",u=void 0!==r?r:Da(i,n),o=ba(i,n);return Ia.animate(t,(function(i){e.ff(t,o(i))}),u,s).thenAlways((function(){e.ff(t,n)}))},i.af=function(t){var i=this;return this._o.measurePromise((function(){return yi(t,".i-amphtml-scrollable")||i.Hs.getScrollingElement()}))},i.ff=function(t,i){this.lf(t)?this.Hs.setScrollTop(i):this._o.mutate((function(){t.scrollTop=i}))},i.vf=function(t){var i=this;return this.lf(t)?c((function(){return i.getScrollTop()})):this._o.measurePromise((function(){return t.scrollTop}))},i.lf=function(t){return t==this.Hs.getScrollingElement()},i.getScrollingElement=function(){return this.xn?this.xn:this.xn=this.Hs.getScrollingElement()},i.onChanged=function(t){return this.Xc.add(t)},i.onScroll=function(t){return this.Cc.add(t)},i.onResize=function(t){return this.jc.add(t)},i.enterLightboxMode=function(t,i){return this.ls.sendMessage("requestFullOverlay",{},!0),this.enterOverlayMode(),this.tf&&this.tf.enterLightbox(t,i),t&&this.maybeEnterFieLightboxMode(t),this.Hs.updateLightboxMode(!0)},i.leaveLightboxMode=function(t){return this.ls.sendMessage("cancelFullOverlay",{},!0),this.tf&&this.tf.leaveLightbox(),this.leaveOverlayMode(),t&&this.maybeLeaveFieLightboxMode(t),this.Hs.updateLightboxMode(!1)},i.isLightboxExperimentOn=function(){return Fe(this.ampdoc.win,"amp-lightbox-a4a-proto")},i.maybeEnterFieLightboxMode=function(t){var i=this.mf(t);i&&(Zt(this.isLightboxExperimentOn()),i.enterFullOverlayMode())},i.maybeLeaveFieLightboxMode=function(t){var i=this.mf(t);i&&Zt(i).leaveFullOverlayMode()},i.mf=function(t){var i=_n(t,this.ampdoc.win);return i&&i.__AMP_EMBED__},i.enterOverlayMode=function(){this.disableTouchZoom(),this.disableScroll()},i.leaveOverlayMode=function(){this.resetScroll(),this.restoreOriginalTouchZoom()},i.disableScroll=function(){var t,i=this,n=this.ampdoc.win,r=n.document.documentElement;this._o.measure((function(){var e=jr(n,r).marginRight,s=function(t){var i=t.document.documentElement;return t.innerWidth-i.clientWidth}(i.ampdoc.win);t=parseInt(e,10)+s})),this._o.mutate((function(){kr(r,"margin-right",t,"px"),i.Hs.disableScroll()}))},i.resetScroll=function(){var t=this,i=this.ampdoc.win.document.documentElement;this._o.mutate((function(){kr(i,"margin-right",""),t.Hs.resetScroll()}))},i.resetTouchZoom=function(){var t=this,i=this.ampdoc.win.innerHeight,n=this.Fc.documentElement.clientHeight;i&&n&&i===n||this.disableTouchZoom()&&this.je.delay((function(){t.restoreOriginalTouchZoom()}),50)},i.disableTouchZoom=function(){var t=this.pf();if(!t)return!1;var i=function(t,i){var n=function(t){var i=Object.create(null);if(!t)return i;for(var n=t.split(/,|;/),r=0;r<n.length;r++){var e=n[r].split("="),s=e[0].trim(),u=e[1];u=(u||"").trim(),s&&(i[s]=u)}return i}(t),r=!1;for(var e in i)n[e]!==i[e]&&(r=!0,void 0!==i[e]?n[e]=i[e]:delete n[e]);return r?function(t){var i="";for(var n in t)i.length>0&&(i+=","),t[n]?i+=n+"="+t[n]:i+=n;return i}(n):t}(t.content,{"maximum-scale":"1","user-scalable":"no"});return this.bf(i)},i.restoreOriginalTouchZoom=function(){return void 0!==this.Zc&&this.bf(this.Zc)},i.updateFixedLayer=function(){return this.tf?this.tf.update():h()},i.addToFixedLayer=function(t,i){return this.tf?this.tf.addElement(t,i):h()},i.removeFromFixedLayer=function(t){this.tf&&this.tf.removeElement(t)},i.createFixedLayer=function(t){var i=this;this.tf=new t(this.ampdoc,this._o,this.Hs.getBorderTop(),this.Lc,this.Hs.requiresFixedLayerTransfer()),this.ampdoc.whenReady().then((function(){return i.tf.setup()}))},i.bf=function(t){var i=this.pf();return!(!i||i.content==t||(Qt().fine(_a,"changed viewport meta to:",t),i.content=t,0))},i.pf=function(){return Ni(this.ampdoc.win)?null:(void 0===this.Qc&&(this.Qc=this.Fc.querySelector("meta[name=viewport]"),this.Qc&&(this.Zc=this.Qc.content)),this.Qc)},i.nf=function(t){var i=t.scrollTop;this.setScrollTop(i)},i.if=function(t){var i=this,n=t.paddingTop,r=t.duration||0,e=t.curve,s=t.transient;if(null!=n&&n!=this.Lc&&(this.Kc=this.Lc,this.Lc=n,this.tf)){var u=this.tf.animateFixedElements(this.Lc,this.Kc,r,e,s);n<this.Kc?this.Hs.hideViewerHeader(s,this.Kc):u.then((function(){i.Hs.showViewerHeader(s,n)}))}},i.rf=function(t){t?this.disableScroll():this.resetScroll()},i.gf=function(t,i){var n=this.getSize(),r=this.getScrollTop(),e=this.getScrollLeft();Qt().fine(_a,"changed event:","relayoutAll=",t,"top=",r,"left=",e,"bottom=",r+n.height,"velocity=",i),this.Xc.fire({relayoutAll:t,top:r,left:e,width:n.width,height:n.height,velocity:i})},i.ef=function(){var t=this;this.Bc=null,this.Jc++,this.Wc=this.Hs.getScrollLeft();var i=this.Hs.getScrollTop();if(!(i<0)){if(this.qc=i,!this.Yc){this.Yc=!0;var n=Date.now();this.je.delay((function(){t._o.measure((function(){t.th(n,i)}))}),36)}this.Cc.fire()}},i.th=function(t,i){var n=this;this.qc=this.Hs.getScrollTop();var r=this.qc,e=Date.now(),s=0;e!=t&&(s=(r-i)/(e-t)),Qt().fine(_a,"scroll: scrollTop="+r+"; velocity="+s),Math.abs(s)<.03?(this.gf(!1,s),this.Yc=!1):this.je.delay((function(){return n._o.measure(n.th.bind(n,e,r))}),20)},i.uf=function(){var t=this;this.$c||(this.$c=!0,this._o.measure((function(){t.$c=!1,t.ls.sendMessage("scroll",{"scrollTop":t.getScrollTop()},!0)})))},i.sf=function(){var t=this;this.Bc=null;var i=this.In;this.In=null;var n=this.getSize();this.updateFixedLayer().then((function(){var r=!i||i.width!=n.width;t.gf(r,0),(r||i.height!=n.height)&&t.jc.fire({relayoutAll:r,width:n.width,height:n.height})}))},t}();function Da(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return Math.floor(ya(.65*Math.abs(t-i),0,n))}function ja(t){var i,n=mr(t),r=t.win;return i=t.isSingleDoc()&&function(t,i){return or(t).isIos()&&Ni(t)&&i.isEmbedded()&&!i.hasCapability("iframeScroll")?Ua.NATURAL_IOS_EMBED:Ua.NATURAL}(r,n)==Ua.NATURAL_IOS_EMBED?new Sa(r):new Ra(t),new Na(t,i,n)}var Ua={NATURAL:"natural",NATURAL_IOS_EMBED:"natural-ios-embed"},La=function(){function t(t){this.win=t,this.yf=Jn(this.win),this.wf=this.Af(),this.Tr=[],this.xf=[],this.Ao=[],this.Ef=[],this.ze=!1,this.Of=null,this.Tf=null,this.Pf=this.If.bind(this),this.Sf=new Uu(this.win,this.Pf,16),this.Mf=new Uu(this.win,this.Pf,40),this.Rf=this._f.bind(this),this.yf.isSingleDoc()?this.yf.getSingleDoc().onVisibilityChanged(this.Rf):Lr(this.win.document,this.Rf)}var i=t.prototype;return i.dispose=function(){zr(this.win.document,this.Rf)},i._f=function(){this.ze&&this.kf()},i.run=function(t,i){this.Tr.push(t),this.Ao.push(i||void 0),this._r()},i.runPromise=function(t,i){if(this.run(t,i),this.Of)return this.Of;var n=new a;return this.Tf=n.resolve,this.Of=n.promise},i.createTask=function(t){var i=this;return function(n){i.run(t,n)}},i.mutate=function(t){this.run({measure:void 0,mutate:t})},i.mutatePromise=function(t){return this.runPromise({measure:void 0,mutate:t})},i.measure=function(t){this.run({measure:t,mutate:void 0})},i.measurePromise=function(t){var i=this;return new Promise((function(n){i.measure((function(){n(t())}))}))},i.canAnimate=function(t){return this.Nf(Zt(t))},i.Nf=function(t){if(Ur(this.win.document)!=Ar)return!1;if(this.yf.isSingleDoc())return this.yf.getSingleDoc().isVisible();if(t){var i=this.yf.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0},i.runAnim=function(t,i,n){return this.Nf(t)?(this.run(i,n),!0):(Qt().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1)},i.createAnimTask=function(t,i){var n=this;return function(r){return n.runAnim(t,i,r)}},i.runAnimMutateSeries=function(t,i,n){var r=this;return this.Nf(t)?new Promise((function(e,s){var u=Date.now(),o=0,h=r.createAnimTask(t,{mutate:function(t){var r=Date.now()-u;i(r,r-o,t)?n&&r>n?s(new Error("timeout")):(o=r,h(t)):e()}});h({})})):Promise.reject(Ls())},i._r=function(){this.ze||(this.ze=!0,this.kf())},i.kf=function(){this.Nf()?(this.wf(this.Pf),this.Mf.schedule()):this.Sf.schedule()},i.If=function(){this.Mf.cancel(),this.ze=!1;var t=this.Tf,i=this.Ao,n=this.Tr;this.Tf=null,this.Of=null,this.Tr=this.xf,this.Ao=this.Ef;for(var r=0;r<n.length;r++)n[r].measure&&(za(n[r].measure,i[r])||(n[r].mutate=void 0));for(var e=0;e<n.length;e++)n[e].mutate&&za(n[e].mutate,i[e]);this.xf=n,this.Ef=i,this.xf.length=0,this.Ef.length=0,t&&t()},i.Af=function(){var t=this,i=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(i)return i.bind(this.win);var n=0;return function(i){var r=Date.now(),e=Math.max(0,16-(r-n));n=r+e,t.win.setTimeout(i,e)}},t}();function za(t,i){Zt(t);try{void 0!==t(i)&&Qt().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return d(t),!1}return!0}function Ha(t){if(!t.defaultPrevented){var i=t.target;if(i&&"FORM"==i.tagName){(i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"))&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();for(var n=i.elements,r=0;r<n.length;r++)ti(!n[r].name||n[r].name!=vs,"Illegal input name, %s found: %s",vs,n[r]);var e=i.getAttribute("action"),s=i.getAttribute("action-xhr"),u=(i.getAttribute("method")||"GET").toUpperCase();s&&(xs(s,i,"action-xhr"),ti(!Ps(s),"form action-xhr should not be on AMP CDN: %s",i),ks(s)),e&&(xs(e,i,"action"),ti(!Ps(e),"form action should not be on AMP CDN: %s",i),ks(e)),"GET"==u?ti(s||e,"form action-xhr or action attribute is required for method=GET: %s",i):"POST"==u&&(e&&Jt().error("form","action attribute is invalid for method=POST: %s",i),s||(t.preventDefault(),ti(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",i)));var o=i.getAttribute("target");o?ti("_blank"==o||"_top"==o,"form target=%s is invalid can only be _blank or _top: %s",o,i):i.setAttribute("target","_top"),s&&(t.preventDefault(),t.stopImmediatePropagation(),Wn(i).execute(i,"submit",null,i,i,t,3))}}}var Ga="Input",Va=function(){function t(t){this.win=t,this.Cf=this.jf.bind(this),this.Df=this.Uf.bind(this),this.zf=null,this.Lf=null,this.Hf=null,this.Gf="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,Qt().fine(Ga,"touch detected:",this.Gf),this.Vf=!1,this.win.document.addEventListener("keydown",this.Cf),this.win.document.addEventListener("mousedown",this.Df),this.Ff=!0,this.Bf=0,this.qf=new Or,this.$f=new Or,this.Wf=new Or,this.Gf&&(this.Ff=!this.Gf,this.zf=this.Kf.bind(this),Qe(t.document,"mousemove",this.zf))}var i=t.prototype;return i.setupInputModeClasses=function(t){var i=this;this.onTouchDetected((function(n){i.Yf(t,"amp-mode-touch",n)}),!0),this.onMouseDetected((function(n){i.Yf(t,"amp-mode-mouse",n)}),!0),this.onKeyboardStateChanged((function(n){i.Yf(t,"amp-mode-keyboard-active",n)}),!0)},i.isTouchDetected=function(){return this.Gf},i.onTouchDetected=function(t,i){return i&&t(this.isTouchDetected()),this.qf.add(t)},i.isMouseDetected=function(){return this.Ff},i.onMouseDetected=function(t,i){return i&&t(this.isMouseDetected()),this.$f.add(t)},i.isKeyboardActive=function(){return this.Vf},i.onKeyboardStateChanged=function(t,i){return i&&t(this.isKeyboardActive()),this.Wf.add(t)},i.Yf=function(t,i,n){var r=this;t.waitForBodyOpen().then((function(t){pr(r.win).mutate((function(){t.classList.toggle(i,n)}))}))},i.jf=function(t){if(!this.Vf&&!t.defaultPrevented){var i=t.target;i&&("INPUT"==i.tagName||"TEXTAREA"==i.tagName||"SELECT"==i.tagName||"OPTION"==i.tagName||i.hasAttribute("contenteditable"))||(this.Vf=!0,this.Wf.fire(!0),Qt().fine(Ga,"keyboard activated"))}},i.Uf=function(){this.Vf&&(this.Vf=!1,this.Wf.fire(!1),Qt().fine(Ga,"keyboard deactivated"))},i.Kf=function(t){var i=this;if(!t.sourceCapabilities||!t.sourceCapabilities.firesTouchEvents){var n;this.Hf||(this.Hf=this.Jf.bind(this),this.Lf=this.Xf.bind(this));var r=function(t,i,n,r){var e,s=new Promise((function(i){e=Qe(t,"click",i,void 0)}));return s.then(e,e),r&&r(e),s}(this.win.document,0,0,(function(t){n=t}));return fr(this.win).timeoutPromise(300,r).then(this.Lf,(function(){n&&n(),i.Hf()}))}this.Xf()},i.Jf=function(){this.Ff=!0,this.$f.fire(!0),Qt().fine(Ga,"mouse detected")},i.Xf=function(){this.Bf++,this.Bf<=3?Qe(this.win.document,"mousemove",this.zf):Qt().fine(Ga,"mouse detection failed")},t}(),Fa=["<link rel=preload referrerpolicy=origin>"],Ba=18e4,qa=null,$a=function(){function t(t){this.Qf=t.document,this.Zf=t.document.head,this.tl={},this.il={},this.Lo=or(t),this.tl[ms(t.location.href).origin]=!0,this.nl=function(t){if(!qa){var i=t.document.createElement("link"),n=i.relList;if(i.as="invalid-value",!n||!n.supports)return{};qa={preconnect:n.supports("preconnect"),preload:n.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return qa}(t),this.je=fr(t)}var i=t.prototype;return i.url=function(t,i,n){var r=this;t.whenFirstVisible().then((function(){r.pi(t,i,n)}))},i.pi=function(t,i,n){if(this.rl(i)){var r=ms(i).origin,e=Date.now(),s=this.tl[r];if(s&&e<s)n&&(this.tl[r]=e+Ba);else{var u,o=n?Ba:1e4;this.tl[r]=e+o,this.nl.preconnect||((u=this.Qf.createElement("link")).setAttribute("rel","dns-prefetch"),u.setAttribute("href",r),this.Zf.appendChild(u));var h=this.Qf.createElement("link");h.setAttribute("rel","preconnect"),h.setAttribute("href",r),h.setAttribute("referrerpolicy","origin"),this.Zf.appendChild(h),this.je.delay((function(){u&&u.parentNode&&u.parentNode.removeChild(u),h.parentNode&&h.parentNode.removeChild(h)}),1e4),this.sl(t,r)}}},i.preload=function(t,i,n){var r=this;this.rl(i)&&(this.il[i]||(this.il[i]=!0,this.url(t,i,!0),this.nl.preload&&("document"==n&&this.Lo.isSafari()||t.whenFirstVisible().then((function(){r.ol(i)})))))},i.ol=function(t){var i=Ne(this.Qf)(Fa);i.setAttribute("href",t),this.nl.onlyValidAs?i.as="fetch":i.as="",this.Zf.appendChild(i)},i.rl=function(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))},i.sl=function(t,i){if(!this.nl.preconnect&&(this.Lo.isSafari()||this.Lo.isIos())){var n=Date.now();this.tl[i]=n+Ba;var r=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(n-n%Ba),e=new XMLHttpRequest;e.open("HEAD",r,!0),e.withCredentials=!0,e.send()}},t}();function Wa(t){var i;!function(t){En(t,"crypto",ih)}(t),En(t,"batched-xhr",bo),Dh(t),ta(t),ta(i=t),En(i,"vsync",La),function(t){En(t,"xhr",go)}(t),function(t){En(t,"input",Va)}(t),function(t){En(t,"preconnect",$a)}(t)}function Ya(t){Zt(!t.getParent()),function(t,i){(function(t){Pn(t,"url",ia,!0)})(t),function(t){Pn(t,"templates",Qh)}(t),Pn(t,"documentInfo",rh),function(t){Pn(t,"cid",qo)}(t),function(t){Pn(t,"viewer",pa,!0)}(t),function(t){Pn(t,"viewport",ja,!0)}(t),function(t){Pn(t,"hidden-observer",sh)}(t),function(t){Pn(t,"history",lh)}(t),function(t){Pn(t,"resources",zh)}(t),function(t){Pn(t,"owners",Ch)}(t),function(t){Pn(t,"mutator",bh)}(t),function(t){Pn(t,"url-replace",(function(t){return new va(t,new la(t))}))}(t),function(t){Pn(t,"action",Ku,!0)}(t),function(t){Pn(t,"standard-actions",Bh,!0)}(t),function(t){Pn(t,"storage",(function(){var i=mr(t),n=parseInt(i.getParam("storage"),10)?new Kh(i):new Yh(t.win);return new $h(t,i,n).qh()}),!0)}(t),function(t){Pn(t,Ph,Sh,!0)}(t),function(t){t.whenExtensionsKnown().then((function(){t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",Ha,!0)}))}(t),Pn(t,"loadingIndicator",mh)}(t)}function Ka(t){return t.waitForBodyOpen().then((function(){var i,n,r=t.getBody(),e=(i=r,n=function(){return!!r.firstElementChild},new Promise((function(t){Oi(i,n,t)})));return fr(t.win).timeoutPromise(2e3,e).then((function(){return"AMP-STORY"===r.firstElementChild.tagName}),(function(){return!1}))}))}var Ja=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Xa(t){if(null==t)return 0;var i=function(t){for(var i=t;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(i=t);return i}(t),n=i.nodeName;return"IMG"===n||"AMP-IMG"===n?1:"VIDEO"===n||"AMP-VIDEO"===n?2:"AMP-CAROUSEL"===n?8:"AMP-BASE-CAROUSEL"===n?16:"AMP-AD"===n?4:!n.startsWith("AMP-")&&i.textContent?32:0}var Qa=function(){function t(t){var i=this;this.win=t,this.gv=wo(lt(t,16)),this.bv=[],this.yv=t.performance.timeOrigin||t.performance.timing.navigationStart,this.Ki=null,this.ls=null,this.Pi=null,this.wv=null,this.Av=!1,this.xv=!1,this.Ev=A(),this.Pv=void 0,this.Tv=new Ir,this.Ov=0,this.Iv=[],this.Rv=0;var n=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(n.includes("paint")||this.Tv.rejectSignal("fcp",Qt().createExpectedError("First Contentful Paint not supported")),this.Sv=n.includes("layout-shift"),!this.Sv){var r=Qt().createExpectedError("Cumulative Layout Shift not supported");this.Tv.rejectSignal(Zi,r),this.Tv.rejectSignal(nn,r)}this._v=n.includes("first-input"),this._v||this.Tv.rejectSignal("fid",Qt().createExpectedError("First Input Delay not supported")),this.Mv=n.includes("largest-contentful-paint"),this.Mv||this.Tv.rejectSignal("lcp",Qt().createExpectedError("Largest Contentful Paint not supported")),this.kv=n.includes("navigation"),this.Cv=n.includes("event")&&Fe(t,"interaction-to-next-paint"),this.Cv||this.Tv.rejectSignal(en,Qt().createExpectedError("Interaction to next paint not supported")),this.Nv=this.Nv.bind(this),this.addEnabledExperiment("rtv-"+Dt(this.win).rtvVersion),dn(t.document).then((function(){i.tick("dr"),i.flush()})),mn(t.document).then((function(){return i.jv()})),mn(t.document).then((function(){return i.Dv(40)})),this.Lv(),this.Uv=!1,this.zv=mt(t,(function(){i.Hv()}),6e3)}var i=t.prototype;return i.coreServicesAvailable=function(){var t=this,i=this.win.document.documentElement;this.Ki=Kn(i),this.ls=mr(i),this.Pi=ar(i),this.wv=ir(this.Ki),this.xv=this.ls.isEmbedded()&&"1"===this.ls.getParam("csi"),this.Ki.onVisibilityChanged(this.flush.bind(this)),this.Gv();var n=this.ls.whenMessagingReady();return this.Ki.whenFirstVisible().then((function(){t.tick("ofv"),t.flush()})),(this.Mv||this.Sv)&&this.Ki.onVisibilityChanged(this.Nv),n?n.then((function(){t.tickDelta("msr",t.win.performance.now()),t.tick("timeOrigin",void 0,t.yv);var i=t.Ki.getMetaByName("amp-usqp");return i&&i.split(",").forEach((function(i){t.addEnabledExperiment("ssr-"+i)})),t.Vv()})).then((function(){t.Av=!0,t.Fv(),t.flush()})):h()},i.Vv=function(){var t=this;return Ka(Jn(this.win).getSingleDoc()).then((function(i){i&&t.addEnabledExperiment("story")}))},i.jv=function(){this.tick("ol"),this.flush()},i.Lv=function(){var t=this;if("inabox"!==Dt(this.win).runtime){var i=!1,n=!1,r=!1,e=!1,s=function(s){if("first-paint"!=s.name||i)if("first-contentful-paint"!=s.name||n)if("first-input"!==s.entryType||r)"layout-shift"===s.entryType?s.hadRecentInput||(t.Bv(s),t.Rv+=s.value):"largest-contentful-paint"===s.entryType?t.qv(s):"navigation"!=s.entryType||e?"event"==s.entryType&&s.interactionId&&t.Dv(s.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((function(i){return t.tick(i,s[i])})),e=!0);else{var u=s.processingStart-s.startTime;t.tickDelta("fid",u),r=!0}else{var o=s.startTime+s.duration;t.tickDelta("fcp",o),t.tickSinceVisible("fcpv",o),n=!0}else t.tickDelta("fp",s.startTime+s.duration),i=!0},u=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(s),u.push("paint")),this._v&&this.Wv(s,{type:"first-input",buffered:!0}),this.Sv&&this.Wv(s,{type:"layout-shift",buffered:!0}),this.Mv&&this.Wv(s,{type:"largest-contentful-paint",buffered:!0}),this.kv&&this.Wv(s,{type:"navigation",buffered:!0}),this.Cv&&this.Wv(s,{type:"event",durationThreshold:40,buffered:!0}),u.length>0&&this.Wv(s,{entryTypes:u})}},i.Wv=function(t,i){var n=this;try{new this.win.PerformanceObserver((function(i){i.getEntries().forEach(t),n.flush()})).observe(i)}catch(t){Qt().warn("Performance",t)}},i.$v=function(){var t=this.Ki.getVisibilityState();return t===Pr||t===xr},i.Nv=function(){this.$v()&&(this.Yv(),this.Hv())},i.Kv=function(){if(!this.Uv){this.Uv=!0;var t=this.win,i=parseInt(jr(t,t.document.body).getPropertyValue("--google-font-exp"),10);i>=0&&this.addEnabledExperiment("google-font-exp=".concat(i))}},i.Yv=function(){this.Sv&&(this.Kv(),this.Xv())},i.Bv=function(t){if(this.Ki&&!this.$v()){var i=this.Iv;if(i.length>0){var n=i[0],r=i[i.length-1];if(t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3)return void i.push(t);this.Hv()}i.push(t),this.zv()}},i.Hv=function(){for(var t,i=this.Iv,n=this.Tv.get(Zi),r=0,e=0,s=o(i,!0);!(t=s()).done;){var u=t.value;if(u.sources)for(var h,a=o(u.sources,!0);!(h=a()).done;)r|=Xa(h.value.node);e+=u.value}i.length=0,this.Kv(),(null==n||e>n)&&(this.Tv.reset(Zi),this.Tv.reset(tn),this.tickDelta(Zi,e),this.tickDelta(tn,r),this.flush())},i.Dv=function(t){if(this.Ki){var i=this.Tv.get(en);(null==i||t>i)&&(this.tickDelta(en,t-(null!=i?i:0)),this.flush())}},i.Xv=function(){0===this.Ov?(this.tickDelta(nn,this.Rv),this.flush(),this.Ov=1):1===this.Ov&&(this.tickDelta("cls-2",this.Rv),this.flush(),this.Ov=2)},i.qv=function(t){var i=t.element,n=t.startTime,r=Xa(i);this.tickDelta("lcpt",r),this.tickDelta("lcp",n),this.tickSinceVisible("lcpv",n),this.flush()},i.Gv=function(){var t=this,i=!this.Ki.hasBeenVisible(),n=-1;this.Ki.whenFirstVisible().then((function(){n=t.win.performance.now(),t.mark("visible")})),this.Jv().then((function(){if(i){var r=n>-1?t.win.performance.now()-n:0;t.Ki.whenFirstVisible().then((function(){t.tickDelta(rn,r)})),t.Qv(r),t.mark(rn)}else t.tick(rn),t.Qv(t.win.performance.now()-n);t.flush()}))},i.Jv=function(){var t=this;return this.Pi.whenFirstPass().then((function(){var i,n=t.win.document.documentElement,r=gr(n).getSize();return zi(0,0,r.width,r.height),i=n,t.win,function(t,i){var n=Kn(t);return n.signals().whenSignal(Fs).then((function(){var t=ar(n).get().filter((function(t){return!(!t.prerenderAllowed()||Ja.includes(t.element.tagName))})).map((function(t){return t.element}));return 0===t.length?Promise.resolve([]):new Promise((function(i){for(var r=n.win,e=new r.IntersectionObserver((function(t){e.disconnect();for(var n=[],r=0;r<t.length;r++){var s=t[r],u=s.isIntersecting,o=s.target;u&&n.push(o)}i(n)}),{root:Ni(r)?r.document:null,threshold:.01}),s=0;s<Math.min(t.length,100);s++)e.observe(t[s])})).then((function(t){return Promise.all(t.map((function(t){return t.whenLoaded()})))}))}))}(i)}))},i.tick=function(t,i,n){Zt(null==i||null==n);var r,e={"label":t};null!=i?e.delta=r=Math.max(i,0):null!=n?e.value=n:(this.mark(t),r=this.win.performance.now(),e.value=this.yv+r),this.win.dispatchEvent(Ke(this.win,"perf",{label:t,delta:r})),this.Av&&this.xv?this.ls.sendMessage("tick",e):this.Zv(e),this.Tv.signal(t,r)},i.mark=function(t){var i,n;null===(i=(n=this.win.performance).mark)||void 0===i||i.call(n,t)},i.tickDelta=function(t,i){this.tick(t,i)},i.tickSinceVisible=function(t,i){var n,r,e=null==i?this.win.performance.now():i,s=this.yv+e,u=null!==(n=this.ls)&&void 0!==n&&n.isEmbedded()?null===(r=this.Ki)||void 0===r?void 0:r.getFirstVisibleTime():this.yv,o=u?Math.max(s-u,0):0;this.tickDelta(t,o)},i.flush=function(){this.Av&&this.xv&&(null==this.Pv&&(this.Pv=Object.keys(this.Ev).join(",")),this.ls.sendMessage("sendCsi",{"ampexp":this.Pv,"canonicalUrl":this.wv.canonicalUrl,"eventid":this.gv},!0))},i.addEnabledExperiment=function(t){this.Ev[t]=!0,this.Pv=void 0},i.Zv=function(t){this.bv.length>=50&&this.bv.shift(),this.bv.push(t)},i.Fv=function(){var t=this;this.ls&&(this.xv?(this.bv.forEach((function(i){t.ls.sendMessage("tick",i)})),this.bv.length=0):this.bv.length=0)},i.Qv=function(t){this.ls&&this.ls.sendMessage("prerenderComplete",{"value":t},!0)},i.isPerformanceTrackingOn=function(){return this.xv},i.getMetric=function(t){return this.Tv.whenSignal(t)},t}();function Za(t){var i=t.document;if(i.fonts&&i.fonts.values)for(var n,r=i.fonts.values();n=r.next();){var e=n.value;if(!e)return;"loading"==e.status&&"display"in e&&"auto"==e.display&&(e.display="swap")}}var tc=function(){function t(t,i){this.Yl=t,this.Ro=i,this.Nm=!1,this.Dm=0,this.Lm=this.Yp.bind(this),this.Hm=this.Lp.bind(this),this.Gm=this.Zp.bind(this),this.Vm=this.Bm.bind(this),this.Yl.addEventListener("touchstart",this.Lm,!0)}var i=t.prototype;return i.cleanup=function(){this.$m(),this.Yl.removeEventListener("touchstart",this.Lm,!0)},i.Yp=function(t){this.Nm||!t.touches||1!=t.touches.length||this.Ro.getScrollTop()>0||this.Wm(t.touches[0].clientY)},i.Wm=function(t){this.Nm=!0,this.Dm=t,this.Yl.addEventListener("touchmove",this.Hm,!0),this.Yl.addEventListener("touchend",this.Gm,!0),this.Yl.addEventListener("touchcancel",this.Vm,!0)},i.$m=function(){this.Nm=!1,this.Dm=0,this.Yl.removeEventListener("touchmove",this.Hm,!0),this.Yl.removeEventListener("touchend",this.Gm,!0),this.Yl.removeEventListener("touchcancel",this.Vm,!0)},i.Lp=function(t){if(this.Nm){var i=t.touches[0].clientY-this.Dm;i>0&&t.preventDefault(),0!=i&&this.$m()}},i.Zp=function(t){this.$m()},i.Bm=function(t){this.$m()},t}(),ic=["amp-ad","amp-embed","amp-video"],nc="extensions",rc="0.1",ec="latest",sc="__AMP_EXT_LDR",uc=function(){function t(t){this.win=t,this.yf=Jn(t),this.ul={},this.hl=null,this.al=null,this.cl=null}var i=t.prototype;return i.registerExtension=function(t,i,n,r,e){var s,u=n?this.ul[ac(t,ec)]:null,o=this.fl(t,i,null===(s=null==u?void 0:u.auto)||void 0===s||s);if(o.latest=n,!o.loaded){n&&(this.ul[ac(t,ec)]=o);try{var h,a;this.hl=t,this.al=i,this.cl=n,r(e,e._),o.loaded=!0,null===(h=o.resolve)||void 0===h||h.call(o,o.extension),null==u||null===(a=u.resolve)||void 0===a||a.call(u,o.extension)}catch(t){var c,f;throw o.error=t,null===(c=o.reject)||void 0===c||c.call(o,t),null==u||null===(f=u.reject)||void 0===f||f.call(u,t),t}finally{this.hl=null,this.al=null,this.cl=null}}},i.waitForExtension=function(t,i){var n=this.ll(this.fl(t,i));return fr(this.win).timeoutPromise(16e3,n).catch((function(i){if(!i.message.includes("timeout"))throw i;return Jt().error(nc,"Waited over 16s to load extension ".concat(t,".")),n}))},i.preloadExtension=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rc;"amp-embed"==t&&(t="amp-ad");var n=this.fl(t,i);return this.vl(t,i,n),this.ll(n)},i.installExtensionForDoc=function(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rc,e=t.getRootNode(),s=e[sc];return s||(s=e[sc]=A()),s[i]?s[i]:(t.declareExtension(i,r),Pu(t.win,i),s[i]=this.preloadExtension(i,r).then((function(){return n.installExtensionInDoc(t,i,r)})))},i.reloadExtension=function(t,i,n){var r=An(this.win,t,i,n,!1),e=this.ul[ac(t,i)];return e&&(Zt(!e.loaded&&!e.error),e.scriptPresent=!1),r.forEach((function(i){return i.setAttribute("i-amphtml-loaded-new-version",t)})),this.preloadExtension(t,i)},i.importUnwrapped=function(t,i){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rc,e=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=An(t,i,r,e),u=s.length>0?s[0]:null;return u?n=u.__AMP_SCR_LOADED:(n=(u=wn(this.win,i,r)).__AMP_SCR_LOADED=new Promise((function(t,i){u.onload=t,u.onerror=i})),t.document.head.appendChild(u)),n},i.loadElementClass=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rc;return this.preloadExtension(t,i).then((function(i){return Zt(i.elements[t]).implementationClass}))},i.addElement=function(t,i,n){var r=this;this.dl(t).extension.elements[t]={implementationClass:i,css:n},this.addDocFactory((function(e){r.ml(e,t,i,n)}))},i.addTemplate=function(t,i){this.addDocFactory((function(n){!function(t,i,n){In(t,"templates").ua(i,n)}(n,t,i)}))},i.ml=function(t,i,n,r){var e=this;r?rs(t,r,(function(){e.pl(t.win,i,n)}),!1,i):this.pl(t.win,i,n)},i.pl=function(t,i,n){(function(t,i,n){var r=function(t,i){if(i.requiresShadowDom()&&!t.Element.prototype.attachShadow)return nr(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,n);r?r.then((function(){return Au(t,i,n)})):Au(t,i,n)})(t,i,n),En(t,i,hc)},i.addService=function(t,i){this.dl(t).extension.services.push({serviceName:t,serviceClass:i}),this.addDocFactory((function(n){Pn(n,t,i,!0)}))},i.addDocFactory=function(t,i){var n=this.dl(i);if(n.docFactories.push(t),this.hl&&this.yf.isSingleDoc()){var r=this.yf.getAmpDoc(this.win.document),e=this.hl,s=this.al,u=this.cl||!1;(r.declaresExtension(e,s)||u&&r.declaresExtension(e,ec)||n.auto)&&t(r)}},i.preinstallEmbed=function(t,i){var n=this.win,r=t.win;!function(t,i){Ou(t,i,"amp-img"),Ou(t,i,"amp-pixel")}(n,r),oc(r),i.forEach((function(i){var n=i.extensionId,e=i.extensionVersion;t.declareExtension(n,e),ic.includes(n)||Pu(r,n)}))},i.installExtensionsInDoc=function(t,i){var n=this;return Promise.all(i.map((function(i){var r=i.extensionId,e=i.extensionVersion;return n.installExtensionInDoc(t,r,e)})))},i.installExtensionInDoc=function(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rc;return t.declareExtension(i,r),this.ll(this.fl(i,r)).then((function(){n.fl(i,r).docFactories.forEach((function(n){try{n(t)}catch(t){d("Doc factory failed: ",t,i)}}))}))},i.fl=function(t,i,n){var r=ac(t,i),e=this.ul[r];return e||(e={version:i,latest:i==ec,extension:{elements:{},services:[]},auto:n||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.ul[r]=e),e},i.dl=function(t){return this.hl||Qt().error(nc,"unknown extension for ",t),this.fl(this.hl||"_UNKNOWN_",this.al||"")},i.ll=function(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{var i=new a;t.promise=i.promise,t.resolve=i.resolve,t.reject=i.reject}return t.promise},i.vl=function(t,i,n){if(this.bl(t,i,n)){var r=wn(this.win,t,i);this.win.document.head.appendChild(r),n.scriptPresent=!0}},i.bl=function(t,i,n){if(n.loaded||n.error)return!1;if(void 0===n.scriptPresent){var r=An(this.win,t,i,n.latest);n.scriptPresent=r.length>0}return!n.scriptPresent},t}();function oc(t){ic.forEach((function(i){Pu(t,i)}))}function hc(){return{}}function ac(t,i){return"".concat(t,":").concat(i)}var cc,fc="-shadowcsshost",lc=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",vc=(new RegExp("("+fc+lc,"gim"),new RegExp("(-shadowcsscontext"+lc,"gim"),new RegExp(fc,"gim"),new RegExp("-shadowcsscontext","gim"),"html{overflow-x:hidden!important}html.i-amphtml-fie{height:100%!important;width:100%!important}html:not([amp4ads]),html:not([amp4ads]) body{height:auto!important}html:not([amp4ads]) body{margin:0!important}body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y pinch-zoom;touch-action:pan-y pinch-zoom}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}#i-amphtml-wrapper+body{visibility:visible}#i-amphtml-wrapper+body .i-amphtml-lightbox-element,#i-amphtml-wrapper+body[i-amphtml-lightbox]{visibility:hidden}#i-amphtml-wrapper+body[i-amphtml-lightbox] .i-amphtml-lightbox-element{visibility:visible}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}amp-instagram{padding:54px 0px 0px!important;background-color:#fff}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}amp-experiment,amp-live-list>[update]{display:none}amp-list[resizable-children]>.i-amphtml-loading-container.amp-hidden{display:none!important}amp-list [fetch-error],amp-list[load-more] [load-more-button],amp-list[load-more] [load-more-end],amp-list[load-more] [load-more-failed],amp-list[load-more] [load-more-loading]{display:none}amp-list[diffable] div[role=list]{display:block}amp-story-page,amp-story[standalone]{min-height:1px!important;display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#000!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .amp-active>div,amp-story .i-amphtml-loader-background{display:none!important}amp-story-page:not(:first-of-type):not([distance]):not([active]){transform:translateY(1000vh)!important}amp-autocomplete{position:relative!important;display:inline-block!important}amp-autocomplete>input,amp-autocomplete>textarea{padding:0.5rem;border:1px solid rgba(0,0,0,.33)}.i-amphtml-autocomplete-results,amp-autocomplete>input,amp-autocomplete>textarea{font-size:1rem;line-height:1.5rem}[amp-fx^=fly-in]{visibility:hidden}amp-script[nodom],amp-script[sandboxed]{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}\n/*# sourceURL=/css/ampdoc.css*/"),dc="[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;pointer-events:none}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][heights]:not([layout]):not(.i-amphtml-layout-responsive),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic,[layout=intrinsic][width][height]:not(.i-amphtml-layout-intrinsic){display:inline-block;position:relative;max-width:100%}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]:not(.i-amphtml-layout-fixed-height){display:block;position:relative}.i-amphtml-layout-fill,.i-amphtml-layout-fill.i-amphtml-notbuilt,[layout=fill]:not(.i-amphtml-layout-fill),body noscript>*{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}body noscript>*{position:absolute!important;width:100%;height:100%;z-index:2}body noscript{display:inline!important}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}@supports (aspect-ratio:1/1){i-amphtml-sizer.i-amphtml-disable-ar{display:none!important}}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*,[width][height][heights]:not([layout]):not(.i-amphtml-element)>*,[width][height][sizes]:not([layout]):not(.i-amphtml-element)>*{display:none}amp-img:not(.i-amphtml-element)[i-amphtml-ssr]>img.i-amphtml-fill-content{display:block}.i-amphtml-notbuilt:not(.i-amphtml-layout-container),[layout]:not([layout=container]):not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){color:transparent!important;line-height:0!important}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder],[width][height][heights]:not([layout]):not(.i-amphtml-element)>[placeholder],[width][height][sizes]:not([layout]):not(.i-amphtml-element)>[placeholder]{display:block;line-height:normal}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}amp-img[i-amphtml-ssr]:not(.i-amphtml-element)>[placeholder]{z-index:auto}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial;line-height:normal}.i-amphtml-layout-size-defined>[overflow]{position:absolute}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-auto-ads,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-story{visibility:hidden!important}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}@media (min-width:1px){:where(amp-accordion>section)>:first-child{margin:0;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}:where(amp-accordion>section)>:last-child{margin:0}}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion:not(.i-amphtml-built)>section>:last-child{display:none!important}amp-accordion:not(.i-amphtml-built)>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/";Yt=$t,Qt(),Jt(),cc=function(t,i,n){Us(i,n),i&&t&&tt(i.message)&&!(i.message.indexOf(Q)>=0)&&function(t,i){if(Jn(i).isSingleDoc()){var n={"errorName":t.name,"errorMessage":t.message};!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Xn(t).then((function(e){e&&e.triggerEventForTarget(t,i,n,r)}))}(function(t){var i=Jn(t).getSingleDoc().getRootNode();return i.documentElement||i.body||i}(i),"user-error",n,!1)}}(i,t)}.bind(null,self),self.__AMP_REPORT_ERROR=cc;var mc,pc="runtime";function gc(t,i){if(t.__AMP_TAG)return h();t.__AMP_TAG=!0;var n=t.AMP||[];En(t,"extensions",uc);var r=nr(t);Wa(t),oc(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:Pt,thirdPartyFrameHost:Ot,thirdPartyFrameRegex:It,cdn:Tt,cdnProxyRegex:xt,localhostRegex:Mt,errorReporting:St,betaErrorReporting:Rt,localDev:_t,trustedViewerHosts:kt,geoApi:Ct}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=uu,t.AMP.registerElement=r.addElement.bind(r),t.AMP.registerTemplate=r.addTemplate.bind(r),t.AMP.registerServiceForDoc=r.addService.bind(r),t.AMP.isExperimentOn=Fe.bind(null,t),t.AMP.toggleExperiment=Be.bind(null,t),t.AMP.setLogLevel=Ht.bind(null),t.AMP.setTickFunction=function(t,i){};var e=i(t,r);function s(i){!function(t,i,n){"function"==typeof i||"high"==i.p?h().then(n):(n.displayName=i.n,Zs(t.document,n))}(t,i,(function(){e.then((function(){"function"==typeof i?i(t.AMP,t.AMP.Ul):r.registerExtension(i.n,i.ev,i.l,i.f,t.AMP)}))}))}for(var u=0;u<n.length;u++){var o=n[u];if(bc(t,o))n.splice(u--,1);else if("function"==typeof o||"high"==o.p){try{s(o)}catch(t){Qt().error(pc,"Extension failed: ",t,o.n)}n.splice(u--,1)}}!function(t,i){t.document.body&&!function(t){return ns(t).length>0}(t)?fr(t).delay(i,1):i()}(t,(function(){t.AMP.push=function(i){bc(t,i)||s(i)};for(var i=0;i<n.length;i++){var r=n[i];if(!bc(t,r))try{s(r)}catch(t){Qt().error(pc,"Extension failed: ",t,r.n)}}n.length=0})),t.AMP.push||(t.AMP.push=n.push.bind(n)),or(t).isIos()&&kr(t.document.documentElement,"cursor","pointer");var a=nr(t);return Ki(t)&&a.preloadExtension("amp-resize-observer-polyfill"),Fi(t)&&a.preloadExtension("amp-intersection-observer-polyfill"),e}function bc(t,i){return"function"!=typeof i&&(!!i.m||"2404021934000"!=i.v&&(nr(t).reloadExtension(i.n,i.ev,i.l),!0))}function yc(t,i){Zs(self.document,(function(){Wa(self),Ya(t),i.coreServicesAvailable(),function(t){var i=new a,n=i.promise,r=i.resolve;yh=fr(t).timeoutPromise(8e3,n,"TrackImpressionPromise timeout").catch((function(t){Qt().warn("IMPRESSION",t)}));var e=mr(t.document.documentElement),s=e.isTrustedViewer(),u=e.getReferrerUrl().then((function(t){return function(t){var i=ms(t);return"https:"==i.protocol&&Ah.some((function(t){return t.test(i.hostname)}))}(t)}));Promise.all([s,u]).then((function(i){var n=i[0],e=i[1];if(n||e||Fe(t,"alp")){var s=function(t){var i=mr(t.document.documentElement);return i.getParam("replaceUrl")?i.hasCapability("replaceUrl")?i.sendMessageAwaitResponse("getReplaceUrl",void 0).then((function(t){t&&"object"==p(t)?i.replaceUrl(t.replaceUrl||null):Qt().warn("IMPRESSION","get invalid replaceUrl response")}),(function(t){Qt().warn("IMPRESSION","Error request replaceUrl from viewer",t)})):(i.replaceUrl(i.getParam("replaceUrl")||null),h()):h()}(t),u=function(t){var i=Kn(t.document.documentElement),n=mr(i).getParam("click");return n?0!=n.indexOf("https://")?(Jt().warn("IMPRESSION","click fragment param should start with https://. Found ",n),h()):(Gr.getLocation(t).hash&&(Gr.getLocation(t).hash=""),i.whenFirstVisible().then((function(){return function(t,i){return br(t).fetchJson(i,{credentials:"include"}).then((function(t){return 204==t.status?null:t.json()}))}(t,n)})).then((function(i){!function(t,i){if(i){var n=i.location,r=i.tracking_url||n;if(r&&!Ps(r)&&((new Image).src=r),n){if(!t.history.replaceState)return;var e=mr(t.document.documentElement),s=ys(Gr.getLocation(t).href,yt(ms(n).search));t.history.propertyIsEnumerable(null,"",s),e.maybeUpdateFragmentForCct()}}}(t,i)})).catch((function(t){Jt().warn("IMPRESSION","Error on request clickUrl: ",t)}))):h()}(t);Promise.all([s,u]).then((function(){r()}),(function(){}))}else r()}))}(self)})),Zs(self.document,(function(){gc(self,(function(t){return function(t){var i=t.document.documentElement,n=Jn(t).getSingleDoc();t.AMP.ampdoc=n;var r=mr(i);t.AMP.viewer=r,Dt().development&&(t.AMP.toggleRuntime=r.toggleRuntime.bind(r),t.AMP.resources=ar(i));var e=gr(i);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=e.getScrollLeft.bind(e),t.AMP.viewport.getScrollWidth=e.getScrollWidth.bind(e),t.AMP.viewport.getWidth=e.getWidth.bind(e)}(t),(i=t).AMP.installAmpdocServices=Ya.bind(null),i.AMP.combinedCss=vc+dc,Ti(t.document).then((function(){Eu(t.AMP.ampdoc)}));var i}))})),Zs(self.document,(function(){!function(t){!function(t){Iu(t,Mu,Ru)}(t),function(t){Iu(t,Du,ju)}(t),function(t){Iu(t,"amp-layout",_u)}(t)}(self)})),Zs(self.document,(function(){Eu(t),mn(self.document).then((function(){return bu()}))})),Zs(self.document,(function(){(function(t){var i=t.document.documentElement;"0"==mr(i).getParam("p2r")&&or(t).isChrome()&&new tc(t.document,gr(i))})(self),function(t){var i=t.win;Hu(i.document)&&t.isSingleDoc()&&!i.document.documentElement.hasAttribute("data-amp-auto-lightbox-disable")&&tu(t,(function(){Ka(t).then((function(n){n||nr(i).installExtensionForDoc(t,"amp-auto-lightbox")}))}),10)}(t),function(t){var i=t.win;Hu(i.document)&&or(t.win).isStandalone()&&tu(t,(function(){nr(i).installExtensionForDoc(t,"amp-standalone").then((function(){return Vn(t.getBody(),"standalone","amp-standalone")})).then((function(t){return t.initialize()}))}),10)}(t),function(t){var i=t.location.href;if(!i.startsWith("about:")){var n=!1,r=wt(t);Ut(t,r)&&(n="0"!==r.validate),n&&function(t,i){var n=t.createElement("script");if(self.trustedTypes&&self.trustedTypes.createPolicy){var r=self.trustedTypes.createPolicy("validator-integration#loadScript",{createScriptURL:function(t){return"https://cdn.ampproject.org/v0/validator_wasm.js"===t?t:""}});n.src=r.createScriptURL(i)}else n.src=i;Li(t,n);var e=Ze(n).then((function(){t.head.removeChild(n)}),(function(){}));return t.head.appendChild(n),e}(t.document,"".concat(Tt,"/v0/validator_wasm.js")).then((function(){amp.validator.validateUrlAndLog(i,t.document)}))}}(self),function(t){Zt(t.defaultView);var i=t.defaultView;Ti(t).then((function(){return function(t){var i=ns(t).map((function(i){var n=function(t,i){return jn(t,i)}(t,i).then((function(t){return t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((function(){return t})):t}));return fr(t).timeoutPromise(3e3,n,"Render timeout waiting for service ".concat(i," to be ready."))}));return Promise.all(i)}(i)})).catch((function(t){return d(t),[]})).then((function(n){ss=!0,t.body.getBoundingClientRect(),os(t),kn(t).signals().signal(Te),n.length>0&&ar(t.documentElement).schedulePass(1,!0);try{var r=ur(i);r.tick("mbv"),r.flush()}catch(t){}}))}(self.document),function(t){mn(t).then((function(){var i=t.defaultView;if(i){var n=hr(i),r=ir(t.documentElement),e=Kn(t);n.url(e,r.sourceUrl),n.url(e,r.canonicalUrl)}}))}(self.document)}),!0),Zs(self.document,(function(){i.tick("e_is"),ar(t).ampInitComplete(),i.flush()}))}self.location&&(self.location.originalHash=self.location.hash);try{!function(t){t.onerror=Hs,t.addEventListener("unhandledrejection",(function(t){!t.reason||t.reason.message!==Cs&&t.reason.message!==Ns&&"AbortError"!==t.reason.message?Us(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,i,n){En(t,"ampdoc",(function(){return new Wr(t,!0,void 0)}))}(self),mc=Jn(self)}catch(t){throw us(self.document),t}Zs(self.document,(function(){var t=mc.getAmpDoc(self.document);Dh(self),En(self,"performance",Qa);var i=ur(self);(function(t){ln(t.document,(function(){return function(t){var i=1500,n=t.performance;n&&n.timing&&n.timing.navigationStart&&(i=Date.now()-n.timing.navigationStart);var r=Math.max(1,2100-i);t.setTimeout((function(){Za(t);var i=t.document.styleSheets;if(i){for(var n=t.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="'.concat(vi(Tt),'"])')),e=[],s=0;s<n.length;s++){for(var u=n[s],o=!1,h=0;h<i.length;h++)if(i[h].ownerNode==u){o=!0;break}o||e.push(u)}for(var a=function(i){var n=e[i],s=n.media||"all";n.media="print",n.onload=function(){n.media=s,Za(t)},n.setAttribute("i-amphtml-timeout",r),n.parentNode.insertBefore(n,n.nextSibling)},c=0;c<e.length;c++)a(c)}}),r)}(t)}))})(self),i.tick("is"),rs(t,vc+dc,(function(){return yc(t,i)}),!0,"amp-runtime")})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version ".concat("2404021934000"),self.location.href),self.document.documentElement.setAttribute("amp-version","2404021934000")}()}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.js.map
}