(self.AMP=self.AMP||[]).push({n:"amp-form",v:"2007102309000",f:(function(AMP,_){ var l,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function ba(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;cc?Object.assign(a.G,a.B):Object.keys(a.B).forEach(function(a){return function(b){var c=a.B[b];if(ua.call(a.G,b)){var d=a.G[b];if("[object Object]"===ma.call(c)&&"[object Object]"===ma.call(d)){e.push({t:d,s:c,d:a.Y+1});return}}a.G[b]=c}}(a)));a={B:a.B,G:a.G,Y:a.Y}}} ;function y(){this.Ha=100;this.ga=this.na=0;this.$=Object.create(null)}y.prototype.has=function(a){return!!this.$[a]};y.prototype.get=function(a){var b=this.$[a];if(b)return b.access=++this.ga,b.payload};y.prototype.put=function(a,b){this.has(a)||this.na++;this.$[a]={payload:b,access:this.ga};if(!(this.na<=this.Ha)){u().warn("lru-cache","Trimming LRU cache");a=this.$;var c=this.ga+1,d;for(d in a){var e=a[d].access;if(ea.length?!1:0==a.lastIndexOf(b,0)};var xa=x({c:!0,v:!0,a:!0,ad:!0,action:!0}),ya,za,Aa=/[?&]amp_js[^&]*/,Ba=/[?&]amp_gsa[^&]*/,Ca=/[?&]amp_r[^&]*/,Da=/[?&]amp_kit[^&]*/,Ea=/[?&]usqp[^&]*/; function z(a){ya||(ya=self.document.createElement("a"),za=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new y));var b=za,c=ya;if(b&&b.has(a))a=b.get(a);else{c.href=a;c.protocol||(c.href=c.href);var d={href:c.href,protocol:c.protocol,host:c.host,hostname:c.hostname,port:"0"==c.port?"":c.port,pathname:c.pathname,search:c.search,hash:c.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;d.origin= c.origin&&"null"!=c.origin?c.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;b&&b.put(a,d);a=d}return a}function Fa(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),f=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return f+=d[1]?"#"+d[1]:""} function Ga(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(Array.isArray(d))for(var e=0;e=d&&(b[c]=Math.random()a.clientHeight})}function lb(a){G(a,function(a){"TEXTAREA"==a.tagName&&a.hasAttribute("autoexpand")&&jb(a)})} function kb(a){var b=H(a);Promise.all([b.measureElement(function(){return a.scrollHeight}),fb(a)]).then(function(c){var d=c[0],e=0;return b.measureMutateElement(a,function(){e=a.scrollHeight},function(){d!=e&&a.removeAttribute("autoexpand")})})} function jb(a){var b=H(a),c=a.ownerDocument.defaultView,d=0,e=0,f=0,h=pb(a);b.measureMutateElement(a,function(){var b=c.getComputedStyle(a)||w();e=a.scrollHeight;var h=parseInt(b.getPropertyValue("max-height"),10);f=isNaN(h)?Infinity:h;d="content-box"==b.getPropertyValue("box-sizing")?-parseInt(b.getPropertyValue("padding-top"),10)+-parseInt(b.getPropertyValue("padding-bottom"),10):parseInt(b.getPropertyValue("border-top-width"),10)+parseInt(b.getPropertyValue("border-bottom-width"),10)},function(){return h.then(function(b){a.classList.toggle("i-amphtml-textarea-max", b+d>f);if("iAmphtmlHasExpanded"in a.dataset||e<=b)a.dataset.iAmphtmlHasExpanded="",Za(a,"height",b+d+"px")})})} function pb(a){var b=a.ownerDocument,c=b.defaultView,d=b.body,e=H(a),f=a.cloneNode(!1);f.classList.add("i-amphtml-textarea-clone");var h=0,g=0,k=!1;return e.measureMutateElement(d,function(){var b=c.getComputedStyle(a)||w(),d=parseInt(b.getPropertyValue("max-height"),10);h=parseInt(b.getPropertyValue("width"),10);k=isNaN(d)||a.scrollHeight=b&&u().expectedError("amp-form","Recursive form submissions are scheduled to be deprecated by 1/1/2020. See https://github.com/ampproject/amphtml/issues/24894.");return a.ta?b-1:b}function Rc(a,b,c){return a.qa.xssiJson(b,a.getXssiPrefix()).then(function(b){return Vc(a,b,c)},function(a){return t().error("amp-form","Failed to parse response JSON: %s",a)}).then(function(){Ec(a,"amp-form-submit-success");Xc(a,b)})} function Vc(a,b,c,d){X(a,"submit-success");return sa(function(){Y(a,b||{}).then(function(){var e=Wc(a,c);Dc(a,"submit-success",void 0===d?b:d,e);a.aa.onSubmitSuccess()})})}function Sc(a,b,c){return(b&&b.response?a.qa.xssiJson(b.response,a.getXssiPrefix()).catch(function(){return null}):Promise.resolve(null)).then(function(d){Ec(a,"amp-form-submit-error");Nc(a,b,d,c);Xc(a,b.response)})} function Nc(a,b,c,d,e){X(a,"submit-error");t().error("amp-form","Form submission failed: %s",b);return sa(function(){Y(a,c).then(function(){var b=Wc(a,d);Dc(a,"submit-error",void 0===e?c:e,b);a.aa.onSubmitError()})})}function Ic(a,b){Ec(a,"amp-form-submit");b&&a.h.submit();X(a,"initial")}function Fc(a,b){var c=a.T.isEnabled();v(!1===c,"[amp-form]: viewerRenderTemplate | %s",b)} function wc(a){var b=a.h.querySelectorAll("input[type=password],input[type=file]");v(0==b.length,"input[type=password] or input[type=file] may only appear in form[method=post]")}function yc(a){void 0===Pb&&(Pb=!!a.j.document.createElement("input").checkValidity);if(Pb){var b=Yc(a.h);if(a.za)return a.W.report(),b}return!0} function Xc(a,b){Fc(a,"Redirects not supported.");if(b&&b.headers){var c=b.headers.get("AMP-Redirect-To");if(c){v(!a.ta,"Redirects not supported in AMP4Email.",a.h);v("_blank"!=a.Oa,"Redirecting to target=_blank using AMP-Redirect-To is currently not supported, use target=_top instead. %s",a.h);try{var d=A(a.h,"url");d.assertAbsoluteHttpOrHttpsUrl(c);d.assertHttpsUrl(c,"AMP-Redirect-To","Url")}catch(e){v(!1,"The `AMP-Redirect-To` header value must be an absolute URL starting with https://. Found %s", c)}F(a.h,"navigation").navigateTo(a.j,c,"AMP-Redirect-To")}}}function Dc(a,b,c,d){c=cb(a.j,"amp-form."+b,x({response:c}));a.P.trigger(a.h,b,c,d)}function Bc(a,b,c){return Promise.race([Promise.all(b),a.Pa.promise(c)])} function X(a,b){var c=a.I;a.h.classList.remove("amp-form-"+c);a.h.classList.add("amp-form-"+b);var d=a.h.querySelector("["+c+"]");if(d){/^[\w-]+$/.test("i-amphtml-rendered");if(void 0!==Ta)var e=Ta;else{try{var f=d.ownerDocument,h=f.createElement("div"),g=f.createElement("div");h.appendChild(g);e=h.querySelector(":scope div")===g}catch(k){e=!1}e=Ta=e}e?d=d.querySelector("> [i-amphtml-rendered]".replace(/^|,/g,"$&:scope ")):(d.classList.add("i-amphtml-scoped"),e="> [i-amphtml-rendered]".replace(/^|,/g, "$&.i-amphtml-scoped "),e=d.querySelectorAll(e),d.classList.remove("i-amphtml-scoped"),d=void 0===e[0]?null:e[0]);d&&d.parentElement&&d.parentElement.removeChild(d)}a.I=b} function Y(a,b){Array.isArray(b)&&(b={},t().warn("amp-form","Unexpected data type: "+b+". Expected non JSON array."));var c=a.h.querySelector("["+a.I+"]"),d=p();if(c){var e="rendered-message-"+a.la;c.setAttribute("role","alert");c.setAttribute("aria-labeledby",e);c.setAttribute("aria-live","assertive");a.A.hasTemplate(c)?d=a.T.applySsrOrCsrTemplate(c,b).then(function(b){b.id=e;b.setAttribute("i-amphtml-rendered","");return a.ua.mutateElement(c,function(){c.appendChild(b);var d=cb(a.j,"amp:dom-update", null,{bubbles:!0});c.dispatchEvent(d)})}):a.ua.mutateElement(c,function(){})}return d} function vc(a){if(!Ha(a.j.location)&&a.h.hasAttribute("data-initialize-from-url")){var b=["SELECT","TEXTAREA"],c="color date datetime-local email hidden month number range search tel text time url week".split(" "),d=["checkbox","radio"],e=function(a,e){if(!a.hasAttribute("data-amp-replace")&&a.hasAttribute("data-allow-initialization")){e=f[e]||"";var g=a.getAttribute("type")||"text",h=a.tagName;"INPUT"===h?c.includes(g.toLocaleLowerCase())?a.value!==e&&(a.value=e):d.includes(g)&&(e=a.value===e,a.checked!== e&&(a.checked=e)):b.includes(h)&&a.value!==e&&(a.value=e)}},f=la(a.j.location.search);Object.keys(f).forEach(function(b){var c=a.h.elements[b];c&&(c.nodeType===Node.ELEMENT_NODE?e(c,b):c.length&&G(c,function(a){return e(a,b)}))})}}l.Va=function(){return this.La};l.Xa=function(){return this.Ta};function Yc(a){var b=a.querySelectorAll("input,select,textarea,fieldset");G(b,function(a){return Z(a)});return Z(a)} function Gc(a){var b=document.createElement("input"),c={},d;for(d in b.validity){c.Z=d;var e=a.querySelectorAll("."+String(c.Z).replace(Ra,Sa));G(e,function(a){return function(b){b.classList.remove(a.Z)}}(c));c={Z:c.Z}}} function Z(a,b){b=void 0===b?!1:b;if(!a.checkValidity)return!0;var c=!1;var d=a.classList.contains("user-valid")?"valid":a.classList.contains("user-invalid")?"invalid":"none";var e=a.checkValidity();"valid"!=d&&e?(a.classList.add("user-valid"),a.classList.remove("user-invalid"),c="invalid"==d):"invalid"==d||e||(a.classList.add("user-invalid"),a.classList.remove("user-valid"),c=!0);if(a.validity)for(var f in a.validity)a.classList.toggle(f,a.validity[f]);if(b&&c){d=Va(a);for(f=0;f