1function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}(0,globalThis.parcelRequiredb5f.register)("3dUgA",function(t,r){function n(e){let t=new Uint8Array(e),r="";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function o(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=atob(t.padEnd(t.length+r,"=")),o=new ArrayBuffer(n.length),a=new Uint8Array(o);for(let e=0;e<n.length;e++)a[e]=n.charCodeAt(e);return o}function a(){return window?.PublicKeyCredential!==void 0&&"function"==typeof window.PublicKeyCredential}function i(e){let{id:t}=e;return{...e,id:o(t),transports:e.transports}}function s(e){return"localhost"===e||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}e(t.exports,"bufferToBase64URLString",()=>n),e(t.exports,"base64URLStringToBuffer",()=>o),e(t.exports,"browserSupportsWebAuthn",()=>a),e(t.exports,"startRegistration",()=>h),e(t.exports,"startAuthentication",()=>p);class l extends Error{constructor({message:e,code:t,cause:r,name:n}){super(e,{cause:r}),this.name=n??r.name,this.code=t}}let c=new class{createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}},u=["cross-platform","platform"];function d(e){if(e&&!(0>u.indexOf(e)))return e}async function h(e){var t;let r,u,h,p,w;if(!a())throw Error("WebAuthn is not supported in this browser");let g={publicKey:{...e,challenge:o(e.challenge),user:{...e.user,id:(t=e.user.id,new TextEncoder().encode(t))},excludeCredentials:e.excludeCredentials?.map(i)}};g.signal=c.createNewAbortSignal();try{r=await navigator.credentials.create(g)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new l({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(r.authenticatorSelection?.requireResidentKey===!0)return new l({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});else if(r.authenticatorSelection?.userVerification==="required")return new l({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else if("InvalidStateError"===e.name)return new l({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});else if("NotAllowedError"===e.name)return new l({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("NotSupportedError"===e.name)return new l(0===r.pubKeyCredParams.filter(e=>"public-key"===e.type).length?{message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}:{message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});else if("SecurityError"===e.name){let t=window.location.hostname;if(!s(t))return new l({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rp.id!==t)return new l({message:`The RP ID "${r.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new l({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new l({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ER
1ROR",cause:e});return e}({error:e,options:g})}if(!r)throw Error("Registration was not completed");let{id:E,rawId:f,response:A,type:m}=r;if("function"==typeof A.getTransports&&(h=A.getTransports()),"function"==typeof A.getPublicKeyAlgorithm)try{p=A.getPublicKeyAlgorithm()}catch(e){R("getPublicKeyAlgorithm()",e)}if("function"==typeof A.getPublicKey)try{let e=A.getPublicKey();null!==e&&(w=n(e))}catch(e){R("getPublicKey()",e)}if("function"==typeof A.getAuthenticatorData)try{u=n(A.getAuthenticatorData())}catch(e){R("getAuthenticatorData()",e)}return{id:E,rawId:n(f),response:{attestationObject:n(A.attestationObject),clientDataJSON:n(A.clientDataJSON),transports:h,publicKeyAlgorithm:p,publicKey:w,authenticatorData:u},type:m,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:d(r.authenticatorAttachment)}}function R(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them. 2`,t)}async function p(e,t=!1){var r;let u,h,R;if(!a())throw Error("WebAuthn is not supported in this browser");e.allowCredentials?.length!==0&&(u=e.allowCredentials?.map(i));let w={...e,challenge:o(e.challenge),allowCredentials:u},g={};if(t){let e;if(!await (void 0===(e=window.PublicKeyCredential).isConditionalMediationAvailable?new Promise(e=>e(!1)):e.isConditionalMediationAvailable()))throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');g.mediation="conditional",w.allowCredentials=[]}g.publicKey=w,g.signal=c.createNewAbortSignal();try{h=await navigator.credentials.get(g)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new l({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("NotAllowedError"===e.name)return new l({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("SecurityError"===e.name){let t=window.location.hostname;if(!s(t))return new l({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rpId!==t)return new l({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new l({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:g})}if(!h)throw Error("Authentication was not completed");let{id:E,rawId:f,response:A,type:m}=h;return A.userHandle&&(r=A.userHandle,R=new TextDecoder("utf-8").decode(r)),{id:E,rawId:n(f),response:{authenticatorData:n(A.authenticatorData),clientDataJSON:n(A.clientDataJSON),signature:n(A.signature),userHandle:R},type:m,clientExtensionResults:h.getClientExtensionResults(),authenticatorAttachment:d(h.authenticatorAttachment)}}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.