; (self.AMP=self.AMP||[]).push({m:0,v:"2310061803000",n:"amp-form",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r;function e(){return r||(r=Promise.resolve(void 0))}var u=function(){var t=this;this.promise=new Promise((function(n,i){t.resolve=n,t.reject=i}))};function o(t){return new Promise((function(n){n(t())}))}var s=function(){function t(t){if(this.f9=new u,this.v9=0,t)for(var n,r=i(t,!0);!(n=r()).done;){var e=n.value;this.add(e)}}var n=t.prototype;return n.add=function(t){var n=this,i=++this.v9;return t.then((function(t){n.v9===i&&n.f9.resolve(t)}),(function(t){n.v9===i&&n.f9.reject(t)})),this.f9.promise},n.then=function(t,n){return this.f9.promise.then(t,n)},t}();function a(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function c(t){return t?Array.prototype.slice.call(t):[]}var f=Array.isArray;function h(t){return(h="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 l=Object.prototype,v=l.hasOwnProperty,d=l.toString;function m(t){return"[object Object]"===d.call(t)}function p(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function b(t,n){return v.call(t,n)}function y(t,n,i,r,e,u,o,s,a,c,f){return t}var w="amp:dom-update",g="amp:form-value-change",x="name";function E(t){return(t.ownerDocument||t).defaultView}var T,O=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function j(t,n,i,r,e){return e||(n?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function A(t,n){return t.replace(/^|,/g,"$&".concat(n," "))}function R(t){return String(t).replace(O,j)}function P(t){y(/^[\w-]+$/.test(t))}function S(t,n){return P(n),n=n.toUpperCase(),function(t,i){for(var r=[],e=t.parentElement;e;e=e.parentElement)e.tagName==n&&r.push(e);return r}(t)}function I(t){var n;null===(n=t.parentElement)||void 0===n||n.removeChild(t)}function k(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function _(t,n){t.insertBefore(n,t.firstChild)}function N(t,n){for(var i=t.length,r=0;r1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function z(t){var n,i=p();if(!t)return i;for(;n=L.exec(t);){var r=$(n[1],n[1]),e=n[2]?$(n[2].replace(/\+/g," "),n[2]):"";i[r]=e}return i}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var G=self.__AMP_LOG;function V(t,n){throw new Error("failed to call initLogConstructor")}function q(t){return G.user||(G.user=B()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(G.user.win,t)?G.userForEmbed||(G.userForEmbed=B()):G.user}function B(t){return V()}function H(){return G.dev||(G.dev=V())}function J(t,n,i,r,e,u,o,s,a,c,f){return t}function Z(t,n,i,r,e,u,o,s,a,c,f){return q().assert(t,n,i,r,e,u,o,s,a,c,f)}function K(t,n){return rt(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function W(t,n){return rt(it(nt(t)),n)}function Y(t,n){var i=it(nt(t));return ot(i,n)?rt(i,n):null}function Q(t,n){return function(t,n){var i=et(t,n);if(i)return i;var r,e,o,s,a=ut(t);return a[n]=(e=(r=new u).promise,o=r.reject,s=r.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:s,reject:o,context:null,ctor:null}),a[n].promise}(it(t),n)}function tt(t,n){return et(it(t),n)}function nt(t){return t.nodeType?(n=E(t),K(n,"ampdoc")).getAmpDoc(t):t;var n}function it(t){var n=nt(t);return n.isSingleDoc()?n.win:n}function rt(t,n){J(ot(t,n));var i=ut(t)[n];return i.obj||(J(i.ctor),J(i.context),i.obj=new i.ctor(i.context),J(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function et(t,n){var i=ut(t)[n];return i?i.promise?i.promise:(rt(t,n),i.promise=Promise.resolve(i.obj)):null}function ut(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function ot(t,n){var i=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!i||!i.ctor)}function st(t,n,i,r){var e=tt(t,n);if(e)return e;var u=nt(t);return u.whenExtensionsKnown().then((function(){var t=u.getExtensionVersion(i);return t?K(u.win,"extensions").waitForExtension(i,t):null})).then((function(i){return i?r?tt(t,n):Q(t,n):null}))}var at,ct=function(t){return nt(t)},ft=function(t){return st(t,"amp-analytics-instrumentation","amp-analytics")},ht=function(t){return W(t,"mutator")},lt=function(t){return Y(t,"url")},vt=function(t){return W(t,"viewport")};function dt(t,n,i,r){var e=t,u=i,o=function(t){try{return u(t)}catch(t){var n,i;throw null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t),t}},s=function(){if(void 0!==at)return at;at=!1;try{var t={get capture(){return at=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return at}(),a=!(null==r||!r.capture);return e.addEventListener(n,o,s?r:a),function(){null==e||e.removeEventListener(n,o,s?r:a),u=null,e=null,o=null}}function mt(t,n,i,r){var e={detail:i};if(Object.assign(e,r),"function"==typeof t.CustomEvent)return new t.CustomEvent(n,e);var u=t.document.createEvent("CustomEvent");return u.initCustomEvent(n,!!e.bubbles,!!e.cancelable,i),u}function pt(t,n,i,r){return dt(t,n,i,r)}function bt(t,n,i,r){var e,u=new Promise((function(r){e=function(t,n,i,r){var e=i,u=dt(t,n,(function(t){try{e(t)}finally{e=null,u()}}),r);return u}(t,n,r,i)}));return u.then(e,e),r&&r(e),u}function yt(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,r)}return i}function wt(t,n){return(wt=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function gt(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&wt(t,n)}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Et(t,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)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 Tt(t){var n=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 i,r=xt(t);if(n){var e=xt(this).constructor;i=Reflect.construct(r,arguments,e)}else i=r.apply(this,arguments);return Et(this,i)}}function Ot(t,n){var i=K(t,"platform");return i.isIos()&&11==i.getMajorVersion()?new St(n):FormData.prototype.entries&&FormData.prototype.delete?new Pt(n):new Rt(n)}var jt,At,Rt=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.d9=t?M(t):p()}var n=t.prototype;return n.append=function(t,n,i){var r=String(t);this.d9[r]=this.d9[r]||[],this.d9[r].push(String(n))},n.delete=function(t){delete this.d9[t]},n.entries=function(){var t=this,n=[];Object.keys(this.d9).forEach((function(i){t.d9[i].forEach((function(t){return n.push([i,t])}))}));var i=0;return{next:function(){return it.clientHeight}))}(t).then((function(n){n&&(q().warn("AMP-FORM",'"textarea[autoexpand]" with initially scrolling content will not autoexpand.\nSee https://github.com/ampproject/amphtml/issues/20839'),t.removeAttribute(Zt))}))})))}return t.install=function(n){var i=n.getRootNode(),r=null,e=function(){var e=i.querySelector("textarea[autoexpand]");if(!e||r)return!e&&r?(r.dispose(),void(r=null)):void 0;r=new t(n)};pt(i,w,e),e()},t.prototype.dispose=function(){this.Zw.forEach((function(t){return t()}))},t}();function Wt(t){var n=ht(t),i=J(t.ownerDocument.defaultView),r=0,e=0,u=0,o=function(t){var n=J(t.ownerDocument),i=J(n.defaultView),r=J(n.body),e=ht(t),u=t.cloneNode(!1);u.classList.add("i-amphtml-textarea-clone");var o=0,s=0,a=!1;return e.measureMutateElement(r,(function(){var n=Jt(i,t),r=parseInt(n.getPropertyValue("max-height"),10);o=parseInt(n.getPropertyValue("width"),10),a=isNaN(r)||t.scrollHeightu);var s="iAmphtmlHasExpanded"in t.dataset,a=/google/i.test(i.navigator.vendor)?3:0;(s||e<=n+a)&&(t.dataset.iAmphtmlHasExpanded="",qt(t,"height",Ht(n+r)))}))}))}var Yt={"INPUT":!0,"SELECT":!0,"TEXTAREA":!0},Qt=function(){function t(t,n){this.w9=t,this.t=n,this.g9=0,this.x9=p(),this.E9=null,this.T9=!1,this.O9=!1,this.gj(),this.j9()}var n=t.prototype;return n.onSubmitting=function(){this.T9=!0,this.A9()},n.onSubmitError=function(){this.T9=!1,this.A9()},n.onSubmitSuccess=function(){this.T9=!1,this.E9=this.R9(),this.P9(),this.A9()},n.R9=function(){return Ot(this.t,this.w9).getFormData()},n.A9=function(){var t=this.g9>0&&!this.T9;if(t!==this.O9){this.w9.classList.toggle("amp-form-dirty",t);var n=mt(this.t,"amp:form-dirtiness-change",{"isDirty":t},{bubbles:!0});this.w9.dispatchEvent(n)}this.O9=t},n.gj=function(){this.w9.addEventListener("input",this.S9.bind(this)),this.w9.addEventListener("reset",this.I9.bind(this)),this.w9.addEventListener(g,this.S9.bind(this))},n.j9=function(){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t.id)return null;var i=this.q9(t,n),r=pn+i;if(!(r in t)){var e="[visible-when-invalid=".concat(i,"]")+"[validation-for=".concat(t.id,"]");t[r]=this.root.querySelector(e)}return t[r]},r.q9=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=t.tagName,r=t.validationMessage;return"TEXTAREA"===i&&"customError"===n&&r===bn?"patternMismatch":n},r.showValidationFor=function(t,n){var i=this.getValidationFor(t,n);if(i){i.textContent.trim()||(i.textContent=t.validationMessage),t.__AMP_VISIBLE_VALIDATION=i;var r=i.getAttribute("id");r||(r=this.V9(),i.setAttribute("id",r)),t.setAttribute("aria-invalid","true"),t.setAttribute("aria-describedby",r),this.mutator.mutateElement(i,(function(){return i.classList.add("visible")}))}},r.hideValidationFor=function(t){var n=this.getVisibleValidationFor(t);n&&(delete t.__AMP_VISIBLE_VALIDATION,t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),this.mutator.mutateElement(n,(function(){return n.classList.remove("visible")})))},r.getVisibleValidationFor=function(t){return t.__AMP_VISIBLE_VALIDATION},r.shouldValidateOnInteraction=function(t){throw Error("Not Implemented")},r.onInteraction=function(t){var n=t.target,i=!!n.checkValidity&&this.shouldValidateOnInteraction(n);this.hideValidationFor(n),i&&!this.checkInputValidity(n)&&this.reportInput(n)},r.onBlur=function(t){this.onInteraction(t)},r.onInput=function(t){this.onInteraction(t)},i}(wn),Tn=function(t){gt(i,t);var n=Tt(i);function i(){return n.apply(this,arguments)}var r=i.prototype;return r.report=function(){this.hideAllValidations();for(var t=this.inputs(),n=0;n2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e||(i=this.ty.maybeFindTemplate(t)),this.assertTrustedViewer(t).then((function(){return r.Is.sendMessageAwaitResponse("viewerRenderTemplate",r.UQ(n,i,e,u))}))},n.applySsrOrCsrTemplate=function(t,n){var i,r=this;return this.isEnabled()?(Z("string"==typeof n.html,"Skipping template rendering due to failed fetch"),i=this.assertTrustedViewer(t).then((function(){return r.ty.findAndSetHtmlForTemplate(t,n.html)}))):i=f(n)?this.ty.findAndRenderTemplateArray(t,n):this.ty.findAndRenderTemplate(t,n),i},n.UQ=function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e={"type":this.PQ},u="successTemplate",o=i&&i[u]?i[u]:n;o&&(e[u]={"type":"amp-mustache","payload":o.innerHTML});var s="errorTemplate",a=i&&i[s]?i[s]:null;a&&(e[s]={"type":"amp-mustache","payload":a.innerHTML}),r&&Object.assign(e,r);var c={"originalRequest":zt(t.xhrUrl,t.fetchOpt),"ampComponent":e};return c},t}();function _n(t,n,i){if(n[i])return n[i];var r=t.querySelector("style[".concat(i,"], link[").concat(i,"]"));return r?(n[i]=r,r):null}function Nn(t,n){for(var i=t.styleSheets,r=0;r=0);)t.push(i),i=r.getPrototypeOf(i);return t}),[]).forEach((function(n){var r=function(r){var u=t.Object.getOwnPropertyDescriptor(n,r);if(!u||r.toUpperCase()==r||r.startsWith("on")||e.hasOwnProperty.call(i,r))return"continue";if("function"==typeof u.value){var o=u.value;i[r]=function(){return o.apply(this.w9,arguments)}}else{var s={};u.get&&(s.get=function(){return u.get.call(this.w9)}),u.set&&(s.set=function(t){return u.set.call(this.w9,t)}),t.Object.defineProperty(i,r,s)}};for(var u in n)r(u)})),n}(n)),n.FormProxy),r=new i(t);"action"in r||function(t,n){var i=t.ownerDocument.defaultView.HTMLFormElement.prototype.cloneNode.call(t,!1),r=function(i){if(i in n||i.toUpperCase()==i||i.startsWith("on"))return"continue";var r=sn[i],e=t[i];if(r)if(r.access==rn){var u;if(e&&e.nodeType){var o=e,s=o.nextSibling,a=o.parentNode;a.removeChild(o);try{u=t[i]}finally{a.insertBefore(o,s)}}else u=e;Object.defineProperty(n,i,{get:function(){return u}})}else if(r.access==nn){var c=r.attr||i;Object.defineProperty(n,i,{get:function(){var i=n.getAttribute(c);if(null==i&&void 0!==r.def)return r.def;if(r.type==un)return"true"===i;if(r.type==on)return null!=i;if(r.type==en){var e=i||"";return lt(t).parse(e).href}return i},set:function(t){r.type==on&&(t=t?"":null),null!=t?n.setAttribute(c,t):n.removeAttribute(c)}})}else J(!1);else Object.defineProperty(n,i,{get:function(){return t[i]},set:function(n){t[i]=n}})};for(var e in i)r(e)}(t,r),t.$p=r}(t)}catch(t){H().error(Un,"form proxy failed to install",t)}!function(t,n){t.__AMP_FORM=n}(t,this),this.Vi=n,this.ip=t.ownerDocument,this.t=this.ip.defaultView,this.Ye=rt(this.t,"timer"),this.w9=t,this.vr=ct(this.w9),this.Q9=null,this.ttt=function(t){return Y(t,"url-replace")}(this.vr),this.ty=W(this.vr,"templates"),this.ci=K(this.t,"xhr"),this.$g=function(t){return Y(t,"action")}(this.vr),this.Hh=ht(this.vr),this.Is=W(this.vr,"viewer"),this.WQ=new kn(Un,this.Is,this.ty),this.sx=(this.w9.getAttribute("method")||"GET").toUpperCase(),this.h=this.w9.getAttribute("target"),this.ntt=this.itt("action-xhr"),this.ett=this.itt("verify-xhr"),this.utt=this.ott("enctype"),this.stt=!this.w9.hasAttribute("novalidate"),this.w9.setAttribute("novalidate",""),this.stt||this.w9.setAttribute("amp-novalidate",""),this.w9.classList.add("i-amphtml-form"),this.Wi=Cn;for(var u,o,s=this.w9.elements,a=0;a2&&void 0!==arguments[2]?arguments[2]:10,r=[],e=[];for(e.push({t:t,s:n,d:0});e.length>0;){var u=e.shift(),o=u.d,s=u.s,a=u.t;if(r.includes(s))throw new Error("Source object has a circular reference.");if(r.push(s),a!==s)if(o>i)Object.assign(a,s);else for(var c=0,f=Object.keys(s);c0,"Expected a . in origin %s",e),n.splice(1,"s"==r?3:2),e+n.join("/")+function(t,n){if(!t||"?"==t)return"";var i=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(i,"").replace(/^[?&]/,"");return r?"?"+r:""}(t.search)+(t.hash||"")}(t)).origin}(t.location.href))}(t,i)),i),n.WQ.ssr(n.w9,e,n.Htt())})).then((function(i){return n.Jtt(i,t)}),(function(i){var r={};return i&&i.message&&(r.error=i.message),n.Xtt(i,r,t)}))},n.Htt=function(){var t,n,i=this.w9.querySelector("[submit-success]");i&&(t=this.ty.maybeFindTemplate(i));var r=this.w9.querySelector("[submit-error]");return r&&(n=this.ty.maybeFindTemplate(r)),{successTemplate:t,errorTemplate:n}},n.Jtt=function(t,n){var i=t.init,r=function(t,n){try{return function(t){return JSON.parse(t)}(t)}catch(t){return null==n||n(t),null}}(t.body,(function(t){return q().error(Un,"Failed to parse response JSON: %s",t)}));if(i){var e=i.status;if(e>=300)return this.Xtt(e,t,n,r)}return this.Ztt(t,n,r)},n.Gtt=function(t){var n=this;this.Rtt("amp-form-submit");var i=this.wtt();this.jtt(i).then((function(){n.$g.trigger(n.w9,tn,null,t)}))},n.Utt=function(t){for(var n=[],i=0;i2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];ft(t).then((function(e){e&&e.triggerEventForTarget(t,n,i,r)}))}(this.w9,t,n)},n.wtt=function(){return M(this.w9)},n.Hx=function(t){var n=this.Wi;this.w9.classList.remove("amp-form-".concat(n)),this.w9.classList.add("amp-form-".concat(t)),this.Ytt(n),this.Wi=t},n.jtt=function(t){var n=this;f(t)&&(t={},q().warn(Un,"Unexpected data type: ".concat(t,". Expected non JSON array.")));var i=this.w9.querySelector("[".concat(this.Wi,"]")),r=e();if(i){var u="rendered-message-".concat(this.Vi);i.setAttribute("role","alert"),i.setAttribute("aria-labeledby",u),i.setAttribute("aria-live","assertive"),this.ty.hasTemplate(i)?r=this.WQ.applySsrOrCsrTemplate(J(i),t).then((function(t){var r;return f(t)?1===t.length?r=t[0]:(r=document.createElement("div"),t.forEach((function(t){return r.appendChild(t)}))):r=t,r.id=u,r.setAttribute("i-amphtml-rendered",""),n.Hh.mutateElement(i,(function(){i.appendChild(r);var t=mt(n.t,w,null,{bubbles:!0});i.dispatchEvent(t)}))})):this.Hh.mutateElement(i,(function(){}))}return r},n.Ytt=function(t){var n=this.w9.querySelector("[".concat(t,"]"));if(n){var i,r=(i=n,P("i-amphtml-rendered"),function(t,n){if(void 0!==T?T:T=function(t){try{var n=t.ownerDocument,i=n.createElement("div"),r=n.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(t){return!1}}(t))return t.querySelector(A(n,":scope"));var i=function(t,n){var i=t.classList,r="i-amphtml-scoped";i.add(r);var e=A(n,".".concat(r)),u=t.querySelectorAll(e);return i.remove(r),u}(t,n)[0];return void 0===i?null:i}(i,"> [".concat("i-amphtml-rendered","]")));r&&I(r)}},n.vtt=function(){var t=this;if(!Dt(this.t.location)&&this.w9.hasAttribute("data-initialize-from-url")){var n=["SELECT","TEXTAREA"],i=["color","date","datetime-local","email","hidden","month","number","range","search","tel","text","time","url","week"],r=["checkbox","radio"],e=function(t,e){if(!t.hasAttribute("data-amp-replace")&&t.hasAttribute("data-allow-initialization")){var o=u[e]||"",s=t.getAttribute("type")||"text",a=t.tagName;if("INPUT"===a){if(i.includes(s.toLocaleLowerCase()))t.value!==o&&(t.value=o);else if(r.includes(s)){var c=t.value===o;t.checked!==c&&(t.checked=c)}}else n.includes(a)&&t.value!==o&&(t.value=o)}},u=z(this.t.location.search);Object.keys(u).forEach((function(n){var i=t.w9.elements[n];i&&(i.nodeType===Node.ELEMENT_NODE?e(i,n):i.length&&i.forEach((function(t){return e(t,n)})))}))}},n.renderTemplatePromiseForTesting=function(){return this.mtt},n.xhrSubmitPromiseForTesting=function(){return this.dtt},t}();function Gn(t){return t.classList.contains("user-valid")?Dn:t.classList.contains("user-invalid")?Ln:"none"}function Vn(t){if(t.validity)for(var n in t.validity)t.classList.toggle(n,t.validity[n])}function qn(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t.checkValidity)return!0;var i=!1,r=Gn(t),e=t.checkValidity();if(r!=Dn&&e?(t.classList.add("user-valid"),t.classList.remove("user-invalid"),i=r==Ln):r==Ln||e||(t.classList.add("user-invalid"),t.classList.remove("user-valid"),i=!0),Vn(t),n&&i){for(var u=S(t,"fieldset"),o=0;o2&&void 0!==arguments[2]?arguments[2]:null;if(i){var r=i.nextSibling;t.insertBefore(n,r)}else _(t,n)}(t,s,_n(t,e,"amp-runtime")),u&&(e[u]=s),s}(u,function(t,n){var i=t.__AMP_CSS_TR;return i?i(n):n}(u,'form.amp-form-submit-error [submit-error],form.amp-form-submit-success [submit-success],form.amp-form-submitting [submitting]{display:block}textarea[autoexpand]:not(.i-amphtml-textarea-max){overflow:hidden!important}.i-amphtml-textarea-clone{visibility:hidden;position:absolute;top:-9999px;left:-9999px;height:0!important}.i-amphtml-validation-bubble{transform:translate(-50%,-100%);background-color:#fff;box-shadow:0 5px 15px 0 rgba(0,0,0,.5);max-width:200px;position:absolute;display:block;box-sizing:border-box;padding:10px;border-radius:5px}.i-amphtml-validation-bubble:after{content:" ";position:absolute;bottom:-8px;left:30px;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff}[visible-when-invalid]{color:red}\n/*# sourceURL=/extensions/amp-form/0.1/amp-form.css*/'),0,"amp-form");if(i){var s=t.getRootNode();if(Nn(s,o))return i(o),o;var a=setInterval((function(){Nn(s,o)&&(clearInterval(a),i(o))}),4)}}(t,0,n.resolve),n.promise},n.nnt=function(t){var n=this;return t.whenReady().then((function(){var i=t.getRootNode();n.int(i.querySelectorAll("form")),Kt.install(t),n.rnt(i),n.ent(i)}))},n.int=function(t){t&&t.forEach((function(t,n){U(t)||new zn(t,"amp-form-".concat(n))}))},n.rnt=function(t){var n=this;t.addEventListener(w,(function(){n.int(t.querySelectorAll("form"))}))},n.ent=function(t){t.addEventListener("keydown",(function(t){if(!t.defaultPrevented&&"Enter"==t.key&&(t.ctrlKey||t.metaKey)&&"TEXTAREA"===t.target.tagName){var n=t.target.form,i=n?U(n):null;i&&(i.Ott(t),t.preventDefault())}}))},t}();t.registerServiceForDoc("form-submit-service",cn),t.registerServiceForDoc(Un,Hn)}(); /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}}); //# sourceMappingURL=amp-form-0.1.js.map