(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5329],{85329:function(e,t,i){Promise.resolve().then(i.bind(i,33911))},33911:function(e,t,i){"use strict";i.r(t),i.d(t,{Login:function(){return O},default:function(){return U}});var n=i(57437),a=i(9672),s=i(88876),r=i(47907),l=i(58714),o=i(53437),c=i(34343),u=i(32438);let d=(0,l.createClientComponentClient)();async function m(e,t){try{let{email:t,plausible:i}=e;i("click_sign_in");let{data:n,error:a}=await d.auth.signInWithOtp({email:t.toLowerCase(),options:{emailRedirectTo:"".concat(location.origin,"/auth/callback")}});if(a)throw Error("Failed to sign in with OTP: ".concat(a.message));return n}catch(e){throw e}}async function h(e,t){try{let{email:t,pinCode:i,plausible:n}=e;n("click_verify_otp");let{data:a,error:s}=await d.auth.verifyOtp({email:t.toLowerCase(),token:i,type:"email"});if(s)throw Error("Failed to verify OTP: ".concat(s.message));return a}catch(e){throw e}}async function f(e){let{session:t,supabaseUser:i,plausible:n}=e,a=await fetch("/api/users",{method:"POST",headers:{"content-type":"application/json",Authorization:"Bearer ".concat(null==t?void 0:t.access_token)},body:JSON.stringify({clientSession:t,clientUser:i})});if(!a.ok)throw Error("Failed to create user");let s=await a.json();if(!s||s.error)throw Error("Error creating new user");return n("create_user"),s}async function g(e,t){try{return await f(e)}catch(e){throw e}}async function x(e,t){try{let{error:e}=await d.auth.signOut();if(e)throw Error("Failed to sign out: ".concat(e.message));window.location.reload()}catch(e){throw e}}var p=i(85754),w=i(45179),v=i(49842),b=i(21270),j=i(82670),y=i(30248);let Z=y.z.object({email:y.z.string().email({message:"Invalid email address"})});function C(e){let{state:t,send:i}=e,{register:s,handleSubmit:r,watch:l,formState:{errors:o,isSubmitting:c,isDirty:u,isValid:d}}=(0,j.cI)({resolver:(0,b.F)(Z),mode:"onSubmit",defaultValues:{email:t.context.session.user.email}}),m=async e=>{i("CONTINUE_WITH_EXISTING_SESSION")};return(0,n.jsxs)("div",{className:"mx-auto flex w-full flex-col sm:w-80",children:[(0,n.jsx)("p",{className:"mb-2 text-center text-xs font-medium text-zinc-500",children:"​"}),(0,n.jsxs)("form",{id:"email",onSubmit:r(m),children:[(0,n.jsxs)("div",{className:"rounded-md border border-slate-300 bg-white px-3 py-1.5 shadow-sm focus-within:outline-none focus-within:ring-2 focus-within:ring-slate-400 focus-within:ring-offset-2",children:[(0,n.jsx)(v.Label,{id:"email",className:"block text-xs font-medium text-zinc-900",children:"Email"}),(0,n.jsx)(w.I,{...s("email",{required:!0}),type:"email",name:"email",id:"email",className:"block h-6 w-full border-0 bg-white p-0 text-zinc-900 placeholder:text-zinc-400 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 sm:text-base sm:leading-6",placeholder:"Enter your email","data-1p-ignore":!0,disabled:!0})]}),(0,n.jsxs)(p.z,{type:"submit",tabIndex:0,autoFocus:!0,disabled:c||t.matches("redirect"),className:"mt-4 flex w-full py-6 text-base",children:[(0,n.jsx)("span",{className:"grow",children:"Continue to dashboard"}),c||t.matches("redirect")?(0,n.jsx)(a.P.spinner,{size:"18",className:"ml-1 animate-spin justify-end"}):(0,n.jsx)(a.P.arrowRight,{size:"18",className:"ml-1 justify-end"})]}),(0,n.jsx)(p.z,{type:"button",className:"mt-4 flex w-full py-6 text-base underline text-zinc-600",variant:"link",size:"sm",onClick:()=>i("RESTART_AUTH_FLOW"),children:(0,n.jsx)("span",{className:"grow",children:"Login to a different account"})})]})]})}var z=i(8792);function N(){return(0,n.jsxs)("div",{className:"mx-auto mt-4 w-64 text-center text-sm font-normal text-zinc-500",children:["By signing in, you agree to"," ",(0,n.jsx)(z.default,{href:"https://usevelvet.com",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-600 underline underline-offset-2",children:"Velvet's"})," ",(0,n.jsx)(z.default,{href:"/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-600 underline underline-offset-2",children:"terms"})," ","and"," ",(0,n.jsx)(z.default,{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-600 underline underline-offset-2",children:"privacy policy"}),"."]})}var E=i(2265);let F=y.z.object({email:y.z.string().email({message:"Invalid email address"})});function S(e){let{state:t,send:i,prefilledEmail:s}=e,l=(0,r.usePathname)(),{register:o,handleSubmit:c,watch:u,trigger:d,setValue:m,formState:{errors:h,isSubmitting:f,isDirty:g,isValid:x}}=(0,j.cI)({resolver:(0,b.F)(F),mode:"onSubmit"});(0,E.useEffect)(()=>{s&&s.length>0&&(m("email",s,{shouldDirty:!0,shouldTouch:!0}),d("email"))},[s]);let y=async e=>{i("SUBMIT_EMAIL",{email:e.email})},Z="";return"/login"==l&&t.matches("authFlow.awaitingEmail")?Z="Sign in":"/register"==l&&t.matches("authFlow.awaitingEmail")&&(Z="Activate your account"),t.matches("authFlow.submittingEmail")&&(Z="Submitting..."),t.matches("authFlow.emailFailure")&&(Z="Try again"),(0,n.jsxs)("div",{className:"mx-auto flex w-full flex-col sm:w-80",children:[(0,n.jsx)("p",{className:"mb-2 text-center text-xs font-medium text-zinc-500",children:"​"}),(0,n.jsxs)("form",{id:"email",onSubmit:c(y),children:[(0,n.jsxs)("div",{className:"rounded-md border border-slate-300 bg-white px-3 py-1.5 shadow-sm focus-within:outline-none focus-within:ring-2 focus-within:ring-slate-400 focus-within:ring-offset-2",children:[(0,n.jsx)(v.Label,{id:"email",className:"block text-xs font-medium text-zinc-900",children:"Email"}),(0,n.jsx)(w.I,{...o("email",{required:!0}),type:"email",name:"email",id:"email",className:"block h-6 w-full border-0 bg-white p-0 text-zinc-900 placeholder:text-zinc-400 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 sm:text-base sm:leading-6",placeholder:"Enter your email","data-1p-ignore":!0,tabIndex:0,autoFocus:!0})]}),(0,n.jsxs)(p.z,{type:"submit",disabled:f||t.matches("authFlow.submittingEmail")||!g||!x,className:"mt-4 flex w-full py-6 text-base",children:[(0,n.jsx)("span",{className:"grow",children:Z}),f||t.matches("authFlow.submittingEmail")?(0,n.jsx)(a.P.spinner,{size:"18",className:"ml-1 animate-spin justify-end"}):(0,n.jsx)(a.P.arrowRight,{size:"18",className:"ml-1 justify-end"})]})]})]})}var I=i(74526),k=i(77174),P=i(66931);let _=y.z.object({pinCode:y.z.string().length(6).regex(/^[0-9]+$/,"PIN Code is invalid")}),T=e=>{let{state:t,send:i}=e,{register:s,handleSubmit:r,watch:l,setValue:o,formState:{errors:c,isSubmitting:u,isDirty:d,isValid:m}}=(0,j.cI)({resolver:(0,b.F)(_),mode:"onSubmit"}),h=async e=>{i("SUBMIT_PIN_CODE",{pinCode:e.pinCode})},[f,g]=(0,P.eO)(k.u_({id:"1",otp:!0,async onValueChange(e){o("pinCode",e.value.join(""),{shouldValidate:!0,shouldDirty:!0})},async onValueComplete(e){o("pinCode",e.valueAsString,{shouldValidate:!0,shouldDirty:!0})}})),x=k.$j(f,g,P.vs),w=t.matches("authFlow.pinCodeFailure"),v="h-[50px] w-[39px] rounded-md border border-slate-300 bg-white text-center focus:border-slate-300 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 sm:w-[40px]";return(0,E.useEffect)(()=>{w&&(x.clearValue(),o("pinCode",""))},[w]),(0,n.jsxs)("div",{className:"mx-auto flex w-full flex-col sm:w-80",children:[(0,n.jsx)("p",{className:(0,I.cn)("mb-2 text-center text-xs font-medium text-zinc-500",w?"text-red-500":null),children:w?"Invalid auth code":"Enter the code sent to your email"}),(0,n.jsxs)("form",{id:"pinCode",onSubmit:r(h),children:[(0,n.jsx)("input",{type:"hidden",maxLength:6,...s("pinCode",{required:!0})}),(0,n.jsx)("div",{className:"flex",children:(0,n.jsxs)("div",{className:"mx-auto flex items-center justify-between space-x-3 sm:space-x-4",...x.rootProps,children:[(0,n.jsx)("input",{className:v,...x.getInputProps({index:0}),tabIndex:0}),(0,n.jsx)("input",{className:v,...x.getInputProps({index:1})}),(0,n.jsx)("input",{className:v,...x.getInputProps({index:2})}),(0,n.jsx)("input",{className:v,...x.getInputProps({index:3})}),(0,n.jsx)("input",{className:v,...x.getInputProps({index:4})}),(0,n.jsx)("input",{className:v,...x.getInputProps({index:5})})]})}),(0,n.jsxs)(p.z,{type:"submit",disabled:u||0!==Object.keys(c).length||!d,className:"mt-4 flex w-full py-6 text-base",children:[(0,n.jsx)("span",{className:"grow",children:"Verify your account"}),u||t.matches("submittingPinCode")?(0,n.jsx)(a.P.spinner,{size:"18",className:"ml-1 animate-spin justify-end"}):(0,n.jsx)(a.P.arrowRight,{size:"18",className:"ml-1 justify-end"})]}),(0,n.jsxs)(p.z,{type:"button",className:"mt-4 flex w-full py-6 text-base underline text-zinc-600",variant:"link",size:"sm",onClick:()=>i("RESUBMIT_EMAIL"),children:[(0,n.jsx)("span",{className:"grow",children:"Didn't get a code? Try again."}),t.matches("authFlow.resubmittingEmail")?(0,n.jsx)(a.P.spinner,{size:"18",className:"ml-1 animate-spin justify-end"}):null]})]})]})};function M(e){let{pathname:t}=e;return(0,n.jsx)("div",{className:"flex items-center justify-center pt-4 text-sm gap-x-1",children:"/login"===t?(0,n.jsxs)(n.Fragment,{children:["New to Velvet?",(0,n.jsx)(z.default,{href:"/register",passHref:!0,className:"font-medium",children:"Create an account"})]}):(0,n.jsxs)(n.Fragment,{children:["Already have an account?",(0,n.jsx)(z.default,{href:"/login",passHref:!0,className:"font-medium",children:"Sign in"})]})})}function O(e){var t;let{session:i}=e,l=(0,r.usePathname)(),d=(0,r.useSearchParams)(),f=d.get("redirectTo"),p=d.get("email"),w=function(e){let{session:t,redirectTo:i,supabaseUser:n,currentUser:a,email:s,pinCode:l,error:d}=e,f=(0,r.useRouter)(),p=(0,o.wW)();return(0,c.C)({predictableActionArguments:!0,id:"loginPage",initial:"init",context:{session:t,supabaseUser:n,currentUser:a,email:s,pinCode:l,error:d,plausible:p},states:{init:{always:[{target:"existingSession",cond:e=>null!==e.session},{target:"authFlow.awaitingEmail"}]},existingSession:{on:{CONTINUE_WITH_EXISTING_SESSION:"authSuccess",RESTART_AUTH_FLOW:"authFlow.restartingAuthFlow"}},authFlow:{initial:"awaitingEmail",states:{awaitingEmail:{on:{SUBMIT_EMAIL:[{target:"submittingEmail",actions:(0,u.f0)({email:(e,t)=>t.email})}]}},submittingEmail:{invoke:{src:"handleSignInWithOtp",onDone:{target:"awaitingPinCode",actions:(0,u.f0)({session:(e,t)=>{var i;return null===(i=t.data)||void 0===i?void 0:i.session},supabaseUser:(e,t)=>{var i;return null===(i=t.data)||void 0===i?void 0:i.user}})},onError:{target:"emailFailure",actions:(0,u.f0)({error:(e,t)=>t.data.error})}}},resubmittingEmail:{invoke:{src:"handleSignInWithOtp",onDone:{target:"awaitingPinCode",actions:(0,u.f0)({session:(e,t)=>{var i;return null===(i=t.data)||void 0===i?void 0:i.session},supabaseUser:(e,t)=>{var i;return null===(i=t.data)||void 0===i?void 0:i.user}})},onError:{target:"emailFailure",actions:(0,u.f0)({error:(e,t)=>t.data.error})}}},awaitingPinCode:{on:{SUBMIT_PIN_CODE:{target:"submittingPinCode",actions:(0,u.f0)({pinCode:(e,t)=>t.pinCode})},RESUBMIT_EMAIL:"resubmittingEmail"}},submittingPinCode:{invoke:{src:"handleVerifyOtp",onDone:{target:"#loginPage.creatingUser",actions:(0,u.f0)({session:(e,t)=>{var i;return null===(i=t.data)||void 0===i?void 0:i.session},supabaseUser:(e,t)=>{var i;return null===(i=t.data)||void 0===i?void 0:i.user}})},onError:{target:"pinCodeFailure",actions:(0,u.f0)({error:(e,t)=>t.data.error})}}},emailFailure:{on:{SUBMIT_EMAIL:"submittingEmail",RESTART_AUTH_FLOW:"restartingAuthFlow"}},pinCodeFailure:{on:{SUBMIT_PIN_CODE:{target:"submittingPinCode",actions:(0,u.f0)({pinCode:(e,t)=>t.pinCode})},RESUBMIT_EMAIL:"resubmittingEmail"}},restartingAuthFlow:{invoke:{src:"handleSignOut",onDone:{target:"awaitingEmail"},onError:{target:"signOutFailure",actions:(0,u.f0)({error:(e,t)=>t.data.error})}}},signOutFailure:{always:{target:"awaitingEmail"}}}},creatingUser:{invoke:{src:"handleCreateUser",onDone:{target:"authSuccess"},onError:{target:"creatingUserFailure",actions:(0,u.f0)({error:(e,t)=>t.data})}}},creatingUserFailure:{},authSuccess:{after:{1e3:"redirect"}},redirect:{type:"final",entry:"redirectToAnotherPage"}}},{actions:{redirectToAnotherPage:(e,t)=>{f.push(i||"/dashboard")}},services:{handleSignInWithOtp:(e,t)=>m(e,t),handleVerifyOtp:(e,t)=>h(e,t),handleCreateUser:(e,t)=>g(e,t),handleSignOut:(e,t)=>x(e,t)}})}({session:i,redirectTo:f,supabaseUser:null==i?void 0:i.user,currentUser:null,email:null==i?void 0:null===(t=i.user)||void 0===t?void 0:t.email}),[v,b]=(0,s.e)(w),j=["existingSession"].some(v.matches),y=["authFlow.awaitingEmail","authFlow.submittingEmail","authFlow.emailFailure"].some(v.matches),Z=["authFlow.awaitingPinCode","authFlow.submittingPinCode","authFlow.pinCodeFailure","authFlow.resubmittingEmail"].some(v.matches),z=["authSuccess","redirect"].some(v.matches),E=["creatingUser","authSuccess","redirect","authFlow.restartingAuthFlow"].some(v.matches),F="",I="";return F="/login"==l?"Sign in to Velvet":"Get started with Velvet",v.matches("existingSession")&&(F="Welcome back!",I="You're already signed in to Velvet."),"/login"==l&&v.matches("authFlow.awaitingEmail")?I="Sign in to your Velvet account to continue.":"/register"==l&&v.matches("authFlow.awaitingEmail")&&(I="Create a Velvet account to continue."),(v.matches("authFlow.submittingEmail")||v.matches("authFlow.resubmittingEmail"))&&(I="We're sending you an email with an auth code."),v.matches("authFlow.emailFailure")&&(I="We're having trouble sending you an email. Please try again."),v.matches("authFlow.awaitingPinCode")&&(I="Enter the 6-digit code we sent to your email."),v.matches("authFlow.submittingPinCode")&&(I="We're verifying your code."),v.matches("authFlow.pinCodeFailure")&&(I="We're having trouble verifying your code. Please try again."),z&&(F="You're signed in!",I="Redirecting you to the dashboard."),v.matches("authFlow.restartingAuthFlow")&&(F="",I=""),(0,n.jsx)("div",{className:"flex flex-wrap items-center justify-center h-full w-full mx-auto",children:(0,n.jsxs)("div",{className:"flex flex-grow h-full w-full flex-col justify-start px-12 lg:flex-none lg:aspect-1 lg:p-0",children:[!1,(0,n.jsxs)("div",{className:"mb-4",children:[(0,n.jsx)(V,{title:F}),(0,n.jsx)(L,{description:I})]}),(0,n.jsxs)("div",{className:"flex flex-col min-h-[50vh] justify-top space-y-4",children:[j&&(0,n.jsx)(C,{state:v,send:b}),y&&(0,n.jsx)(S,{state:v,send:b,prefilledEmail:p}),Z&&(0,n.jsx)(T,{state:v,send:b}),E&&(0,n.jsx)("div",{className:"mx-auto flex w-full flex-col text-center items-center sm:w-80",children:(0,n.jsx)(a.P.spinner,{size:"24",className:"ml-1 animate-spin justify-center"})}),!E&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N,{}),!j&&!Z&&(0,n.jsx)(M,{pathname:l})]})]})]})})}var U=O;function V(e){let{title:t}=e;return(0,n.jsx)("div",{className:"mb-2 w-full text-center text-2xl font-semibold",children:t})}function L(e){let{description:t}=e;return(0,n.jsx)("div",{className:"mx-auto w-full text-center text-base font-normal",children:t})}},9672:function(e,t,i){"use strict";i.d(t,{P:function(){return eC}});var n=i(57437),a=i(77326),s=i(38008),r=i(1986),l=i(10527),o=i(37501),c=i(52235),u=i(93276),d=i(18994),m=i(49108),h=i(37805),f=i(81708),g=i(66806),x=i(69475),p=i(3428),w=i(65561),v=i(29910),b=i(18469),j=i(97373),y=i(70094),Z=i(25310),C=i(6074),z=i(61524),N=i(58943),E=i(11213),F=i(63854),S=i(34059),I=i(18025),k=i(53879),P=i(93459),_=i(57197),T=i(75879),M=i(23417),O=i(80037),U=i(57976),V=i(23416),L=i(92379),A=i(61203),R=i(23801),B=i(72891),W=i(15474),D=i(5227),H=i(20244),q=i(81049),G=i(75462),X=i(78147),Y=i(17252),$=i(85149),J=i(58350),K=i(27876),Q=i(67366),ee=i(77618),et=i(90684),ei=i(63758),en=i(54182),ea=i(97404),es=i(18727),er=i(55211),el=i(99841),eo=i(86085),ec=i(34324),eu=i(40834),ed=i(72653),em=i(4200),eh=i(70699),ef=i(74365),eg=i(79990),ex=i(80031),ep=i(8967),ew=i(72560),ev=i(93810),eb=i(64067),ej=i(85159),ey=i(23441),eZ=i(39263);let eC={logo:e=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"})}),building:a.Z,bug:s.Z,formInput:r.Z,creditCard:l.Z,circle:o.Z,close:c.Z,database:u.Z,spinner:d.Z,chevronLeft:m.Z,chevronRight:h.Z,externalLink:f.Z,trash:g.Z,post:x.Z,page:p.Z,media:w.Z,settings:v.Z,billing:l.Z,ellipsis:b.Z,moreHorizontal:j.Z,add:y.Z,plusCircle:Z.Z,plusSquare:C.Z,warning:z.Z,flag:N.Z,user:E.Z,userPlus:F.Z,users:S.Z,arrowRight:I.Z,arrowLeft:k.Z,help:P.Z,pizza:_.Z,star:T.Z,twitter:M.Z,check:O.Z,checkCircle:U.Z,copy:V.Z,copyDone:L.Z,sun:A.Z,store:R.Z,moon:B.Z,keyRound:W.Z,laptop:D.Z,link:H.Z,logout:q.Z,radio:G.Z,minusCircle:X.Z,wallet:Y.Z,mailCheck:$.Z,dot:J.Z,fingerprint:K.Z,chat:Q.Z,globe:ee.Z,mail:et.Z,maximize2:ei.Z,minimize2:en.Z,moreVertical:b.Z,zap:ea.Z,sparkles:es.Z,heart:er.Z,forward:el.Z,cornerDownLeft:eo.Z,cornerDownRight:ec.Z,refreshCw:eu.Z,stopCircle:ed.Z,command:em.Z,save:eh.Z,panelLeft:ef.Z,send:eg.Z,table:ex.Z,arrowUpRight:ep.Z,tally4:ew.Z,heartOff:ev.Z,gripVertical:eb.Z,chevronUp:ej.Z,chevronDown:ey.Z,experiments:eZ.Z,slash:e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide",...e,children:(0,n.jsx)("path",{d:"M16.88 3.549L7.12 20.451"})}),gitHub:e=>(0,n.jsx)("svg",{viewBox:"0 0 438.549 438.549",...e,children:(0,n.jsx)("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),radix:e=>(0,n.jsxs)("svg",{viewBox:"0 0 25 25",fill:"none",...e,children:[(0,n.jsx)("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",fill:"currentcolor"}),(0,n.jsx)("path",{d:"M12 0H4V8H12V0Z",fill:"currentcolor"}),(0,n.jsx)("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",fill:"currentcolor"})]}),npm:e=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"})}),yarn:e=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z"})}),pnpm:e=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z"})}),react:e=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})}),tailwind:e=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z"})})}},85754:function(e,t,i){"use strict";i.d(t,{d:function(){return o},z:function(){return c}});var n=i(57437),a=i(2265),s=i(59143),r=i(57742),l=i(74526);let o=(0,r.j)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded-md px-2.5",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:i,variant:a,size:r,asChild:c=!1,...u}=e,d=c?s.g7:"button";return(0,n.jsx)(d,{className:(0,l.cn)(o({variant:a,size:r,className:i})),ref:t,...u})});c.displayName="Button"},45179:function(e,t,i){"use strict";i.d(t,{I:function(){return r}});var n=i(57437),a=i(2265),s=i(74526);let r=a.forwardRef((e,t)=>{let{className:i,type:a,...r}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",i),ref:t,...r})});r.displayName="Input"},49842:function(e,t,i){"use strict";i.r(t),i.d(t,{Label:function(){return c}});var n=i(57437),a=i(2265),s=i(24602),r=i(57742),l=i(74526);let o=(0,r.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=a.forwardRef((e,t)=>{let{className:i,...a}=e;return(0,n.jsx)(s.f,{ref:t,className:(0,l.cn)(o(),i),...a})});c.displayName=s.f.displayName}}]);