1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,355538,e=>{"use strict";var t=e.i(815544),r=e.i(867013),a=e.i(307436),s=e.i(587939);function n({...e}){return(0,t.jsx)(r.Portal,{"data-slot":"dialog-portal",...e})}function i({className:e,...a}){return(0,t.jsx)(r.Overlay,{"data-slot":"dialog-overlay",className:(0,s.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),...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(r.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,...l}){return(0,t.jsxs)(n,{"data-slot":"dialog-portal",children:[(0,t.jsx)(i,{}),(0,t.jsxs)(r.Content,{"data-slot":"dialog-content",className:(0,s.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...l,children:[o,(0,t.jsxs)(r.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(r.Description,{"data-slot":"dialog-description",className:(0,s.cn)("text-muted-foreground text-sm",e),...a})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,s.cn)("flex flex-col gap-2 text-center sm:text-left",e),...r})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(r.Title,{"data-slot":"dialog-title",className:(0,s.cn)("text-lg leading-none font-semibold",e),...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(r.Trigger,{"data-slot":"dialog-trigger",...e})}])},651950,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let a=e.r(831745);function s({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new a.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},880649,(e,t,r)=>{"use strict";function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return a}})},636927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return l}});let a=e.r(815544),s=e.r(231374),n=e.r(558170),i=e.r(880649),o=e.r(517398);function l({moduleIds:e}){if("u">typeof window)return null;let t=n.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;r.push(...e)}}if(0===r.length)return null;let c=(0,o.getAssetTokenQuery)();return(0,a.jsx)(a.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,i.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,s.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},604579,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let a=e.r(815544),s=e.r(890178),n=e.r(651950),i=e.r(636927);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},c=function(e){let t={...l,...e},r=(0,s.lazy)(()=>t.loader().then(o)),c=t.loading;function d(e){let o=c?(0,a.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,d=l?s.Suspense:s.Fragment,u=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(i.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(r,{...e})]}):(0,a.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,{...e})});return(0,a.jsx)(d,{...l?{fallback:o}:{},children:u})}return d.displayName="LoadableComponent",d}},348823,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let a=e.r(481258)._(e.r(604579));function s(e,t){let r={};"function"==typeof e&&(r.loader=e);let s={...r,...t};return(0,a.default)({...s,modules:s.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},543734,221647,e=>{"use strict";var t=e.i(904274);let r=(0,t.default)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["EyeIcon",0,r],543734);let a=(0,t.default)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOffIcon",0,a],221647)},904274,e=>{"use strict";var t=e.i(890178);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var a={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"};let s=(0,t.forwardRef)(({color:e="currentColor",size:s=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:c,...d},u)=>(0,t.createElement)("svg",{ref:u,...a,width:s,height:s,stroke:e,strokeWidth:i?24*Number(n)/Number(s):n,className:r("lucide",o),...d},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]]));e.s(["default",0,(e,a)=>{let n=(0,t.forwardRef)(({className:n,...i},o)=>(0,t.createElement)(s,{ref:o,iconNode:a,className:r(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...i}));return n.displayName=`${e}`,n}],904274)},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t.clsx;e.s(["cva",0,(e,t)=>s=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==s?void 0:s.class,null==s?void 0:s.className);let{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(e=>{let t=null==s?void 0:s[e],a=null==o?void 0:o[e];if(null===t)return null;let n=r(t)||r(a);return i[e][n]}),c=s&&Object.entries(s).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return a(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:a,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...c}[t]):({...o,...c})[t]===r})?[...e,r,a]:e},[]),null==s?void 0:s.class,null==s?void 0:s.className)}])},762073,e=>{"use strict";let t,r,a;var s=e.i(890178),n=e.i(144977),i=e.i(815544),o=Symbol.for("react.lazy"),l=s[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===o&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=((a=s.forwardRef((e,t)=>{let{children:r,...a}=e;if(c(r)&&"function"==typeof l&&(r=l(r._payload)),s.isValidElement(r)){var i;let e,o,l=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),c=function(e,t){let r={...t};for(let a in t){let s=e[a],n=t[a];/^on[A-Z]/.test(a)?s&&n?r[a]=(...e)=>{let t=n(...e);return s(...e),t}:s&&(r[a]=s):"style"===a?r[a]={...s,...n}:"className"===a&&(r[a]=[s,n].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==s.Fragment&&(c.ref=t?(0,n.composeRefs)(t,l):l),s.cloneElement(r,c)}return s.Children.count(r)>1?s.Children.only(null):null})).displayName="Slot.SlotClone",t=a,(r=s.forwardRef((e,r)=>{let{children:a,...n}=e;c(a)&&"function"==typeof l&&(a=l(a._payload));let o=s.Children.toArray(a),d=o.find(m);if(d){let e=d.props.children,a=o.map(t=>
1t!==d?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...n,ref:r,children:s.isValidElement(e)?s.cloneElement(e,void 0,a):null})}return(0,i.jsx)(t,{...n,ref:r,children:a})})).displayName="Slot.Slot",r),u=Symbol("radix.slottable");function m(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}e.s(["Slot",0,d])},650610,e=>{"use strict";var t=e.i(815544),r=e.i(762073),a=e.i(294237),s=e.i(587939);let n=(0,a.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:a,size:i,asChild:o=!1,...l}){let c=o?r.Slot:"button";return(0,t.jsx)(c,{"data-slot":"button",className:(0,s.cn)(n({variant:a,size:i,className:e})),...l})},"buttonVariants",0,n])},6184,e=>{"use strict";let t=(0,e.i(904274).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},584608,e=>{"use strict";var t=e.i(6184);e.s(["Loader2Icon",()=>t.default])},706556,e=>{"use strict";var t=e.i(815544),r=e.i(587939);e.s(["Input",0,function({className:e,type:a,...s}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...s})}])},158604,e=>{"use strict";var t=e.i(815544),r=e.i(890178),a=e.i(556872),s=r.forwardRef((e,r)=>(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var n=e.i(587939);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(s,{"data-slot":"label",className:(0,n.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],158604)},772560,e=>{"use strict";let t=(0,e.i(904274).default)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t])},49,e=>{"use strict";var t=e.i(815544),r=e.i(587939);e.s(["Card",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",e),...a})},"CardFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center px-6 [.border-t]:pt-6",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",e),...a})}])},584185,e=>{"use strict";var t=e.i(815544),r=e.i(839471),a=e.i(587939),s=e.i(242092),n=e.i(622279),i=e.i(890178);e.s(["Logo",0,function({className:e}){let{theme:o}=(0,s.useTheme)(),[l,c]=(0,i.useState)(!1),d=r.websiteConfig.metadata.images?.logoLight??"/logo.png",u=r.
1websiteConfig.metadata.images?.logoDark??d;return(0,i.useEffect)(()=>{c(!0)},[]),(0,t.jsx)(n.default,{src:l&&"dark"===o?u:d,alt:"Logo",title:"Logo",width:43,height:34,className:(0,a.cn)("h-[26px] w-[34px] rounded-none",e)})}])},965246,e=>{"use strict";var t=e.i(815544),r=e.i(16610),a=e.i(650610),s=e.i(587939);let n=({href:e,label:n})=>(0,t.jsx)(r.LocaleLink,{href:e,className:(0,s.cn)((0,a.buttonVariants)({variant:"link",size:"sm"}),"font-normal w-full text-muted-foreground hover:underline underline-offset-4 hover:text-primary"),children:n});var i=e.i(584185),o=e.i(49);e.s(["AuthCard",0,({children:e,headerLabel:a,bottomButtonLabel:l,bottomButtonHref:c,className:d})=>(0,t.jsxs)(o.Card,{className:(0,s.cn)("shadow-xs border border-border",d),children:[(0,t.jsxs)(o.CardHeader,{className:"flex flex-col items-center",children:[(0,t.jsx)(r.LocaleLink,{href:"/",prefetch:!1,children:(0,t.jsx)(i.Logo,{className:"mb-2"})}),(0,t.jsx)(o.CardDescription,{children:a})]}),(0,t.jsx)(o.CardContent,{children:e}),l&&c&&(0,t.jsx)(o.CardFooter,{children:(0,t.jsx)(n,{label:l,href:c})})]})],965246)},254896,e=>{"use strict";var t=e.i(815544),r=e.i(772560),r=r;e.s(["FormSuccess",0,({message:e})=>e?(0,t.jsxs)("div",{className:"bg-emerald-500/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-emerald-500",children:[(0,t.jsx)(r.default,{className:"h-4 w-4"}),(0,t.jsx)("p",{children:e})]}):null],254896)},109008,e=>{"use strict";var t=e.i(815544);e.s(["GitHubIcon",0,function(e){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:46.5,height:48,viewBox:"0 0 496 512",...e,children:[(0,t.jsx)("title",{children:"GitHub"}),(0,t.jsx)("path",{fill:"currentColor",d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6c-3.3.3-5.6-1.3-5.6-3.6c0-2 2.3-3.6 5.2-3.6c3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9c2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9c.3 2 2.9 3.3 5.9 2.6c2.9-.7 4.9-2.6 4.6-4.6c-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2c12.8 2.3 17.3-5.6 17.3-12.1c0-6.2-.3-40.4-.3-61.4c0 0-70 15-84.7-29.8c0 0-11.4-29.1-27.8-36.6c0 0-22.9-15.7 1.6-15.4c0 0 24.9 2 38.6 25.8c21.9 38.6 58.6 27.5 72.9 20.9c2.3-16 8.8-27.1 16-33.7c-55.9-6.2-112.3-14.3-112.3-110.5c0-27.5 7.6-41.3 23.6-58.9c-2.6-6.5-11.1-33.3 2.6-67.9c20.9-6.5 69 27 69 27c20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27c13.7 34.7 5.2 61.4 2.6 67.9c16 17.7 25.8 31.5 25.8 58.9c0 96.5-58.9 104.2-114.8 110.5c9.2 7.9 17 22.9 17 46.4c0 33.7-.3 75.4-.3 83.6c0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252C496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2c1.6 1.6 3.9 2.3 5.2 1c1.3-1 1-3.3-.7-5.2c-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9c1.6 1 3.6.7 4.3-.7c.7-1.3-.3-2.9-2.3-3.9c-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2c2.3 2.3 5.2 2.6 6.5 1c1.3-1.3.7-4.3-1.3-6.2c-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2c-1.4-2.3-4-3.3-5.6-2"})]})}])},288765,240427,126107,e=>{"use strict";var t=e.i(241972);let r=(0,t.createServerReference)("7fe3c79085fad63a2c407132859f150bacd662559e",t.callServer,void 0,t.findSourceMapURL,"validateCaptchaAction");e.s(["validateCaptchaAction",0,r],288765),e.i(272554);var a=e.i(815544),s=e.i(839471),n=e.i(723199),i=e.i(862336),o=e.i(242092),l=e.i(348823),c=e.i(890178);let d=(0,l.default)(()=>e.A(352292).then(e=>e.Turnstile),{loadableGenerated:{modules:[614268]},ssr:!1}),u=(0,c.forwardRef)(({validationError:e,...t},r)=>{if(!s.websiteConfig.features.enableTurnstileCaptcha)return null;let l=(0,o.useTheme)(),c=(0,i.useLocale)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d,{ref:r,options:{size:"flexible",language:c,theme:"dark"===l.theme?"dark":"light",refreshExpired:"auto"},...t,siteKey:"0x4AAAAAADt5rlx0tw77seRR"}),e&&(0,a.jsx)(n.FormMessage,{className:"text-red-500 mt-2",children:e})]})});u.displayName="Captcha",e.s(["Captcha",0,u],240427);var m=e.i(806654),f=e.i(587939);let g=({text:e,className:t})=>(0,a.jsxs)("div",{className:(0,f.cn)("relative flex items-center",t),children:[(0,a.jsx)("div",{className:"grow border-t border-border"}),(0,a.jsx)("span",{className:"shrink mx-4 text-sm text-muted-foreground",children:e}),(0,a.jsx)("div",{className:"grow border-t border-border"})]});var p=e.i(109008);function h(e){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:45.75,height:48,viewBox:"0 0 488 512",...e,children:[(0,a.jsx)("title",{children:"Google"}),(0,a.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504C110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6c98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4"})]})}
1var x=e.i(924550),b=e.i(203136),v=e.i(527248),j=e.i(650610),y=e.i(584608),w=e.i(374810),k=e.i(702921);e.s(["SocialLoginButton",0,({callbackUrl:e,showDivider:t=!0})=>{if(!s.websiteConfig.auth.enableGoogleLogin&&!s.websiteConfig.auth.enableGithubLogin)return null;let r=(0,w.useTranslations)("AuthPage.login"),n=(0,k.useSearchParams)(),o=(0,k.usePathname)(),l=n.get("callbackUrl"),d=(0,i.useLocale)(),u=(0,b.getUrlWithLocale)(v.DEFAULT_LOGIN_REDIRECT,d),f=e||l||u,[C,N]=(0,c.useState)(null);console.log("social login button, callbackUrl",f);let _=async e=>{(0,m.rememberOAuthAttempt)(e,o),(0,m.trackEvent)("oauth_started",{method:e,from_page:o}),await x.authClient.signIn.social({provider:e,callbackURL:f,errorCallbackURL:v.Routes.AuthError},{onRequest:t=>{N(e)},onResponse:e=>{N(null)},onSuccess:t=>{(0,m.trackEvent)("oauth_redirect_created",{method:e,from_page:o}),N(null)},onError:t=>{console.log("social login error",t.error.message),(0,m.clearOAuthAttempt)(),(0,m.trackEvent)("signin_failed",{method:e,from_page:o,error_code:t.error.status?String(t.error.status):t.error.code??"unknown",error_message:t.error.message}),N(null)}})};return(0,a.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[t&&(0,a.jsx)(g,{text:r("or")}),s.websiteConfig.auth.enableGoogleLogin&&(0,a.jsxs)(j.Button,{size:"lg",className:"w-full cursor-pointer",variant:"outline",onClick:()=>_("google"),disabled:"google"===C,children:["google"===C?(0,a.jsx)(y.Loader2Icon,{className:"mr-2 size-4 animate-spin"}):(0,a.jsx)(h,{className:"size-4 mr-2"}),(0,a.jsx)("span",{children:r("signInWithGoogle")})]}),s.websiteConfig.auth.enableGithubLogin&&(0,a.jsxs)(j.Button,{size:"lg",className:"w-full cursor-pointer",variant:"outline",onClick:()=>_("github"),disabled:"github"===C,children:["github"===C?(0,a.jsx)(y.Loader2Icon,{className:"mr-2 size-4 animate-spin"}):(0,a.jsx)(p.GitHubIcon,{className:"size-4 mr-2"}),(0,a.jsx)("span",{children:r("signInWithGitHub")})]})]})}],126107)},479174,e=>{"use strict";var t=e.i(815544),r=e.i(288765),a=e.i(806654),s=e.i(965246),n=e.i(103907),i=e.i(254896),o=e.i(839471),l=e.i(16610),c=e.i(924550),d=e.i(203136),u=e.i(527248),m=e.i(344226),f=e.i(650610),g=e.i(723199),p=e.i(706556),h=e.i(587939),x=e.i(543734),b=e.i(221647),v=e.i(584608),j=e.i(862336),y=e.i(374810),w=e.i(702921),k=e.i(890178),C=e.i(474221),N=e.i(703573),_=e.i(240427),L=e.i(126107);e.s(["LoginForm",0,({className:e,callbackUrl:R})=>{let S=(0,y.useTranslations)("AuthPage.login"),E=(0,w.useSearchParams)(),P=(0,w.usePathname)(),T=E.get("error"),A=E.get("callbackUrl"),O=(0,j.useLocale)(),I=(0,d.getUrlWithLocale)(u.DEFAULT_LOGIN_REDIRECT,O),z=R||A||I;console.log("login form, callbackUrl",z);let[D,F]=(0,k.useState)(""),[M,U]=(0,k.useState)(""),[B,$]=(0,k.useState)(!1),[G,W]=(0,k.useState)(!1),V=(0,k.useRef)(null),H=o.websiteConfig.auth.enableCredentialLogin,q=o.websiteConfig.features.enableTurnstileCaptcha&&o.websiteConfig.features.enableAuthCaptcha&&!0,K=q?N.string().min(1,"Please complete the captcha"):N.string().optional(),X=N.object({email:N.email({message:S("emailRequired")}),password:N.string().min(1,{message:S("passwordRequired")}),captchaToken:K}),Z=(0,C.useForm)({resolver:(0,m.zodResolver)(X),defaultValues:{email:"",password:"",captchaToken:""}}),Q=(0,C.useWatch)({control:Z.control,name:"captchaToken"}),J=()=>{Z.setValue("captchaToken",""),V.current&&"function"==typeof V.current.reset&&V.current.reset()},Y=async e=>{if(q&&e.captchaToken){$(!0),F(""),U("");let t=await (0,r.validateCaptchaAction)({captchaToken:e.captchaToken});if(!t?.data?.success||!t?.data?.valid){console.error("login, captcha invalid:",e.captchaToken);let r=t?.data?.error||S("captchaInvalid");F(r),$(!1),(0,a.trackEvent)("signin_failed",{method:"email",from_page:P,error_code:"captcha_invalid",error_message:r}),J();return}}(0,a.trackEvent)("signin_started",{method:"email",from_page:P}),await c.authClient.signIn.email({email:e.email,password:e.password,callbackURL:z},{onRequest:e=>{$(!0),F(""),U("")},onResponse:e=>{$(!1)},onSuccess:e=>{(0,a.trackEvent)("signin_succeeded",{method:"email"})},onError:e=>{F(`${e.error.status}: ${e.error.message}`),(0,a.trackEvent)("signin_failed",{method:"email",from_page:P,error_code:e.error.status?String(e.error.status):e.error.code??"unknown",error_message:e.error.message}),q&&J()}})},ee=()=>{W(e=>!e)};return(0,t.jsxs)(s.AuthCard,{headerLabel:S("welcomeBack"),className:(0,h.cn)("",e),children:[H&&(0,t.jsx)(g.Form,{...Z,children:(0,t.jsxs)("form",{onSubmit:Z.handleSubmit(Y),className:"space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(g.FormField,{control:Z.control,name:"email",render:({field:e})=>(0,t.jsxs)(g.FormItem,{children:[(0,t.jsx)(g.FormLabel,{children:S("email")}
1),(0,t.jsx)(g.FormControl,{children:(0,t.jsx)(p.Input,{...e,disabled:B,placeholder:"[email protected]",type:"email"})}),(0,t.jsx)(g.FormMessage,{})]})}),(0,t.jsx)(g.FormField,{control:Z.control,name:"password",render:({field:e})=>(0,t.jsxs)(g.FormItem,{children:[(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)(g.FormLabel,{children:S("password")}),(0,t.jsx)(f.Button,{size:"sm",variant:"link",asChild:!0,className:"px-0 font-normal text-muted-foreground",children:(0,t.jsx)(l.LocaleLink,{href:`${u.Routes.ForgotPassword}`,className:"text-xs hover:underline hover:underline-offset-4 hover:text-primary",children:S("forgotPassword")})})]}),(0,t.jsx)(g.FormControl,{children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(p.Input,{...e,disabled:B,placeholder:"******",type:G?"text":"password",className:"pr-10"}),(0,t.jsxs)(f.Button,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:ee,disabled:B,children:[G?(0,t.jsx)(b.EyeOffIcon,{className:"size-4 text-muted-foreground"}):(0,t.jsx)(x.EyeIcon,{className:"size-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"sr-only",children:G?S("hidePassword"):S("showPassword")})]})]})}),(0,t.jsx)(g.FormMessage,{})]})})]}),(0,t.jsx)(n.FormError,{message:D||T||void 0}),(0,t.jsx)(i.FormSuccess,{message:M}),q&&(0,t.jsx)(_.Captcha,{ref:V,onSuccess:e=>Z.setValue("captchaToken",e),validationError:Z.formState.errors.captchaToken?.message}),(0,t.jsxs)(f.Button,{disabled:B||q&&!Q,size:"lg",type:"submit",className:"w-full flex items-center justify-center gap-2 cursor-pointer",children:[B&&(0,t.jsx)(v.Loader2Icon,{className:"mr-2 size-4 animate-spin"}),(0,t.jsx)("span",{children:S("signIn")})]})]})}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(L.SocialLoginButton,{callbackUrl:z,showDivider:H})})]})}])},577088,e=>{"use strict";var t=e.i(815544),r=e.i(479174),a=e.i(16610),s=e.i(527248),n=e.i(355538),i=e.i(374810),o=e.i(890178);e.s(["LoginWrapper",0,({children:e,mode:l="redirect",asChild:c,callbackUrl:d,open:u,onOpenChange:m})=>{let f=(0,i.useTranslations)("AuthPage.login"),g=(0,a.useLocaleRouter)(),[p,h]=(0,o.useState)(!1),[x,b]=(0,o.useState)(!1),v=void 0!==u;return((0,o.useEffect)(()=>{h(!0)},[]),p)?"modal"===l?(0,t.jsxs)(n.Dialog,{open:v?u:x,onOpenChange:e=>{v||b(e),m?.(e)},children:[e?(0,t.jsx)(n.DialogTrigger,{asChild:c,children:e}):null,(0,t.jsxs)(n.DialogContent,{className:"sm:max-w-[400px] p-0",children:[(0,t.jsxs)(n.DialogHeader,{className:"sr-only",children:[(0,t.jsx)(n.DialogTitle,{children:f("title")}),(0,t.jsx)(n.DialogDescription,{children:f("dialogDescription")})]}),(0,t.jsx)(r.LoginForm,{callbackUrl:d,className:"border-none"})]})]}):(0,t.jsx)("span",{onClick:()=>{let e=d?`${s.Routes.Login}?callbackUrl=${encodeURIComponent(d)}`:`${s.Routes.Login}`;g.push(e)},className:"cursor-pointer",children:e}):null}])}]);
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.