1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56420,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};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 i=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:n,strokeWidth:s,absoluteStrokeWidth:o,className:l="",children:c,iconNode:d,...u},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,color:v="currentColor",className:x=""}=(0,t.useContext)(i)??{},g=o??h?24*Number(s??m)/Number(n??p):s??m;return(0,t.createElement)("svg",{ref:f,...a,width:n??p??a.width,height:n??p??a.height,stroke:e??v,strokeWidth:g,className:r("lucide",x,l),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(c)?c:[c]])});e.s(["default",0,(e,a)=>{let i=(0,t.forwardRef)(({className:i,...o},l)=>(0,t.createElement)(s,{ref:l,iconNode:a,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=n(e),i}],56420)},7670,e=>{"use strict";e.s(["clsx",0,function(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}])},18566,(e,t,r)=>{t.exports=e.r(76562)},67881,29315,14553,88940,67865,46376,76782,33332,33848,64350,40886,28918,56789,52245,e=>{"use strict";let t,r;var n=e.i(43476);e.i(47167);var a=e.i(71645);function i(){return"u">typeof window}function s(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){return!!i()&&(e instanceof HTMLElement||e instanceof s(e).HTMLElement)}e.s(["getWindow",0,s,"isElement",0,function(e){return!!i()&&(e instanceof Element||e instanceof s(e).Element)},"isHTMLElement",0,o],29315);let l={...a};e.s(["SafeReact",0,l],14553);let c={};function d(e,t){let r=a.useRef(c);return r.current===c&&(r.current=e(t)),r}e.s(["useRefWithInit",0,d],88940);let u=l.useInsertionEffect,f=u&&u!==l.useLayoutEffect?u:e=>e();function p(e){let t=d(m).current;return t.next=e,f(t.effect),t.trampoline}function m(){let e={next:void 0,callback:h,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function h(){}e.s(["useStableCallback",0,p],67865);let v="u">typeof document?a.useLayoutEffect:()=>{};function x(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}e.s(["useIsoLayoutEffect",0,v],46376);let g={};function b(e,t,r,n,a){if(!r&&!n&&!a&&!e)return w(t);let i=w(e);return t&&(i=k(i,t)),r&&(i=k(i,r)),n&&(i=k(i,n)),a&&(i=k(i,a)),i}function y(e){if(0===e.length)return g;if(1===e.length)return w(e[0]);let t=w(e[0]);for(let r=1;r<e.length;r+=1)t=k(t,e[r]);return t}function w(e){return j(e)?{...N(e,g)}:function(e){let t={...e};for(let e in t){let r=t[e];C(e,r)&&(t[e]=E(r))}return t}(e)}function k(e,t){return j(t)?N(t,e):function(e,t){if(!t)return e;for(let r in t){let n=t[r];switch(r){case"style":e[r]=x(e.style,n);break;case"className":e[r]=P(e.className,n);break;default:C(r,n)?e[r]=function(e,t){return t?e?(...r)=>{let n=r[0];if(T(n)){z(n);let a=t(...r);return n.baseUIHandlerPrevented||e?.(...r),a}let a=t(...r);return e?.(...r),a}:E(t):e}(e[r],n):e[r]=n}}return e}(e,t)}function C(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),a=e.charCodeAt(2);return 111===r&&110===n&&a>=65&&a<=90&&("function"==typeof t||void 0===t)}function j(e){return"function"==typeof e}function N(e,t){return j(e)?e(t):e??g}function E(e){return e?(...t)=>{let r=t[0];return T(r)&&z(r),e(...t)}:e}function z(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function P(e,t){return t?e?t+" "+e:t:e}function T(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,z,"mergeClassNames",0,P,"mergeProps",0,b,"mergePropsN",0,y],76782);let I=function(e,...t){let r=new URL("https://base-ui.com/production-error");
1return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["default",0,I],33332);let R=a.createContext(void 0);function A(e,t,{detail:r=0}={}){e.dispatchEvent(new(s(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function S(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:n=0,native:i=!0,composite:s}=e,l=a.useRef(null),c=function(e=!1){let t=a.useContext(R);if(void 0===t&&!e)throw Error(I(16));return t}(!0),d=s??void 0!==c,{props:u}=function(e){let{focusableWhenDisabled:t,disabled:r,composite:n=!1,tabIndex:i=0,isNativeButton:s}=e,o=n&&!1!==t,l=n&&!1===t;return{props:a.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return n||(e.tabIndex=i,!s&&r&&(e.tabIndex=t?i:-1)),(s&&(t||o)||!s&&r)&&(e["aria-disabled"]=r),s&&(!t||l)&&(e.disabled=r),e},[n,r,t,o,l,s,i])}}({focusableWhenDisabled:r,disabled:t,composite:d,tabIndex:n,isNativeButton:i}),f=a.useCallback(()=>{let e=l.current;U(e)&&d&&t&&void 0===u.disabled&&e.disabled&&(e.disabled=!1)},[t,u.disabled,d]);return v(f,[f]),{getButtonProps:a.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:a,onKeyDown:s,onPointerDown:l,...c}=e;return b({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){var r;if(t||(z(e),s?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,a=e.currentTarget,l=U(a),c=!i&&o(r=a)&&"A"===r.tagName&&!!r.href,u=n&&(i?l:!c),f="Enter"===e.key,p=" "===e.key,m=a.getAttribute("role"),h=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(n&&d&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),(!i||l)&&(e.preventBaseUIHandler(),A(a,e));return}if(!u||i||!p&&!f){n&&c&&p&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),f&&(e.preventBaseUIHandler(),A(a,e)))},onKeyUp(e){t||((z(e),a?.(e),e.target===e.currentTarget&&i&&d&&U(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||i||d||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),A(e.currentTarget,e))))},onPointerDown(e){t?e.preventDefault():l?.(e)}},i?{type:"button"}:{role:"button"},u,c)},[t,u,d,i]),buttonRef:p(e=>{l.current=e,f()})}}function U(e){return o(e)&&"BUTTON"===e.tagName}function L(e,t,r,n){var a,i,s,o,l;let c=d(D).current;return a=c,i=e,s=t,o=r,l=n,(a.refs[0]!==i||a.refs[1]!==s||a.refs[2]!==o||a.refs[3]!==l)&&B(c,[e,t,r,n]),c.callback}function O(e){var t,r;let n=d(D).current;return t=n,r=e,(t.refs.length!==r.length||t.refs.some((e,t)=>e!==r[t]))&&B(n,e),n.callback}function D(){return{callback:null,cleanup:null,refs:[]}}function B(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let a=t[e];if(null!=a)switch(typeof a){case"function":{let t=a(r);"function"==typeof t&&(n[e]=t);break}case"object":a.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["ownerWindow",0,s],33848),e.s(["dispatchClickWithModifiers",0,A],64350),e.s(["useButton",0,S],40886),e.s(["useMergedRefs",0,L,"useMergedRefsN",0,O],28918);let H=parseInt(a.version,10);function M(e){if(!a.isValidElement(e))return null;let t=e.props;return(H>=19?t?.ref:e.ref)??null}let F=Object.freeze([]),W=Object.freeze({});function $(e,t,r={}){let n=t.render,i=function(e,t={}){var r;let{className:n,style:a,render:i}=e,{state:s=W,ref:o,props:l,stateAttributesMapping:c,enabled:d=!0}=t,u=d?"function"==typeof n?n(s):n:void 0,f=d?"function"==typeof a?a(s):a:void 0,p=d?function(e,t){let r={};for(let n in e){let a=e[n];if(t?.hasOwnProperty(n)){let e=t[n](a);null!=e&&Object.assign(r,e);continue}!0===a?r[`data-${n.toLowerCase()}`]="":a&&(r[`data-${n.toLowerCase()}`]=a.toString())}return r}(s,c):W,m=d&&l?Array.isArray(r=l)?y(r):b(void 0,r):void 0,h=d?x(p,m)??{}:W;return("u">typeof document&&(d?Array.isArray(o)?h.ref=O([h.ref,M(i),...o]):h.ref=L(h.ref,M(i),o):L(null,null)),d)?(void 0!==u&&(h.className=P(h.className,u)),void 0!==f&&(h.style=x(h.style,f)),h):W}(t,r);return!1===r.enabled?null:function(e,t,r,n){if(t){if("function"==typeof t)return t(r,n);let e=b(r,t.props);e.ref=r.ref;let i=t;
1return i?.$$typeof===K&&(i=a.Children.toArray(t)[0]),a.cloneElement(i,e)}if(e&&"string"==typeof e){var i,s;return i=e,s=r,"button"===i?(0,a.createElement)("button",{type:"button",...s,key:s.key}):"img"===i?(0,a.createElement)("img",{alt:"",...s,key:s.key}):a.createElement(i,s)}throw Error(I(8))}(e,n,i,r.state??W)}e.s(["EMPTY_ARRAY",0,F,"EMPTY_OBJECT",0,W,"NOOP",0,function(){}],56789);let K=Symbol.for("react.lazy");e.s(["useRenderElement",0,$],52245);let _=a.forwardRef(function(e,t){let{render:r,className:n,disabled:a=!1,focusableWhenDisabled:i=!1,nativeButton:s=!0,style:o,...l}=e,{getButtonProps:c,buttonRef:d}=S({disabled:a,focusableWhenDisabled:i,native:s});return $("button",e,{state:{disabled:a},ref:[t,d],props:[l,c]})});var V=e.i(7670);let Y=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,q=V.clsx;var J=e.i(47163);let Z=(t="group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r={variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var n;if((null==r?void 0:r.variants)==null)return q(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:a,defaultVariants:i}=r,s=Object.keys(a).map(t=>{let r=null==e?void 0:e[t],n=null==i?void 0:i[t];if(null===r)return null;let s=Y(r)||Y(n);return a[t][s]}),o=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return q(t,s,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...o}[t]):({...i,...o})[t]===r})?[...e,r,n]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});e.s(["Button",0,function({className:e,variant:t="default",size:r="default",...a}){return(0,n.jsx)(_,{"data-slot":"button",className:(0,J.cn)(Z({variant:t,size:r,className:e})),...a})},"buttonVariants",0,Z],67881)},70065,e=>{"use strict";var t=e.i(43476),r=e.i(47163);e.s(["Card",0,function({className:e,size:n="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground
1/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...n})},"CardDescription",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},43957,e=>{"use strict";let t=(0,e.i(56420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},67784,e=>{"use strict";let t=(0,e.i(56420).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],67784)},94105,e=>{"use strict";let t=(0,e.i(56420).default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);e.s(["LayoutDashboard",0,t],94105)},50861,72382,80860,e=>{"use strict";var t=e.i(71645),r=e.i(43476),n=(0,t.forwardRef)(({as:e="div",...t},n)=>(0,r.jsx)(e,{...t,ref:n}));let a="onloadTurnstileCallback",i={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65}},s="unloaded",o,l=new Promise((e,t)=>{o={resolve:e,reject:t},"ready"===s&&e(void 0)}),c=(e=a)=>("unloaded"===s&&(s="loading",window[e]=()=>{o.resolve(),s="ready",delete window[e]}),l),d=(0,t.forwardRef)((e,o)=>{let{scriptOptions:l,options:d={},siteKey:u,onWidgetLoad:f,onSuccess:p,onExpire:m,onError:h,onBeforeInteractive:v,onAfterInteractive:x,onUnsupported:g,onTimeout:b,onLoadScript:y,id:w,style:k,as:C="div",injectScript:j=!0,rerenderOnCallbackChange:N=!1,...E}=e,z=d.size,P=(0,t.useMemo)(()=>{if(void 0===z)return{};let e=i[z];return"interaction-only"===d.appearance?{...e,height:"auto"}:e},[z,d.appearance]),T="execute"===d.execution?i.invisible:P,[I,R]=(0,t.useState)(T),A=(0,t.useRef)(null),[S,U]=(0,t.useState)(!1),L=(0,t.useRef)(void 0),O=(0,t.useRef)(!1),D=w||"cf-turnstile",B=(0,t.useRef)({onSuccess:p,onError:h,onExpire:m,onBeforeInteractive:v,onAfterInteractive:x,onUnsupported:g,onTimeout:b});(0,t.useEffect)(()=>{N||(B.current={onSuccess:p,onError:h,onExpire:m,onBeforeInteractive:v,onAfterInteractive:x,onUnsupported:g,onTimeout:b})});let H=l?.id||"cf-turnstile-script",M=function(e="cf-turnstile-script"){let[r,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=()=>{document.getElementById(e)&&n(!0)},r=new MutationObserver(t);return r.observe(document,{childList:!0,subtree:!0}),t(),()=>{r.disconnect()}},[e]),r}(H),F=l?.onLoadCallbackName||"onloadTurnstileCallback",W=(0,t.useMemo)(()=>({sitekey:u,action:d.action,cData:d.cData,theme:d.theme||"auto",language:d.language||"auto",tabindex:d.tabIndex,"response-field":d.responseField,"response-field-name":d.responseFieldName,size:function(e){if("invisible"!==e)return e}(z),retry:d.retry||"auto","retry-interval":d.retryInterval||8e3,"refresh-expired":d.refreshExpired||"auto","refresh-timeout":d.refreshTimeout||"auto",execution:d.execution||"render",appearance:d.appearance||"always","feedback-enabled":d.feedbackEnabled??!0,callback:e=>{O.current=!0,N?p?.(e):B.current.onSuccess?.(e)},"error-callback":N?h:(...e)=>B.current.onError?.(...e),"expired-callback":N?m:(...e)=>B.current.onExpire?.(...e),"before-interactive-callback":N?v:(...e)=>B.current.onBeforeInteractive?.(...e),"after-interactive-callback":N?x:(...e)=>B.current.onAfterInteractive?.(...e),"unsupported-callback":N?g:(...e)=>B.current.onUnsupported?.(...e),"timeout-callback":N?b:(...e)=>B.current.onTimeout?.(...e)}),[d.action,d.appearance,d.cData,d.execution,d.language,d.refreshExpired,d.responseField,d.responseFieldName,d.retry,d.retryInterval,d.tabIndex,d.theme,d.feedbackEnabled,d.refreshTimeout,u,z,N,N?p:null,N?h:null,N?m:null,N?v:null,N?x:null,N?g:null,N?b:null]),$=(0,t.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,t.useEffect)(function(){j&&!S&&(c(F),(({render:e="explicit",onLoadCallbackName:t=a,scriptOptions:{nonce:r="",defer:n=!0,async:i=!0,id:s="",appendTo:o,onError:l,crossOrigin:c=""}={}})=>{let d=s||"cf-turnstile-script";
1if(document.getElementById(d))return;let u=document.createElement("script");u.id=d,u.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${u.src}"]`)||(u.defer=!!n,u.async=!!i,r&&u.setAttribute("nonce",r),c&&(u.crossOrigin=c),l&&(u.onerror=l,delete window[t]),("body"===o?document.body:document.getElementsByTagName("head")[0]).appendChild(u))})({onLoadCallbackName:F,scriptOptions:{...l,id:H}}))},[j,S,l,H,F]),(0,t.useEffect)(function(){"ready"!==s&&c(F).then(()=>U(!0)).catch(console.error)},[F]),(0,t.useEffect)(function(){if(!A.current||!S)return;let e=!1;return(async()=>{e||!A.current||(L.current=window.turnstile.render(A.current,W),R(T),L.current&&f?.(L.current))})(),()=>{e=!0,L.current&&(window.turnstile.remove(L.current),O.current=!1)}},[D,S,W,T]),(0,t.useImperativeHandle)(o,()=>{let{turnstile:e}=window;return{getResponse:()=>e?.getResponse&&L.current&&$()?e.getResponse(L.current):void console.warn("Turnstile has not been loaded"),getResponsePromise:async(e=3e4,t=100)=>new Promise((r,n)=>{let a,i=async()=>{if(O.current&&window.turnstile&&L.current)try{let e=window.turnstile.getResponse(L.current);return a&&clearTimeout(a),e?r(e):n(Error("No response received"))}catch(e){return a&&clearTimeout(a),console.warn("Failed to get response",e),n(Error("Failed to get response"))}a||=setTimeout(()=>{a&&clearTimeout(a),n(Error("Timeout"))},e),await new Promise(e=>setTimeout(e,t)),await i()};i()}),reset(){if(!e?.reset||!L.current||!$())return void console.warn("Turnstile has not been loaded");R(T);try{O.current=!1,e.reset(L.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${L.current}`,e)}},remove(){e?.remove&&L.current&&$()?(R(i.invisible),O.current=!1,e.remove(L.current),L.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!A.current||!$()||L.current)return void console.warn("Turnstile has not been loaded or container not found");let t=e.render(A.current,W);return L.current=t,L.current&&f?.(L.current),R(T),t},execute(){"execute"!==d.execution?console.warn('Execution mode is not set to "execute"'):e?.execute&&A.current&&L.current&&$()?(e.execute(A.current),R(P)):console.warn("Turnstile has not been loaded or container not found")},isExpired:()=>e?.isExpired&&L.current&&$()?e.isExpired(L.current):(console.warn("Turnstile has not been loaded"),!1)}},[L,d.execution,W,A,$,S,f,T,P]),(0,t.useEffect)(()=>{if(S||!M)return;if(window.turnstile)return void U(!0);let e=setInterval(()=>{window.turnstile&&(U(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[S,M]),(0,t.useEffect)(()=>{R(T)},[T]),(0,t.useEffect)(()=>{M&&"function"==typeof y&&y()},[M]),(0,r.jsx)(n,{ref:A,as:C,id:D,style:{...I,...k},...E})});d.displayName="Turnstile",e.s(["Turnstile",0,d],50861);var u=e.i(56420);let f=(0,u.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(["Eye",0,f],72382);let p=(0,u.default)("eye-off",[["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(["EyeOff",0,p],80860)},76677,e=>{"use strict";e.i(47167);var t=e.i(43476),r=e.i(71645),n=e.i(18566),a=e.i(22016),i=e.i(53145),s=e.i(94814),o=e.i(81307),l=e.i(46696),c=e.i(50861),d=e.i(67881),u=e.i(70065);e.s([],92299),e.i(92299);var f=e.i(56789),p=e.i(51437),m=e.i(46376),h=e.i(28918),v=e.i(88940);let x={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},g={...x,position:"fixed",top:0,left:0},b={...x,position:"absolute"};var y=e.i(33848),w=e.i(75812);function k(e){return{checked:t=>e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""},...w.fieldValidityMapping}}var C=e.i(64350),j=e.i(52245),N=e.i(88015),E=e.i(76782),z=e.i(40886),P=e.i(69690),T=e.i(81104),I=e.i(57153),R=e.i(84708),A=e.i(47778);let S=r.createContext(void 0);var U=e.i(33332);let L=r.createContext(void 0);var O=e.i(75606),D=e.i(56434),B=e.i(67865);let H=r.forwardRef(function(e,n){let a,i,{checked:s,className:o,defaultChecked:l=!1,"aria-labelledby":c,disabled:d=!1,form:u,id:x,indeterminate:w=!1,inputRef:U,name:H,onCheckedChange:M,parent:F=!1,readOnly:W=!1,render:$,required:K=!1,uncheckedValue:_,value:V,nativeButton:Y=!1,style:q,...J}=e,{clearErrors:Z}=(0,R.useFormContext)(),{disabled:G,name:X,setDirty:Q,setFilled:ee,setFocused:et,setTouched:er,state:en,validationMode:ea,validityData:ei,validation:es}=(0,P.useFieldRootContext)(),eo=(0,I.useFieldItemContext)(),{labelId:el,controlId:ec,registerControlId:ed,getDescriptionProps:eu}=(0,A.useLabelableContext)(),ef=r.useContext(S),ep=ef?.allValues===void 0?void 0:ef.parent,em=void 0!==ep,eh=G||eo.disabled||ef?.disabled||d,ev=X??H,ex=V??ev,eg=(0,N.useBaseUiId)(),eb=(0,N.useBaseUiId)(),ey=x||ec;em&&(F?ey=eb:void 0!==ex?ey=`${ep.id}-${ex}`:ey||=eb);let ew={};em&&(F?ew=ep.getParentProps():void 0!==ex&&(ew=ep.getChildProps(ex)));let{checked:ek=s,indeterminate:eC=w,onCheckedChange:ej,...eN}=ew,eE=ef?.value,ez=r.useRef(null),eP=(0,v.useRefWithInit)(()=>Symbol()),eT=r.useRef(!1),{getButtonProps:eI,buttonRef:eR}=(0,z.useButton)({disabled:eh,native:Y}),eA=ef?.validation??es,[eS,eU]=(0,p.useControlled)({controlled:void 0===ex||void 0===eE||F?ek:eE.includes(ex),default:l,name:"Checkbox",state:"checked"}),eL=em?!!ek:eS,eO=em&&eC||w;(0,m.useIsoLayoutEffect)(()=>{ed!==f.NOOP&&(eT.current=!0,ed(eP.current,ey))},[ey,ed,eP]),r.useEffect(()=>{let e=eP.current;return()=>{eT.current&&ed!==f.NOOP&&(eT.current=!1,ed(e,void 0))}},[ed,eP]),(0,T.useRegisterFieldControl)(ez,eg,eS,void 0,!ef&&!eh,H);let eD=r.useRef(null),eB=eA.registerInput,eH=ef?ex:void 0,eM=r.useCallback(e=>eB(e,{controlRef:ez,value:eH}),[eB,eH]),eF=(0,h.useMergedRefs)(U,eD,F?void 0:eM),eW=function(e,t,n,a=!0,i){let[s,o]=r.useState(),l=(0,N.useBaseUiId)(i?`${i}-label`:void 0),c=e??t??s;return(0,m.useIsoLayoutEffect)(()=>{let r=e||t||!a?void 0:function(e,t){let r=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let r=e.id;if(r){let t=e.nextElementSibling;if(t&&t.htmlFor===r)return t}let n=e.labels;return n&&n[0]}(e);if(r)return!r.id&&t&&(r.id=t),r.id||void 0}(n.current,l);s!==r&&o(r)}),c}(c,el,eD,!Y,ey??void 0);(0,m.useIsoLayoutEffect)(()=>{eD.current&&(eD.current.indeterminate=eO,eS&&ee(!0))},[eS,eO,ee]),a=r.useRef(eS),i=(0,B.useStableCallback)(()=>{ef||(Z(ev),ee(eS),Q(eS!==ei.initialValue),eA.change(eS))}),(0,m.useIsoLayoutEffect)(()=>{a.current!==eS&&i(a.current),a.current=eS},[eS,i]);let e$=(0,E.mergeProps)({checked:eS,disabled:eh,form:u,name:F?void 0:ev,id:Y?void 0:ey??void 0,required:K,ref:eF,style:ev?b:g,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(W)return void e.preventDefault();let t=e.currentTarget.checked,r=(0,O.createChangeEventDetails)(D.REASONS.none,e.nativeEvent);if((M?.(t,r),!r.isCanceled)&&(ej?.(t,r),!r.isCanceled&&(eU(t),void 0!==ex&&void 0!==ef&&!F&&!em))){let e=t?[...ef.value,ex]:ef.value.filter(e=>e!==ex);ef.setValue(e,r)}},onClick(e){e.stopPropagation()},onFocus(){ez.current?.focus()}},void 0!==V?{value:(ef?eS&&V:V)||""}:f.EMPTY_OBJECT,eu,e=>eA.getValidationProps(eh,e));r.useEffect(()=>{if(!ep||void 0===ex)return;let e=ep.disabledStatesRef.current;return e.set(ex,eh),()=>{e.delete(ex)}},[ep,eh,ex]);let eK=r.useMemo(()=>({...en,checked:eL,disabled:eh,readOnly:W,required:K,indeterminate:eO}),[en,eL,eh,W,K,eO]),e_=k(eK),eV=(0,j.useRenderElement)("span",e,{state:eK,ref:[eR,ez,n],props:[{id:Y?ey??void 0:eg,role:"checkbox","aria-checked":eO?"mixed":eL,"aria-readonly":W||void 0,"aria-required":K||void 0,"aria-labelledby":eW,"data-parent":F?"":void 0,onFocus(){eh||et(!0)},onBlur(){let e=eD.current;e&&(er(!0),et(!1),"onBlur"===ea&&eA.commit(ef?eE:e.checked))},onKeyDown(e){if("Enter"!==e.key||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=eD.current?.form??null,r=e.currentTarget,n=e.nativeEvent,a=e.preventDefault,i=n.preventDefault,s=!1;e.preventDefault=()=>{s=!0,a.call(e)},n.preventDefault=()=>{s=!0,i.call(n)},i.call(n),(0,y.ownerWindow)(r).queueMicrotask(()=>{e.preventDefault=a,n.preventDefault=i,s||(function(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(("BUTTON"===e||"INPUT"===e)&&"submit"===t.type)return t}return null})(t)?.click()})},onClick(e){if(W||eh)return;e.preventDefault();let t=eD.current;t&&(0,C.dispatchClickWithModifiers)(t,e)}},J,eN,eI,eu,e=>eA.getValidationProps(eh,e)],stateAttributesMapping:e_});return(0,t.jsxs)(L.Provider,{value:eK,children:[eV,!eS&&!ef&&ev&&!F&&void 0!==_&&(0,t.jsx)("input",{type:"hidden",form:u,name:ev,value:_,disabled:eh}),(0,t.jsx)("input",{...e$,suppressHydrationWarning:!0})]})});var M=e.i(37584),F=e.i(23910),W=e.i(9407);let $=r.forwardRef(function(e,t){let{render:n,className:a,style:i,keepMounted:s=!1,...o}=e,l=function(){let e=r.useContext(L);if(void 0===e)throw Error((0,U.default)(14));return e}(),c=l.checked||l.indeterminate,{mounted:d,transitionStatus:u,setMounted:f}=(0,F.useTransitionStatus)(c),p=r.useRef(null),m={...l,transitionStatus:u};(0,M.useOpenChangeComplete)({open:c,ref:p,onComplete(){c||f(!1)}});let h={...k(l),...W.transitionStatusMapping},v=(0,j.useRenderElement)("span",e,{ref:[t,p],state:m,stateAttributesMapping:h,props:o});return s||d?v:null});e.s(["Indicator",0,$,"Root",0,H],26749);var K=e.i(26749),K=K,_=e.i(47163),V=e.i(43957),V=V;function Y({className:e,...r}){return(0,t.jsx)(K.Root,{"data-slot":"checkbox",className:(0,_.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(K.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(V.default,{})})})}var q=e.i(23750),J=e.i(10708),Z=e.i(72382),G=e.i(80860),X=e.i(67784),Q=e.i(94105),ee=e.i(72136);let et="0x4AAAAAADKR0bu1HvcUPYJ1",er=o.z.object({name:o.z.string().min(2,"Name must be at least 2 characters"),email:o.z.string().email("Enter a valid email address"),password:o.z.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[0-9]/,"Password must contain at least one number"),confirmPassword:o.z.string(),referralCode:o.z.string().optional()}).refine(e=>e.password===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]});
1function en(){let e=(0,n.useRouter)(),o=(0,n.useSearchParams)(),{data:f}=ee.authClient.useSession(),[p,m]=(0,r.useState)(!1),[h,v]=(0,r.useState)(null),[x,g]=(0,r.useState)(null),[b,y]=(0,r.useState)(!1),[w,k]=(0,r.useState)(!1),[C,j]=(0,r.useState)(!1),[N,E]=(0,r.useState)(!1),[z,P]=(0,r.useState)(!1),T=(0,r.useRef)(null);(0,r.useEffect)(()=>{m(!0)},[]);let{register:I,handleSubmit:R,setValue:A,formState:{errors:S,isSubmitting:U}}=(0,i.useForm)({resolver:(0,s.zodResolver)(er)});(0,r.useEffect)(()=>{let e=o.get("ref");e&&(y(!0),A("referralCode",e.toUpperCase()))},[o,A]);let L=async t=>{if(v(null),!w)return void j(!0);if(j(!1),et&&!x)return void v("Please complete the security check below.");try{let e=await fetch(`https://bocapi.billsonchain.io/api/user/check-email?email=${encodeURIComponent(t.email)}`);if(e.ok){let{available:t}=await e.json();if(!t){v("An account with this email already exists. Try signing in instead."),T.current?.reset(),g(null);return}}}catch{}try{let{error:r}=await ee.signUp.email({name:t.name,email:t.email,password:t.password,callbackURL:"https://billsonchain.io/dashboard",...b&&t.referralCode?{referredBy:t.referralCode.toUpperCase()}:{},termsAccepted:!0},{headers:x?{"x-turnstile-token":x}:{}});if(r){T.current?.reset(),g(null);let e=r.code;"USER_ALREADY_EXISTS"===e?v("An account with this email already exists. Try signing in instead."):v(r.message??"Something went wrong. Please try again.");return}l.toast.success("Check your inbox!",{description:`We sent a verification link to ${t.email}.`,duration:5e3}),e.push(`/verify-email?email=${encodeURIComponent(t.email)}`)}catch{l.toast.error("Unable to reach the server",{description:"Please check your connection and try again."}),v("Unable to reach the server. Please check your connection and try again."),T.current?.reset(),g(null)}};return f?.user?(0,t.jsxs)(u.Card,{className:"w-full max-w-md border border-zinc-100 bg-white shadow-xl shadow-zinc-200/40 rounded-2xl overflow-hidden",children:[(0,t.jsxs)(u.CardHeader,{className:"pb-6 pt-8 px-8 text-center",children:[(0,t.jsx)(u.CardTitle,{className:"text-3xl font-extrabold tracking-tight text-zinc-900",children:"Already signed in"}),(0,t.jsxs)(u.CardDescription,{className:"text-zinc-500 mt-2",children:["You are currently signed in as ",(0,t.jsx)("strong",{className:"text-zinc-900",children:f.user.name})," (",f.user.email,")."]})]}),(0,t.jsxs)(u.CardContent,{className:"px-8 pb-8 space-y-4",children:[(0,t.jsx)("p",{className:"text-sm text-zinc-500 text-center",children:"To create a new account, sign out first. Or go back to your dashboard."}),(0,t.jsxs)(d.Button,{className:"w-full rounded-full",variant:"outline",onClick:async()=>{await ee.authClient.signOut(),e.refresh()},children:[(0,t.jsx)(X.LogOut,{className:"mr-2 h-4 w-4"}),"Sign out & create new account"]}),(0,t.jsxs)(d.Button,{className:"w-full bg-[#1A3626] text-white hover:bg-[#13281c] rounded-full",onClick:()=>e.push("/dashboard"),children:[(0,t.jsx)(Q.LayoutDashboard,{className:"mr-2 h-4 w-4"}),"Go to Dashboard"]}),(0,t.jsxs)("p",{className:"text-center text-sm text-zinc-500 pt-2",children:["Not you?"," ",(0,t.jsx)("button",{className:"font-semibold text-zinc-900 hover:text-emerald-600 transition-colors",onClick:async()=>{await ee.authClient.signOut(),e.refresh()},children:"Sign out"})]})]})]}):(0,t.jsxs)(u.Card,{className:"w-full max-w-md border border-zinc-100 bg-white shadow-xl shadow-zinc-200/40 rounded-2xl overflow-hidden",children:[(0,t.jsxs)(u.CardHeader,{className:"pb-6 pt-8 px-8 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-extrabold tracking-widest uppercase text-[#1A3626] mb-1",children:"BillsOnChain"}),(0,t.jsx)(u.CardTitle,{className:"text-3xl font-extrabold tracking-tight text-zinc-900",children:"Create your account"}),(0,t.jsx)(u.CardDescription,{className:"text-zinc-500 mt-2",children:"Upload bills, earn NFTs, and get rewarded on Hedera."})]}),(0,t.jsxs)(u.CardContent,{className:"px-8 pb-8",children:[(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),p&&R(L)(e)},className:"space-y-5",noValidate:!0,suppressHydrationWarning:!0,children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(J.Label,{htmlFor:"name",children:"Full name"}),(0,t.jsx)(q.Input,{id:"name",type:"text",placeholder:"Alice Smith",autoComplete:"name",suppressHydrationWarning:!0,...I("name")}
1),S.name&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:S.name.message})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(J.Label,{htmlFor:"email",children:"Email"}),(0,t.jsx)(q.Input,{id:"email",type:"email",placeholder:"[email protected]",autoComplete:"email",suppressHydrationWarning:!0,...I("email")}),S.email&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:S.email.message})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(J.Label,{htmlFor:"password",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(q.Input,{id:"password",type:N?"text":"password",placeholder:"Min. 8 characters",autoComplete:"new-password",suppressHydrationWarning:!0,className:"pr-10",...I("password")}),(0,t.jsx)("button",{type:"button",onClick:()=>E(!N),className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400 hover:text-zinc-600 focus:outline-none","aria-label":N?"Hide password":"Show password",children:N?(0,t.jsx)(G.EyeOff,{size:18}):(0,t.jsx)(Z.Eye,{size:18})})]}),S.password&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:S.password.message})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(J.Label,{htmlFor:"confirmPassword",children:"Confirm password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(q.Input,{id:"confirmPassword",type:z?"text":"password",placeholder:"Repeat your password",autoComplete:"new-password",suppressHydrationWarning:!0,className:"pr-10",...I("confirmPassword")}),(0,t.jsx)("button",{type:"button",onClick:()=>P(!z),className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400 hover:text-zinc-600 focus:outline-none","aria-label":z?"Hide confirm password":"Show confirm password",children:z?(0,t.jsx)(G.EyeOff,{size:18}):(0,t.jsx)(Z.Eye,{size:18})})]}),S.confirmPassword&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:S.confirmPassword.message})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(Y,{id:"hasReferral",checked:b,onCheckedChange:e=>{y(!!e),e||A("referralCode","")}}),(0,t.jsx)(J.Label,{htmlFor:"hasReferral",className:"cursor-pointer font-normal text-zinc-600",children:"I have a referral code"})]}),b&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(q.Input,{id:"referralCode",type:"text",placeholder:"Enter referral code (e.g. A3F9B21C)",autoComplete:"off",suppressHydrationWarning:!0,...I("referralCode",{onChange:e=>{e.target.value=e.target.value.toUpperCase()}})}),S.referralCode&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:S.referralCode.message})]})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(Y,{id:"termsAccepted",checked:w,onCheckedChange:e=>{k(!!e),e&&j(!1)},className:`flex-shrink-0 mt-0.5 ${C?"border-red-500":""}`}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 text-sm text-zinc-600",children:[(0,t.jsx)(J.Label,{htmlFor:"termsAccepted",className:"cursor-pointer font-normal leading-none",children:"I agree to the"}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(a.default,{href:"/terms",target:"_blank",className:"font-semibold text-zinc-900 hover:text-emerald-600 underline underline-offset-2 transition-colors",children:"Terms & Conditions"}),(0,t.jsx)("span",{className:"text-zinc-300",children:"|"}),(0,t.jsx)(a.default,{href:"/privacy",target:"_blank",className:"font-semibold text-zinc-900 hover:text-emerald-600 underline underline-offset-2 transition-colors",children:"Privacy Policy"})]})]})]}),C&&(0,t.jsx)("p",{className:"text-sm text-destructive pl-7",children:"Please accept the Terms & Conditions to continue."})]}),et&&(0,t.jsx)(c.Turnstile,{ref:T,siteKey:et,onSuccess:e=>g(e),onExpire:()=>g(null),onError:()=>g(null),options:{theme:"light",size:"flexible"}}),h&&(0,t.jsx)("div",{className:"rounded-xl bg-red-50 border border-red-200 px-4 py-4 text-sm font-medium text-red-800",children:h}),(0,t.jsx)(d.Button,{type:"submit",className:"w-full bg-[#1A3626] text-white hover:bg-[#13281c] rounded-full py-5 mt-2",disabled:!p||U||!!et&&!x,children:U?"Creating accountâ¦":"Create account"})]}),(0,t.jsxs)("p",{className:"mt-8 text-center text-sm text-zinc-500",children:["Already have an account?"," ",(0,t.jsx)(a.default,{href:"/login",className:"font-semibold text-zinc-900 hover:text-emerald-600 transition-colors",children:"Sign in"})]})]})]})}e.s(["default",0,function(){return(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(en,{})})}],76677)}]);
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.