@mesh.ai/rabbit 0.0.50 → 0.0.51
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.
|
@@ -6224,7 +6224,7 @@ const g1 = ee(({ className: e, ...t }, n) => /* @__PURE__ */ H(
|
|
|
6224
6224
|
{
|
|
6225
6225
|
ref: n,
|
|
6226
6226
|
className: Fe(
|
|
6227
|
-
"rabbit-ds z-[1510] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",
|
|
6227
|
+
"rabbit-ds z-[1510] relative rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",
|
|
6228
6228
|
e
|
|
6229
6229
|
),
|
|
6230
6230
|
...t
|
|
@@ -6237,7 +6237,7 @@ const ah = ee(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */
|
|
|
6237
6237
|
ref: r,
|
|
6238
6238
|
sideOffset: t,
|
|
6239
6239
|
className: Fe(
|
|
6240
|
-
"rabbit-ds z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",
|
|
6240
|
+
"rabbit-ds z-[1500] relative rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",
|
|
6241
6241
|
e
|
|
6242
6242
|
),
|
|
6243
6243
|
...n
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
`)},db=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=ge.useMemo(function(){return cb(o)},[o]);return ge.createElement(ub,{styles:fb(i,!t,o,n?"":"!important")})},Ua=!1;if(typeof window<"u")try{var Uo=Object.defineProperty({},"passive",{get:function(){return Ua=!0,!0}});window.addEventListener("test",Uo,Uo),window.removeEventListener("test",Uo,Uo)}catch{Ua=!1}var Kn=Ua?{passive:!1}:!1,pb=function(e){return e.tagName==="TEXTAREA"},tf=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pb(e)&&n[t]==="visible")},hb=function(e){return tf(e,"overflowY")},mb=function(e){return tf(e,"overflowX")},nf=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=rf(e,n);if(r){var o=of(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},gb=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vb=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},rf=function(e,t){return e==="v"?hb(t):mb(t)},of=function(e,t){return e==="v"?gb(t):vb(t)},yb=function(e,t){return e==="h"&&t==="rtl"?-1:1},bb=function(e,t,n,r,o){var i=yb(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,f=a>0,d=0,p=0;do{var g=of(e,s),h=g[0],m=g[1],x=g[2],y=m-x-i*h;(h||y)&&rf(e,s)&&(d+=y,p+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(o&&d===0||!o&&a>d)||!f&&(o&&p===0||!o&&-a>p))&&(c=!0),c},Ho=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},af=function(e){return[e.deltaX,e.deltaY]},sf=function(e){return e&&"current"in e?e.current:e},xb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wb=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},$b=0,Xn=[];function Sb(e){var t=ge.useRef([]),n=ge.useRef([0,0]),r=ge.useRef(),o=ge.useState($b++)[0],i=ge.useState(function(){return ef()})[0],a=ge.useRef(e);ge.useEffect(function(){a.current=e},[e]),ge.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Vy([e.lockRef.current],(e.shards||[]).map(sf),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ge.useCallback(function(m,x){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var y=Ho(m),b=n.current,$="deltaX"in m?m.deltaX:b[0]-y[0],E="deltaY"in m?m.deltaY:b[1]-y[1],w,T=m.target,O=Math.abs($)>Math.abs(E)?"h":"v";if("touches"in m&&O==="h"&&T.type==="range")return!1;var k=nf(O,T);if(!k)return!0;if(k?w=O:(w=O==="v"?"h":"v",k=nf(O,T)),!k)return!1;if(!r.current&&"changedTouches"in m&&($||E)&&(r.current=w),!w)return!0;var D=r.current||w;return bb(D,x,m,D==="h"?$:E,!0)},[]),l=ge.useCallback(function(m){var x=m;if(!(!Xn.length||Xn[Xn.length-1]!==i)){var y="deltaY"in x?af(x):Ho(x),b=t.current.filter(function(w){return w.name===x.type&&w.target===x.target&&xb(w.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var $=(a.current.shards||[]).map(sf).filter(Boolean).filter(function(w){return w.contains(x.target)}),E=$.length>0?s(x,$[0]):!a.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=ge.useCallback(function(m,x,y,b){var $={name:m,delta:x,target:y,should:b};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(E){return E!==$})},1)},[]),f=ge.useCallback(function(m){n.current=Ho(m),r.current=void 0},[]),d=ge.useCallback(function(m){c(m.type,af(m),m.target,s(m,e.lockRef.current))},[]),p=ge.useCallback(function(m){c(m.type,Ho(m),m.target,s(m,e.lockRef.current))},[]);ge.useEffect(function(){return Xn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Kn),document.addEventListener("touchmove",l,Kn),document.addEventListener("touchstart",f,Kn),function(){Xn=Xn.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Kn),document.removeEventListener("touchmove",l,Kn),document.removeEventListener("touchstart",f,Kn)}},[]);var g=e.removeScrollBar,h=e.inert;return ge.createElement(ge.Fragment,null,h?ge.createElement(i,{styles:wb(o)}):null,g?ge.createElement(db,{gapMode:"margin"}):null)}const Cb=eb(Qu,Sb);var lf=ge.forwardRef(function(e,t){return ge.createElement(Wo,Ct({},e,{ref:t,sideCar:Cb}))});lf.classNames=Wo.classNames;const cf=lf,Ha=["Enter"," "],Eb=["ArrowDown","PageUp","Home"],uf=["ArrowUp","PageDown","End"],Tb=[...Eb,...uf],Mb={ltr:[...Ha,"ArrowRight"],rtl:[...Ha,"ArrowLeft"]},kb={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Go="Menu",[Or,Pb,Ob]=ba(Go),[$n,ff]=_t(Go,[Ob,qn,Lo]),Vo=qn(),df=Lo(),[pf,nn]=$n(Go),[_b,_r]=$n(Go),Nb=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=Vo(t),[l,c]=u.useState(null),f=u.useRef(!1),d=nt(i),p=To(o);return u.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),u.createElement(Io,s,u.createElement(pf,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},u.createElement(_b,{scope:t,onClose:u.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:a},r)))},hf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vo(n);return u.createElement(Da,Q({},o,r,{ref:t}))}),mf="MenuPortal",[Db,gf]=$n(mf,{forceMount:void 0}),Ab=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=nn(mf,t);return u.createElement(Db,{scope:t,forceMount:n},u.createElement(Rt,{present:n||i.open},u.createElement(Ia,{asChild:!0,container:o},r)))},ht="MenuContent",[Ib,Ga]=$n(ht),Lb=u.forwardRef((e,t)=>{const n=gf(ht,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=nn(ht,e.__scopeMenu),a=_r(ht,e.__scopeMenu);return u.createElement(Or.Provider,{scope:e.__scopeMenu},u.createElement(Rt,{present:r||i.open},u.createElement(Or.Slot,{scope:e.__scopeMenu},a.modal?u.createElement(Fb,Q({},o,{ref:t})):u.createElement(jb,Q({},o,{ref:t})))))}),Fb=u.forwardRef((e,t)=>{const n=nn(ht,e.__scopeMenu),r=u.useRef(null),o=Ie(t,r);return u.useEffect(()=>{const i=r.current;if(i)return Xu(i)},[]),u.createElement(Va,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),jb=u.forwardRef((e,t)=>{const n=nn(ht,e.__scopeMenu);return u.createElement(Va,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Va=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g,disableOutsideScroll:h,...m}=e,x=nn(ht,n),y=_r(ht,n),b=Vo(n),$=df(n),E=Pb(n),[w,T]=u.useState(null),O=u.useRef(null),k=Ie(t,O,x.onContentChange),D=u.useRef(0),j=u.useRef(""),z=u.useRef(0),V=u.useRef(null),ee=u.useRef("right"),q=u.useRef(0),S=h?cf:u.Fragment,L=h?{as:vn,allowPinchZoom:!0}:void 0,B=_=>{var N,F;const te=j.current+_,Z=E().filter(G=>!G.disabled),ie=document.activeElement,re=(N=Z.find(G=>G.ref.current===ie))===null||N===void 0?void 0:N.textValue,ae=Z.map(G=>G.textValue),X=rx(ae,te,re),ce=(F=Z.find(G=>G.textValue===X))===null||F===void 0?void 0:F.ref.current;(function G(Y){j.current=Y,window.clearTimeout(D.current),Y!==""&&(D.current=window.setTimeout(()=>G(""),1e3))})(te),ce&&setTimeout(()=>ce.focus())};u.useEffect(()=>()=>window.clearTimeout(D.current),[]),pu();const U=u.useCallback(_=>{var N,F;return ee.current===((N=V.current)===null||N===void 0?void 0:N.side)&&ix(_,(F=V.current)===null||F===void 0?void 0:F.area)},[]);return u.createElement(Ib,{scope:n,searchRef:j,onItemEnter:u.useCallback(_=>{U(_)&&_.preventDefault()},[U]),onItemLeave:u.useCallback(_=>{var N;U(_)||((N=O.current)===null||N===void 0||N.focus(),T(null))},[U]),onTriggerLeave:u.useCallback(_=>{U(_)&&_.preventDefault()},[U]),pointerGraceTimerRef:z,onPointerGraceIntentChange:u.useCallback(_=>{V.current=_},[])},u.createElement(S,L,u.createElement(gu,{asChild:!0,trapped:o,onMountAutoFocus:he(i,_=>{var N;_.preventDefault(),(N=O.current)===null||N===void 0||N.focus()}),onUnmountAutoFocus:a},u.createElement(wa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g},u.createElement(qu,Q({asChild:!0},$,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:he(l,_=>{y.isUsingKeyboardRef.current||_.preventDefault()})}),u.createElement(Aa,Q({role:"menu","aria-orientation":"vertical","data-state":Cf(x.open),"data-radix-menu-content":"",dir:y.dir},b,m,{ref:k,style:{outline:"none",...m.style},onKeyDown:he(m.onKeyDown,_=>{const F=_.target.closest("[data-radix-menu-content]")===_.currentTarget,te=_.ctrlKey||_.altKey||_.metaKey,Z=_.key.length===1;F&&(_.key==="Tab"&&_.preventDefault(),!te&&Z&&B(_.key));const ie=O.current;if(_.target!==ie||!Tb.includes(_.key))return;_.preventDefault();const ae=E().filter(X=>!X.disabled).map(X=>X.ref.current);uf.includes(_.key)&&ae.reverse(),tx(ae)}),onBlur:he(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(D.current),j.current="")}),onPointerMove:he(e.onPointerMove,Nr(_=>{const N=_.target,F=q.current!==_.clientX;if(_.currentTarget.contains(N)&&F){const te=_.clientX>q.current?"right":"left";ee.current=te,q.current=_.clientX}}))})))))))}),vf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ee.div,Q({role:"group"},r,{ref:t}))}),zb=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ee.div,Q({},r,{ref:t}))}),qa="MenuItem",yf="menu.itemSelect",Ya=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=u.useRef(null),a=_r(qa,e.__scopeMenu),s=Ga(qa,e.__scopeMenu),l=Ie(t,i),c=u.useRef(!1),f=()=>{const d=i.current;if(!n&&d){const p=new CustomEvent(yf,{bubbles:!0,cancelable:!0});d.addEventListener(yf,g=>r==null?void 0:r(g),{once:!0}),Hc(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return u.createElement(bf,Q({},o,{ref:l,disabled:n,onClick:he(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,d),c.current=!0},onPointerUp:he(e.onPointerUp,d=>{var p;c.current||(p=d.currentTarget)===null||p===void 0||p.click()}),onKeyDown:he(e.onKeyDown,d=>{const p=s.searchRef.current!=="";n||p&&d.key===" "||Ha.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),bf=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Ga(qa,n),s=df(n),l=u.useRef(null),c=Ie(t,l),[f,d]=u.useState(!1),[p,g]=u.useState("");return u.useEffect(()=>{const h=l.current;if(h){var m;g(((m=h.textContent)!==null&&m!==void 0?m:"").trim())}},[i.children]),u.createElement(Or.ItemSlot,{scope:n,disabled:r,textValue:o??p},u.createElement(Yu,Q({asChild:!0},s,{focusable:!r}),u.createElement(Ee.div,Q({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:he(e.onPointerMove,Nr(h=>{r?a.onItemLeave(h):(a.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus())})),onPointerLeave:he(e.onPointerLeave,Nr(h=>a.onItemLeave(h))),onFocus:he(e.onFocus,()=>d(!0)),onBlur:he(e.onBlur,()=>d(!1))}))))}),Bb=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.createElement(wf,{scope:e.__scopeMenu,checked:n},u.createElement(Ya,Q({role:"menuitemcheckbox","aria-checked":Yo(n)?"mixed":n},o,{ref:t,"data-state":Ka(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(Yo(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),Wb="MenuRadioGroup",[Ub,Hb]=$n(Wb,{value:void 0,onValueChange:()=>{}}),Gb=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=nt(r);return u.createElement(Ub,{scope:e.__scopeMenu,value:n,onValueChange:i},u.createElement(vf,Q({},o,{ref:t})))}),Vb="MenuRadioItem",qb=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Hb(Vb,e.__scopeMenu),i=n===o.value;return u.createElement(wf,{scope:e.__scopeMenu,checked:i},u.createElement(Ya,Q({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":Ka(i),onSelect:he(r.onSelect,()=>{var a;return(a=o.onValueChange)===null||a===void 0?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})))}),xf="MenuItemIndicator",[wf,Yb]=$n(xf,{checked:!1}),Kb=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Yb(xf,n);return u.createElement(Rt,{present:r||Yo(i.checked)||i.checked===!0},u.createElement(Ee.span,Q({},o,{ref:t,"data-state":Ka(i.checked)})))}),Xb=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ee.div,Q({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),$f="MenuSub",[Rb,Sf]=$n($f),Zb=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=nn($f,t),a=Vo(t),[s,l]=u.useState(null),[c,f]=u.useState(null),d=nt(o);return u.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),u.createElement(Io,a,u.createElement(pf,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f},u.createElement(Rb,{scope:t,contentId:Nt(),triggerId:Nt(),trigger:s,onTriggerChange:l},n)))},qo="MenuSubTrigger",Qb=u.forwardRef((e,t)=>{const n=nn(qo,e.__scopeMenu),r=_r(qo,e.__scopeMenu),o=Sf(qo,e.__scopeMenu),i=Ga(qo,e.__scopeMenu),a=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),u.createElement(hf,Q({asChild:!0},c),u.createElement(bf,Q({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Cf(n.open)},e,{ref:$o(t,o.onTriggerChange),onClick:d=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Nr(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:he(e.onPointerLeave,Nr(d=>{var p;f();const g=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if(g){var h;const m=(h=n.content)===null||h===void 0?void 0:h.dataset.side,x=m==="right",y=x?-5:5,b=g[x?"left":"right"],$=g[x?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:g.top},{x:$,y:g.top},{x:$,y:g.bottom},{x:b,y:g.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,d=>{const p=i.searchRef.current!=="";if(!(e.disabled||p&&d.key===" ")&&Mb[r.dir].includes(d.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),Jb="MenuSubContent",ex=u.forwardRef((e,t)=>{const n=gf(ht,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=nn(ht,e.__scopeMenu),a=_r(ht,e.__scopeMenu),s=Sf(Jb,e.__scopeMenu),l=u.useRef(null),c=Ie(t,l);return u.createElement(Or.Provider,{scope:e.__scopeMenu},u.createElement(Rt,{present:r||i.open},u.createElement(Or.Slot,{scope:e.__scopeMenu},u.createElement(Va,Q({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;a.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:he(e.onFocusOutside,f=>{f.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:he(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),p=kb[a.dir].includes(f.key);if(d&&p){var g;i.onOpenChange(!1),(g=s.trigger)===null||g===void 0||g.focus(),f.preventDefault()}})})))))});function Cf(e){return e?"open":"closed"}function Yo(e){return e==="indeterminate"}function Ka(e){return Yo(e)?"indeterminate":e?"checked":"unchecked"}function tx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rx(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=nx(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function ox(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,l=t[i].y,c=t[a].x,f=t[a].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function ix(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ox(n,t)}function Nr(e){return t=>t.pointerType==="mouse"?e(t):void 0}const ax=Nb,sx=hf,lx=Ab,cx=Lb,ux=vf,fx=zb,dx=Ya,px=Bb,hx=Gb,mx=qb,gx=Kb,vx=Xb,yx=Zb,bx=Qb,xx=ex,Ef="DropdownMenu",[wx,P3]=_t(Ef,[ff]),He=ff(),[$x,Tf]=wx(Ef),Sx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=He(t),c=u.useRef(null),[f=!1,d]=$t({prop:o,defaultProp:i,onChange:a});return u.createElement($x,{scope:t,triggerId:Nt(),triggerRef:c,contentId:Nt(),open:f,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(p=>!p),[d]),modal:s},u.createElement(ax,Q({},l,{open:f,onOpenChange:d,dir:r,modal:s}),n))},Cx="DropdownMenuTrigger",Ex=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Tf(Cx,n),a=He(n);return u.createElement(sx,Q({asChild:!0},a),u.createElement(Ee.button,Q({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:$o(t,i.triggerRef),onPointerDown:he(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:he(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),Tx=e=>{const{__scopeDropdownMenu:t,...n}=e,r=He(t);return u.createElement(lx,Q({},r,n))},Mx="DropdownMenuContent",kx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tf(Mx,n),i=He(n),a=u.useRef(!1);return u.createElement(cx,Q({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var l;a.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:he(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,f=l.button===2||c;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Px=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(ux,Q({},o,r,{ref:t}))}),Ox=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(fx,Q({},o,r,{ref:t}))}),_x=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(dx,Q({},o,r,{ref:t}))}),Nx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(px,Q({},o,r,{ref:t}))}),Dx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(hx,Q({},o,r,{ref:t}))}),Ax=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(mx,Q({},o,r,{ref:t}))}),Ix=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(gx,Q({},o,r,{ref:t}))}),Lx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(vx,Q({},o,r,{ref:t}))}),Fx=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=He(t),[s=!1,l]=$t({prop:r,defaultProp:i,onChange:o});return u.createElement(yx,Q({},a,{open:s,onOpenChange:l}),n)},jx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(bx,Q({},o,r,{ref:t}))}),zx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(xx,Q({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Bx=Sx,Wx=Ex,Mf=Tx,kf=kx,Pf=Px,Of=Ox,_f=_x,Nf=Nx,Ux=Dx,Df=Ax,Af=Ix,If=Lx,Hx=Fx,Lf=jx,Ff=zx,jf=Bx,zf=Wx,Gx=Mf,Vx=Hx,Bf=Ux,Xa=u.forwardRef(({className:e,...t},n)=>A.jsx(Pf,{ref:n,className:Oe("w-full",e),...t}));Xa.displayName=Pf.displayName;const Wf=u.forwardRef(({className:e,children:t,...n},r)=>A.jsxs(Lf,{ref:r,className:Oe("flex cursor-default select-none px-2 py-1.5 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[t,A.jsx(Uv,{className:"ml-auto h-4 w-4"})]}));Wf.displayName=Lf.displayName;const Uf=u.forwardRef(({className:e,...t},n)=>A.jsx(Ff,{ref:n,className:Oe("rabbit-ds z-[1510] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",e),...t}));Uf.displayName=Ff.displayName;const Ra=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>A.jsx(Mf,{children:A.jsx(kf,{ref:r,sideOffset:t,className:Oe("rabbit-ds z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",e),...n})}));Ra.displayName=kf.displayName;const Za=u.forwardRef(({className:e,...t},n)=>A.jsx(_f,{ref:n,className:Oe("relative flex flex-row w-full my-1 cursor-default select-none p-2 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Za.displayName=_f.displayName;const Qa=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>A.jsxs(Nf,{ref:o,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(Af,{children:A.jsx(pa,{className:"h-4 w-4 text-sky-800"})})}),t]}));Qa.displayName=Nf.displayName;const Ja=u.forwardRef(({className:e,children:t,...n},r)=>A.jsxs(Df,{ref:r,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(Af,{children:A.jsx(Hv,{className:"h-2 w-2 fill-current text-sky-800"})})}),t]}));Ja.displayName=Df.displayName;const es=u.forwardRef(({className:e,...t},n)=>A.jsx(Of,{ref:n,className:Oe("px-2 py-1.5 text-sm font-semibold",e),...t}));es.displayName=Of.displayName;const Hf=u.forwardRef(({className:e,...t},n)=>A.jsx(If,{ref:n,className:Oe("h-px w-full bg-athens-gray-100",e),...t}));Hf.displayName=If.displayName;function Gf(e,[t,n]){return Math.min(n,Math.max(t,e))}const Vf=u.forwardRef((e,t)=>u.createElement(Ee.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),qx=Vf,Yx=[" ","Enter","ArrowUp","ArrowDown"],Kx=[" ","Enter"],Ko="Select",[Xo,ts,Xx]=ba(Ko),[Rn,O3]=_t(Ko,[Xx,qn]),ns=qn(),[Rx,Sn]=Rn(Ko),[Zx,Qx]=Rn(Ko),Jx=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:f,autoComplete:d,disabled:p,required:g}=e,h=ns(t),[m,x]=u.useState(null),[y,b]=u.useState(null),[$,E]=u.useState(!1),w=To(c),[T=!1,O]=$t({prop:r,defaultProp:o,onChange:i}),[k,D]=$t({prop:a,defaultProp:s,onChange:l}),j=u.useRef(null),z=m?!!m.closest("form"):!0,[V,ee]=u.useState(new Set),q=Array.from(V).map(S=>S.props.value).join(";");return u.createElement(Io,h,u.createElement(Rx,{required:g,scope:t,trigger:m,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:$,onValueNodeHasChildrenChange:E,contentId:Nt(),value:k,onValueChange:D,open:T,onOpenChange:O,dir:w,triggerPointerDownPosRef:j,disabled:p},u.createElement(Xo.Provider,{scope:t},u.createElement(Zx,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(S=>{ee(L=>new Set(L).add(S))},[]),onNativeOptionRemove:u.useCallback(S=>{ee(L=>{const B=new Set(L);return B.delete(S),B})},[])},n)),z?u.createElement(Zf,{key:q,"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:k,onChange:S=>D(S.target.value),disabled:p},k===void 0?u.createElement("option",{value:""}):null,Array.from(V)):null))},ew="SelectTrigger",tw=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ns(n),a=Sn(ew,n),s=a.disabled||r,l=Ie(t,a.onTriggerChange),c=ts(n),[f,d,p]=Qf(h=>{const m=c().filter(b=>!b.disabled),x=m.find(b=>b.value===a.value),y=Jf(m,h,x);y!==void 0&&a.onValueChange(y.value)}),g=()=>{s||(a.onOpenChange(!0),p())};return u.createElement(Da,Q({asChild:!0},i),u.createElement(Ee.button,Q({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:s,"data-disabled":s?"":void 0,"data-placeholder":Rf(a.value)?"":void 0},o,{ref:l,onClick:he(o.onClick,h=>{h.currentTarget.focus()}),onPointerDown:he(o.onPointerDown,h=>{const m=h.target;m.hasPointerCapture(h.pointerId)&&m.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(g(),a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:he(o.onKeyDown,h=>{const m=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&d(h.key),!(m&&h.key===" ")&&Yx.includes(h.key)&&(g(),h.preventDefault())})})))}),nw="SelectValue",rw=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,l=Sn(nw,n),{onValueNodeHasChildrenChange:c}=l,f=i!==void 0,d=Ie(t,l.onValueNodeChange);return dt(()=>{c(f)},[c,f]),u.createElement(Ee.span,Q({},s,{ref:d,style:{pointerEvents:"none"}}),Rf(l.value)?u.createElement(u.Fragment,null,a):i)}),ow=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.createElement(Ee.span,Q({"aria-hidden":!0},o,{ref:t}),r||"▼")}),iw=e=>u.createElement(Ia,Q({asChild:!0},e)),Zn="SelectContent",aw=u.forwardRef((e,t)=>{const n=Sn(Zn,e.__scopeSelect),[r,o]=u.useState();if(dt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Xt.createPortal(u.createElement(qf,{scope:e.__scopeSelect},u.createElement(Xo.Slot,{scope:e.__scopeSelect},u.createElement("div",null,e.children))),i):null}return u.createElement(sw,Q({},e,{ref:t}))}),Ft=10,[qf,Ro]=Rn(Zn),sw=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:h,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Sn(Zn,n),[$,E]=u.useState(null),[w,T]=u.useState(null),O=Ie(t,X=>E(X)),[k,D]=u.useState(null),[j,z]=u.useState(null),V=ts(n),[ee,q]=u.useState(!1),S=u.useRef(!1);u.useEffect(()=>{if($)return Xu($)},[$]),pu();const L=u.useCallback(X=>{const[ce,...G]=V().map(P=>P.ref.current),[Y]=G.slice(-1),oe=document.activeElement;for(const P of X)if(P===oe||(P==null||P.scrollIntoView({block:"nearest"}),P===ce&&w&&(w.scrollTop=0),P===Y&&w&&(w.scrollTop=w.scrollHeight),P==null||P.focus(),document.activeElement!==oe))return},[V,w]),B=u.useCallback(()=>L([k,$]),[L,k,$]);u.useEffect(()=>{ee&&B()},[ee,B]);const{onOpenChange:U,triggerPointerDownPosRef:_}=b;u.useEffect(()=>{if($){let X={x:0,y:0};const ce=Y=>{var oe,P,fe,me;X={x:Math.abs(Math.round(Y.pageX)-((oe=(P=_.current)===null||P===void 0?void 0:P.x)!==null&&oe!==void 0?oe:0)),y:Math.abs(Math.round(Y.pageY)-((fe=(me=_.current)===null||me===void 0?void 0:me.y)!==null&&fe!==void 0?fe:0))}},G=Y=>{X.x<=10&&X.y<=10?Y.preventDefault():$.contains(Y.target)||U(!1),document.removeEventListener("pointermove",ce),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",G,{capture:!0})}}},[$,U,_]),u.useEffect(()=>{const X=()=>U(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[U]);const[N,F]=Qf(X=>{const ce=V().filter(oe=>!oe.disabled),G=ce.find(oe=>oe.ref.current===document.activeElement),Y=Jf(ce,X,G);Y&&setTimeout(()=>Y.ref.current.focus())}),te=u.useCallback((X,ce,G)=>{const Y=!S.current&&!G;(b.value!==void 0&&b.value===ce||Y)&&(D(X),Y&&(S.current=!0))},[b.value]),Z=u.useCallback(()=>$==null?void 0:$.focus(),[$]),ie=u.useCallback((X,ce,G)=>{const Y=!S.current&&!G;(b.value!==void 0&&b.value===ce||Y)&&z(X)},[b.value]),re=r==="popper"?Yf:lw,ae=re===Yf?{side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:h,hideWhenDetached:m,avoidCollisions:x}:{};return u.createElement(qf,{scope:n,content:$,viewport:w,onViewportChange:T,itemRefCallback:te,selectedItem:k,onItemLeave:Z,itemTextRefCallback:ie,focusSelectedItem:B,selectedItemText:j,position:r,isPositioned:ee,searchRef:N},u.createElement(cf,{as:vn,allowPinchZoom:!0},u.createElement(gu,{asChild:!0,trapped:b.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:he(o,X=>{var ce;(ce=b.trigger)===null||ce===void 0||ce.focus({preventScroll:!0}),X.preventDefault()})},u.createElement(wa,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},u.createElement(re,Q({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:X=>X.preventDefault()},y,ae,{onPlaced:()=>q(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:he(y.onKeyDown,X=>{const ce=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ce&&X.key.length===1&&F(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let Y=V().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(X.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const oe=X.target,P=Y.indexOf(oe);Y=Y.slice(P+1)}setTimeout(()=>L(Y)),X.preventDefault()}})}))))))}),lw=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Sn(Zn,n),a=Ro(Zn,n),[s,l]=u.useState(null),[c,f]=u.useState(null),d=Ie(t,O=>f(O)),p=ts(n),g=u.useRef(!1),h=u.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=a,$=u.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&x&&y){const O=i.trigger.getBoundingClientRect(),k=c.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),j=y.getBoundingClientRect();if(i.dir!=="rtl"){const oe=j.left-k.left,P=D.left-oe,fe=O.left-P,me=O.width+fe,Te=Math.max(me,k.width),Pe=window.innerWidth-Ft,We=Gf(P,[Ft,Pe-Te]);s.style.minWidth=me+"px",s.style.left=We+"px"}else{const oe=k.right-j.right,P=window.innerWidth-D.right-oe,fe=window.innerWidth-O.right-P,me=O.width+fe,Te=Math.max(me,k.width),Pe=window.innerWidth-Ft,We=Gf(P,[Ft,Pe-Te]);s.style.minWidth=me+"px",s.style.right=We+"px"}const z=p(),V=window.innerHeight-Ft*2,ee=m.scrollHeight,q=window.getComputedStyle(c),S=parseInt(q.borderTopWidth,10),L=parseInt(q.paddingTop,10),B=parseInt(q.borderBottomWidth,10),U=parseInt(q.paddingBottom,10),_=S+L+ee+U+B,N=Math.min(x.offsetHeight*5,_),F=window.getComputedStyle(m),te=parseInt(F.paddingTop,10),Z=parseInt(F.paddingBottom,10),ie=O.top+O.height/2-Ft,re=V-ie,ae=x.offsetHeight/2,X=x.offsetTop+ae,ce=S+L+X,G=_-ce;if(ce<=ie){const oe=x===z[z.length-1].ref.current;s.style.bottom="0px";const P=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(re,ae+(oe?Z:0)+P+B),me=ce+fe;s.style.height=me+"px"}else{const oe=x===z[0].ref.current;s.style.top="0px";const fe=Math.max(ie,S+m.offsetTop+(oe?te:0)+ae)+G;s.style.height=fe+"px",m.scrollTop=ce-ie+m.offsetTop}s.style.margin=`${Ft}px 0`,s.style.minHeight=N+"px",s.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[p,i.trigger,i.valueNode,s,c,m,x,y,i.dir,r]);dt(()=>$(),[$]);const[E,w]=u.useState();dt(()=>{c&&w(window.getComputedStyle(c).zIndex)},[c]);const T=u.useCallback(O=>{O&&h.current===!0&&($(),b==null||b(),h.current=!1)},[$,b]);return u.createElement(cw,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:T},u.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},u.createElement(Ee.div,Q({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),Yf=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ft,...i}=e,a=ns(n);return u.createElement(Aa,Q({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}}))}),[cw,uw]=Rn(Zn,{}),Kf="SelectViewport",fw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ro(Kf,n),i=uw(Kf,n),a=Ie(t,o.onViewportChange),s=u.useRef(0);return u.createElement(u.Fragment,null,u.createElement("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}"}}),u.createElement(Xo.Slot,{scope:n},u.createElement(Ee.div,Q({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:he(r.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=i;if(d!=null&&d.current&&f){const p=Math.abs(s.current-c.scrollTop);if(p>0){const g=window.innerHeight-Ft*2,h=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),x=Math.max(h,m);if(x<g){const y=x+p,b=Math.min(g,y),$=y-b;f.style.height=b+"px",f.style.bottom==="0px"&&(c.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})}))))}),dw="SelectGroup",[pw,hw]=Rn(dw),mw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Nt();return u.createElement(pw,{scope:n,id:o},u.createElement(Ee.div,Q({role:"group","aria-labelledby":o},r,{ref:t})))}),gw="SelectLabel",vw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hw(gw,n);return u.createElement(Ee.div,Q({id:o.id},r,{ref:t}))}),rs="SelectItem",[yw,Xf]=Rn(rs),bw=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Sn(rs,n),l=Ro(rs,n),c=s.value===r,[f,d]=u.useState(i??""),[p,g]=u.useState(!1),h=Ie(t,y=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,y,r,o)}),m=Nt(),x=()=>{o||(s.onValueChange(r),s.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 u.createElement(yw,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:u.useCallback(y=>{d(b=>{var $;return b||(($=y==null?void 0:y.textContent)!==null&&$!==void 0?$:"").trim()})},[])},u.createElement(Xo.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},u.createElement(Ee.div,Q({role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:he(a.onFocus,()=>g(!0)),onBlur:he(a.onBlur,()=>g(!1)),onPointerUp:he(a.onPointerUp,x),onPointerMove:he(a.onPointerMove,y=>{if(o){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(a.onPointerLeave,y=>{if(y.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:he(a.onKeyDown,y=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&y.key===" "||(Kx.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})}))))}),Zo="SelectItemText",xw=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Sn(Zo,n),s=Ro(Zo,n),l=Xf(Zo,n),c=Qx(Zo,n),[f,d]=u.useState(null),p=Ie(t,y=>d(y),l.onItemTextChange,y=>{var b;return(b=s.itemTextRefCallback)===null||b===void 0?void 0:b.call(s,y,l.value,l.disabled)}),g=f==null?void 0:f.textContent,h=u.useMemo(()=>u.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},g),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return dt(()=>(m(h),()=>x(h)),[m,x,h]),u.createElement(u.Fragment,null,u.createElement(Ee.span,Q({id:l.textId},i,{ref:p})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Xt.createPortal(i.children,a.valueNode):null)}),ww="SelectItemIndicator",$w=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Xf(ww,n).isSelected?u.createElement(Ee.span,Q({"aria-hidden":!0},r,{ref:t})):null}),Sw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.createElement(Ee.div,Q({"aria-hidden":!0},r,{ref:t}))});function Rf(e){return e===""||e===void 0}const Zf=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),i=Ie(t,o),a=Bc(n);return u.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==n&&f){const d=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(d)}},[a,n]),u.createElement(Vf,{asChild:!0},u.createElement("select",Q({},r,{ref:i,defaultValue:n})))});Zf.displayName="BubbleSelect";function Qf(e){const t=nt(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(a=>{const s=n.current+a;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Jf(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Cw(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Cw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ew=Jx,ed=tw,Tw=rw,Mw=ow,kw=iw,td=aw,Pw=fw,Ow=mw,nd=vw,rd=bw,_w=xw,Nw=$w,od=Sw,Dw=Ew,Aw=Ow,Iw=Tw,id=u.forwardRef(({className:e,children:t,...n},r)=>A.jsx("div",{className:"rabbit-ds",children:A.jsxs(ed,{ref:r,className:Oe("rabbit-ds h-10 pr-3 py-2.5 rounded-tl text-sm rounded-tr border-b border-dashed hover:border-solid border-zinc-800 justify-between items-center gap-2 inline-flex focus:outline-none focus:border-solid disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,A.jsx(Mw,{asChild:!0,children:A.jsx(Yc,{className:"h-4 w-4"})})]})}));id.displayName=ed.displayName;const ad=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>A.jsx(kw,{children:A.jsx(td,{ref:o,className:Oe("relative z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex-col justify-start items-start gap-1 inline-flex 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:A.jsx(Pw,{className:Oe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));ad.displayName=td.displayName;const sd=u.forwardRef(({className:e,...t},n)=>A.jsx(nd,{ref:n,className:Oe("py-1.5 px-2 text-sm font-semibold",e),...t}));sd.displayName=nd.displayName;const ld=u.forwardRef(({className:e,children:t,...n},r)=>A.jsxs(rd,{ref:r,className:Oe("relative flex w-full my-1 cursor-default select-none p-2 bg-white rounded flex-col hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[A.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:A.jsx(Nw,{children:A.jsx(pa,{className:"h-4 w-4 text-sky-800"})})}),A.jsx(_w,{children:t})]}));ld.displayName=rd.displayName;const cd=u.forwardRef(({className:e,...t},n)=>A.jsx(od,{ref:n,className:Oe("-mx-1 my-1 h-px bg-muted",e),...t}));cd.displayName=od.displayName;const[Qo,_3]=_t("Tooltip",[qn]),os=qn(),Lw="TooltipProvider",Fw=700,is="tooltip.open",[jw,as]=Qo(Lw),zw=e=>{const{__scopeTooltip:t,delayDuration:n=Fw,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=u.useState(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),u.createElement(jw,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},i)},ss="Tooltip",[Bw,Dr]=Qo(ss),Ww=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=as(ss,e.__scopeTooltip),c=os(t),[f,d]=u.useState(null),p=Nt(),g=u.useRef(0),h=a??l.disableHoverableContent,m=s??l.delayDuration,x=u.useRef(!1),[y=!1,b]=$t({prop:r,defaultProp:o,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(is))):l.onClose(),i==null||i(O)}}),$=u.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=u.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,b(!0)},[b]),w=u.useCallback(()=>{window.clearTimeout(g.current),b(!1)},[b]),T=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,b(!0)},m)},[m,b]);return u.useEffect(()=>()=>window.clearTimeout(g.current),[]),u.createElement(Io,c,u.createElement(Bw,{scope:t,contentId:p,open:y,stateAttribute:$,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayed?T():E()},[l.isOpenDelayed,T,E]),onTriggerLeave:u.useCallback(()=>{h?w():window.clearTimeout(g.current)},[w,h]),onOpen:E,onClose:w,disableHoverableContent:h},n))},ud="TooltipTrigger",Uw=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dr(ud,n),i=as(ud,n),a=os(n),s=u.useRef(null),l=Ie(t,s,o.onTriggerChange),c=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.createElement(Da,Q({asChild:!0},a),u.createElement(Ee.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:he(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:he(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:he(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:he(e.onBlur,o.onClose),onClick:he(e.onClick,o.onClose)})))}),fd="TooltipPortal",[Hw,Gw]=Qo(fd,{forceMount:void 0}),Vw=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Dr(fd,t);return u.createElement(Hw,{scope:t,forceMount:n},u.createElement(Rt,{present:n||i.open},u.createElement(Ia,{asChild:!0,container:o},r)))},Ar="TooltipContent",qw=u.forwardRef((e,t)=>{const n=Gw(Ar,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Dr(Ar,e.__scopeTooltip);return u.createElement(Rt,{present:r||a.open},a.disableHoverableContent?u.createElement(dd,Q({side:o},i,{ref:t})):u.createElement(Yw,Q({side:o},i,{ref:t})))}),Yw=u.forwardRef((e,t)=>{const n=Dr(Ar,e.__scopeTooltip),r=as(Ar,e.__scopeTooltip),o=u.useRef(null),i=Ie(t,o),[a,s]=u.useState(null),{trigger:l,onClose:c}=n,f=o.current,{onPointerInTransitChange:d}=r,p=u.useCallback(()=>{s(null),d(!1)},[d]),g=u.useCallback((h,m)=>{const x=h.currentTarget,y={x:h.clientX,y:h.clientY},b=Xw(y,x.getBoundingClientRect()),$=Rw(y,b),E=Zw(m.getBoundingClientRect()),w=Jw([...$,...E]);s(w),d(!0)},[d]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(l&&f){const h=x=>g(x,f),m=x=>g(x,l);return l.addEventListener("pointerleave",h),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",h),f.removeEventListener("pointerleave",m)}}},[l,f,g,p]),u.useEffect(()=>{if(a){const h=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(l==null?void 0:l.contains(x))||(f==null?void 0:f.contains(x)),$=!Qw(y,a);b?p():$&&(p(),c())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[l,f,a,c,p]),u.createElement(dd,Q({},e,{ref:i}))}),[Kw,N3]=Qo(ss,{isInside:!1}),dd=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=Dr(Ar,n),c=os(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(is,f),()=>document.removeEventListener(is,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=p=>{const g=p.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),u.createElement(wa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:f},u.createElement(Aa,Q({"data-state":l.stateAttribute},c,s,{ref:t,style:{...s.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)"}}),u.createElement(Uc,null,r),u.createElement(Kw,{scope:n,isInside:!0},u.createElement(qx,{id:l.contentId,role:"tooltip"},o||r))))});function Xw(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Rw(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 Zw(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 Qw(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,l=t[i].y,c=t[a].x,f=t[a].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function Jw(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),e1(t)}function e1(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 i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.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 i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.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)}const t1=zw,n1=Ww,r1=Uw,o1=Vw,pd=qw,hd=t1,md=n1,gd=r1,vd=o1,ls=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>A.jsx(pd,{ref:r,sideOffset:t,className:Oe("z-[1500] overflow-hidden p-2 bg-gray-600 max-w-xs rounded transition-opacity justify-start items-start inline-flex text-center text-white text-xs 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",e,"rabbit-ds"),...n}));ls.displayName=pd.displayName;var Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var cs={exports:{}},Jo={exports:{}},Me={};/** @license React v16.13.1
|
|
41
|
+
`)},$b=0,Xn=[];function Sb(e){var t=ge.useRef([]),n=ge.useRef([0,0]),r=ge.useRef(),o=ge.useState($b++)[0],i=ge.useState(function(){return ef()})[0],a=ge.useRef(e);ge.useEffect(function(){a.current=e},[e]),ge.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Vy([e.lockRef.current],(e.shards||[]).map(sf),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ge.useCallback(function(m,x){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var y=Ho(m),b=n.current,$="deltaX"in m?m.deltaX:b[0]-y[0],E="deltaY"in m?m.deltaY:b[1]-y[1],w,T=m.target,O=Math.abs($)>Math.abs(E)?"h":"v";if("touches"in m&&O==="h"&&T.type==="range")return!1;var k=nf(O,T);if(!k)return!0;if(k?w=O:(w=O==="v"?"h":"v",k=nf(O,T)),!k)return!1;if(!r.current&&"changedTouches"in m&&($||E)&&(r.current=w),!w)return!0;var D=r.current||w;return bb(D,x,m,D==="h"?$:E,!0)},[]),l=ge.useCallback(function(m){var x=m;if(!(!Xn.length||Xn[Xn.length-1]!==i)){var y="deltaY"in x?af(x):Ho(x),b=t.current.filter(function(w){return w.name===x.type&&w.target===x.target&&xb(w.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var $=(a.current.shards||[]).map(sf).filter(Boolean).filter(function(w){return w.contains(x.target)}),E=$.length>0?s(x,$[0]):!a.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=ge.useCallback(function(m,x,y,b){var $={name:m,delta:x,target:y,should:b};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(E){return E!==$})},1)},[]),f=ge.useCallback(function(m){n.current=Ho(m),r.current=void 0},[]),d=ge.useCallback(function(m){c(m.type,af(m),m.target,s(m,e.lockRef.current))},[]),p=ge.useCallback(function(m){c(m.type,Ho(m),m.target,s(m,e.lockRef.current))},[]);ge.useEffect(function(){return Xn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Kn),document.addEventListener("touchmove",l,Kn),document.addEventListener("touchstart",f,Kn),function(){Xn=Xn.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Kn),document.removeEventListener("touchmove",l,Kn),document.removeEventListener("touchstart",f,Kn)}},[]);var g=e.removeScrollBar,h=e.inert;return ge.createElement(ge.Fragment,null,h?ge.createElement(i,{styles:wb(o)}):null,g?ge.createElement(db,{gapMode:"margin"}):null)}const Cb=eb(Qu,Sb);var lf=ge.forwardRef(function(e,t){return ge.createElement(Wo,Ct({},e,{ref:t,sideCar:Cb}))});lf.classNames=Wo.classNames;const cf=lf,Ha=["Enter"," "],Eb=["ArrowDown","PageUp","Home"],uf=["ArrowUp","PageDown","End"],Tb=[...Eb,...uf],Mb={ltr:[...Ha,"ArrowRight"],rtl:[...Ha,"ArrowLeft"]},kb={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Go="Menu",[Or,Pb,Ob]=ba(Go),[$n,ff]=_t(Go,[Ob,qn,Lo]),Vo=qn(),df=Lo(),[pf,nn]=$n(Go),[_b,_r]=$n(Go),Nb=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=Vo(t),[l,c]=u.useState(null),f=u.useRef(!1),d=nt(i),p=To(o);return u.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),u.createElement(Io,s,u.createElement(pf,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},u.createElement(_b,{scope:t,onClose:u.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:a},r)))},hf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vo(n);return u.createElement(Da,Q({},o,r,{ref:t}))}),mf="MenuPortal",[Db,gf]=$n(mf,{forceMount:void 0}),Ab=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=nn(mf,t);return u.createElement(Db,{scope:t,forceMount:n},u.createElement(Rt,{present:n||i.open},u.createElement(Ia,{asChild:!0,container:o},r)))},ht="MenuContent",[Ib,Ga]=$n(ht),Lb=u.forwardRef((e,t)=>{const n=gf(ht,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=nn(ht,e.__scopeMenu),a=_r(ht,e.__scopeMenu);return u.createElement(Or.Provider,{scope:e.__scopeMenu},u.createElement(Rt,{present:r||i.open},u.createElement(Or.Slot,{scope:e.__scopeMenu},a.modal?u.createElement(Fb,Q({},o,{ref:t})):u.createElement(jb,Q({},o,{ref:t})))))}),Fb=u.forwardRef((e,t)=>{const n=nn(ht,e.__scopeMenu),r=u.useRef(null),o=Ie(t,r);return u.useEffect(()=>{const i=r.current;if(i)return Xu(i)},[]),u.createElement(Va,Q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),jb=u.forwardRef((e,t)=>{const n=nn(ht,e.__scopeMenu);return u.createElement(Va,Q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Va=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g,disableOutsideScroll:h,...m}=e,x=nn(ht,n),y=_r(ht,n),b=Vo(n),$=df(n),E=Pb(n),[w,T]=u.useState(null),O=u.useRef(null),k=Ie(t,O,x.onContentChange),D=u.useRef(0),j=u.useRef(""),z=u.useRef(0),V=u.useRef(null),ee=u.useRef("right"),q=u.useRef(0),S=h?cf:u.Fragment,L=h?{as:vn,allowPinchZoom:!0}:void 0,B=_=>{var N,F;const te=j.current+_,Z=E().filter(G=>!G.disabled),ie=document.activeElement,re=(N=Z.find(G=>G.ref.current===ie))===null||N===void 0?void 0:N.textValue,ae=Z.map(G=>G.textValue),X=rx(ae,te,re),ce=(F=Z.find(G=>G.textValue===X))===null||F===void 0?void 0:F.ref.current;(function G(Y){j.current=Y,window.clearTimeout(D.current),Y!==""&&(D.current=window.setTimeout(()=>G(""),1e3))})(te),ce&&setTimeout(()=>ce.focus())};u.useEffect(()=>()=>window.clearTimeout(D.current),[]),pu();const U=u.useCallback(_=>{var N,F;return ee.current===((N=V.current)===null||N===void 0?void 0:N.side)&&ix(_,(F=V.current)===null||F===void 0?void 0:F.area)},[]);return u.createElement(Ib,{scope:n,searchRef:j,onItemEnter:u.useCallback(_=>{U(_)&&_.preventDefault()},[U]),onItemLeave:u.useCallback(_=>{var N;U(_)||((N=O.current)===null||N===void 0||N.focus(),T(null))},[U]),onTriggerLeave:u.useCallback(_=>{U(_)&&_.preventDefault()},[U]),pointerGraceTimerRef:z,onPointerGraceIntentChange:u.useCallback(_=>{V.current=_},[])},u.createElement(S,L,u.createElement(gu,{asChild:!0,trapped:o,onMountAutoFocus:he(i,_=>{var N;_.preventDefault(),(N=O.current)===null||N===void 0||N.focus()}),onUnmountAutoFocus:a},u.createElement(wa,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g},u.createElement(qu,Q({asChild:!0},$,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:he(l,_=>{y.isUsingKeyboardRef.current||_.preventDefault()})}),u.createElement(Aa,Q({role:"menu","aria-orientation":"vertical","data-state":Cf(x.open),"data-radix-menu-content":"",dir:y.dir},b,m,{ref:k,style:{outline:"none",...m.style},onKeyDown:he(m.onKeyDown,_=>{const F=_.target.closest("[data-radix-menu-content]")===_.currentTarget,te=_.ctrlKey||_.altKey||_.metaKey,Z=_.key.length===1;F&&(_.key==="Tab"&&_.preventDefault(),!te&&Z&&B(_.key));const ie=O.current;if(_.target!==ie||!Tb.includes(_.key))return;_.preventDefault();const ae=E().filter(X=>!X.disabled).map(X=>X.ref.current);uf.includes(_.key)&&ae.reverse(),tx(ae)}),onBlur:he(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(D.current),j.current="")}),onPointerMove:he(e.onPointerMove,Nr(_=>{const N=_.target,F=q.current!==_.clientX;if(_.currentTarget.contains(N)&&F){const te=_.clientX>q.current?"right":"left";ee.current=te,q.current=_.clientX}}))})))))))}),vf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ee.div,Q({role:"group"},r,{ref:t}))}),zb=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ee.div,Q({},r,{ref:t}))}),qa="MenuItem",yf="menu.itemSelect",Ya=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=u.useRef(null),a=_r(qa,e.__scopeMenu),s=Ga(qa,e.__scopeMenu),l=Ie(t,i),c=u.useRef(!1),f=()=>{const d=i.current;if(!n&&d){const p=new CustomEvent(yf,{bubbles:!0,cancelable:!0});d.addEventListener(yf,g=>r==null?void 0:r(g),{once:!0}),Hc(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return u.createElement(bf,Q({},o,{ref:l,disabled:n,onClick:he(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)===null||p===void 0||p.call(e,d),c.current=!0},onPointerUp:he(e.onPointerUp,d=>{var p;c.current||(p=d.currentTarget)===null||p===void 0||p.click()}),onKeyDown:he(e.onKeyDown,d=>{const p=s.searchRef.current!=="";n||p&&d.key===" "||Ha.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),bf=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Ga(qa,n),s=df(n),l=u.useRef(null),c=Ie(t,l),[f,d]=u.useState(!1),[p,g]=u.useState("");return u.useEffect(()=>{const h=l.current;if(h){var m;g(((m=h.textContent)!==null&&m!==void 0?m:"").trim())}},[i.children]),u.createElement(Or.ItemSlot,{scope:n,disabled:r,textValue:o??p},u.createElement(Yu,Q({asChild:!0},s,{focusable:!r}),u.createElement(Ee.div,Q({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:he(e.onPointerMove,Nr(h=>{r?a.onItemLeave(h):(a.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus())})),onPointerLeave:he(e.onPointerLeave,Nr(h=>a.onItemLeave(h))),onFocus:he(e.onFocus,()=>d(!0)),onBlur:he(e.onBlur,()=>d(!1))}))))}),Bb=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.createElement(wf,{scope:e.__scopeMenu,checked:n},u.createElement(Ya,Q({role:"menuitemcheckbox","aria-checked":Yo(n)?"mixed":n},o,{ref:t,"data-state":Ka(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(Yo(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),Wb="MenuRadioGroup",[Ub,Hb]=$n(Wb,{value:void 0,onValueChange:()=>{}}),Gb=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=nt(r);return u.createElement(Ub,{scope:e.__scopeMenu,value:n,onValueChange:i},u.createElement(vf,Q({},o,{ref:t})))}),Vb="MenuRadioItem",qb=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Hb(Vb,e.__scopeMenu),i=n===o.value;return u.createElement(wf,{scope:e.__scopeMenu,checked:i},u.createElement(Ya,Q({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":Ka(i),onSelect:he(r.onSelect,()=>{var a;return(a=o.onValueChange)===null||a===void 0?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})))}),xf="MenuItemIndicator",[wf,Yb]=$n(xf,{checked:!1}),Kb=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Yb(xf,n);return u.createElement(Rt,{present:r||Yo(i.checked)||i.checked===!0},u.createElement(Ee.span,Q({},o,{ref:t,"data-state":Ka(i.checked)})))}),Xb=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(Ee.div,Q({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),$f="MenuSub",[Rb,Sf]=$n($f),Zb=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=nn($f,t),a=Vo(t),[s,l]=u.useState(null),[c,f]=u.useState(null),d=nt(o);return u.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),u.createElement(Io,a,u.createElement(pf,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f},u.createElement(Rb,{scope:t,contentId:Nt(),triggerId:Nt(),trigger:s,onTriggerChange:l},n)))},qo="MenuSubTrigger",Qb=u.forwardRef((e,t)=>{const n=nn(qo,e.__scopeMenu),r=_r(qo,e.__scopeMenu),o=Sf(qo,e.__scopeMenu),i=Ga(qo,e.__scopeMenu),a=u.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),u.createElement(hf,Q({asChild:!0},c),u.createElement(bf,Q({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Cf(n.open)},e,{ref:$o(t,o.onTriggerChange),onClick:d=>{var p;(p=e.onClick)===null||p===void 0||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Nr(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:he(e.onPointerLeave,Nr(d=>{var p;f();const g=(p=n.content)===null||p===void 0?void 0:p.getBoundingClientRect();if(g){var h;const m=(h=n.content)===null||h===void 0?void 0:h.dataset.side,x=m==="right",y=x?-5:5,b=g[x?"left":"right"],$=g[x?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:g.top},{x:$,y:g.top},{x:$,y:g.bottom},{x:b,y:g.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,d=>{const p=i.searchRef.current!=="";if(!(e.disabled||p&&d.key===" ")&&Mb[r.dir].includes(d.key)){var g;n.onOpenChange(!0),(g=n.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),Jb="MenuSubContent",ex=u.forwardRef((e,t)=>{const n=gf(ht,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=nn(ht,e.__scopeMenu),a=_r(ht,e.__scopeMenu),s=Sf(Jb,e.__scopeMenu),l=u.useRef(null),c=Ie(t,l);return u.createElement(Or.Provider,{scope:e.__scopeMenu},u.createElement(Rt,{present:r||i.open},u.createElement(Or.Slot,{scope:e.__scopeMenu},u.createElement(Va,Q({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;a.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:he(e.onFocusOutside,f=>{f.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:he(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),p=kb[a.dir].includes(f.key);if(d&&p){var g;i.onOpenChange(!1),(g=s.trigger)===null||g===void 0||g.focus(),f.preventDefault()}})})))))});function Cf(e){return e?"open":"closed"}function Yo(e){return e==="indeterminate"}function Ka(e){return Yo(e)?"indeterminate":e?"checked":"unchecked"}function tx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rx(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=nx(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function ox(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,l=t[i].y,c=t[a].x,f=t[a].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function ix(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ox(n,t)}function Nr(e){return t=>t.pointerType==="mouse"?e(t):void 0}const ax=Nb,sx=hf,lx=Ab,cx=Lb,ux=vf,fx=zb,dx=Ya,px=Bb,hx=Gb,mx=qb,gx=Kb,vx=Xb,yx=Zb,bx=Qb,xx=ex,Ef="DropdownMenu",[wx,P3]=_t(Ef,[ff]),He=ff(),[$x,Tf]=wx(Ef),Sx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=He(t),c=u.useRef(null),[f=!1,d]=$t({prop:o,defaultProp:i,onChange:a});return u.createElement($x,{scope:t,triggerId:Nt(),triggerRef:c,contentId:Nt(),open:f,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(p=>!p),[d]),modal:s},u.createElement(ax,Q({},l,{open:f,onOpenChange:d,dir:r,modal:s}),n))},Cx="DropdownMenuTrigger",Ex=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Tf(Cx,n),a=He(n);return u.createElement(sx,Q({asChild:!0},a),u.createElement(Ee.button,Q({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:$o(t,i.triggerRef),onPointerDown:he(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:he(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),Tx=e=>{const{__scopeDropdownMenu:t,...n}=e,r=He(t);return u.createElement(lx,Q({},r,n))},Mx="DropdownMenuContent",kx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tf(Mx,n),i=He(n),a=u.useRef(!1);return u.createElement(cx,Q({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var l;a.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:he(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,f=l.button===2||c;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Px=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(ux,Q({},o,r,{ref:t}))}),Ox=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(fx,Q({},o,r,{ref:t}))}),_x=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(dx,Q({},o,r,{ref:t}))}),Nx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(px,Q({},o,r,{ref:t}))}),Dx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(hx,Q({},o,r,{ref:t}))}),Ax=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(mx,Q({},o,r,{ref:t}))}),Ix=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(gx,Q({},o,r,{ref:t}))}),Lx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(vx,Q({},o,r,{ref:t}))}),Fx=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=He(t),[s=!1,l]=$t({prop:r,defaultProp:i,onChange:o});return u.createElement(yx,Q({},a,{open:s,onOpenChange:l}),n)},jx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(bx,Q({},o,r,{ref:t}))}),zx=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=He(n);return u.createElement(xx,Q({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),Bx=Sx,Wx=Ex,Mf=Tx,kf=kx,Pf=Px,Of=Ox,_f=_x,Nf=Nx,Ux=Dx,Df=Ax,Af=Ix,If=Lx,Hx=Fx,Lf=jx,Ff=zx,jf=Bx,zf=Wx,Gx=Mf,Vx=Hx,Bf=Ux,Xa=u.forwardRef(({className:e,...t},n)=>A.jsx(Pf,{ref:n,className:Oe("w-full",e),...t}));Xa.displayName=Pf.displayName;const Wf=u.forwardRef(({className:e,children:t,...n},r)=>A.jsxs(Lf,{ref:r,className:Oe("flex cursor-default select-none px-2 py-1.5 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[t,A.jsx(Uv,{className:"ml-auto h-4 w-4"})]}));Wf.displayName=Lf.displayName;const Uf=u.forwardRef(({className:e,...t},n)=>A.jsx(Ff,{ref:n,className:Oe("rabbit-ds z-[1510] relative rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",e),...t}));Uf.displayName=Ff.displayName;const Ra=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>A.jsx(Mf,{children:A.jsx(kf,{ref:r,sideOffset:t,className:Oe("rabbit-ds z-[1500] relative rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex flex-col justify-start items-start gap-1 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",e),...n})}));Ra.displayName=kf.displayName;const Za=u.forwardRef(({className:e,...t},n)=>A.jsx(_f,{ref:n,className:Oe("relative flex flex-row w-full my-1 cursor-default select-none p-2 bg-white rounded hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Za.displayName=_f.displayName;const Qa=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>A.jsxs(Nf,{ref:o,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(Af,{children:A.jsx(pa,{className:"h-4 w-4 text-sky-800"})})}),t]}));Qa.displayName=Nf.displayName;const Ja=u.forwardRef(({className:e,children:t,...n},r)=>A.jsxs(Df,{ref:r,className:Oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[A.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A.jsx(Af,{children:A.jsx(Hv,{className:"h-2 w-2 fill-current text-sky-800"})})}),t]}));Ja.displayName=Df.displayName;const es=u.forwardRef(({className:e,...t},n)=>A.jsx(Of,{ref:n,className:Oe("px-2 py-1.5 text-sm font-semibold",e),...t}));es.displayName=Of.displayName;const Hf=u.forwardRef(({className:e,...t},n)=>A.jsx(If,{ref:n,className:Oe("h-px w-full bg-athens-gray-100",e),...t}));Hf.displayName=If.displayName;function Gf(e,[t,n]){return Math.min(n,Math.max(t,e))}const Vf=u.forwardRef((e,t)=>u.createElement(Ee.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),qx=Vf,Yx=[" ","Enter","ArrowUp","ArrowDown"],Kx=[" ","Enter"],Ko="Select",[Xo,ts,Xx]=ba(Ko),[Rn,O3]=_t(Ko,[Xx,qn]),ns=qn(),[Rx,Sn]=Rn(Ko),[Zx,Qx]=Rn(Ko),Jx=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:f,autoComplete:d,disabled:p,required:g}=e,h=ns(t),[m,x]=u.useState(null),[y,b]=u.useState(null),[$,E]=u.useState(!1),w=To(c),[T=!1,O]=$t({prop:r,defaultProp:o,onChange:i}),[k,D]=$t({prop:a,defaultProp:s,onChange:l}),j=u.useRef(null),z=m?!!m.closest("form"):!0,[V,ee]=u.useState(new Set),q=Array.from(V).map(S=>S.props.value).join(";");return u.createElement(Io,h,u.createElement(Rx,{required:g,scope:t,trigger:m,onTriggerChange:x,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:$,onValueNodeHasChildrenChange:E,contentId:Nt(),value:k,onValueChange:D,open:T,onOpenChange:O,dir:w,triggerPointerDownPosRef:j,disabled:p},u.createElement(Xo.Provider,{scope:t},u.createElement(Zx,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(S=>{ee(L=>new Set(L).add(S))},[]),onNativeOptionRemove:u.useCallback(S=>{ee(L=>{const B=new Set(L);return B.delete(S),B})},[])},n)),z?u.createElement(Zf,{key:q,"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:k,onChange:S=>D(S.target.value),disabled:p},k===void 0?u.createElement("option",{value:""}):null,Array.from(V)):null))},ew="SelectTrigger",tw=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ns(n),a=Sn(ew,n),s=a.disabled||r,l=Ie(t,a.onTriggerChange),c=ts(n),[f,d,p]=Qf(h=>{const m=c().filter(b=>!b.disabled),x=m.find(b=>b.value===a.value),y=Jf(m,h,x);y!==void 0&&a.onValueChange(y.value)}),g=()=>{s||(a.onOpenChange(!0),p())};return u.createElement(Da,Q({asChild:!0},i),u.createElement(Ee.button,Q({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:s,"data-disabled":s?"":void 0,"data-placeholder":Rf(a.value)?"":void 0},o,{ref:l,onClick:he(o.onClick,h=>{h.currentTarget.focus()}),onPointerDown:he(o.onPointerDown,h=>{const m=h.target;m.hasPointerCapture(h.pointerId)&&m.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(g(),a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:he(o.onKeyDown,h=>{const m=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&d(h.key),!(m&&h.key===" ")&&Yx.includes(h.key)&&(g(),h.preventDefault())})})))}),nw="SelectValue",rw=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,l=Sn(nw,n),{onValueNodeHasChildrenChange:c}=l,f=i!==void 0,d=Ie(t,l.onValueNodeChange);return dt(()=>{c(f)},[c,f]),u.createElement(Ee.span,Q({},s,{ref:d,style:{pointerEvents:"none"}}),Rf(l.value)?u.createElement(u.Fragment,null,a):i)}),ow=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.createElement(Ee.span,Q({"aria-hidden":!0},o,{ref:t}),r||"▼")}),iw=e=>u.createElement(Ia,Q({asChild:!0},e)),Zn="SelectContent",aw=u.forwardRef((e,t)=>{const n=Sn(Zn,e.__scopeSelect),[r,o]=u.useState();if(dt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Xt.createPortal(u.createElement(qf,{scope:e.__scopeSelect},u.createElement(Xo.Slot,{scope:e.__scopeSelect},u.createElement("div",null,e.children))),i):null}return u.createElement(sw,Q({},e,{ref:t}))}),Ft=10,[qf,Ro]=Rn(Zn),sw=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:h,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Sn(Zn,n),[$,E]=u.useState(null),[w,T]=u.useState(null),O=Ie(t,X=>E(X)),[k,D]=u.useState(null),[j,z]=u.useState(null),V=ts(n),[ee,q]=u.useState(!1),S=u.useRef(!1);u.useEffect(()=>{if($)return Xu($)},[$]),pu();const L=u.useCallback(X=>{const[ce,...G]=V().map(P=>P.ref.current),[Y]=G.slice(-1),oe=document.activeElement;for(const P of X)if(P===oe||(P==null||P.scrollIntoView({block:"nearest"}),P===ce&&w&&(w.scrollTop=0),P===Y&&w&&(w.scrollTop=w.scrollHeight),P==null||P.focus(),document.activeElement!==oe))return},[V,w]),B=u.useCallback(()=>L([k,$]),[L,k,$]);u.useEffect(()=>{ee&&B()},[ee,B]);const{onOpenChange:U,triggerPointerDownPosRef:_}=b;u.useEffect(()=>{if($){let X={x:0,y:0};const ce=Y=>{var oe,P,fe,me;X={x:Math.abs(Math.round(Y.pageX)-((oe=(P=_.current)===null||P===void 0?void 0:P.x)!==null&&oe!==void 0?oe:0)),y:Math.abs(Math.round(Y.pageY)-((fe=(me=_.current)===null||me===void 0?void 0:me.y)!==null&&fe!==void 0?fe:0))}},G=Y=>{X.x<=10&&X.y<=10?Y.preventDefault():$.contains(Y.target)||U(!1),document.removeEventListener("pointermove",ce),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",G,{capture:!0})}}},[$,U,_]),u.useEffect(()=>{const X=()=>U(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[U]);const[N,F]=Qf(X=>{const ce=V().filter(oe=>!oe.disabled),G=ce.find(oe=>oe.ref.current===document.activeElement),Y=Jf(ce,X,G);Y&&setTimeout(()=>Y.ref.current.focus())}),te=u.useCallback((X,ce,G)=>{const Y=!S.current&&!G;(b.value!==void 0&&b.value===ce||Y)&&(D(X),Y&&(S.current=!0))},[b.value]),Z=u.useCallback(()=>$==null?void 0:$.focus(),[$]),ie=u.useCallback((X,ce,G)=>{const Y=!S.current&&!G;(b.value!==void 0&&b.value===ce||Y)&&z(X)},[b.value]),re=r==="popper"?Yf:lw,ae=re===Yf?{side:s,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:h,hideWhenDetached:m,avoidCollisions:x}:{};return u.createElement(qf,{scope:n,content:$,viewport:w,onViewportChange:T,itemRefCallback:te,selectedItem:k,onItemLeave:Z,itemTextRefCallback:ie,focusSelectedItem:B,selectedItemText:j,position:r,isPositioned:ee,searchRef:N},u.createElement(cf,{as:vn,allowPinchZoom:!0},u.createElement(gu,{asChild:!0,trapped:b.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:he(o,X=>{var ce;(ce=b.trigger)===null||ce===void 0||ce.focus({preventScroll:!0}),X.preventDefault()})},u.createElement(wa,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},u.createElement(re,Q({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:X=>X.preventDefault()},y,ae,{onPlaced:()=>q(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:he(y.onKeyDown,X=>{const ce=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ce&&X.key.length===1&&F(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let Y=V().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(X.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const oe=X.target,P=Y.indexOf(oe);Y=Y.slice(P+1)}setTimeout(()=>L(Y)),X.preventDefault()}})}))))))}),lw=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Sn(Zn,n),a=Ro(Zn,n),[s,l]=u.useState(null),[c,f]=u.useState(null),d=Ie(t,O=>f(O)),p=ts(n),g=u.useRef(!1),h=u.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=a,$=u.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&x&&y){const O=i.trigger.getBoundingClientRect(),k=c.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),j=y.getBoundingClientRect();if(i.dir!=="rtl"){const oe=j.left-k.left,P=D.left-oe,fe=O.left-P,me=O.width+fe,Te=Math.max(me,k.width),Pe=window.innerWidth-Ft,We=Gf(P,[Ft,Pe-Te]);s.style.minWidth=me+"px",s.style.left=We+"px"}else{const oe=k.right-j.right,P=window.innerWidth-D.right-oe,fe=window.innerWidth-O.right-P,me=O.width+fe,Te=Math.max(me,k.width),Pe=window.innerWidth-Ft,We=Gf(P,[Ft,Pe-Te]);s.style.minWidth=me+"px",s.style.right=We+"px"}const z=p(),V=window.innerHeight-Ft*2,ee=m.scrollHeight,q=window.getComputedStyle(c),S=parseInt(q.borderTopWidth,10),L=parseInt(q.paddingTop,10),B=parseInt(q.borderBottomWidth,10),U=parseInt(q.paddingBottom,10),_=S+L+ee+U+B,N=Math.min(x.offsetHeight*5,_),F=window.getComputedStyle(m),te=parseInt(F.paddingTop,10),Z=parseInt(F.paddingBottom,10),ie=O.top+O.height/2-Ft,re=V-ie,ae=x.offsetHeight/2,X=x.offsetTop+ae,ce=S+L+X,G=_-ce;if(ce<=ie){const oe=x===z[z.length-1].ref.current;s.style.bottom="0px";const P=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(re,ae+(oe?Z:0)+P+B),me=ce+fe;s.style.height=me+"px"}else{const oe=x===z[0].ref.current;s.style.top="0px";const fe=Math.max(ie,S+m.offsetTop+(oe?te:0)+ae)+G;s.style.height=fe+"px",m.scrollTop=ce-ie+m.offsetTop}s.style.margin=`${Ft}px 0`,s.style.minHeight=N+"px",s.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[p,i.trigger,i.valueNode,s,c,m,x,y,i.dir,r]);dt(()=>$(),[$]);const[E,w]=u.useState();dt(()=>{c&&w(window.getComputedStyle(c).zIndex)},[c]);const T=u.useCallback(O=>{O&&h.current===!0&&($(),b==null||b(),h.current=!1)},[$,b]);return u.createElement(cw,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:T},u.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},u.createElement(Ee.div,Q({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),Yf=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ft,...i}=e,a=ns(n);return u.createElement(Aa,Q({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}}))}),[cw,uw]=Rn(Zn,{}),Kf="SelectViewport",fw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ro(Kf,n),i=uw(Kf,n),a=Ie(t,o.onViewportChange),s=u.useRef(0);return u.createElement(u.Fragment,null,u.createElement("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}"}}),u.createElement(Xo.Slot,{scope:n},u.createElement(Ee.div,Q({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:he(r.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=i;if(d!=null&&d.current&&f){const p=Math.abs(s.current-c.scrollTop);if(p>0){const g=window.innerHeight-Ft*2,h=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),x=Math.max(h,m);if(x<g){const y=x+p,b=Math.min(g,y),$=y-b;f.style.height=b+"px",f.style.bottom==="0px"&&(c.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})}))))}),dw="SelectGroup",[pw,hw]=Rn(dw),mw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Nt();return u.createElement(pw,{scope:n,id:o},u.createElement(Ee.div,Q({role:"group","aria-labelledby":o},r,{ref:t})))}),gw="SelectLabel",vw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hw(gw,n);return u.createElement(Ee.div,Q({id:o.id},r,{ref:t}))}),rs="SelectItem",[yw,Xf]=Rn(rs),bw=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Sn(rs,n),l=Ro(rs,n),c=s.value===r,[f,d]=u.useState(i??""),[p,g]=u.useState(!1),h=Ie(t,y=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,y,r,o)}),m=Nt(),x=()=>{o||(s.onValueChange(r),s.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 u.createElement(yw,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:u.useCallback(y=>{d(b=>{var $;return b||(($=y==null?void 0:y.textContent)!==null&&$!==void 0?$:"").trim()})},[])},u.createElement(Xo.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},u.createElement(Ee.div,Q({role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:he(a.onFocus,()=>g(!0)),onBlur:he(a.onBlur,()=>g(!1)),onPointerUp:he(a.onPointerUp,x),onPointerMove:he(a.onPointerMove,y=>{if(o){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:he(a.onPointerLeave,y=>{if(y.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:he(a.onKeyDown,y=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&y.key===" "||(Kx.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})}))))}),Zo="SelectItemText",xw=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Sn(Zo,n),s=Ro(Zo,n),l=Xf(Zo,n),c=Qx(Zo,n),[f,d]=u.useState(null),p=Ie(t,y=>d(y),l.onItemTextChange,y=>{var b;return(b=s.itemTextRefCallback)===null||b===void 0?void 0:b.call(s,y,l.value,l.disabled)}),g=f==null?void 0:f.textContent,h=u.useMemo(()=>u.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},g),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return dt(()=>(m(h),()=>x(h)),[m,x,h]),u.createElement(u.Fragment,null,u.createElement(Ee.span,Q({id:l.textId},i,{ref:p})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Xt.createPortal(i.children,a.valueNode):null)}),ww="SelectItemIndicator",$w=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Xf(ww,n).isSelected?u.createElement(Ee.span,Q({"aria-hidden":!0},r,{ref:t})):null}),Sw=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.createElement(Ee.div,Q({"aria-hidden":!0},r,{ref:t}))});function Rf(e){return e===""||e===void 0}const Zf=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=u.useRef(null),i=Ie(t,o),a=Bc(n);return u.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==n&&f){const d=new Event("change",{bubbles:!0});f.call(s,n),s.dispatchEvent(d)}},[a,n]),u.createElement(Vf,{asChild:!0},u.createElement("select",Q({},r,{ref:i,defaultValue:n})))});Zf.displayName="BubbleSelect";function Qf(e){const t=nt(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(a=>{const s=n.current+a;t(s),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Jf(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Cw(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Cw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ew=Jx,ed=tw,Tw=rw,Mw=ow,kw=iw,td=aw,Pw=fw,Ow=mw,nd=vw,rd=bw,_w=xw,Nw=$w,od=Sw,Dw=Ew,Aw=Ow,Iw=Tw,id=u.forwardRef(({className:e,children:t,...n},r)=>A.jsx("div",{className:"rabbit-ds",children:A.jsxs(ed,{ref:r,className:Oe("rabbit-ds h-10 pr-3 py-2.5 rounded-tl text-sm rounded-tr border-b border-dashed hover:border-solid border-zinc-800 justify-between items-center gap-2 inline-flex focus:outline-none focus:border-solid disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,A.jsx(Mw,{asChild:!0,children:A.jsx(Yc,{className:"h-4 w-4"})})]})}));id.displayName=ed.displayName;const ad=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>A.jsx(kw,{children:A.jsx(td,{ref:o,className:Oe("relative z-[1500] rabbit-ds min-w-[8rem] max-w-xs p-1 bg-white rounded-lg shadow flex-col justify-start items-start gap-1 inline-flex 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:A.jsx(Pw,{className:Oe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));ad.displayName=td.displayName;const sd=u.forwardRef(({className:e,...t},n)=>A.jsx(nd,{ref:n,className:Oe("py-1.5 px-2 text-sm font-semibold",e),...t}));sd.displayName=nd.displayName;const ld=u.forwardRef(({className:e,children:t,...n},r)=>A.jsxs(rd,{ref:r,className:Oe("relative flex w-full my-1 cursor-default select-none p-2 bg-white rounded flex-col hover:bg-sky-100 hover:text-sky-800 hover:cursor-pointer justify-start items-start text-zinc-800 text-sm font-normal leading-tight focus:bg-sky-100 focus:text-sky-800 data-[state=checked]:bg-sky-100 data-[state=checked]:text-sky-800 focus:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[A.jsx("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:A.jsx(Nw,{children:A.jsx(pa,{className:"h-4 w-4 text-sky-800"})})}),A.jsx(_w,{children:t})]}));ld.displayName=rd.displayName;const cd=u.forwardRef(({className:e,...t},n)=>A.jsx(od,{ref:n,className:Oe("-mx-1 my-1 h-px bg-muted",e),...t}));cd.displayName=od.displayName;const[Qo,_3]=_t("Tooltip",[qn]),os=qn(),Lw="TooltipProvider",Fw=700,is="tooltip.open",[jw,as]=Qo(Lw),zw=e=>{const{__scopeTooltip:t,delayDuration:n=Fw,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=u.useState(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),u.createElement(jw,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},i)},ss="Tooltip",[Bw,Dr]=Qo(ss),Ww=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=as(ss,e.__scopeTooltip),c=os(t),[f,d]=u.useState(null),p=Nt(),g=u.useRef(0),h=a??l.disableHoverableContent,m=s??l.delayDuration,x=u.useRef(!1),[y=!1,b]=$t({prop:r,defaultProp:o,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(is))):l.onClose(),i==null||i(O)}}),$=u.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=u.useCallback(()=>{window.clearTimeout(g.current),x.current=!1,b(!0)},[b]),w=u.useCallback(()=>{window.clearTimeout(g.current),b(!1)},[b]),T=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,b(!0)},m)},[m,b]);return u.useEffect(()=>()=>window.clearTimeout(g.current),[]),u.createElement(Io,c,u.createElement(Bw,{scope:t,contentId:p,open:y,stateAttribute:$,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayed?T():E()},[l.isOpenDelayed,T,E]),onTriggerLeave:u.useCallback(()=>{h?w():window.clearTimeout(g.current)},[w,h]),onOpen:E,onClose:w,disableHoverableContent:h},n))},ud="TooltipTrigger",Uw=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dr(ud,n),i=as(ud,n),a=os(n),s=u.useRef(null),l=Ie(t,s,o.onTriggerChange),c=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),u.createElement(Da,Q({asChild:!0},a),u.createElement(Ee.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:he(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:he(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:he(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:he(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:he(e.onBlur,o.onClose),onClick:he(e.onClick,o.onClose)})))}),fd="TooltipPortal",[Hw,Gw]=Qo(fd,{forceMount:void 0}),Vw=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Dr(fd,t);return u.createElement(Hw,{scope:t,forceMount:n},u.createElement(Rt,{present:n||i.open},u.createElement(Ia,{asChild:!0,container:o},r)))},Ar="TooltipContent",qw=u.forwardRef((e,t)=>{const n=Gw(Ar,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Dr(Ar,e.__scopeTooltip);return u.createElement(Rt,{present:r||a.open},a.disableHoverableContent?u.createElement(dd,Q({side:o},i,{ref:t})):u.createElement(Yw,Q({side:o},i,{ref:t})))}),Yw=u.forwardRef((e,t)=>{const n=Dr(Ar,e.__scopeTooltip),r=as(Ar,e.__scopeTooltip),o=u.useRef(null),i=Ie(t,o),[a,s]=u.useState(null),{trigger:l,onClose:c}=n,f=o.current,{onPointerInTransitChange:d}=r,p=u.useCallback(()=>{s(null),d(!1)},[d]),g=u.useCallback((h,m)=>{const x=h.currentTarget,y={x:h.clientX,y:h.clientY},b=Xw(y,x.getBoundingClientRect()),$=Rw(y,b),E=Zw(m.getBoundingClientRect()),w=Jw([...$,...E]);s(w),d(!0)},[d]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(l&&f){const h=x=>g(x,f),m=x=>g(x,l);return l.addEventListener("pointerleave",h),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",h),f.removeEventListener("pointerleave",m)}}},[l,f,g,p]),u.useEffect(()=>{if(a){const h=m=>{const x=m.target,y={x:m.clientX,y:m.clientY},b=(l==null?void 0:l.contains(x))||(f==null?void 0:f.contains(x)),$=!Qw(y,a);b?p():$&&(p(),c())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[l,f,a,c,p]),u.createElement(dd,Q({},e,{ref:i}))}),[Kw,N3]=Qo(ss,{isInside:!1}),dd=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=Dr(Ar,n),c=os(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(is,f),()=>document.removeEventListener(is,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=p=>{const g=p.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),u.createElement(wa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:f},u.createElement(Aa,Q({"data-state":l.stateAttribute},c,s,{ref:t,style:{...s.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)"}}),u.createElement(Uc,null,r),u.createElement(Kw,{scope:n,isInside:!0},u.createElement(qx,{id:l.contentId,role:"tooltip"},o||r))))});function Xw(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Rw(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 Zw(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 Qw(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,l=t[i].y,c=t[a].x,f=t[a].y;l>r!=f>r&&n<(c-s)*(r-l)/(f-l)+s&&(o=!o)}return o}function Jw(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),e1(t)}function e1(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 i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.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 i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.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)}const t1=zw,n1=Ww,r1=Uw,o1=Vw,pd=qw,hd=t1,md=n1,gd=r1,vd=o1,ls=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>A.jsx(pd,{ref:r,sideOffset:t,className:Oe("z-[1500] overflow-hidden p-2 bg-gray-600 max-w-xs rounded transition-opacity justify-start items-start inline-flex text-center text-white text-xs 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",e,"rabbit-ds"),...n}));ls.displayName=pd.displayName;var Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var cs={exports:{}},Jo={exports:{}},Me={};/** @license React v16.13.1
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|