1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="03647f95-b72b-469d-ba0b-926eea3d6cd6",e._sentryDebugIdIdentifier="sentry-dbid-03647f95-b72b-469d-ba0b-926eea3d6cd6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1365],{1886:(e,t,a)=>{a.d(t,{o:()=>s});let s={organizations:!1,paidPlans:!0,contest:!1,contestInstantProvision:!1}},12394:(e,t,a)=>{a.d(t,{U:()=>u});var s=a(95155),o=a(70460),r=a(51900),n=a(36999),i=a(92972),d=a(72846),l=a(48333);let c=[{value:"light",label:"Light",icon:r.A},{value:"dark",label:"Dark",icon:n.A},{value:"system",label:"System",icon:i.A}];function u(){let{theme:e,setTheme:t}=(0,o.D)();return(0,s.jsxs)(l.AM,{children:[(0,s.jsx)(l.Wv,{asChild:!0,children:(0,s.jsxs)(d.$,{variant:"ghost",size:"icon",className:"size-10 text-nav-text hover:text-nav-text-hover hover:bg-(--nav-hover-bg)","aria-label":"Toggle theme",children:[(0,s.jsx)(r.A,{className:"size-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,s.jsx)(n.A,{className:"absolute size-4 rotate-90 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})}),(0,s.jsx)(l.hl,{align:"end",className:"w-36 border-surface-border bg-surface p-1",children:c.map(({value:a,label:o,icon:r})=>(0,s.jsxs)("button",{onClick:()=>t(a),className:`flex w-full items-center gap-2 rounded-md px-2.5 py-1.5 text-sm transition-colors ${e===a?"bg-brand-muted text-brand font-medium":"text-surface-foreground hover:bg-(--nav-hover-bg)"}`,children:[(0,s.jsx)(r,{className:"size-3.5"}),o]},a))})]})}},14971:(e,t,a)=>{a.d(t,{p:()=>h});var s=a(95155),o=a(41313),r=a(66609),n=a(34586),i=a(34565),d=a(38801),l=a(72846),c=a(48333),u=a(36995);function h({displayName:e}){async function t(){try{(0,i.sx)(d.T_),(0,i.p3)(),await n.Z.logout(),window.location.href="/"}catch{r.oR.error("Failed to sign out")}}return(0,s.jsxs)(c.AM,{children:[(0,s.jsx)(c.Wv,{asChild:!0,children:(0,s.jsx)(l.$,{variant:"ghost",size:"icon",className:"size-10 text-muted-foreground hover:text-foreground",children:(0,s.jsx)("div",{className:"flex size-7 items-center justify-center rounded-full bg-muted text-xs font-medium text-foreground",children:function(e){if(e.includes("@"))return e[0]?.toUpperCase()??"?";let t=e.trim().split(/\s+/);return(t[0]?.[0]?.toUpperCase()??"?")+(t.length>1?t[t.length-1]?.[0]?.toUpperCase()??"":"")}(e)})})}),(0,s.jsxs)(c.hl,{align:"end",className:"w-56 border-surface-border bg-surface p-2",children:[(0,s.jsxs)("div",{className:"px-2 py-1.5",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Signed in as"}),(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:e})]}),(0,s.jsx)(u.w,{className:"my-1 bg-surface-border"}),(0,s.jsxs)(l.$,{variant:"ghost",size:"sm",onClick:()=>void t(),className:"w-full justify-start gap-2 text-destructive hover:text-destructive hover:bg-destructive/10",children:[(0,s.jsx)(o.A,{className:"size-4"}),"Sign Out"]})]})]})}},25108:(e,t,a)=>{a.d(t,{c:()=>o,h:()=>r});var s=a(1886);let o=[{href:"/",label:"Home",exact:!0},{href:"/docs",label:"Docs"},{href:"/dashboard",label:"Dashboard",exact:!0},{href:"/usage",label:"Usage"},{href:"/billing",label:"Billing"},{href:"/plans",label:"Plans"},{href:"/dashboard/security",label:"Security"},...s.o.organizations?[{href:"/organizations",label:"Organizations"}]:[]],r=[{href:"/dashboard",label:"Overview",exact:!0},{href:"/usage",label:"Usage"},{href:"/billing",label:"Billing"},{href:"/plans",label:"Plans"},{href:"/dashboard/security",label:"Security"},...s.o.organizations?[{href:"/organizations",label:"Organizations"}]:[]]},27847:(e,t,a)=>{a.d(t,{CG:()=>d,Fm:()=>f,cj:()=>i,h:()=>h,kN:()=>l,qp:()=>g});var s=a(95155);a(12115);var o=a(33210),r=a(43146),n=a(40980);function i({...e}){return(0,s.jsx)(r.bL,{"data-slot":"sheet",...e})}function d({...e}){return(0,s.jsx)(r.l9,{"data-slot":"sheet-trigger",...e})}function l({...e}){return(0,s.jsx)(r.bm,{"data-slot":"sheet-close",...e})}function c({...e}){return(0,s.jsx)(r.ZL,{"data-slot":"sheet-portal",...e})}function u({className:e,...t}){return(0,s.jsx)(r.hJ,{"data-slot":"sheet-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function h({className:e,children:t,side:a="right",showCloseButton:i=!0,...d}){return(0,s.jsxs)(c,{children:[(0,s.jsx)(u,{}),(0,s.jsxs)(r.UC,{"data-slot":"sheet-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===a&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===a&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===a&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===a&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...d,children:[t,i&&(0,s.jsxs)(r.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,s.jsx)(o.A,{className:"size-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function f({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-1.5 p-4",e),...t})}function g({className:e,...t}){return(0,s.jsx)(r.hE,{"data-slot":"sheet-title",className:(0,n.cn)("text-foreground font-semibold",e),...t})}},34586:(e,t,a)=>{a.d(t,{Z:()=>r,h:()=>s});
1class s extends Error{constructor(e,t){super(t),this.status=e,this.name="ApiError"}}async function o(e,t){let a=await fetch(e,{headers:{"Content-Type":"application/json",...t?.headers},credentials:"include",...t});if(!a.ok){let e=await a.json().catch(()=>({error:a.statusText}));throw new s(a.status,e.error??e.message??a.statusText)}return a.json()}let r={login:e=>o("/api/auth/login",{method:"POST",body:JSON.stringify(e)}),register:e=>o("/api/auth/register",{method:"POST",body:JSON.stringify(e)}),logout:()=>o("/api/auth/logout",{method:"POST"}),logoutAll:()=>o("/api/auth/logout-all",{method:"POST"}),me:()=>o("/api/auth/me"),verifyEmail:e=>o("/api/auth/verify",{method:"POST",body:JSON.stringify(e)}),requestVerify:e=>o("/api/auth/request-verify",{method:"POST",body:JSON.stringify(e?{redirectPath:e}:{})}),forgotPassword:e=>o("/api/auth/forgot-password",{method:"POST",body:JSON.stringify(e)}),resetPassword:e=>o("/api/auth/reset-password",{method:"POST",body:JSON.stringify(e)}),vscodeInitiate:e=>o("/api/auth/vscode/initiate",{method:"POST",body:JSON.stringify({callbackUrl:e})}),oauthConsent:e=>o("/api/oauth/consent",{method:"POST",body:JSON.stringify(e)}),verify2fa:e=>o("/api/2fa/verify",{method:"POST",body:JSON.stringify(e)}),resendLoginCode:e=>o("/api/2fa/resend-login-code",{method:"POST",body:JSON.stringify({tempToken:e})})}},36995:(e,t,a)=>{a.d(t,{w:()=>n});var s=a(95155);a(12115);var o=a(15763),r=a(40980);function n({className:e,orientation:t="horizontal",decorative:a=!0,...i}){return(0,s.jsx)(o.b,{"data-slot":"separator",decorative:a,orientation:t,className:(0,r.cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...i})}},48333:(e,t,a)=>{a.d(t,{AM:()=>n,Wv:()=>i,hl:()=>d});var s=a(95155);a(12115);var o=a(40093),r=a(40980);function n({...e}){return(0,s.jsx)(o.bL,{"data-slot":"popover",...e})}function i({...e}){return(0,s.jsx)(o.l9,{"data-slot":"popover-trigger",...e})}function d({className:e,align:t="center",sideOffset:a=4,...n}){return(0,s.jsx)(o.ZL,{children:(0,s.jsx)(o.UC,{"data-slot":"popover-content",align:t,sideOffset:a,className:(0,r.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.