(function(){function e(e,t){try{const n=window.webkit;delete window["webkit"];window.webkit.messageHandlers[e].postMessage(t);window.webkit=n}catch(e){}}function t(e){if(!(e instanceof HTMLInputElement)||e.type==="hidden"){return false}return["text","email","password","search","tel","url","number"].includes(e.type)}function n(){const e=new Uint32Array(4);window.crypto.getRandomValues(e);return e.reduce(((e="",t)=>e+t.toString(16).padStart(8,"0")),"")}class r{registeredApis={};frameId=n();registerApi(e,t){if(this.registeredApis[e]!==undefined){throw new Error(`API ${e} already registered.`)}this.registeredApis[e]=t}getRegisteredApi(e){return this.registeredApis[e]}getFrameId(){if(!this.frameId){this.frameId=n()}return this.frameId}registerFrame(){e("FrameBecameAvailable",{crwFrameId:this.getFrameId()})}}if(!window.__gCrWeb){window.__gCrWeb=new r}const o=window.__gCrWeb;if(!o.fill){o.fill={};o["fill"]=o.fill}const l="0";const i="__gChrome_uniqueID";const s=window.Symbol.for(i);o.fill.ID_SYMBOL=s;const u={didFillUsername:false,didFillPassword:false,didAttemptFill:false};function d(){const e=[];y(e);return o.stringify(e)}function f(e){if(e.querySelector("input[type=submit]")){return}let t=e.querySelectorAll('button[type="submit"]');if(t.length===0){t=e.querySelectorAll("button");if(t.length!==1){return}}for(const e of t){e.addEventListener("touchend",a)}}function a(t){const n=t.currentTarget["form"];const r=o.passwords.getPasswordFormData(n);if(!r){return}e("PasswordFormSubmitButtonClick",r)}function m(e,t){if(t.toString()===l){return null}for(const n of e){if(t.toString()===o.fill.getUniqueID(n)){return n}}return null}function c(e){return o.form.getFormControlElements(e).filter((e=>e.tagName==="INPUT"))}function w(e){const t=e.toString()!==l;const n=t?o.form.getFormElementFromRendererId(e):null;if(!n&&t){return"{}"}const r=t?o.passwords.getPasswordFormData(n):o.passwords.getPasswordFormDataFromUnownedElements();if(!r){return"{}"}return o.stringify(r)}function g(e,t,n){const r=o.form.getFormElementFromRendererId(e.renderer_id);if(r){const o=c(r);return I(o,e,t,n)}const l=o.fill.getUnownedAutofillableFormFieldElements(document.all,[]);if(l.length>0){return I(l,e,t,n)}return u}function F(e,t,n,r){const o=e.toString()!==l;if(p(e,t,n,r,o)){return true}return false}function p(e,t,n,r,l){const i=o.form.getFormElementFromRendererId(e);if(!i&&l){return false}const s=l?c(i):o.fill.getUnownedAutofillableFormFieldElements(document.all,[]);const u=m(s,t);if(!u){return false}if(u.value!==r){o.fill.setInputElementValue(r,u)}const d=m(s,n);if(d&&d.value!==r){o.fill.setInputElementValue(r,d)}return true}function b(e,n){if(n===Number(l)){return null}const r=m(e,n);if(!r){return null}if(!t(r)){return null}return r}function h(e,t){if(t===Number(l)){return null}const n=m(e,t);if(!n){return null}if(n.type!=="password"||n.readOnly||n.disabled){return null}return n}function I(e,t,n,r){const i=Number(t.fields[0].renderer_id);let s;if(i!==Number(l)){s=b(e,i);if(!s){return u}}const d=Number(t.fields[1].renderer_id);let f;if(d!==Number(l)){f=h(e,d);if(!f){return u}}const a=Boolean(!!s&&!s.readOnly&&!s.disabled);const m=a&&o.fill.setInputElementValue(n,s);const c=Boolean(!!f&&o.fill.setInputElementValue(r,f));return{didFillUsername:m,didFillPassword:c,didAttemptFill:true}}function E(e){return e.fields.some((e=>e["autocomplete_attribute"]?.includes("username")||e["autocomplete_attribute"]?.includes("webauthn")||e["form_control_type"]==="password"))}function y(e){const t=document.forms;for(const n of t){const t=_(n);if(t&&E(t)){e.push(t);f(n)}}const n=o.passwords.getPasswordFormDataFromUnownedElements();if(n&&E(n)){e.push(n)}}function A(){const e=[];const t=o.fill.getUnownedAutofillableFormFieldElements(document.all,e);if(t.length===0){return null}const n=new o["common"].JSONSafeObject;const r=o.fill.unownedFormElementsAndFieldSetsToFormData(window,e,t,[],false,n);return r?n:null}function _(e){const t={};const n=o.fill.webFormElementToFormData(window,e,null,t,null);return n?t:null}o.passwords={findPasswordForms:d,getPasswordFormDataAsString:w,fillPasswordForm:g,fillPasswordFormWithGeneratedPassword:F,getPasswordFormDataFromUnownedElements:A,getPasswordFormData:_}})();