@toa.io/extensions.exposition 1.0.0-alpha.294 → 1.0.0-alpha.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/exposition.octets/package.json +10 -0
- package/components/identity.grants/operations/authorize.js +3 -4
- package/components/identity.grants/operations/exchange.js +5 -5
- package/components/identity.grants/source/authorize.ts +2 -3
- package/components/identity.grants/source/exchange.ts +4 -4
- package/components/identity.grants/types/index.d.ts +1 -0
- package/components/identity.tokens/manifest.toa.yaml +13 -0
- package/components/identity.tokens/operations/authenticate.js +7 -2
- package/components/identity.tokens/operations/decrypt.js +4 -2
- package/components/identity.tokens/operations/encrypt.js +3 -1
- package/components/identity.tokens/operations/issue.js +3 -2
- package/components/identity.tokens/source/authenticate.ts +7 -1
- package/components/identity.tokens/source/decrypt.ts +3 -1
- package/components/identity.tokens/source/encrypt.ts +5 -0
- package/components/identity.tokens/source/issue.ts +3 -1
- package/components/identity.tokens/types/index.d.ts +1 -0
- package/components/identity.tokens/types/toa.d.ts +6 -0
- package/package.json +3 -3
- package/transpiled/directives/auth/Authorization.d.ts +6 -0
- package/transpiled/directives/auth/Authorization.js +33 -0
- package/transpiled/directives/auth/Authorization.js.map +1 -1
- package/transpiled/directives/auth/types.d.ts +5 -0
- package/ui/dist/_app/immutable/assets/0.B_Y9l5mn.css +2 -0
- package/ui/dist/_app/immutable/chunks/{CEe-wL8u.js → CKJ7pc1A.js} +1 -1
- package/ui/dist/_app/immutable/chunks/CRv_pI_-.js +86 -0
- package/ui/dist/_app/immutable/chunks/{CV9soJ0B.js → CWpix1oL.js} +2 -2
- package/ui/dist/_app/immutable/chunks/kR7jeE34.js +1 -0
- package/ui/dist/_app/immutable/entry/{app.BnWlwGtD.js → app.Jm8SYQeh.js} +2 -2
- package/ui/dist/_app/immutable/entry/start.BbmowWbG.js +1 -0
- package/ui/dist/_app/immutable/nodes/0.BkSdL_jj.js +1 -0
- package/ui/dist/_app/immutable/nodes/{1.DtKiO-Oq.js → 1.C9bXTk8x.js} +1 -1
- package/ui/dist/_app/immutable/nodes/2.DB2l8rCx.js +8 -0
- package/ui/dist/_app/immutable/nodes/{3.eHKOcSZr.js → 3.DNsnHsbB.js} +1 -1
- package/ui/dist/_app/immutable/nodes/{4.CXvilufZ.js → 4.csaDeXmb.js} +1 -1
- package/ui/dist/_app/immutable/nodes/{5.CTa_nmvd.js → 5.B8TsA9DW.js} +1 -1
- package/ui/dist/_app/version.json +1 -1
- package/ui/dist/index.html +11 -11
- package/ui/dist/_app/immutable/assets/0.Cu0AnR_8.css +0 -2
- package/ui/dist/_app/immutable/chunks/Im4_dtgC.js +0 -1
- package/ui/dist/_app/immutable/chunks/UkDaEvqJ.js +0 -86
- package/ui/dist/_app/immutable/entry/start.Cm--Gj58.js +0 -1
- package/ui/dist/_app/immutable/nodes/0.z7Qg-vYh.js +0 -1
- package/ui/dist/_app/immutable/nodes/2.B8zoEhQx.js +0 -8
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,r as t}from"../chunks/Im4_dtgC.js";export{e as load_css,t as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,Ct as t,J as n,K as r,M as i,Nt as a,St as o,V as s,Y as c,Z as l,dt as u,et as d,f,ft as p,j as m,st as h,v as g,x as _}from"../chunks/BVDJTrf4.js";import{t as v}from"../chunks/Im4_dtgC.js";import"../chunks/xihTtKlq.js";import{B as y,F as b,L as x,O as S,_ as C,a as w,b as T,r as E,t as D,y as O}from"../chunks/CV9soJ0B.js";import{t as k}from"../chunks/CEe-wL8u.js";function A(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function j(){let e=S(`challenge`);return e===null?null:A(e)}function M(){x.events.on(`challenge`,e=>T.set(e)),x.events.on(`error`,e=>{e.code===401&&T.set(null)}),T.subscribe(e=>x.authenticate(e));let e=j();e!==null&&T.set(e),C()}function N(){let e;O.subscribe(t=>{if(e===void 0){e=t;return}t!==e&&(e=t,P())})}async function P(){let e=await w();e instanceof Error||E.set(e)}var F=a({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>I});M(),N();var I=`always`,L=i(`<meta name="description"/>`);function R(i,a){t(a,!0);let x=()=>p(D,`$dict`,S),[S,C]=u(),w=h(()=>k.data.meta?.title??y.title),T=h(()=>k.data.meta?.description??y.description);v(b),c(()=>{document.dir=x().dir});var E=m();g(`12qhfyh`,t=>{var i=L();n(()=>f(i,`content`,s(T))),r(()=>{l.title=s(w)??``}),e(t,i)});var O=d(E);_(O,()=>a.children),e(i,E),o(),C()}export{R as component,F as universal};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,At as n,C as r,Ct as i,E as a,F as o,J as s,M as c,Mt as l,N as u,O as d,Ot as f,P as p,Q as m,R as h,S as g,St as _,V as v,Y as y,a as b,b as x,c as S,d as C,dt as w,et as T,f as E,ft as D,h as O,ht as ee,i as k,it as A,j,kt as M,m as N,n as P,nt as F,o as I,ot as L,pt as te,st as R,tt as z,ut as ne,w as re,x as B,z as ie}from"../chunks/BVDJTrf4.js";import{n as ae}from"../chunks/Im4_dtgC.js";import"../chunks/xihTtKlq.js";import{A as oe,B as se,C as ce,E as V,H as le,R as ue,S as de,V as fe,c as H,d as pe,f as me,g as he,h as ge,k as _e,l as ve,m as ye,n as be,o as xe,p as Se,r as Ce,s as we,t as Te,u as Ee,v as De,x as Oe,y as ke,z as Ae}from"../chunks/CV9soJ0B.js";import{$ as U,A as je,B as Me,C as Ne,D as Pe,E as Fe,F as Ie,G as Le,H as Re,I as ze,J as Be,K as Ve,L as He,M as W,N as Ue,O as We,P as Ge,Q as G,R as Ke,S as qe,T as Je,U as K,V as Ye,W as Xe,X as q,Y as Ze,Z as Qe,_ as J,b as $e,c as et,d as tt,et as nt,f as rt,g as it,h as at,j as ot,k as st,l as ct,m as lt,o as ut,p as dt,q as ft,s as pt,t as mt,v as ht,x as gt,y as _t,z as Y}from"../chunks/UkDaEvqJ.js";function vt(e){return async t=>{t.preventDefault();let n=t.target.querySelectorAll(`fieldset`),r=[];for(let e of n)e.disabled=!0,r.push(e);await e(t);for(let e of r)e.disabled=!1}}var yt=new Set([`$$slots`,`$$events`,`$$legacy`]);function bt(e,t){let n=b(t,yt),r=[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`}],[`path`,{d:`M9 4h6`}]];V(e,I({name:`arrow-big-down-dash`},()=>n,{get iconNode(){return r}}))}var xt=new Set([`$$slots`,`$$events`,`$$legacy`]);function St(e,t){let n=b(t,xt),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];V(e,I({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function wt(e,t){let n=b(t,Ct),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];V(e,I({name:`log-out`},()=>n,{get iconNode(){return r}}))}var Tt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Et(e,t){let n=b(t,Tt),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];V(e,I({name:`search`},()=>n,{get iconNode(){return r}}))}var Dt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ot(e,t){let n=b(t,Dt),r=[[`path`,{d:`M20 11v6`}],[`path`,{d:`M20 13h2`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`}],[`circle`,{cx:`10`,cy:`7`,r:`4`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]];V(e,I({name:`user-key`},()=>n,{get iconNode(){return r}}))}var kt=new Set([`$$slots`,`$$events`,`$$legacy`]);function At(e,t){let n=b(t,kt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];V(e,I({name:`waypoints`},()=>n,{get iconNode(){return r}}))}var jt={"en-US":{auth:{signupTitle:`One-tap sign-up`,passwordTitle:`Hop in with password`,passwordDescription:`Create an account or sign in`,passkey:`Passkeys`,email:`Email`,alreadyHaveAccount:`Already have an account?`,betterSecurity:`Better security`,passkeysNotSupported:`Passkeys not supported`,passkeysWarning:`Your browser does not respect your privacy and security.`,learnMore:`Learn more`,passwordBlank:`Leave password blank <nobr>to receive</nobr> <nobr>a one-time</nobr> passcode.`,otpInstructions:`Enter the code sent to your email. It expires in 5 minutes.`,continueWith:e=>`Continue with ${e}`,passkeysDescription:`Passkeys are safer than passwords, easier to use, and can’t be stolen.`,yourName:`Your name`,password:`Password`,refresh:{description:e=>`${e?e+`, for`:`For`} security reasons, your credentials have expired. Please log in again to continue.`,title:`Welcome back`,continue:`Continue`},signout:`Sign out`,login:`Log In`,signin:`Sign In`,copyId:`Copy account ID`},credentials:{connect:`Connect`,email:{title:`Email`,description:`Connect your email address`},google:{title:`Google`,description:`Connect your Google account`},apple:{title:`Apple`,description:`Connect your Apple ID`},passkeys:{title:`Passkeys`,tagline:`Sign in faster with a passkey`,create:`Create`,manage:`Manage`,collapse:`Collapse`,add:`Enter passkey name`,delete:`Hold to delete`,unknown:`Unknown`,count:e=>{let t={one:`{n} passkey`,other:`{n} passkeys`},n=`en-US`,r=new Intl.PluralRules(n).select(e),i=t;return(i[r]??i.other).replace(/{n}/g,new Intl.NumberFormat(n).format(e))},meta:(e,t)=>`Added ${e} · Used ${t}`,duplicate:`This device already has a passkey for your account`,failed:`Could not create the passkey. Please try again.`},transfer:{action:`Sign in on another device`,title:`Scan to sign in`,description:`Use your other device to scan this code and sign in.`,done:`Done`}}}},X=ee(be,e=>jt[e]),Mt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nt=c(`<div><!></div>`);function Pt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Mt);var c=Nt();C(c,e=>({"data-slot":`card-content`,class:e,...s}),[()=>U(`px-(--card-spacing)`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Ft=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),It=c(`<p><!></p>`);function Lt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Ft);var c=It();C(c,e=>({"data-slot":`card-description`,class:e,...s}),[()=>U(`text-sm text-muted-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Rt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),zt=c(`<div><!></div>`);function Bt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Rt);var c=zt();C(c,e=>({"data-slot":`card-footer`,class:e,...s}),[()=>U(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Vt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ht=c(`<div><!></div>`);function Ut(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Vt);var c=Ht();C(c,e=>({"data-slot":`card-header`,class:e,...s}),[()=>U(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Wt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Gt=c(`<div><!></div>`);function Kt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Wt);var c=Gt();C(c,e=>({"data-slot":`card-title`,class:e,...s}),[()=>U(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var qt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Jt=c(`<div><!></div>`);function Yt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`size`,3,`default`),c=b(a,qt);var l=Jt();C(l,e=>({"data-slot":`card`,"data-size":s(),class:e,...c}),[()=>U(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var Xt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Zt(e,t){let n=b(t,Xt),r=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]];V(e,I({name:`arrow-right`},()=>n,{get iconNode(){return r}}))}var Qt=c(`<div><!></div>`);function $t(n,r){i(r,!0);let a=L(!1);async function o(){A(a,!0),await new Promise(e=>setTimeout(e,500)),A(a,!1)}var c={shake:o},l=Qt(),u=e(l);return B(u,()=>r.children),M(l),s(()=>N(l,1,O([r.class,v(a)&&`shake`]),`svelte-alh7mr`)),t(n,l),_(c)}function Z(e){let t=L(F(e));return{[Me]:!0,[Ve]:!0,get current(){return v(t)},set current(e){A(t,e,!0)}}}Z.from=Re,Z.with=K,Z.flatten=Ye,Z.readonly=Be,Z.isBox=Xe,Z.isWritableBox=Le;function en(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var tn=[$e,Pe,Je],nn=[Ne,Fe,`End`];[...tn,...nn];function rn(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?gt:qe,vertical:$e}[t]}function an(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?qe:gt,vertical:Ne}[t]}function on(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:rn(e,t),prevKey:an(e,t)}}var sn=class{#e;#t=Z(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=on(en(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Je]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?qe:$e,t=s===`ArrowUp`?gt:Ne;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);!t||!_t(t)||t.focus()}},cn=18,ln=40,un=`${ln}px`,dn=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function fn({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=L(!1),o=L(!1),s=L(!1);function c(){let e=n.current;return e!==`none`&&e===`increase-width`&&v(a)&&v(o)}function l(){let r=e.current,o=t.current;if(!r||!o||v(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-cn,f=u;(i.querySelectorAll(dn).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(A(a,!0),A(s,!0))}return y(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Ge(t).innerWidth-t.getBoundingClientRect().right;A(o,e>=ln)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),y(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(l,0),o=setTimeout(l,2e3),c=setTimeout(l,5e3),u=setTimeout(()=>{A(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(u)}}),{get hasPwmBadge(){return v(a)},get willPushPwmBadge(){return c()},PWM_BADGE_SPACE_WIDTH:un}}var pn=`^\\d+$`,mn=ot({component:`pin-input`,parts:[`root`,`cell`]}),hn=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],gn=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=L(!1);#t=ft(!1);#n=L(null);#r=L(null);#i=new Ie(()=>this.opts.value.current??``);#a=R(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=L(F({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=W(this.opts.ref),this.inputAttachment=W(this.opts.inputRef),this.domContext=new Ue(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=fn({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),P(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),v(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=ie(this.domContext.getDocument(),`selectionchange`,this.#m,{capture:!0});this.#m(),this.domContext.getActiveElement()===e&&(this.#t.current=!0),this.domContext.getElementById(`pin-input-style`)||this.#p();let r=()=>{t&&t.style.setProperty(`--bits-pin-input-root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{n(),i.disconnect()}}),ze([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{vn(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection??`none`;t!==null&&n!==null&&(A(this.#n,t,!0),A(this.#r,n,!0),v(this.#o).prev=[t,n,r])},this.domContext)}),y(()=>{let e=this.opts.value.current,t=this.#i.current,n=this.opts.maxLength.current,r=this.opts.onComplete.current;t!==void 0&&e!==t&&t.length<n&&e.length===n&&r(e)})}onkeydown=e=>{let t=e.key;hn.includes(t)||e.ctrlKey||e.metaKey||t&&v(this.#a)&&!v(this.#a).test(t)&&e.preventDefault()};#l=R(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=R(()=>({id:this.opts.id.current,[mn.root]:``,style:v(this.#l),...this.attachment}));get rootProps(){return v(this.#u)}set rootProps(e){A(this.#u,e)}#d=R(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return v(this.#d)}set inputWrapperProps(e){A(this.#d,e)}#f=R(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;yn(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),yn(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),yn(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),yn(t.sheet,`@supports (-webkit-touch-callout: none) { [data-pin-input-input] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),yn(t.sheet,`[data-pin-input-input] + * { pointer-events: all !important; }`)}}#m=()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;if(this.domContext.getActiveElement()!==e){A(this.#n,null),A(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=v(this.#o).prev,c=-1,l=-1,u;if(o.length!==0&&n!==null&&r!==null){let e=n===r,t=n===o.length&&o.length<a;if(e&&!t){let e=n;if(e===0)c=0,l=1,u=`forward`;else if(e===a)c=e-1,l=e,u=`backward`;else if(a>1&&o.length>1){let t=0;if(s[0]!==null&&s[1]!==null){u=e<s[1]?`backward`:`forward`;let n=s[0]===s[1]&&s[0]<a;u===`backward`&&!n&&(t=-1)}c=t+e,l=t+e+1}}c!==-1&&l!==-1&&c!==l&&this.opts.inputRef.current?.setSelectionRange(c,l,u)}let d=c===-1?n:c,f=l===-1?r:l,p=u??i;A(this.#n,d,!0),A(this.#r,f,!0),v(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&v(this.#a)&&!v(this.#a).test(t)){e.preventDefault();return}typeof this.#i.current==`string`&&t.length<this.#i.current.length&&this.domContext.getDocument().dispatchEvent(new Event(`selectionchange`)),this.opts.value.current=t};onfocus=e=>{let t=this.opts.inputRef.current;if(t){let e=Math.min(t.value.length,this.opts.maxLength.current-1),n=t.value.length;t.setSelectionRange(e,n),A(this.#n,e,!0),A(this.#r,n,!0)}this.#t.current=!0};onpaste=e=>{let t=this.opts.inputRef.current;if(!t)return;let n=e=>{let n=t.selectionStart===null?void 0:t.selectionStart,r=t.selectionEnd===null?void 0:t.selectionEnd,i=n!==r,a=this.opts.value.current;return(i?a.slice(0,n)+e+a.slice(r):a.slice(0,n)+e+a.slice(n)).slice(0,this.opts.maxLength.current)},r=e=>e.length>0&&v(this.#a)&&!v(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){r(n(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let i=e.clipboardData?.getData(`text/plain`)??``,a=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(i):i;e.preventDefault();let o=n(a);if(r(o))return;t.value=o,this.opts.value.current=o;let s=Math.min(o.length,this.opts.maxLength.current-1),c=o.length;t.setSelectionRange(s,c),A(this.#n,s,!0),A(this.#r,c,!0)};onmouseover=e=>{A(this.#e,!0)};onmouseleave=e=>{A(this.#e,!1)};onblur=e=>{if(v(this.#o).willSyntheticBlur){v(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=R(()=>({id:this.opts.inputId.current,style:v(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":v(this.#n),"data-pin-input-input-mse":v(this.#r),inputmode:this.opts.inputmode.current,pattern:v(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:je(this.opts.disabled.current),onpaste:this.onpaste,oninput:this.oninput,onkeydown:this.onkeydown,onmouseover:this.onmouseover,onmouseleave:this.onmouseleave,onfocus:this.onfocus,onblur:this.onblur,...this.inputAttachment}));get inputProps(){return v(this.#h)}set inputProps(e){A(this.#h,e)}#g=R(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&v(this.#n)!==null&&v(this.#r)!==null&&(v(this.#n)===v(this.#r)&&t===v(this.#n)||t>=v(this.#n)&&t<v(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=R(()=>({cells:v(this.#g),isFocused:this.#t.current,isHovering:v(this.#e)}));get snippetProps(){return v(this.#_)}set snippetProps(e){A(this.#_,e)}},_n=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=W(this.opts.ref)}#e=R(()=>({id:this.opts.id.current,[mn.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return v(this.#e)}set props(e){A(this.#e,e)}};function vn(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function yn(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var bn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),xn=c(`<div><!> <div><input/></div></div>`);function Sn(r,a){let o=p();i(a,!0);let s=k(a,`id`,19,()=>J(o)),c=k(a,`inputId`,19,()=>`${J(o)}-input`),l=k(a,`ref`,15,null),u=k(a,`inputRef`,15,null),d=k(a,`maxlength`,3,6),f=k(a,`textalign`,3,`left`),m=k(a,`inputmode`,3,`numeric`),h=k(a,`onComplete`,3,ht),g=k(a,`pushPasswordManagerStrategy`,3,`increase-width`),y=k(a,`class`,3,``),x=k(a,`autocomplete`,3,`one-time-code`),S=k(a,`disabled`,3,!1),w=k(a,`value`,15,``),T=k(a,`onValueChange`,3,ht),E=b(a,bn),D=gn.create({id:K(()=>s()),ref:K(()=>l(),e=>l(e)),inputRef:K(()=>u(),e=>u(e)),inputId:K(()=>c()),autocomplete:K(()=>x()),maxLength:K(()=>d()),textAlign:K(()=>f()),disabled:K(()=>S()),inputmode:K(()=>m()),pattern:K(()=>a.pattern),onComplete:K(()=>h()),value:K(()=>w(),e=>{w(e),T()(e)}),pushPasswordManagerStrategy:K(()=>g()),pasteTransformer:K(()=>a.pasteTransformer)}),O=R(()=>Y(E,D.inputProps)),ee=R(()=>Y(D.rootProps,{class:y()})),A=R(()=>Y(D.inputWrapperProps,{}));var j=xn();C(j,()=>({...v(ee)}));var N=e(j);B(N,()=>a.children??n,()=>D.snippetProps);var P=z(N,2);C(P,()=>({...v(A)}));var F=e(P);C(F,()=>({...v(O)}),void 0,void 0,void 0,void 0,!0),M(P),M(j),t(r,j),_()}var Cn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),wn=c(`<div><!></div>`);function Tn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,Cn),d=_n.create({id:K(()=>c()),ref:K(()=>l(),e=>l(e)),cell:K(()=>o.cell)}),f=R(()=>Y(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=wn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var En=ot({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),Dn=new He(`Tabs.Root`),On=class e{static create(t){return Dn.set(new e(t))}opts;attachment;rovingFocusGroup;#e=L(F([]));get triggerIds(){return v(this.#e)}set triggerIds(e){A(this.#e,e,!0)}valueToTriggerId=new Ke;valueToContentId=new Ke;constructor(e){this.opts=e,this.attachment=W(e.ref),this.rovingFocusGroup=new sn({candidateAttr:En.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=R(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[En.root]:``,...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},kn=class e{static create(t){return new e(t,Dn.get())}opts;root;attachment;#e=R(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=W(e.ref)}#t=R(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[En.list]:``,"data-disabled":We(v(this.#e)),...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},An=class e{static create(t){return new e(t,Dn.get())}opts;root;attachment;#e=L(0);#t=R(()=>this.root.opts.value.current===this.opts.value.current);#n=R(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=R(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=W(e.ref),ze([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),y(()=>{this.root.triggerIds.length,v(this.#t)||!this.root.opts.value.current?A(this.#e,0):A(this.#e,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(e){this.root.opts.activationMode.current!==`automatic`||v(this.#n)||this.#i()}onclick(e){v(this.#n)||this.#i()}onkeydown(e){if(!v(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=R(()=>({id:this.opts.id.current,role:`tab`,"data-state":Mn(v(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":We(v(this.#n)),"aria-selected":st(v(this.#t)),"aria-controls":v(this.#r),[En.trigger]:``,disabled:je(v(this.#n)),tabindex:v(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return v(this.#a)}set props(e){A(this.#a,e)}},jn=class e{static create(t){return new e(t,Dn.get())}opts;root;attachment;#e=R(()=>this.root.opts.value.current===this.opts.value.current);#t=R(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=W(e.ref),ze([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=R(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:je(!v(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Mn(v(this.#e)),"aria-labelledby":v(this.#t),"data-orientation":this.root.opts.orientation.current,[En.content]:``,...this.attachment}));get props(){return v(this.#n)}set props(e){A(this.#n,e)}};function Mn(e){return e?`active`:`inactive`}var Nn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),Pn=c(`<div><!></div>`);function Fn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=k(o,`value`,15,``),d=k(o,`onValueChange`,3,ht),f=k(o,`orientation`,3,`horizontal`),m=k(o,`loop`,3,!0),h=k(o,`activationMode`,3,`automatic`),g=k(o,`disabled`,3,!1),y=b(o,Nn),x=On.create({id:K(()=>c()),value:K(()=>u(),e=>{u(e),d()(e)}),orientation:K(()=>f()),loop:K(()=>m()),activationMode:K(()=>h()),disabled:K(()=>g()),ref:K(()=>l(),e=>l(e))}),S=R(()=>Y(y,x.props));var w=j(),E=T(w),D=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(S)})),t(e,n)},O=r=>{var i=Pn();C(i,()=>({...v(S)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(E,e=>{o.child?e(D):e(O,-1)}),t(r,w),_()}var In=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),Ln=c(`<div><!></div>`);function Rn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,In),d=jn.create({value:K(()=>o.value),id:K(()=>c()),ref:K(()=>l(),e=>l(e))}),f=R(()=>Y(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Ln();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var zn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),Bn=c(`<div><!></div>`);function Vn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>J(s)),l=k(o,`ref`,15,null),u=b(o,zn),d=kn.create({id:K(()=>c()),ref:K(()=>l(),e=>l(e))}),f=R(()=>Y(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Bn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Hn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),Un=c(`<button><!></button>`);function Wn(r,o){let s=p();i(o,!0);let c=k(o,`disabled`,3,!1),l=k(o,`id`,19,()=>J(s)),u=k(o,`type`,3,`button`),d=k(o,`ref`,15,null),f=b(o,Hn),m=An.create({id:K(()=>l()),disabled:K(()=>c()??!1),value:K(()=>o.value),ref:K(()=>d(),e=>d(e))}),h=R(()=>Y(f,m.props,{type:u()}));var g=j(),y=T(g),x=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(h)})),t(e,n)},S=r=>{var i=Un();C(i,()=>({...v(h)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(y,e=>{o.child?e(x):e(S,-1)}),t(r,g),_()}var Gn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Kn=c(`<div><!></div>`);function qn(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Gn);var c=Kn();C(c,e=>({"data-slot":`input-otp-group`,class:e,...s}),[()=>U(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Jn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Yn=c(`<div class="cn-input-otp-caret pointer-events-none absolute inset-0 flex items-center justify-center"><div class="h-4 w-px animate-caret-blink bg-foreground duration-1000 h-4 w-px bg-foreground"></div></div>`),Xn=c(` <!>`,1);function Zn(e,n){i(n,!0);let r=k(n,`ref`,15,null),o=b(n,Jn);var c=j(),l=T(c);{let e=R(()=>U(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,n.class));x(l,()=>Tn,(i,c)=>{c(i,I({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},children:(e,r)=>{f();var i=Xn(),o=T(i),c=z(o),l=e=>{var n=Yn();t(e,n)};a(c,e=>{n.cell.hasFakeCaret&&e(l)}),s(()=>d(o,`${n.cell.char??``} `)),t(e,i)},$$slots:{default:!0}}))})}t(e,c),_()}var Qn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function $n(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,Qn);var s=j(),c=T(s);{let e=R(()=>U(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));x(c,()=>Sn,(t,n)=>{n(t,I({"data-slot":`input-otp`,spellcheck:!1,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var er=c(`<div class="w-full flex items-center"><!></div>`);function tr(n,o){i(o,!0);let s=()=>D(X,`$dict`,c),[c,l]=w(),u=k(o,`ref`,15,null),d=k(o,`mode`,11,`password`),f=k(o,`password`,15,``),p=k(o,`otp`,15,``);var m=er(),h=e(m),g=e=>{Ze(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return s().auth.password},class:`placeholder:text-sm`,get value(){return f()},set value(e){f(e)}})},y=e=>{var n=j(),i=T(n);{let e=(e,n)=>{let i=()=>(n?.()).cells;var a=j(),o=T(a);x(o,()=>qn,(e,n)=>{n(e,{children:(e,n)=>{var a=j(),o=T(a);r(o,17,()=>i().slice(0,6),re,(e,n)=>{var r=j(),i=T(r);x(i,()=>Zn,(e,t)=>{t(e,{get cell(){return v(n)},class:`size-[40px] bg-background`})}),t(e,r)}),t(e,a)},$$slots:{default:!0}})}),t(e,a)};x(i,()=>$n,(t,n)=>{n(t,{maxlength:6,get pattern(){return pn},required:!0,get value(){return p()},set value(e){p(e)},children:e,$$slots:{default:!0}})})}t(e,n)};a(h,e=>{d()===`password`?e(g):e(y,-1)}),M(m),S(m,e=>u(e),()=>u()),t(n,m),_(),l()}var nr=c(`<!> <span class="sr-only"> </span>`,1),rr=c(`<form><fieldset class="space-y-2"><!> <div class="space-y-2"><div class="flex items-center gap-2"><!> <!></div> <div class="text-sm text-muted-foreground px-1"><!></div></div></fieldset></form>`);function ir(n,r){i(r,!0);let c=()=>D(X,`$dict`,l),[l,u]=w(),f=L(!1),p=L(``),m=L(``),y=L(``),b=L(null),x=L(`password`),C=L(void 0);async function E(){v(m).length===0?v(x)===`password`?await k():await N():await O()}async function O(){A(f,!0);let e=r.account===void 0?await ee():await me(r.account.id,{username:v(p),password:v(m)});A(f,!1),e instanceof Error&&await P()}async function ee(){let e=await Se(v(p),v(m));return e instanceof Error||le(e)?.status===201&&r.oncreate?.(e),e}async function k(){A(f,!0);let e=r.account===void 0?await Ee(v(p)):await ve(r.account.id,v(p));A(f,!1),!(e instanceof Error)&&(A(x,`otp`),requestAnimationFrame(()=>F()))}async function N(){if(v(p).length===0){console.error(`username is required`);return}if(v(y).length!==6){await P();return}A(f,!0);let e=await pe(v(p),v(y));if(A(f,!1),e instanceof Error){A(y,``),await P();return}return le(e)?.status===201&&r.oncreate?.(e),e}async function P(){await v(C)?.shake(),F()}function F(){oe&&v(b)?.querySelector(`input`)?.focus()}var I=rr(),te=R(()=>vt(E)),ne=e(I),re=e(ne);{let e=R(()=>v(x)===`otp`||void 0);Ze(re,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return v(e)},get autofocus(){return oe},get placeholder(){return c().auth.email},get value(){return v(p)},set value(e){A(p,e,!0)}})}var B=z(re,2),ie=e(B),ae=e(ie);S($t(ae,{class:`w-full`,children:(e,t)=>{tr(e,{get mode(){return v(x)},get ref(){return v(b)},set ref(e){A(b,e,!0)},get password(){return v(m)},set password(e){A(m,e,!0)},get otp(){return v(y)},set otp(e){A(y,e,!0)}})},$$slots:{default:!0}}),e=>A(C,e,!0),()=>v(C));var se=z(ae,2);q(se,{size:`icon-lg`,type:`submit`,children:(n,r)=>{var i=nr(),o=T(i),l=e=>{G(e,{})},u=e=>{Zt(e,{})};a(o,e=>{v(f)?e(l):e(u,-1)});var p=z(o,2),m=e(p,!0);M(p),s(()=>d(m,c().auth.login)),t(n,i)},$$slots:{default:!0}}),M(ie);var ce=z(ie,2),V=e(ce),ue=e=>{var n=j(),r=T(n);g(r,()=>c().auth.passwordBlank),t(e,n)},de=e=>{var n=o();s(()=>d(n,c().auth.otpInstructions)),t(e,n)};a(V,e=>{v(x)===`password`?e(ue):e(de,-1)}),M(ce),M(B),M(ne),M(I),h(`submit`,I,function(...e){v(te)?.apply(this,e)}),t(n,I),_(),u()}var ar=c(`<h2> </h2>`),or=c(`<!> <!>`,1);function sr(n,r){i(r,!0);let a=()=>D(X,`$dict`,c),[c,l]=w();var u=j(),p=T(u);{let n=R(()=>U(`pt-4 gap-4 bg-background/75`,r.class));x(p,()=>Yt,(i,c)=>{c(i,{get class(){return v(n)},children:(n,i)=>{var c=or(),l=T(c);x(l,()=>Ut,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=or(),c=T(i);x(c,()=>Kt,(n,r)=>{r(n,{children:(n,r)=>{var i=ar(),o=e(i,!0);M(i),s(()=>d(o,a().auth.passwordTitle)),t(n,i)},$$slots:{default:!0}})});var l=z(c,2);x(l,()=>Lt,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,a().auth.passwordDescription)),t(e,r)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>Pt,(e,t)=>{t(e,{children:(e,t)=>{ir(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,c)},$$slots:{default:!0}})})}t(n,u),_(),l()}function cr(e){ir(e,{})}var lr=new Set([`$$slots`,`$$events`,`$$legacy`]);function ur(e,t){let n=b(t,lr),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]];V(e,I({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var dr=new Set([`$$slots`,`$$events`,`$$legacy`]);function fr(e,t){let n=b(t,dr),r=[[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`}]];V(e,I({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var pr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),mr=c(`<div><!></div>`);function hr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,pr);var c=mr();C(c,e=>({"data-slot":`alert-description`,class:e,...s}),[()=>U(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var gr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),_r=c(`<div><!></div>`);function vr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,gr);var c=_r();C(c,e=>({"data-slot":`alert-title`,class:e,...s}),[()=>U(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var yr=Qe({base:`grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),br=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),xr=c(`<div><!></div>`);function Sr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`variant`,3,`default`),c=b(a,br);var l=xr();C(l,e=>({"data-slot":`alert`,role:`alert`,class:e,...c}),[()=>U(yr({variant:s()}),a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var Cr=new Set([`$$slots`,`$$events`,`$$legacy`]);function wr(e,t){let n=b(t,Cr),r=[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`}],[`path`,{d:`M2 16h.01`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`}]];V(e,I({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Tr=c(`<!> `,1),Er=c(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Dr(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w(),u=L(!1);async function f(){A(u,!0),await xe(),A(u,!1)}var p=Er(),m=e(p),h=e(m,!0);M(m);var g=z(m,2);q(g,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:f,children:(e,n)=>{var r=Tr(),i=T(r),c=e=>{G(e,{})},l=e=>{wr(e,{})};a(i,e=>{v(u)?e(c):e(l,-1)});var f=z(i);s(()=>d(f,` ${o().auth.signin??``}`)),t(e,r)},$$slots:{default:!0}}),M(p),s(()=>d(h,o().auth.alreadyHaveAccount)),t(n,p),_(),l()}var Or=c(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function kr(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w(),u=R(()=>r.account?.name??``),d=L(!1);async function f(){let e=v(u).trim();if(e.length===0)return;A(d,!0);let t=await we(e,r.account?.id);A(d,!1),!(t instanceof Error)&&r.oncreate?.(t)}var p=Or(),m=R(()=>vt(f)),g=e(p),y=e(g),b=e(y);Ze(b,{id:`name`,type:`text`,get placeholder(){return o().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return oe},get value(){return v(u)},set value(e){A(u,e)}});var x=z(b,2);q(x,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,n)=>{var r=j(),i=T(r),o=e=>{G(e,{})},s=e=>{Zt(e,{})};a(i,e=>{v(d)?e(o):e(s,-1)}),t(e,r)},$$slots:{default:!0}}),M(y),M(g),M(p),s(()=>g.disabled=r.disabled),h(`submit`,p,function(...e){v(m)?.apply(this,e)}),t(n,p),_(),l()}var Ar=c(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),jr=c(`<h2> </h2>`),Mr=c(`<!> <!>`,1),Nr=c(`<!> <!> <!>`,1),Pr=c(`<p> </p> <!>`,1),Fr=c(`<div class="space-y-4"><!> <!></div>`);function Ir(n,r){i(r,!0);let c=()=>D(X,`$dict`,l),[l,u]=w(),p=n=>{var r=Ar(),i=e(r),a=z(i),o=e(a,!0);M(a),M(r),s(()=>{d(i,`${c().auth.passkeysDescription??``} `),E(a,`href`,m),d(o,c().auth.learnMore)}),t(n,r)},m=_e?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var h=Fr(),g=e(h);{let n=R(()=>U(`gap-4 bg-background/75`,H&&`pt-4`,r.class));x(g,()=>Yt,(i,l)=>{l(i,{get class(){return v(n)},children:(n,i)=>{var l=Mr(),u=T(l),m=n=>{var i=Mr(),a=T(i);x(a,()=>Ut,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=j(),a=T(i);x(a,()=>Kt,(n,r)=>{r(n,{children:(n,r)=>{var i=jr(),a=e(i,!0);M(i),s(()=>d(a,c().auth.signupTitle)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var o=z(a,2);x(o,()=>Pt,(e,t)=>{t(e,{children:(e,t)=>{kr(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,i)};a(u,e=>{H&&e(m)});var h=z(u,2);x(h,()=>Bt,(n,r)=>{r(n,{children:(n,r)=>{var i=j(),l=T(i),u=e=>{var n=j(),r=T(n);x(r,()=>Sr,(e,n)=>{n(e,{children:(e,n)=>{var r=Nr(),i=T(r);ur(i,{color:`green`});var a=z(i,2);x(a,()=>vr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.betterSecurity)),t(e,r)},$$slots:{default:!0}})});var l=z(a,2);x(l,()=>hr,(e,t)=>{t(e,{children:(e,t)=>{p(e)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),t(e,n)},m=n=>{var r=j(),i=T(r);x(i,()=>Sr,(n,r)=>{r(n,{children:(n,r)=>{var i=Nr(),a=T(i);fr(a,{color:`red`,class:`animate-pulse`});var l=z(a,2);x(l,()=>vr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.passkeysNotSupported)),t(e,r)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>hr,(n,r)=>{r(n,{children:(n,r)=>{var i=Pr(),a=T(i),o=e(a,!0);M(a);var l=z(a,2);p(l),s(()=>d(o,c().auth.passkeysWarning)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})}),t(n,r)};a(l,e=>{H?e(u):e(m,-1)}),t(n,i)},$$slots:{default:!0}})}),t(n,l)},$$slots:{default:!0}})})}var y=z(g,2),b=e=>{Dr(e,{})};a(y,e=>{H&&!r.account&&e(b)}),M(h),t(n,h),_(),u()}var Lr=c(`<!> <!> `,1);function Rr(e,n){i(n,!0);let r=()=>D(X,`$dict`,a),[a,o]=w();async function c(e){let t=e.currentTarget;t.disabled=!0,await xe(n.account.id),t.disabled=!1}q(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:c,children:(e,n)=>{var i=Lr(),a=T(i);wr(a,{class:`size-5 x-icon`});var o=z(a,2);G(o,{class:`x-spinner`});var c=z(o);s(()=>d(c,` ${r().auth.refresh.continue??``}`)),t(e,i)},$$slots:{default:!0}}),_(),o()}var zr=u(`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19.84 10.2273C19.84 9.5182 19.7764 8.8364 19.6582 8.1818H10.24V12.05H15.6218C15.39 13.3 14.6855 14.3591 13.6264 15.0682V17.5773H16.8582C18.7491 15.8364 19.84 13.2727 19.84 10.2273Z" fill="#4285F4"></path><path d="M10.24 20C12.94 20 15.2036 19.1045 16.8581 17.5773L13.6263 15.0682C12.7309 15.6682 11.5854 16.0227 10.24 16.0227C7.6354 16.0227 5.4309 14.2636 4.6445 11.9H1.3036V14.4909C2.9491 17.7591 6.3309 20 10.24 20Z" fill="#34A853"></path><path d="M4.6445 11.9C4.4445 11.3 4.3309 10.6591 4.3309 10C4.3309 9.3409 4.4445 8.7 4.6445 8.1V5.5091H1.3036C0.6264 6.8591 0.24 8.3864 0.24 10C0.24 11.6136 0.6264 13.1409 1.3036 14.4909L4.6445 11.9Z" fill="#FBBC04"></path><path d="M10.24 3.9773C11.7081 3.9773 13.0263 4.4818 14.0627 5.4727L16.9309 2.6045C15.1991 0.9909 12.9354 0 10.24 0C6.3309 0 2.9491 2.2409 1.3036 5.5091L4.6445 8.1C5.4309 5.7364 7.6354 3.9773 10.24 3.9773Z" fill="#E94235"></path></svg>`);function Br(e,n){var r=zr();s(()=>N(r,0,O(n.class))),t(e,r)}var Vr=u(`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" viewBox="0 0 814 1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"></path></svg>`);function Hr(n,r){i(r,!0);var a=Vr(),o=e(a);M(a),s(e=>{N(a,0,e),E(o,`fill`,r.fill)},[()=>O(U(`size-5 -mt-[3px]`,r.class))]),t(n,a),_()}var Ur={google:Br,apple:Hr},Wr=c(`<!> <!> <!>`,1);function Gr(e,r){i(r,!0);let a=R(()=>Ur[r.idp]);async function o(e){let t=e.currentTarget;t.disabled=!0,await ge(r.idp,r.account?.id),t.disabled=!1}{let i=R(()=>r.children?`default`:`icon`),s=R(()=>U(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,r.class));q(e,{variant:`outline`,get size(){return v(i)},onclick:o,get class(){return v(s)},children:(e,i)=>{var o=Wr(),s=T(o);x(s,()=>v(a),(e,t)=>{t(e,{class:`x-icon`})});var c=z(s,2);G(c,{class:`x-spinner`});var l=z(c,2);B(l,()=>r.children??n),t(e,o)},$$slots:{default:!0}})}_()}var Kr=c(`<div class="flex gap-2"><!> <!></div>`);function qr(n,r){i(r,!0);var o=Kr(),s=e(o),c=e=>{Gr(e,{idp:`google`,get account(){return r.account}})};a(s,e=>{he.google.client&&e(c)});var l=z(s,2),u=e=>{Gr(e,{idp:`apple`,get account(){return r.account}})};a(l,e=>{he.apple.client&&e(u)}),M(o),t(n,o),_()}function Jr(e,n){i(n,!0);let r=()=>D(X,`$dict`,a),[a,c]=w(),l={google:`Google`,apple:`Apple`};Gr(e,{get idp(){return n.idp},class:`w-full`,children:(e,i)=>{f();var a=o();s(e=>d(a,e),[()=>r().auth.continueWith(l[n.idp])]),t(e,a)},$$slots:{default:!0}}),_(),c()}var Yr=c(`<!> <!>`,1);function Xr(e,n){var r=j(),i=T(r);x(i,()=>Yt,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=Yr(),a=T(i);x(a,()=>Ut,(e,r)=>{r(e,{children:(e,r)=>{var i=Yr(),a=T(i);x(a,()=>Kt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.title)),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>Lt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.description)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>Pt,(e,r)=>{r(e,{class:`flex flex-col`,children:(e,r)=>{var i=j(),a=T(i);B(a,()=>n.action),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,r)}var Zr=c(`<!> `,1),Qr=c(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function $r(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w();P(()=>{r.method===null&&ye()});var u=Qr(),f=e(u);{let e=e=>{var n=j(),i=T(n),o=e=>{Rr(e,{get account(){return r.account}})},s=e=>{cr(e,{})},c=e=>{Jr(e,{idp:`apple`})},l=e=>{Jr(e,{idp:`google`})};a(i,e=>{r.method===`passkey`?e(o):r.method===`password`?e(s,1):r.method===`apple`?e(c,2):r.method===`google`&&e(l,3)}),t(e,n)},n=R(()=>o().auth.refresh.description(r.account.name));Xr(f,{get title(){return o().auth.refresh.title},get description(){return v(n)},action:e,$$slots:{action:!0}})}var p=z(f,2);q(p,{variant:`outline`,get onclick(){return ye},children:(e,n)=>{var r=Zr(),i=T(r);wt(i,{});var a=z(i);s(()=>d(a,` ${o().auth.signout??``}`)),t(e,r)},$$slots:{default:!0}}),M(u),t(n,u),_(),l()}var ei=new Set([`$$slots`,`$$events`,`$$legacy`]);function ti(e,t){let n=b(t,ei),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`}]];V(e,I({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ni=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ri(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ni);var o=j(),s=T(o);{let e=R(()=>U(`text-sm flex-1 outline-none`,n.class));x(s,()=>Rn,(t,n)=>{n(t,I({"data-slot":`tabs-content`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var ii=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ai(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ii);var o=j(),s=T(o);{let e=R(()=>U(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n.class));x(s,()=>Wn,(t,n)=>{n(t,I({"data-slot":`tabs-trigger`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var oi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function si(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,oi);var s=j(),c=T(s);{let e=R(()=>U(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));x(c,()=>Fn,(t,n)=>{n(t,I({"data-slot":`tabs`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var ci=Qe({base:`rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,variants:{variant:{default:`cn-tabs-list-variant-default bg-muted`,line:`cn-tabs-list-variant-line gap-1 bg-transparent`}},defaultVariants:{variant:`default`}}),li=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function ui(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`variant`,3,`default`),o=b(n,li);var s=j(),c=T(s);{let e=R(()=>U(ci({variant:a()}),n.class));x(c,()=>Vn,(t,n)=>{n(t,I({"data-slot":`tabs-list`,get"data-variant"(){return a()},get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,s),_()}var di=c(`<!> `,1),fi=c(`<!> <!>`,1),pi=c(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function mi(n,r){i(r,!0);let a=()=>D(X,`$dict`,o),[o,c]=w(),l=L(null);function u(e){requestAnimationFrame(()=>{v(l)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let f=L(`passkey`);P(()=>{A(f,H?`passkey`:`password`,!0)});var p=j(),m=T(p);{let n=R(()=>U(`w-full`,r.class));x(m,()=>si,(i,o)=>{o(i,{get class(){return v(n)},onValueChange:u,get value(){return v(f)},set value(e){A(f,e,!0)},get ref(){return v(l)},set ref(e){A(l,e,!0)},children:(n,i)=>{var o=pi(),c=T(o),l=e(c);x(l,()=>ui,(e,n)=>{n(e,{children:(e,n)=>{var r=fi(),i=T(r);x(i,()=>ai,(e,n)=>{n(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,n)=>{var r=di(),i=T(r);wr(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.passkey??``}`)),t(e,r)},$$slots:{default:!0}})});var o=z(i,2);x(o,()=>ai,(e,n)=>{n(e,{value:`password`,id:`iam-email-tab`,children:(e,n)=>{var r=di(),i=T(r);ti(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.email??``}`)),t(e,r)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),qr(z(l,2),{get account(){return r.account}}),M(c);var u=z(c,2);x(u,()=>ri,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Ir(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var f=z(u,2);x(f,()=>ri,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{sr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),t(n,o)},$$slots:{default:!0}})})}t(n,p),_(),c()}var hi=c(`<div class="flex items-center justify-center h-screen"><!></div>`),gi=c(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function _i(n,r){i(r,!0);let o=()=>D(De,`$iam`,d),s=()=>D(de,`$method`,d),c=()=>D(ke,`$authenticated`,d),l=()=>D(Oe,`$greeting`,d),u=()=>D(ce,`$processing`,d),[d,f]=w(),p=e=>{var n=j(),i=T(n),c=e=>{$r(e,{get account(){return o()},get method(){return s()}})},l=e=>{{let t=R(()=>U(`scale-0 transition-transform`,`scale-100`));mi(e,{get class(){return v(t)},get account(){return r.account},get oncreate(){return r.oncreate}})}};a(i,e=>{o()?e(c):e(l,-1)}),t(e,n)};var m=j(),h=T(m),g=e=>{var n=j(),i=T(n);B(i,()=>r.children),t(e,n)},y=n=>{var r=hi(),i=e(r);G(i,{}),M(r),t(n,r)},b=e=>{var n=j(),i=T(n);B(i,()=>r.screen,()=>({authentication:p})),t(e,n)},x=n=>{var r=gi(),i=e(r);p(i),M(r),t(n,r)};a(h,e=>{c()?e(g):l()||u()?e(y,1):r.screen?e(b,2):e(x,-1)}),t(n,m),_(),f()}var vi=l(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=l((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),yi=l((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),bi=l(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),xi=l(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Si=l((e=>{var t=Q().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),Ci=l((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),wi=l((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),Ti=l((e=>{var t=yi(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Ei=l((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Di=l((e=>{var t=Ei();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),Oi=l(((e,t)=>{var n=Di();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),ki=l((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Ai=l((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
|
2
|
-
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),$=l((e=>{var t=ki(),n=Ai();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),ji=l((e=>{var t=Q(),n=Ti(),r=yi(),i=$(),a=ki(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Mi=l((e=>{var t=Q(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Ni=l(((e,t)=>{var n=$();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Pi=l(((e,t)=>{var n=$(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),Fi=l(((e,t)=>{var n=$();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Ii=l(((e,t)=>{var n=$(),r=Q();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
|
|
3
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),Li=l(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),Ri=l((e=>{var t=$(),n=Ni(),r=Pi(),i=Fi(),a=Ii(),o=Ai(),s=Q(),c=Li();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
|
|
4
|
-
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),zi=l((e=>{var t=Q(),n=yi(),r=bi(),i=xi(),a=Si(),o=Ci(),s=wi(),c=Ti(),l=Oi(),u=ji(),d=Mi(),f=$(),p=Ri();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
|
|
5
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
-
Minimum version required to store current data is: `+c+`.
|
|
7
|
-
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),Bi=l((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||(e.color={});let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),Vi=l((e=>{var t=Bi();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),Hi=l((e=>{var t=Bi();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
|
|
8
|
-
`;return typeof a==`function`&&a(null,p),p}}));l((e=>{var t=vi(),n=zi(),r=Vi(),i=Hi();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),Ur.google,Ur.apple;var Ui=`search`;function Wi(e){return new URLSearchParams(e.replace(/^#/,``)).get(Ui)}function Gi(e,t){let n=new URLSearchParams(e.replace(/^#/,``));t===``?n.delete(Ui):n.set(Ui,t);let r=n.toString().replace(/%2F/gi,`/`);return r===``?``:`#`+r}var Ki=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qi=c(`<kbd><!></kbd>`);function Ji(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Ki);var c=qi();C(c,e=>({"data-slot":`kbd`,class:e,...s}),[()=>U(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Yi=n=>{var r=Xi(),i=e(r);pt(i,{});var a=z(i,2);et(a,{}),M(r),t(n,r)},Xi=c(`<div class="mx-auto flex w-full max-w-3xl flex-col gap-6 px-4 pb-12"><!> <!></div>`),Zi=c(`<div class="w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"></div>`),Qi=c(`<div class="relative w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"><!> <!> <!></div>`),$i=c(`<!> <!>`,1),ea=c(`<header class="bg-background sticky top-0 z-50 -mt-2 flex w-full items-center gap-4 px-4 py-3" style="view-transition-name: chrome"><div class="flex shrink-0 items-center gap-2 md:flex-1 md:gap-4"><h1 class="hidden min-w-0 truncate text-lg font-medium md:block"> </h1> <!> <!> <div class="hidden items-center gap-4 md:flex"><!> <!></div></div> <!> <div class="flex shrink-0 items-center justify-end gap-1 md:flex-1"><!></div></header> <!>`,1);function ta(n,r){i(r,!0);let c=()=>D(ke,`$authenticated`,x),l=()=>D(at,`$query`,x),u=()=>D(Ce,`$tree`,x),p=()=>D(dt,`$only`,x),g=()=>D(Te,`$dict`,x),b=()=>D(De,`$account`,x),[x,S]=w(),C=L(null),E=L(!1);y(()=>{c()&&A(E,!1)}),P(()=>{let e=()=>{let e=Wi(location.hash);e!==null&&at.set(e)};return e(),window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}),y(()=>{let e=Gi(location.hash,l());e!==location.hash&&ae(e===``?location.pathname:e,{})});let O=R(()=>lt(u())),ee=R(()=>rt(u(),tt.configuration)),k=R(()=>rt(u(),tt.introspection));function j(){let e=mt(u(),se.title),t=URL.createObjectURL(new Blob([e],{type:`text/markdown`})),n=window.document.createElement(`a`);n.href=t,n.download=`discovery.md`,n.click(),URL.revokeObjectURL(t)}function N(e){e.key===`Enter`&&p()?.()}function F(e){e.key!==`k`||!(e.metaKey||e.ctrlKey)||(e.preventDefault(),v(C)?.focus(),v(C)?.select())}h(`keydown`,m,F),ut(n,{children:(n,r)=>{var i=ea(),u=T(i),p=e(u),m=e(p),h=e(m,!0);M(m);var _=z(m,2),y=e=>{{let t=e=>{ct(e,{class:`size-4`})},n=R(()=>`${fe}/.mcp`);it(e,{id:`discovery-mcp-button`,get text(){return v(n)},variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.mcp},class:`text-muted-foreground`,icon:t,$$slots:{icon:!0}})}};a(_,e=>{v(O)&&e(y)});var x=z(_,2);q(x,{id:`discovery-markdown-button`,variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.markdown},onclick:j,children:(e,t)=>{bt(e,{})},$$slots:{default:!0}});var S=z(x,2),w=e(S),D=e=>{q(e,{id:`discovery-configuration-button`,get href(){return ue},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.configuration},children:(e,t)=>{St(e,{})},$$slots:{default:!0}})};a(w,e=>{v(ee)&&e(D)});var P=z(w,2),F=e=>{q(e,{id:`discovery-introspection-button`,get href(){return Ae},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.introspection},children:(e,t)=>{At(e,{})},$$slots:{default:!0}})};a(P,e=>{v(k)&&e(F)}),M(S),M(p);var I=z(p,2),L=e=>{var n=Zi();t(e,n)},re=n=>{var r=Qi(),i=e(r);Et(i,{class:`text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2`});var a=z(i,2);Ze(a,{id:`nav-filter-input`,type:`search`,onkeydown:N,get"aria-label"(){return g().nav.filter},class:`ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden`,get ref(){return v(C)},set ref(e){A(C,e,!0)},get value(){return ne(),l()},set value(e){te(at,e)}}),Ji(z(a,2),{class:`absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex`,children:(e,n)=>{f();var r=o();s(()=>d(r,_e?`⌘K`:`Ctrl K`)),t(e,r)},$$slots:{default:!0}}),M(r),t(n,r)};a(I,e=>{v(E)?e(L):e(re,-1)});var B=z(I,2),ie=e(B),ae=e=>{var n=$i(),r=T(n),i=e=>{var n=$i(),r=T(n);it(r,{get text(){return b().id},variant:`outline`,size:`icon-sm`,get"aria-label"(){return g().nav.identity},class:`md:hidden`});var i=z(r,2);{let e=R(()=>b().id.slice(0,8));it(i,{id:`iam-identity-button`,get text(){return b().id},get label(){return v(e)},variant:`outline`,size:`sm`,get"aria-label"(){return g().nav.identity},class:`hidden font-mono md:inline-flex`})}t(e,n)};a(r,e=>{b()!==null&&e(i)});var o=z(r,2);q(o,{id:`iam-logout-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.signout},class:`text-destructive hover:text-destructive`,get onclick(){return ye},children:(e,t)=>{wt(e,{})},$$slots:{default:!0}}),t(e,n)},oe=e=>{q(e,{id:`iam-cancel-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.back},onclick:()=>A(E,!1),children:(e,t)=>{nt(e,{})},$$slots:{default:!0}})},ce=e=>{q(e,{id:`iam-login-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.signin},onclick:()=>A(E,!0),children:(e,t)=>{Ot(e,{})},$$slots:{default:!0}})};a(ie,e=>{c()?e(ae):v(E)?e(oe,1):e(ce,-1)}),M(B),M(u);var V=z(u,2),le=e=>{_i(e,{children:(e,t)=>{Yi(e)},$$slots:{default:!0}})},de=e=>{Yi(e)};a(V,e=>{v(E)?e(le):e(de,-1)}),s(()=>d(h,se.title)),t(n,i)},$$slots:{default:!0}}),_(),S()}export{ta as component};
|