(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7446],{73067:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},83523:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},80820:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},9883:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},45367:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},4631:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},31541:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(65531);/**
 * @license lucide-react v0.446.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},30415:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(21024);r(2265);let o=n._(r(54));function a(e){return{default:(null==e?void 0:e.default)||e}}function i(e,t){let r=o.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};"function"==typeof e&&(n.loader=e),Object.assign(n,t);let i=n.loader;return r({...n,loader:()=>null!=i?i().then(a):Promise.resolve(a(()=>null))})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63388:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{suspense:function(){return o},NoSSR:function(){return a}}),r(21024),r(2265);let n=r(54922);function o(){let e=Error(n.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=n.NEXT_DYNAMIC_NO_SSR_CODE,e}function a(e){let{children:t}=e;return t}},54:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(21024),o=n._(r(2265)),a=r(63388),i=function(e){let t=Object.assign({loader:null,loading:null,ssr:!0},e);function r(e){let r=t.loading,n=o.default.createElement(r,{isLoading:!0,pastDelay:!0,error:null}),i=t.ssr?o.default.Fragment:a.NoSSR,l=t.lazy;return o.default.createElement(o.default.Suspense,{fallback:n},o.default.createElement(i,null,o.default.createElement(l,e)))}return t.lazy=o.default.lazy(t.loader),r.displayName="LoadableComponent",r}},24033:function(e,t,r){e.exports=r(20290)},22261:function(e,t,r){"use strict";r.d(t,{aU:function(){return T},$j:function(){return S},VY:function(){return V},dk:function(){return $},aV:function(){return P},h_:function(){return F},fC:function(){return O},Dx:function(){return W},xz:function(){return I}});var n=r(2265),o=r(56989),a=r(42210),i=r(79515),l=r(85744),u=r(57437);n.forwardRef((e,t)=>{let{children:r,...o}=e,a=n.Children.toArray(r),i=a.find(d);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,u.jsx)(s,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,u.jsx)(s,{...o,ref:t,children:r})}).displayName="Slot";var s=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e,i;let l=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n],i=/^on[A-Z]/.test(n);i?o&&a?r[n]=(...e)=>{a(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,a.F)(t,l):l})}return n.Children.count(r)>1?n.Children.only(null):null});s.displayName="SlotClone";var c=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});function d(e){return n.isValidElement(e)&&e.type===c}var f="AlertDialog",[p,m]=(0,o.b)(f,[i.p8]),g=(0,i.p8)(),v=e=>{let{__scopeAlertDialog:t,...r}=e,n=g(t);return(0,u.jsx)(i.fC,{...n,...r,modal:!0})};v.displayName=f;var y=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=g(r);return(0,u.jsx)(i.xz,{...o,...n,ref:t})});y.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,n=g(t);return(0,u.jsx)(i.h_,{...n,...r})};h.displayName="AlertDialogPortal";var b=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=g(r);return(0,u.jsx)(i.aV,{...o,...n,ref:t})});b.displayName="AlertDialogOverlay";var x="AlertDialogContent",[w,j]=p(x),D=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...s}=e,d=g(r),f=n.useRef(null),p=(0,a.e)(t,f),m=n.useRef(null);return(0,u.jsx)(i.jm,{contentName:x,titleName:R,docsSlug:"alert-dialog",children:(0,u.jsx)(w,{scope:r,cancelRef:m,children:(0,u.jsxs)(i.VY,{role:"alertdialog",...d,...s,ref:p,onOpenAutoFocus:(0,l.M)(s.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(c,{children:o}),(0,u.jsx)(A,{contentRef:f})]})})})});D.displayName=x;var R="AlertDialogTitle",C=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=g(r);return(0,u.jsx)(i.Dx,{...o,...n,ref:t})});C.displayName=R;var N="AlertDialogDescription",M=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=g(r);return(0,u.jsx)(i.dk,{...o,...n,ref:t})});M.displayName=N;var E=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=g(r);return(0,u.jsx)(i.x8,{...o,...n,ref:t})});E.displayName="AlertDialogAction";var k="AlertDialogCancel",_=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=j(k,r),l=g(r),s=(0,a.e)(t,o);return(0,u.jsx)(i.x8,{...l,...n,ref:s})});_.displayName=k;var A=({contentRef:e})=>{let t=`\`${x}\` requires a description for the component to be accessible for screen reader users.

You can add a description to the \`${x}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.

Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${x}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.

For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return n.useEffect(()=>{let r=document.getElementById(e.current?.getAttribute("aria-describedby"));r||console.warn(t)},[t,e]),null},O=v,I=y,F=h,P=b,V=D,T=E,S=_,W=C,$=M},79515:function(e,t,r){"use strict";r.d(t,{x8:function(){return el},VY:function(){return eo},dk:function(){return ei},aV:function(){return en},h_:function(){return er},fC:function(){return ee},Dx:function(){return ea},xz:function(){return et},jm:function(){return G},p8:function(){return R}});var n=r(2265),o=r(85744),a=r(42210),i=r(56989),l=r(20966),u=r(73763),s=r(79249),c=r(52759),d=r(52730),f=r(85606),p=r(31033),m=r(31244),g=r(73386),v=r(85859),y=r(57437),h=n.forwardRef((e,t)=>{let{children:r,...o}=e,a=n.Children.toArray(r),i=a.find(w);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,y.jsx)(b,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,y.jsx)(b,{...o,ref:t,children:r})});h.displayName="Slot";var b=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e,i;let l=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n],i=/^on[A-Z]/.test(n);i?o&&a?r[n]=(...e)=>{a(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,a.F)(t,l):l})}return n.Children.count(r)>1?n.Children.only(null):null});b.displayName="SlotClone";var x=({children:e})=>(0,y.jsx)(y.Fragment,{children:e});function w(e){return n.isValidElement(e)&&e.type===x}var j="Dialog",[D,R]=(0,i.b)(j),[C,N]=D(j),M=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=n.useRef(null),d=n.useRef(null),[f=!1,p]=(0,u.T)({prop:o,defaultProp:a,onChange:i});return(0,y.jsx)(C,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:s,children:r})};M.displayName=j;var E="DialogTrigger",k=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=N(E,r),l=(0,a.e)(t,i.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Y(i.open),...n,ref:l,onClick:(0,o.M)(e.onClick,i.onOpenToggle)})});k.displayName=E;var _="DialogPortal",[A,O]=D(_,{forceMount:void 0}),I=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:a}=e,i=N(_,t);return(0,y.jsx)(A,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,y.jsx)(f.z,{present:r||i.open,children:(0,y.jsx)(d.h,{asChild:!0,container:a,children:e})}))})};I.displayName=_;var F="DialogOverlay",P=n.forwardRef((e,t)=>{let r=O(F,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=N(F,e.__scopeDialog);return a.modal?(0,y.jsx)(f.z,{present:n||a.open,children:(0,y.jsx)(V,{...o,ref:t})}):null});P.displayName=F;var V=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=N(F,r);return(0,y.jsx)(g.Z,{as:h,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":Y(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),T="DialogContent",S=n.forwardRef((e,t)=>{let r=O(T,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=N(T,e.__scopeDialog);return(0,y.jsx)(f.z,{present:n||a.open,children:a.modal?(0,y.jsx)(W,{...o,ref:t}):(0,y.jsx)($,{...o,ref:t})})});S.displayName=T;var W=n.forwardRef((e,t)=>{let r=N(T,e.__scopeDialog),i=n.useRef(null),l=(0,a.e)(t,r.contentRef,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,v.Ry)(e)},[]),(0,y.jsx)(Z,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;n&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),$=n.forwardRef((e,t)=>{let r=N(T,e.__scopeDialog),o=n.useRef(!1),a=n.useRef(!1);return(0,y.jsx)(Z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let n=t.target,i=r.triggerRef.current?.contains(n);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),Z=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...u}=e,d=N(T,r),f=n.useRef(null),p=(0,a.e)(t,f);return(0,m.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,y.jsx)(s.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Y(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(J,{titleId:d.titleId}),(0,y.jsx)(Q,{contentRef:f,descriptionId:d.descriptionId})]})]})}),z="DialogTitle",L=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=N(z,r);return(0,y.jsx)(p.WV.h2,{id:o.titleId,...n,ref:t})});L.displayName=z;var K="DialogDescription",B=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=N(K,r);return(0,y.jsx)(p.WV.p,{id:o.descriptionId,...n,ref:t})});B.displayName=K;var q="DialogClose",U=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=N(q,r);return(0,y.jsx)(p.WV.button,{type:"button",...n,ref:t,onClick:(0,o.M)(e.onClick,()=>a.onOpenChange(!1))})});function Y(e){return e?"open":"closed"}U.displayName=q;var H="DialogTitleWarning",[G,X]=(0,i.k)(H,{contentName:T,titleName:z,docsSlug:"dialog"}),J=({titleId:e})=>{let t=X(H),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{if(e){let t=document.getElementById(e);t||console.error(r)}},[r,e]),null},Q=({contentRef:e,descriptionId:t})=>{let r=X("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");if(t&&r){let e=document.getElementById(t);e||console.warn(o)}},[o,e,t]),null},ee=M,et=k,er=I,en=P,eo=S,ea=L,ei=B,el=U},9675:function(e,t,r){"use strict";r.d(t,{ck:function(){return _},fC:function(){return k},Pc:function(){return x}});var n=r(2265),o=r(85744),a=r(98259),i=r(42210),l=r(57437),u=r(20966),s=r(31033),c=r(16459),d=r(73763),f=r(65400),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,h]=(0,a.B)(g),[b,x]=function(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let a=n.createContext(o),i=r.length;function u(t){let{scope:r,children:o,...u}=t,s=r?.[e][i]||a,c=n.useMemo(()=>u,Object.values(u));return(0,l.jsx)(s.Provider,{value:c,children:o})}return r=[...r,o],u.displayName=t+"Provider",[u,function(r,l){let u=l?.[e][i]||a,s=n.useContext(u);if(s)return s;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e),a=o[`__scope${n}`];return{...t,...a}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}(g,[h]),[w,j]=b(g),D=n.forwardRef((e,t)=>(0,l.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(R,{...e,ref:t})})}));D.displayName=g;var R=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:u=!1,dir:g,currentTabStopId:v,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:j=!1,...D}=e,R=n.useRef(null),C=(0,i.e)(t,R),N=(0,f.gm)(g),[M=null,k]=(0,d.T)({prop:v,defaultProp:h,onChange:b}),[_,A]=n.useState(!1),O=(0,c.W)(x),I=y(r),F=n.useRef(!1),[P,V]=n.useState(0);return n.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(p,O),()=>e.removeEventListener(p,O)},[O]),(0,l.jsx)(w,{scope:r,orientation:a,dir:N,loop:u,currentTabStopId:M,onItemFocus:n.useCallback(e=>k(e),[k]),onItemShiftTab:n.useCallback(()=>A(!0),[]),onFocusableItemAdd:n.useCallback(()=>V(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>V(e=>e-1),[]),children:(0,l.jsx)(s.WV.div,{tabIndex:_||0===P?-1:0,"data-orientation":a,...D,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable),t=e.find(e=>e.active),r=e.find(e=>e.id===M),n=[t,r,...e].filter(Boolean),o=n.map(e=>e.ref.current);E(o,j)}}F.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>A(!1))})})}),C="RovingFocusGroupItem",N=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:i=!1,tabStopId:c,...d}=e,f=(0,u.M)(),p=c||f,m=j(C,r),g=m.currentTabStopId===p,h=y(r),{onFocusableItemAdd:b,onFocusableItemRemove:x}=m;return n.useEffect(()=>{if(a)return b(),()=>x()},[a,b,x]),(0,l.jsx)(v.ItemSlot,{scope:r,id:p,focusable:a,active:i,children:(0,l.jsx)(s.WV.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return M[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable),a=o.map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&a.reverse();let o=a.indexOf(e.currentTarget);a=m.loop?(r=a,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):a.slice(o+1)}setTimeout(()=>E(a))}})})})});N.displayName=C;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var k=D,_=N},92376:function(e,t,r){"use strict";r.d(t,{bU:function(){return D},fC:function(){return j}});var n=r(2265),o=r(85744),a=r(42210),i=r(56989),l=r(73763),u=r(85184),s=r(94977),c=r(31033),d=r(57437),f="Switch",[p,m]=(0,i.b)(f),[g,v]=p(f),y=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:u,defaultChecked:s,required:f,disabled:p,value:m="on",onCheckedChange:v,form:y,...h}=e,[b,j]=n.useState(null),D=(0,a.e)(t,e=>j(e)),R=n.useRef(!1),C=!b||y||!!b.closest("form"),[N=!1,M]=(0,l.T)({prop:u,defaultProp:s,onChange:v});return(0,d.jsxs)(g,{scope:r,checked:N,disabled:p,children:[(0,d.jsx)(c.WV.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":w(N),"data-disabled":p?"":void 0,disabled:p,value:m,...h,ref:D,onClick:(0,o.M)(e.onClick,e=>{M(e=>!e),C&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})}),C&&(0,d.jsx)(x,{control:b,bubbles:!R.current,name:i,value:m,checked:N,required:f,disabled:p,form:y,style:{transform:"translateX(-100%)"}})]})});y.displayName=f;var h="SwitchThumb",b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=v(h,r);return(0,d.jsx)(c.WV.span,{"data-state":w(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});b.displayName=h;var x=e=>{let{control:t,checked:r,bubbles:o=!0,...a}=e,i=n.useRef(null),l=(0,u.D)(r),c=(0,s.t)(t);return n.useEffect(()=>{let e=i.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked"),a=n.set;if(l!==r&&a){let t=new Event("click",{bubbles:o});a.call(e,r),e.dispatchEvent(t)}},[l,r,o]),(0,d.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var j=y,D=b},34522:function(e,t,r){"use strict";r.d(t,{VY:function(){return A},aV:function(){return k},fC:function(){return E},xz:function(){return _}});var n=r(2265),o=r(85744),a=r(56989),i=r(9675),l=r(85606),u=r(31033),s=r(65400),c=r(73763),d=r(20966),f=r(57437),p="Tabs",[m,g]=(0,a.b)(p,[i.Pc]),v=(0,i.Pc)(),[y,h]=m(p),b=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:p="automatic",...m}=e,g=(0,s.gm)(l),[v,h]=(0,c.T)({prop:n,onChange:o,defaultProp:a});return(0,f.jsx)(y,{scope:r,baseId:(0,d.M)(),value:v,onValueChange:h,orientation:i,dir:g,activationMode:p,children:(0,f.jsx)(u.WV.div,{dir:g,"data-orientation":i,...m,ref:t})})});b.displayName=p;var x="TabsList",w=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=h(x,r),l=v(r);return(0,f.jsx)(i.fC,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:n,children:(0,f.jsx)(u.WV.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});w.displayName=x;var j="TabsTrigger",D=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...l}=e,s=h(j,r),c=v(r),d=N(s.baseId,n),p=M(s.baseId,n),m=n===s.value;return(0,f.jsx)(i.ck,{asChild:!0,...c,focusable:!a,active:m,children:(0,f.jsx)(u.WV.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...l,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(n)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(n)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==s.activationMode;m||a||!e||s.onValueChange(n)})})})});D.displayName=j;var R="TabsContent",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:a,children:i,...s}=e,c=h(R,r),d=N(c.baseId,o),p=M(c.baseId,o),m=o===c.value,g=n.useRef(m);return n.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(l.z,{present:a||m,children:({present:r})=>(0,f.jsx)(u.WV.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:p,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:r&&i})})});function N(e,t){return`${e}-trigger-${t}`}function M(e,t){return`${e}-content-${t}`}C.displayName=R;var E=b,k=w,_=D,A=C}}]);