@kimuson/claude-code-viewer 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- import{u as o}from"./index-BOZi-nvY.js";function r(){o().navigate({to:"/projects"})}export{r as component};
@@ -1,105 +0,0 @@
1
- import{c as ne,s as Is,Q as Ls,r as l,j as i,a0 as at,Y as jt,a1 as W,a2 as Er,a3 as Fs,a4 as Ws,K as q,R as Me,a5 as sn,T,a6 as $s,B as Bs,a as an,a7 as Yn,b as Hs,S as Vs,F as Ys,P as zs,p as Us,w as qs,a8 as Xs,a9 as Gs,aa as Ks,ab as Qs}from"./index-BOZi-nvY.js";/**
2
- * @license lucide-react v0.548.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const Js=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Tr=ne("check",Js);/**
7
- * @license lucide-react v0.548.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const Zs=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bn=ne("chevron-down",Zs);/**
12
- * @license lucide-react v0.548.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const ea=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ta=ne("chevron-right",ea);/**
17
- * @license lucide-react v0.548.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const na=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ra=ne("chevron-up",na);/**
22
- * @license lucide-react v0.548.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const oa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],sa=ne("circle-check",oa);/**
27
- * @license lucide-react v0.548.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const aa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ia=ne("circle-x",aa);/**
32
- * @license lucide-react v0.548.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const ca=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Df=ne("folder",ca);/**
37
- * @license lucide-react v0.548.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */const la=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ua=ne("info",la);/**
42
- * @license lucide-react v0.548.0 - ISC
43
- *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */const da=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],fa=ne("loader-circle",da);/**
47
- * @license lucide-react v0.548.0 - ISC
48
- *
49
- * This source code is licensed under the ISC license.
50
- * See the LICENSE file in the root directory of this source tree.
51
- */const ma=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],If=ne("plus",ma);/**
52
- * @license lucide-react v0.548.0 - ISC
53
- *
54
- * This source code is licensed under the ISC license.
55
- * See the LICENSE file in the root directory of this source tree.
56
- */const ha=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pa=ne("settings",ha);/**
57
- * @license lucide-react v0.548.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */const ga=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],va=ne("x",ga);function Lf(e,t){return Is(e,Ls)}function M(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function xa(e,t){const n=l.createContext(t),r=s=>{const{children:a,...c}=s,u=l.useMemo(()=>c,Object.values(c));return i.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Fe(e,t=[]){let n=[];function r(s,a){const c=l.createContext(a),u=n.length;n=[...n,a];const d=m=>{const{scope:g,children:p,...v}=m,h=g?.[e]?.[u]||c,x=l.useMemo(()=>v,Object.values(v));return i.jsx(h.Provider,{value:x,children:p})};d.displayName=s+"Provider";function f(m,g){const p=g?.[e]?.[u]||c,v=l.useContext(p);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(c){const u=c?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,ya(o,...t)]}function ya(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:u,scopeName:d})=>{const m=u(s)[`__scope${d}`];return{...c,...m}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var wa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],k=wa.reduce((e,t)=>{const n=at(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...c}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ba(e,t){e&&jt.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ca(e,t=globalThis?.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Sa="DismissableLayer",cn="dismissableLayer.update",Pa="dismissableLayer.pointerDownOutside",Ea="dismissableLayer.focusOutside",zn,Nr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ot=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...u}=e,d=l.useContext(Nr),[f,m]=l.useState(null),g=f?.ownerDocument??globalThis?.document,[,p]=l.useState({}),v=W(t,P=>m(P)),h=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(x),y=f?h.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=Ra(P=>{const j=P.target,I=[...d.branches].some(_=>_.contains(j));!C||I||(o?.(P),a?.(P),P.defaultPrevented||c?.())},g),E=ja(P=>{const j=P.target;[...d.branches].some(_=>_.contains(j))||(s?.(P),a?.(P),P.defaultPrevented||c?.())},g);return Ca(P=>{y===d.layers.size-1&&(r?.(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},g),l.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(zn=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Un(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=zn)}},[f,g,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Un())},[f,d]),l.useEffect(()=>{const P=()=>p({});return document.addEventListener(cn,P),()=>document.removeEventListener(cn,P)},[]),i.jsx(k.div,{...u,ref:v,style:{pointerEvents:b?C?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,E.onFocusCapture),onBlurCapture:M(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,S.onPointerDownCapture)})});Ot.displayName=Sa;var Ta="DismissableLayerBranch",Na=l.forwardRef((e,t)=>{const n=l.useContext(Nr),r=l.useRef(null),o=W(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(k.div,{...e,ref:o})});Na.displayName=Ta;function Ra(e,t=globalThis?.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let u=function(){Rr(Pa,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ja(e,t=globalThis?.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Rr(Ea,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Un(){const e=new CustomEvent(cn);document.dispatchEvent(e)}function Rr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ba(o,s):o.dispatchEvent(s)}var G=globalThis?.document?l.useLayoutEffect:()=>{},Oa=Er[" useId ".trim().toString()]||(()=>{}),Ma=0;function we(e){const[t,n]=l.useState(Oa());return G(()=>{n(r=>r??String(Ma++))},[e]),t?`radix-${t}`:""}const ka=["top","right","bottom","left"],Ce=Math.min,Z=Math.max,Ct=Math.round,mt=Math.floor,fe=e=>({x:e,y:e}),Aa={left:"right",right:"left",bottom:"top",top:"bottom"},_a={start:"end",end:"start"};function ln(e,t,n){return Z(e,Ce(t,n))}function pe(e,t){return typeof e=="function"?e(t):e}function ge(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function Cn(e){return e==="x"?"y":"x"}function Sn(e){return e==="y"?"height":"width"}const Da=new Set(["top","bottom"]);function de(e){return Da.has(ge(e))?"y":"x"}function Pn(e){return Cn(de(e))}function Ia(e,t,n){n===void 0&&(n=!1);const r=Ke(e),o=Pn(e),s=Sn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=St(a)),[a,St(a)]}function La(e){const t=St(e);return[un(e),t,un(t)]}function un(e){return e.replace(/start|end/g,t=>_a[t])}const qn=["left","right"],Xn=["right","left"],Fa=["top","bottom"],Wa=["bottom","top"];function $a(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:qn:t?qn:Xn;case"left":case"right":return t?Fa:Wa;default:return[]}}function Ba(e,t,n,r){const o=Ke(e);let s=$a(ge(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(un)))),s}function St(e){return e.replace(/left|right|bottom|top/g,t=>Aa[t])}function Ha(e){return{top:0,right:0,bottom:0,left:0,...e}}function jr(e){return typeof e!="number"?Ha(e):{top:e,right:e,bottom:e,left:e}}function Pt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gn(e,t,n){let{reference:r,floating:o}=e;const s=de(t),a=Pn(t),c=Sn(a),u=ge(t),d=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let p;switch(u){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(Ke(t)){case"start":p[a]-=g*(n&&d?-1:1);break;case"end":p[a]+=g*(n&&d?-1:1);break}return p}const Va=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Gn(d,r,u),g=r,p={},v=0;for(let h=0;h<c.length;h++){const{name:x,fn:w}=c[h],{x:y,y:b,data:C,reset:S}=await w({x:f,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:p,rects:d,platform:a,elements:{reference:e,floating:t}});f=y??f,m=b??m,p={...p,[x]:{...p[x],...C}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(d=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:f,y:m}=Gn(d,g,u)),h=-1)}return{x:f,y:m,placement:g,strategy:o,middlewareData:p}};async function it(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:g=!1,padding:p=0}=pe(t,e),v=jr(p),x=c[g?m==="floating"?"reference":"floating":m],w=Pt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:u})),y=m==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Pt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(w.top-S.top+v.top)/C.y,bottom:(S.bottom-w.bottom+v.bottom)/C.y,left:(w.left-S.left+v.left)/C.x,right:(S.right-w.right+v.right)/C.x}}const Ya=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:f=0}=pe(e,t)||{};if(d==null)return{};const m=jr(f),g={x:n,y:r},p=Pn(o),v=Sn(p),h=await a.getDimensions(d),x=p==="y",w=x?"top":"left",y=x?"bottom":"right",b=x?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[p]-g[p]-s.floating[v],S=g[p]-s.reference[p],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let P=E?E[b]:0;(!P||!await(a.isElement==null?void 0:a.isElement(E)))&&(P=c.floating[b]||s.floating[v]);const j=C/2-S/2,I=P/2-h[v]/2-1,_=Ce(m[w],I),$=Ce(m[y],I),B=_,F=P-h[v]-$,A=P/2-h[v]/2+j,z=ln(B,A,F),O=!u.arrow&&Ke(o)!=null&&A!==z&&s.reference[v]/2-(A<B?_:$)-h[v]/2<0,D=O?A<B?A-B:A-F:0;return{[p]:g[p]+D,data:{[p]:z,centerOffset:A-z-D,...O&&{alignmentOffset:D}},reset:O}}}),za=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...x}=pe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=ge(o),y=de(c),b=ge(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),S=g||(b||!h?[St(c)]:La(c)),E=v!=="none";!g&&E&&S.push(...Ba(c,h,v,C));const P=[c,...S],j=await it(t,x),I=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&I.push(j[w]),m){const A=Ia(o,a,C);I.push(j[A[0]],j[A[1]])}if(_=[..._,{placement:o,overflows:I}],!I.every(A=>A<=0)){var $,B;const A=((($=s.flip)==null?void 0:$.index)||0)+1,z=P[A];if(z&&(!(m==="alignment"?y!==de(z):!1)||_.every(R=>de(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:A,overflows:_},reset:{placement:z}};let O=(B=_.filter(D=>D.overflows[0]<=0).sort((D,R)=>D.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!O)switch(p){case"bestFit":{var F;const D=(F=_.filter(R=>{if(E){const H=de(R.placement);return H===y||H==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(H=>H>0).reduce((H,Q)=>H+Q,0)]).sort((R,H)=>R[1]-H[1])[0])==null?void 0:F[0];D&&(O=D);break}case"initialPlacement":O=c;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Kn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qn(e){return ka.some(t=>e[t]>=0)}const Ua=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pe(e,t);switch(r){case"referenceHidden":{const s=await it(t,{...o,elementContext:"reference"}),a=Kn(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Qn(a)}}}case"escaped":{const s=await it(t,{...o,altBoundary:!0}),a=Kn(s,n.floating);return{data:{escapedOffsets:a,escaped:Qn(a)}}}default:return{}}}}},Or=new Set(["left","top"]);async function qa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ge(n),c=Ke(n),u=de(n)==="y",d=Or.has(a)?-1:1,f=s&&u?-1:1,m=pe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:v}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof v=="number"&&(p=c==="end"?v*-1:v),u?{x:p*f,y:g*d}:{x:g*d,y:p*f}}const Xa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,u=await qa(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},Ga=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:x=>{let{x:w,y}=x;return{x:w,y}}},...u}=pe(e,t),d={x:n,y:r},f=await it(t,u),m=de(ge(o)),g=Cn(m);let p=d[g],v=d[m];if(s){const x=g==="y"?"top":"left",w=g==="y"?"bottom":"right",y=p+f[x],b=p-f[w];p=ln(y,p,b)}if(a){const x=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=v+f[x],b=v-f[w];v=ln(y,v,b)}const h=c.fn({...t,[g]:p,[m]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[g]:s,[m]:a}}}}}},Ka=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=pe(e,t),f={x:n,y:r},m=de(o),g=Cn(m);let p=f[g],v=f[m];const h=pe(c,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const b=g==="y"?"height":"width",C=s.reference[g]-s.floating[b]+x.mainAxis,S=s.reference[g]+s.reference[b]-x.mainAxis;p<C?p=C:p>S&&(p=S)}if(d){var w,y;const b=g==="y"?"width":"height",C=Or.has(ge(o)),S=s.reference[m]-s.floating[b]+(C&&((w=a.offset)==null?void 0:w[m])||0)+(C?0:x.crossAxis),E=s.reference[m]+s.reference[b]+(C?0:((y=a.offset)==null?void 0:y[m])||0)-(C?x.crossAxis:0);v<S?v=S:v>E&&(v=E)}return{[g]:p,[m]:v}}}},Qa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:u=()=>{},...d}=pe(e,t),f=await it(t,d),m=ge(o),g=Ke(o),p=de(o)==="y",{width:v,height:h}=s.floating;let x,w;m==="top"||m==="bottom"?(x=m,w=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,x=g==="end"?"top":"bottom");const y=h-f.top-f.bottom,b=v-f.left-f.right,C=Ce(h-f[x],y),S=Ce(v-f[w],b),E=!t.middlewareData.shift;let P=C,j=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=y),E&&!g){const _=Z(f.left,0),$=Z(f.right,0),B=Z(f.top,0),F=Z(f.bottom,0);p?j=v-2*(_!==0||$!==0?_+$:Z(f.left,f.right)):P=h-2*(B!==0||F!==0?B+F:Z(f.top,f.bottom))}await u({...t,availableWidth:j,availableHeight:P});const I=await a.getDimensions(c.floating);return v!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Mt(){return typeof window<"u"}function Qe(e){return Mr(e)?(e.nodeName||"").toLowerCase():"#document"}function ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(Mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mr(e){return Mt()?e instanceof Node||e instanceof ee(e).Node:!1}function oe(e){return Mt()?e instanceof Element||e instanceof ee(e).Element:!1}function me(e){return Mt()?e instanceof HTMLElement||e instanceof ee(e).HTMLElement:!1}function Jn(e){return!Mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ee(e).ShadowRoot}const Ja=new Set(["inline","contents"]);function dt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ja.has(o)}const Za=new Set(["table","td","th"]);function ei(e){return Za.has(Qe(e))}const ti=[":popover-open",":modal"];function kt(e){return ti.some(t=>{try{return e.matches(t)}catch{return!1}})}const ni=["transform","translate","scale","rotate","perspective"],ri=["transform","translate","scale","rotate","perspective","filter"],oi=["paint","layout","strict","content"];function En(e){const t=Tn(),n=oe(e)?se(e):e;return ni.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ri.some(r=>(n.willChange||"").includes(r))||oi.some(r=>(n.contain||"").includes(r))}function si(e){let t=Se(e);for(;me(t)&&!qe(t);){if(En(t))return t;if(kt(t))return null;t=Se(t)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ai=new Set(["html","body","#document"]);function qe(e){return ai.has(Qe(e))}function se(e){return ee(e).getComputedStyle(e)}function At(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Se(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jn(e)&&e.host||he(e);return Jn(t)?t.host:t}function kr(e){const t=Se(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:me(t)&&dt(t)?t:kr(t)}function ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=kr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ee(o);if(s){const c=dn(a);return t.concat(a,a.visualViewport||[],dt(o)?o:[],c&&n?ct(c):[])}return t.concat(o,ct(o,[],n))}function dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ar(e){const t=se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=me(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Ct(n)!==s||Ct(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function Nn(e){return oe(e)?e:e.contextElement}function Ye(e){const t=Nn(e);if(!me(t))return fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ar(t);let a=(s?Ct(n.width):n.width)/r,c=(s?Ct(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const ii=fe(0);function _r(e){const t=ee(e);return!Tn()||!t.visualViewport?ii:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ci(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ee(e)?!1:t}function _e(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Nn(e);let a=fe(1);t&&(r?oe(r)&&(a=Ye(r)):a=Ye(e));const c=ci(s,n,r)?_r(s):fe(0);let u=(o.left+c.x)/a.x,d=(o.top+c.y)/a.y,f=o.width/a.x,m=o.height/a.y;if(s){const g=ee(s),p=r&&oe(r)?ee(r):r;let v=g,h=dn(v);for(;h&&r&&p!==v;){const x=Ye(h),w=h.getBoundingClientRect(),y=se(h),b=w.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,C=w.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;u*=x.x,d*=x.y,f*=x.x,m*=x.y,u+=b,d+=C,v=ee(h),h=dn(v)}}return Pt({width:f,height:m,x:u,y:d})}function _t(e,t){const n=At(e).scrollLeft;return t?t.left+n:_e(he(e)).left+n}function Dr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_t(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function li(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=he(r),c=t?kt(t.floating):!1;if(r===a||c&&s)return n;let u={scrollLeft:0,scrollTop:0},d=fe(1);const f=fe(0),m=me(r);if((m||!m&&!s)&&((Qe(r)!=="body"||dt(a))&&(u=At(r)),me(r))){const p=_e(r);d=Ye(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const g=a&&!m&&!s?Dr(a,u):fe(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x+g.x,y:n.y*d.y-u.scrollTop*d.y+f.y+g.y}}function ui(e){return Array.from(e.getClientRects())}function di(e){const t=he(e),n=At(e),r=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+_t(e);const c=-n.scrollTop;return se(r).direction==="rtl"&&(a+=Z(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const Zn=25;function fi(e,t){const n=ee(e),r=he(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){s=o.width,a=o.height;const f=Tn();(!f||f&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=_t(r);if(d<=0){const f=r.ownerDocument,m=f.body,g=getComputedStyle(m),p=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-m.clientWidth-p);v<=Zn&&(s-=v)}else d<=Zn&&(s+=d);return{width:s,height:a,x:c,y:u}}const mi=new Set(["absolute","fixed"]);function hi(e,t){const n=_e(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=me(e)?Ye(e):fe(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:a,height:c,x:u,y:d}}function er(e,t,n){let r;if(t==="viewport")r=fi(e,n);else if(t==="document")r=di(he(e));else if(oe(t))r=hi(t,n);else{const o=_r(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pt(r)}function Ir(e,t){const n=Se(e);return n===t||!oe(n)||qe(n)?!1:se(n).position==="fixed"||Ir(n,t)}function pi(e,t){const n=t.get(e);if(n)return n;let r=ct(e,[],!1).filter(c=>oe(c)&&Qe(c)!=="body"),o=null;const s=se(e).position==="fixed";let a=s?Se(e):e;for(;oe(a)&&!qe(a);){const c=se(a),u=En(a);!u&&c.position==="fixed"&&(o=null),(s?!u&&!o:!u&&c.position==="static"&&!!o&&mi.has(o.position)||dt(a)&&!u&&Ir(e,a))?r=r.filter(f=>f!==a):o=c,a=Se(a)}return t.set(e,r),r}function gi(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?kt(t)?[]:pi(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,f)=>{const m=er(t,f,o);return d.top=Z(m.top,d.top),d.right=Ce(m.right,d.right),d.bottom=Ce(m.bottom,d.bottom),d.left=Z(m.left,d.left),d},er(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vi(e){const{width:t,height:n}=Ar(e);return{width:t,height:n}}function xi(e,t,n){const r=me(t),o=he(t),s=n==="fixed",a=_e(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=fe(0);function d(){u.x=_t(o)}if(r||!r&&!s)if((Qe(t)!=="body"||dt(o))&&(c=At(t)),r){const p=_e(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Dr(o,c):fe(0),m=a.left+c.scrollLeft-u.x-f.x,g=a.top+c.scrollTop-u.y-f.y;return{x:m,y:g,width:a.width,height:a.height}}function Kt(e){return se(e).position==="static"}function tr(e,t){if(!me(e)||se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return he(e)===n&&(n=n.ownerDocument.body),n}function Lr(e,t){const n=ee(e);if(kt(e))return n;if(!me(e)){let o=Se(e);for(;o&&!qe(o);){if(oe(o)&&!Kt(o))return o;o=Se(o)}return n}let r=tr(e,t);for(;r&&ei(r)&&Kt(r);)r=tr(r,t);return r&&qe(r)&&Kt(r)&&!En(r)?n:r||si(e)||n}const yi=async function(e){const t=this.getOffsetParent||Lr,n=this.getDimensions,r=await n(e.floating);return{reference:xi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wi(e){return se(e).direction==="rtl"}const bi={convertOffsetParentRelativeRectToViewportRelativeRect:li,getDocumentElement:he,getClippingRect:gi,getOffsetParent:Lr,getElementRects:yi,getClientRects:ui,getDimensions:vi,getScale:Ye,isElement:oe,isRTL:wi};function Fr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ci(e,t){let n=null,r;const o=he(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:g,height:p}=d;if(c||t(),!g||!p)return;const v=mt(m),h=mt(o.clientWidth-(f+g)),x=mt(o.clientHeight-(m+p)),w=mt(f),b={rootMargin:-v+"px "+-h+"px "+-x+"px "+-w+"px",threshold:Z(0,Ce(1,u))||1};let C=!0;function S(E){const P=E[0].intersectionRatio;if(P!==u){if(!C)return a();P?a(!1,P):r=setTimeout(()=>{a(!1,1e-7)},1e3)}P===1&&!Fr(d,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return a(!0),s}function Si(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Nn(e),f=o||s?[...d?ct(d):[],...ct(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const m=d&&c?Ci(d,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),d&&!u&&p.observe(d),p.observe(t));let v,h=u?_e(e):null;u&&x();function x(){const w=_e(e);h&&!Fr(h,w)&&n(),h=w,v=requestAnimationFrame(x)}return n(),()=>{var w;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m?.(),(w=p)==null||w.disconnect(),p=null,u&&cancelAnimationFrame(v)}}const Pi=Xa,Ei=Ga,Ti=za,Ni=Qa,Ri=Ua,nr=Ya,ji=Ka,Oi=(e,t,n)=>{const r=new Map,o={platform:bi,...n},s={...o.platform,_c:r};return Va(e,t,{...o,platform:s})};var Mi=typeof document<"u",ki=function(){},yt=Mi?l.useLayoutEffect:ki;function Et(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Et(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Et(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Wr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rr(e,t){const n=Wr(e);return Math.round(t*n)/n}function Qt(e){const t=l.useRef(e);return yt(()=>{t.current=e}),t}function Ai(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,m]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,p]=l.useState(r);Et(g,r)||p(r);const[v,h]=l.useState(null),[x,w]=l.useState(null),y=l.useCallback(R=>{R!==E.current&&(E.current=R,h(R))},[]),b=l.useCallback(R=>{R!==P.current&&(P.current=R,w(R))},[]),C=s||v,S=a||x,E=l.useRef(null),P=l.useRef(null),j=l.useRef(f),I=u!=null,_=Qt(u),$=Qt(o),B=Qt(d),F=l.useCallback(()=>{if(!E.current||!P.current)return;const R={placement:t,strategy:n,middleware:g};$.current&&(R.platform=$.current),Oi(E.current,P.current,R).then(H=>{const Q={...H,isPositioned:B.current!==!1};A.current&&!Et(j.current,Q)&&(j.current=Q,jt.flushSync(()=>{m(Q)}))})},[g,t,n,$,B]);yt(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(R=>({...R,isPositioned:!1})))},[d]);const A=l.useRef(!1);yt(()=>(A.current=!0,()=>{A.current=!1}),[]),yt(()=>{if(C&&(E.current=C),S&&(P.current=S),C&&S){if(_.current)return _.current(C,S,F);F()}},[C,S,F,_,I]);const z=l.useMemo(()=>({reference:E,floating:P,setReference:y,setFloating:b}),[y,b]),O=l.useMemo(()=>({reference:C,floating:S}),[C,S]),D=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!O.floating)return R;const H=rr(O.floating,f.x),Q=rr(O.floating,f.y);return c?{...R,transform:"translate("+H+"px, "+Q+"px)",...Wr(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:Q}},[n,c,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:F,refs:z,elements:O,floatingStyles:D}),[f,F,z,O,D])}const _i=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nr({element:r.current,padding:o}).fn(n):{}:r?nr({element:r,padding:o}).fn(n):{}}}},Di=(e,t)=>({...Pi(e),options:[e,t]}),Ii=(e,t)=>({...Ei(e),options:[e,t]}),Li=(e,t)=>({...ji(e),options:[e,t]}),Fi=(e,t)=>({...Ti(e),options:[e,t]}),Wi=(e,t)=>({...Ni(e),options:[e,t]}),$i=(e,t)=>({...Ri(e),options:[e,t]}),Bi=(e,t)=>({..._i(e),options:[e,t]});var Hi="Arrow",$r=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(k.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});$r.displayName=Hi;var Vi=$r;function Br(e){const[t,n]=l.useState(void 0);return G(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Rn="Popper",[Hr,Dt]=Fe(Rn),[Yi,Vr]=Hr(Rn),Yr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return i.jsx(Yi,{scope:t,anchor:r,onAnchorChange:o,children:n})};Yr.displayName=Rn;var zr="PopperAnchor",Ur=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Vr(zr,n),a=l.useRef(null),c=W(t,a),u=l.useRef(null);return l.useEffect(()=>{const d=u.current;u.current=r?.current||a.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:i.jsx(k.div,{...o,ref:c})});Ur.displayName=zr;var jn="PopperContent",[zi,Ui]=Hr(jn),qr=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:p="optimized",onPlaced:v,...h}=e,x=Vr(jn,n),[w,y]=l.useState(null),b=W(t,N=>y(N)),[C,S]=l.useState(null),E=Br(C),P=E?.width??0,j=E?.height??0,I=r+(s!=="center"?"-"+s:""),_=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(d)?d:[d],B=$.length>0,F={padding:_,boundary:$.filter(Xi),altBoundary:B},{refs:A,floatingStyles:z,placement:O,isPositioned:D,middlewareData:R}=Ai({strategy:"fixed",placement:I,whileElementsMounted:(...N)=>Si(...N,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Di({mainAxis:o+j,alignmentAxis:a}),u&&Ii({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Li():void 0,...F}),u&&Fi({...F}),Wi({...F,apply:({elements:N,rects:U,availableWidth:K,availableHeight:V})=>{const{width:Y,height:X}=U.reference,te=N.floating.style;te.setProperty("--radix-popper-available-width",`${K}px`),te.setProperty("--radix-popper-available-height",`${V}px`),te.setProperty("--radix-popper-anchor-width",`${Y}px`),te.setProperty("--radix-popper-anchor-height",`${X}px`)}}),C&&Bi({element:C,padding:c}),Gi({arrowWidth:P,arrowHeight:j}),g&&$i({strategy:"referenceHidden",...F})]}),[H,Q]=Kr(O),Re=Ae(v);G(()=>{D&&Re?.()},[D,Re]);const Ze=R.arrow?.x,et=R.arrow?.y,ve=R.arrow?.centerOffset!==0,[We,je]=l.useState();return G(()=>{w&&je(window.getComputedStyle(w).zIndex)},[w]),i.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:D?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:We,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(zi,{scope:n,placedSide:H,onArrowChange:S,arrowX:Ze,arrowY:et,shouldHideArrow:ve,children:i.jsx(k.div,{"data-side":H,"data-align":Q,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});qr.displayName=jn;var Xr="PopperArrow",qi={top:"bottom",right:"left",bottom:"top",left:"right"},Gr=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Ui(Xr,r),a=qi[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(Vi,{...o,ref:n,style:{...o.style,display:"block"}})})});Gr.displayName=Xr;function Xi(e){return e!==null}var Gi=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,f]=Kr(n),m={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+c/2,p=(o.arrow?.y??0)+u/2;let v="",h="";return d==="bottom"?(v=a?m:`${g}px`,h=`${-u}px`):d==="top"?(v=a?m:`${g}px`,h=`${r.floating.height+u}px`):d==="right"?(v=`${-u}px`,h=a?m:`${p}px`):d==="left"&&(v=`${r.floating.width+u}px`,h=a?m:`${p}px`),{data:{x:v,y:h}}}});function Kr(e){const[t,n="center"]=e.split("-");return[t,n]}var Qr=Yr,Jr=Ur,Zr=qr,eo=Gr,Ki="Portal",It=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=l.useState(!1);G(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Fs.createPortal(i.jsx(k.div,{...r,ref:t}),a):null});It.displayName=Ki;function Qi(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ee=e=>{const{present:t,children:n}=e,r=Ji(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=W(r.ref,Zi(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ee.displayName="Presence";function Ji(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[c,u]=Qi(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=ht(r.current);s.current=c==="mounted"?d:"none"},[c]),G(()=>{const d=r.current,f=o.current;if(f!==e){const g=s.current,p=ht(d);e?u("MOUNT"):p==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&g!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),G(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=p=>{const h=ht(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(u("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=p=>{p.target===t&&(s.current=ht(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function ht(e){return e?.animationName||"none"}function Zi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ec=Er[" useInsertionEffect ".trim().toString()]||G;function Xe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=tc({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const m=f.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. 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.`),f.current=c},[c,r])}const d=l.useCallback(f=>{if(c){const m=nc(f)?f(e):f;m!==e&&a.current?.(m)}else s(f)},[c,e,s,a]);return[u,d]}function tc({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return ec(()=>{s.current=t},[t]),l.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function nc(e){return typeof e=="function"}var to=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rc="VisuallyHidden",no=l.forwardRef((e,t)=>i.jsx(k.span,{...e,ref:t,style:{...to,...e.style}}));no.displayName=rc;var oc=no,[Lt]=Fe("Tooltip",[Dt]),Ft=Dt(),ro="TooltipProvider",sc=700,fn="tooltip.open",[ac,On]=Lt(ro),oo=e=>{const{__scopeTooltip:t,delayDuration:n=sc,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),i.jsx(ac,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:s})};oo.displayName=ro;var lt="Tooltip",[ic,ft]=Lt(lt),so=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,u=On(lt,e.__scopeTooltip),d=Ft(t),[f,m]=l.useState(null),g=we(),p=l.useRef(0),v=a??u.disableHoverableContent,h=c??u.delayDuration,x=l.useRef(!1),[w,y]=Xe({prop:r,defaultProp:o??!1,onChange:P=>{P?(u.onOpen(),document.dispatchEvent(new CustomEvent(fn))):u.onClose(),s?.(P)},caller:lt}),b=l.useMemo(()=>w?x.current?"delayed-open":"instant-open":"closed",[w]),C=l.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x.current=!1,y(!0)},[y]),S=l.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),E=l.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{x.current=!0,y(!0),p.current=0},h)},[h,y]);return l.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),i.jsx(Qr,{...d,children:i.jsx(ic,{scope:t,contentId:g,open:w,stateAttribute:b,trigger:f,onTriggerChange:m,onTriggerEnter:l.useCallback(()=>{u.isOpenDelayedRef.current?E():C()},[u.isOpenDelayedRef,E,C]),onTriggerLeave:l.useCallback(()=>{v?S():(window.clearTimeout(p.current),p.current=0)},[S,v]),onOpen:C,onClose:S,disableHoverableContent:v,children:n})})};so.displayName=lt;var mn="TooltipTrigger",ao=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ft(mn,n),s=On(mn,n),a=Ft(n),c=l.useRef(null),u=W(t,c,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),m=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),i.jsx(Jr,{asChild:!0,...a,children:i.jsx(k.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:M(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:M(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:M(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:M(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:M(e.onBlur,o.onClose),onClick:M(e.onClick,o.onClose)})})});ao.displayName=mn;var Mn="TooltipPortal",[cc,lc]=Lt(Mn,{forceMount:void 0}),io=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=ft(Mn,t);return i.jsx(cc,{scope:t,forceMount:n,children:i.jsx(Ee,{present:n||s.open,children:i.jsx(It,{asChild:!0,container:o,children:r})})})};io.displayName=Mn;var Ge="TooltipContent",co=l.forwardRef((e,t)=>{const n=lc(Ge,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=ft(Ge,e.__scopeTooltip);return i.jsx(Ee,{present:r||a.open,children:a.disableHoverableContent?i.jsx(lo,{side:o,...s,ref:t}):i.jsx(uc,{side:o,...s,ref:t})})}),uc=l.forwardRef((e,t)=>{const n=ft(Ge,e.__scopeTooltip),r=On(Ge,e.__scopeTooltip),o=l.useRef(null),s=W(t,o),[a,c]=l.useState(null),{trigger:u,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,g=l.useCallback(()=>{c(null),m(!1)},[m]),p=l.useCallback((v,h)=>{const x=v.currentTarget,w={x:v.clientX,y:v.clientY},y=hc(w,x.getBoundingClientRect()),b=pc(w,y),C=gc(h.getBoundingClientRect()),S=xc([...b,...C]);c(S),m(!0)},[m]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(u&&f){const v=x=>p(x,f),h=x=>p(x,u);return u.addEventListener("pointerleave",v),f.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",h)}}},[u,f,p,g]),l.useEffect(()=>{if(a){const v=h=>{const x=h.target,w={x:h.clientX,y:h.clientY},y=u?.contains(x)||f?.contains(x),b=!vc(w,a);y?g():b&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[u,f,a,d,g]),i.jsx(lo,{...e,ref:s})}),[dc,fc]=Lt(lt,{isInside:!1}),mc=Ws("TooltipContent"),lo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,u=ft(Ge,n),d=Ft(n),{onClose:f}=u;return l.useEffect(()=>(document.addEventListener(fn,f),()=>document.removeEventListener(fn,f)),[f]),l.useEffect(()=>{if(u.trigger){const m=g=>{g.target?.contains(u.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,f]),i.jsx(Ot,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:i.jsxs(Zr,{"data-state":u.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(mc,{children:r}),i.jsx(dc,{scope:n,isInside:!0,children:i.jsx(oc,{id:u.contentId,role:"tooltip",children:o||r})})]})})});co.displayName=Ge;var uo="TooltipArrow",fo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ft(n);return fc(uo,n).isInside?null:i.jsx(eo,{...o,...r,ref:t})});fo.displayName=uo;function hc(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pc(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function gc(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function vc(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],u=t[a],d=c.x,f=c.y,m=u.x,g=u.y;f>r!=g>r&&n<(m-d)*(r-f)/(g-f)+d&&(o=!o)}return o}function xc(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),yc(t)}function yc(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var wc=oo,bc=so,Cc=ao,Sc=io,Pc=co,Ec=fo;function kn({delayDuration:e=0,...t}){return i.jsx(wc,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function mo({...e}){return i.jsx(kn,{children:i.jsx(bc,{"data-slot":"tooltip",...e})})}function ho({...e}){return i.jsx(Cc,{"data-slot":"tooltip-trigger",...e})}function po({className:e,sideOffset:t=0,children:n,...r}){return i.jsx(Sc,{children:i.jsxs(Pc,{"data-slot":"tooltip-content",sideOffset:t,className:q("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,i.jsx(Ec,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Tc={sm:"w-4 h-4",default:"w-8 h-8",lg:"w-12 h-12"},Nc={sm:"text-sm",default:"text-base",lg:"text-lg"},or=({message:e,size:t="default",fullScreen:n=!0,className:r})=>{const o=i.jsxs("div",{className:q("flex flex-col items-center justify-center gap-3",r),children:[i.jsx(fa,{className:q(Tc[t],"animate-spin text-primary")}),e&&i.jsx("p",{className:q(Nc[t],"text-muted-foreground font-medium"),children:e})]});return n?i.jsx("div",{className:"flex items-center justify-center w-full h-full min-h-[400px]",children:o}):o};function sr(e,[t,n]){return Math.min(n,Math.max(t,e))}function Rc(e){const t=e+"CollectionProvider",[n,r]=Fe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:w}=h,y=Me.useRef(null),b=Me.useRef(new Map).current;return i.jsx(o,{scope:x,itemMap:b,collectionRef:y,children:w})};a.displayName=t;const c=e+"CollectionSlot",u=at(c),d=Me.forwardRef((h,x)=>{const{scope:w,children:y}=h,b=s(c,w),C=W(x,b.collectionRef);return i.jsx(u,{ref:C,children:y})});d.displayName=c;const f=e+"CollectionItemSlot",m="data-radix-collection-item",g=at(f),p=Me.forwardRef((h,x)=>{const{scope:w,children:y,...b}=h,C=Me.useRef(null),S=W(x,C),E=s(f,w);return Me.useEffect(()=>(E.itemMap.set(C,{ref:C,...b}),()=>void E.itemMap.delete(C))),i.jsx(g,{[m]:"",ref:S,children:y})});p.displayName=f;function v(h){const x=s(e+"CollectionConsumer",h);return Me.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(x.itemMap.values()).sort((E,P)=>b.indexOf(E.ref.current)-b.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:d,ItemSlot:p},v,r]}var jc=l.createContext(void 0);function Oc(e){const t=l.useContext(jc);return e||t||"ltr"}var Jt=0;function go(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ar()),document.body.insertAdjacentElement("beforeend",e[1]??ar()),Jt++,()=>{Jt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jt--}},[])}function ar(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zt="focusScope.autoFocusOnMount",en="focusScope.autoFocusOnUnmount",ir={bubbles:!1,cancelable:!0},Mc="FocusScope",An=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,u]=l.useState(null),d=Ae(o),f=Ae(s),m=l.useRef(null),g=W(t,h=>u(h)),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let h=function(b){if(p.paused||!c)return;const C=b.target;c.contains(C)?m.current=C:ye(m.current,{select:!0})},x=function(b){if(p.paused||!c)return;const C=b.relatedTarget;C!==null&&(c.contains(C)||ye(m.current,{select:!0}))},w=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&ye(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const y=new MutationObserver(w);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),y.disconnect()}}},[r,c,p.paused]),l.useEffect(()=>{if(c){lr.add(p);const h=document.activeElement;if(!c.contains(h)){const w=new CustomEvent(Zt,ir);c.addEventListener(Zt,d),c.dispatchEvent(w),w.defaultPrevented||(kc(Lc(vo(c)),{select:!0}),document.activeElement===h&&ye(c))}return()=>{c.removeEventListener(Zt,d),setTimeout(()=>{const w=new CustomEvent(en,ir);c.addEventListener(en,f),c.dispatchEvent(w),w.defaultPrevented||ye(h??document.body,{select:!0}),c.removeEventListener(en,f),lr.remove(p)},0)}}},[c,d,f,p]);const v=l.useCallback(h=>{if(!n&&!r||p.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(x&&w){const y=h.currentTarget,[b,C]=Ac(y);b&&C?!h.shiftKey&&w===C?(h.preventDefault(),n&&ye(b,{select:!0})):h.shiftKey&&w===b&&(h.preventDefault(),n&&ye(C,{select:!0})):w===y&&h.preventDefault()}},[n,r,p.paused]);return i.jsx(k.div,{tabIndex:-1,...a,ref:g,onKeyDown:v})});An.displayName=Mc;function kc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ye(r,{select:t}),document.activeElement!==n)return}function Ac(e){const t=vo(e),n=cr(t,e),r=cr(t.reverse(),e);return[n,r]}function vo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cr(e,t){for(const n of e)if(!_c(n,{upTo:t}))return n}function _c(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Dc(e){return e instanceof HTMLInputElement&&"select"in e}function ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dc(e)&&t&&e.select()}}var lr=Ic();function Ic(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ur(e,t),e.unshift(t)},remove(t){e=ur(e,t),e[0]?.resume()}}}function ur(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Lc(e){return e.filter(t=>t.tagName!=="A")}function xo(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$e=new WeakMap,pt=new WeakMap,gt={},tn=0,yo=function(e){return e&&(e.host||yo(e.parentNode))},Wc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=yo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$c=function(e,t,n,r){var o=Wc(t,Array.isArray(e)?e:[e]);gt[n]||(gt[n]=new WeakMap);var s=gt[n],a=[],c=new Set,u=new Set(o),d=function(m){!m||c.has(m)||(c.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(g){if(c.has(g))f(g);else try{var p=g.getAttribute(r),v=p!==null&&p!=="false",h=($e.get(g)||0)+1,x=(s.get(g)||0)+1;$e.set(g,h),s.set(g,x),a.push(g),h===1&&v&&pt.set(g,!0),x===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(t),c.clear(),tn++,function(){a.forEach(function(m){var g=$e.get(m)-1,p=s.get(m)-1;$e.set(m,g),s.set(m,p),g||(pt.has(m)||m.removeAttribute(r),pt.delete(m)),p||m.removeAttribute(n)}),tn--,tn||($e=new WeakMap,$e=new WeakMap,pt=new WeakMap,gt={})}},wo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Fc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$c(r,o,n,"aria-hidden")):function(){return null}},ce=function(){return ce=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ce.apply(this,arguments)};function bo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Bc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var wt="right-scroll-bar-position",bt="width-before-scroll-bar",Hc="with-scroll-bars-hidden",Vc="--removed-body-scroll-bar-size";function nn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Yc(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var zc=typeof window<"u"?l.useLayoutEffect:l.useEffect,dr=new WeakMap;function Uc(e,t){var n=Yc(null,function(r){return e.forEach(function(o){return nn(o,r)})});return zc(function(){var r=dr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||nn(c,null)}),s.forEach(function(c){o.has(c)||nn(c,a)})}dr.set(n,e)},[e]),n}function qc(e){return e}function Xc(e,t){t===void 0&&(t=qc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var u=function(){var f=a;a=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function Gc(e){e===void 0&&(e={});var t=Xc(null);return t.options=ce({async:!0,ssr:!1},e),t}var Co=function(e){var t=e.sideCar,n=bo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,ce({},n))};Co.isSideCarExport=!0;function Kc(e,t){return e.useMedium(t),Co}var So=Gc(),rn=function(){},Wt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:rn,onWheelCapture:rn,onTouchMoveCapture:rn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,g=e.sideCar,p=e.noRelative,v=e.noIsolation,h=e.inert,x=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,b=e.gapMode,C=bo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,E=Uc([n,t]),P=ce(ce({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:So,removeScrollBar:d,shards:m,noRelative:p,noIsolation:v,inert:h,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:b}),a?l.cloneElement(l.Children.only(c),ce(ce({},P),{ref:E})):l.createElement(y,ce({},P,{className:u,ref:E}),c))});Wt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wt.classNames={fullWidth:bt,zeroRight:wt};var Qc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qc();return t&&e.setAttribute("nonce",t),e}function Zc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function el(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jc())&&(Zc(t,n),el(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nl=function(){var e=tl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Po=function(){var e=nl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},rl={left:0,top:0,right:0,gap:0},on=function(e){return parseInt(e||"",10)||0},ol=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[on(n),on(r),on(o)]},sl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rl;var t=ol(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},al=Po(),ze="data-scroll-locked",il=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
62
- .`.concat(Hc,` {
63
- overflow: hidden `).concat(r,`;
64
- padding-right: `).concat(c,"px ").concat(r,`;
65
- }
66
- body[`).concat(ze,`] {
67
- overflow: hidden `).concat(r,`;
68
- overscroll-behavior: contain;
69
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
70
- padding-left: `.concat(o,`px;
71
- padding-top: `).concat(s,`px;
72
- padding-right: `).concat(a,`px;
73
- margin-left:0;
74
- margin-top:0;
75
- margin-right: `).concat(c,"px ").concat(r,`;
76
- `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
77
- }
78
-
79
- .`).concat(wt,` {
80
- right: `).concat(c,"px ").concat(r,`;
81
- }
82
-
83
- .`).concat(bt,` {
84
- margin-right: `).concat(c,"px ").concat(r,`;
85
- }
86
-
87
- .`).concat(wt," .").concat(wt,` {
88
- right: 0 `).concat(r,`;
89
- }
90
-
91
- .`).concat(bt," .").concat(bt,` {
92
- margin-right: 0 `).concat(r,`;
93
- }
94
-
95
- body[`).concat(ze,`] {
96
- `).concat(Vc,": ").concat(c,`px;
97
- }
98
- `)},fr=function(){var e=parseInt(document.body.getAttribute(ze)||"0",10);return isFinite(e)?e:0},cl=function(){l.useEffect(function(){return document.body.setAttribute(ze,(fr()+1).toString()),function(){var e=fr()-1;e<=0?document.body.removeAttribute(ze):document.body.setAttribute(ze,e.toString())}},[])},ll=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;cl();var s=l.useMemo(function(){return sl(o)},[o]);return l.createElement(al,{styles:il(s,!t,o,n?"":"!important")})},hn=!1;if(typeof window<"u")try{var vt=Object.defineProperty({},"passive",{get:function(){return hn=!0,!0}});window.addEventListener("test",vt,vt),window.removeEventListener("test",vt,vt)}catch{hn=!1}var Be=hn?{passive:!1}:!1,ul=function(e){return e.tagName==="TEXTAREA"},Eo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ul(e)&&n[t]==="visible")},dl=function(e){return Eo(e,"overflowY")},fl=function(e){return Eo(e,"overflowX")},mr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=To(e,r);if(o){var s=No(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ml=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},To=function(e,t){return e==="v"?dl(t):fl(t)},No=function(e,t){return e==="v"?ml(t):hl(t)},pl=function(e,t){return e==="h"&&t==="rtl"?-1:1},gl=function(e,t,n,r,o){var s=pl(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,u=t.contains(c),d=!1,f=a>0,m=0,g=0;do{if(!c)break;var p=No(e,c),v=p[0],h=p[1],x=p[2],w=h-x-s*v;(v||w)&&To(e,c)&&(m+=w,g+=v);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(f&&Math.abs(m)<1||!f&&Math.abs(g)<1)&&(d=!0),d},xt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hr=function(e){return[e.deltaX,e.deltaY]},pr=function(e){return e&&"current"in e?e.current:e},vl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xl=function(e){return`
99
- .block-interactivity-`.concat(e,` {pointer-events: none;}
100
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
101
- `)},yl=0,He=[];function wl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(yl++)[0],s=l.useState(Po)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Bc([e.lockRef.current],(e.shards||[]).map(pr),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var w=xt(h),y=n.current,b="deltaX"in h?h.deltaX:y[0]-w[0],C="deltaY"in h?h.deltaY:y[1]-w[1],S,E=h.target,P=Math.abs(b)>Math.abs(C)?"h":"v";if("touches"in h&&P==="h"&&E.type==="range")return!1;var j=mr(P,E);if(!j)return!0;if(j?S=P:(S=P==="v"?"h":"v",j=mr(P,E)),!j)return!1;if(!r.current&&"changedTouches"in h&&(b||C)&&(r.current=S),!S)return!0;var I=r.current||S;return gl(I,x,h,I==="h"?b:C)},[]),u=l.useCallback(function(h){var x=h;if(!(!He.length||He[He.length-1]!==s)){var w="deltaY"in x?hr(x):xt(x),y=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&vl(S.delta,w)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(pr).filter(Boolean).filter(function(S){return S.contains(x.target)}),C=b.length>0?c(x,b[0]):!a.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=l.useCallback(function(h,x,w,y){var b={name:h,delta:x,target:w,should:y,shadowParent:bl(w)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(C){return C!==b})},1)},[]),f=l.useCallback(function(h){n.current=xt(h),r.current=void 0},[]),m=l.useCallback(function(h){d(h.type,hr(h),h.target,c(h,e.lockRef.current))},[]),g=l.useCallback(function(h){d(h.type,xt(h),h.target,c(h,e.lockRef.current))},[]);l.useEffect(function(){return He.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Be),document.addEventListener("touchmove",u,Be),document.addEventListener("touchstart",f,Be),function(){He=He.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,Be),document.removeEventListener("touchmove",u,Be),document.removeEventListener("touchstart",f,Be)}},[]);var p=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:xl(o)}):null,p?l.createElement(ll,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Cl=Kc(So,wl);var _n=l.forwardRef(function(e,t){return l.createElement(Wt,ce({},e,{ref:t,sideCar:Cl}))});_n.classNames=Wt.classNames;var Sl=[" ","Enter","ArrowUp","ArrowDown"],Pl=[" ","Enter"],De="Select",[$t,Bt,El]=Rc(De),[Je]=Fe(De,[El,Dt]),Ht=Dt(),[Tl,Te]=Je(De),[Nl,Rl]=Je(De),Ro=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:c,onValueChange:u,dir:d,name:f,autoComplete:m,disabled:g,required:p,form:v}=e,h=Ht(t),[x,w]=l.useState(null),[y,b]=l.useState(null),[C,S]=l.useState(!1),E=Oc(d),[P,j]=Xe({prop:r,defaultProp:o??!1,onChange:s,caller:De}),[I,_]=Xe({prop:a,defaultProp:c,onChange:u,caller:De}),$=l.useRef(null),B=x?v||!!x.closest("form"):!0,[F,A]=l.useState(new Set),z=Array.from(F).map(O=>O.props.value).join(";");return i.jsx(Qr,{...h,children:i.jsxs(Tl,{required:p,scope:t,trigger:x,onTriggerChange:w,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:we(),value:I,onValueChange:_,open:P,onOpenChange:j,dir:E,triggerPointerDownPosRef:$,disabled:g,children:[i.jsx($t.Provider,{scope:t,children:i.jsx(Nl,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{A(D=>new Set(D).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{A(D=>{const R=new Set(D);return R.delete(O),R})},[]),children:n})}),B?i.jsxs(Ko,{"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:m,value:I,onChange:O=>_(O.target.value),disabled:g,form:v,children:[I===void 0?i.jsx("option",{value:""}):null,Array.from(F)]},z):null]})})};Ro.displayName=De;var jo="SelectTrigger",Oo=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Ht(n),a=Te(jo,n),c=a.disabled||r,u=W(t,a.onTriggerChange),d=Bt(n),f=l.useRef("touch"),[m,g,p]=Jo(h=>{const x=d().filter(b=>!b.disabled),w=x.find(b=>b.value===a.value),y=Zo(x,h,w);y!==void 0&&a.onValueChange(y.value)}),v=h=>{c||(a.onOpenChange(!0),p()),h&&(a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return i.jsx(Jr,{asChild:!0,...s,children:i.jsx(k.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Qo(a.value)?"":void 0,...o,ref:u,onClick:M(o.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&v(h)}),onPointerDown:M(o.onPointerDown,h=>{f.current=h.pointerType;const x=h.target;x.hasPointerCapture(h.pointerId)&&x.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(v(h),h.preventDefault())}),onKeyDown:M(o.onKeyDown,h=>{const x=m.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&g(h.key),!(x&&h.key===" ")&&Sl.includes(h.key)&&(v(),h.preventDefault())})})})});Oo.displayName=jo;var Mo="SelectValue",ko=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,u=Te(Mo,n),{onValueNodeHasChildrenChange:d}=u,f=s!==void 0,m=W(t,u.onValueNodeChange);return G(()=>{d(f)},[d,f]),i.jsx(k.span,{...c,ref:m,style:{pointerEvents:"none"},children:Qo(u.value)?i.jsx(i.Fragment,{children:a}):s})});ko.displayName=Mo;var jl="SelectIcon",Ao=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(k.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ao.displayName=jl;var Ol="SelectPortal",_o=e=>i.jsx(It,{asChild:!0,...e});_o.displayName=Ol;var Ie="SelectContent",Do=l.forwardRef((e,t)=>{const n=Te(Ie,e.__scopeSelect),[r,o]=l.useState();if(G(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?jt.createPortal(i.jsx(Io,{scope:e.__scopeSelect,children:i.jsx($t.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(Lo,{...e,ref:t})});Do.displayName=Ie;var re=10,[Io,Ne]=Je(Ie),Ml="SelectContentImpl",kl=at("SelectContent.RemoveScroll"),Lo=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x,...w}=e,y=Te(Ie,n),[b,C]=l.useState(null),[S,E]=l.useState(null),P=W(t,N=>C(N)),[j,I]=l.useState(null),[_,$]=l.useState(null),B=Bt(n),[F,A]=l.useState(!1),z=l.useRef(!1);l.useEffect(()=>{if(b)return wo(b)},[b]),go();const O=l.useCallback(N=>{const[U,...K]=B().map(X=>X.ref.current),[V]=K.slice(-1),Y=document.activeElement;for(const X of N)if(X===Y||(X?.scrollIntoView({block:"nearest"}),X===U&&S&&(S.scrollTop=0),X===V&&S&&(S.scrollTop=S.scrollHeight),X?.focus(),document.activeElement!==Y))return},[B,S]),D=l.useCallback(()=>O([j,b]),[O,j,b]);l.useEffect(()=>{F&&D()},[F,D]);const{onOpenChange:R,triggerPointerDownPosRef:H}=y;l.useEffect(()=>{if(b){let N={x:0,y:0};const U=V=>{N={x:Math.abs(Math.round(V.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(V.pageY)-(H.current?.y??0))}},K=V=>{N.x<=10&&N.y<=10?V.preventDefault():b.contains(V.target)||R(!1),document.removeEventListener("pointermove",U),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",K,{capture:!0})}}},[b,R,H]),l.useEffect(()=>{const N=()=>R(!1);return window.addEventListener("blur",N),window.addEventListener("resize",N),()=>{window.removeEventListener("blur",N),window.removeEventListener("resize",N)}},[R]);const[Q,Re]=Jo(N=>{const U=B().filter(Y=>!Y.disabled),K=U.find(Y=>Y.ref.current===document.activeElement),V=Zo(U,N,K);V&&setTimeout(()=>V.ref.current.focus())}),Ze=l.useCallback((N,U,K)=>{const V=!z.current&&!K;(y.value!==void 0&&y.value===U||V)&&(I(N),V&&(z.current=!0))},[y.value]),et=l.useCallback(()=>b?.focus(),[b]),ve=l.useCallback((N,U,K)=>{const V=!z.current&&!K;(y.value!==void 0&&y.value===U||V)&&$(N)},[y.value]),We=r==="popper"?pn:Fo,je=We===pn?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x}:{};return i.jsx(Io,{scope:n,content:b,viewport:S,onViewportChange:E,itemRefCallback:Ze,selectedItem:j,onItemLeave:et,itemTextRefCallback:ve,focusSelectedItem:D,selectedItemText:_,position:r,isPositioned:F,searchRef:Q,children:i.jsx(_n,{as:kl,allowPinchZoom:!0,children:i.jsx(An,{asChild:!0,trapped:y.open,onMountAutoFocus:N=>{N.preventDefault()},onUnmountAutoFocus:M(o,N=>{y.trigger?.focus({preventScroll:!0}),N.preventDefault()}),children:i.jsx(Ot,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:N=>N.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:i.jsx(We,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:N=>N.preventDefault(),...w,...je,onPlaced:()=>A(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:M(w.onKeyDown,N=>{const U=N.ctrlKey||N.altKey||N.metaKey;if(N.key==="Tab"&&N.preventDefault(),!U&&N.key.length===1&&Re(N.key),["ArrowUp","ArrowDown","Home","End"].includes(N.key)){let V=B().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(N.key)&&(V=V.slice().reverse()),["ArrowUp","ArrowDown"].includes(N.key)){const Y=N.target,X=V.indexOf(Y);V=V.slice(X+1)}setTimeout(()=>O(V)),N.preventDefault()}})})})})})})});Lo.displayName=Ml;var Al="SelectItemAlignedPosition",Fo=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Te(Ie,n),a=Ne(Ie,n),[c,u]=l.useState(null),[d,f]=l.useState(null),m=W(t,P=>f(P)),g=Bt(n),p=l.useRef(!1),v=l.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:w,focusSelectedItem:y}=a,b=l.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&d&&h&&x&&w){const P=s.trigger.getBoundingClientRect(),j=d.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),_=w.getBoundingClientRect();if(s.dir!=="rtl"){const Y=_.left-j.left,X=I.left-Y,te=P.left-X,Oe=P.width+te,qt=Math.max(Oe,j.width),Xt=window.innerWidth-re,Gt=sr(X,[re,Math.max(re,Xt-qt)]);c.style.minWidth=Oe+"px",c.style.left=Gt+"px"}else{const Y=j.right-_.right,X=window.innerWidth-I.right-Y,te=window.innerWidth-P.right-X,Oe=P.width+te,qt=Math.max(Oe,j.width),Xt=window.innerWidth-re,Gt=sr(X,[re,Math.max(re,Xt-qt)]);c.style.minWidth=Oe+"px",c.style.right=Gt+"px"}const $=g(),B=window.innerHeight-re*2,F=h.scrollHeight,A=window.getComputedStyle(d),z=parseInt(A.borderTopWidth,10),O=parseInt(A.paddingTop,10),D=parseInt(A.borderBottomWidth,10),R=parseInt(A.paddingBottom,10),H=z+O+F+R+D,Q=Math.min(x.offsetHeight*5,H),Re=window.getComputedStyle(h),Ze=parseInt(Re.paddingTop,10),et=parseInt(Re.paddingBottom,10),ve=P.top+P.height/2-re,We=B-ve,je=x.offsetHeight/2,N=x.offsetTop+je,U=z+O+N,K=H-U;if(U<=ve){const Y=$.length>0&&x===$[$.length-1].ref.current;c.style.bottom="0px";const X=d.clientHeight-h.offsetTop-h.offsetHeight,te=Math.max(We,je+(Y?et:0)+X+D),Oe=U+te;c.style.height=Oe+"px"}else{const Y=$.length>0&&x===$[0].ref.current;c.style.top="0px";const te=Math.max(ve,z+h.offsetTop+(Y?Ze:0)+je)+K;c.style.height=te+"px",h.scrollTop=U-ve+h.offsetTop}c.style.margin=`${re}px 0`,c.style.minHeight=Q+"px",c.style.maxHeight=B+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[g,s.trigger,s.valueNode,c,d,h,x,w,s.dir,r]);G(()=>b(),[b]);const[C,S]=l.useState();G(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const E=l.useCallback(P=>{P&&v.current===!0&&(b(),y?.(),v.current=!1)},[b,y]);return i.jsx(Dl,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:i.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:i.jsx(k.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Fo.displayName=Al;var _l="SelectPopperPosition",pn=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=re,...s}=e,a=Ht(n);return i.jsx(Zr,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});pn.displayName=_l;var[Dl,Dn]=Je(Ie,{}),gn="SelectViewport",Wo=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ne(gn,n),a=Dn(gn,n),c=W(t,s.onViewportChange),u=l.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),i.jsx($t.Slot,{scope:n,children:i.jsx(k.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:M(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=a;if(g?.current&&m){const p=Math.abs(u.current-f.scrollTop);if(p>0){const v=window.innerHeight-re*2,h=parseFloat(m.style.minHeight),x=parseFloat(m.style.height),w=Math.max(h,x);if(w<v){const y=w+p,b=Math.min(v,y),C=y-b;m.style.height=b+"px",m.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});Wo.displayName=gn;var $o="SelectGroup",[Il,Ll]=Je($o),Fl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=we();return i.jsx(Il,{scope:n,id:o,children:i.jsx(k.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Fl.displayName=$o;var Bo="SelectLabel",Wl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ll(Bo,n);return i.jsx(k.div,{id:o.id,...r,ref:t})});Wl.displayName=Bo;var Tt="SelectItem",[$l,Ho]=Je(Tt),Vo=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Te(Tt,n),u=Ne(Tt,n),d=c.value===r,[f,m]=l.useState(s??""),[g,p]=l.useState(!1),v=W(t,y=>u.itemRefCallback?.(y,r,o)),h=we(),x=l.useRef("touch"),w=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx($l,{scope:n,value:r,disabled:o,textId:h,isSelected:d,onItemTextChange:l.useCallback(y=>{m(b=>b||(y?.textContent??"").trim())},[]),children:i.jsx($t.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.jsx(k.div,{role:"option","aria-labelledby":h,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:M(a.onFocus,()=>p(!0)),onBlur:M(a.onBlur,()=>p(!1)),onClick:M(a.onClick,()=>{x.current!=="mouse"&&w()}),onPointerUp:M(a.onPointerUp,()=>{x.current==="mouse"&&w()}),onPointerDown:M(a.onPointerDown,y=>{x.current=y.pointerType}),onPointerMove:M(a.onPointerMove,y=>{x.current=y.pointerType,o?u.onItemLeave?.():x.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:M(a.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:M(a.onKeyDown,y=>{u.searchRef?.current!==""&&y.key===" "||(Pl.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Vo.displayName=Tt;var tt="SelectItemText",Yo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Te(tt,n),c=Ne(tt,n),u=Ho(tt,n),d=Rl(tt,n),[f,m]=l.useState(null),g=W(t,w=>m(w),u.onItemTextChange,w=>c.itemTextRefCallback?.(w,u.value,u.disabled)),p=f?.textContent,v=l.useMemo(()=>i.jsx("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=d;return G(()=>(h(v),()=>x(v)),[h,x,v]),i.jsxs(i.Fragment,{children:[i.jsx(k.span,{id:u.textId,...s,ref:g}),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?jt.createPortal(s.children,a.valueNode):null]})});Yo.displayName=tt;var zo="SelectItemIndicator",Uo=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ho(zo,n).isSelected?i.jsx(k.span,{"aria-hidden":!0,...r,ref:t}):null});Uo.displayName=zo;var vn="SelectScrollUpButton",qo=l.forwardRef((e,t)=>{const n=Ne(vn,e.__scopeSelect),r=Dn(vn,e.__scopeSelect),[o,s]=l.useState(!1),a=W(t,r.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=u.scrollTop>0;s(d)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Go,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop-u.offsetHeight)}}):null});qo.displayName=vn;var xn="SelectScrollDownButton",Xo=l.forwardRef((e,t)=>{const n=Ne(xn,e.__scopeSelect),r=Dn(xn,e.__scopeSelect),[o,s]=l.useState(!1),a=W(t,r.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<d;s(f)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?i.jsx(Go,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop+u.offsetHeight)}}):null});Xo.displayName=xn;var Go=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ne("SelectScrollButton",n),a=l.useRef(null),c=Bt(n),u=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),G(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),i.jsx(k.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:M(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:M(o.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:M(o.onPointerLeave,()=>{u()})})}),Bl="SelectSeparator",Hl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(k.div,{"aria-hidden":!0,...r,ref:t})});Hl.displayName=Bl;var yn="SelectArrow",Vl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ht(n),s=Te(yn,n),a=Ne(yn,n);return s.open&&a.position==="popper"?i.jsx(eo,{...o,...r,ref:t}):null});Vl.displayName=yn;var Yl="SelectBubbleInput",Ko=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=W(r,o),a=xo(t);return l.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==t&&f){const m=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(m)}},[a,t]),i.jsx(k.select,{...n,style:{...to,...n.style},ref:s,defaultValue:t})});Ko.displayName=Yl;function Qo(e){return e===""||e===void 0}function Jo(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const c=n.current+a;t(c),(function u(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(c)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Zo(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=zl(e,Math.max(s,0));o.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function zl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ul=Ro,ql=Oo,Xl=ko,Gl=Ao,Kl=_o,Ql=Do,Jl=Wo,Zl=Vo,eu=Yo,tu=Uo,nu=qo,ru=Xo;function nt({...e}){return i.jsx(Ul,{...e})}function rt({...e}){return i.jsx(Xl,{...e})}function ot({className:e,children:t,...n}){return i.jsxs(ql,{className:q("flex h-10 w-full items-center justify-between rounded-md border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,i.jsx(Gl,{asChild:!0,children:i.jsx(bn,{className:"h-4 w-4 opacity-50"})})]})}function ou({className:e,...t}){return i.jsx(nu,{className:q("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(ra,{className:"h-4 w-4"})})}function su({className:e,...t}){return i.jsx(ru,{className:q("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(bn,{className:"h-4 w-4"})})}function st({className:e,children:t,position:n="popper",...r}){return i.jsx(Kl,{children:i.jsxs(Ql,{className:q("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[i.jsx(ou,{}),i.jsx(Jl,{className:q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(su,{})]})})}function J({className:e,children:t,...n}){return i.jsxs(Zl,{className:q("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(tu,{children:i.jsx(Tr,{className:"h-4 w-4"})})}),i.jsx(eu,{children:t})]})}const In={},au=Symbol((In?"production":void 0)!=="production"?"RESET":""),es=e=>typeof e?.then=="function";function iu(e=()=>{try{return window.localStorage}catch(n){(In?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(n);return}},t){var n;let r,o;const s={getItem:(u,d)=>{var f,m;const g=v=>{if(v=v||"",r!==v){try{o=JSON.parse(v,t?.reviver)}catch{return d}r=v}return o},p=(m=(f=e())==null?void 0:f.getItem(u))!=null?m:null;return es(p)?p.then(g):g(p)},setItem:(u,d)=>{var f;return(f=e())==null?void 0:f.setItem(u,JSON.stringify(d,void 0))},removeItem:u=>{var d;return(d=e())==null?void 0:d.removeItem(u)}},a=u=>(d,f,m)=>u(d,g=>{let p;try{p=JSON.parse(g||"")}catch{p=m}f(p)});let c;try{c=(n=e())==null?void 0:n.subscribe}catch{}return!c&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(c=(u,d)=>{if(!(e()instanceof window.Storage))return()=>{};const f=m=>{m.storageArea===e()&&m.key===u&&d(m.newValue)};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}}),c&&(s.subscribe=a(c)),s}const cu=iu();function lu(e,t,n=cu,r){const o=sn(t);return(In?"production":void 0)!=="production"&&(o.debugPrivate=!0),o.onMount=a=>{a(n.getItem(e,t));let c;return n.subscribe&&(c=n.subscribe(e,a,t)),c},sn(a=>a(o),(a,c,u)=>{const d=typeof u=="function"?u(a(o)):u;return d===au?(c(o,t),n.removeItem(e)):es(d)?d.then(f=>(c(o,f),n.setItem(e,f))):(c(o,d),n.setItem(e,d))})}const uu={soundType:"none"},ts=lu("claude-code-viewer-notification-settings",uu),Ff=sn(e=>e(ts).soundType!=="none"),du={beep:{frequency:[800],duration:.15,type:"sine",volume:.3},chime:{frequency:[523,659,784],duration:.4,type:"sine",volume:.2},ping:{frequency:[1e3],duration:.1,type:"triangle",volume:.4},pop:{frequency:[400,600],duration:.08,type:"square",volume:.2}};function fu(e){if(e!=="none")try{const t=du[e];if(!t){console.warn(`Unknown sound type: ${e}`);return}const n=new(window.AudioContext||window.webkitAudioContext);t.frequency.forEach((r,o)=>{const s=n.createOscillator(),a=n.createGain();s.connect(a),a.connect(n.destination),s.frequency.setValueAtTime(r,n.currentTime),s.type=t.type;const c=n.currentTime+o*.05;a.gain.setValueAtTime(t.volume,c),a.gain.exponentialRampToValueAtTime(.01,c+t.duration),s.start(c),s.stop(c+t.duration)})}catch(t){console.warn("Failed to play notification sound:",t)}}function mu(e){return{none:i.jsx(T,{id:"notification.none",message:"None"}),beep:i.jsx(T,{id:"notification.beep",message:"Beep"}),chime:i.jsx(T,{id:"notification.chime",message:"Chime"}),ping:i.jsx(T,{id:"notification.ping",message:"Ping"}),pop:i.jsx(T,{id:"notification.pop",message:"Pop"})}[e]}function hu(){return["none","beep","chime","ping","pop"]}const pu=({showLabels:e=!0,showDescriptions:t=!0,className:n=""})=>{const r=l.useId(),[o,s]=$s(ts),a=l.useCallback(d=>{s(f=>({...f,soundType:d}))},[s]),c=l.useCallback(()=>{o.soundType!=="none"&&fu(o.soundType)},[o.soundType]),u=hu();return i.jsx("div",{className:`space-y-4 ${n}`,children:i.jsxs("div",{className:"space-y-2",children:[e&&i.jsx("label",{htmlFor:r,className:"text-sm font-medium leading-none",children:"Task completion sound"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs(nt,{value:o.soundType,onValueChange:a,children:[i.jsx(ot,{id:r,className:"w-[180px]",children:i.jsx(rt,{placeholder:"音を選択"})}),i.jsx(st,{children:u.map(d=>i.jsx(J,{value:d,children:mu(d)},d))})]}),o.soundType!=="none"&&i.jsx(Bs,{variant:"outline",size:"sm",onClick:c,className:"px-3",children:i.jsx(T,{id:"notification.test",message:"Test"})})]}),t&&i.jsx("p",{className:"text-xs text-muted-foreground",children:i.jsx(T,{id:"notification.description",message:"Select a sound to play when a task completes"})})]})})};var Vt="Checkbox",[gu]=Fe(Vt),[vu,Ln]=gu(Vt);function xu(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:a,name:c,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:m}=e,[g,p]=Xe({prop:n,defaultProp:o??!1,onChange:u,caller:Vt}),[v,h]=l.useState(null),[x,w]=l.useState(null),y=l.useRef(!1),b=v?!!a||!!v.closest("form"):!0,C={checked:g,disabled:s,setChecked:p,control:v,setControl:h,name:c,form:a,value:f,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:be(o)?!1:o,isFormControl:b,bubbleInput:x,setBubbleInput:w};return i.jsx(vu,{scope:t,...C,children:yu(m)?m(C):r})}var ns="CheckboxTrigger",rs=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:a,disabled:c,checked:u,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:g,isFormControl:p,bubbleInput:v}=Ln(ns,e),h=W(o,f),x=l.useRef(u);return l.useEffect(()=>{const w=s?.form;if(w){const y=()=>m(x.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[s,m]),i.jsx(k.button,{type:"button",role:"checkbox","aria-checked":be(u)?"mixed":u,"aria-required":d,"data-state":ls(u),"data-disabled":c?"":void 0,disabled:c,value:a,...r,ref:h,onKeyDown:M(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:M(n,w=>{m(y=>be(y)?!0:!y),v&&p&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})});rs.displayName=ns;var os=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:a,disabled:c,value:u,onCheckedChange:d,form:f,...m}=e;return i.jsx(xu,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:c,required:a,onCheckedChange:d,name:r,form:f,value:u,internal_do_not_use_render:({isFormControl:g})=>i.jsxs(i.Fragment,{children:[i.jsx(rs,{...m,ref:t,__scopeCheckbox:n}),g&&i.jsx(cs,{__scopeCheckbox:n})]})})});os.displayName=Vt;var ss="CheckboxIndicator",as=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=Ln(ss,n);return i.jsx(Ee,{present:r||be(s.checked)||s.checked===!0,children:i.jsx(k.span,{"data-state":ls(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});as.displayName=ss;var is="CheckboxBubbleInput",cs=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:a,required:c,disabled:u,name:d,value:f,form:m,bubbleInput:g,setBubbleInput:p}=Ln(is,e),v=W(n,p),h=xo(s),x=Br(r);l.useEffect(()=>{const y=g;if(!y)return;const b=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(b,"checked").set,E=!o.current;if(h!==s&&S){const P=new Event("click",{bubbles:E});y.indeterminate=be(s),S.call(y,be(s)?!1:s),y.dispatchEvent(P)}},[g,h,s,o]);const w=l.useRef(be(s)?!1:s);return i.jsx(k.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??w.current,required:c,disabled:u,name:d,value:f,form:m,...t,tabIndex:-1,ref:v,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});cs.displayName=is;function yu(e){return typeof e=="function"}function be(e){return e==="indeterminate"}function ls(e){return be(e)?"indeterminate":e?"checked":"unchecked"}function gr({className:e,...t}){return i.jsx(os,{"data-slot":"checkbox",className:q("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsx(as,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:i.jsx(Tr,{className:"size-3.5"})})})}const us=()=>{const{data:e}=an({queryKey:Yn.queryKey,queryFn:Yn.queryFn}),t=l.useMemo(()=>new Set(e.flags.filter(r=>r.enabled).map(r=>r.name)),[e.flags]),n=l.useCallback(r=>t.has(r),[t]);return{flags:e.flags,isFlagEnabled:n}},wu=({openingProjectId:e,showLabels:t=!0,showDescriptions:n=!0,className:r=""})=>{const o=l.useId(),s=l.useId(),a=l.useId(),c=l.useId(),u=l.useId(),{config:d,updateConfig:f}=Hs(),m=Vs(),{theme:g}=Ys(),{i18n:p}=zs(),{isFlagEnabled:v}=us(),h=v("tool-approval"),x=async()=>{const E={...d,hideNoUserMessageSession:!d?.hideNoUserMessageSession};f(E,{onSuccess:async()=>{await m.refetchQueries({queryKey:Us.queryKey})}})},w=async()=>{const E={...d,unifySameTitleSession:!d?.unifySameTitleSession};f(E,{onSuccess:async()=>{await m.refetchQueries({queryKey:qs(e).queryKey})}})},y=async E=>{const P={...d,enterKeyBehavior:E};f(P)},b=async E=>{const P={...d,permissionMode:E};f(P)},C=async E=>{const P={...d,locale:E};f(P)},S=async E=>{const P={...d,theme:E};f(P)};return i.jsxs("div",{className:`space-y-4 ${r}`,children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(gr,{id:o,checked:d?.hideNoUserMessageSession,onCheckedChange:x}),t&&i.jsx("label",{htmlFor:o,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:i.jsx(T,{id:"settings.session.hide_no_user_message",message:"Hide sessions without user messages"})})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1 ml-6",children:i.jsx(T,{id:"settings.session.hide_no_user_message.description",message:"Only show sessions that contain user commands or messages"})}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(gr,{id:`${o}-unify`,checked:d?.unifySameTitleSession,onCheckedChange:w}),t&&i.jsx("label",{htmlFor:`${o}-unify`,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:i.jsx(T,{id:"settings.session.unify_same_title",message:"Unify sessions with same title"})})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1 ml-6",children:i.jsx(T,{id:"settings.session.unify_same_title.description",message:"Show only the latest session when multiple sessions have the same title"})}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:s,className:"text-sm font-medium leading-none",children:i.jsx(T,{id:"settings.input.enter_key_behavior",message:"Enter Key Behavior"})}),i.jsxs(nt,{value:d?.enterKeyBehavior||"shift-enter-send",onValueChange:y,children:[i.jsx(ot,{id:s,className:"w-full",children:i.jsx(rt,{placeholder:p._("Select enter key behavior")})}),i.jsxs(st,{children:[i.jsx(J,{value:"shift-enter-send",children:i.jsx(T,{id:"settings.input.enter_key_behavior.shift_enter",message:"Shift+Enter to send (default)"})}),i.jsx(J,{value:"enter-send",children:i.jsx(T,{id:"settings.input.enter_key_behavior.enter",message:"Enter to send"})}),i.jsx(J,{value:"command-enter-send",children:i.jsx(T,{id:"settings.input.enter_key_behavior.command_enter",message:"Command+Enter to send"})})]})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(T,{id:"settings.input.enter_key_behavior.description",message:"Choose how the Enter key behaves in message input"})})]}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none",children:i.jsx(T,{id:"settings.permission.mode",message:"Permission Mode"})}),i.jsxs(nt,{value:d?.permissionMode||"default",onValueChange:b,disabled:!h,children:[i.jsx(ot,{id:a,className:"w-full",children:i.jsx(rt,{placeholder:p._("Select permission mode")})}),i.jsxs(st,{children:[i.jsx(J,{value:"default",children:i.jsx(T,{id:"settings.permission.mode.default",message:"Default (Ask permission)"})}),i.jsx(J,{value:"acceptEdits",children:i.jsx(T,{id:"settings.permission.mode.accept_edits",message:"Accept Edits (Auto-approve file edits)"})}),i.jsx(J,{value:"bypassPermissions",children:i.jsx(T,{id:"settings.permission.mode.bypass_permissions",message:"Bypass Permissions (No prompts)"})}),i.jsx(J,{value:"plan",children:i.jsx(T,{id:"settings.permission.mode.plan",message:"Plan Mode (Planning only)"})})]})]}),n&&h&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(T,{id:"settings.permission.mode.description",message:"Control how Claude Code handles permission requests for file operations"})}),n&&!h&&i.jsx("p",{className:"text-xs text-destructive mt-1",children:i.jsx(T,{id:"settings.permission.mode.unavailable",message:"This feature is not available in your Claude Code version. All tools will be automatically approved."})})]}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:c,className:"text-sm font-medium leading-none",children:i.jsx(T,{id:"settings.locale",message:"Language"})}),i.jsxs(nt,{value:d?.locale||"ja",onValueChange:C,children:[i.jsx(ot,{id:c,className:"w-full",children:i.jsx(rt,{placeholder:p._("Select language")})}),i.jsxs(st,{children:[i.jsx(J,{value:"ja",children:i.jsx(T,{id:"settings.locale.ja",message:"日本語"})}),i.jsx(J,{value:"en",children:i.jsx(T,{id:"settings.locale.en",message:"English"})})]})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(T,{id:"settings.locale.description",message:"Choose your preferred language"})})]}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:u,className:"text-sm font-medium leading-none",children:i.jsx(T,{id:"settings.theme",message:"Theme"})}),i.jsxs(nt,{value:g??"system",onValueChange:S,children:[i.jsx(ot,{id:u,className:"w-full",children:i.jsx(rt,{placeholder:p._("Select theme")})}),i.jsxs(st,{children:[i.jsx(J,{value:"light",children:i.jsx(T,{id:"settings.theme.light",message:"Light"})}),i.jsx(J,{value:"dark",children:i.jsx(T,{id:"settings.theme.dark",message:"Dark"})}),i.jsx(J,{value:"system",children:i.jsx(T,{id:"settings.theme.system",message:"System"})})]})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(T,{id:"settings.theme.description",message:"Choose your preferred color theme"})})]})]})},bu=Gs("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function vr({className:e,variant:t,asChild:n=!1,...r}){const o=n?Xs:"span";return i.jsx(o,{"data-slot":"badge",className:q(bu({variant:t}),e),...r})}var Yt="Collapsible",[Cu]=Fe(Yt),[Su,Fn]=Cu(Yt),ds=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:a,...c}=e,[u,d]=Xe({prop:r,defaultProp:o??!1,onChange:a,caller:Yt});return i.jsx(Su,{scope:n,disabled:s,contentId:we(),open:u,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),children:i.jsx(k.div,{"data-state":$n(u),"data-disabled":s?"":void 0,...c,ref:t})})});ds.displayName=Yt;var fs="CollapsibleTrigger",ms=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Fn(fs,n);return i.jsx(k.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":$n(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:M(e.onClick,o.onOpenToggle)})});ms.displayName=fs;var Wn="CollapsibleContent",hs=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Fn(Wn,e.__scopeCollapsible);return i.jsx(Ee,{present:n||o.open,children:({present:s})=>i.jsx(Pu,{...r,ref:t,present:s})})});hs.displayName=Wn;var Pu=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,a=Fn(Wn,n),[c,u]=l.useState(r),d=l.useRef(null),f=W(t,d),m=l.useRef(0),g=m.current,p=l.useRef(0),v=p.current,h=a.open||c,x=l.useRef(h),w=l.useRef(void 0);return l.useEffect(()=>{const y=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(y)},[]),G(()=>{const y=d.current;if(y){w.current=w.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const b=y.getBoundingClientRect();m.current=b.height,p.current=b.width,x.current||(y.style.transitionDuration=w.current.transitionDuration,y.style.animationName=w.current.animationName),u(r)}},[a.open,r]),i.jsx(k.div,{"data-state":$n(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!h,...s,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function $n(e){return e?"open":"closed"}var Eu=ds;function Tu({...e}){return i.jsx(Eu,{"data-slot":"collapsible",...e})}function Nu({...e}){return i.jsx(ms,{"data-slot":"collapsible-trigger",...e})}function Ru({...e}){return i.jsx(hs,{"data-slot":"collapsible-content",...e})}const ju=e=>{switch(e){case"tool-approval":return{title:i.jsx(T,{id:"system_info.feature.tool_approval.title",message:"Tool Execution Approval"}),description:i.jsx(T,{id:"system_info.feature.tool_approval.description",message:"Allows you to approve or reject tool executions before Claude runs them, giving you full control over actions"})};case"agent-sdk":return{title:i.jsx(T,{id:"system_info.feature.agent_sdk.title",message:"Enhanced Agent Mode"}),description:i.jsx(T,{id:"system_info.feature.agent_sdk.description",message:"Uses @anthropic-ai/claude-agent-sdk instead of @anthropic-ai/claude-code for enhanced capabilities"})};default:return{title:e,description:i.jsx(T,{id:"system_info.feature.unknown.description",message:"Feature information not available"})}}},Ou=()=>{const[e,t]=l.useState(!1),{data:n}=an({...Ks}),{data:r}=an({...Qs}),{flags:o}=us();return i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"border-b border-sidebar-border p-4",children:[i.jsx("h2",{className:"font-semibold text-lg",children:i.jsx(T,{id:"system_info.title",message:"System Information"})}),i.jsx("p",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(T,{id:"system_info.description",message:"Version and feature information"})})]}),i.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(T,{id:"system_info.viewer_version",message:"Claude Code Viewer"})}),i.jsxs("div",{className:"flex justify-between items-center pl-2",children:[i.jsx("span",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(T,{id:"system_info.version_label",message:"Version"})}),i.jsxs(vr,{variant:"secondary",className:"text-xs font-mono",children:["v",n?.version||"Unknown"]})]})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(T,{id:"system_info.claude_code",message:"Claude Code"})}),i.jsxs("div",{className:"space-y-2 pl-2",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("div",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(T,{id:"system_info.executable_path",message:"Executable"})}),i.jsx("div",{className:"text-xs text-sidebar-foreground font-mono break-all",children:r?.executablePath||i.jsx("span",{className:"text-sidebar-foreground/50",children:i.jsx(T,{id:"system_info.unknown",message:"Unknown"})})})]}),i.jsxs("div",{className:"flex justify-between items-center pt-1",children:[i.jsx("span",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(T,{id:"system_info.version_label",message:"Version"})}),i.jsx(vr,{variant:"secondary",className:"text-xs font-mono",children:r?.version||i.jsx(T,{id:"system_info.unknown",message:"Unknown"})})]})]})]}),i.jsx("div",{className:"space-y-3",children:i.jsxs(Tu,{open:e,onOpenChange:t,children:[i.jsxs(Nu,{className:"flex w-full items-center justify-between group",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(T,{id:"system_info.available_features",message:"Available Features"})}),e?i.jsx(bn,{className:"h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors"}):i.jsx(ta,{className:"h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors"})]}),i.jsx(Ru,{className:"pt-3",children:i.jsx(kn,{children:i.jsx("ul",{className:"space-y-2 pl-2",children:o.map(({name:s,enabled:a})=>{const c=ju(s);return i.jsxs("li",{className:"flex items-start gap-2",children:[a?i.jsx(sa,{className:"h-3.5 w-3.5 text-green-500 dark:text-green-400 mt-0.5 flex-shrink-0"}):i.jsx(ia,{className:"h-3.5 w-3.5 text-sidebar-foreground/30 mt-0.5 flex-shrink-0"}),i.jsxs(mo,{children:[i.jsx(ho,{asChild:!0,children:i.jsx("span",{className:a?"text-xs text-sidebar-foreground cursor-help":"text-xs text-sidebar-foreground/50 line-through cursor-help",children:c.title})}),i.jsx(po,{side:"right",className:"max-w-xs text-xs",children:c.description})]})]},s)})})})})]})})]})]})},Wf=({projectId:e,className:t,additionalTabs:n=[],defaultActiveTab:r,headerButton:o})=>{const s={id:"settings",icon:pa,title:i.jsx(T,{id:"settings.tab.title",message:"Settings for display and notifications"}),content:i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"border-b border-sidebar-border p-4",children:[i.jsx("h2",{className:"font-semibold text-lg",children:i.jsx(T,{id:"settings.title",message:"Settings"})}),i.jsx("p",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(T,{id:"settings.description",message:"Display and behavior preferences"})})]}),i.jsx(l.Suspense,{fallback:i.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:i.jsx("div",{className:"text-sm text-sidebar-foreground/70",children:i.jsx(T,{id:"settings.loading",message:"Loading settings..."})})}),children:i.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(T,{id:"settings.section.session_display",message:"Session Display"})}),i.jsx(wu,{openingProjectId:e??""})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(T,{id:"settings.section.notifications",message:"Notifications"})}),i.jsx(pu,{})]})]})})]})},a={id:"system-info",icon:ua,title:i.jsx(T,{id:"settings.section.system_info",message:"System Information"}),content:i.jsx(l.Suspense,{fallback:i.jsx(or,{}),children:i.jsx(Ou,{})})},c=[...n,s,a],[u,d]=l.useState(r??c[c.length-1]?.id??"settings"),[f,m]=l.useState(!!r),g=v=>{u===v&&f?m(!1):(d(v),m(!0))},p=c.find(v=>v.id===u)?.content;return i.jsxs("div",{className:q("h-full border-r border-sidebar-border transition-all duration-300 ease-in-out flex bg-sidebar text-sidebar-foreground",f?"w-72 lg:w-80":"w-12",t),children:[i.jsx("div",{className:"w-12 flex flex-col border-r border-sidebar-border bg-sidebar/50",children:i.jsxs(kn,{children:[o&&i.jsx("div",{className:"border-b border-sidebar-border",children:o}),i.jsx("div",{className:"flex flex-col p-2 space-y-1",children:c.map(v=>{const h=v.icon;return i.jsxs(mo,{children:[i.jsx(ho,{asChild:!0,children:i.jsx("button",{type:"button",onClick:()=>g(v.id),className:q("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",u===v.id&&f?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),"data-testid":`${v.id}-tab-button`,children:i.jsx(h,{className:"w-4 h-4"})})}),i.jsx(po,{side:"right",children:i.jsx("p",{children:v.title})})]},v.id)})})]})}),f&&i.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:i.jsx(l.Suspense,{fallback:i.jsx(or,{}),children:p})})]})},ps=6048e5,Mu=864e5,xr=Symbol.for("constructDateFrom");function Pe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&xr in e?e[xr](t):e instanceof Date?new e.constructor(t):new Date(t)}function ae(e,t){return Pe(t||e,e)}let ku={};function zt(){return ku}function ut(e,t){const n=zt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ae(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Nt(e,t){return ut(e,{...t,weekStartsOn:1})}function gs(e,t){const n=ae(e,t?.in),r=n.getFullYear(),o=Pe(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Nt(o),a=Pe(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Nt(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function yr(e){const t=ae(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Au(e,...t){const n=Pe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function wr(e,t){const n=ae(e,t?.in);return n.setHours(0,0,0,0),n}function _u(e,t,n){const[r,o]=Au(n?.in,e,t),s=wr(r),a=wr(o),c=+s-yr(s),u=+a-yr(a);return Math.round((c-u)/Mu)}function Du(e,t){const n=gs(e,t),r=Pe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Nt(r)}function Iu(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lu(e){return!(!Iu(e)&&typeof e!="number"||isNaN(+ae(e)))}function Fu(e,t){const n=ae(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Wu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$u=(e,t,n)=>{let r;const o=Wu[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ue(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Bu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yu={date:Ue({formats:Bu,defaultWidth:"full"}),time:Ue({formats:Hu,defaultWidth:"full"}),dateTime:Ue({formats:Vu,defaultWidth:"full"})},zu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Uu=(e,t,n,r)=>zu[e];function le(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):a;o=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const qu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ku={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Qu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ju={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zu=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ed={ordinalNumber:Zu,era:le({values:qu,defaultWidth:"wide"}),quarter:le({values:Xu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:le({values:Gu,defaultWidth:"wide"}),day:le({values:Ku,defaultWidth:"wide"}),dayPeriod:le({values:Qu,defaultWidth:"wide",formattingValues:Ju,defaultFormattingWidth:"wide"})};function ue(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?nd(c,m=>m.test(a)):td(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(a.length);return{value:d,rest:f}}}function td(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nd(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function vs(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(o.length);return{value:a,rest:c}}}const rd=/^(\d+)(th|st|nd|rd)?/i,od=/\d+/i,sd={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ad={any:[/^b/i,/^(a|c)/i]},id={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cd={any:[/1/i,/2/i,/3/i,/4/i]},ld={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ud={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},dd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},fd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},md={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pd={ordinalNumber:vs({matchPattern:rd,parsePattern:od,valueCallback:e=>parseInt(e,10)}),era:ue({matchPatterns:sd,defaultMatchWidth:"wide",parsePatterns:ad,defaultParseWidth:"any"}),quarter:ue({matchPatterns:id,defaultMatchWidth:"wide",parsePatterns:cd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ue({matchPatterns:ld,defaultMatchWidth:"wide",parsePatterns:ud,defaultParseWidth:"any"}),day:ue({matchPatterns:dd,defaultMatchWidth:"wide",parsePatterns:fd,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:md,defaultMatchWidth:"any",parsePatterns:hd,defaultParseWidth:"any"})},wn={code:"en-US",formatDistance:$u,formatLong:Yu,formatRelative:Uu,localize:ed,match:pd,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gd(e,t){const n=ae(e,t?.in);return _u(n,Fu(n))+1}function vd(e,t){const n=ae(e,t?.in),r=+Nt(n)-+Du(n);return Math.round(r/ps)+1}function xs(e,t){const n=ae(e,t?.in),r=n.getFullYear(),o=zt(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Pe(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const c=ut(a,t),u=Pe(t?.in||e,0);u.setFullYear(r,0,s),u.setHours(0,0,0,0);const d=ut(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function xd(e,t){const n=zt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=xs(e,t),s=Pe(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),ut(s,t)}function yd(e,t){const n=ae(e,t?.in),r=+ut(n,t)-+xd(n,t);return Math.round(r/ps)+1}function L(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xe={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return L(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):L(n+1,2)},d(e,t){return L(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return L(e.getHours()%12||12,t.length)},H(e,t){return L(e.getHours(),t.length)},m(e,t){return L(e.getMinutes(),t.length)},s(e,t){return L(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return L(o,t.length)}},Ve={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},br={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return xe.y(e,t)},Y:function(e,t,n,r){const o=xs(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return L(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):L(s,t.length)},R:function(e,t){const n=gs(e);return L(n,t.length)},u:function(e,t){const n=e.getFullYear();return L(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return L(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return L(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return xe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return L(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=yd(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):L(o,t.length)},I:function(e,t,n){const r=vd(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):L(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xe.d(e,t)},D:function(e,t,n){const r=gd(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):L(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return L(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return L(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return L(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Ve.noon:r===0?o=Ve.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Ve.evening:r>=12?o=Ve.afternoon:r>=4?o=Ve.morning:o=Ve.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return xe.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xe.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):L(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):L(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xe.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xe.s(e,t)},S:function(e,t){return xe.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Sr(r);case"XXXX":case"XX":return ke(r);case"XXXXX":case"XXX":default:return ke(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Sr(r);case"xxxx":case"xx":return ke(r);case"xxxxx":case"xxx":default:return ke(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Cr(r,":");case"OOOO":default:return"GMT"+ke(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Cr(r,":");case"zzzz":default:return"GMT"+ke(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return L(r,t.length)},T:function(e,t,n){return L(+e,t.length)}};function Cr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+L(s,2)}function Sr(e,t){return e%60===0?(e>0?"-":"+")+L(Math.abs(e)/60,2):ke(e,t)}function ke(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=L(Math.trunc(r/60),2),s=L(r%60,2);return n+o+t+s}const Pr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ys=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},wd=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Pr(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Pr(r,t)).replace("{{time}}",ys(o,t))},bd={p:ys,P:wd},Cd=/^D+$/,Sd=/^Y+$/,Pd=["D","DD","YY","YYYY"];function Ed(e){return Cd.test(e)}function Td(e){return Sd.test(e)}function Nd(e,t,n){const r=Rd(e,t,n);if(console.warn(r),Pd.includes(e))throw new RangeError(r)}function Rd(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const jd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Od=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Md=/^'([^]*?)'?$/,kd=/''/g,Ad=/[a-zA-Z]/;function _d(e,t,n){const r=zt(),o=n?.locale??r.locale??wn,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=ae(e,n?.in);if(!Lu(c))throw new RangeError("Invalid time value");let u=t.match(Od).map(f=>{const m=f[0];if(m==="p"||m==="P"){const g=bd[m];return g(f,o.formatLong)}return f}).join("").match(jd).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const m=f[0];if(m==="'")return{isToken:!1,value:Dd(f)};if(br[m])return{isToken:!0,value:f};if(m.match(Ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(u=o.localize.preprocessor(c,u));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return u.map(f=>{if(!f.isToken)return f.value;const m=f.value;(!n?.useAdditionalWeekYearTokens&&Td(m)||!n?.useAdditionalDayOfYearTokens&&Ed(m))&&Nd(m,t,String(e));const g=br[m[0]];return g(c,m,o.localize,d)}).join("")}function Dd(e){const t=e.match(Md);return t?t[1].replace(kd,"'"):e}const Id={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Ld=(e,t,n)=>{n=n||{};let r;const o=Id[e];return typeof o=="string"?r=o:t===1?n.addSuffix&&o.oneWithSuffix?r=o.oneWithSuffix:r=o.one:n.addSuffix&&o.otherWithSuffix?r=o.otherWithSuffix.replace("{{count}}",String(t)):r=o.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"後":r+"前":r},Fd={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},Wd={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},$d={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Bd={date:Ue({formats:Fd,defaultWidth:"full"}),time:Ue({formats:Wd,defaultWidth:"full"}),dateTime:Ue({formats:$d,defaultWidth:"full"})},Hd={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Vd=(e,t,n,r)=>Hd[e],Yd={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},zd={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Ud={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},qd={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Xd={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Gd={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Kd=(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"year":return`${n}年`;case"quarter":return`第${n}四半期`;case"month":return`${n}月`;case"week":return`第${n}週`;case"date":return`${n}日`;case"hour":return`${n}時`;case"minute":return`${n}分`;case"second":return`${n}秒`;default:return`${n}`}},Qd={ordinalNumber:Kd,era:le({values:Yd,defaultWidth:"wide"}),quarter:le({values:zd,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:le({values:Ud,defaultWidth:"wide"}),day:le({values:qd,defaultWidth:"wide"}),dayPeriod:le({values:Xd,defaultWidth:"wide",formattingValues:Gd,defaultFormattingWidth:"wide"})},Jd=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,Zd=/\d+/i,ef={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},tf={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},nf={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},rf={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},of={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},sf={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},af={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},cf={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},lf={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},uf={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},df={ordinalNumber:vs({matchPattern:Jd,parsePattern:Zd,valueCallback:function(e){return parseInt(e,10)}}),era:ue({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:tf,defaultParseWidth:"any"}),quarter:ue({matchPatterns:nf,defaultMatchWidth:"wide",parsePatterns:rf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ue({matchPatterns:of,defaultMatchWidth:"wide",parsePatterns:sf,defaultParseWidth:"any"}),day:ue({matchPatterns:af,defaultMatchWidth:"wide",parsePatterns:cf,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:lf,defaultMatchWidth:"any",parsePatterns:uf,defaultParseWidth:"any"})},ff={code:"ja",formatDistance:Ld,formatLong:Bd,formatRelative:Vd,localize:Qd,match:df,options:{weekStartsOn:0,firstWeekContainsDate:1}},mf=e=>{switch(e){case"ja":return ff;case"en":return wn;default:return wn}},$f=(e,t)=>{const{locale:n="en",target:r="time"}=t,o=typeof e=="string"?new Date(e):e,s=mf(n),c=((u,d)=>{if(u==="ja")switch(d){case"month":return"yyyy年M月";case"day":return"yyyy年M月d日";case"time":return"yyyy年M月d日 HH:mm"}else if(u==="en")switch(d){case"month":return"MM/yyyy";case"day":return"MM/dd/yyyy";case"time":return"MM/dd/yyyy HH:mm"}switch(d){case"month":return"yyyy-MM";case"day":return"yyyy-MM-dd";case"time":return"yyyy-MM-dd HH:mm"}})(n,r);return _d(o,c,{locale:s})};var Ut="Dialog",[ws]=Fe(Ut),[hf,ie]=ws(Ut),bs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=l.useRef(null),u=l.useRef(null),[d,f]=Xe({prop:r,defaultProp:o??!1,onChange:s,caller:Ut});return i.jsx(hf,{scope:t,triggerRef:c,contentRef:u,contentId:we(),titleId:we(),descriptionId:we(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:a,children:n})};bs.displayName=Ut;var Cs="DialogTrigger",Ss=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ie(Cs,n),s=W(t,o.triggerRef);return i.jsx(k.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vn(o.open),...r,ref:s,onClick:M(e.onClick,o.onOpenToggle)})});Ss.displayName=Cs;var Bn="DialogPortal",[pf,Ps]=ws(Bn,{forceMount:void 0}),Es=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ie(Bn,t);return i.jsx(pf,{scope:t,forceMount:n,children:l.Children.map(r,a=>i.jsx(Ee,{present:n||s.open,children:i.jsx(It,{asChild:!0,container:o,children:a})}))})};Es.displayName=Bn;var Rt="DialogOverlay",Ts=l.forwardRef((e,t)=>{const n=Ps(Rt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ie(Rt,e.__scopeDialog);return s.modal?i.jsx(Ee,{present:r||s.open,children:i.jsx(vf,{...o,ref:t})}):null});Ts.displayName=Rt;var gf=at("DialogOverlay.RemoveScroll"),vf=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ie(Rt,n);return i.jsx(_n,{as:gf,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(k.div,{"data-state":Vn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Le="DialogContent",Ns=l.forwardRef((e,t)=>{const n=Ps(Le,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ie(Le,e.__scopeDialog);return i.jsx(Ee,{present:r||s.open,children:s.modal?i.jsx(xf,{...o,ref:t}):i.jsx(yf,{...o,ref:t})})});Ns.displayName=Le;var xf=l.forwardRef((e,t)=>{const n=ie(Le,e.__scopeDialog),r=l.useRef(null),o=W(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return wo(s)},[]),i.jsx(Rs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:M(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:M(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:M(e.onFocusOutside,s=>s.preventDefault())})}),yf=l.forwardRef((e,t)=>{const n=ie(Le,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return i.jsx(Rs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Rs=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=ie(Le,n),u=l.useRef(null),d=W(t,u);return go(),i.jsxs(i.Fragment,{children:[i.jsx(An,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Ot,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Vn(c.open),...a,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(wf,{titleId:c.titleId}),i.jsx(Cf,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Hn="DialogTitle",js=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ie(Hn,n);return i.jsx(k.h2,{id:o.titleId,...r,ref:t})});js.displayName=Hn;var Os="DialogDescription",Ms=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ie(Os,n);return i.jsx(k.p,{id:o.descriptionId,...r,ref:t})});Ms.displayName=Os;var ks="DialogClose",As=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ie(ks,n);return i.jsx(k.button,{type:"button",...r,ref:t,onClick:M(e.onClick,()=>o.onOpenChange(!1))})});As.displayName=ks;function Vn(e){return e?"open":"closed"}var _s="DialogTitleWarning",[Bf,Ds]=xa(_s,{contentName:Le,titleName:Hn,docsSlug:"dialog"}),wf=({titleId:e})=>{const t=Ds(_s),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
102
-
103
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
104
-
105
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bf="DialogDescriptionWarning",Cf=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ds(bf).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Sf=bs,Pf=Ss,Ef=Es,Tf=Ts,Nf=Ns,Rf=js,jf=Ms,Of=As;function Hf({...e}){return i.jsx(Sf,{"data-slot":"dialog",...e})}function Vf({...e}){return i.jsx(Pf,{"data-slot":"dialog-trigger",...e})}function Mf({...e}){return i.jsx(Ef,{"data-slot":"dialog-portal",...e})}function kf({className:e,...t}){return i.jsx(Tf,{"data-slot":"dialog-overlay",className:q("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Yf({className:e,children:t,showCloseButton:n=!0,...r}){return i.jsxs(Mf,{"data-slot":"dialog-portal",children:[i.jsx(kf,{}),i.jsxs(Nf,{"data-slot":"dialog-content",className:q("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200",e),...r,children:[t,n&&i.jsxs(Of,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[i.jsx(va,{}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function zf({className:e,...t}){return i.jsx("div",{"data-slot":"dialog-header",className:q("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Uf({className:e,...t}){return i.jsx("div",{"data-slot":"dialog-footer",className:q("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function qf({className:e,...t}){return i.jsx(Rf,{"data-slot":"dialog-title",className:q("text-lg leading-none font-semibold",e),...t})}function Xf({className:e,...t}){return i.jsx(jf,{"data-slot":"dialog-description",className:q("text-muted-foreground text-sm",e),...t})}const Af=l.forwardRef(({className:e,children:t,...n},r)=>i.jsx("label",{ref:r,className:q("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...n,children:t}));Af.displayName="Label";export{po as A,vr as B,gr as C,Hf as D,pa as E,Df as F,Wf as G,Ou as H,ua as I,wu as J,Af as L,pu as N,If as P,nt as S,kn as T,va as X,ta as a,Vf as b,Yf as c,zf as d,qf as e,$f as f,Xf as g,Uf as h,fa as i,Tu as j,Nu as k,bn as l,Ru as m,ts as n,ra as o,fu as p,ot as q,rt as r,Ff as s,st as t,Lf as u,J as v,Tr as w,or as x,mo as y,ho as z};
@@ -1 +0,0 @@
1
- const e=JSON.parse('{"Available commands":["Available commands"],"Available files and directories":["Available files and directories"],"Close sidebar":["Close sidebar"],"Compare from":["Compare from"],"Compare to":["Compare to"],"Failed to commit":["Failed to commit"],"Failed to commit and push":["Failed to commit and push"],"Failed to push":["Failed to push"],"Message input with completion support":["Message input with completion support"],"Reload MCP servers":["Reload MCP servers"],"Retry Push":["Retry Push"],"Select enter key behavior":["Select enter key behavior"],"Select language":["Select language"],"Select permission mode":["Select permission mode"],"Select theme":["Select theme"],"Type your message here... (Start with / for commands, @ for files, Command+Enter to send)":["Type your message here... (Start with / for commands, @ for files, Command+Enter to send)"],"Type your message here... (Start with / for commands, @ for files, Enter to send)":["Type your message here... (Start with / for commands, @ for files, Enter to send)"],"Type your message here... (Start with / for commands, @ for files, Shift+Enter to send)":["Type your message here... (Start with / for commands, @ for files, Shift+Enter to send)"],"Type your message... (Start with / for commands, @ for files, Command+Enter to send)":["Type your message... (Start with / for commands, @ for files, Command+Enter to send)"],"Type your message... (Start with / for commands, @ for files, Enter to send)":["Type your message... (Start with / for commands, @ for files, Enter to send)"],"Type your message... (Start with / for commands, @ for files, Shift+Enter to send)":["Type your message... (Start with / for commands, @ for files, Shift+Enter to send)"],"Uncommitted changes":["Uncommitted changes"],"assistant.thinking":["Thinking"],"assistant.tool.input_parameters":["Input Parameters"],"assistant.tool.message_count":[["count"]," messages"],"assistant.tool.result":["Tool Result"],"assistant.tool.task_id":["Task ID"],"assistant.tool.tool_id":["Tool ID"],"assistant.tool.view_task":["View Task"],"assistant.tool.view_task_details":["View Task"],"chat.attach_file":["Attach"],"chat.autocomplete.active":["Autocomplete active"],"chat.button.start":["Start Chat"],"chat.error.send_failed":["Failed to send message. Please try again."],"chat.modal.title":["Start New Chat"],"chat.placeholder.continue.command_enter":["Type your message... (Start with / for commands, @ for files, Command+Enter to send, or schedule for later)"],"chat.placeholder.continue.enter":["Type your message... (Start with / for commands, @ for files, Enter to send, or schedule for later)"],"chat.placeholder.continue.shift_enter":["Type your message... (Start with / for commands, @ for files, Shift+Enter to send, or schedule for later)"],"chat.placeholder.resume.command_enter":["Type your message... (Start with / for commands, @ for files, Command+Enter to send, or schedule for later)"],"chat.placeholder.resume.enter":["Type your message... (Start with / for commands, @ for files, Enter to send, or schedule for later)"],"chat.placeholder.resume.shift_enter":["Type your message... (Start with / for commands, @ for files, Shift+Enter to send, or schedule for later)"],"chat.resume":["Resume"],"chat.scheduled_send.failed":["Failed to schedule message"],"chat.scheduled_send.success":["Message scheduled successfully"],"chat.scheduled_send.success_description":["You can view and manage it in the Scheduler tab"],"chat.send":["Send"],"chat.send_mode.immediate":["Send now"],"chat.send_mode.label":["Send mode"],"chat.send_mode.scheduled":["Schedule send"],"chat.send_mode.scheduled_time":["Scheduled time"],"chat.status.processing":["Processing..."],"common.action.cancel":["Cancel"],"common.cancel":["Cancel"],"common.create":["Create"],"common.error":["Error"],"common.loading":["Loading..."],"common.saving":["Saving..."],"common.update":["Update"],"conversation.error.raw_content":["Raw Content:"],"conversation.error.report_issue":["Report this issue"],"conversation.error.schema":["Schema Error"],"conversation.error.schema_validation":["Schema Validation Error"],"conversation.error.schema_validation.description":["This conversation entry failed to parse correctly. This might indicate a format change or parsing issue."],"cron_builder.cron_expression":["Cron Expression"],"cron_builder.custom":["Custom"],"cron_builder.daily":["Daily"],"cron_builder.day_of_week":["Day of Week"],"cron_builder.expression":["Expression"],"cron_builder.friday":["Friday"],"cron_builder.hour":["Hour (0-23)"],"cron_builder.hourly":["Hourly"],"cron_builder.minute":["Minute (0-59)"],"cron_builder.monday":["Monday"],"cron_builder.preview":["Preview"],"cron_builder.saturday":["Saturday"],"cron_builder.schedule_type":["Schedule Type"],"cron_builder.sunday":["Sunday"],"cron_builder.thursday":["Thursday"],"cron_builder.tuesday":["Tuesday"],"cron_builder.wednesday":["Wednesday"],"cron_builder.weekly":["Weekly"],"diff.commit":["Commit"],"diff.commit.changes":["Commit Changes"],"diff.commit.message":["Commit message"],"diff.commit.push":["Commit & Push"],"diff.committing":["Committing..."],"diff.committing.pushing":["Committing & Pushing..."],"diff.deselect.all":["Deselect All"],"diff.enter.message":["Enter a commit message"],"diff.files":["files"],"diff.files.changed":["files changed"],"diff.loading":["Loading diff..."],"diff.push":["Push"],"diff.pushing":["Pushing..."],"diff.select.all":["Select All"],"diff.select.file":["Select at least one file"],"directory_picker.current":["Current:"],"directory_picker.loading":["Loading..."],"directory_picker.no_directories":["No directories found"],"directory_picker.select":["Select This Directory"],"directory_picker.show_hidden":["Show hidden files"],"mcp.error.load_failed":["Failed to load MCP servers: ",["error"]],"mcp.no.servers":["No MCP servers found"],"mcp.title":["MCP Servers"],"notfound.button.go_home":["Go to Home"],"notfound.default.description":["The page you are looking for does not exist or has been moved."],"notfound.default.title":["Page Not Found"],"notfound.project.description":["The project you are looking for does not exist."],"notfound.project.title":["Project Not Found"],"notfound.session.description":["The session you are looking for does not exist."],"notfound.session.title":["Session Not Found"],"notification.beep":["Beep"],"notification.chime":["Chime"],"notification.description":["Select a sound to play when a task completes"],"notification.none":["None"],"notification.ping":["Ping"],"notification.pop":["Pop"],"notification.test":["Test"],"project.error.back_to_projects":["Back to Projects"],"project.error.description":["We encountered an error while loading this project"],"project.error.details_title":["Error Details"],"project.error.error_id":["Error ID:"],"project.error.title":["Failed to load project"],"project.error.try_again":["Try Again"],"project.new":["New Project"],"project.not_found.back_to_projects":["Back to Projects"],"project.not_found.description":["The project you are looking for does not exist or has been removed"],"project.not_found.title":["Project Not Found"],"project.setup.action.setting_up":["Setting up..."],"project.setup.action.setup":["Setup Project"],"project.setup.description":["Navigate to a directory to set up as a Claude Code project. If CLAUDE.md exists, the project will be described. Otherwise, <0>/init</0> will be run to initialize it."],"project.setup.selected_directory":["Selected directory:"],"project.setup.title":["Setup New Project"],"project_list.last_modified":["Last modified:"],"project_list.messages":["Messages:"],"project_list.no_projects.description":["No Claude Code projects found in your ~/.claude/projects directory. Start a conversation with Claude Code to set up your first project."],"project_list.no_projects.title":["No projects found"],"project_list.view_conversations":["View Conversations"],"projects.page.description":["Browse your Claude Code conversation history and project interactions"],"projects.page.loading":["Loading projects..."],"projects.page.title":["Your Projects"],"scheduler.dialog.description":["Set up a scheduled job to send messages to Claude Code"],"scheduler.dialog.title.create":["Create Scheduled Job"],"scheduler.dialog.title.edit":["Edit Scheduled Job"],"scheduler.form.concurrency_policy":["Concurrency Policy"],"scheduler.form.concurrency_policy.run":["Run even if running"],"scheduler.form.concurrency_policy.skip":["Skip if running"],"scheduler.form.enabled":["Enabled"],"scheduler.form.enabled.description":["Enable or disable this scheduled job"],"scheduler.form.message":["Message Content"],"scheduler.form.message.aria_label":["Message input with completion support (/ for commands, @ for files)"],"scheduler.form.message.hint":["/ for commands, @ for files"],"scheduler.form.message.placeholder":["Type message to send to Claude Code... (/ for commands, @ for files)"],"scheduler.form.name":["Job Name"],"scheduler.form.name.placeholder":["e.g., Daily Report"],"scheduler.form.reserved_time":["Scheduled Date and Time"],"scheduler.form.reserved_time.hint":["Will run once at the specified time, then be automatically deleted"],"scheduler.form.schedule_type":["Schedule Type"],"scheduler.form.schedule_type.cron":["Recurring (Cron)"],"scheduler.form.schedule_type.reserved":["One-time"],"session.conversation.abort":["Abort"],"session.conversation.in.progress":["Conversation is in progress..."],"session.conversation.paused":["Conversation is paused..."],"session.processing":["Claude Code is processing..."],"session.status.paused":["Paused"],"session.status.running":["Running"],"sessions.load.more":["Load More"],"sessions.new":["New"],"sessions.title":["Sessions"],"sessions.total":["total"],"settings.description":["Display and behavior preferences"],"settings.input.enter_key_behavior":["Enter Key Behavior"],"settings.input.enter_key_behavior.command_enter":["Command+Enter to send"],"settings.input.enter_key_behavior.description":["Choose how the Enter key behaves in message input"],"settings.input.enter_key_behavior.enter":["Enter to send"],"settings.input.enter_key_behavior.shift_enter":["Shift+Enter to send (default)"],"settings.loading":["Loading settings..."],"settings.locale":["Language"],"settings.locale.description":["Choose your preferred language"],"settings.locale.en":["English"],"settings.locale.ja":["日本語"],"settings.notifications":["Notifications"],"settings.permission.mode":["Permission Mode"],"settings.permission.mode.accept_edits":["Accept Edits (Auto-approve file edits)"],"settings.permission.mode.bypass_permissions":["Bypass Permissions (No prompts)"],"settings.permission.mode.default":["Default (Ask permission)"],"settings.permission.mode.description":["Control how Claude Code handles permission requests for file operations"],"settings.permission.mode.plan":["Plan Mode (Planning only)"],"settings.permission.mode.unavailable":["This feature is not available in your Claude Code version. All tools will be automatically approved."],"settings.section.notifications":["Notifications"],"settings.section.session_display":["Session Display"],"settings.section.system_info":["System Information"],"settings.session.display":["Session Display"],"settings.session.hide_no_user_message":["Hide sessions without user messages"],"settings.session.hide_no_user_message.description":["Only show sessions that contain user commands or messages"],"settings.session.unify_same_title":["Unify sessions with same title"],"settings.session.unify_same_title.description":["Show only the latest session when multiple sessions have the same title"],"settings.tab.title":["Settings for display and notifications"],"settings.theme":["Theme"],"settings.theme.dark":["Dark"],"settings.theme.description":["Choose your preferred color theme"],"settings.theme.light":["Light"],"settings.theme.system":["System"],"settings.title":["Settings"],"sidebar.back.to.projects":["Back to projects"],"sidebar.show.mcp.settings":["Show MCP server settings"],"sidebar.show.scheduler.jobs":["Show scheduler jobs"],"sidebar.show.session.list":["Show session list"],"system.info.tab.title":["Show system information"],"system_info.available_features":["Available Features"],"system_info.claude_code":["Claude Code"],"system_info.description":["Version and feature information"],"system_info.executable_path":["Executable"],"system_info.feature.agent_sdk.description":["Uses @anthropic-ai/claude-agent-sdk instead of @anthropic-ai/claude-code for enhanced capabilities"],"system_info.feature.agent_sdk.title":["Enhanced Agent Mode"],"system_info.feature.tool_approval.description":["Allows you to approve or reject tool executions before Claude runs them, giving you full control over actions"],"system_info.feature.tool_approval.title":["Tool Execution Approval"],"system_info.feature.unknown.description":["Feature information not available"],"system_info.feature.uuid_on_sdk_message.description":["Adds unique identifiers to SDK messages for better tracking (v1.0.86+)"],"system_info.feature.uuid_on_sdk_message.title":["Message UUID Support"],"system_info.loading":["Loading system information..."],"system_info.title":["System Information"],"system_info.unknown":["Unknown"],"system_info.version_label":["Version"],"system_info.viewer_version":["Claude Code Viewer"],"user.content.document.pdf":["PDF Document"],"user.content.document.text":["Text Document"],"user.content.image":["Attached Image"],"user.content.image.description":["Image attached by user"],"user.content.unsupported_document":["Unsupported Document"],"user.content.unsupported_document.description":["Document type not supported for display"],"user.content.unsupported_media":["Unsupported Media"],"user.content.unsupported_media.description":["Media type not supported for display"]}');export{e as messages};
@@ -1 +0,0 @@
1
- const e=JSON.parse('{"Available commands":["利用可能なコマンド"],"Available files and directories":["利用可能なファイルとディレクトリ"],"Close sidebar":["サイドバーを閉じる"],"Compare from":["比較元"],"Compare to":["比較先"],"Failed to commit":["コミットに失敗しました"],"Failed to commit and push":["コミットとプッシュに失敗しました"],"Failed to push":["プッシュに失敗しました"],"Message input with completion support":["補完機能付きメッセージ入力"],"Reload MCP servers":["MCPサーバーを再読み込み"],"Retry Push":["プッシュを再試行"],"Select enter key behavior":["Enterキーの動作を選択"],"Select language":["言語を選択"],"Select permission mode":["権限モードを選択"],"Select theme":["テーマを選択"],"Type your message here... (Start with / for commands, @ for files, Command+Enter to send)":["ここにメッセージを入力... (/でコマンド、@でファイル、Command+Enterで送信)"],"Type your message here... (Start with / for commands, @ for files, Enter to send)":["ここにメッセージを入力... (/でコマンド、@でファイル、Enterで送信)"],"Type your message here... (Start with / for commands, @ for files, Shift+Enter to send)":["ここにメッセージを入力... (/でコマンド、@でファイル、Shift+Enterで送信)"],"Type your message... (Start with / for commands, @ for files, Command+Enter to send)":["メッセージを入力... (/でコマンド、@でファイル、Command+Enterで送信)"],"Type your message... (Start with / for commands, @ for files, Enter to send)":["メッセージを入力... (/でコマンド、@でファイル、Enterで送信)"],"Type your message... (Start with / for commands, @ for files, Shift+Enter to send)":["メッセージを入力... (/でコマンド、@でファイル、Shift+Enterで送信)"],"Uncommitted changes":["未コミットの変更"],"assistant.thinking":["思考中"],"assistant.tool.input_parameters":["入力パラメータ"],"assistant.tool.message_count":[["count"],"件のメッセージ"],"assistant.tool.result":["ツール実行結果"],"assistant.tool.task_id":["タスクID"],"assistant.tool.tool_id":["ツールID"],"assistant.tool.view_task":["タスクを表示"],"assistant.tool.view_task_details":["タスクを確認"],"chat.attach_file":["添付"],"chat.autocomplete.active":["オートコンプリート有効"],"chat.button.start":["チャット開始"],"chat.error.send_failed":["メッセージの送信に失敗しました。もう一度お試しください。"],"chat.modal.title":["新しいチャットを開始"],"chat.placeholder.continue.command_enter":["メッセージを入力... (/でコマンド、@でファイル、Command+Enterで送信、または予約送信)"],"chat.placeholder.continue.enter":["メッセージを入力... (/でコマンド、@でファイル、Enterで送信、または予約送信)"],"chat.placeholder.continue.shift_enter":["メッセージを入力... (/でコマンド、@でファイル、Shift+Enterで送信、または予約送信)"],"chat.placeholder.resume.command_enter":["メッセージを入力... (/でコマンド、@でファイル、Command+Enterで送信、または予約送信)"],"chat.placeholder.resume.enter":["メッセージを入力... (/でコマンド、@でファイル、Enterで送信、または予約送信)"],"chat.placeholder.resume.shift_enter":["メッセージを入力... (/でコマンド、@でファイル、Shift+Enterで送信、または予約送信)"],"chat.resume":["再開"],"chat.scheduled_send.failed":["メッセージの予約に失敗しました"],"chat.scheduled_send.success":["メッセージを予約しました"],"chat.scheduled_send.success_description":["スケジューラタブで確認・管理できます"],"chat.send":["送信"],"chat.send_mode.immediate":["今すぐ送信"],"chat.send_mode.label":["送信モード"],"chat.send_mode.scheduled":["予約送信"],"chat.send_mode.scheduled_time":["送信予定時刻"],"chat.status.processing":["処理中..."],"common.action.cancel":["キャンセル"],"common.cancel":["キャンセル"],"common.create":["作成"],"common.error":["エラー"],"common.loading":["読み込み中..."],"common.saving":["保存中..."],"common.update":["更新"],"conversation.error.raw_content":["生データ:"],"conversation.error.report_issue":["この問題を報告"],"conversation.error.schema":["スキーマエラー"],"conversation.error.schema_validation":["スキーマ検証エラー"],"conversation.error.schema_validation.description":["この会話エントリの解析に失敗しました。フォーマットの変更または解析の問題が考えられます。"],"cron_builder.cron_expression":["Cron式"],"cron_builder.custom":["カスタム"],"cron_builder.daily":["毎日"],"cron_builder.day_of_week":["曜日"],"cron_builder.expression":["Cron式"],"cron_builder.friday":["金曜日"],"cron_builder.hour":["時 (0-23)"],"cron_builder.hourly":["毎時"],"cron_builder.minute":["分 (0-59)"],"cron_builder.monday":["月曜日"],"cron_builder.preview":["プレビュー"],"cron_builder.saturday":["土曜日"],"cron_builder.schedule_type":["スケジュールタイプ"],"cron_builder.sunday":["日曜日"],"cron_builder.thursday":["木曜日"],"cron_builder.tuesday":["火曜日"],"cron_builder.wednesday":["水曜日"],"cron_builder.weekly":["毎週"],"diff.commit":["コミット"],"diff.commit.changes":["変更をコミット"],"diff.commit.message":["コミットメッセージ"],"diff.commit.push":["コミット&プッシュ"],"diff.committing":["コミット中..."],"diff.committing.pushing":["コミット&プッシュ中..."],"diff.deselect.all":["すべて選択解除"],"diff.enter.message":["コミットメッセージを入力"],"diff.files":["ファイル"],"diff.files.changed":["ファイルが変更されました"],"diff.loading":["差分を読み込み中..."],"diff.push":["プッシュ"],"diff.pushing":["プッシュ中..."],"diff.select.all":["すべて選択"],"diff.select.file":["少なくとも1つのファイルを選択してください"],"directory_picker.current":["現在:"],"directory_picker.loading":["読み込み中..."],"directory_picker.no_directories":["ディレクトリが見つかりません"],"directory_picker.select":["このディレクトリを選択"],"directory_picker.show_hidden":["隠しファイルを表示"],"mcp.error.load_failed":["MCPサーバーの読み込みに失敗しました: ",["error"]],"mcp.no.servers":["MCPサーバーが見つかりません"],"mcp.title":["MCPサーバー"],"notfound.button.go_home":["ホームに戻る"],"notfound.default.description":["お探しのページは存在しないか、移動されました。"],"notfound.default.title":["ページが見つかりません"],"notfound.project.description":["お探しのプロジェクトは存在しません。"],"notfound.project.title":["プロジェクトが見つかりません"],"notfound.session.description":["お探しのセッションは存在しません。"],"notfound.session.title":["セッションが見つかりません"],"notification.beep":["ビープ音"],"notification.chime":["チャイム"],"notification.description":["Claude Code のタスクが完了した時に再生する音を選択してください"],"notification.none":["なし"],"notification.ping":["ピン"],"notification.pop":["ポップ"],"notification.test":["テスト"],"project.error.back_to_projects":["プロジェクト一覧に戻る"],"project.error.description":["このプロジェクトの読み込み中にエラーが発生しました"],"project.error.details_title":["エラー詳細"],"project.error.error_id":["エラーID:"],"project.error.title":["プロジェクトの読み込みに失敗しました"],"project.error.try_again":["再試行"],"project.new":["新規プロジェクト"],"project.not_found.back_to_projects":["プロジェクト一覧に戻る"],"project.not_found.description":["お探しのプロジェクトは存在しないか、削除されています"],"project.not_found.title":["プロジェクトが見つかりません"],"project.setup.action.setting_up":["セットアップ中..."],"project.setup.action.setup":["プロジェクトをセットアップ"],"project.setup.description":["Claude Codeプロジェクトとしてセットアップするディレクトリまで移動してください。CLAUDE.mdが存在する場合はプロジェクトを説明し、存在しない場合は<0>/init</0>で初期化します。"],"project.setup.selected_directory":["選択したディレクトリ:"],"project.setup.title":["新規プロジェクトをセットアップ"],"project_list.last_modified":["最終更新:"],"project_list.messages":["メッセージ:"],"project_list.no_projects.description":["~/.claude/projectsディレクトリにClaude Codeプロジェクトが見つかりません。Claude Codeとの会話を開始して、最初のプロジェクトをセットアップしてください。"],"project_list.no_projects.title":["プロジェクトが見つかりません"],"project_list.view_conversations":["会話を表示"],"projects.page.description":["Claude Codeの会話履歴とプロジェクトの操作を閲覧"],"projects.page.loading":["プロジェクトを読み込み中..."],"projects.page.title":["プロジェクト"],"scheduler.dialog.description":["Claude Codeにメッセージを送信するスケジュールジョブを設定します"],"scheduler.dialog.title.create":["スケジュールジョブを作成"],"scheduler.dialog.title.edit":["スケジュールジョブを編集"],"scheduler.form.concurrency_policy":["同時実行ポリシー"],"scheduler.form.concurrency_policy.run":["実行中でも実行する"],"scheduler.form.concurrency_policy.skip":["実行中の場合はスキップ"],"scheduler.form.enabled":["有効化"],"scheduler.form.enabled.description":["このスケジュールジョブを有効または無効にします"],"scheduler.form.message":["メッセージ内容"],"scheduler.form.message.aria_label":["補完機能付きメッセージ入力 (/でコマンド、@でファイル)"],"scheduler.form.message.hint":["/でコマンド補完、@でファイル補完"],"scheduler.form.message.placeholder":["Claude Codeに送信するメッセージを入力... (/でコマンド補完、@でファイル補完)"],"scheduler.form.name":["ジョブ名"],"scheduler.form.name.placeholder":["例: 日次レポート"],"scheduler.form.reserved_time":["実行予定日時"],"scheduler.form.reserved_time.hint":["指定した日時に一度だけ実行されます。実行後は自動的に削除されます"],"scheduler.form.schedule_type":["スケジュールタイプ"],"scheduler.form.schedule_type.cron":["定期実行 (Cron)"],"scheduler.form.schedule_type.reserved":["予約実行"],"session.conversation.abort":["中止"],"session.conversation.in.progress":["会話を進行中..."],"session.conversation.paused":["会話を一時停止中..."],"session.processing":["Claude Codeが処理中..."],"session.status.paused":["一時停止"],"session.status.running":["実行中"],"sessions.load.more":["さらに読み込む"],"sessions.new":["新規"],"sessions.title":["セッション"],"sessions.total":["合計"],"settings.description":["表示と動作の設定"],"settings.input.enter_key_behavior":["Enterキーの動作"],"settings.input.enter_key_behavior.command_enter":["Command+Enterで送信"],"settings.input.enter_key_behavior.description":["メッセージ入力でのEnterキーの動作を選択"],"settings.input.enter_key_behavior.enter":["Enterで送信"],"settings.input.enter_key_behavior.shift_enter":["Shift+Enterで送信(デフォルト)"],"settings.loading":["設定を読み込み中..."],"settings.locale":["言語"],"settings.locale.description":["お好みの言語を選択"],"settings.locale.en":["English"],"settings.locale.ja":["日本語"],"settings.notifications":["通知"],"settings.permission.mode":["権限モード"],"settings.permission.mode.accept_edits":["編集を承認(ファイル編集を自動承認)"],"settings.permission.mode.bypass_permissions":["権限をバイパス(プロンプトなし)"],"settings.permission.mode.default":["デフォルト(権限を確認)"],"settings.permission.mode.description":["ファイル操作の権限リクエストの処理方法を制御"],"settings.permission.mode.plan":["プランモード(計画のみ)"],"settings.permission.mode.unavailable":["お使いのClaude Codeバージョンではこの機能は利用できません。すべてのツールは自動で承認されます。"],"settings.section.notifications":["通知"],"settings.section.session_display":["セッション表示"],"settings.section.system_info":["システム情報"],"settings.session.display":["セッション表示"],"settings.session.hide_no_user_message":["ユーザーメッセージのないセッションを非表示"],"settings.session.hide_no_user_message.description":["ユーザーコマンドまたはメッセージを含むセッションのみを表示"],"settings.session.unify_same_title":["同じタイトルのセッションを統合"],"settings.session.unify_same_title.description":["同じタイトルの複数のセッションがある場合、最新のセッションのみを表示"],"settings.tab.title":["表示と通知の設定"],"settings.theme":["テーマ"],"settings.theme.dark":["ダーク"],"settings.theme.description":["お好みのカラーテーマを選択"],"settings.theme.light":["ライト"],"settings.theme.system":["システム"],"settings.title":["設定"],"sidebar.back.to.projects":["プロジェクト一覧に戻る"],"sidebar.show.mcp.settings":["MCPサーバー設定を表示"],"sidebar.show.scheduler.jobs":["スケジューラジョブを表示"],"sidebar.show.session.list":["セッション一覧を表示"],"system.info.tab.title":["システム情報を表示"],"system_info.available_features":["利用可能機能"],"system_info.claude_code":["Claude Code"],"system_info.description":["バージョンと機能情報"],"system_info.executable_path":["実行ファイル"],"system_info.feature.agent_sdk.description":["@anthropic-ai/claude-code ではなく @anthropic-ai/claude-agent-sdk を利用します"],"system_info.feature.agent_sdk.title":["拡張エージェントモード"],"system_info.feature.tool_approval.description":["Claude がツールを実行する前に承認または拒否でき、アクションを完全にコントロールできます"],"system_info.feature.tool_approval.title":["ツール実行承認"],"system_info.feature.unknown.description":["機能情報は利用できません"],"system_info.feature.uuid_on_sdk_message.description":["SDKメッセージに一意の識別子を追加して追跡を改善します (v1.0.86+)"],"system_info.feature.uuid_on_sdk_message.title":["メッセージUUIDサポート"],"system_info.loading":["システム情報を読み込んでいます..."],"system_info.title":["システム情報"],"system_info.unknown":["不明"],"system_info.version_label":["バージョン"],"system_info.viewer_version":["Claude Code Viewer"],"user.content.document.pdf":["PDF文書"],"user.content.document.text":["テキスト文書"],"user.content.image":["添付画像"],"user.content.image.description":["ユーザーが添付した画像"],"user.content.unsupported_document":["サポートされていない文書"],"user.content.unsupported_document.description":["文書タイプは表示がサポートされていません"],"user.content.unsupported_media":["サポートされていないメディア"],"user.content.unsupported_media.description":["表示がサポートされていないメディア形式です"]}');export{e as messages};