1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="b56e7ff1-c5ac-6076-d6cb-1086091d4fc8")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,396661,e=>{"use strict";e.s(["mergeClasses",0,(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()])},871987,388973,e=>{"use strict";e.s(["default",0,{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"}],871987),e.s(["hasA11yProp",0,e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1}],388973)},505014,e=>{"use strict";var t=e.i(271645),r=e.i(871987),n=e.i(388973),i=e.i(396661);let o=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:s,strokeWidth:a,absoluteStrokeWidth:l,className:u="",children:d,iconNode:c,...f},p)=>{let{size:h=24,strokeWidth:m=2,absoluteStrokeWidth:g=!1,color:v="currentColor",className:y=""}=(0,t.useContext)(o)??{},x=l??g?24*Number(a??m)/Number(s??h):a??m;return(0,t.createElement)("svg",{ref:p,...r.default,width:s??h??r.default.width,height:s??h??r.default.height,stroke:e??v,strokeWidth:x,className:(0,i.mergeClasses)("lucide",y,u),...!d&&!(0,n.hasA11yProp)(f)&&{"aria-hidden":"true"},...f},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(d)?d:[d]])});e.s(["default",0,s],505014)},456420,e=>{"use strict";var t=e.i(271645),r=e.i(396661);let 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 i=e.i(505014);e.s(["default",0,(e,o)=>{let s=(0,t.forwardRef)(({className:s,...a},l)=>(0,t.createElement)(i.default,{ref:l,iconNode:o,className:(0,r.mergeClasses)(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...a}
2));return s.displayName=n(e),s}],456420)},263676,e=>{"use strict";let t=(0,e.i(456420).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],263676)},207670,e=>{"use strict";e.s(["clsx",0,function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}])},429641,326999,e=>{"use strict";let t,r,n;var i=e.i(843476),o=e.i(271645),s=e.i(981140),a=e.i(820783),l=e.i(30030),u=e.i(610772),d=e.i(369340),c=e.i(726330),f=e.i(765491),p=e.i(774606),h=e.i(296626),m=e.i(248425),g=e.i(303536),v=e.i(985369),y=e.i(186312),x=Symbol("radix.slottable");function b(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}var w="Dialog",[R,C]=(0,l.createContextScope)(w),[j,D]=R(w),k=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:a,modal:l=!0}=e,c=o.useRef(null),f=o.useRef(null),[p,h]=(0,d.useControllableState)({prop:n,defaultProp:s??!1,onChange:a,caller:w});return(0,i.jsx)(j,{scope:t,triggerRef:c,contentRef:f,contentId:(0,u.useId)(),titleId:(0,u.useId)(),descriptionId:(0,u.useId)(),open:p,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),modal:l,children:r})};k.displayName=w;var A="DialogTrigger",E=o.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(A,r),l=(0,a.useComposedRefs)(t,o.triggerRef);return(0,i.jsx)(m.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Z(o.open),...n,ref:l,onClick:(0,s.composeEventHandlers)(e.onClick,o.onOpenToggle)})});E.displayName=A;var N="DialogPortal",[I,F]=R(N,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:s}=e,a=D(N,t);return(0,i.jsx)(I,{scope:t,forceMount:r,children:o.Children.map(n,e=>(0,i.jsx)(h.Presence,{present:r||a.open,children:(0,i.jsx)(p.Portal,{asChild:!0,container:s,children:e})}))})};O.displayName=N;var P="DialogOverlay",S=o.forwardRef((e,t)=>{let r=F(P,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=D(P,e.__scopeDialog);return s.modal?(0,i.jsx)(h.Presence,{present:n||s.open,children:(0,i.jsx)(_,{...o,ref:t})}):null});S.displayName=P;var T=((n=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var i;let e,s,l=(i=r,(s=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(s=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(u.ref=t?(0,a.composeRefs)(t,l):l),o.cloneElement(r,u)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName="DialogOverlay.RemoveScroll.SlotClone",t=n,(r=o.forwardRef((e,r)=>{let{children:n,...s}=e,a=o.Children.toArray(n),l=a.find(b);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...s,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,i.jsx)(t,{...s,ref:r,children:n})})).displayName="DialogOverlay.RemoveScroll.Slot",r),_=o.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(P,r);return(0,i.jsx)(v.RemoveScroll,{as:T,allowPinchZoom:!0,shards:[o.contentRef],children:(0,i.jsx)(m.Primitive.div,{"data-state":Z(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),M="DialogContent",z=o.forwardRef((e,t)=>{let r=F(M,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=D(M,e.__scopeDialog);return(0,i.jsx)(h.Presence,{present:n||s.open,children:s.modal?(0,i.jsx)(H,{...o,ref:t}):(0,i.jsx)(W,{...o,ref:t})})});z.displayName=M;var H=o.forwardRef((e,t)=>
2{let r=D(M,e.__scopeDialog),n=o.useRef(null),l=(0,a.useComposedRefs)(t,r.contentRef,n);return o.useEffect(()=>{let e=n.current;if(e)return(0,y.hideOthers)(e)},[]),(0,i.jsx)($,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,s.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,s.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),W=o.forwardRef((e,t)=>{let r=D(M,e.__scopeDialog),n=o.useRef(!1),s=o.useRef(!1);return(0,i.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));let i=t.target;r.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),$=o.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,d=D(M,r),p=o.useRef(null),h=(0,a.useComposedRefs)(t,p);return(0,g.useFocusGuards)(),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:l,children:(0,i.jsx)(c.DismissableLayer,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Z(d.open),...u,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q,{titleId:d.titleId}),(0,i.jsx)(Y,{contentRef:p,descriptionId:d.descriptionId})]})]})}),L="DialogTitle",K=o.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(L,r);return(0,i.jsx)(m.Primitive.h2,{id:o.titleId,...n,ref:t})});K.displayName=L;var V="DialogDescription",B=o.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(V,r);return(0,i.jsx)(m.Primitive.p,{id:o.descriptionId,...n,ref:t})});B.displayName=V;var U="DialogClose",G=o.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=D(U,r);return(0,i.jsx)(m.Primitive.button,{type:"button",...n,ref:t,onClick:(0,s.composeEventHandlers)(e.onClick,()=>o.onOpenChange(!1))})});function Z(e){return e?"open":"closed"}G.displayName=U;var q="DialogTitleWarning",[X,J]=(0,l.createContext)(q,{contentName:M,titleName:L,docsSlug:"dialog"}),Q=({titleId:e})=>{let t=J(q),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 3 4If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 5 6For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return o.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Y=({contentRef:e,descriptionId:t})=>{let r=J("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return o.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};e.s(["Close",0,G,"Content",0,z,"Description",0,B,"Overlay",0,S,"Portal",0,O,"Root",0,k,"Title",0,K,"Trigger",0,E],326999);var ee=e.i(263676),et=e.i(975157);let er=o.forwardRef(({className:e,...t},r)=>(0,i.jsx)(S,{ref:r,className:(0,et.cn)("fixed inset-0 z-50 bg-black/35 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));er.displayName="DialogOverlay";let en=o.forwardRef(({className:e,children:t,style:r,...n},o)=>(0,i.jsxs)(O,{children:[(0,i.jsx)(er,{}),(0,i.jsxs)(z,{ref:o,className:(0,et.cn)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-6","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),style:{backgroundColor:"var(--surface, #FFFFFF)",border:"1px solid var(--line, rgba(42,37,32,0.14))",boxShadow:"0 24px 60px -16px rgba(42,37,32,0.30
6), 0 4px 16px -4px rgba(42,37,32,0.15)",...r},...n,children:[t,(0,i.jsxs)(G,{className:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--ring)]",children:[(0,i.jsx)(ee.X,{className:"h-4 w-4"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));en.displayName="DialogContent";let ei=o.forwardRef(({className:e,...t},r)=>(0,i.jsx)(K,{ref:r,className:(0,et.cn)("text-base font-semibold leading-none",e),...t}));ei.displayName="DialogTitle";let eo=o.forwardRef(({className:e,...t},r)=>(0,i.jsx)(B,{ref:r,className:(0,et.cn)("text-sm text-[var(--muted-foreground)]",e),...t}));eo.displayName="DialogDescription",e.s(["Dialog",0,k,"DialogContent",0,en,"DialogDescription",0,eo,"DialogHeader",0,({className:e,...t})=>(0,i.jsx)("div",{className:(0,et.cn)("flex flex-col gap-1.5",e),...t}),"DialogTitle",0,ei],429641)},473668,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(981140),i=e.i(30030),o=e.i(820783);function s(e){var n;let i,s=(n=e,(i=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var s;let e,a,l=(s=n,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.composeRefs)(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null})).displayName=`${n}.SlotClone`,i),a=r.forwardRef((e,n)=>{let{children:i,...o}=e,a=r.Children.toArray(i),u=a.find(l);if(u){let e=u.props.children,i=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,t.jsx)(s,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,t.jsx)(s,{...o,ref:n,children:i})});return a.displayName=`${e}.Slot`,a}var a=Symbol("radix.slottable");function l(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var u=new WeakMap;function d(e,t){var r,n;let i,o,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,i=r.length,(s=(o=c(n))>=0?o:i+o)<0||s>=i?-1:s);return -1===a?void 0:e[a]}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()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,s=c(e),a=s>=0?s:o+s,l=a<0||a>=o?-1:a;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let u=this.size+ +!i;s<0&&a++;let d=[...this.#e],f=!1;for(let e=a;e<u;e++)if(a===e){let o=d[e];d[e]===t&&(o=d[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}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,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}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=d(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=d(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return d(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
6n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,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 r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}});var f=e.i(610772),p=e.i(248425),h=e.i(30207),m=e.i(369340),g=r.createContext(void 0);function v(e){let t=r.useContext(g);return e||t||"ltr"}var y="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[w,R,C]=function(e){let n=e+"CollectionProvider",[a,l]=(0,i.createContextScope)(n),[u,d]=a(n,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:n,children:i}=e,o=r.default.useRef(null),s=r.default.useRef(new Map).current;return(0,t.jsx)(u,{scope:n,itemMap:s,collectionRef:o,children:i})};c.displayName=n;let f=e+"CollectionSlot",p=s(f),h=r.default.forwardRef((e,r)=>{let{scope:n,children:i}=e,s=d(f,n),a=(0,o.useComposedRefs)(r,s.collectionRef);return(0,t.jsx)(p,{ref:a,children:i})});h.displayName=f;let m=e+"CollectionItemSlot",g="data-radix-collection-item",v=s(m),y=r.default.forwardRef((e,n)=>{let{scope:i,children:s,...a}=e,l=r.default.useRef(null),u=(0,o.useComposedRefs)(n,l),c=d(m,i);return r.default.useEffect(()=>(c.itemMap.set(l,{ref:l,...a}),()=>void c.itemMap.delete(l))),(0,t.jsx)(v,{...{[g]:""},ref:u,children:s})});return y.displayName=m,[{Provider:c,Slot:h,ItemSlot:y},function(t){let n=d(e+"CollectionConsumer",t);return r.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},l]}(b),[j,D]=(0,i.createContextScope)(b,[C]),[k,A]=j(b),E=r.forwardRef((e,r)=>(0,t.jsx)(w.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(w.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(N,{...e,ref:r})})}));E.displayName=b;var N=r.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:s,orientation:a,loop:l=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:g,preventScrollOnEntryFocus:w=!1,...C}=e,j=r.useRef(null),D=(0,o.useComposedRefs)(i,j),A=v(u),[E,N]=(0,m.useControllableState)({prop:d,defaultProp:c??null,onChange:f,caller:b}),[I,F]=r.useState(!1),O=(0,h.useCallbackRef)(g),S=R(s),T=r.useRef(!1),[_,M]=r.useState(0);return r.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(y,O),()=>e.removeEventListener(y,O)},[O]),(0,t.jsx)(k,{scope:s,orientation:a,dir:A,loop:l,currentTabStopId:E,onItemFocus:r.useCallback(e=>N(e),[N]),onItemShiftTab:r.useCallback(()=>F(!0),[]),onFocusableItemAdd:r.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>M(e=>e-1),[]),children:(0,t.jsx)(p.Primitive.div,{tabIndex:I||0===_?-1:0,"data-orientation":a,...C,ref:D,style:{outline:"none",...e.style},onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,n.composeEventHandlers)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(y,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),w)}}T.current=!1}),onBlur:(0,n.composeEventHandlers)(e.onBlur,()=>F(!1))})})}),I="RovingFocusGroupItem",F=r.forwardRef((e,i)=>{let{__scopeRovingFocusGroup:o,focusable:s=!0,active:a=!1,tabStopId:l,children:u,...d}=e,c=(0,f.useId)(),h=l||c,m=A(I,o),g=m.currentTabStopId===h,v=R(o),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:b}=m;return r.useEffect(()=>{if(s)return y(),()=>x()},[s,y,x]),(0,t.jsx)(w.ItemSlot,{scope:o,id:h,focusable:s,active:a,children:(0,t.jsx)(p.Primitive.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:i,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{s?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return O[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=v().filter(e=>
6e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=m.loop?(r=i,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(o+1)}setTimeout(()=>P(i))}}),children:"function"==typeof u?u({isCurrentTabStop:g,hasTabStop:null!=b}):u})})});F.displayName=I;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var S=e.i(296626),T="Tabs",[_,M]=(0,i.createContextScope)(T,[D]),z=D(),[H,W]=_(T),$=r.forwardRef((e,r)=>{let{__scopeTabs:n,value:i,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:l,activationMode:u="automatic",...d}=e,c=v(l),[h,g]=(0,m.useControllableState)({prop:i,onChange:o,defaultProp:s??"",caller:T});return(0,t.jsx)(H,{scope:n,baseId:(0,f.useId)(),value:h,onValueChange:g,orientation:a,dir:c,activationMode:u,children:(0,t.jsx)(p.Primitive.div,{dir:c,"data-orientation":a,...d,ref:r})})});$.displayName=T;var L="TabsList",K=r.forwardRef((e,r)=>{let{__scopeTabs:n,loop:i=!0,...o}=e,s=W(L,n),a=z(n);return(0,t.jsx)(E,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:i,children:(0,t.jsx)(p.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:r})})});K.displayName=L;var V="TabsTrigger",B=r.forwardRef((e,r)=>{let{__scopeTabs:i,value:o,disabled:s=!1,...a}=e,l=W(V,i),u=z(i),d=Z(l.baseId,o),c=q(l.baseId,o),f=o===l.value;return(0,t.jsx)(F,{asChild:!0,...u,focusable:!s,active:f,children:(0,t.jsx)(p.Primitive.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...a,ref:r,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==l.activationMode;f||s||!e||l.onValueChange(o)})})})});B.displayName=V;var U="TabsContent",G=r.forwardRef((e,n)=>{let{__scopeTabs:i,value:o,forceMount:s,children:a,...l}=e,u=W(U,i),d=Z(u.baseId,o),c=q(u.baseId,o),f=o===u.value,h=r.useRef(f);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(S.Presence,{present:s||f,children:({present:r})=>(0,t.jsx)(p.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:c,tabIndex:0,...l,ref:n,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&a})})});function Z(e,t){return`${e}-trigger-${t}`}function q(e,t){return`${e}-content-${t}`}G.displayName=U;var X=e.i(975157);let J=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(K,{ref:n,className:(0,X.cn)("inline-flex h-8 items-center gap-1 rounded-md bg-[var(--page-bg-soft)] p-1 text-xs",e),...r}));J.displayName="TabsList";let Q=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(B,{ref:n,className:(0,X.cn)("inline-flex items-center justify-center whitespace-nowrap rounded px-3 py-1 text-xs font-medium text-[var(--muted-foreground)] transition-all","data-[state=active]:bg-[var(--surface)] data-[state=active]:text-[var(--ink)] data-[state=active]:shadow-sm","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",e),...r}));Q.displayName="TabsTrigger";let Y=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(G,{ref:n,className:(0,X.cn)("mt-3 focus-visible:outline-none",e),...r}));Y.displayName="TabsContent",e.s(["Tabs",0,$,"TabsContent",0,Y,"TabsList",0,J,"TabsTrigger",0,Q],473668)}]); 7 8//# debugId=b56e7ff1-c5ac-6076-d6cb-1086091d4fc8
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.