@meridianjs/admin-dashboard 2.3.0 → 2.5.0
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.
- package/dist/assets/{HealthReportDetailPage-DNOCBj2U.js → HealthReportDetailPage-BnbwSofC.js} +1 -1
- package/dist/assets/{ProjectHealthPage-3V_xKn6W.js → ProjectHealthPage-PS6VkG7W.js} +1 -1
- package/dist/assets/{ProjectTimelinePage-TWQPJXGx.js → ProjectTimelinePage-D_czpk_S.js} +1 -1
- package/dist/assets/TimesheetPage-6UnqmNp6.js +1 -0
- package/dist/assets/WorkspaceReportingPage-wabKIlNf.js +1 -0
- package/dist/assets/{index-WcKp7086.js → index-BJplLsFj.js} +84 -84
- package/dist/assets/index-CtNZDbOa.css +1 -0
- package/dist/assets/{parseISO-BdsFsZH4.js → parseISO-C88XEjzj.js} +1 -1
- package/dist/assets/{vendor-editor-Cvk1s7Hk.js → vendor-editor-Cu5gNfTV.js} +1 -1
- package/dist/assets/vendor-query-BildmsPY.js +9 -0
- package/dist/assets/{vendor-radix-Bt8AkWnj.js → vendor-radix-B5umFwGL.js} +1 -1
- package/dist/index.html +5 -5
- package/package.json +1 -1
- package/dist/assets/WorkspaceReportingPage-EtA8B4LZ.js +0 -1
- package/dist/assets/index-N1f83ywp.css +0 -1
- package/dist/assets/vendor-query-CaIGp3JB.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,a as at,R as Wn,b as nc,c as Me}from"./vendor-react-Lycsri1F.js";import{j as m}from"./vendor-query-CaIGp3JB.js";function P(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function mr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z(...e){return t=>{let n=!1;const r=e.map(o=>{const s=mr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():mr(e[o],null)}}}}function $(...e){return i.useCallback(Z(...e),e)}function rc(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=f=>{var x;const{scope:p,children:v,...g}=f,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||c,y=i.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:y,children:v})};u.displayName=s+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[e])==null?void 0:h[l])||c,g=i.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,oc(o,...t)]}function oc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function sc(e){const t=ic(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(ac);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ic(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=uc(o),c=lc(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cc=Symbol("radix.slottable");function ac(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cc}function lc(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function uc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hr=fc.reduce((e,t)=>{const n=sc(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dc(e,t){e&&at.flushSync(()=>e.dispatchEvent(t))}function X(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function pc(e,t=globalThis==null?void 0:globalThis.document){const n=X(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var mc="DismissableLayer",Pn="dismissableLayer.update",hc="dismissableLayer.pointerDownOutside",vc="dismissableLayer.focusOutside",hr,Ur=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xe=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(Ur),[d,f]=i.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),g=$(t,b=>f(b)),h=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(y),w=d?h.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=w>=x,E=xc(b=>{const A=b.target,T=[...u.branches].some(O=>O.contains(A));!C||T||(o==null||o(b),a==null||a(b),b.defaultPrevented||c==null||c())},p),R=wc(b=>{const A=b.target;[...u.branches].some(O=>O.contains(A))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},p);return pc(b=>{w===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},p),i.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hr=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=hr)}},[d,p,n,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vr())},[d,u]),i.useEffect(()=>{const b=()=>v({});return document.addEventListener(Pn,b),()=>document.removeEventListener(Pn,b)},[]),m.jsx(Hr.div,{...l,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,R.onFocusCapture),onBlurCapture:P(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,E.onPointerDownCapture)})});Xe.displayName=mc;var gc="DismissableLayerBranch",yc=i.forwardRef((e,t)=>{const n=i.useContext(Ur),r=i.useRef(null),o=$(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(Hr.div,{...e,ref:o})});yc.displayName=gc;function xc(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let l=function(){Kr(hc,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wc(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Kr(vc,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vr(){const e=new CustomEvent(Pn);document.dispatchEvent(e)}function Kr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?dc(o,s):o.dispatchEvent(s)}var Y=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Sc=Wn[" useId ".trim().toString()]||(()=>{}),Cc=0;function re(e){const[t,n]=i.useState(Sc());return Y(()=>{n(r=>r??String(Cc++))},[e]),t?`radix-${t}`:""}const bc=["top","right","bottom","left"],Pe=Math.min,ne=Math.max,Dt=Math.round,Pt=Math.floor,ve=e=>({x:e,y:e}),Ec={left:"right",right:"left",bottom:"top",top:"bottom"},Pc={start:"end",end:"start"};function Rn(e,t,n){return ne(e,Pe(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Vn(e){return e==="x"?"y":"x"}function Bn(e){return e==="y"?"height":"width"}const Rc=new Set(["top","bottom"]);function he(e){return Rc.has(be(e))?"y":"x"}function Hn(e){return Vn(he(e))}function _c(e,t,n){n===void 0&&(n=!1);const r=Ze(e),o=Hn(e),s=Bn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=$t(a)),[a,$t(a)]}function Ac(e){const t=$t(e);return[_n(e),t,_n(t)]}function _n(e){return e.replace(/start|end/g,t=>Pc[t])}const gr=["left","right"],yr=["right","left"],Tc=["top","bottom"],Oc=["bottom","top"];function Nc(e,t,n){switch(e){case"top":case"bottom":return n?t?yr:gr:t?gr:yr;case"left":case"right":return t?Tc:Oc;default:return[]}}function Ic(e,t,n,r){const o=Ze(e);let s=Nc(be(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(_n)))),s}function $t(e){return e.replace(/left|right|bottom|top/g,t=>Ec[t])}function Mc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gr(e){return typeof e!="number"?Mc(e):{top:e,right:e,bottom:e,left:e}}function jt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function xr(e,t,n){let{reference:r,floating:o}=e;const s=he(t),a=Hn(t),c=Bn(a),l=be(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[c]/2-o[c]/2;let v;switch(l){case"top":v={x:d,y:r.y-o.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(Ze(t)){case"start":v[a]-=p*(n&&u?-1:1);break;case"end":v[a]+=p*(n&&u?-1:1);break}return v}async function Dc(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=Ce(t,e),g=Gr(v),y=c[p?f==="floating"?"reference":"floating":f],x=jt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},E=jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:S,strategy:l}):w);return{top:(x.top-E.top+g.top)/C.y,bottom:(E.bottom-x.bottom+g.bottom)/C.y,left:(x.left-E.left+g.left)/C.x,right:(E.right-x.right+g.right)/C.x}}const $c=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=xr(u,r,l),p=r,v={},g=0;for(let y=0;y<c.length;y++){var h;const{name:x,fn:w}=c[y],{x:S,y:C,data:E,reset:R}=await w({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:u,platform:{...a,detectOverflow:(h=a.detectOverflow)!=null?h:Dc},elements:{reference:e,floating:t}});d=S??d,f=C??f,v={...v,[x]:{...v[x],...E}},R&&g<=50&&(g++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:f}=xr(u,p,l)),y=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:v}},jc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=Ce(e,t)||{};if(u==null)return{};const f=Gr(d),p={x:n,y:r},v=Hn(o),g=Bn(v),h=await a.getDimensions(u),y=v==="y",x=y?"top":"left",w=y?"bottom":"right",S=y?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[v]-p[v]-s.floating[g],E=p[v]-s.reference[v],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let b=R?R[S]:0;(!b||!await(a.isElement==null?void 0:a.isElement(R)))&&(b=c.floating[S]||s.floating[g]);const A=C/2-E/2,T=b/2-h[g]/2-1,O=Pe(f[x],T),D=Pe(f[w],T),L=O,F=b-h[g]-D,j=b/2-h[g]/2+A,U=Rn(L,j,F),M=!l.arrow&&Ze(o)!=null&&j!==U&&s.reference[g]/2-(j<L?O:D)-h[g]/2<0,k=M?j<L?j-L:j-F:0;return{[v]:p[v]+k,data:{[v]:U,centerOffset:j-U-k,...M&&{alignmentOffset:k}},reset:M}}}),Lc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=Ce(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=be(o),w=he(c),S=be(c)===c,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=p||(S||!h?[$t(c)]:Ac(c)),R=g!=="none";!p&&R&&E.push(...Ic(c,h,g,C));const b=[c,...E],A=await l.detectOverflow(t,y),T=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&T.push(A[x]),f){const j=_c(o,a,C);T.push(A[j[0]],A[j[1]])}if(O=[...O,{placement:o,overflows:T}],!T.every(j=>j<=0)){var D,L;const j=(((D=s.flip)==null?void 0:D.index)||0)+1,U=b[j];if(U&&(!(f==="alignment"?w!==he(U):!1)||O.every(N=>he(N.placement)===w?N.overflows[0]>0:!0)))return{data:{index:j,overflows:O},reset:{placement:U}};let M=(L=O.filter(k=>k.overflows[0]<=0).sort((k,N)=>k.overflows[1]-N.overflows[1])[0])==null?void 0:L.placement;if(!M)switch(v){case"bestFit":{var F;const k=(F=O.filter(N=>{if(R){const _=he(N.placement);return _===w||_==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(_=>_>0).reduce((_,K)=>_+K,0)]).sort((N,_)=>N[1]-_[1])[0])==null?void 0:F[0];k&&(M=k);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function wr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sr(e){return bc.some(t=>e[t]>=0)}const Fc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Ce(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=wr(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Sr(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),c=wr(a,n.floating);return{data:{escapedOffsets:c,escaped:Sr(c)}}}default:return{}}}}},zr=new Set(["left","top"]);async function kc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=be(n),c=Ze(n),l=he(n)==="y",u=zr.has(a)?-1:1,d=s&&l?-1:1,f=Ce(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(v=c==="end"?g*-1:g),l?{x:v*d,y:p*u}:{x:p*u,y:v*d}}const Wc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,l=await kc(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Vc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:w,y:S}=x;return{x:w,y:S}}},...u}=Ce(e,t),d={x:n,y:r},f=await s.detectOverflow(t,u),p=he(be(o)),v=Vn(p);let g=d[v],h=d[p];if(a){const x=v==="y"?"top":"left",w=v==="y"?"bottom":"right",S=g+f[x],C=g-f[w];g=Rn(S,g,C)}if(c){const x=p==="y"?"top":"left",w=p==="y"?"bottom":"right",S=h+f[x],C=h-f[w];h=Rn(S,h,C)}const y=l.fn({...t,[v]:g,[p]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[v]:a,[p]:c}}}}}},Bc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Ce(e,t),d={x:n,y:r},f=he(o),p=Vn(f);let v=d[p],g=d[f];const h=Ce(c,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const S=p==="y"?"height":"width",C=s.reference[p]-s.floating[S]+y.mainAxis,E=s.reference[p]+s.reference[S]-y.mainAxis;v<C?v=C:v>E&&(v=E)}if(u){var x,w;const S=p==="y"?"width":"height",C=zr.has(be(o)),E=s.reference[f]-s.floating[S]+(C&&((x=a.offset)==null?void 0:x[f])||0)+(C?0:y.crossAxis),R=s.reference[f]+s.reference[S]+(C?0:((w=a.offset)==null?void 0:w[f])||0)-(C?y.crossAxis:0);g<E?g=E:g>R&&(g=R)}return{[p]:v,[f]:g}}}},Hc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...u}=Ce(e,t),d=await a.detectOverflow(t,u),f=be(o),p=Ze(o),v=he(o)==="y",{width:g,height:h}=s.floating;let y,x;f==="top"||f==="bottom"?(y=f,x=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=f,y=p==="end"?"top":"bottom");const w=h-d.top-d.bottom,S=g-d.left-d.right,C=Pe(h-d[y],w),E=Pe(g-d[x],S),R=!t.middlewareData.shift;let b=C,A=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=w),R&&!p){const O=ne(d.left,0),D=ne(d.right,0),L=ne(d.top,0),F=ne(d.bottom,0);v?A=g-2*(O!==0||D!==0?O+D:ne(d.left,d.right)):b=h-2*(L!==0||F!==0?L+F:ne(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:b});const T=await a.getDimensions(c.floating);return g!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Kt(){return typeof window<"u"}function qe(e){return Yr(e)?(e.nodeName||"").toLowerCase():"#document"}function oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(Yr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yr(e){return Kt()?e instanceof Node||e instanceof oe(e).Node:!1}function ue(e){return Kt()?e instanceof Element||e instanceof oe(e).Element:!1}function ge(e){return Kt()?e instanceof HTMLElement||e instanceof oe(e).HTMLElement:!1}function Cr(e){return!Kt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof oe(e).ShadowRoot}const Uc=new Set(["inline","contents"]);function lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Uc.has(o)}const Kc=new Set(["table","td","th"]);function Gc(e){return Kc.has(qe(e))}const zc=[":popover-open",":modal"];function Gt(e){return zc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yc=["transform","translate","scale","rotate","perspective"],Xc=["transform","translate","scale","rotate","perspective","filter"],Zc=["paint","layout","strict","content"];function Un(e){const t=Kn(),n=ue(e)?fe(e):e;return Yc.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xc.some(r=>(n.willChange||"").includes(r))||Zc.some(r=>(n.contain||"").includes(r))}function qc(e){let t=Re(e);for(;ge(t)&&!Ue(t);){if(Un(t))return t;if(Gt(t))return null;t=Re(t)}return null}function Kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qc=new Set(["html","body","#document"]);function Ue(e){return Qc.has(qe(e))}function fe(e){return oe(e).getComputedStyle(e)}function zt(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Re(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cr(e)&&e.host||ye(e);return Cr(t)?t.host:t}function Xr(e){const t=Re(e);return Ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&<(t)?t:Xr(t)}function ot(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=oe(o);if(s){const c=An(a);return t.concat(a,a.visualViewport||[],lt(o)?o:[],c&&n?ot(c):[])}return t.concat(o,ot(o,[],n))}function An(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zr(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Dt(n)!==s||Dt(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function Gn(e){return ue(e)?e:e.contextElement}function Be(e){const t=Gn(e);if(!ge(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Zr(t);let a=(s?Dt(n.width):n.width)/r,c=(s?Dt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Jc=ve(0);function qr(e){const t=oe(e);return!Kn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ea(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==oe(e)?!1:t}function De(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Gn(e);let a=ve(1);t&&(r?ue(r)&&(a=Be(r)):a=Be(e));const c=ea(s,n,r)?qr(s):ve(0);let l=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const p=oe(s),v=r&&ue(r)?oe(r):r;let g=p,h=An(g);for(;h&&r&&v!==g;){const y=Be(h),x=h.getBoundingClientRect(),w=fe(h),S=x.left+(h.clientLeft+parseFloat(w.paddingLeft))*y.x,C=x.top+(h.clientTop+parseFloat(w.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,f*=y.y,l+=S,u+=C,g=oe(h),h=An(g)}}return jt({width:d,height:f,x:l,y:u})}function Yt(e,t){const n=zt(e).scrollLeft;return t?t.left+n:De(ye(e)).left+n}function Qr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Yt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ta(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ye(r),c=t?Gt(t.floating):!1;if(r===a||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=ve(1);const d=ve(0),f=ge(r);if((f||!f&&!s)&&((qe(r)!=="body"||lt(a))&&(l=zt(r)),ge(r))){const v=De(r);u=Be(r),d.x=v.x+r.clientLeft,d.y=v.y+r.clientTop}const p=a&&!f&&!s?Qr(a,l):ve(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function na(e){return Array.from(e.getClientRects())}function ra(e){const t=ye(e),n=zt(e),r=e.ownerDocument.body,o=ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Yt(e);const c=-n.scrollTop;return fe(r).direction==="rtl"&&(a+=ne(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const br=25;function oa(e,t){const n=oe(e),r=ye(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){s=o.width,a=o.height;const d=Kn();(!d||d&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}const u=Yt(r);if(u<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),v=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-v);g<=br&&(s-=g)}else u<=br&&(s+=u);return{width:s,height:a,x:c,y:l}}const sa=new Set(["absolute","fixed"]);function ia(e,t){const n=De(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ge(e)?Be(e):ve(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:a,height:c,x:l,y:u}}function Er(e,t,n){let r;if(t==="viewport")r=oa(e,n);else if(t==="document")r=ra(ye(e));else if(ue(t))r=ia(t,n);else{const o=qr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return jt(r)}function Jr(e,t){const n=Re(e);return n===t||!ue(n)||Ue(n)?!1:fe(n).position==="fixed"||Jr(n,t)}function ca(e,t){const n=t.get(e);if(n)return n;let r=ot(e,[],!1).filter(c=>ue(c)&&qe(c)!=="body"),o=null;const s=fe(e).position==="fixed";let a=s?Re(e):e;for(;ue(a)&&!Ue(a);){const c=fe(a),l=Un(a);!l&&c.position==="fixed"&&(o=null),(s?!l&&!o:!l&&c.position==="static"&&!!o&&sa.has(o.position)||lt(a)&&!l&&Jr(e,a))?r=r.filter(d=>d!==a):o=c,a=Re(a)}return t.set(e,r),r}function aa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Gt(t)?[]:ca(t,this._c):[].concat(n),r],c=a[0],l=a.reduce((u,d)=>{const f=Er(t,d,o);return u.top=ne(f.top,u.top),u.right=Pe(f.right,u.right),u.bottom=Pe(f.bottom,u.bottom),u.left=ne(f.left,u.left),u},Er(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function la(e){const{width:t,height:n}=Zr(e);return{width:t,height:n}}function ua(e,t,n){const r=ge(t),o=ye(t),s=n==="fixed",a=De(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=ve(0);function u(){l.x=Yt(o)}if(r||!r&&!s)if((qe(t)!=="body"||lt(o))&&(c=zt(t)),r){const v=De(t,!0,s,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Qr(o,c):ve(0),f=a.left+c.scrollLeft-l.x-d.x,p=a.top+c.scrollTop-l.y-d.y;return{x:f,y:p,width:a.width,height:a.height}}function mn(e){return fe(e).position==="static"}function Pr(e,t){if(!ge(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function eo(e,t){const n=oe(e);if(Gt(e))return n;if(!ge(e)){let o=Re(e);for(;o&&!Ue(o);){if(ue(o)&&!mn(o))return o;o=Re(o)}return n}let r=Pr(e,t);for(;r&&Gc(r)&&mn(r);)r=Pr(r,t);return r&&Ue(r)&&mn(r)&&!Un(r)?n:r||qc(e)||n}const fa=async function(e){const t=this.getOffsetParent||eo,n=this.getDimensions,r=await n(e.floating);return{reference:ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function da(e){return fe(e).direction==="rtl"}const pa={convertOffsetParentRelativeRectToViewportRelativeRect:ta,getDocumentElement:ye,getClippingRect:aa,getOffsetParent:eo,getElementRects:fa,getClientRects:na,getDimensions:la,getScale:Be,isElement:ue,isRTL:da};function to(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ma(e,t){let n=null,r;const o=ye(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:v}=u;if(c||t(),!p||!v)return;const g=Pt(f),h=Pt(o.clientWidth-(d+p)),y=Pt(o.clientHeight-(f+v)),x=Pt(d),S={rootMargin:-g+"px "+-h+"px "+-y+"px "+-x+"px",threshold:ne(0,Pe(1,l))||1};let C=!0;function E(R){const b=R[0].intersectionRatio;if(b!==l){if(!C)return a();b?a(!1,b):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b===1&&!to(u,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(E,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return a(!0),s}function ha(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Gn(e),d=o||s?[...u?ot(u):[],...ot(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const f=u&&c?ma(u,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(x=>{let[w]=x;w&&w.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=v)==null||S.observe(t)})),n()}),u&&!l&&v.observe(u),v.observe(t));let g,h=l?De(e):null;l&&y();function y(){const x=De(e);h&&!to(h,x)&&n(),h=x,g=requestAnimationFrame(y)}return n(),()=>{var x;d.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(x=v)==null||x.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const va=Wc,ga=Vc,ya=Lc,xa=Hc,wa=Fc,Rr=jc,Sa=Bc,Ca=(e,t,n)=>{const r=new Map,o={platform:pa,...n},s={...o.platform,_c:r};return $c(e,t,{...o,platform:s})};var ba=typeof document<"u",Ea=function(){},Nt=ba?i.useLayoutEffect:Ea;function Lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function no(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _r(e,t){const n=no(e);return Math.round(t*n)/n}function hn(e){const t=i.useRef(e);return Nt(()=>{t.current=e}),t}function Pa(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=i.useState(r);Lt(p,r)||v(r);const[g,h]=i.useState(null),[y,x]=i.useState(null),w=i.useCallback(N=>{N!==R.current&&(R.current=N,h(N))},[]),S=i.useCallback(N=>{N!==b.current&&(b.current=N,x(N))},[]),C=s||g,E=a||y,R=i.useRef(null),b=i.useRef(null),A=i.useRef(d),T=l!=null,O=hn(l),D=hn(o),L=hn(u),F=i.useCallback(()=>{if(!R.current||!b.current)return;const N={placement:t,strategy:n,middleware:p};D.current&&(N.platform=D.current),Ca(R.current,b.current,N).then(_=>{const K={..._,isPositioned:L.current!==!1};j.current&&!Lt(A.current,K)&&(A.current=K,at.flushSync(()=>{f(K)}))})},[p,t,n,D,L]);Nt(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);const j=i.useRef(!1);Nt(()=>(j.current=!0,()=>{j.current=!1}),[]),Nt(()=>{if(C&&(R.current=C),E&&(b.current=E),C&&E){if(O.current)return O.current(C,E,F);F()}},[C,E,F,O,T]);const U=i.useMemo(()=>({reference:R,floating:b,setReference:w,setFloating:S}),[w,S]),M=i.useMemo(()=>({reference:C,floating:E}),[C,E]),k=i.useMemo(()=>{const N={position:n,left:0,top:0};if(!M.floating)return N;const _=_r(M.floating,d.x),K=_r(M.floating,d.y);return c?{...N,transform:"translate("+_+"px, "+K+"px)",...no(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:K}},[n,c,M.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:F,refs:U,elements:M,floatingStyles:k}),[d,F,U,M,k])}const Ra=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Rr({element:r.current,padding:o}).fn(n):{}:r?Rr({element:r,padding:o}).fn(n):{}}}},_a=(e,t)=>({...va(e),options:[e,t]}),Aa=(e,t)=>({...ga(e),options:[e,t]}),Ta=(e,t)=>({...Sa(e),options:[e,t]}),Oa=(e,t)=>({...ya(e),options:[e,t]}),Na=(e,t)=>({...xa(e),options:[e,t]}),Ia=(e,t)=>({...wa(e),options:[e,t]}),Ma=(e,t)=>({...Ra(e),options:[e,t]});function Da(e){const t=$a(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(La);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function $a(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=ka(o),c=Fa(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ja=Symbol("radix.slottable");function La(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ja}function Fa(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ka(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Va=Wa.reduce((e,t)=>{const n=Da(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ba="Arrow",ro=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return m.jsx(Va.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});ro.displayName=Ba;var Ha=ro;function Ua(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=f=>{var x;const{scope:p,children:v,...g}=f,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||c,y=i.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:y,children:v})};u.displayName=s+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[e])==null?void 0:h[l])||c,g=i.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Ka(o,...t)]}function Ka(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ga(e){const t=za(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Xa);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function za(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=qa(o),c=Za(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ya=Symbol("radix.slottable");function Xa(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ya}function Za(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oo=Qa.reduce((e,t)=>{const n=Ga(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ja(e){const[t,n]=i.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zn="Popper",[so,Ae]=Ua(zn),[el,io]=so(zn),co=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return m.jsx(el,{scope:t,anchor:r,onAnchorChange:o,children:n})};co.displayName=zn;var ao="PopperAnchor",lo=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=io(ao,n),a=i.useRef(null),c=$(t,a),l=i.useRef(null);return i.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:m.jsx(oo.div,{...o,ref:c})});lo.displayName=ao;var Yn="PopperContent",[tl,nl]=so(Yn),uo=i.forwardRef((e,t)=>{var I,V,G,W,B,H;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...h}=e,y=io(Yn,n),[x,w]=i.useState(null),S=$(t,te=>w(te)),[C,E]=i.useState(null),R=Ja(C),b=(R==null?void 0:R.width)??0,A=(R==null?void 0:R.height)??0,T=r+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],L=D.length>0,F={padding:O,boundary:D.filter(ol),altBoundary:L},{refs:j,floatingStyles:U,placement:M,isPositioned:k,middlewareData:N}=Pa({strategy:"fixed",placement:T,whileElementsMounted:(...te)=>ha(...te,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[_a({mainAxis:o+A,alignmentAxis:a}),l&&Aa({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Ta():void 0,...F}),l&&Oa({...F}),Na({...F,apply:({elements:te,rects:pe,availableWidth:Je,availableHeight:et})=>{const{width:tt,height:tc}=pe.reference,Et=te.floating.style;Et.setProperty("--radix-popper-available-width",`${Je}px`),Et.setProperty("--radix-popper-available-height",`${et}px`),Et.setProperty("--radix-popper-anchor-width",`${tt}px`),Et.setProperty("--radix-popper-anchor-height",`${tc}px`)}}),C&&Ma({element:C,padding:c}),sl({arrowWidth:b,arrowHeight:A}),p&&Ia({strategy:"referenceHidden",...F})]}),[_,K]=mo(M),z=X(g);Y(()=>{k&&(z==null||z())},[k,z]);const J=(I=N.arrow)==null?void 0:I.x,we=(V=N.arrow)==null?void 0:V.y,ie=((G=N.arrow)==null?void 0:G.centerOffset)!==0,[Se,ee]=i.useState();return Y(()=>{x&&ee(window.getComputedStyle(x).zIndex)},[x]),m.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:k?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(W=N.transformOrigin)==null?void 0:W.x,(B=N.transformOrigin)==null?void 0:B.y].join(" "),...((H=N.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(tl,{scope:n,placedSide:_,onArrowChange:E,arrowX:J,arrowY:we,shouldHideArrow:ie,children:m.jsx(oo.div,{"data-side":_,"data-align":K,...h,ref:S,style:{...h.style,animation:k?void 0:"none"}})})})});uo.displayName=Yn;var fo="PopperArrow",rl={top:"bottom",right:"left",bottom:"top",left:"right"},po=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=nl(fo,r),a=rl[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:m.jsx(Ha,{...o,ref:n,style:{...o.style,display:"block"}})})});po.displayName=fo;function ol(e){return e!==null}var sl=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:n,rects:r,middlewareData:o}=t,a=((y=o.arrow)==null?void 0:y.centerOffset)!==0,c=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=mo(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let g="",h="";return u==="bottom"?(g=a?f:`${p}px`,h=`${-l}px`):u==="top"?(g=a?f:`${p}px`,h=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,h=a?f:`${v}px`):u==="left"&&(g=`${r.floating.width+l}px`,h=a?f:`${v}px`),{data:{x:g,y:h}}}});function mo(e){const[t,n="center"]=e.split("-");return[t,n]}var ut=co,ft=lo,Xt=uo,Zt=po;function il(e){const t=cl(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(ll);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function cl(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=fl(o),c=ul(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var al=Symbol("radix.slottable");function ll(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===al}function ul(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pl=dl.reduce((e,t)=>{const n=il(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ml="Portal",dt=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);Y(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?nc.createPortal(m.jsx(pl.div,{...r,ref:t}),a):null});dt.displayName=ml;function hl(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Q=e=>{const{present:t,children:n}=e,r=vl(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=$(r.ref,gl(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Q.displayName="Presence";function vl(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=hl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Rt(r.current);s.current=c==="mounted"?u:"none"},[c]),Y(()=>{const u=r.current,d=o.current;if(d!==e){const p=s.current,v=Rt(u);e?l("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Y(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=v=>{const h=Rt(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&h&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=v=>{v.target===t&&(s.current=Rt(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Rt(e){return(e==null?void 0:e.animationName)||"none"}function gl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function yl(e){const t=xl(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Sl);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function xl(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=bl(o),c=Cl(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ho=Symbol("radix.slottable");function wl(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ho,t}function Sl(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ho}function Cl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var El=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pl=El.reduce((e,t)=>{const n=yl(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Rl=Wn[" useInsertionEffect ".trim().toString()]||Y;function _e({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=_l({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const d=i.useRef(e!==void 0);i.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}const u=i.useCallback(d=>{var f;if(c){const p=Al(d)?d(e):d;p!==e&&((f=a.current)==null||f.call(a,p))}else s(d)},[c,e,s,a]);return[l,u]}function _l({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return Rl(()=>{s.current=t},[t]),i.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Al(e){return typeof e=="function"}function Tl(e){const t=Ol(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Il);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ol(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Dl(o),c=Ml(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nl=Symbol("radix.slottable");function Il(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nl}function Ml(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Dl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jl=$l.reduce((e,t)=>{const n=Tl(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ll="VisuallyHidden",go=i.forwardRef((e,t)=>m.jsx(jl.span,{...e,ref:t,style:{...vo,...e.style}}));go.displayName=Ll;var Fl=go,[qt]=rc("Tooltip",[Ae]),Qt=Ae(),yo="TooltipProvider",kl=700,Tn="tooltip.open",[Wl,Xn]=qt(yo),xo=e=>{const{__scopeTooltip:t,delayDuration:n=kl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=i.useRef(!0),c=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),m.jsx(Wl,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:i.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:s})};xo.displayName=yo;var st="Tooltip",[Vl,Jt]=qt(st),wo=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=Xn(st,e.__scopeTooltip),u=Qt(t),[d,f]=i.useState(null),p=re(),v=i.useRef(0),g=a??l.disableHoverableContent,h=c??l.delayDuration,y=i.useRef(!1),[x,w]=_e({prop:r,defaultProp:o??!1,onChange:b=>{b?(l.onOpen(),document.dispatchEvent(new CustomEvent(Tn))):l.onClose(),s==null||s(b)},caller:st}),S=i.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),C=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,w(!1)},[w]),R=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,w(!0),v.current=0},h)},[h,w]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),m.jsx(ut,{...u,children:m.jsx(Vl,{scope:t,contentId:p,open:x,stateAttribute:S,trigger:d,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayedRef.current?R():C()},[l.isOpenDelayedRef,R,C]),onTriggerLeave:i.useCallback(()=>{g?E():(window.clearTimeout(v.current),v.current=0)},[E,g]),onOpen:C,onClose:E,disableHoverableContent:g,children:n})})};wo.displayName=st;var On="TooltipTrigger",So=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Jt(On,n),s=Xn(On,n),a=Qt(n),c=i.useRef(null),l=$(t,c,o.onTriggerChange),u=i.useRef(!1),d=i.useRef(!1),f=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),m.jsx(ft,{asChild:!0,...a,children:m.jsx(Pl.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:P(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:P(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:P(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:P(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:P(e.onBlur,o.onClose),onClick:P(e.onClick,o.onClose)})})});So.displayName=On;var Bl="TooltipPortal",[mh,Hl]=qt(Bl,{forceMount:void 0}),Ke="TooltipContent",Co=i.forwardRef((e,t)=>{const n=Hl(Ke,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Jt(Ke,e.__scopeTooltip);return m.jsx(Q,{present:r||a.open,children:a.disableHoverableContent?m.jsx(bo,{side:o,...s,ref:t}):m.jsx(Ul,{side:o,...s,ref:t})})}),Ul=i.forwardRef((e,t)=>{const n=Jt(Ke,e.__scopeTooltip),r=Xn(Ke,e.__scopeTooltip),o=i.useRef(null),s=$(t,o),[a,c]=i.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,p=i.useCallback(()=>{c(null),f(!1)},[f]),v=i.useCallback((g,h)=>{const y=g.currentTarget,x={x:g.clientX,y:g.clientY},w=Xl(x,y.getBoundingClientRect()),S=Zl(x,w),C=ql(h.getBoundingClientRect()),E=Jl([...S,...C]);c(E),f(!0)},[f]);return i.useEffect(()=>()=>p(),[p]),i.useEffect(()=>{if(l&&d){const g=y=>v(y,d),h=y=>v(y,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",h)}}},[l,d,v,p]),i.useEffect(()=>{if(a){const g=h=>{const y=h.target,x={x:h.clientX,y:h.clientY},w=(l==null?void 0:l.contains(y))||(d==null?void 0:d.contains(y)),S=!Ql(x,a);w?p():S&&(p(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,a,u,p]),m.jsx(bo,{...e,ref:s})}),[Kl,Gl]=qt(st,{isInside:!1}),zl=wl("TooltipContent"),bo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=Jt(Ke,n),u=Qt(n),{onClose:d}=l;return i.useEffect(()=>(document.addEventListener(Tn,d),()=>document.removeEventListener(Tn,d)),[d]),i.useEffect(()=>{if(l.trigger){const f=p=>{const v=p.target;v!=null&&v.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),m.jsx(Xe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:m.jsxs(Xt,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(zl,{children:r}),m.jsx(Kl,{scope:n,isInside:!0,children:m.jsx(Fl,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Co.displayName=Ke;var Eo="TooltipArrow",Yl=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Qt(n);return Gl(Eo,n).isInside?null:m.jsx(Zt,{...o,...r,ref:t})});Yl.displayName=Eo;function Xl(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Zl(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 ql(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 Ql(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],u=c.x,d=c.y,f=l.x,p=l.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function Jl(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),eu(t)}function eu(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hh=xo,vh=wo,gh=So,yh=Co,tu=Symbol.for("react.lazy"),Ft=Wn[" use ".trim().toString()];function nu(e){return typeof e=="object"&&e!==null&&"then"in e}function Po(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===tu&&"_payload"in e&&nu(e._payload)}function Ro(e){const t=ru(e),n=i.forwardRef((r,o)=>{let{children:s,...a}=r;Po(s)&&typeof Ft=="function"&&(s=Ft(s._payload));const c=i.Children.toArray(s),l=c.find(su);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var xh=Ro("Slot");function ru(e){const t=i.forwardRef((n,r)=>{let{children:o,...s}=n;if(Po(o)&&typeof Ft=="function"&&(o=Ft(o._payload)),i.isValidElement(o)){const a=cu(o),c=iu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ou=Symbol("radix.slottable");function su(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ou}function iu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function cu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var au=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=au.reduce((e,t)=>{const n=Ro(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),lu="Separator",Ar="horizontal",uu=["horizontal","vertical"],_o=i.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ar,...o}=e,s=fu(r)?r:Ar,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return m.jsx(pt.div,{"data-orientation":s,...c,...o,ref:t})});_o.displayName=lu;function fu(e){return uu.includes(e)}var wh=_o;function du(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,l=i.useMemo(()=>c,Object.values(c));return m.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function pu(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=f=>{var x;const{scope:p,children:v,...g}=f,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||c,y=i.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:y,children:v})};u.displayName=s+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[e])==null?void 0:h[l])||c,g=i.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,mu(o,...t)]}function mu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function hu(e){const t=vu(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(yu);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function vu(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=wu(o),c=xu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gu=Symbol("radix.slottable");function yu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gu}function xu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function wu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Su=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cu=Su.reduce((e,t)=>{const n=hu(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vn="focusScope.autoFocusOnMount",gn="focusScope.autoFocusOnUnmount",Tr={bubbles:!1,cancelable:!0},bu="FocusScope",mt=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=X(o),d=X(s),f=i.useRef(null),p=$(t,h=>l(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let h=function(S){if(v.paused||!c)return;const C=S.target;c.contains(C)?f.current=C:Ee(f.current,{select:!0})},y=function(S){if(v.paused||!c)return;const C=S.relatedTarget;C!==null&&(c.contains(C)||Ee(f.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&Ee(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const w=new MutationObserver(x);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),w.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Nr.add(v);const h=document.activeElement;if(!c.contains(h)){const x=new CustomEvent(vn,Tr);c.addEventListener(vn,u),c.dispatchEvent(x),x.defaultPrevented||(Eu(Tu(Ao(c)),{select:!0}),document.activeElement===h&&Ee(c))}return()=>{c.removeEventListener(vn,u),setTimeout(()=>{const x=new CustomEvent(gn,Tr);c.addEventListener(gn,d),c.dispatchEvent(x),x.defaultPrevented||Ee(h??document.body,{select:!0}),c.removeEventListener(gn,d),Nr.remove(v)},0)}}},[c,u,d,v]);const g=i.useCallback(h=>{if(!n&&!r||v.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(y&&x){const w=h.currentTarget,[S,C]=Pu(w);S&&C?!h.shiftKey&&x===C?(h.preventDefault(),n&&Ee(S,{select:!0})):h.shiftKey&&x===S&&(h.preventDefault(),n&&Ee(C,{select:!0})):x===w&&h.preventDefault()}},[n,r,v.paused]);return m.jsx(Cu.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});mt.displayName=bu;function Eu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ee(r,{select:t}),document.activeElement!==n)return}function Pu(e){const t=Ao(e),n=Or(t,e),r=Or(t.reverse(),e);return[n,r]}function Ao(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Or(e,t){for(const n of e)if(!Ru(n,{upTo:t}))return n}function Ru(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _u(e){return e instanceof HTMLInputElement&&"select"in e}function Ee(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_u(e)&&t&&e.select()}}var Nr=Au();function Au(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ir(e,t),e.unshift(t)},remove(t){var n;e=Ir(e,t),(n=e[0])==null||n.resume()}}}function Ir(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Tu(e){return e.filter(t=>t.tagName!=="A")}function To(e){const t=Ou(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Iu);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ou(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Du(o),c=Mu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nu=Symbol("radix.slottable");function Iu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nu}function Mu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Du(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=$u.reduce((e,t)=>{const n=To(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),yn=0;function en(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mr()),document.body.insertAdjacentElement("beforeend",e[1]??Mr()),yn++,()=>{yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yn--}},[])}function Mr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},me.apply(this,arguments)};function Oo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ju(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var It="right-scroll-bar-position",Mt="width-before-scroll-bar",Lu="with-scroll-bars-hidden",Fu="--removed-body-scroll-bar-size";function xn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ku(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Wu=typeof window<"u"?i.useLayoutEffect:i.useEffect,Dr=new WeakMap;function Vu(e,t){var n=ku(null,function(r){return e.forEach(function(o){return xn(o,r)})});return Wu(function(){var r=Dr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||xn(c,null)}),s.forEach(function(c){o.has(c)||xn(c,a)})}Dr.set(n,e)},[e]),n}function Bu(e){return e}function Hu(e,t){t===void 0&&(t=Bu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function Uu(e){e===void 0&&(e={});var t=Hu(null);return t.options=me({async:!0,ssr:!1},e),t}var No=function(e){var t=e.sideCar,n=Oo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,me({},n))};No.isSideCarExport=!0;function Ku(e,t){return e.useMedium(t),No}var Io=Uu(),wn=function(){},tn=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:wn,onWheelCapture:wn,onTouchMoveCapture:wn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,h=e.inert,y=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,S=e.gapMode,C=Oo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,R=Vu([n,t]),b=me(me({},C),o);return i.createElement(i.Fragment,null,d&&i.createElement(E,{sideCar:Io,removeScrollBar:u,shards:f,noRelative:v,noIsolation:g,inert:h,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),a?i.cloneElement(i.Children.only(c),me(me({},b),{ref:R})):i.createElement(w,me({},b,{className:l,ref:R}),c))});tn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tn.classNames={fullWidth:Mt,zeroRight:It};var Gu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gu();return t&&e.setAttribute("nonce",t),e}function Yu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zu())&&(Yu(t,n),Xu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qu=function(){var e=Zu();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Mo=function(){var e=qu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qu={left:0,top:0,right:0,gap:0},Sn=function(e){return parseInt(e||"",10)||0},Ju=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Sn(n),Sn(r),Sn(o)]},ef=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qu;var t=Ju(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tf=Mo(),He="data-scroll-locked",nf=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{r as i,a as at,R as Wn,b as nc,c as Me}from"./vendor-react-Lycsri1F.js";import{j as m}from"./vendor-query-BildmsPY.js";function P(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function mr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z(...e){return t=>{let n=!1;const r=e.map(o=>{const s=mr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():mr(e[o],null)}}}}function $(...e){return i.useCallback(Z(...e),e)}function rc(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=f=>{var x;const{scope:p,children:v,...g}=f,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||c,y=i.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:y,children:v})};u.displayName=s+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[e])==null?void 0:h[l])||c,g=i.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,oc(o,...t)]}function oc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function sc(e){const t=ic(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(ac);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ic(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=uc(o),c=lc(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cc=Symbol("radix.slottable");function ac(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cc}function lc(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function uc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hr=fc.reduce((e,t)=>{const n=sc(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dc(e,t){e&&at.flushSync(()=>e.dispatchEvent(t))}function X(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function pc(e,t=globalThis==null?void 0:globalThis.document){const n=X(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var mc="DismissableLayer",Pn="dismissableLayer.update",hc="dismissableLayer.pointerDownOutside",vc="dismissableLayer.focusOutside",hr,Ur=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xe=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(Ur),[d,f]=i.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=i.useState({}),g=$(t,b=>f(b)),h=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(y),w=d?h.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=w>=x,E=xc(b=>{const A=b.target,T=[...u.branches].some(O=>O.contains(A));!C||T||(o==null||o(b),a==null||a(b),b.defaultPrevented||c==null||c())},p),R=wc(b=>{const A=b.target;[...u.branches].some(O=>O.contains(A))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},p);return pc(b=>{w===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},p),i.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hr=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=hr)}},[d,p,n,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vr())},[d,u]),i.useEffect(()=>{const b=()=>v({});return document.addEventListener(Pn,b),()=>document.removeEventListener(Pn,b)},[]),m.jsx(Hr.div,{...l,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,R.onFocusCapture),onBlurCapture:P(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,E.onPointerDownCapture)})});Xe.displayName=mc;var gc="DismissableLayerBranch",yc=i.forwardRef((e,t)=>{const n=i.useContext(Ur),r=i.useRef(null),o=$(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(Hr.div,{...e,ref:o})});yc.displayName=gc;function xc(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let l=function(){Kr(hc,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wc(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&Kr(vc,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vr(){const e=new CustomEvent(Pn);document.dispatchEvent(e)}function Kr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?dc(o,s):o.dispatchEvent(s)}var Y=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Sc=Wn[" useId ".trim().toString()]||(()=>{}),Cc=0;function re(e){const[t,n]=i.useState(Sc());return Y(()=>{n(r=>r??String(Cc++))},[e]),t?`radix-${t}`:""}const bc=["top","right","bottom","left"],Pe=Math.min,ne=Math.max,Dt=Math.round,Pt=Math.floor,ve=e=>({x:e,y:e}),Ec={left:"right",right:"left",bottom:"top",top:"bottom"},Pc={start:"end",end:"start"};function Rn(e,t,n){return ne(e,Pe(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Vn(e){return e==="x"?"y":"x"}function Bn(e){return e==="y"?"height":"width"}const Rc=new Set(["top","bottom"]);function he(e){return Rc.has(be(e))?"y":"x"}function Hn(e){return Vn(he(e))}function _c(e,t,n){n===void 0&&(n=!1);const r=Ze(e),o=Hn(e),s=Bn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=$t(a)),[a,$t(a)]}function Ac(e){const t=$t(e);return[_n(e),t,_n(t)]}function _n(e){return e.replace(/start|end/g,t=>Pc[t])}const gr=["left","right"],yr=["right","left"],Tc=["top","bottom"],Oc=["bottom","top"];function Nc(e,t,n){switch(e){case"top":case"bottom":return n?t?yr:gr:t?gr:yr;case"left":case"right":return t?Tc:Oc;default:return[]}}function Ic(e,t,n,r){const o=Ze(e);let s=Nc(be(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(_n)))),s}function $t(e){return e.replace(/left|right|bottom|top/g,t=>Ec[t])}function Mc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gr(e){return typeof e!="number"?Mc(e):{top:e,right:e,bottom:e,left:e}}function jt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function xr(e,t,n){let{reference:r,floating:o}=e;const s=he(t),a=Hn(t),c=Bn(a),l=be(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[c]/2-o[c]/2;let v;switch(l){case"top":v={x:d,y:r.y-o.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(Ze(t)){case"start":v[a]-=p*(n&&u?-1:1);break;case"end":v[a]+=p*(n&&u?-1:1);break}return v}async function Dc(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=Ce(t,e),g=Gr(v),y=c[p?f==="floating"?"reference":"floating":f],x=jt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},E=jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:S,strategy:l}):w);return{top:(x.top-E.top+g.top)/C.y,bottom:(E.bottom-x.bottom+g.bottom)/C.y,left:(x.left-E.left+g.left)/C.x,right:(E.right-x.right+g.right)/C.x}}const $c=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=xr(u,r,l),p=r,v={},g=0;for(let y=0;y<c.length;y++){var h;const{name:x,fn:w}=c[y],{x:S,y:C,data:E,reset:R}=await w({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:u,platform:{...a,detectOverflow:(h=a.detectOverflow)!=null?h:Dc},elements:{reference:e,floating:t}});d=S??d,f=C??f,v={...v,[x]:{...v[x],...E}},R&&g<=50&&(g++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:f}=xr(u,p,l)),y=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:v}},jc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=Ce(e,t)||{};if(u==null)return{};const f=Gr(d),p={x:n,y:r},v=Hn(o),g=Bn(v),h=await a.getDimensions(u),y=v==="y",x=y?"top":"left",w=y?"bottom":"right",S=y?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[v]-p[v]-s.floating[g],E=p[v]-s.reference[v],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let b=R?R[S]:0;(!b||!await(a.isElement==null?void 0:a.isElement(R)))&&(b=c.floating[S]||s.floating[g]);const A=C/2-E/2,T=b/2-h[g]/2-1,O=Pe(f[x],T),D=Pe(f[w],T),L=O,F=b-h[g]-D,j=b/2-h[g]/2+A,U=Rn(L,j,F),M=!l.arrow&&Ze(o)!=null&&j!==U&&s.reference[g]/2-(j<L?O:D)-h[g]/2<0,k=M?j<L?j-L:j-F:0;return{[v]:p[v]+k,data:{[v]:U,centerOffset:j-U-k,...M&&{alignmentOffset:k}},reset:M}}}),Lc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=Ce(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=be(o),w=he(c),S=be(c)===c,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=p||(S||!h?[$t(c)]:Ac(c)),R=g!=="none";!p&&R&&E.push(...Ic(c,h,g,C));const b=[c,...E],A=await l.detectOverflow(t,y),T=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&T.push(A[x]),f){const j=_c(o,a,C);T.push(A[j[0]],A[j[1]])}if(O=[...O,{placement:o,overflows:T}],!T.every(j=>j<=0)){var D,L;const j=(((D=s.flip)==null?void 0:D.index)||0)+1,U=b[j];if(U&&(!(f==="alignment"?w!==he(U):!1)||O.every(N=>he(N.placement)===w?N.overflows[0]>0:!0)))return{data:{index:j,overflows:O},reset:{placement:U}};let M=(L=O.filter(k=>k.overflows[0]<=0).sort((k,N)=>k.overflows[1]-N.overflows[1])[0])==null?void 0:L.placement;if(!M)switch(v){case"bestFit":{var F;const k=(F=O.filter(N=>{if(R){const _=he(N.placement);return _===w||_==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(_=>_>0).reduce((_,K)=>_+K,0)]).sort((N,_)=>N[1]-_[1])[0])==null?void 0:F[0];k&&(M=k);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function wr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sr(e){return bc.some(t=>e[t]>=0)}const Fc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Ce(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=wr(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Sr(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),c=wr(a,n.floating);return{data:{escapedOffsets:c,escaped:Sr(c)}}}default:return{}}}}},zr=new Set(["left","top"]);async function kc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=be(n),c=Ze(n),l=he(n)==="y",u=zr.has(a)?-1:1,d=s&&l?-1:1,f=Ce(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(v=c==="end"?g*-1:g),l?{x:v*d,y:p*u}:{x:p*u,y:v*d}}const Wc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,l=await kc(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Vc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:w,y:S}=x;return{x:w,y:S}}},...u}=Ce(e,t),d={x:n,y:r},f=await s.detectOverflow(t,u),p=he(be(o)),v=Vn(p);let g=d[v],h=d[p];if(a){const x=v==="y"?"top":"left",w=v==="y"?"bottom":"right",S=g+f[x],C=g-f[w];g=Rn(S,g,C)}if(c){const x=p==="y"?"top":"left",w=p==="y"?"bottom":"right",S=h+f[x],C=h-f[w];h=Rn(S,h,C)}const y=l.fn({...t,[v]:g,[p]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[v]:a,[p]:c}}}}}},Bc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Ce(e,t),d={x:n,y:r},f=he(o),p=Vn(f);let v=d[p],g=d[f];const h=Ce(c,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const S=p==="y"?"height":"width",C=s.reference[p]-s.floating[S]+y.mainAxis,E=s.reference[p]+s.reference[S]-y.mainAxis;v<C?v=C:v>E&&(v=E)}if(u){var x,w;const S=p==="y"?"width":"height",C=zr.has(be(o)),E=s.reference[f]-s.floating[S]+(C&&((x=a.offset)==null?void 0:x[f])||0)+(C?0:y.crossAxis),R=s.reference[f]+s.reference[S]+(C?0:((w=a.offset)==null?void 0:w[f])||0)-(C?y.crossAxis:0);g<E?g=E:g>R&&(g=R)}return{[p]:v,[f]:g}}}},Hc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...u}=Ce(e,t),d=await a.detectOverflow(t,u),f=be(o),p=Ze(o),v=he(o)==="y",{width:g,height:h}=s.floating;let y,x;f==="top"||f==="bottom"?(y=f,x=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(x=f,y=p==="end"?"top":"bottom");const w=h-d.top-d.bottom,S=g-d.left-d.right,C=Pe(h-d[y],w),E=Pe(g-d[x],S),R=!t.middlewareData.shift;let b=C,A=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=w),R&&!p){const O=ne(d.left,0),D=ne(d.right,0),L=ne(d.top,0),F=ne(d.bottom,0);v?A=g-2*(O!==0||D!==0?O+D:ne(d.left,d.right)):b=h-2*(L!==0||F!==0?L+F:ne(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:b});const T=await a.getDimensions(c.floating);return g!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Kt(){return typeof window<"u"}function qe(e){return Yr(e)?(e.nodeName||"").toLowerCase():"#document"}function oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(Yr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yr(e){return Kt()?e instanceof Node||e instanceof oe(e).Node:!1}function ue(e){return Kt()?e instanceof Element||e instanceof oe(e).Element:!1}function ge(e){return Kt()?e instanceof HTMLElement||e instanceof oe(e).HTMLElement:!1}function Cr(e){return!Kt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof oe(e).ShadowRoot}const Uc=new Set(["inline","contents"]);function lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Uc.has(o)}const Kc=new Set(["table","td","th"]);function Gc(e){return Kc.has(qe(e))}const zc=[":popover-open",":modal"];function Gt(e){return zc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yc=["transform","translate","scale","rotate","perspective"],Xc=["transform","translate","scale","rotate","perspective","filter"],Zc=["paint","layout","strict","content"];function Un(e){const t=Kn(),n=ue(e)?fe(e):e;return Yc.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xc.some(r=>(n.willChange||"").includes(r))||Zc.some(r=>(n.contain||"").includes(r))}function qc(e){let t=Re(e);for(;ge(t)&&!Ue(t);){if(Un(t))return t;if(Gt(t))return null;t=Re(t)}return null}function Kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qc=new Set(["html","body","#document"]);function Ue(e){return Qc.has(qe(e))}function fe(e){return oe(e).getComputedStyle(e)}function zt(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Re(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cr(e)&&e.host||ye(e);return Cr(t)?t.host:t}function Xr(e){const t=Re(e);return Ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&<(t)?t:Xr(t)}function ot(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=oe(o);if(s){const c=An(a);return t.concat(a,a.visualViewport||[],lt(o)?o:[],c&&n?ot(c):[])}return t.concat(o,ot(o,[],n))}function An(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zr(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Dt(n)!==s||Dt(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function Gn(e){return ue(e)?e:e.contextElement}function Be(e){const t=Gn(e);if(!ge(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Zr(t);let a=(s?Dt(n.width):n.width)/r,c=(s?Dt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Jc=ve(0);function qr(e){const t=oe(e);return!Kn()||!t.visualViewport?Jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ea(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==oe(e)?!1:t}function De(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Gn(e);let a=ve(1);t&&(r?ue(r)&&(a=Be(r)):a=Be(e));const c=ea(s,n,r)?qr(s):ve(0);let l=(o.left+c.x)/a.x,u=(o.top+c.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const p=oe(s),v=r&&ue(r)?oe(r):r;let g=p,h=An(g);for(;h&&r&&v!==g;){const y=Be(h),x=h.getBoundingClientRect(),w=fe(h),S=x.left+(h.clientLeft+parseFloat(w.paddingLeft))*y.x,C=x.top+(h.clientTop+parseFloat(w.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,f*=y.y,l+=S,u+=C,g=oe(h),h=An(g)}}return jt({width:d,height:f,x:l,y:u})}function Yt(e,t){const n=zt(e).scrollLeft;return t?t.left+n:De(ye(e)).left+n}function Qr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Yt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ta(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ye(r),c=t?Gt(t.floating):!1;if(r===a||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=ve(1);const d=ve(0),f=ge(r);if((f||!f&&!s)&&((qe(r)!=="body"||lt(a))&&(l=zt(r)),ge(r))){const v=De(r);u=Be(r),d.x=v.x+r.clientLeft,d.y=v.y+r.clientTop}const p=a&&!f&&!s?Qr(a,l):ve(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function na(e){return Array.from(e.getClientRects())}function ra(e){const t=ye(e),n=zt(e),r=e.ownerDocument.body,o=ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Yt(e);const c=-n.scrollTop;return fe(r).direction==="rtl"&&(a+=ne(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const br=25;function oa(e,t){const n=oe(e),r=ye(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){s=o.width,a=o.height;const d=Kn();(!d||d&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}const u=Yt(r);if(u<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),v=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-v);g<=br&&(s-=g)}else u<=br&&(s+=u);return{width:s,height:a,x:c,y:l}}const sa=new Set(["absolute","fixed"]);function ia(e,t){const n=De(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ge(e)?Be(e):ve(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:a,height:c,x:l,y:u}}function Er(e,t,n){let r;if(t==="viewport")r=oa(e,n);else if(t==="document")r=ra(ye(e));else if(ue(t))r=ia(t,n);else{const o=qr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return jt(r)}function Jr(e,t){const n=Re(e);return n===t||!ue(n)||Ue(n)?!1:fe(n).position==="fixed"||Jr(n,t)}function ca(e,t){const n=t.get(e);if(n)return n;let r=ot(e,[],!1).filter(c=>ue(c)&&qe(c)!=="body"),o=null;const s=fe(e).position==="fixed";let a=s?Re(e):e;for(;ue(a)&&!Ue(a);){const c=fe(a),l=Un(a);!l&&c.position==="fixed"&&(o=null),(s?!l&&!o:!l&&c.position==="static"&&!!o&&sa.has(o.position)||lt(a)&&!l&&Jr(e,a))?r=r.filter(d=>d!==a):o=c,a=Re(a)}return t.set(e,r),r}function aa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Gt(t)?[]:ca(t,this._c):[].concat(n),r],c=a[0],l=a.reduce((u,d)=>{const f=Er(t,d,o);return u.top=ne(f.top,u.top),u.right=Pe(f.right,u.right),u.bottom=Pe(f.bottom,u.bottom),u.left=ne(f.left,u.left),u},Er(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function la(e){const{width:t,height:n}=Zr(e);return{width:t,height:n}}function ua(e,t,n){const r=ge(t),o=ye(t),s=n==="fixed",a=De(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=ve(0);function u(){l.x=Yt(o)}if(r||!r&&!s)if((qe(t)!=="body"||lt(o))&&(c=zt(t)),r){const v=De(t,!0,s,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Qr(o,c):ve(0),f=a.left+c.scrollLeft-l.x-d.x,p=a.top+c.scrollTop-l.y-d.y;return{x:f,y:p,width:a.width,height:a.height}}function mn(e){return fe(e).position==="static"}function Pr(e,t){if(!ge(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function eo(e,t){const n=oe(e);if(Gt(e))return n;if(!ge(e)){let o=Re(e);for(;o&&!Ue(o);){if(ue(o)&&!mn(o))return o;o=Re(o)}return n}let r=Pr(e,t);for(;r&&Gc(r)&&mn(r);)r=Pr(r,t);return r&&Ue(r)&&mn(r)&&!Un(r)?n:r||qc(e)||n}const fa=async function(e){const t=this.getOffsetParent||eo,n=this.getDimensions,r=await n(e.floating);return{reference:ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function da(e){return fe(e).direction==="rtl"}const pa={convertOffsetParentRelativeRectToViewportRelativeRect:ta,getDocumentElement:ye,getClippingRect:aa,getOffsetParent:eo,getElementRects:fa,getClientRects:na,getDimensions:la,getScale:Be,isElement:ue,isRTL:da};function to(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ma(e,t){let n=null,r;const o=ye(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:v}=u;if(c||t(),!p||!v)return;const g=Pt(f),h=Pt(o.clientWidth-(d+p)),y=Pt(o.clientHeight-(f+v)),x=Pt(d),S={rootMargin:-g+"px "+-h+"px "+-y+"px "+-x+"px",threshold:ne(0,Pe(1,l))||1};let C=!0;function E(R){const b=R[0].intersectionRatio;if(b!==l){if(!C)return a();b?a(!1,b):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b===1&&!to(u,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(E,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,S)}n.observe(e)}return a(!0),s}function ha(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Gn(e),d=o||s?[...u?ot(u):[],...ot(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const f=u&&c?ma(u,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(x=>{let[w]=x;w&&w.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=v)==null||S.observe(t)})),n()}),u&&!l&&v.observe(u),v.observe(t));let g,h=l?De(e):null;l&&y();function y(){const x=De(e);h&&!to(h,x)&&n(),h=x,g=requestAnimationFrame(y)}return n(),()=>{var x;d.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(x=v)==null||x.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const va=Wc,ga=Vc,ya=Lc,xa=Hc,wa=Fc,Rr=jc,Sa=Bc,Ca=(e,t,n)=>{const r=new Map,o={platform:pa,...n},s={...o.platform,_c:r};return $c(e,t,{...o,platform:s})};var ba=typeof document<"u",Ea=function(){},Nt=ba?i.useLayoutEffect:Ea;function Lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function no(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _r(e,t){const n=no(e);return Math.round(t*n)/n}function hn(e){const t=i.useRef(e);return Nt(()=>{t.current=e}),t}function Pa(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=i.useState(r);Lt(p,r)||v(r);const[g,h]=i.useState(null),[y,x]=i.useState(null),w=i.useCallback(N=>{N!==R.current&&(R.current=N,h(N))},[]),S=i.useCallback(N=>{N!==b.current&&(b.current=N,x(N))},[]),C=s||g,E=a||y,R=i.useRef(null),b=i.useRef(null),A=i.useRef(d),T=l!=null,O=hn(l),D=hn(o),L=hn(u),F=i.useCallback(()=>{if(!R.current||!b.current)return;const N={placement:t,strategy:n,middleware:p};D.current&&(N.platform=D.current),Ca(R.current,b.current,N).then(_=>{const K={..._,isPositioned:L.current!==!1};j.current&&!Lt(A.current,K)&&(A.current=K,at.flushSync(()=>{f(K)}))})},[p,t,n,D,L]);Nt(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);const j=i.useRef(!1);Nt(()=>(j.current=!0,()=>{j.current=!1}),[]),Nt(()=>{if(C&&(R.current=C),E&&(b.current=E),C&&E){if(O.current)return O.current(C,E,F);F()}},[C,E,F,O,T]);const U=i.useMemo(()=>({reference:R,floating:b,setReference:w,setFloating:S}),[w,S]),M=i.useMemo(()=>({reference:C,floating:E}),[C,E]),k=i.useMemo(()=>{const N={position:n,left:0,top:0};if(!M.floating)return N;const _=_r(M.floating,d.x),K=_r(M.floating,d.y);return c?{...N,transform:"translate("+_+"px, "+K+"px)",...no(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:K}},[n,c,M.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:F,refs:U,elements:M,floatingStyles:k}),[d,F,U,M,k])}const Ra=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Rr({element:r.current,padding:o}).fn(n):{}:r?Rr({element:r,padding:o}).fn(n):{}}}},_a=(e,t)=>({...va(e),options:[e,t]}),Aa=(e,t)=>({...ga(e),options:[e,t]}),Ta=(e,t)=>({...Sa(e),options:[e,t]}),Oa=(e,t)=>({...ya(e),options:[e,t]}),Na=(e,t)=>({...xa(e),options:[e,t]}),Ia=(e,t)=>({...wa(e),options:[e,t]}),Ma=(e,t)=>({...Ra(e),options:[e,t]});function Da(e){const t=$a(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(La);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function $a(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=ka(o),c=Fa(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ja=Symbol("radix.slottable");function La(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ja}function Fa(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ka(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Va=Wa.reduce((e,t)=>{const n=Da(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ba="Arrow",ro=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return m.jsx(Va.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});ro.displayName=Ba;var Ha=ro;function Ua(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=f=>{var x;const{scope:p,children:v,...g}=f,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||c,y=i.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:y,children:v})};u.displayName=s+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[e])==null?void 0:h[l])||c,g=i.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Ka(o,...t)]}function Ka(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ga(e){const t=za(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Xa);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function za(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=qa(o),c=Za(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ya=Symbol("radix.slottable");function Xa(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ya}function Za(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qa(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oo=Qa.reduce((e,t)=>{const n=Ga(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ja(e){const[t,n]=i.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zn="Popper",[so,Ae]=Ua(zn),[el,io]=so(zn),co=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return m.jsx(el,{scope:t,anchor:r,onAnchorChange:o,children:n})};co.displayName=zn;var ao="PopperAnchor",lo=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=io(ao,n),a=i.useRef(null),c=$(t,a),l=i.useRef(null);return i.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:m.jsx(oo.div,{...o,ref:c})});lo.displayName=ao;var Yn="PopperContent",[tl,nl]=so(Yn),uo=i.forwardRef((e,t)=>{var I,V,G,W,B,H;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...h}=e,y=io(Yn,n),[x,w]=i.useState(null),S=$(t,te=>w(te)),[C,E]=i.useState(null),R=Ja(C),b=(R==null?void 0:R.width)??0,A=(R==null?void 0:R.height)??0,T=r+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],L=D.length>0,F={padding:O,boundary:D.filter(ol),altBoundary:L},{refs:j,floatingStyles:U,placement:M,isPositioned:k,middlewareData:N}=Pa({strategy:"fixed",placement:T,whileElementsMounted:(...te)=>ha(...te,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[_a({mainAxis:o+A,alignmentAxis:a}),l&&Aa({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Ta():void 0,...F}),l&&Oa({...F}),Na({...F,apply:({elements:te,rects:pe,availableWidth:Je,availableHeight:et})=>{const{width:tt,height:tc}=pe.reference,Et=te.floating.style;Et.setProperty("--radix-popper-available-width",`${Je}px`),Et.setProperty("--radix-popper-available-height",`${et}px`),Et.setProperty("--radix-popper-anchor-width",`${tt}px`),Et.setProperty("--radix-popper-anchor-height",`${tc}px`)}}),C&&Ma({element:C,padding:c}),sl({arrowWidth:b,arrowHeight:A}),p&&Ia({strategy:"referenceHidden",...F})]}),[_,K]=mo(M),z=X(g);Y(()=>{k&&(z==null||z())},[k,z]);const J=(I=N.arrow)==null?void 0:I.x,we=(V=N.arrow)==null?void 0:V.y,ie=((G=N.arrow)==null?void 0:G.centerOffset)!==0,[Se,ee]=i.useState();return Y(()=>{x&&ee(window.getComputedStyle(x).zIndex)},[x]),m.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:k?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(W=N.transformOrigin)==null?void 0:W.x,(B=N.transformOrigin)==null?void 0:B.y].join(" "),...((H=N.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(tl,{scope:n,placedSide:_,onArrowChange:E,arrowX:J,arrowY:we,shouldHideArrow:ie,children:m.jsx(oo.div,{"data-side":_,"data-align":K,...h,ref:S,style:{...h.style,animation:k?void 0:"none"}})})})});uo.displayName=Yn;var fo="PopperArrow",rl={top:"bottom",right:"left",bottom:"top",left:"right"},po=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=nl(fo,r),a=rl[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:m.jsx(Ha,{...o,ref:n,style:{...o.style,display:"block"}})})});po.displayName=fo;function ol(e){return e!==null}var sl=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:n,rects:r,middlewareData:o}=t,a=((y=o.arrow)==null?void 0:y.centerOffset)!==0,c=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=mo(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,v=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let g="",h="";return u==="bottom"?(g=a?f:`${p}px`,h=`${-l}px`):u==="top"?(g=a?f:`${p}px`,h=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,h=a?f:`${v}px`):u==="left"&&(g=`${r.floating.width+l}px`,h=a?f:`${v}px`),{data:{x:g,y:h}}}});function mo(e){const[t,n="center"]=e.split("-");return[t,n]}var ut=co,ft=lo,Xt=uo,Zt=po;function il(e){const t=cl(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(ll);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function cl(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=fl(o),c=ul(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var al=Symbol("radix.slottable");function ll(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===al}function ul(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pl=dl.reduce((e,t)=>{const n=il(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ml="Portal",dt=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,s]=i.useState(!1);Y(()=>s(!0),[]);const a=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?nc.createPortal(m.jsx(pl.div,{...r,ref:t}),a):null});dt.displayName=ml;function hl(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Q=e=>{const{present:t,children:n}=e,r=vl(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=$(r.ref,gl(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};Q.displayName="Presence";function vl(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=hl(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Rt(r.current);s.current=c==="mounted"?u:"none"},[c]),Y(()=>{const u=r.current,d=o.current;if(d!==e){const p=s.current,v=Rt(u);e?l("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Y(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=v=>{const h=Rt(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&h&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=v=>{v.target===t&&(s.current=Rt(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Rt(e){return(e==null?void 0:e.animationName)||"none"}function gl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function yl(e){const t=xl(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Sl);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function xl(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=bl(o),c=Cl(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ho=Symbol("radix.slottable");function wl(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ho,t}function Sl(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ho}function Cl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var El=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pl=El.reduce((e,t)=>{const n=yl(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Rl=Wn[" useInsertionEffect ".trim().toString()]||Y;function _e({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=_l({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const d=i.useRef(e!==void 0);i.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}const u=i.useCallback(d=>{var f;if(c){const p=Al(d)?d(e):d;p!==e&&((f=a.current)==null||f.call(a,p))}else s(d)},[c,e,s,a]);return[l,u]}function _l({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return Rl(()=>{s.current=t},[t]),i.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function Al(e){return typeof e=="function"}function Tl(e){const t=Ol(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Il);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ol(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Dl(o),c=Ml(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nl=Symbol("radix.slottable");function Il(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nl}function Ml(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Dl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jl=$l.reduce((e,t)=>{const n=Tl(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ll="VisuallyHidden",go=i.forwardRef((e,t)=>m.jsx(jl.span,{...e,ref:t,style:{...vo,...e.style}}));go.displayName=Ll;var Fl=go,[qt]=rc("Tooltip",[Ae]),Qt=Ae(),yo="TooltipProvider",kl=700,Tn="tooltip.open",[Wl,Xn]=qt(yo),xo=e=>{const{__scopeTooltip:t,delayDuration:n=kl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=i.useRef(!0),c=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),m.jsx(Wl,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:i.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:s})};xo.displayName=yo;var st="Tooltip",[Vl,Jt]=qt(st),wo=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=Xn(st,e.__scopeTooltip),u=Qt(t),[d,f]=i.useState(null),p=re(),v=i.useRef(0),g=a??l.disableHoverableContent,h=c??l.delayDuration,y=i.useRef(!1),[x,w]=_e({prop:r,defaultProp:o??!1,onChange:b=>{b?(l.onOpen(),document.dispatchEvent(new CustomEvent(Tn))):l.onClose(),s==null||s(b)},caller:st}),S=i.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),C=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(v.current),v.current=0,w(!1)},[w]),R=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,w(!0),v.current=0},h)},[h,w]);return i.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),m.jsx(ut,{...u,children:m.jsx(Vl,{scope:t,contentId:p,open:x,stateAttribute:S,trigger:d,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayedRef.current?R():C()},[l.isOpenDelayedRef,R,C]),onTriggerLeave:i.useCallback(()=>{g?E():(window.clearTimeout(v.current),v.current=0)},[E,g]),onOpen:C,onClose:E,disableHoverableContent:g,children:n})})};wo.displayName=st;var On="TooltipTrigger",So=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Jt(On,n),s=Xn(On,n),a=Qt(n),c=i.useRef(null),l=$(t,c,o.onTriggerChange),u=i.useRef(!1),d=i.useRef(!1),f=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),m.jsx(ft,{asChild:!0,...a,children:m.jsx(Pl.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:P(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:P(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:P(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:P(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:P(e.onBlur,o.onClose),onClick:P(e.onClick,o.onClose)})})});So.displayName=On;var Bl="TooltipPortal",[mh,Hl]=qt(Bl,{forceMount:void 0}),Ke="TooltipContent",Co=i.forwardRef((e,t)=>{const n=Hl(Ke,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Jt(Ke,e.__scopeTooltip);return m.jsx(Q,{present:r||a.open,children:a.disableHoverableContent?m.jsx(bo,{side:o,...s,ref:t}):m.jsx(Ul,{side:o,...s,ref:t})})}),Ul=i.forwardRef((e,t)=>{const n=Jt(Ke,e.__scopeTooltip),r=Xn(Ke,e.__scopeTooltip),o=i.useRef(null),s=$(t,o),[a,c]=i.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,p=i.useCallback(()=>{c(null),f(!1)},[f]),v=i.useCallback((g,h)=>{const y=g.currentTarget,x={x:g.clientX,y:g.clientY},w=Xl(x,y.getBoundingClientRect()),S=Zl(x,w),C=ql(h.getBoundingClientRect()),E=Jl([...S,...C]);c(E),f(!0)},[f]);return i.useEffect(()=>()=>p(),[p]),i.useEffect(()=>{if(l&&d){const g=y=>v(y,d),h=y=>v(y,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",h)}}},[l,d,v,p]),i.useEffect(()=>{if(a){const g=h=>{const y=h.target,x={x:h.clientX,y:h.clientY},w=(l==null?void 0:l.contains(y))||(d==null?void 0:d.contains(y)),S=!Ql(x,a);w?p():S&&(p(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,a,u,p]),m.jsx(bo,{...e,ref:s})}),[Kl,Gl]=qt(st,{isInside:!1}),zl=wl("TooltipContent"),bo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=Jt(Ke,n),u=Qt(n),{onClose:d}=l;return i.useEffect(()=>(document.addEventListener(Tn,d),()=>document.removeEventListener(Tn,d)),[d]),i.useEffect(()=>{if(l.trigger){const f=p=>{const v=p.target;v!=null&&v.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),m.jsx(Xe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:m.jsxs(Xt,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(zl,{children:r}),m.jsx(Kl,{scope:n,isInside:!0,children:m.jsx(Fl,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Co.displayName=Ke;var Eo="TooltipArrow",Yl=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Qt(n);return Gl(Eo,n).isInside?null:m.jsx(Zt,{...o,...r,ref:t})});Yl.displayName=Eo;function Xl(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Zl(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 ql(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 Ql(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],u=c.x,d=c.y,f=l.x,p=l.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function Jl(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),eu(t)}function eu(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hh=xo,vh=wo,gh=So,yh=Co,tu=Symbol.for("react.lazy"),Ft=Wn[" use ".trim().toString()];function nu(e){return typeof e=="object"&&e!==null&&"then"in e}function Po(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===tu&&"_payload"in e&&nu(e._payload)}function Ro(e){const t=ru(e),n=i.forwardRef((r,o)=>{let{children:s,...a}=r;Po(s)&&typeof Ft=="function"&&(s=Ft(s._payload));const c=i.Children.toArray(s),l=c.find(su);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var xh=Ro("Slot");function ru(e){const t=i.forwardRef((n,r)=>{let{children:o,...s}=n;if(Po(o)&&typeof Ft=="function"&&(o=Ft(o._payload)),i.isValidElement(o)){const a=cu(o),c=iu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ou=Symbol("radix.slottable");function su(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ou}function iu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function cu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var au=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=au.reduce((e,t)=>{const n=Ro(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),lu="Separator",Ar="horizontal",uu=["horizontal","vertical"],_o=i.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ar,...o}=e,s=fu(r)?r:Ar,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return m.jsx(pt.div,{"data-orientation":s,...c,...o,ref:t})});_o.displayName=lu;function fu(e){return uu.includes(e)}var wh=_o;function du(e,t){const n=i.createContext(t),r=s=>{const{children:a,...c}=s,l=i.useMemo(()=>c,Object.values(c));return m.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function pu(e,t=[]){let n=[];function r(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=f=>{var x;const{scope:p,children:v,...g}=f,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||c,y=i.useMemo(()=>g,Object.values(g));return m.jsx(h.Provider,{value:y,children:v})};u.displayName=s+"Provider";function d(f,p){var h;const v=((h=p==null?void 0:p[e])==null?void 0:h[l])||c,g=i.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,mu(o,...t)]}function mu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function hu(e){const t=vu(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(yu);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function vu(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=wu(o),c=xu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gu=Symbol("radix.slottable");function yu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gu}function xu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function wu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Su=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cu=Su.reduce((e,t)=>{const n=hu(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vn="focusScope.autoFocusOnMount",gn="focusScope.autoFocusOnUnmount",Tr={bubbles:!1,cancelable:!0},bu="FocusScope",mt=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=X(o),d=X(s),f=i.useRef(null),p=$(t,h=>l(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let h=function(S){if(v.paused||!c)return;const C=S.target;c.contains(C)?f.current=C:Ee(f.current,{select:!0})},y=function(S){if(v.paused||!c)return;const C=S.relatedTarget;C!==null&&(c.contains(C)||Ee(f.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const E of S)E.removedNodes.length>0&&Ee(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const w=new MutationObserver(x);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),w.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){Nr.add(v);const h=document.activeElement;if(!c.contains(h)){const x=new CustomEvent(vn,Tr);c.addEventListener(vn,u),c.dispatchEvent(x),x.defaultPrevented||(Eu(Tu(Ao(c)),{select:!0}),document.activeElement===h&&Ee(c))}return()=>{c.removeEventListener(vn,u),setTimeout(()=>{const x=new CustomEvent(gn,Tr);c.addEventListener(gn,d),c.dispatchEvent(x),x.defaultPrevented||Ee(h??document.body,{select:!0}),c.removeEventListener(gn,d),Nr.remove(v)},0)}}},[c,u,d,v]);const g=i.useCallback(h=>{if(!n&&!r||v.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(y&&x){const w=h.currentTarget,[S,C]=Pu(w);S&&C?!h.shiftKey&&x===C?(h.preventDefault(),n&&Ee(S,{select:!0})):h.shiftKey&&x===S&&(h.preventDefault(),n&&Ee(C,{select:!0})):x===w&&h.preventDefault()}},[n,r,v.paused]);return m.jsx(Cu.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});mt.displayName=bu;function Eu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ee(r,{select:t}),document.activeElement!==n)return}function Pu(e){const t=Ao(e),n=Or(t,e),r=Or(t.reverse(),e);return[n,r]}function Ao(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Or(e,t){for(const n of e)if(!Ru(n,{upTo:t}))return n}function Ru(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _u(e){return e instanceof HTMLInputElement&&"select"in e}function Ee(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_u(e)&&t&&e.select()}}var Nr=Au();function Au(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ir(e,t),e.unshift(t)},remove(t){var n;e=Ir(e,t),(n=e[0])==null||n.resume()}}}function Ir(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Tu(e){return e.filter(t=>t.tagName!=="A")}function To(e){const t=Ou(e),n=i.forwardRef((r,o)=>{const{children:s,...a}=r,c=i.Children.toArray(s),l=c.find(Iu);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ou(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const a=Du(o),c=Mu(s,o.props);return o.type!==i.Fragment&&(c.ref=r?Z(r,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nu=Symbol("radix.slottable");function Iu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nu}function Mu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{const l=s(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Du(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ht=$u.reduce((e,t)=>{const n=To(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),yn=0;function en(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mr()),document.body.insertAdjacentElement("beforeend",e[1]??Mr()),yn++,()=>{yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yn--}},[])}function Mr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},me.apply(this,arguments)};function Oo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ju(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var It="right-scroll-bar-position",Mt="width-before-scroll-bar",Lu="with-scroll-bars-hidden",Fu="--removed-body-scroll-bar-size";function xn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ku(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Wu=typeof window<"u"?i.useLayoutEffect:i.useEffect,Dr=new WeakMap;function Vu(e,t){var n=ku(null,function(r){return e.forEach(function(o){return xn(o,r)})});return Wu(function(){var r=Dr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||xn(c,null)}),s.forEach(function(c){o.has(c)||xn(c,a)})}Dr.set(n,e)},[e]),n}function Bu(e){return e}function Hu(e,t){t===void 0&&(t=Bu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function Uu(e){e===void 0&&(e={});var t=Hu(null);return t.options=me({async:!0,ssr:!1},e),t}var No=function(e){var t=e.sideCar,n=Oo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,me({},n))};No.isSideCarExport=!0;function Ku(e,t){return e.useMedium(t),No}var Io=Uu(),wn=function(){},tn=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:wn,onWheelCapture:wn,onTouchMoveCapture:wn}),o=r[0],s=r[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,h=e.inert,y=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,S=e.gapMode,C=Oo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,R=Vu([n,t]),b=me(me({},C),o);return i.createElement(i.Fragment,null,d&&i.createElement(E,{sideCar:Io,removeScrollBar:u,shards:f,noRelative:v,noIsolation:g,inert:h,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),a?i.cloneElement(i.Children.only(c),me(me({},b),{ref:R})):i.createElement(w,me({},b,{className:l,ref:R}),c))});tn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tn.classNames={fullWidth:Mt,zeroRight:It};var Gu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gu();return t&&e.setAttribute("nonce",t),e}function Yu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zu())&&(Yu(t,n),Xu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qu=function(){var e=Zu();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Mo=function(){var e=qu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qu={left:0,top:0,right:0,gap:0},Sn=function(e){return parseInt(e||"",10)||0},Ju=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Sn(n),Sn(r),Sn(o)]},ef=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qu;var t=Ju(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tf=Mo(),He="data-scroll-locked",nf=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Lu,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(c,"px ").concat(r,`;
|
package/dist/index.html
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
12
12
|
rel="stylesheet"
|
|
13
13
|
/>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-BJplLsFj.js"></script>
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-Lycsri1F.js">
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-query-
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-radix-
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-query-BildmsPY.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-radix-B5umFwGL.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/assets/vendor-dnd-DuI-3XLF.js">
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-editor-
|
|
20
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-editor-Cu5gNfTV.js">
|
|
20
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CtNZDbOa.css">
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
|
23
23
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./vendor-query-CaIGp3JB.js";import{b8 as t,b9 as i}from"./index-WcKp7086.js";import"./vendor-react-Lycsri1F.js";import"./vendor-radix-Bt8AkWnj.js";import"./vendor-dnd-DuI-3XLF.js";import"./vendor-editor-Cvk1s7Hk.js";function u(){const{workspace:o}=t();return r.jsx(i,{workspaceId:o==null?void 0:o.id})}export{u as WorkspaceReportingPage};
|