1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,520107,332865,e=>{"use strict";let t=(0,e.i(8385).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",()=>t],332865),e.s(["Loader2",()=>t],520107)},593331,e=>{"use strict";let t=(0,e.i(8385).default)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["default",()=>t])},309279,e=>{"use strict";var t=e.i(593331);e.s(["AlertCircle",()=>t.default])},409818,e=>{"use strict";var t=e.i(445563),s=e.i(179980),n=e.i(1678);let r=s.forwardRef(({className:e,...s},r)=>(0,t.jsx)("div",{ref:r,className:(0,n.cn)("rounded-md border bg-card text-card-foreground",e),...s}));r.displayName="Card";let i=s.forwardRef(({className:e,...s},r)=>(0,t.jsx)("div",{ref:r,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",e),...s}));i.displayName="CardHeader";let a=s.forwardRef(({className:e,...s},r)=>(0,t.jsx)("div",{ref:r,className:(0,n.cn)("font-semibold leading-none tracking-tight",e),...s}));a.displayName="CardTitle";let l=s.forwardRef(({className:e,...s},r)=>(0,t.jsx)("div",{ref:r,className:(0,n.cn)("text-sm text-muted-foreground",e),...s}));l.displayName="CardDescription";let o=s.forwardRef(({className:e,...s},r)=>(0,t.jsx)("div",{ref:r,className:(0,n.cn)("p-6 pt-0",e),...s}));o.displayName="CardContent";let c=s.forwardRef(({className:e,...s},r)=>(0,t.jsx)("div",{ref:r,className:(0,n.cn)("flex items-center p-6 pt-0",e),...s}));c.displayName="CardFooter",e.s(["Card",()=>r,"CardContent",()=>o,"CardDescription",()=>l,"CardFooter",()=>c,"CardHeader",()=>i,"CardTitle",()=>a])},493469,e=>{"use strict";var t=e.i(179980),s=e.i(824107),n=t[" useId ".trim().toString()]||(()=>void 0),r=0;function i(e){let[i,a]=t.useState(n());return(0,s.useLayoutEffect)(()=>{e||a(e=>e??String(r++))},[e]),e||(i?`radix-${i}`:"")}e.s(["useId",()=>i])},515201,e=>{"use strict";function t(e,s,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return s?.(t)}}"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},370222,e=>{"use strict";var t=e.i(179980),s=e.i(824107);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||s.useLayoutEffect;function r({prop:e,defaultProp:s,onChange:r=()=>{},caller:i}){let[a,l,o]=function({defaultProp:e,onChange:s}){let[r,i]=t.useState(e),a=t.useRef(r),l=t.useRef(s);return n(()=>{l.current=s},[s]),t.useEffect(()=>{a.current!==r&&(l.current?.(r),a.current=r)},[r,a]),[r,i,l]}({defaultProp:s,onChange:r}),c=void 0!==e,u=c?e:a;{let s=t.useRef(void 0!==e);t.useEffect(()=>{let e=s.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}s.current=c},[c,i])}return[u,t.useCallback(t=>{if(c){let s="function"==typeof t?t(e):t;s!==e&&o.current?.(s)}else l(t)},[c,e,l,o])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>r],370222)},575077,e=>{"use strict";var t=e.i(179980),s=e.i(689911),n=e.i(198091),r=e.i(445563),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{let i=(0,n.createSlot)(`Primitive.${s}`),a=t.forwardRef((e,t)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(n?i:s,{...a,ref:t})});return a.displayName=`Primitive.${s}`,{...e,[s]:a}},{});function a(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>i,"dispatchDiscreteCustomEvent",()=>a])},177419,e=>{"use strict";var t=e.i(179980),s=e.i(445563);function n(e,r=[]){let i=[],a=()=>{let s=i.map(e=>t.createContext(e));return function(n){let r=n?.[e]||s;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return a.scopeName=e,[function(n,r){let a=t.createContext(r);a.displayName=n+"Context";let l=i.length;i=[...i,r];let o=n=>{let{scope:r,children:i,...o}=n,c=r?.[e]?.[l]||a,u=t.useMemo(()=>o,Object.values(o));return(0,s.jsx)(c.Provider,{value:u,children:i})};return o.displayName=n+"Provider",[o,function(s,i){let o=i?.[e]?.[l]||a,c=t.useContext(o);if(c)return c;if(void 0!==r)return r;throw Error(`\`${s}\` must be used within \`${n}\``)}]},function(...e){let s=e[0];if(1===e.length)return s;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:s,scopeName:n})=>{let r=s(e)[`__scope${n}`];return{...t,...r}},{});return t.useMemo(()=>({[`__scope${s.scopeName}`]:r}),[r])}};return n.scopeName=s.scopeName,n}(a,...r)]}e.s(["createContextScope",()=>n])},824107,e=>{"use strict";var t=e.i(179980),s=globalThis?.document?t.useLayoutEffect:()=>{};
1e.s(["useLayoutEffect",()=>s])},175969,e=>{"use strict";var t=e.i(179980);function s(e){let s=t.useRef(e);return t.useEffect(()=>{s.current=e}),t.useMemo(()=>(...e)=>s.current?.(...e),[])}e.s(["useCallbackRef",()=>s])},307003,e=>{"use strict";var t=e.i(179980),s=e.i(824107),n=e=>{var n;let a,l,{present:o,children:c}=e,u=function(e){var n,r;let[a,l]=t.useState(),o=t.useRef(null),c=t.useRef(e),u=t.useRef("none"),[d,m]=(n=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>r[e][t]??e,n));return t.useEffect(()=>{let e=i(o.current);u.current="mounted"===d?e:"none"},[d]),(0,s.useLayoutEffect)(()=>{let t=o.current,s=c.current;if(s!==e){let n=u.current,r=i(t);e?m("MOUNT"):"none"===r||t?.display==="none"?m("UNMOUNT"):s&&n!==r?m("ANIMATION_OUT"):m("UNMOUNT"),c.current=e}},[e,m]),(0,s.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,s=s=>{let n=i(o.current).includes(CSS.escape(s.animationName));if(s.target===a&&n&&(m("ANIMATION_END"),!c.current)){let s=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=s)})}},n=e=>{e.target===a&&(u.current=i(o.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",s),a.addEventListener("animationend",s),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",s),a.removeEventListener("animationend",s)}}m("ANIMATION_END")},[a,m]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{o.current=e?getComputedStyle(e):null,l(e)},[])}}(o),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),m=function(...e){let s=t.useRef(e);return s.current=e,t.useCallback(e=>{let t=s.current,n=!1,i=t.map(t=>{let s=r(t,e);return n||"function"!=typeof s||(n=!0),s});if(n)return()=>{for(let e=0;e<i.length;e++){let s=i[e];"function"==typeof s?s():r(t[e],null)}}},[])}(u.ref,(n=d,(l=(a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(l=(a=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:m}):null};function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(e){return e?.animationName||"none"}n.displayName="Presence",e.s(["Presence",()=>n])},693261,e=>{"use strict";var t=e.i(179980),s=e.i(445563),n=t.createContext(void 0),r=e=>{let{dir:t,children:r}=e;return(0,s.jsx)(n.Provider,{value:t,children:r})};function i(e){let s=t.useContext(n);return e||s||"ltr"}e.s(["DirectionProvider",()=>r,"useDirection",()=>i])},708718,e=>{"use strict";var t=e.i(179980),s=e.i(177419),n=e.i(959908),r=e.i(198091),i=e.i(445563);function a(e){let a=e+"CollectionProvider",[l,o]=(0,s.createContextScope)(a),[c,u]=l(a,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:s,children:n}=e,r=t.useRef(null),a=t.useRef(new Map).current;return(0,i.jsx)(c,{scope:s,itemMap:a,collectionRef:r,children:n})};d.displayName=a;let m=e+"CollectionSlot",f=(0,r.createSlot)(m),h=t.forwardRef((e,t)=>{let{scope:s,children:r}=e,a=u(m,s),l=(0,n.useComposedRefs)(t,a.collectionRef);return(0,i.jsx)(f,{ref:l,children:r})});h.displayName=m;let p=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,r.createSlot)(p),x=t.forwardRef((e,s)=>{let{scope:r,children:a,...l}=e,o=t.useRef(null),c=(0,n.useComposedRefs)(s,o),d=u(p,r);return t.useEffect(()=>(d.itemMap.set(o,{ref:o,...l}),()=>void d.itemMap.delete(o))),(0,i.jsx)(g,{...{[v]:""},ref:c,children:a})});return x.displayName=p,[{Provider:d,Slot:h,ItemSlot:x},function(s){let n=u(e+"CollectionConsumer",s);return t.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,s)=>t.indexOf(e.ref.current)-t.indexOf(s.ref.current))},[n.collectionRef,n.itemMap])},o]}var l=new WeakMap;function o(e,t){var s,n;let r,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(s=e,n=t,r=s.length,(a=(i=c(n))>=0?i:r+i)<0||a>=r?-1:a);return -1===l?void 0:e[l]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,s){let n,r=this.has(t),i=this.#e.length,a=c(e),l=a>=0?a:i+a,o=l<0||l>=i?-1:l;if(o===this.size||r&&o===this.size-1||-1===o)return this.set(t,s),this;let u=this.size+ +!r;a<0&&l++;let d=[...this.#e],m=!1;for(let e=l;e<u;e++)if(l===e){let i=d[e];d[e]===t&&(i=d[e+1]),r&&this.delete(t),n=this.get(i),this.set(t,s)}else{m||d[e-1]!==t||(m=!0);let s=d[m?e:e-1],r=n;n=this.get(s),this.delete(s),this.set(s,r)}return this}with(t,s,n){let r=new e(this);return r.insert(t,s,n),r}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}
1setBefore(e,t,s){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,s)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,s){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let s=this.indexOf(e);if(-1===s)return;let n=s+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let s=this.indexOf(e);if(-1===s)return;let n=s+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let s=0;for(let n of this){if(Reflect.apply(e,t,[n,s,this]))return n;s++}}findIndex(e,t){let s=0;for(let n of this){if(Reflect.apply(e,t,[n,s,this]))return s;s++}return -1}filter(t,s){let n=[],r=0;for(let e of this)Reflect.apply(t,s,[e,r,this])&&n.push(e),r++;return new e(n)}map(t,s){let n=[],r=0;for(let e of this)n.push([e[0],Reflect.apply(t,s,[e,r,this])]),r++;return new e(n)}reduce(...e){let[t,s]=e,n=0,r=s??this.at(0);for(let s of this)r=0===n&&1===e.length?s:Reflect.apply(t,this,[r,s,n,this]),n++;return r}reduceRight(...e){let[t,s]=e,n=s??this.at(-1);for(let s=this.size-1;s>=0;s--){let r=this.at(s);n=s===this.size-1&&1===e.length?r:Reflect.apply(t,this,[n,r,s,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let s=this.keyAt(e),n=this.get(s);t.set(s,n)}return t}toSpliced(...t){let s=[...this.entries()];return s.splice(...t),new e(s)}slice(t,s){let n=new e,r=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==s&&s>0&&(r=s-1);for(let e=t;e<=r;e++){let t=this.keyAt(e),s=this.get(t);n.set(t,s)}return n}every(e,t){let s=0;for(let n of this){if(!Reflect.apply(e,t,[n,s,this]))return!1;s++}return!0}some(e,t){let s=0;for(let n of this){if(Reflect.apply(e,t,[n,s,this]))return!0;s++}return!1}}),e.s(["createCollection",()=>a])},639590,e=>{"use strict";var t=e.i(179980),s=e.i(515201),n=e.i(708718),r=e.i(959908),i=e.i(177419),a=e.i(493469),l=e.i(575077),o=e.i(175969),c=e.i(370222),u=e.i(693261),d=e.i(445563),m="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[p,v,g]=(0,n.createCollection)(h),[x,b]=(0,i.createContextScope)(h,[g]),[y,j]=x(h),k=t.forwardRef((e,t)=>(0,d.jsx)(p.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(p.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(w,{...e,ref:t})})}));k.displayName=h;var w=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,orientation:a,loop:p=!1,dir:g,currentTabStopId:x,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:j,onEntryFocus:k,preventScrollOnEntryFocus:w=!1,...
1N}=e,S=t.useRef(null),P=(0,r.useComposedRefs)(n,S),C=(0,u.useDirection)(g),[T,A]=(0,c.useControllableState)({prop:x,defaultProp:b??null,onChange:j,caller:h}),[R,_]=t.useState(!1),I=(0,o.useCallbackRef)(k),O=v(i),M=t.useRef(!1),[F,L]=t.useState(0);return t.useEffect(()=>{let e=S.current;if(e)return e.addEventListener(m,I),()=>e.removeEventListener(m,I)},[I]),(0,d.jsx)(y,{scope:i,orientation:a,dir:C,loop:p,currentTabStopId:T,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>_(!0),[]),onFocusableItemAdd:t.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>L(e=>e-1),[]),children:(0,d.jsx)(l.Primitive.div,{tabIndex:R||0===F?-1:0,"data-orientation":a,...N,ref:P,style:{outline:"none",...e.style},onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,s.composeEventHandlers)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(m,f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),w)}}M.current=!1}),onBlur:(0,s.composeEventHandlers)(e.onBlur,()=>_(!1))})})}),N="RovingFocusGroupItem",S=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:c,children:u,...m}=e,f=(0,a.useId)(),h=c||f,g=j(N,r),x=g.currentTabStopId===h,b=v(r),{onFocusableItemAdd:y,onFocusableItemRemove:k,currentTabStopId:w}=g;return t.useEffect(()=>{if(i)return y(),()=>k()},[i,y,k]),(0,d.jsx)(p.ItemSlot,{scope:r,id:h,focusable:i,active:o,children:(0,d.jsx)(l.Primitive.span,{tabIndex:x?0:-1,"data-orientation":g.orientation,...m,ref:n,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{i?g.onItemFocus(h):e.preventDefault()}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,s){var n;let r=(n=e.key,"rtl"!==s?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return P[r]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){var s,n;"prev"===t&&r.reverse();let i=r.indexOf(e.currentTarget);r=g.loop?(s=r,n=i+1,s.map((e,t)=>s[(n+t)%s.length])):r.slice(i+1)}setTimeout(()=>E(r))}}),children:"function"==typeof u?u({isCurrentTabStop:x,hasTabStop:null!=w}):u})})});S.displayName=N;var P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let s=document.activeElement;for(let n of e)if(n===s||(n.focus({preventScroll:t}),document.activeElement!==s))return}e.s(["Item",()=>S,"Root",()=>k,"createRovingFocusGroupScope",()=>b])},641494,e=>{"use strict";var t=e.i(445563),s=e.i(665670),n=e.i(1678);let r=({children:e,className:s})=>(0,t.jsx)("footer",{className:(0,n.cn)("bg-card relative py-4 px-6 border-t",s),children:e});var i=e.i(179980),a=e.i(880344),l=e.i(294237);(0,l.cva)("z-50",{variants:{navbarType:{sticky:"sticky top-0 z-50",floating:"has-sticky-header rounded-md sticky top-6 px-6",default:"",hidden:""}},defaultVariants:{navbarType:"default"}});let o=(0,l.cva)("",{variants:{footerType:{sticky:"sticky bottom-0",default:""}},defaultVariants:{footerType:"default"}});e.i(233633);var c=e.i(75327);let u=()=>{let e=(0,c.useTranslations)("components");return(0,t.jsx)("div",{className:"container block md:flex md:justify-between text-muted-foreground",children:(0,t.jsxs)("p",{className:"sm:mb-0 text-xs md:text-sm",children:[e("copyright")," ",new Date().getFullYear()," ",a.siteName," ",e("all_rights_reserved")]})})};e.s(["default",0,()=>{let{footerType:e}=(0,s.useThemeStore)();if(!function(){let[e,t]=i.useState(!1);return i.useEffect(()=>{t(!0)},[]),e}()||"hidden"===e)return null;let n=o({footerType:"sticky"===e?"sticky":"default"});return(0,t.jsx)("div",{className:"w-full z-50",children:(0,t.jsx)(r,{className:n,children:(0,t.jsx)(u,{})})})}],641494)},130404,e=>{"use strict";let t=(0,e.i(8385).default)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);e.s(["default",()=>t])},869760,e=>{"use strict";var t=e.i(130404);e.s(["Home",()=>t.default])},120817,e=>{"use strict";var t=e.i(920348);class s{static instance;availableExtensions=new Set;initialized=!1;static getInstance(){return s.instance||(s.instance=new s),s.instance}initialize(e){this.availableExtensions=new Set(e),this.initialized=!0}isExtensionAvailable(e){if(!this.initialized){let e=t.useConfigStore.getState();if(!e.extensions||!(e.extensions.length>0))return!1;this.initialize(e.extensions)}return this.availableExtensions.has(e)}areExtensionsAvailable(e){return e.every(e=>this.isExtensionAvailable(e))}getAvailableExtensions(){if(!this.initialized){let e=t.useConfigStore.getState();e.extensions&&e.extensions.length>0&&this.initialize(e.extensions)}return Array.from(this.availableExtensions)}updateExtensions(e){this.initialize(e)}}function n(e){return s.getInstance().isExtensionAvailable(e)}function r(){let{extensions:e}=(0,t.useConfigStore)(),n=s.getInstance();return e&&e.length>0&&n.initialize(e),{isExtensionAvailable:e=>n.isExtensionAvailable(e),areExtensionsAvailable:e=>n.areExtensionsAvailable(e),getAvailableExtensions:()=>n.getAvailableExtensions(),extensions:e}}e.s(["ExtensionChecker",()=>s,"isExtensionAvailable",()=>n,"useExtensionChecker",()=>r])},36843,e=>{"use strict";let t=class{url;ws=null;manualDisconnect=!1;listeners={};reconnectInterval;reconnectAttempts=0;maxReconnectAttempts;pingIntervalId=null;pongTimeoutId=null;pingIntervalMs;pongTimeoutMs;constructor(e,t){const s="https:"===window.location.protocol?"wss:":"ws:",n=window.location.host;this.url=`${s}//${n}${e}`,this.pingIntervalMs=t?.pingIntervalMs||3e4,this.pongTimeoutMs=t?.pongTimeoutMs||1e4,this.reconnectInterval=t?.reconnectInterval||5e3,this.maxReconnectAttempts=t?.maxReconnectAttempts||10}connect(){this.ws&&this.ws.readyState!==WebSocket.CLOSED||(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("WebSocket connection opened."),this.manualDisconnect=!1,this.listeners.open?.forEach(e
1=>e()),this.reconnectAttempts=0},this.ws.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch(e){console.error("Error parsing message:",e);return}"PONG"===t.type?this.clearPongTimeout():"PING"===t.type?this.send({type:"PONG"}):this.listeners.message?.forEach(e=>e(t))},this.ws.onclose=()=>{this.manualDisconnect||console.log("WebSocket connection closed"),this.listeners.close?.forEach(e=>e()),this.stopPing(),this.manualDisconnect||this.reconnect()},this.ws.onerror=e=>{this.manualDisconnect||console.error("WebSocket error:",e)})}disconnect(){if(this.ws){if(this.manualDisconnect=!0,this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)try{this.ws.close()}catch(e){}this.ws=null,this.stopPing()}}send(e){this.ws&&this.ws.readyState===WebSocket.OPEN?this.ws.send(JSON.stringify(e)):this.manualDisconnect||console.error("WebSocket connection not open.")}on(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}off(e,t){this.listeners[e]&&(this.listeners[e]=this.listeners[e].filter(e=>e!==t))}isConnected(){return this.ws?.readyState===WebSocket.OPEN}reconnect(){this.reconnectAttempts<this.maxReconnectAttempts?(setTimeout(()=>this.connect(),this.reconnectInterval),this.reconnectAttempts++,console.log(`Reconnection attempt ${this.reconnectAttempts}`)):console.log("Max reconnection attempts reached, giving up.")}startPing(){this.pingIntervalId=setInterval(()=>{this.ws&&this.ws.readyState===WebSocket.OPEN&&(this.send({type:"PING"}),this.pongTimeoutId=setTimeout(()=>{console.error("Pong not received in time, closing connection."),this.ws?.close()},this.pongTimeoutMs))},this.pingIntervalMs)}stopPing(){this.pingIntervalId&&(clearInterval(this.pingIntervalId),this.pingIntervalId=null),this.clearPongTimeout()}clearPongTimeout(){this.pongTimeoutId&&(clearTimeout(this.pongTimeoutId),this.pongTimeoutId=null)}};e.s(["default",0,t])},36721,e=>{"use strict";var t=e.i(445563),s=e.i(44878);e.s(["LayoutWrapper",0,({children:e,location:n})=>(0,t.jsx)(s.motion.div,{initial:"pageInitial",animate:"pageAnimate",exit:"pageExit",variants:{pageInitial:{opacity:0,y:50},pageAnimate:{opacity:1,y:0},pageExit:{opacity:0,y:-50}},transition:{type:"tween",ease:"easeOut",duration:.2},children:(0,t.jsx)("main",{children:e})},n)])},111774,e=>{"use strict";var t=e.i(445563),s=e.i(179980),n=e.i(948827),r=e.i(920348),i=e.i(665670),a=e.i(992351),l=e.i(837255);let o=()=>{let{navbarType:e}=(0,i.useThemeStore)(),s=(0,a.usePathname)().replace(/^\/[a-z]{2}(\/|$)/,"/");if("hidden"===e)return null;let n=s.startsWith("/admin");return(0,t.jsx)(l.default,{variant:n?"admin":"user",menu:n?"admin":"user"})};var c=e.i(641494),u=e.i(36721);let d={navbarType:"sticky",footerType:"default",radius:.5};e.s(["default",0,({isGuest:e=!1,children:l})=>{let m=(0,a.usePathname)(),f=["/admin/crm/kyc/level/create","/admin/crm/kyc/level/[id]","/admin/crm/kyc/application/[id]","/admin/crm/support/[id]","/admin/finance/deposit/log/[id]","/admin/finance/withdraw/log/[id]","/admin/finance/transfer/[id]","/admin/default-editor","/admin/default-editor/[pageId]/edit","/admin/content/media","/admin/system/notification/template/[id]","/admin/system/settings","/admin/system/license","/admin/system/extension","/admin/system/extension/[id]","/admin/system/update","/admin/finance/binary/settings","/admin/system/notification/template","/admin/trading/settings","/forex/trade/[id]"].some(e=>RegExp("^"+e.replace(/\[(\w+)\]/g,"[^/]+")+"$").test(m)),h=m.replace(/^\/[a-z]{2}(\/|$)/,"/").startsWith("/admin");(0,n.useUserStore)(e=>e.user);let{settings:p,extensions:v}=(0,r.useConfigStore)(),{layoutSettings:g}=(0,s.useMemo)(()=>{let e=d;if("string"==typeof p?.layout)try{e=JSON.parse(p.layout)}catch(t){console.error("Failed to parse settings.layout as JSON:",t),e=d}else"object"==typeof p?.layout&&null!==p.layout&&(e=p.layout);return{layoutSettings:{navbarType:e.navbarType??d.navbarType,footerType:e.footerType??d.footerType,radius:"number"==typeof e.radius?e.radius:d.radius}}},[p]);return((0,s.useLayoutEffect)(()=>{i.useThemeStore.setState({navbarType:g.navbarType,footerType:g.footerType,radius:g.radius})},[g]),f)?(0,t.jsx)("div",{className:"content-wrapper transition-all duration-150",children:(0,t.jsx)("div",{className:"page-min-height-horizontal",children:l})}):e||m.startsWith("/admin/builder/")?(0,t.jsx)(t.Fragment,{children:l}):h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{}),(0,t.jsx)(u.LayoutWrapper,{location:m,children:l}),(0,t.jsx)(c.default,{})]}):(0,t.jsx)(t.Fragment,{children:l})}],111774)},220593,e=>{e.v({className:"geist_daf87d82-module__cLezPW__className",variable:"geist_daf87d82-module__cLezPW__variable"})},687466,e=>
1{e.v({className:"geist_mono_c3b31ddc-module__7yZOtW__className",variable:"geist_mono_c3b31ddc-module__7yZOtW__variable"})},735527,e=>{"use strict";var t=e.i(445563),s=e.i(179980),n=e.i(36843),r=e.i(493612);let i=(0,s.createContext)({wsManager:null});e.s(["WebSocketProvider",0,({children:e,userId:a,config:l})=>{let[o,c]=(0,s.useState)(null),u=(0,s.useRef)(null),d=(0,s.useRef)(!1),m=(0,s.useRef)(0),f=(0,s.useRef)(!1),h=(0,s.useRef)(!1);(0,s.useEffect)(()=>{"u">typeof Audio&&!u.current&&(u.current=new Audio,u.current.volume=.7,u.current.onended=()=>{d.current=!1},u.current.onerror=()=>{f.current=!1,d.current=!1},u.current.oncanplaythrough=()=>{f.current=!0})},[]);let p=(0,s.useRef)(r.useNotificationsStore.getState().handleNotificationMessage);(0,s.useEffect)(()=>{p.current=r.useNotificationsStore.getState().handleNotificationMessage});let v=(0,s.useRef)(r.useNotificationsStore.getState().soundEnabled),g=(0,r.useNotificationsStore)(e=>e.soundEnabled);(0,s.useEffect)(()=>{v.current=g},[g]),(0,s.useEffect)(()=>{let e=()=>{if(u.current&&!h.current){h.current=!0,u.current.src="/sound/notification.mp3",u.current.load();try{let e=window.AudioContext||window.webkitAudioContext;if(e){let t=new e,s=t.createBuffer(1,1,22050),n=t.createBufferSource();n.buffer=s,n.connect(t.destination),n.start(0),n.stop(0),"suspended"===t.state&&t.resume()}}catch{}document.removeEventListener("click",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",e)}};return document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0}),document.addEventListener("keydown",e,{once:!0}),()=>{document.removeEventListener("click",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",e)}},[]);let x=(0,s.useCallback)(()=>{if(!v.current||!u.current||d.current||!h.current)return;let e=Date.now();e-m.current<1e3||(m.current=e,d.current=!0,u.current.currentTime=0,f.current?u.current.play().catch(()=>{d.current=!1}):(u.current.oncanplaythrough=()=>{f.current=!0,u.current?.play().catch(()=>{d.current=!1})},u.current.load()))},[]);return(0,s.useEffect)(()=>{if(!a)return void console.warn("WebSocketProvider: No userId provided, skipping WebSocket connection");let e=new n.default(`/api/user?userId=${a}`,l);e.on("open",()=>{e.send({type:"SUBSCRIBE",payload:{type:"auth"}})});let t=e=>{"notification"===e.stream&&e.data&&(p.current({method:e.data.method||"create",payload:e.data}),x())};return e.on("message",t),e.connect(),c(e),()=>{e.off("message",t),e.disconnect()}},[a,l,x]),(0,t.jsx)(i.Provider,{value:{wsManager:o},children:e})},"useWebSocket",0,()=>(0,s.useContext)(i)])},877553,e=>{"use strict";e.i(418679);var t=e.i(445563),s=e.i(179980),n=e.i(220593);let r={className:n.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=n.default.variable&&(r.variable=n.default.variable);var i=e.i(687466);let a={className:i.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=i.default.variable&&(a.variable=i.default.variable);var l=e.i(125577),o=e.i(1678),c=e.i(694879);let u=({...e})=>{let{theme:s="system"}=(0,l.useTheme)();return(0,t.jsx)(c.Toaster,{theme:s,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground font-medium",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground font-medium"}},...e})};var d=e.i(948827),m=e.i(920348),f=e.i(665670),h=e.i(735527),p=e.i(120817),v=e.i(83653),g=e.i(992351);let x=(0,v.default)(()=>e.A(191949),{loadableGenerated:{modules:[952404]},ssr:!1});function b(){let e=(0,g.usePathname)(),{settings:n}=(0,m.useConfigStore)(),[r,i]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{let t=n?.floatingLiveChat,s=e.includes("/support"),r=e.includes("/admin"),a=e.includes("/auth")||e.includes("/login")||e.includes("/register"),l=e.includes("/trade")||e.includes("/binary"),o=e.includes("/gateway/checkout");i((!0===t||"true"===t||"1"===t||1===t)&&!s&&!r&&!a&&!l&&!o)},[n,e]),r)?(0,t.jsx)(x,{}):null}var y=e.i(818144),j=e.i(162809);let k="__SETTINGS_SYNC_INITIALIZED__";var w=e.i(369691),N=e.i(500602);function S({children:e,features:n,strict:r=!1}
1){let[,i]=(0,s.useState)(!P(n)),a=(0,s.useRef)(void 0);if(!P(n)){let{renderer:e,...t}=n;a.current=e,(0,N.loadFeatures)(t)}return(0,s.useEffect)(()=>{P(n)&&n().then(({renderer:e,...t})=>{(0,N.loadFeatures)(t),a.current=e,i(!0)})},[]),(0,t.jsx)(w.LazyContext.Provider,{value:{renderer:a.current,strict:r},children:e})}function P(e){return"function"==typeof e}var E=e.i(115769),C=e.i(517447);let T={renderer:e.i(246090).createDomVisualElement,...E.animations,...C.gestureAnimations};var A=e.i(98123),R=e.i(556310);let _={...T,...A.drag,...R.layout};function I({children:e,features:s="basic"}){return(0,t.jsx)(S,{features:"full"===s?_:T,children:e})}let O=({profile:e,settings:t,extensions:n})=>{let r=(0,d.useUserStore)(e=>e.setUser),{setSettings:i,setExtensions:a,setSettingsFetched:l,setSettingsError:o}=(0,m.useConfigStore)();return(()=>{let{settings:e,settingsFetched:t}=(0,m.useConfigStore)((0,y.useShallow)(e=>({settings:e.settings,settingsFetched:e.settingsFetched})));return(0,s.useEffect)(()=>{!0===window[k]||(window[k]=!0,(async()=>{let e=m.useConfigStore.getState();if(e.settingsFetched&&e.settings&&Object.keys(e.settings).length>0)return console.debug("Settings already loaded from SSR, skipping client fetch");try{let t=await fetch("/api/settings",{method:"GET",headers:{"Cache-Control":"no-cache"}});if(!t.ok)throw Error(`HTTP ${t.status}: ${t.statusText}`);let s=await t.json();if(s&&s.settings){let t=s.settings.filter(e=>"settings"!==e.key&&"extensions"!==e.key&&!("string"==typeof e.value&&e.value.includes("[object Object]"))).reduce((e,t)=>{let s=t.value;return"true"===t.value||"1"===t.value?s=!0:"false"===t.value||"0"===t.value||""===t.value?s=!1:t.value&&!isNaN(Number(t.value))&&""!==t.value&&(t.key.includes("Time")||t.key.includes("Amount")||t.key.includes("Fee")||t.key.includes("Percent")||t.key.includes("Window")||t.key.includes("Max")||t.key.includes("Min")||t.key.includes("Trades")||t.key.includes("Offers"))&&(s=Number(t.value)),e[t.key]=s,e},{}),n=0===Object.keys(t).length?j.DEFAULT_SETTINGS:t;e.setSettings(n),e.setExtensions(s.extensions||[]),e.setSettingsFetched(!0),e.setSettingsError(null)}else throw Error("Invalid settings data received")}catch(s){console.warn("Failed to fetch fresh settings:",s),e.setSettingsError(s instanceof Error?s.message:"Unknown error");let t=m.useConfigStore.getState();if(!t.settingsFetched&&(!t.settings||0===Object.keys(t.settings).length))try{let t=localStorage.getItem("bicrypto-config-store");if(t){let s=JSON.parse(t);s.state?.settings&&Object.keys(s.state.settings).length>0&&(e.setSettings(s.state.settings),e.setExtensions(s.state?.extensions||[]),e.setSettingsFetched(!0),console.info("Using cached settings from localStorage"))}}catch(e){console.warn("Failed to load cached settings:",e)}}})())},[])})(),(0,s.useEffect)(()=>{r(e),t&&Object.keys(t).length>0?(i(t),a(n||[]),n&&n.length>0&&p.ExtensionChecker.getInstance().initialize(n)):(l(!1),o(null))},[e,t,n,i,a,l,o]),null};function M(){return(0,s.useEffect)(()=>{if("function"==typeof Node&&Node.prototype){let e=Node.prototype.removeChild;Node.prototype.removeChild=function(t){return t.parentNode!==this?t:e.call(this,t)};let t=Node.prototype.insertBefore;Node.prototype.insertBefore=function(e,s){return s&&s.parentNode!==this?e:t.call(this,e,s)}}let e=e=>{console.error("Unhandled promise rejection:",e.reason),e.preventDefault()},t=e=>{console.error("Global error:",e.error)};return window.addEventListener("unhandledrejection",e),window.addEventListener("error",t),()=>{window.removeEventListener("unhandledrejection",e),window.removeEventListener("error",t)}},[]),null}e.s(["default",0,({children:e,profile:s,settings:n,extensions:r})=>{let i=n?.siteTheme||"dark";return(0,t.jsx)(l.ThemeProvider,{attribute:"class",enableSystem:"system"===i,defaultTheme:i,disableTransitionOnChange:!0,children:(0,t.jsxs)(I,{features:"full",children:[(0,t.jsx)(O,{profile:s,settings:n,extensions:r}),s?.id?(0,t.jsxs)(h.WebSocketProvider,{userId:s.id,children:[(0,t.jsx)("div",{className:(0,o.cn)("h-full"),children:e}),(0,t.jsx)(b,{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,o.cn)("h-full"),children:e}),(0,t.jsx)(b,{})]}),(0,t.jsx)(u,{}),(0,t.jsx)(M,{})]})})},"useFontClasses",0,()=>{let{radius:e}=(0,f.useThemeStore)();return{className:`${r.variable} ${a.variable} antialiased`,style:{"--radius":`${e}rem`}}}],877553)},68366,e=>{"use strict";
1var t=e.i(445563),s=e.i(179980),n=e.i(665670),r=e.i(693261),i=e.i(735527);e.s(["default",0,({children:e,locale:a})=>{let{isRtl:l}=(0,n.useThemeStore)(),{wsManager:o}=(0,i.useWebSocket)(),c="ar"===a||l?"rtl":"ltr";return(0,s.useEffect)(()=>{o&&o.isConnected()&&o.send({type:"SUBSCRIBE",payload:{type:"auth"}})},[o]),(0,t.jsx)("div",{dir:c,children:(0,t.jsx)(r.DirectionProvider,{dir:c,children:e})})}])},184381,e=>{"use strict";var t=e.i(445563),s=e.i(992351),n=e.i(111774);e.s(["default",0,({children:e})=>{let r=(0,s.usePathname)();return["/forex","/ico","/staking","/p2p","/affiliate","/ecommerce","/faq","/binary","/trade"].some(e=>r.startsWith(e))?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)(n.default,{isGuest:!0,children:e})}])},801756,e=>{"use strict";var t=e.i(445563),s=e.i(848020),n=e.i(179980);e.i(233633);var r=e.i(75327),i=e.i(309279),a=e.i(520107),l=e.i(492793),o=e.i(111142),c=e.i(75918);function u(){let e=(0,r.useTranslations)("components"),u=(0,r.useTranslations)("common"),{isLoading:d,settingsError:m,settingsFetched:f,retryFetch:h}
1=(0,s.useSettings)(),[p,v]=(0,n.useState)(!1),[g,x]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname;v(e),x(!!(e&&(d||m||!f)))},[d,m,f]);let j=async()=>{y(!0);try{await h()}finally{y(!1)}};return p&&g?m?(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-background/80 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"bg-card border border-destructive/50 rounded-lg p-6 shadow-2xl max-w-md mx-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,t.jsx)("div",{className:"p-2 rounded-full bg-destructive/10",children:(0,t.jsx)(i.AlertCircle,{className:"h-6 w-6 text-destructive"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-semibold text-lg",children:e("settings_error")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Failed to load application settings"})]})]}),(0,t.jsx)("div",{className:"bg-muted/50 rounded-md p-3 mb-4",children:(0,t.jsx)("code",{className:"text-xs text-destructive break-all",children:m})}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)(c.Button,{onClick:j,disabled:b,className:"flex-1",children:[b?(0,t.jsx)(a.Loader2,{className:"h-4 w-4 mr-2 animate-spin"}):(0,t.jsx)(o.RefreshCw,{className:"h-4 w-4 mr-2"}),b?"Retrying...":"Retry"]})}),(0,t.jsx)("p",{className:"mt-3 text-xs text-muted-foreground text-center",children:e("press_ctrl_shift_r_to_retry")})]})}):(0,t.jsx)("div",{className:"fixed bottom-4 right-4 z-[100] max-w-sm",children:(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-3 shadow-lg",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Loader2,{className:"h-4 w-4 text-yellow-500 animate-spin"}),(0,t.jsx)("span",{className:"text-yellow-500",children:u("loading_settings_ellipsis")})]}),!f&&!d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.AlertTriangle,{className:"h-4 w-4 text-orange-500"}),(0,t.jsx)("span",{className:"text-orange-500",children:e("using_fallback_menu")})]})]}),(0,t.jsx)("div",{className:"mt-2 text-xs text-muted-foreground",children:e("press_ctrl_shift_r_to_retry")})]})}):null}e.s(["SettingsStatus",()=>u])},48989,e=>{"use strict";var t=e.i(445563),s=e.i(179980),n=e.i(948827),r=e.i(172425),i=e.i(36306),a=e.i(492793),l=e.i(869760),o=e.i(75918),c=e.i(409818),u=e.i(876442),d=e.i(992351);e.i(233633);var m=e.i(75327);function f({title:e,description:n,returnPath:f}){let h=(0,m.useTranslations)("components_auth"),p=(0,m.useTranslations)("common"),[v,g]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-background via-background to-muted/20 p-4",children:[(0,t.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,t.jsx)("div",{className:"absolute -top-24 -left-24 w-96 h-96 bg-primary/5 rounded-full blur-3xl"}),(0,t.jsx)("div",{className:"absolute -bottom-24 -right-24 w-96 h-96 bg-primary/5 rounded-full blur-3xl"})]}),(0,t.jsx)("div",{className:"relative z-10 w-full max-w-md",children:(0,t.jsxs)(c.Card,{className:"border-2 border-border/50 shadow-2xl",children:[(0,t.jsxs)(c.CardHeader,{className:"text-center space-y-4 pb-4",children:[(0,t.jsx)("div",{className:"mx-auto w-16 h-16 bg-destructive/10 rounded-full flex items-center justify-center",children:(0,t.jsx)(r.Shield,{className:"w-8 h-8 text-destructive"})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(c.CardTitle,{className:"text-2xl font-bold text-foreground",children:e||h("access_restricted")}),(0,t.jsx)(c.CardDescription,{className:"text-muted-foreground",children:n||h("you_need_to_be_authenticated_to_access_this_area")})]})]}),(0,t.jsxs)(c.CardContent,{className:"space-y-6",children:[(0,t.jsx)("div",{className:"bg-muted/50 border border-border/50 rounded-lg p-4",children:(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)(a.AlertTriangle,{className:"w-5 h-5 text-amber-500 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:p("authentication_required")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:h("this_area_requires_proper")})]})]})}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)(o.Button,{onClick:()=>g(!0),className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",size:"lg",children:[(0,t.jsx)(i.Lock,{className:"w-4 h-4 mr-2"}),p("sign_in_to_continue")]}),(0,t.jsx)(d.Link,{href:"/",children:(0,t.jsxs)(o.Button,{variant:"outline",className:"w-full",size:"lg",children:[(0,t.jsx)(l.Home,{className:"w-4 h-4 mr-2"}),p("go_to_homepage")]})})]}),(0,t.jsx)("div",{className:"pt-4 border-t border-border/50",children:(0,t.jsxs)("div",{className:"flex items-center justify-center space-x-2 text-xs text-muted-foreground",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)(r.Shield,{className:"w-3 h-3"}),(0,t.jsx)("span",{children:h("secure_access")})]}),(0,t.jsx)("div",{className:"w-px h-3 bg-border"}),(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)(i.Lock,{className:"w-3 h-3"}),(0,t.jsx)("span",{children:h("protected_area")})]})]})})]})]})}),(0,t.jsx)(u.AuthModal,{isOpen:v,onClose:()=>g(!1),initialView:"login",returnTo:f})]})}var h=e.i(765411),p=e.i(680965);
1function v(){let[e,r]=(0,s.useState)(!1),i=(0,n.useUserStore)(e=>e.user),a=(0,n.useUserStore)(e=>e.isLoading),l=(0,n.useUserStore)(e=>e.hasPermission),o=(0,h.useSearchParams)(),c=(0,d.usePathname)(),u=(0,d.useRouter)();return((0,s.useEffect)(()=>{let e=o?.get("auth");a||("false"===e?i?c.replace(/^\/[a-z]{2}\//,"/").startsWith("/admin")?i.role?.name==="Super Admin"||l("access.admin")?((0,p.cleanupAuthFalseParam)(),r(!1)):r(!0):((0,p.cleanupAuthFalseParam)(),r(!1)):r(!0):r(!1))},[i,a,o,c,u,l]),e)?(0,t.jsx)("div",{className:"fixed inset-0 z-50 bg-background",children:(0,t.jsx)(f,{returnPath:c})}):null}e.s(["GlobalAuthDetector",()=>v],48989)},191949,e=>{e.v(t=>Promise.all(["static/chunks/507178d15947de5d.js"].map(t=>e.l(t))).then(()=>t(952404)))},700650,e=>{e.v(t=>Promise.all(["static/chunks/476b03e9c77dc243.js","static/chunks/45f659f15fe6ed2c.js","static/chunks/3b106e58c4186193.js","static/chunks/b1010954b6c62f3f.js","static/chunks/4d54192ee2487b1e.js","static/chunks/7d0d606315d83c1d.js","static/chunks/2a659123a69bb90d.js"].map(t=>e.l(t))).then(()=>t(163575)))},164320,e=>{e.v(t=>Promise.all(["static/chunks/f0d4252c48095ad1.js"].map(t=>e.l(t))).then(()=>t(630707)))},914100,e=>{e.v(t=>Promise.all(["static/chunks/f62b37eba2aa187d.js"].map(t=>e.l(t))).then(()=>t(630354)))},420636,e=>{e.v(t=>Promise.all(["static/chunks/95187bab70d8d751.js"].map(t=>e.l(t))).then(()=>t(869820)))},833582,e=>{e.v(t=>Promise.all(["static/chunks/0f83c7d8e15f52f6.js"].map(t=>e.l(t))).then(()=>t(122291)))},798796,e=>{e.v(t=>Promise.all(["static/chunks/bbe0c21831e87e6e.js","static/chunks/dd0574775eace572.js"].map(t=>e.l(t))).then(()=>t(870895)))},877793,e=>{e.v(t=>Promise.all(["static/chunks/f9dc41ba52322e7d.js","static/chunks/47b00580341613f3.js"].map(t=>e.l(t))).then(()=>t(736088)))},97680,e=>{e.v(t=>Promise.all(["static/chunks/34e1d0bf3b67b476.js"].map(t=>e.l(t))).then(()=>t(320990)))},719669,e=>{e.v(t=>Promise.all(["static/chunks/c76aff5d080b5ad7.js"].map(t=>e.l(t))).then(()=>t(391941)))},593163,e=>{e.v(t=>Promise.all(["static/chunks/a04790356d9ab09e.js"].map(t=>e.l(t))).then(()=>t(386724)))},995932,e=>{e.v(t=>Promise.all(["static/chunks/90d4a601388271cc.js"].map(t=>e.l(t))).then(()=>t(647430)))},450433,e=>{e.v(t=>Promise.all(["static/chunks/cfca3016386bfd51.js"].map(t=>e.l(t))).then(()=>t(912218)))},321707,e=>{e.v(t=>Promise.all(["static/chunks/b3b72ab00f2942b7.js"].map(t=>e.l(t))).then(()=>t(95262)))},246217,e=>{e.v(t=>Promise.all(["static/chunks/62f991ac07e3182f.js"].map(t=>e.l(t))).then(()=>t(856213)))},498338,e=>{e.v(t=>Promise.all(["static/chunks/5d2cc08d07143813.js","static/chunks/14945dfc26120ae5.js"].map(t=>e.l(t))).then(()=>t(244225)))},561951,e=>{e.v(t=>Promise.all(["static/chunks/2c3a9c822b2020f5.js"].map(t=>e.l(t))).then(()=>t(208642)))},371588,e=>{e.v(t=>Promise.all(["static/chunks/e34eb8919aac60ea.js"].map(t=>e.l(t))).then(()=>t(715957)))},287974,e=>{e.v(t=>Promise.all(["static/chunks/ab60bab66bc38f81.js"].map(t=>e.l(t))).then(()=>t(817253)))},760649,e=>{e.v(t=>Promise.all(["static/chunks/1137143b58e6be06.js"].map(t=>e.l(t))).then(()=>t(239416)))},752370,e=>{e.v(t=>Promise.all(["static/chunks/2b35f9aa03e4e311.js"].map(t=>e.l(t))).then(()=>t(44454)))},380898,e=>{e.v(t=>Promise.all(["static/chunks/b0fcc5832abeea01.js"].map(t=>e.l(t))).then(()=>t(291921)))},679276,e=>{e.v(t=>Promise.all(["static/chunks/1bc7d077968f1dc8.js"].map(t=>e.l(t))).then(()=>t(578864)))},793714,e=>{e.v(t=>Promise.all(["static/chunks/aa085757129f5423.js"].map(t=>e.l(t))).then(()=>t(661439)))},673354,e=>{e.v(t=>Promise.all(["static/chunks/5c5144bf14f695d4.js"].map(t=>e.l(t))).then(()=>t(77526)))},343098,e=>{e.v(t=>Promise.all(["static/chunks/642f9aea56f016d7.js"].map(t=>e.l(t))).then(()=>t(595341)))},848871,e=>{e.v(t=>Promise.all(["static/chunks/8b137408ada9c6a1.js"].map(t=>e.l(t))).then(()=>t(150745)))},147526,e=>{e.v(t=>Promise.all(["static/chunks/e3187bc6c1a7ca3f.js"].map(t=>e.l(t))).then(()=>t(155224)))},907316,e=>{e.v(t=>Promise.all(["static/chunks/c4a1f6b5d4dd4a72.js"].map(t=>e.l(t))).then(()=>t(250695)))},789898,e=>{e.v(t=>Promise.all(["static/chunks/31cbddef61d7d54e.js"].map(t=>e.l(t))).then(()=>t(104983)))},432962,e=>{e.v(t=>Promise.all(["static/chunks/3c05f0beeb5bede7.js"].map(t=>e.l(t))).then(()=>t(204614)))},391107,e=>{e.v(t=>Promise.all(["static/chunks/7e33170369970d8f.js"].map(t=>e.l(t))).then(()=>t(978089)))},39357,e=>{e.v(t=>Promise.all(["static/chunks/947d7523c49b5674.js"].map(t=>e.l(t))).then(()=>t(100483)))},475748,e=>{e.v(t=>Promise.all(["static/chunks/5dfcc33fd50f5fa7.js"].map(t=>e.l(t))).then(()=>t(617526)))},355151,e=>{e.v(t=>Promise.all(["static/chunks/b43dab2448958573.js"].map(t=>e.l(t))).then(()=>t(963854)))},341493,e=>{e.v(t=>Promise.all(["static/chunks/f4f9f0e937fa9a7a.js"].map(t=>e.l(t))).then(()=>t(258744)))},722065,e=>{e.v(t=>Promise.all(["static/chunks/c59c14820d338298.js"].map(t=>e.l(t))).then(()=>t(855811)))},799476,e=>{e.v(t=>Promise.all(["static/chunks/e04137e95b832965.js"].map(t=>e.l(t))).then(()=>t(700788)))},483147,e=>{e.v(t=>Promise.all(["static/chunks/5dbab1d722a5ce82.js"].map(t=>e.l(t))).then(()=>t(238950)))},42904,e=>{e.v(t=>Promise.all(["static/chunks/7022307073b59260.js"].map(t=>e.l(t))).then(()=>t(464329)))},377440,e=>{e.v(t=>Promise.all(["static/chunks/e3a7c846e99abaca.js"].map(t=>e.l(t))).then(()=>t(266781)))},204854,e=>{e.v(t=>Promise.all(["static/chunks/f529387dd626b8b0.js"].map(t=>e.l(t))).then(()=>t(873612)))},945908,e=>{e.v(t=>Promise.all(["static/chunks/f78df954bae5860f.js"].map(t=>e.l(t))).then(()=>t(17257)))},488821,e=>{e.v(t=>Promise.all(["static/chunks/5dd46445e86b709c.js"].map(t=>e.l(t))).then(()=>t(340036)))},505001,e=>{e.v(t=>Promise.all(["static/chunks/b96bd9c3f1284b8f.js"].map(t=>e.l(t))).then(()=>t(145712)))},973779,e=>{e.v(t=>Promise.all(["static/chunks/07e2b468878ab5a2.js"].map(t=>e.l(t))).then(()=>t(42089)))},25006,e=>{e.v(t=>Promise.all(["static/chunks/f6b40e22529335a9.js"].map(t=>e.l(t))).then(()=>t(456529)))},512309,e=>{e.v(t=>Promise.all(["static/chunks/bc5c8d096c77a5b4.js"].map(t=>e.l(t))).then(()=>t(889946)))},596306,e=>{e.v(t=>Promise.all(["static/chunks/c958422ce2908eac.js"].map(t=>e.l(t))).then(()=>t(924578)))},993655,e=>{e.v(t=>Promise.all(["static/chunks/25a0ab5ac97c2101.js"].map(t=>e.l(t))).then(()=>t(757586)))},125078,e=>{e.v(t=>Promise.all(["static/chunks/a39d31cfd97157f6.js"].map(t=>e.l(t))).then(()=>t(632324)))},544788,e=>{e.v(t=>Promise.all(["static/chunks/2ed5fd121555653f.js"].map(t=>e.l(t))).then(()=>t(642354)))},361627,e=>{e.v(t=>Promise.all(["static/chunks/529c3448bc40356b.js"].map(t=>e.l(t))).then(()=>t(891895)))},760225,e=>{e.v(t=>Promise.all(["static/chunks/e4c5851c938a6744.js"].map(t=>e.l(t))).then(()=>t(166087)))},19808,e=>{e.v(t=>Promise.all(["static/chunks/0685f7b7c7d7d766.js"].map(t=>e.l(t))).then(()=>t(714510)))},641044,e=>{e.v(t=>Promise.all(["static/chunks/d5663db0ad74f329.js"].map(t=>e.l(t))).then(()=>t(769031)))},285398,e=>{e.v(t=>Promise.all(["static/chunks/db75650f8c24a089.js"].map(t=>e.l(t))).then(()=>t(96182)))},678806,e=>{e.v(t=>Promise.all(["static/chunks/b5200fa63cc0b6fe.js"].map(t=>e.l(t))).then(()=>t(296095)))},960338,e=>{e.v(t=>Promise.all(["static/chunks/30ed49c83110411b.js"].map(t=>e.l(t))).then(()=>t(492059)))},920948,e=>{e.v(t=>Promise.all(["static/chunks/f82cd014ed584943.js"].map(t=>e.l(t))).then(()=>t(430979)))},661111,e=>{e.v(t=>Promise.all(["static/chunks/0732cf13af745a16.js"].map(t=>e.l(t))).then(()=>t(42302)))},710664,e=>{e.v(t=>Promise.all(["static/chunks/c6d34290672c9ed0.js"].map(t=>e.l(t))).then(()=>t(968015)))},256006,e=>{e.v(t=>Promise.all(["static/chunks/c54118b882a15280.js"].map(t=>e.l(t))).then(()=>t(17728)))},231619,e=>{e.v(t=>Promise.all(["static/chunks/2a2c780f8329981e.js"].map(t=>e.l(t))).then(()=>t(299871)))},707580,e=>{e.v(t=>Promise.all(["static/chunks/cb907ad787820edf.js"].map(t=>e.l(t))).then(()=>t(883336)))},74368,e=>{e.v(t=>Promise.all(["static/chunks/8b7900c5719c9789.js"].map(t=>e.l(t))).then(()=>t(993728)))},11883,e=>{e.v(t=>Promise.all(["static/chunks/6ff0d7d9c942f3f3.js"].map(t=>e.l(t))).then(()=>t(317121)))},242702,e=>{e.v(t=>Promise.all(["static/chunks/96aaac07f895a6b7.js"].map(t=>e.l(t))).then(()=>t(499028)))},864250,e=>{e.v(t=>Promise.all(["static/chunks/dcb225c743164708.js","static/chunks/d34deb59c2fdd572.js","static/chunks/9fa23467eab98d78.js"].map(t=>e.l(t))).then(()=>t(303805)))},306271,e=>{e.v(t=>
1Promise.all(["static/chunks/590dae442bb19452.js","static/chunks/b29c542f73ae8717.js","static/chunks/70c2cf0a8c058f76.js","static/chunks/976d1dfcc8e07465.js","static/chunks/c00c12e53c0ca49a.js"].map(t=>e.l(t))).then(()=>t(364125)))}]);
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.