@golocalinteractive/golocal-cloud-wrapper 1.0.61 → 1.0.62
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.
|
@@ -9536,7 +9536,7 @@ function c0({ ...e }) {
|
|
|
9536
9536
|
);
|
|
9537
9537
|
return r.key === "priceMonster" && !o ? /* @__PURE__ */ l.jsxs(Fa, { children: [
|
|
9538
9538
|
/* @__PURE__ */ l.jsx($a, { asChild: !0, children: /* @__PURE__ */ l.jsx("div", { children: a }) }),
|
|
9539
|
-
/* @__PURE__ */ l.jsx(Dr, { side: "
|
|
9539
|
+
/* @__PURE__ */ l.jsx(Dr, { side: "top", align: "center", children: "Coming soon" })
|
|
9540
9540
|
] }, r.title) : a;
|
|
9541
9541
|
}) })
|
|
9542
9542
|
] }),
|
|
@@ -179,4 +179,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
179
179
|
|
|
180
180
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
181
181
|
|
|
182
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wd="DialogDescriptionWarning",yd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fs(wd).contentName}}.`;return u.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Cd=Ss,Ed=Rs,Sd=As,$s=Ns,Vs=Ts,Hs=Os,zs=Ds,Ws=js;const Gs=Cd,_d=Ed,Rd=Ws,Bs=Sd,ir=u.forwardRef(({className:e,...t},n)=>c.jsx($s,{className:T("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));ir.displayName=$s.displayName;const Md=Fn("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),cr=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(Bs,{children:[c.jsx(ir,{}),c.jsxs(Vs,{ref:o,className:T(Md({side:e}),t),...r,children:[n,c.jsxs(Ws,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(sl,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cr.displayName=Vs.displayName;const lr=({className:e,...t})=>c.jsx("div",{className:T("flex flex-col space-y-2 text-center sm:text-left",e),...t});lr.displayName="SheetHeader";const Us=({className:e,...t})=>c.jsx("div",{className:T("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Us.displayName="SheetFooter";const ur=u.forwardRef(({className:e,...t},n)=>c.jsx(Hs,{ref:n,className:T("text-lg font-semibold text-foreground",e),...t}));ur.displayName=Hs.displayName;const dr=u.forwardRef(({className:e,...t},n)=>c.jsx(zs,{ref:n,className:T("text-sm text-muted-foreground",e),...t}));dr.displayName=zs.displayName;function fr({className:e,...t}){return c.jsx("div",{className:T("animate-pulse rounded-md bg-muted",e),...t})}const Ad=["top","right","bottom","left"],Ge=Math.min,he=Math.max,tn=Math.round,nn=Math.floor,Me=e=>({x:e,y:e}),Nd={left:"right",right:"left",bottom:"top",top:"bottom"},Td={start:"end",end:"start"};function pr(e,t,n){return he(e,Ge(t,n))}function je(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function mr(e){return e==="x"?"y":"x"}function hr(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(Le(e))?"y":"x"}function gr(e){return mr(Ae(e))}function kd(e,t,n){n===void 0&&(n=!1);const r=lt(e),o=gr(e),s=hr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=rn(a)),[a,rn(a)]}function Od(e){const t=rn(e);return[vr(e),t,vr(t)]}function vr(e){return e.replace(/start|end/g,t=>Td[t])}function Pd(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Dd(e,t,n,r){const o=lt(e);let s=Pd(Le(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(vr)))),s}function rn(e){return e.replace(/left|right|bottom|top/g,t=>Nd[t])}function Id(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ks(e){return typeof e!="number"?Id(e):{top:e,right:e,bottom:e,left:e}}function on(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 Ys(e,t,n){let{reference:r,floating:o}=e;const s=Ae(t),a=gr(t),i=hr(a),l=Le(t),p=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(lt(t)){case"start":h[a]-=m*(n&&p?-1:1);break;case"end":h[a]+=m*(n&&p?-1:1);break}return h}const jd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let p=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ys(p,r,l),m=r,h={},b=0;for(let g=0;g<i.length;g++){const{name:x,fn:v}=i[g],{x:w,y:E,data:S,reset:_}=await v({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:p,platform:a,elements:{reference:e,floating:t}});d=w??d,f=E??f,h={...h,[x]:{...h[x],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(p=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:f}=Ys(p,m,l)),g=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}};async function wt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=je(t,e),b=Ks(h),x=i[m?f==="floating"?"reference":"floating":f],v=on(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:p,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},_=on(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:E,strategy:l}):w);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const Ld=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:p,padding:d=0}=je(e,t)||{};if(p==null)return{};const f=Ks(d),m={x:n,y:r},h=gr(o),b=hr(h),g=await a.getDimensions(p),x=h==="y",v=x?"top":"left",w=x?"bottom":"right",E=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[h]-m[h]-s.floating[b],_=m[h]-s.reference[h],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(p));let M=N?N[E]:0;(!M||!await(a.isElement==null?void 0:a.isElement(N)))&&(M=i.floating[E]||s.floating[b]);const C=S/2-_/2,j=M/2-g[b]/2-1,L=Ge(f[v],j),U=Ge(f[w],j),B=L,z=M-g[b]-U,W=M/2-g[b]/2+C,X=pr(B,W,z),V=!l.arrow&<(o)!=null&&W!==X&&s.reference[b]/2-(W<B?L:U)-g[b]/2<0,K=V?W<B?W-B:W-z:0;return{[h]:m[h]+K,data:{[h]:X,centerOffset:W-X-K,...V&&{alignmentOffset:K}},reset:V}}}),Fd=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:i,platform:l,elements:p}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=je(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Le(o),w=Ae(i),E=Le(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(p.floating)),_=m||(E||!g?[rn(i)]:Od(i)),N=b!=="none";!m&&N&&_.push(...Dd(i,g,b,S));const M=[i,..._],C=await wt(t,x),j=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&j.push(C[v]),f){const W=kd(o,a,S);j.push(C[W[0]],C[W[1]])}if(L=[...L,{placement:o,overflows:j}],!j.every(W=>W<=0)){var U,B;const W=(((U=s.flip)==null?void 0:U.index)||0)+1,X=M[W];if(X&&(!(f==="alignment"?w!==Ae(X):!1)||L.every(R=>R.overflows[0]>0&&Ae(R.placement)===w)))return{data:{index:W,overflows:L},reset:{placement:X}};let V=(B=L.filter(K=>K.overflows[0]<=0).sort((K,R)=>K.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!V)switch(h){case"bestFit":{var z;const K=(z=L.filter(R=>{if(N){const k=Ae(R.placement);return k===w||k==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(k=>k>0).reduce((k,y)=>k+y,0)]).sort((R,k)=>R[1]-k[1])[0])==null?void 0:z[0];K&&(V=K);break}case"initialPlacement":V=i;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function qs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xs(e){return Ad.some(t=>e[t]>=0)}const $d=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=je(e,t);switch(r){case"referenceHidden":{const s=await wt(t,{...o,elementContext:"reference"}),a=qs(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Xs(a)}}}case"escaped":{const s=await wt(t,{...o,altBoundary:!0}),a=qs(s,n.floating);return{data:{escapedOffsets:a,escaped:Xs(a)}}}default:return{}}}}};async function Vd(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Le(n),i=lt(n),l=Ae(n)==="y",p=["left","top"].includes(a)?-1:1,d=s&&l?-1:1,f=je(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*d,y:m*p}:{x:m*p,y:h*d}}const Hd=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:i}=t,l=await Vd(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},zd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:v,y:w}=x;return{x:v,y:w}}},...l}=je(e,t),p={x:n,y:r},d=await wt(t,l),f=Ae(Le(o)),m=mr(f);let h=p[m],b=p[f];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=h+d[x],E=h-d[v];h=pr(w,h,E)}if(a){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=b+d[x],E=b-d[v];b=pr(w,b,E)}const g=i.fn({...t,[m]:h,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:s,[f]:a}}}}}},Wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:p=!0}=je(e,t),d={x:n,y:r},f=Ae(o),m=mr(f);let h=d[m],b=d[f];const g=je(i,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const E=m==="y"?"height":"width",S=s.reference[m]-s.floating[E]+x.mainAxis,_=s.reference[m]+s.reference[E]-x.mainAxis;h<S?h=S:h>_&&(h=_)}if(p){var v,w;const E=m==="y"?"width":"height",S=["top","left"].includes(Le(o)),_=s.reference[f]-s.floating[E]+(S&&((v=a.offset)==null?void 0:v[f])||0)+(S?0:x.crossAxis),N=s.reference[f]+s.reference[E]+(S?0:((w=a.offset)==null?void 0:w[f])||0)-(S?x.crossAxis:0);b<_?b=_:b>N&&(b=N)}return{[m]:h,[f]:b}}}},Gd=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:i}=t,{apply:l=()=>{},...p}=je(e,t),d=await wt(t,p),f=Le(o),m=lt(o),h=Ae(o)==="y",{width:b,height:g}=s.floating;let x,v;f==="top"||f==="bottom"?(x=f,v=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,x=m==="end"?"top":"bottom");const w=g-d.top-d.bottom,E=b-d.left-d.right,S=Ge(g-d[x],w),_=Ge(b-d[v],E),N=!t.middlewareData.shift;let M=S,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=w),N&&!m){const L=he(d.left,0),U=he(d.right,0),B=he(d.top,0),z=he(d.bottom,0);h?C=b-2*(L!==0||U!==0?L+U:he(d.left,d.right)):M=g-2*(B!==0||z!==0?B+z:he(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:M});const j=await a.getDimensions(i.floating);return b!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function sn(){return typeof window<"u"}function ut(e){return Zs(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(Zs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zs(e){return sn()?e instanceof Node||e instanceof ge(e).Node:!1}function Ce(e){return sn()?e instanceof Element||e instanceof ge(e).Element:!1}function Te(e){return sn()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function Js(e){return!sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function yt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Bd(e){return["table","td","th"].includes(ut(e))}function an(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function br(e){const t=xr(),n=Ce(e)?Ee(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ud(e){let t=Be(e);for(;Te(t)&&!dt(t);){if(br(t))return t;if(an(t))return null;t=Be(t)}return null}function xr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dt(e){return["html","body","#document"].includes(ut(e))}function Ee(e){return ge(e).getComputedStyle(e)}function cn(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Js(e)&&e.host||Ne(e);return Js(t)?t.host:t}function Qs(e){const t=Be(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&yt(t)?t:Qs(t)}function Ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Qs(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ge(o);if(s){const i=wr(a);return t.concat(a,a.visualViewport||[],yt(o)?o:[],i&&n?Ct(i):[])}return t.concat(o,Ct(o,[],n))}function wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ea(e){const t=Ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Te(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=tn(n)!==s||tn(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function yr(e){return Ce(e)?e:e.contextElement}function ft(e){const t=yr(e);if(!Te(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ea(t);let a=(s?tn(n.width):n.width)/r,i=(s?tn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Kd=Me(0);function ta(e){const t=ge(e);return!xr()||!t.visualViewport?Kd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=yr(e);let a=Me(1);t&&(r?Ce(r)&&(a=ft(r)):a=ft(e));const i=Yd(s,n,r)?ta(s):Me(0);let l=(o.left+i.x)/a.x,p=(o.top+i.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const m=ge(s),h=r&&Ce(r)?ge(r):r;let b=m,g=wr(b);for(;g&&r&&h!==b;){const x=ft(g),v=g.getBoundingClientRect(),w=Ee(g),E=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*x.x,S=v.top+(g.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,p*=x.y,d*=x.x,f*=x.y,l+=E,p+=S,b=ge(g),g=wr(b)}}return on({width:d,height:f,x:l,y:p})}function Cr(e,t){const n=cn(e).scrollLeft;return t?t.left+n:Je(Ne(e)).left+n}function na(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Cr(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function qd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ne(r),i=t?an(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},p=Me(1);const d=Me(0),f=Te(r);if((f||!f&&!s)&&((ut(r)!=="body"||yt(a))&&(l=cn(r)),Te(r))){const h=Je(r);p=ft(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=a&&!f&&!s?na(a,l,!0):Me(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-l.scrollLeft*p.x+d.x+m.x,y:n.y*p.y-l.scrollTop*p.y+d.y+m.y}}function Xd(e){return Array.from(e.getClientRects())}function Zd(e){const t=Ne(e),n=cn(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Cr(e);const i=-n.scrollTop;return Ee(r).direction==="rtl"&&(a+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function Jd(e,t){const n=ge(e),r=Ne(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const p=xr();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:i,y:l}}function Qd(e,t){const n=Je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Te(e)?ft(e):Me(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,p=r*s.y;return{width:a,height:i,x:l,y:p}}function ra(e,t,n){let r;if(t==="viewport")r=Jd(e,n);else if(t==="document")r=Zd(Ne(e));else if(Ce(t))r=Qd(t,n);else{const o=ta(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return on(r)}function oa(e,t){const n=Be(e);return n===t||!Ce(n)||dt(n)?!1:Ee(n).position==="fixed"||oa(n,t)}function ef(e,t){const n=t.get(e);if(n)return n;let r=Ct(e,[],!1).filter(i=>Ce(i)&&ut(i)!=="body"),o=null;const s=Ee(e).position==="fixed";let a=s?Be(e):e;for(;Ce(a)&&!dt(a);){const i=Ee(a),l=br(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||yt(a)&&!l&&oa(e,a))?r=r.filter(d=>d!==a):o=i,a=Be(a)}return t.set(e,r),r}function tf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?an(t)?[]:ef(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((p,d)=>{const f=ra(t,d,o);return p.top=he(f.top,p.top),p.right=Ge(f.right,p.right),p.bottom=Ge(f.bottom,p.bottom),p.left=he(f.left,p.left),p},ra(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nf(e){const{width:t,height:n}=ea(e);return{width:t,height:n}}function rf(e,t,n){const r=Te(t),o=Ne(t),s=n==="fixed",a=Je(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=Me(0);function p(){l.x=Cr(o)}if(r||!r&&!s)if((ut(t)!=="body"||yt(o))&&(i=cn(t)),r){const h=Je(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&p();s&&!r&&o&&p();const d=o&&!r&&!s?na(o,i):Me(0),f=a.left+i.scrollLeft-l.x-d.x,m=a.top+i.scrollTop-l.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Er(e){return Ee(e).position==="static"}function sa(e,t){if(!Te(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function aa(e,t){const n=ge(e);if(an(e))return n;if(!Te(e)){let o=Be(e);for(;o&&!dt(o);){if(Ce(o)&&!Er(o))return o;o=Be(o)}return n}let r=sa(e,t);for(;r&&Bd(r)&&Er(r);)r=sa(r,t);return r&&dt(r)&&Er(r)&&!br(r)?n:r||Ud(e)||n}const of=async function(e){const t=this.getOffsetParent||aa,n=this.getDimensions,r=await n(e.floating);return{reference:rf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sf(e){return Ee(e).direction==="rtl"}const af={convertOffsetParentRelativeRectToViewportRelativeRect:qd,getDocumentElement:Ne,getClippingRect:tf,getOffsetParent:aa,getElementRects:of,getClientRects:Xd,getDimensions:nf,getScale:ft,isElement:Ce,isRTL:sf};function ia(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cf(e,t){let n=null,r;const o=Ne(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const p=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=p;if(i||t(),!m||!h)return;const b=nn(f),g=nn(o.clientWidth-(d+m)),x=nn(o.clientHeight-(f+h)),v=nn(d),E={rootMargin:-b+"px "+-g+"px "+-x+"px "+-v+"px",threshold:he(0,Ge(1,l))||1};let S=!0;function _(N){const M=N[0].intersectionRatio;if(M!==l){if(!S)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!ia(p,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return a(!0),s}function lf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,p=yr(e),d=o||s?[...p?Ct(p):[],...Ct(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const f=p&&i?cf(p,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===p&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),p&&!l&&h.observe(p),h.observe(t));let b,g=l?Je(e):null;l&&x();function x(){const v=Je(e);g&&!ia(g,v)&&n(),g=v,b=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const uf=Hd,df=zd,ff=Fd,pf=Gd,mf=$d,ca=Ld,hf=Wd,gf=(e,t,n)=>{const r=new Map,o={platform:af,...n},s={...o.platform,_c:r};return jd(e,t,{...o,platform:s})};var vf=typeof document<"u",bf=function(){},ln=vf?I.useLayoutEffect:bf;function un(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(!un(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)&&!un(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function la(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ua(e,t){const n=la(e);return Math.round(t*n)/n}function Sr(e){const t=u.useRef(e);return ln(()=>{t.current=e}),t}function xf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:p}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);un(m,r)||h(r);const[b,g]=u.useState(null),[x,v]=u.useState(null),w=u.useCallback(R=>{R!==N.current&&(N.current=R,g(R))},[]),E=u.useCallback(R=>{R!==M.current&&(M.current=R,v(R))},[]),S=s||b,_=a||x,N=u.useRef(null),M=u.useRef(null),C=u.useRef(d),j=l!=null,L=Sr(l),U=Sr(o),B=Sr(p),z=u.useCallback(()=>{if(!N.current||!M.current)return;const R={placement:t,strategy:n,middleware:m};U.current&&(R.platform=U.current),gf(N.current,M.current,R).then(k=>{const y={...k,isPositioned:B.current!==!1};W.current&&!un(C.current,y)&&(C.current=y,Xr.flushSync(()=>{f(y)}))})},[m,t,n,U,B]);ln(()=>{p===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[p]);const W=u.useRef(!1);ln(()=>(W.current=!0,()=>{W.current=!1}),[]),ln(()=>{if(S&&(N.current=S),_&&(M.current=_),S&&_){if(L.current)return L.current(S,_,z);z()}},[S,_,z,L,j]);const X=u.useMemo(()=>({reference:N,floating:M,setReference:w,setFloating:E}),[w,E]),V=u.useMemo(()=>({reference:S,floating:_}),[S,_]),K=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!V.floating)return R;const k=ua(V.floating,d.x),y=ua(V.floating,d.y);return i?{...R,transform:"translate("+k+"px, "+y+"px)",...la(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:y}},[n,i,V.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:z,refs:X,elements:V,floatingStyles:K}),[d,z,X,V,K])}const wf=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?ca({element:r.current,padding:o}).fn(n):{}:r?ca({element:r,padding:o}).fn(n):{}}}},yf=(e,t)=>({...uf(e),options:[e,t]}),Cf=(e,t)=>({...df(e),options:[e,t]}),Ef=(e,t)=>({...hf(e),options:[e,t]}),Sf=(e,t)=>({...ff(e),options:[e,t]}),_f=(e,t)=>({...pf(e),options:[e,t]}),Rf=(e,t)=>({...mf(e),options:[e,t]}),Mf=(e,t)=>({...wf(e),options:[e,t]});var Af="Arrow",da=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});da.displayName=Af;var Nf=da;function Tf(e){const[t,n]=u.useState(void 0);return ze(()=>{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,i;if("borderBoxSize"in s){const l=s.borderBoxSize,p=Array.isArray(l)?l[0]:l;a=p.inlineSize,i=p.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _r="Popper",[fa,dn]=Xe(_r),[kf,pa]=fa(_r),ma=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(kf,{scope:t,anchor:r,onAnchorChange:o,children:n})};ma.displayName=_r;var ha="PopperAnchor",ga=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=pa(ha,n),a=u.useRef(null),i=ie(t,a);return u.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:c.jsx(re.div,{...o,ref:i})});ga.displayName=ha;var Rr="PopperContent",[Of,Pf]=fa(Rr),va=u.forwardRef((e,t)=>{var Y,ee,te,ae,Se,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,x=pa(Rr,n),[v,w]=u.useState(null),E=ie(t,J=>w(J)),[S,_]=u.useState(null),N=Tf(S),M=(N==null?void 0:N.width)??0,C=(N==null?void 0:N.height)??0,j=r+(s!=="center"?"-"+s:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(p)?p:[p],B=U.length>0,z={padding:L,boundary:U.filter(If),altBoundary:B},{refs:W,floatingStyles:X,placement:V,isPositioned:K,middlewareData:R}=xf({strategy:"fixed",placement:j,whileElementsMounted:(...J)=>lf(...J,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[yf({mainAxis:o+C,alignmentAxis:a}),l&&Cf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Ef():void 0,...z}),l&&Sf({...z}),_f({...z,apply:({elements:J,rects:Q,availableWidth:le,availableHeight:oe})=>{const{width:ve,height:Ye}=Q.reference,se=J.floating.style;se.setProperty("--radix-popper-available-width",`${le}px`),se.setProperty("--radix-popper-available-height",`${oe}px`),se.setProperty("--radix-popper-anchor-width",`${ve}px`),se.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),S&&Mf({element:S,padding:i}),jf({arrowWidth:M,arrowHeight:C}),m&&Rf({strategy:"referenceHidden",...z})]}),[k,y]=wa(V),D=_e(b);ze(()=>{K&&(D==null||D())},[K,D]);const F=(Y=R.arrow)==null?void 0:Y.x,H=(ee=R.arrow)==null?void 0:ee.y,Z=((te=R.arrow)==null?void 0:te.centerOffset)!==0,[ne,ue]=u.useState();return ze(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:K?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(ae=R.transformOrigin)==null?void 0:ae.x,(Se=R.transformOrigin)==null?void 0:Se.y].join(" "),...((Ke=R.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Of,{scope:n,placedSide:k,onArrowChange:_,arrowX:F,arrowY:H,shouldHideArrow:Z,children:c.jsx(re.div,{"data-side":k,"data-align":y,...g,ref:E,style:{...g.style,animation:K?void 0:"none"}})})})});va.displayName=Rr;var ba="PopperArrow",Df={top:"bottom",right:"left",bottom:"top",left:"right"},xa=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Pf(ba,r),a=Df[s.placedSide];return c.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:c.jsx(Nf,{...o,ref:n,style:{...o.style,display:"block"}})})});xa.displayName=ba;function If(e){return e!==null}var jf=e=>({name:"transformOrigin",options:e,fn(t){var x,v,w;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[p,d]=wa(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let b="",g="";return p==="bottom"?(b=a?f:`${m}px`,g=`${-l}px`):p==="top"?(b=a?f:`${m}px`,g=`${r.floating.height+l}px`):p==="right"?(b=`${-l}px`,g=a?f:`${h}px`):p==="left"&&(b=`${r.floating.width+l}px`,g=a?f:`${h}px`),{data:{x:b,y:g}}}});function wa(e){const[t,n="center"]=e.split("-");return[t,n]}var Mr=ma,ya=ga,Ca=va,Ea=xa,Lf=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"}),Ff="VisuallyHidden",Sa=u.forwardRef((e,t)=>c.jsx(re.span,{...e,ref:t,style:{...Lf,...e.style}}));Sa.displayName=Ff;var $f=Sa,[fn,I0]=Xe("Tooltip",[dn]),pn=dn(),_a="TooltipProvider",Vf=700,Ar="tooltip.open",[Hf,Nr]=fn(_a),Ra=e=>{const{__scopeTooltip:t,delayDuration:n=Vf,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(Hf,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(p=>{i.current=p},[]),disableHoverableContent:o,children:s})};Ra.displayName=_a;var Et="Tooltip",[zf,mn]=fn(Et),Ma=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=Nr(Et,e.__scopeTooltip),p=pn(t),[d,f]=u.useState(null),m=De(),h=u.useRef(0),b=a??l.disableHoverableContent,g=i??l.delayDuration,x=u.useRef(!1),[v,w]=xt({prop:r,defaultProp:o??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ar))):l.onClose(),s==null||s(M)},caller:Et}),E=u.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),S=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,w(!0)},[w]),_=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,w(!0),h.current=0},g)},[g,w]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(Mr,{...p,children:c.jsx(zf,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?N():S()},[l.isOpenDelayedRef,N,S]),onTriggerLeave:u.useCallback(()=>{b?_():(window.clearTimeout(h.current),h.current=0)},[_,b]),onOpen:S,onClose:_,disableHoverableContent:b,children:n})})};Ma.displayName=Et;var Tr="TooltipTrigger",Aa=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mn(Tr,n),s=Nr(Tr,n),a=pn(n),i=u.useRef(null),l=ie(t,i,o.onTriggerChange),p=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>p.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(ya,{asChild:!0,...a,children:c.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:$(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:$(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:$(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:$(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:$(e.onBlur,o.onClose),onClick:$(e.onClick,o.onClose)})})});Aa.displayName=Tr;var Wf="TooltipPortal",[j0,Gf]=fn(Wf,{forceMount:void 0}),pt="TooltipContent",Na=u.forwardRef((e,t)=>{const n=Gf(pt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=mn(pt,e.__scopeTooltip);return c.jsx(Ie,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Ta,{side:o,...s,ref:t}):c.jsx(Bf,{side:o,...s,ref:t})})}),Bf=u.forwardRef((e,t)=>{const n=mn(pt,e.__scopeTooltip),r=Nr(pt,e.__scopeTooltip),o=u.useRef(null),s=ie(t,o),[a,i]=u.useState(null),{trigger:l,onClose:p}=n,d=o.current,{onPointerInTransitChange:f}=r,m=u.useCallback(()=>{i(null),f(!1)},[f]),h=u.useCallback((b,g)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},w=Xf(v,x.getBoundingClientRect()),E=Zf(v,w),S=Jf(g.getBoundingClientRect()),_=ep([...E,...S]);i(_),f(!0)},[f]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&d){const b=x=>h(x,d),g=x=>h(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",g)}}},[l,d,h,m]),u.useEffect(()=>{if(a){const b=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),E=!Qf(v,a);w?m():E&&(m(),p())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,a,p,m]),c.jsx(Ta,{...e,ref:s})}),[Uf,Kf]=fn(Et,{isInside:!1}),Yf=il("TooltipContent"),Ta=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=mn(pt,n),p=pn(n),{onClose:d}=l;return u.useEffect(()=>(document.addEventListener(Ar,d),()=>document.removeEventListener(Ar,d)),[d]),u.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(Ca,{"data-state":l.stateAttribute,...p,...i,ref:t,style:{...i.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:[c.jsx(Yf,{children:r}),c.jsx(Uf,{scope:n,isInside:!0,children:c.jsx($f,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Na.displayName=pt;var ka="TooltipArrow",qf=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(n);return Kf(ka,n).isInside?null:c.jsx(Ea,{...o,...r,ref:t})});qf.displayName=ka;function Xf(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 Zf(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 Jf(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 Qf(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 i=t[s],l=t[a],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function ep(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),tp(t)}function tp(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 np=Ra,rp=Ma,op=Aa,Oa=Na;const kr=np,Or=rp,Pr=op,hn=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Oa,{ref:r,sideOffset:t,className:T("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));hn.displayName=Oa.displayName;const sp="sidebar_state",ap=60*60*24*7,ip="16rem",cp="18rem",lp="3rem",up="b",Pa=u.createContext(null);function St(){const e=u.useContext(Pa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Da({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...a}){const i=Zl(),[l,p]=u.useState(!1),[d,f]=u.useState(e),m=t??d,h=u.useCallback(v=>{const w=typeof v=="function"?v(m):v;n?n(w):f(w),document.cookie=`${sp}=${w}; path=/; max-age=${ap}`},[n,m]),b=u.useCallback(()=>i?p(v=>!v):h(v=>!v),[i,h,p]);u.useEffect(()=>{const v=w=>{w.key===up&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const g=m?"expanded":"collapsed",x=u.useMemo(()=>({state:g,open:m,setOpen:h,isMobile:i,openMobile:l,setOpenMobile:p,toggleSidebar:b}),[g,m,h,i,l,p,b]);return c.jsx(Pa.Provider,{value:x,children:c.jsx(kr,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":ip,"--sidebar-width-icon":lp,...o},className:T("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:s})})})}function Ia({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:a,state:i,openMobile:l,setOpenMobile:p}=St();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:T("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...s,children:o}):a?c.jsx(Gs,{open:l,onOpenChange:p,...s,children:c.jsxs(cr,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":cp},side:e,children:[c.jsxs(lr,{className:"sr-only",children:[c.jsx(ur,{children:"Sidebar"}),c.jsx(dr,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:T("relative w-(--sidebar-width) bg-white transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:T("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function ja({className:e,onClick:t,...n}){const{toggleSidebar:r}=St();return c.jsxs(zt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:T("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(ol,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function La({className:e,...t}){const{toggleSidebar:n}=St();return c.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:T("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Fa({className:e,...t}){return c.jsx("main",{"data-slot":"sidebar-inset",className:T("bg-white relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function dp({className:e,...t}){return c.jsx(Bn,{"data-slot":"sidebar-input","data-sidebar":"input",className:T("bg-background h-8 w-full shadow-none",e),...t})}function $a({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:T("flex flex-col gap-2 p-2",e),...t})}function fp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:T("flex flex-col gap-2 p-2",e),...t})}function pp({className:e,...t}){return c.jsx(Wt,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:T("bg-sidebar-border mx-2 w-auto",e),...t})}function Va({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:T("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Ha({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:T("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function mp({className:e,asChild:t=!1,...n}){const r=t?tt:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:T("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function hp({className:e,asChild:t=!1,...n}){const r=t?tt:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function za({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:T("w-full text-sm",e),...t})}function gp({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:T("flex w-full min-w-0 flex-col gap-1",e),...t})}function vp({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:T("group/menu-item relative",e),...t})}const bp=Fn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function xp({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:s,...a}){const i=e?tt:"button",{isMobile:l,state:p}=St(),d=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:T(bp({variant:n,size:r}),s),...a});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Or,{children:[c.jsx(Pr,{asChild:!0,children:d}),c.jsx(hn,{side:"right",align:"center",hidden:p!=="collapsed"||l,...o})]})):d}function wp({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?tt:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function yp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:T("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function Cp({className:e,showIcon:t=!1,...n}){const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:T("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(fr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(fr,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function Wa({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:T("border-sidebar-border mx-3 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Ga({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:T("group/menu-sub-item relative",e),...t})}function Ba({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?tt:"a";return c.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}function Ua({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1,className:a,disabled:i=!1}){const[l,p]=u.useState(r);u.useEffect(()=>{s&&p(!0)},[s]);const d=!i&&t;return c.jsx(Ha,{className:a,children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between",children:[d?c.jsxs("a",{href:t,className:T("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"),children:[o&&c.jsx("span",{className:T("text-gray-600"),children:o}),c.jsx("span",{className:T("text-gray-600"),children:e})]}):c.jsxs("div",{className:T("flex flex-1 items-center gap-2 rounded-lg p-2",i&&"cursor-default"),children:[o&&c.jsx("span",{className:T("text-gray-600"),children:o}),c.jsx("span",{className:T("text-gray-600"),children:e})]}),c.jsx("button",{type:"button",className:T("mr-3 rounded-lg p-2 text-gray-500",i?"cursor-default opacity-50":"hover:bg-gray-100 hover:text-gray-700"),onClick:f=>{f.preventDefault(),f.stopPropagation(),i||p(!l)},disabled:i,"aria-label":l?"Collapse section":"Expand section",children:l?c.jsx(el,{className:"h-4 w-4"}):c.jsx(So,{className:"h-4 w-4"})})]}),c.jsx("div",{className:T("overflow-hidden transition-all",l&&!i?"max-h-96":"max-h-0"),children:n})]})})}function Ka(e){const t=e+"CollectionProvider",[n,r]=Xe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:x,children:v}=g,w=I.useRef(null),E=I.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:E,collectionRef:w,children:v})};a.displayName=t;const i=e+"CollectionSlot",l=et(i),p=I.forwardRef((g,x)=>{const{scope:v,children:w}=g,E=s(i,v),S=ie(x,E.collectionRef);return c.jsx(l,{ref:S,children:w})});p.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=et(d),h=I.forwardRef((g,x)=>{const{scope:v,children:w,...E}=g,S=I.useRef(null),_=ie(x,S),N=s(d,v);return I.useEffect(()=>(N.itemMap.set(S,{ref:S,...E}),()=>void N.itemMap.delete(S))),c.jsx(m,{[f]:"",ref:_,children:w})});h.displayName=d;function b(g){const x=s(e+"CollectionConsumer",g);return I.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,M)=>E.indexOf(N.ref.current)-E.indexOf(M.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:p,ItemSlot:h},b,r]}var Ep=u.createContext(void 0);function Ya(e){const t=u.useContext(Ep);return e||t||"ltr"}var Dr="rovingFocusGroup.onEntryFocus",Sp={bubbles:!1,cancelable:!0},_t="RovingFocusGroup",[Ir,qa,_p]=Ka(_t),[Rp,Xa]=Xe(_t,[_p]),[Mp,Ap]=Rp(_t),Za=u.forwardRef((e,t)=>c.jsx(Ir.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Ir.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Np,{...e,ref:t})})}));Za.displayName=_t;var Np=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:p,preventScrollOnEntryFocus:d=!1,...f}=e,m=u.useRef(null),h=ie(t,m),b=Ya(s),[g,x]=xt({prop:a,defaultProp:i??null,onChange:l,caller:_t}),[v,w]=u.useState(!1),E=_e(p),S=qa(n),_=u.useRef(!1),[N,M]=u.useState(0);return u.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(Dr,E),()=>C.removeEventListener(Dr,E)},[E]),c.jsx(Mp,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(C=>x(C),[x]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>M(C=>C+1),[]),onFocusableItemRemove:u.useCallback(()=>M(C=>C-1),[]),children:c.jsx(re.div,{tabIndex:v||N===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:$(e.onMouseDown,()=>{_.current=!0}),onFocus:$(e.onFocus,C=>{const j=!_.current;if(C.target===C.currentTarget&&j&&!v){const L=new CustomEvent(Dr,Sp);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const U=S().filter(V=>V.focusable),B=U.find(V=>V.active),z=U.find(V=>V.id===g),X=[B,z,...U].filter(Boolean).map(V=>V.ref.current);ei(X,d)}}_.current=!1}),onBlur:$(e.onBlur,()=>w(!1))})})}),Ja="RovingFocusGroupItem",Qa=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=De(),p=s||l,d=Ap(Ja,n),f=d.currentTabStopId===p,m=qa(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=d;return u.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),c.jsx(Ir.ItemSlot,{scope:n,id:p,focusable:r,active:o,children:c.jsx(re.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:$(e.onMouseDown,x=>{r?d.onItemFocus(p):x.preventDefault()}),onFocus:$(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:$(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Op(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const S=E.indexOf(x.currentTarget);E=d.loop?Pp(E,S+1):E.slice(S+1)}setTimeout(()=>ei(E))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:g!=null}):a})})});Qa.displayName=Ja;var Tp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Op(e,t,n){const r=kp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Tp[r]}function ei(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Pp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Dp=Za,Ip=Qa,jr=["Enter"," "],jp=["ArrowDown","PageUp","Home"],ti=["ArrowUp","PageDown","End"],Lp=[...jp,...ti],Fp={ltr:[...jr,"ArrowRight"],rtl:[...jr,"ArrowLeft"]},$p={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rt="Menu",[Mt,Vp,Hp]=Ka(Rt),[Qe,ni]=Xe(Rt,[Hp,dn,Xa]),At=dn(),ri=Xa(),[oi,Ue]=Qe(Rt),[zp,Nt]=Qe(Rt),si=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=At(t),[l,p]=u.useState(null),d=u.useRef(!1),f=_e(s),m=Ya(o);return u.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(Mr,{...i,children:c.jsx(oi,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:p,children:c.jsx(zp,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:a,children:r})})})};si.displayName=Rt;var Wp="MenuAnchor",Lr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=At(n);return c.jsx(ya,{...o,...r,ref:t})});Lr.displayName=Wp;var Fr="MenuPortal",[Gp,ai]=Qe(Fr,{forceMount:void 0}),ii=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Ue(Fr,t);return c.jsx(Gp,{scope:t,forceMount:n,children:c.jsx(Ie,{present:n||s.open,children:c.jsx(Xn,{asChild:!0,container:o,children:r})})})};ii.displayName=Fr;var be="MenuContent",[Bp,$r]=Qe(be),ci=u.forwardRef((e,t)=>{const n=ai(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ue(be,e.__scopeMenu),a=Nt(be,e.__scopeMenu);return c.jsx(Mt.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||s.open,children:c.jsx(Mt.Slot,{scope:e.__scopeMenu,children:a.modal?c.jsx(Up,{...o,ref:t}):c.jsx(Kp,{...o,ref:t})})})})}),Up=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu),r=u.useRef(null),o=ie(t,r);return u.useEffect(()=>{const s=r.current;if(s)return Cs(s)},[]),c.jsx(Vr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Kp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu);return c.jsx(Vr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Yp=et("MenuContent.ScrollLock"),Vr=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:b,...g}=e,x=Ue(be,n),v=Nt(be,n),w=At(n),E=ri(n),S=Vp(n),[_,N]=u.useState(null),M=u.useRef(null),C=ie(t,M,x.onContentChange),j=u.useRef(0),L=u.useRef(""),U=u.useRef(0),B=u.useRef(null),z=u.useRef("right"),W=u.useRef(0),X=b?nr:u.Fragment,V=b?{as:Yp,allowPinchZoom:!0}:void 0,K=k=>{var Y,ee;const y=L.current+k,D=S().filter(te=>!te.disabled),F=document.activeElement,H=(Y=D.find(te=>te.ref.current===F))==null?void 0:Y.textValue,Z=D.map(te=>te.textValue),ne=am(Z,y,H),ue=(ee=D.find(te=>te.textValue===ne))==null?void 0:ee.ref.current;(function te(ae){L.current=ae,window.clearTimeout(j.current),ae!==""&&(j.current=window.setTimeout(()=>te(""),1e3))})(y),ue&&setTimeout(()=>ue.focus())};u.useEffect(()=>()=>window.clearTimeout(j.current),[]),is();const R=u.useCallback(k=>{var D,F;return z.current===((D=B.current)==null?void 0:D.side)&&cm(k,(F=B.current)==null?void 0:F.area)},[]);return c.jsx(Bp,{scope:n,searchRef:L,onItemEnter:u.useCallback(k=>{R(k)&&k.preventDefault()},[R]),onItemLeave:u.useCallback(k=>{var y;R(k)||((y=M.current)==null||y.focus(),N(null))},[R]),onTriggerLeave:u.useCallback(k=>{R(k)&&k.preventDefault()},[R]),pointerGraceTimerRef:U,onPointerGraceIntentChange:u.useCallback(k=>{B.current=k},[]),children:c.jsx(X,{...V,children:c.jsx(qn,{asChild:!0,trapped:o,onMountAutoFocus:$(s,k=>{var y;k.preventDefault(),(y=M.current)==null||y.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:c.jsx(Dp,{asChild:!0,...E,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:N,onEntryFocus:$(l,k=>{v.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(Ca,{role:"menu","aria-orientation":"vertical","data-state":Ri(x.open),"data-radix-menu-content":"",dir:v.dir,...w,...g,ref:C,style:{outline:"none",...g.style},onKeyDown:$(g.onKeyDown,k=>{const D=k.target.closest("[data-radix-menu-content]")===k.currentTarget,F=k.ctrlKey||k.altKey||k.metaKey,H=k.key.length===1;D&&(k.key==="Tab"&&k.preventDefault(),!F&&H&&K(k.key));const Z=M.current;if(k.target!==Z||!Lp.includes(k.key))return;k.preventDefault();const ue=S().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ti.includes(k.key)&&ue.reverse(),om(ue)}),onBlur:$(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(j.current),L.current="")}),onPointerMove:$(e.onPointerMove,kt(k=>{const y=k.target,D=W.current!==k.clientX;if(k.currentTarget.contains(y)&&D){const F=k.clientX>W.current?"right":"left";z.current=F,W.current=k.clientX}}))})})})})})})});ci.displayName=be;var qp="MenuGroup",Hr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"group",...r,ref:t})});Hr.displayName=qp;var Xp="MenuLabel",li=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{...r,ref:t})});li.displayName=Xp;var gn="MenuItem",ui="menu.itemSelect",vn=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=u.useRef(null),a=Nt(gn,e.__scopeMenu),i=$r(gn,e.__scopeMenu),l=ie(t,s),p=u.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const m=new CustomEvent(ui,{bubbles:!0,cancelable:!0});f.addEventListener(ui,h=>r==null?void 0:r(h),{once:!0}),Yo(f,m),m.defaultPrevented?p.current=!1:a.onClose()}};return c.jsx(di,{...o,ref:l,disabled:n,onClick:$(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),p.current=!0},onPointerUp:$(e.onPointerUp,f=>{var m;p.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:$(e.onKeyDown,f=>{const m=i.searchRef.current!=="";n||m&&f.key===" "||jr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});vn.displayName=gn;var di=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=$r(gn,n),i=ri(n),l=u.useRef(null),p=ie(t,l),[d,f]=u.useState(!1),[m,h]=u.useState("");return u.useEffect(()=>{const b=l.current;b&&h((b.textContent??"").trim())},[s.children]),c.jsx(Mt.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:c.jsx(Ip,{asChild:!0,...i,focusable:!r,children:c.jsx(re.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:p,onPointerMove:$(e.onPointerMove,kt(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(e.onPointerLeave,kt(b=>a.onItemLeave(b))),onFocus:$(e.onFocus,()=>f(!0)),onBlur:$(e.onBlur,()=>f(!1))})})})}),Zp="MenuCheckboxItem",fi=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(vi,{scope:e.__scopeMenu,checked:n,children:c.jsx(vn,{role:"menuitemcheckbox","aria-checked":bn(n)?"mixed":n,...o,ref:t,"data-state":Gr(n),onSelect:$(o.onSelect,()=>r==null?void 0:r(bn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fi.displayName=Zp;var pi="MenuRadioGroup",[Jp,Qp]=Qe(pi,{value:void 0,onValueChange:()=>{}}),mi=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=_e(r);return c.jsx(Jp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:c.jsx(Hr,{...o,ref:t})})});mi.displayName=pi;var hi="MenuRadioItem",gi=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Qp(hi,e.__scopeMenu),s=n===o.value;return c.jsx(vi,{scope:e.__scopeMenu,checked:s,children:c.jsx(vn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Gr(s),onSelect:$(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});gi.displayName=hi;var zr="MenuItemIndicator",[vi,em]=Qe(zr,{checked:!1}),bi=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=em(zr,n);return c.jsx(Ie,{present:r||bn(s.checked)||s.checked===!0,children:c.jsx(re.span,{...o,ref:t,"data-state":Gr(s.checked)})})});bi.displayName=zr;var tm="MenuSeparator",xi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});xi.displayName=tm;var nm="MenuArrow",wi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=At(n);return c.jsx(Ea,{...o,...r,ref:t})});wi.displayName=nm;var Wr="MenuSub",[rm,yi]=Qe(Wr),Ci=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=Ue(Wr,t),a=At(t),[i,l]=u.useState(null),[p,d]=u.useState(null),f=_e(o);return u.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),c.jsx(Mr,{...a,children:c.jsx(oi,{scope:t,open:r,onOpenChange:f,content:p,onContentChange:d,children:c.jsx(rm,{scope:t,contentId:De(),triggerId:De(),trigger:i,onTriggerChange:l,children:n})})})};Ci.displayName=Wr;var Tt="MenuSubTrigger",Ei=u.forwardRef((e,t)=>{const n=Ue(Tt,e.__scopeMenu),r=Nt(Tt,e.__scopeMenu),o=yi(Tt,e.__scopeMenu),s=$r(Tt,e.__scopeMenu),a=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=s,p={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=i.current;return()=>{window.clearTimeout(f),l(null)}},[i,l]),c.jsx(Lr,{asChild:!0,...p,children:c.jsx(di,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ri(n.open),...e,ref:$t(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$(e.onPointerMove,kt(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:$(e.onPointerLeave,kt(f=>{var h,b;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const g=(b=n.content)==null?void 0:b.dataset.side,x=g==="right",v=x?-5:5,w=m[x?"left":"right"],E=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:w,y:m.top},{x:E,y:m.top},{x:E,y:m.bottom},{x:w,y:m.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:$(e.onKeyDown,f=>{var h;const m=s.searchRef.current!=="";e.disabled||m&&f.key===" "||Fp[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});Ei.displayName=Tt;var Si="MenuSubContent",_i=u.forwardRef((e,t)=>{const n=ai(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ue(be,e.__scopeMenu),a=Nt(be,e.__scopeMenu),i=yi(Si,e.__scopeMenu),l=u.useRef(null),p=ie(t,l);return c.jsx(Mt.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||s.open,children:c.jsx(Mt.Slot,{scope:e.__scopeMenu,children:c.jsx(Vr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:p,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;a.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:$(e.onFocusOutside,d=>{d.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:$(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:$(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=$p[a.dir].includes(d.key);f&&m&&(s.onOpenChange(!1),(h=i.trigger)==null||h.focus(),d.preventDefault())})})})})})});_i.displayName=Si;function Ri(e){return e?"open":"closed"}function bn(e){return e==="indeterminate"}function Gr(e){return bn(e)?"indeterminate":e?"checked":"unchecked"}function om(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function sm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function am(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=sm(e,Math.max(s,0));o.length===1&&(a=a.filter(p=>p!==n));const l=a.find(p=>p.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function im(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 i=t[s],l=t[a],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function cm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return im(n,t)}function kt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lm=si,um=Lr,dm=ii,fm=ci,pm=Hr,mm=li,hm=vn,gm=fi,vm=mi,bm=gi,xm=bi,wm=xi,ym=wi,Cm=Ci,Em=Ei,Sm=_i,xn="DropdownMenu",[_m,L0]=Xe(xn,[ni]),pe=ni(),[Rm,Mi]=_m(xn),Ai=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,l=pe(t),p=u.useRef(null),[d,f]=xt({prop:o,defaultProp:s??!1,onChange:a,caller:xn});return c.jsx(Rm,{scope:t,triggerId:De(),triggerRef:p,contentId:De(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:i,children:c.jsx(lm,{...l,open:d,onOpenChange:f,dir:r,modal:i,children:n})})};Ai.displayName=xn;var Ni="DropdownMenuTrigger",Ti=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Mi(Ni,n),a=pe(n);return c.jsx(um,{asChild:!0,...a,children:c.jsx(re.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:$t(t,s.triggerRef),onPointerDown:$(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:$(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ti.displayName=Ni;var Mm="DropdownMenuPortal",ki=e=>{const{__scopeDropdownMenu:t,...n}=e,r=pe(t);return c.jsx(dm,{...r,...n})};ki.displayName=Mm;var Oi="DropdownMenuContent",Pi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mi(Oi,n),s=pe(n),a=u.useRef(!1);return c.jsx(fm,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:$(e.onCloseAutoFocus,i=>{var l;a.current||(l=o.triggerRef.current)==null||l.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:$(e.onInteractOutside,i=>{const l=i.detail.originalEvent,p=l.button===0&&l.ctrlKey===!0,d=l.button===2||p;(!o.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pi.displayName=Oi;var Am="DropdownMenuGroup",Di=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(pm,{...o,...r,ref:t})});Di.displayName=Am;var Nm="DropdownMenuLabel",Ii=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(mm,{...o,...r,ref:t})});Ii.displayName=Nm;var Tm="DropdownMenuItem",ji=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(hm,{...o,...r,ref:t})});ji.displayName=Tm;var km="DropdownMenuCheckboxItem",Li=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(gm,{...o,...r,ref:t})});Li.displayName=km;var Om="DropdownMenuRadioGroup",Fi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(vm,{...o,...r,ref:t})});Fi.displayName=Om;var Pm="DropdownMenuRadioItem",$i=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(bm,{...o,...r,ref:t})});$i.displayName=Pm;var Dm="DropdownMenuItemIndicator",Vi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(xm,{...o,...r,ref:t})});Vi.displayName=Dm;var Im="DropdownMenuSeparator",Hi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(wm,{...o,...r,ref:t})});Hi.displayName=Im;var jm="DropdownMenuArrow",Lm=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(ym,{...o,...r,ref:t})});Lm.displayName=jm;var Fm=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=pe(t),[i,l]=xt({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(Cm,{...a,open:i,onOpenChange:l,children:n})},$m="DropdownMenuSubTrigger",zi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(Em,{...o,...r,ref:t})});zi.displayName=$m;var Vm="DropdownMenuSubContent",Wi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(Sm,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wi.displayName=Vm;var Hm=Ai,zm=Ti,Gi=ki,Wm=Pi,Gm=Di,Bm=Ii,Um=ji,Km=Li,Ym=Fi,qm=$i,Bi=Vi,Xm=Hi,Zm=Fm,Jm=zi,Qm=Wi;function Ui({...e}){return c.jsx(Hm,{"data-slot":"dropdown-menu",...e})}function e0({...e}){return c.jsx(Gi,{"data-slot":"dropdown-menu-portal",...e})}function Ki({...e}){return c.jsx(zm,{"data-slot":"dropdown-menu-trigger",...e})}function Yi({className:e,sideOffset:t=4,...n}){return c.jsx(Gi,{children:c.jsx(Wm,{"data-slot":"dropdown-menu-content",sideOffset:t,className:T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function t0({...e}){return c.jsx(Gm,{"data-slot":"dropdown-menu-group",...e})}function Br({className:e,inset:t,variant:n="default",...r}){return c.jsx(Um,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function n0({className:e,children:t,checked:n,...r}){return c.jsxs(Km,{"data-slot":"dropdown-menu-checkbox-item",className:T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(Qc,{className:"size-4"})})}),t]})}function r0({...e}){return c.jsx(Ym,{"data-slot":"dropdown-menu-radio-group",...e})}function o0({className:e,children:t,...n}){return c.jsxs(qm,{"data-slot":"dropdown-menu-radio-item",className:T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(nl,{className:"size-2 fill-current"})})}),t]})}function qi({className:e,inset:t,...n}){return c.jsx(Bm,{"data-slot":"dropdown-menu-label","data-inset":t,className:T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Xi({className:e,...t}){return c.jsx(Xm,{"data-slot":"dropdown-menu-separator",className:T("bg-border -mx-1 my-1 h-px",e),...t})}function s0({className:e,...t}){return c.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:T("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function a0({...e}){return c.jsx(Zm,{"data-slot":"dropdown-menu-sub",...e})}function i0({className:e,inset:t,children:n,...r}){return c.jsxs(Jm,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:T("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,c.jsx(So,{className:"ml-auto size-4"})]})}function c0({className:e,...t}){return c.jsx(Qm,{"data-slot":"dropdown-menu-sub-content",className:T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const l0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function u0(){const[e,t]=I.useState("");return I.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const Zi=I.createContext(void 0),Ji=()=>{const e=I.useContext(Zi);if(e===void 0)throw new Error("usePermissions must be used within PermissionsProvider");return e};function d0({children:e}){const[t,n]=I.useState({essentialInsights:!1,priceMonster:!1,web:!1});return I.useEffect(()=>{fetch("/api/auth/permissions").then(r=>r.json()).then(r=>{const o=(r==null?void 0:r.userData)||{};n({essentialInsights:!!o.essentialInsights,priceMonster:!!o.priceMonster,web:!!o.web})}).catch(r=>console.error("Error fetching product access:",r))},[]),c.jsx(Zi.Provider,{value:t,children:e})}const f0={navMain:[{title:"Essential Insights",key:"essentialInsights",url:"/essential-insights/overall-performance",icon:c.jsx(Jc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:c.jsx(_o,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:c.jsx(Eo,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:c.jsx(Zc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:c.jsx(Eo,{className:"h-4 w-4"})},{title:"More Components",url:"/essential-insights/more-components",icon:c.jsx(Ft,{className:"h-4 w-4"})}]},{title:"Price Monster",key:"priceMonster",url:"/price-monster",icon:c.jsx(tl,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:c.jsx(Ft,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:c.jsx(qc,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:c.jsx(Xc,{className:"h-4 w-4"})}]},{title:"CMS",key:"web",url:"/cms",icon:c.jsx(Ft,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:c.jsx(Ft,{className:"h-4 w-4"})}]}]};function p0({...e}){const{isActiveRoute:t}=u0(),n=Ji();return c.jsxs(Ia,{...e,children:[c.jsx($a,{children:c.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:c.jsx("img",{src:l0,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),c.jsxs(Va,{children:[c.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:c.jsxs("a",{href:"/",className:T("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx(_o,{className:T("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-500")}),c.jsx("span",{children:"Home"})]})}),c.jsx(kr,{delayDuration:150,children:f0.navMain.map(r=>{const o=!r.key||n[r.key],s=o&&(t(r.url)||r.items.some(i=>t(i.url))),a=c.jsx(Ua,{url:o?r.url:void 0,title:r.title,icon:r.icon,isActive:s,disabled:!o,className:T(!o&&"opacity-50"),children:o&&c.jsx(za,{children:c.jsx(Wa,{children:r.items.map(i=>{const l=t(i.url);return c.jsx(Ga,{children:c.jsx(Ba,{asChild:!0,children:c.jsxs("a",{href:i.url,className:T("flex items-center gap-2 pl-4 transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",l&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx("span",{className:T(l?"text-gli-bluedark":"text-muted-foreground"),children:i.icon}),c.jsx("span",{className:T(l?"text-gli-bluedark":"text-muted-foreground"),children:i.title})]})})},i.title)})})})},r.title);return r.key==="priceMonster"&&!o?c.jsxs(Or,{children:[c.jsx(Pr,{asChild:!0,children:c.jsx("div",{children:a})}),c.jsx(hn,{side:"right",align:"start",children:"Coming soon"})]},r.title):a})})]}),c.jsx(La,{})]})}const Qi=({onLogout:e})=>{const{user:t,error:n,isLoading:r}=zc(),o=async()=>{try{e&&await e(),window.location.href="/auth/logout"}catch(s){console.error("Error during logout:",s),window.location.href="/auth/logout"}};return r?c.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):n?c.jsxs("div",{children:["Error: ",n.message]}):t?c.jsx("div",{className:"relative flex items-center gap-3",children:c.jsxs(Ui,{children:[c.jsx(Ki,{asChild:!0,children:c.jsx(zt,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:t.picture?c.jsx("img",{src:t.picture,alt:t.name||"User profile",width:40,height:40,className:"rounded-full"}):c.jsx(Ro,{className:"h-5 w-5 text-gray-500"})})}),c.jsxs(Yi,{align:"end",className:"w-72",children:[c.jsx(qi,{children:c.jsx("div",{className:"flex flex-col space-y-1",children:c.jsxs("div",{className:"flex flex-col space-y-1",children:[c.jsx("p",{className:"text-xs text-gray-500",children:t.name}),c.jsx("p",{className:"truncate text-xs text-gray-500",children:t.email})]})})}),c.jsx(Xi,{}),c.jsx(Br,{asChild:!0,children:c.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[c.jsx(Ro,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Profile"})]})}),c.jsxs(Br,{onClick:o,children:[c.jsx(rl,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Sign out"})]})]})]})}):null},ec=({onLogout:e})=>c.jsx("div",{className:"sticky top-0 z-50 bg-white",children:c.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[c.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[c.jsx(ja,{}),c.jsx(Wt,{orientation:"vertical"})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Qi,{onLogout:e})})]})}),m0=({children:e,onLogout:t})=>c.jsx(Wc,{children:c.jsx(Da,{children:c.jsxs("div",{className:"flex h-screen w-full",children:[c.jsx(p0,{}),c.jsxs(Fa,{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(ec,{onLogout:t}),c.jsx("main",{className:"flex-1 bg-white overflow-auto",id:"page-content",children:e})]})]})})});A.AppHeader=ec,A.Button=zt,A.Card=Gl,A.CardAction=Yl,A.CardContent=ql,A.CardDescription=Kl,A.CardFooter=Xl,A.CardHeader=Bl,A.CardTitle=Ul,A.CollapsibleSection=Ua,A.DropdownMenu=Ui,A.DropdownMenuCheckboxItem=n0,A.DropdownMenuContent=Yi,A.DropdownMenuGroup=t0,A.DropdownMenuItem=Br,A.DropdownMenuLabel=qi,A.DropdownMenuPortal=e0,A.DropdownMenuRadioGroup=r0,A.DropdownMenuRadioItem=o0,A.DropdownMenuSeparator=Xi,A.DropdownMenuShortcut=s0,A.DropdownMenuSub=a0,A.DropdownMenuSubContent=c0,A.DropdownMenuSubTrigger=i0,A.DropdownMenuTrigger=Ki,A.GLICloudProvider=m0,A.Input=Bn,A.PermissionsProvider=d0,A.ProfileDropdown=Qi,A.Separator=Wt,A.Sheet=Gs,A.SheetClose=Rd,A.SheetContent=cr,A.SheetDescription=dr,A.SheetFooter=Us,A.SheetHeader=lr,A.SheetOverlay=ir,A.SheetPortal=Bs,A.SheetTitle=ur,A.SheetTrigger=_d,A.Sidebar=Ia,A.SidebarContent=Va,A.SidebarFooter=fp,A.SidebarGroup=Ha,A.SidebarGroupAction=hp,A.SidebarGroupContent=za,A.SidebarGroupLabel=mp,A.SidebarHeader=$a,A.SidebarInput=dp,A.SidebarInset=Fa,A.SidebarMenu=gp,A.SidebarMenuAction=wp,A.SidebarMenuBadge=yp,A.SidebarMenuButton=xp,A.SidebarMenuItem=vp,A.SidebarMenuSkeleton=Cp,A.SidebarMenuSub=Wa,A.SidebarMenuSubButton=Ba,A.SidebarMenuSubItem=Ga,A.SidebarProvider=Da,A.SidebarRail=La,A.SidebarSeparator=pp,A.SidebarTrigger=ja,A.Skeleton=fr,A.Tooltip=Or,A.TooltipContent=hn,A.TooltipProvider=kr,A.TooltipTrigger=Pr,A.buttonVariants=Ko,A.usePermissions=Ji,A.useSidebar=St,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
|
182
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wd="DialogDescriptionWarning",yd=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fs(wd).contentName}}.`;return u.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Cd=Ss,Ed=Rs,Sd=As,$s=Ns,Vs=Ts,Hs=Os,zs=Ds,Ws=js;const Gs=Cd,_d=Ed,Rd=Ws,Bs=Sd,ir=u.forwardRef(({className:e,...t},n)=>c.jsx($s,{className:T("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));ir.displayName=$s.displayName;const Md=Fn("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),cr=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(Bs,{children:[c.jsx(ir,{}),c.jsxs(Vs,{ref:o,className:T(Md({side:e}),t),...r,children:[n,c.jsxs(Ws,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(sl,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cr.displayName=Vs.displayName;const lr=({className:e,...t})=>c.jsx("div",{className:T("flex flex-col space-y-2 text-center sm:text-left",e),...t});lr.displayName="SheetHeader";const Us=({className:e,...t})=>c.jsx("div",{className:T("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Us.displayName="SheetFooter";const ur=u.forwardRef(({className:e,...t},n)=>c.jsx(Hs,{ref:n,className:T("text-lg font-semibold text-foreground",e),...t}));ur.displayName=Hs.displayName;const dr=u.forwardRef(({className:e,...t},n)=>c.jsx(zs,{ref:n,className:T("text-sm text-muted-foreground",e),...t}));dr.displayName=zs.displayName;function fr({className:e,...t}){return c.jsx("div",{className:T("animate-pulse rounded-md bg-muted",e),...t})}const Ad=["top","right","bottom","left"],Ge=Math.min,he=Math.max,tn=Math.round,nn=Math.floor,Me=e=>({x:e,y:e}),Nd={left:"right",right:"left",bottom:"top",top:"bottom"},Td={start:"end",end:"start"};function pr(e,t,n){return he(e,Ge(t,n))}function je(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function mr(e){return e==="x"?"y":"x"}function hr(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(Le(e))?"y":"x"}function gr(e){return mr(Ae(e))}function kd(e,t,n){n===void 0&&(n=!1);const r=lt(e),o=gr(e),s=hr(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=rn(a)),[a,rn(a)]}function Od(e){const t=rn(e);return[vr(e),t,vr(t)]}function vr(e){return e.replace(/start|end/g,t=>Td[t])}function Pd(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Dd(e,t,n,r){const o=lt(e);let s=Pd(Le(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(vr)))),s}function rn(e){return e.replace(/left|right|bottom|top/g,t=>Nd[t])}function Id(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ks(e){return typeof e!="number"?Id(e):{top:e,right:e,bottom:e,left:e}}function on(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 Ys(e,t,n){let{reference:r,floating:o}=e;const s=Ae(t),a=gr(t),i=hr(a),l=Le(t),p=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(lt(t)){case"start":h[a]-=m*(n&&p?-1:1);break;case"end":h[a]+=m*(n&&p?-1:1);break}return h}const jd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let p=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ys(p,r,l),m=r,h={},b=0;for(let g=0;g<i.length;g++){const{name:x,fn:v}=i[g],{x:w,y:E,data:S,reset:_}=await v({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:p,platform:a,elements:{reference:e,floating:t}});d=w??d,f=E??f,h={...h,[x]:{...h[x],...S}},_&&b<=50&&(b++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(p=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:f}=Ys(p,m,l)),g=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}};async function wt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=je(t,e),b=Ks(h),x=i[m?f==="floating"?"reference":"floating":f],v=on(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:p,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},_=on(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:E,strategy:l}):w);return{top:(v.top-_.top+b.top)/S.y,bottom:(_.bottom-v.bottom+b.bottom)/S.y,left:(v.left-_.left+b.left)/S.x,right:(_.right-v.right+b.right)/S.x}}const Ld=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:p,padding:d=0}=je(e,t)||{};if(p==null)return{};const f=Ks(d),m={x:n,y:r},h=gr(o),b=hr(h),g=await a.getDimensions(p),x=h==="y",v=x?"top":"left",w=x?"bottom":"right",E=x?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[h]-m[h]-s.floating[b],_=m[h]-s.reference[h],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(p));let M=N?N[E]:0;(!M||!await(a.isElement==null?void 0:a.isElement(N)))&&(M=i.floating[E]||s.floating[b]);const C=S/2-_/2,j=M/2-g[b]/2-1,L=Ge(f[v],j),U=Ge(f[w],j),B=L,z=M-g[b]-U,W=M/2-g[b]/2+C,X=pr(B,W,z),V=!l.arrow&<(o)!=null&&W!==X&&s.reference[b]/2-(W<B?L:U)-g[b]/2<0,K=V?W<B?W-B:W-z:0;return{[h]:m[h]+K,data:{[h]:X,centerOffset:W-X-K,...V&&{alignmentOffset:K}},reset:V}}}),Fd=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:i,platform:l,elements:p}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=je(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Le(o),w=Ae(i),E=Le(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(p.floating)),_=m||(E||!g?[rn(i)]:Od(i)),N=b!=="none";!m&&N&&_.push(...Dd(i,g,b,S));const M=[i,..._],C=await wt(t,x),j=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&j.push(C[v]),f){const W=kd(o,a,S);j.push(C[W[0]],C[W[1]])}if(L=[...L,{placement:o,overflows:j}],!j.every(W=>W<=0)){var U,B;const W=(((U=s.flip)==null?void 0:U.index)||0)+1,X=M[W];if(X&&(!(f==="alignment"?w!==Ae(X):!1)||L.every(R=>R.overflows[0]>0&&Ae(R.placement)===w)))return{data:{index:W,overflows:L},reset:{placement:X}};let V=(B=L.filter(K=>K.overflows[0]<=0).sort((K,R)=>K.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!V)switch(h){case"bestFit":{var z;const K=(z=L.filter(R=>{if(N){const k=Ae(R.placement);return k===w||k==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(k=>k>0).reduce((k,y)=>k+y,0)]).sort((R,k)=>R[1]-k[1])[0])==null?void 0:z[0];K&&(V=K);break}case"initialPlacement":V=i;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function qs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xs(e){return Ad.some(t=>e[t]>=0)}const $d=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=je(e,t);switch(r){case"referenceHidden":{const s=await wt(t,{...o,elementContext:"reference"}),a=qs(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Xs(a)}}}case"escaped":{const s=await wt(t,{...o,altBoundary:!0}),a=qs(s,n.floating);return{data:{escapedOffsets:a,escaped:Xs(a)}}}default:return{}}}}};async function Vd(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Le(n),i=lt(n),l=Ae(n)==="y",p=["left","top"].includes(a)?-1:1,d=s&&l?-1:1,f=je(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*d,y:m*p}:{x:m*p,y:h*d}}const Hd=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:i}=t,l=await Vd(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},zd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:v,y:w}=x;return{x:v,y:w}}},...l}=je(e,t),p={x:n,y:r},d=await wt(t,l),f=Ae(Le(o)),m=mr(f);let h=p[m],b=p[f];if(s){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",w=h+d[x],E=h-d[v];h=pr(w,h,E)}if(a){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=b+d[x],E=b-d[v];b=pr(w,b,E)}const g=i.fn({...t,[m]:h,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:s,[f]:a}}}}}},Wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:p=!0}=je(e,t),d={x:n,y:r},f=Ae(o),m=mr(f);let h=d[m],b=d[f];const g=je(i,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const E=m==="y"?"height":"width",S=s.reference[m]-s.floating[E]+x.mainAxis,_=s.reference[m]+s.reference[E]-x.mainAxis;h<S?h=S:h>_&&(h=_)}if(p){var v,w;const E=m==="y"?"width":"height",S=["top","left"].includes(Le(o)),_=s.reference[f]-s.floating[E]+(S&&((v=a.offset)==null?void 0:v[f])||0)+(S?0:x.crossAxis),N=s.reference[f]+s.reference[E]+(S?0:((w=a.offset)==null?void 0:w[f])||0)-(S?x.crossAxis:0);b<_?b=_:b>N&&(b=N)}return{[m]:h,[f]:b}}}},Gd=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:i}=t,{apply:l=()=>{},...p}=je(e,t),d=await wt(t,p),f=Le(o),m=lt(o),h=Ae(o)==="y",{width:b,height:g}=s.floating;let x,v;f==="top"||f==="bottom"?(x=f,v=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,x=m==="end"?"top":"bottom");const w=g-d.top-d.bottom,E=b-d.left-d.right,S=Ge(g-d[x],w),_=Ge(b-d[v],E),N=!t.middlewareData.shift;let M=S,C=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=w),N&&!m){const L=he(d.left,0),U=he(d.right,0),B=he(d.top,0),z=he(d.bottom,0);h?C=b-2*(L!==0||U!==0?L+U:he(d.left,d.right)):M=g-2*(B!==0||z!==0?B+z:he(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:M});const j=await a.getDimensions(i.floating);return b!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function sn(){return typeof window<"u"}function ut(e){return Zs(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ne(e){var t;return(t=(Zs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zs(e){return sn()?e instanceof Node||e instanceof ge(e).Node:!1}function Ce(e){return sn()?e instanceof Element||e instanceof ge(e).Element:!1}function Te(e){return sn()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function Js(e){return!sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function yt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Bd(e){return["table","td","th"].includes(ut(e))}function an(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function br(e){const t=xr(),n=Ce(e)?Ee(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ud(e){let t=Be(e);for(;Te(t)&&!dt(t);){if(br(t))return t;if(an(t))return null;t=Be(t)}return null}function xr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dt(e){return["html","body","#document"].includes(ut(e))}function Ee(e){return ge(e).getComputedStyle(e)}function cn(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Js(e)&&e.host||Ne(e);return Js(t)?t.host:t}function Qs(e){const t=Be(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&yt(t)?t:Qs(t)}function Ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Qs(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ge(o);if(s){const i=wr(a);return t.concat(a,a.visualViewport||[],yt(o)?o:[],i&&n?Ct(i):[])}return t.concat(o,Ct(o,[],n))}function wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ea(e){const t=Ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Te(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=tn(n)!==s||tn(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function yr(e){return Ce(e)?e:e.contextElement}function ft(e){const t=yr(e);if(!Te(t))return Me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ea(t);let a=(s?tn(n.width):n.width)/r,i=(s?tn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Kd=Me(0);function ta(e){const t=ge(e);return!xr()||!t.visualViewport?Kd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=yr(e);let a=Me(1);t&&(r?Ce(r)&&(a=ft(r)):a=ft(e));const i=Yd(s,n,r)?ta(s):Me(0);let l=(o.left+i.x)/a.x,p=(o.top+i.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const m=ge(s),h=r&&Ce(r)?ge(r):r;let b=m,g=wr(b);for(;g&&r&&h!==b;){const x=ft(g),v=g.getBoundingClientRect(),w=Ee(g),E=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*x.x,S=v.top+(g.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,p*=x.y,d*=x.x,f*=x.y,l+=E,p+=S,b=ge(g),g=wr(b)}}return on({width:d,height:f,x:l,y:p})}function Cr(e,t){const n=cn(e).scrollLeft;return t?t.left+n:Je(Ne(e)).left+n}function na(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Cr(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function qd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ne(r),i=t?an(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},p=Me(1);const d=Me(0),f=Te(r);if((f||!f&&!s)&&((ut(r)!=="body"||yt(a))&&(l=cn(r)),Te(r))){const h=Je(r);p=ft(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=a&&!f&&!s?na(a,l,!0):Me(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-l.scrollLeft*p.x+d.x+m.x,y:n.y*p.y-l.scrollTop*p.y+d.y+m.y}}function Xd(e){return Array.from(e.getClientRects())}function Zd(e){const t=Ne(e),n=cn(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Cr(e);const i=-n.scrollTop;return Ee(r).direction==="rtl"&&(a+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function Jd(e,t){const n=ge(e),r=Ne(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const p=xr();(!p||p&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:i,y:l}}function Qd(e,t){const n=Je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Te(e)?ft(e):Me(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,p=r*s.y;return{width:a,height:i,x:l,y:p}}function ra(e,t,n){let r;if(t==="viewport")r=Jd(e,n);else if(t==="document")r=Zd(Ne(e));else if(Ce(t))r=Qd(t,n);else{const o=ta(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return on(r)}function oa(e,t){const n=Be(e);return n===t||!Ce(n)||dt(n)?!1:Ee(n).position==="fixed"||oa(n,t)}function ef(e,t){const n=t.get(e);if(n)return n;let r=Ct(e,[],!1).filter(i=>Ce(i)&&ut(i)!=="body"),o=null;const s=Ee(e).position==="fixed";let a=s?Be(e):e;for(;Ce(a)&&!dt(a);){const i=Ee(a),l=br(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||yt(a)&&!l&&oa(e,a))?r=r.filter(d=>d!==a):o=i,a=Be(a)}return t.set(e,r),r}function tf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?an(t)?[]:ef(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((p,d)=>{const f=ra(t,d,o);return p.top=he(f.top,p.top),p.right=Ge(f.right,p.right),p.bottom=Ge(f.bottom,p.bottom),p.left=he(f.left,p.left),p},ra(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nf(e){const{width:t,height:n}=ea(e);return{width:t,height:n}}function rf(e,t,n){const r=Te(t),o=Ne(t),s=n==="fixed",a=Je(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=Me(0);function p(){l.x=Cr(o)}if(r||!r&&!s)if((ut(t)!=="body"||yt(o))&&(i=cn(t)),r){const h=Je(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&p();s&&!r&&o&&p();const d=o&&!r&&!s?na(o,i):Me(0),f=a.left+i.scrollLeft-l.x-d.x,m=a.top+i.scrollTop-l.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Er(e){return Ee(e).position==="static"}function sa(e,t){if(!Te(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ne(e)===n&&(n=n.ownerDocument.body),n}function aa(e,t){const n=ge(e);if(an(e))return n;if(!Te(e)){let o=Be(e);for(;o&&!dt(o);){if(Ce(o)&&!Er(o))return o;o=Be(o)}return n}let r=sa(e,t);for(;r&&Bd(r)&&Er(r);)r=sa(r,t);return r&&dt(r)&&Er(r)&&!br(r)?n:r||Ud(e)||n}const of=async function(e){const t=this.getOffsetParent||aa,n=this.getDimensions,r=await n(e.floating);return{reference:rf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sf(e){return Ee(e).direction==="rtl"}const af={convertOffsetParentRelativeRectToViewportRelativeRect:qd,getDocumentElement:Ne,getClippingRect:tf,getOffsetParent:aa,getElementRects:of,getClientRects:Xd,getDimensions:nf,getScale:ft,isElement:Ce,isRTL:sf};function ia(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cf(e,t){let n=null,r;const o=Ne(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const p=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=p;if(i||t(),!m||!h)return;const b=nn(f),g=nn(o.clientWidth-(d+m)),x=nn(o.clientHeight-(f+h)),v=nn(d),E={rootMargin:-b+"px "+-g+"px "+-x+"px "+-v+"px",threshold:he(0,Ge(1,l))||1};let S=!0;function _(N){const M=N[0].intersectionRatio;if(M!==l){if(!S)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!ia(p,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,E)}n.observe(e)}return a(!0),s}function lf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,p=yr(e),d=o||s?[...p?Ct(p):[],...Ct(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const f=p&&i?cf(p,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===p&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),p&&!l&&h.observe(p),h.observe(t));let b,g=l?Je(e):null;l&&x();function x(){const v=Je(e);g&&!ia(g,v)&&n(),g=v,b=requestAnimationFrame(x)}return n(),()=>{var v;d.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const uf=Hd,df=zd,ff=Fd,pf=Gd,mf=$d,ca=Ld,hf=Wd,gf=(e,t,n)=>{const r=new Map,o={platform:af,...n},s={...o.platform,_c:r};return jd(e,t,{...o,platform:s})};var vf=typeof document<"u",bf=function(){},ln=vf?I.useLayoutEffect:bf;function un(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(!un(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)&&!un(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function la(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ua(e,t){const n=la(e);return Math.round(t*n)/n}function Sr(e){const t=u.useRef(e);return ln(()=>{t.current=e}),t}function xf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:p}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=u.useState(r);un(m,r)||h(r);const[b,g]=u.useState(null),[x,v]=u.useState(null),w=u.useCallback(R=>{R!==N.current&&(N.current=R,g(R))},[]),E=u.useCallback(R=>{R!==M.current&&(M.current=R,v(R))},[]),S=s||b,_=a||x,N=u.useRef(null),M=u.useRef(null),C=u.useRef(d),j=l!=null,L=Sr(l),U=Sr(o),B=Sr(p),z=u.useCallback(()=>{if(!N.current||!M.current)return;const R={placement:t,strategy:n,middleware:m};U.current&&(R.platform=U.current),gf(N.current,M.current,R).then(k=>{const y={...k,isPositioned:B.current!==!1};W.current&&!un(C.current,y)&&(C.current=y,Xr.flushSync(()=>{f(y)}))})},[m,t,n,U,B]);ln(()=>{p===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[p]);const W=u.useRef(!1);ln(()=>(W.current=!0,()=>{W.current=!1}),[]),ln(()=>{if(S&&(N.current=S),_&&(M.current=_),S&&_){if(L.current)return L.current(S,_,z);z()}},[S,_,z,L,j]);const X=u.useMemo(()=>({reference:N,floating:M,setReference:w,setFloating:E}),[w,E]),V=u.useMemo(()=>({reference:S,floating:_}),[S,_]),K=u.useMemo(()=>{const R={position:n,left:0,top:0};if(!V.floating)return R;const k=ua(V.floating,d.x),y=ua(V.floating,d.y);return i?{...R,transform:"translate("+k+"px, "+y+"px)",...la(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:y}},[n,i,V.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:z,refs:X,elements:V,floatingStyles:K}),[d,z,X,V,K])}const wf=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?ca({element:r.current,padding:o}).fn(n):{}:r?ca({element:r,padding:o}).fn(n):{}}}},yf=(e,t)=>({...uf(e),options:[e,t]}),Cf=(e,t)=>({...df(e),options:[e,t]}),Ef=(e,t)=>({...hf(e),options:[e,t]}),Sf=(e,t)=>({...ff(e),options:[e,t]}),_f=(e,t)=>({...pf(e),options:[e,t]}),Rf=(e,t)=>({...mf(e),options:[e,t]}),Mf=(e,t)=>({...wf(e),options:[e,t]});var Af="Arrow",da=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(re.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});da.displayName=Af;var Nf=da;function Tf(e){const[t,n]=u.useState(void 0);return ze(()=>{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,i;if("borderBoxSize"in s){const l=s.borderBoxSize,p=Array.isArray(l)?l[0]:l;a=p.inlineSize,i=p.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _r="Popper",[fa,dn]=Xe(_r),[kf,pa]=fa(_r),ma=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(kf,{scope:t,anchor:r,onAnchorChange:o,children:n})};ma.displayName=_r;var ha="PopperAnchor",ga=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=pa(ha,n),a=u.useRef(null),i=ie(t,a);return u.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:c.jsx(re.div,{...o,ref:i})});ga.displayName=ha;var Rr="PopperContent",[Of,Pf]=fa(Rr),va=u.forwardRef((e,t)=>{var Y,ee,te,ae,Se,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:p=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,x=pa(Rr,n),[v,w]=u.useState(null),E=ie(t,J=>w(J)),[S,_]=u.useState(null),N=Tf(S),M=(N==null?void 0:N.width)??0,C=(N==null?void 0:N.height)??0,j=r+(s!=="center"?"-"+s:""),L=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(p)?p:[p],B=U.length>0,z={padding:L,boundary:U.filter(If),altBoundary:B},{refs:W,floatingStyles:X,placement:V,isPositioned:K,middlewareData:R}=xf({strategy:"fixed",placement:j,whileElementsMounted:(...J)=>lf(...J,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[yf({mainAxis:o+C,alignmentAxis:a}),l&&Cf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Ef():void 0,...z}),l&&Sf({...z}),_f({...z,apply:({elements:J,rects:Q,availableWidth:le,availableHeight:oe})=>{const{width:ve,height:Ye}=Q.reference,se=J.floating.style;se.setProperty("--radix-popper-available-width",`${le}px`),se.setProperty("--radix-popper-available-height",`${oe}px`),se.setProperty("--radix-popper-anchor-width",`${ve}px`),se.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),S&&Mf({element:S,padding:i}),jf({arrowWidth:M,arrowHeight:C}),m&&Rf({strategy:"referenceHidden",...z})]}),[k,y]=wa(V),D=_e(b);ze(()=>{K&&(D==null||D())},[K,D]);const F=(Y=R.arrow)==null?void 0:Y.x,H=(ee=R.arrow)==null?void 0:ee.y,Z=((te=R.arrow)==null?void 0:te.centerOffset)!==0,[ne,ue]=u.useState();return ze(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:K?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(ae=R.transformOrigin)==null?void 0:ae.x,(Se=R.transformOrigin)==null?void 0:Se.y].join(" "),...((Ke=R.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Of,{scope:n,placedSide:k,onArrowChange:_,arrowX:F,arrowY:H,shouldHideArrow:Z,children:c.jsx(re.div,{"data-side":k,"data-align":y,...g,ref:E,style:{...g.style,animation:K?void 0:"none"}})})})});va.displayName=Rr;var ba="PopperArrow",Df={top:"bottom",right:"left",bottom:"top",left:"right"},xa=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Pf(ba,r),a=Df[s.placedSide];return c.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:c.jsx(Nf,{...o,ref:n,style:{...o.style,display:"block"}})})});xa.displayName=ba;function If(e){return e!==null}var jf=e=>({name:"transformOrigin",options:e,fn(t){var x,v,w;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[p,d]=wa(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((v=o.arrow)==null?void 0:v.x)??0)+i/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let b="",g="";return p==="bottom"?(b=a?f:`${m}px`,g=`${-l}px`):p==="top"?(b=a?f:`${m}px`,g=`${r.floating.height+l}px`):p==="right"?(b=`${-l}px`,g=a?f:`${h}px`):p==="left"&&(b=`${r.floating.width+l}px`,g=a?f:`${h}px`),{data:{x:b,y:g}}}});function wa(e){const[t,n="center"]=e.split("-");return[t,n]}var Mr=ma,ya=ga,Ca=va,Ea=xa,Lf=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"}),Ff="VisuallyHidden",Sa=u.forwardRef((e,t)=>c.jsx(re.span,{...e,ref:t,style:{...Lf,...e.style}}));Sa.displayName=Ff;var $f=Sa,[fn,I0]=Xe("Tooltip",[dn]),pn=dn(),_a="TooltipProvider",Vf=700,Ar="tooltip.open",[Hf,Nr]=fn(_a),Ra=e=>{const{__scopeTooltip:t,delayDuration:n=Vf,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(Hf,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(p=>{i.current=p},[]),disableHoverableContent:o,children:s})};Ra.displayName=_a;var Et="Tooltip",[zf,mn]=fn(Et),Ma=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=Nr(Et,e.__scopeTooltip),p=pn(t),[d,f]=u.useState(null),m=De(),h=u.useRef(0),b=a??l.disableHoverableContent,g=i??l.delayDuration,x=u.useRef(!1),[v,w]=xt({prop:r,defaultProp:o??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ar))):l.onClose(),s==null||s(M)},caller:Et}),E=u.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),S=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,w(!0)},[w]),_=u.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=u.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,w(!0),h.current=0},g)},[g,w]);return u.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(Mr,{...p,children:c.jsx(zf,{scope:t,contentId:m,open:v,stateAttribute:E,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?N():S()},[l.isOpenDelayedRef,N,S]),onTriggerLeave:u.useCallback(()=>{b?_():(window.clearTimeout(h.current),h.current=0)},[_,b]),onOpen:S,onClose:_,disableHoverableContent:b,children:n})})};Ma.displayName=Et;var Tr="TooltipTrigger",Aa=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=mn(Tr,n),s=Nr(Tr,n),a=pn(n),i=u.useRef(null),l=ie(t,i,o.onTriggerChange),p=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>p.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(ya,{asChild:!0,...a,children:c.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:$(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:$(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:$(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:$(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:$(e.onBlur,o.onClose),onClick:$(e.onClick,o.onClose)})})});Aa.displayName=Tr;var Wf="TooltipPortal",[j0,Gf]=fn(Wf,{forceMount:void 0}),pt="TooltipContent",Na=u.forwardRef((e,t)=>{const n=Gf(pt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=mn(pt,e.__scopeTooltip);return c.jsx(Ie,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Ta,{side:o,...s,ref:t}):c.jsx(Bf,{side:o,...s,ref:t})})}),Bf=u.forwardRef((e,t)=>{const n=mn(pt,e.__scopeTooltip),r=Nr(pt,e.__scopeTooltip),o=u.useRef(null),s=ie(t,o),[a,i]=u.useState(null),{trigger:l,onClose:p}=n,d=o.current,{onPointerInTransitChange:f}=r,m=u.useCallback(()=>{i(null),f(!1)},[f]),h=u.useCallback((b,g)=>{const x=b.currentTarget,v={x:b.clientX,y:b.clientY},w=Xf(v,x.getBoundingClientRect()),E=Zf(v,w),S=Jf(g.getBoundingClientRect()),_=ep([...E,...S]);i(_),f(!0)},[f]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&d){const b=x=>h(x,d),g=x=>h(x,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",g)}}},[l,d,h,m]),u.useEffect(()=>{if(a){const b=g=>{const x=g.target,v={x:g.clientX,y:g.clientY},w=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),E=!Qf(v,a);w?m():E&&(m(),p())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,a,p,m]),c.jsx(Ta,{...e,ref:s})}),[Uf,Kf]=fn(Et,{isInside:!1}),Yf=il("TooltipContent"),Ta=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=mn(pt,n),p=pn(n),{onClose:d}=l;return u.useEffect(()=>(document.addEventListener(Ar,d),()=>document.removeEventListener(Ar,d)),[d]),u.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(Ca,{"data-state":l.stateAttribute,...p,...i,ref:t,style:{...i.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:[c.jsx(Yf,{children:r}),c.jsx(Uf,{scope:n,isInside:!0,children:c.jsx($f,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Na.displayName=pt;var ka="TooltipArrow",qf=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(n);return Kf(ka,n).isInside?null:c.jsx(Ea,{...o,...r,ref:t})});qf.displayName=ka;function Xf(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 Zf(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 Jf(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 Qf(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 i=t[s],l=t[a],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function ep(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),tp(t)}function tp(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 np=Ra,rp=Ma,op=Aa,Oa=Na;const kr=np,Or=rp,Pr=op,hn=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Oa,{ref:r,sideOffset:t,className:T("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));hn.displayName=Oa.displayName;const sp="sidebar_state",ap=60*60*24*7,ip="16rem",cp="18rem",lp="3rem",up="b",Pa=u.createContext(null);function St(){const e=u.useContext(Pa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Da({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,...a}){const i=Zl(),[l,p]=u.useState(!1),[d,f]=u.useState(e),m=t??d,h=u.useCallback(v=>{const w=typeof v=="function"?v(m):v;n?n(w):f(w),document.cookie=`${sp}=${w}; path=/; max-age=${ap}`},[n,m]),b=u.useCallback(()=>i?p(v=>!v):h(v=>!v),[i,h,p]);u.useEffect(()=>{const v=w=>{w.key===up&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),b())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[b]);const g=m?"expanded":"collapsed",x=u.useMemo(()=>({state:g,open:m,setOpen:h,isMobile:i,openMobile:l,setOpenMobile:p,toggleSidebar:b}),[g,m,h,i,l,p,b]);return c.jsx(Pa.Provider,{value:x,children:c.jsx(kr,{delayDuration:0,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":ip,"--sidebar-width-icon":lp,...o},className:T("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:s})})})}function Ia({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...s}){const{isMobile:a,state:i,openMobile:l,setOpenMobile:p}=St();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:T("bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...s,children:o}):a?c.jsx(Gs,{open:l,onOpenChange:p,...s,children:c.jsxs(cr,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-white text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":cp},side:e,children:[c.jsxs(lr,{className:"sr-only",children:[c.jsx(ur,{children:"Sidebar"}),c.jsx(dr,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:T("relative w-(--sidebar-width) bg-white transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:T("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-white group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col px-1 py-2 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function ja({className:e,onClick:t,...n}){const{toggleSidebar:r}=St();return c.jsxs(zt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:T("size-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(ol,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function La({className:e,...t}){const{toggleSidebar:n}=St();return c.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:T("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Fa({className:e,...t}){return c.jsx("main",{"data-slot":"sidebar-inset",className:T("bg-white relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function dp({className:e,...t}){return c.jsx(Bn,{"data-slot":"sidebar-input","data-sidebar":"input",className:T("bg-background h-8 w-full shadow-none",e),...t})}function $a({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:T("flex flex-col gap-2 p-2",e),...t})}function fp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:T("flex flex-col gap-2 p-2",e),...t})}function pp({className:e,...t}){return c.jsx(Wt,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:T("bg-sidebar-border mx-2 w-auto",e),...t})}function Va({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:T("flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Ha({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:T("relative flex w-full min-w-0 flex-col px-2 py-1",e),...t})}function mp({className:e,asChild:t=!1,...n}){const r=t?tt:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:T("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function hp({className:e,asChild:t=!1,...n}){const r=t?tt:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})}function za({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:T("w-full text-sm",e),...t})}function gp({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:T("flex w-full min-w-0 flex-col gap-1",e),...t})}function vp({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:T("group/menu-item relative",e),...t})}const bp=Fn("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function xp({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:s,...a}){const i=e?tt:"button",{isMobile:l,state:p}=St(),d=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:T(bp({variant:n,size:r}),s),...a});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Or,{children:[c.jsx(Pr,{asChild:!0,children:d}),c.jsx(hn,{side:"right",align:"center",hidden:p!=="collapsed"||l,...o})]})):d}function wp({className:e,asChild:t=!1,showOnHover:n=!1,...r}){const o=t?tt:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})}function yp({className:e,...t}){return c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:T("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function Cp({className:e,showIcon:t=!1,...n}){const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:T("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(fr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(fr,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function Wa({className:e,...t}){return c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:T("border-sidebar-border mx-3 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function Ga({className:e,...t}){return c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:T("group/menu-sub-item relative",e),...t})}function Ba({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o}){const s=e?tt:"a";return c.jsx(s,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:T("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})}function Ua({title:e,url:t,children:n,defaultOpen:r=!1,icon:o,isActive:s=!1,className:a,disabled:i=!1}){const[l,p]=u.useState(r);u.useEffect(()=>{s&&p(!0)},[s]);const d=!i&&t;return c.jsx(Ha,{className:a,children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between",children:[d?c.jsxs("a",{href:t,className:T("flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"),children:[o&&c.jsx("span",{className:T("text-gray-600"),children:o}),c.jsx("span",{className:T("text-gray-600"),children:e})]}):c.jsxs("div",{className:T("flex flex-1 items-center gap-2 rounded-lg p-2",i&&"cursor-default"),children:[o&&c.jsx("span",{className:T("text-gray-600"),children:o}),c.jsx("span",{className:T("text-gray-600"),children:e})]}),c.jsx("button",{type:"button",className:T("mr-3 rounded-lg p-2 text-gray-500",i?"cursor-default opacity-50":"hover:bg-gray-100 hover:text-gray-700"),onClick:f=>{f.preventDefault(),f.stopPropagation(),i||p(!l)},disabled:i,"aria-label":l?"Collapse section":"Expand section",children:l?c.jsx(el,{className:"h-4 w-4"}):c.jsx(So,{className:"h-4 w-4"})})]}),c.jsx("div",{className:T("overflow-hidden transition-all",l&&!i?"max-h-96":"max-h-0"),children:n})]})})}function Ka(e){const t=e+"CollectionProvider",[n,r]=Xe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:x,children:v}=g,w=I.useRef(null),E=I.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:E,collectionRef:w,children:v})};a.displayName=t;const i=e+"CollectionSlot",l=et(i),p=I.forwardRef((g,x)=>{const{scope:v,children:w}=g,E=s(i,v),S=ie(x,E.collectionRef);return c.jsx(l,{ref:S,children:w})});p.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=et(d),h=I.forwardRef((g,x)=>{const{scope:v,children:w,...E}=g,S=I.useRef(null),_=ie(x,S),N=s(d,v);return I.useEffect(()=>(N.itemMap.set(S,{ref:S,...E}),()=>void N.itemMap.delete(S))),c.jsx(m,{[f]:"",ref:_,children:w})});h.displayName=d;function b(g){const x=s(e+"CollectionConsumer",g);return I.useCallback(()=>{const w=x.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,M)=>E.indexOf(N.ref.current)-E.indexOf(M.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:p,ItemSlot:h},b,r]}var Ep=u.createContext(void 0);function Ya(e){const t=u.useContext(Ep);return e||t||"ltr"}var Dr="rovingFocusGroup.onEntryFocus",Sp={bubbles:!1,cancelable:!0},_t="RovingFocusGroup",[Ir,qa,_p]=Ka(_t),[Rp,Xa]=Xe(_t,[_p]),[Mp,Ap]=Rp(_t),Za=u.forwardRef((e,t)=>c.jsx(Ir.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Ir.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Np,{...e,ref:t})})}));Za.displayName=_t;var Np=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:p,preventScrollOnEntryFocus:d=!1,...f}=e,m=u.useRef(null),h=ie(t,m),b=Ya(s),[g,x]=xt({prop:a,defaultProp:i??null,onChange:l,caller:_t}),[v,w]=u.useState(!1),E=_e(p),S=qa(n),_=u.useRef(!1),[N,M]=u.useState(0);return u.useEffect(()=>{const C=m.current;if(C)return C.addEventListener(Dr,E),()=>C.removeEventListener(Dr,E)},[E]),c.jsx(Mp,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(C=>x(C),[x]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>M(C=>C+1),[]),onFocusableItemRemove:u.useCallback(()=>M(C=>C-1),[]),children:c.jsx(re.div,{tabIndex:v||N===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:$(e.onMouseDown,()=>{_.current=!0}),onFocus:$(e.onFocus,C=>{const j=!_.current;if(C.target===C.currentTarget&&j&&!v){const L=new CustomEvent(Dr,Sp);if(C.currentTarget.dispatchEvent(L),!L.defaultPrevented){const U=S().filter(V=>V.focusable),B=U.find(V=>V.active),z=U.find(V=>V.id===g),X=[B,z,...U].filter(Boolean).map(V=>V.ref.current);ei(X,d)}}_.current=!1}),onBlur:$(e.onBlur,()=>w(!1))})})}),Ja="RovingFocusGroupItem",Qa=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=De(),p=s||l,d=Ap(Ja,n),f=d.currentTabStopId===p,m=qa(n),{onFocusableItemAdd:h,onFocusableItemRemove:b,currentTabStopId:g}=d;return u.useEffect(()=>{if(r)return h(),()=>b()},[r,h,b]),c.jsx(Ir.ItemSlot,{scope:n,id:p,focusable:r,active:o,children:c.jsx(re.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:$(e.onMouseDown,x=>{r?d.onItemFocus(p):x.preventDefault()}),onFocus:$(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:$(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Op(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let E=m().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")E.reverse();else if(v==="prev"||v==="next"){v==="prev"&&E.reverse();const S=E.indexOf(x.currentTarget);E=d.loop?Pp(E,S+1):E.slice(S+1)}setTimeout(()=>ei(E))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:g!=null}):a})})});Qa.displayName=Ja;var Tp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Op(e,t,n){const r=kp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Tp[r]}function ei(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Pp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Dp=Za,Ip=Qa,jr=["Enter"," "],jp=["ArrowDown","PageUp","Home"],ti=["ArrowUp","PageDown","End"],Lp=[...jp,...ti],Fp={ltr:[...jr,"ArrowRight"],rtl:[...jr,"ArrowLeft"]},$p={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rt="Menu",[Mt,Vp,Hp]=Ka(Rt),[Qe,ni]=Xe(Rt,[Hp,dn,Xa]),At=dn(),ri=Xa(),[oi,Ue]=Qe(Rt),[zp,Nt]=Qe(Rt),si=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,i=At(t),[l,p]=u.useState(null),d=u.useRef(!1),f=_e(s),m=Ya(o);return u.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),c.jsx(Mr,{...i,children:c.jsx(oi,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:p,children:c.jsx(zp,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:a,children:r})})})};si.displayName=Rt;var Wp="MenuAnchor",Lr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=At(n);return c.jsx(ya,{...o,...r,ref:t})});Lr.displayName=Wp;var Fr="MenuPortal",[Gp,ai]=Qe(Fr,{forceMount:void 0}),ii=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Ue(Fr,t);return c.jsx(Gp,{scope:t,forceMount:n,children:c.jsx(Ie,{present:n||s.open,children:c.jsx(Xn,{asChild:!0,container:o,children:r})})})};ii.displayName=Fr;var be="MenuContent",[Bp,$r]=Qe(be),ci=u.forwardRef((e,t)=>{const n=ai(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ue(be,e.__scopeMenu),a=Nt(be,e.__scopeMenu);return c.jsx(Mt.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||s.open,children:c.jsx(Mt.Slot,{scope:e.__scopeMenu,children:a.modal?c.jsx(Up,{...o,ref:t}):c.jsx(Kp,{...o,ref:t})})})})}),Up=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu),r=u.useRef(null),o=ie(t,r);return u.useEffect(()=>{const s=r.current;if(s)return Cs(s)},[]),c.jsx(Vr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Kp=u.forwardRef((e,t)=>{const n=Ue(be,e.__scopeMenu);return c.jsx(Vr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Yp=et("MenuContent.ScrollLock"),Vr=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:b,...g}=e,x=Ue(be,n),v=Nt(be,n),w=At(n),E=ri(n),S=Vp(n),[_,N]=u.useState(null),M=u.useRef(null),C=ie(t,M,x.onContentChange),j=u.useRef(0),L=u.useRef(""),U=u.useRef(0),B=u.useRef(null),z=u.useRef("right"),W=u.useRef(0),X=b?nr:u.Fragment,V=b?{as:Yp,allowPinchZoom:!0}:void 0,K=k=>{var Y,ee;const y=L.current+k,D=S().filter(te=>!te.disabled),F=document.activeElement,H=(Y=D.find(te=>te.ref.current===F))==null?void 0:Y.textValue,Z=D.map(te=>te.textValue),ne=am(Z,y,H),ue=(ee=D.find(te=>te.textValue===ne))==null?void 0:ee.ref.current;(function te(ae){L.current=ae,window.clearTimeout(j.current),ae!==""&&(j.current=window.setTimeout(()=>te(""),1e3))})(y),ue&&setTimeout(()=>ue.focus())};u.useEffect(()=>()=>window.clearTimeout(j.current),[]),is();const R=u.useCallback(k=>{var D,F;return z.current===((D=B.current)==null?void 0:D.side)&&cm(k,(F=B.current)==null?void 0:F.area)},[]);return c.jsx(Bp,{scope:n,searchRef:L,onItemEnter:u.useCallback(k=>{R(k)&&k.preventDefault()},[R]),onItemLeave:u.useCallback(k=>{var y;R(k)||((y=M.current)==null||y.focus(),N(null))},[R]),onTriggerLeave:u.useCallback(k=>{R(k)&&k.preventDefault()},[R]),pointerGraceTimerRef:U,onPointerGraceIntentChange:u.useCallback(k=>{B.current=k},[]),children:c.jsx(X,{...V,children:c.jsx(qn,{asChild:!0,trapped:o,onMountAutoFocus:$(s,k=>{var y;k.preventDefault(),(y=M.current)==null||y.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:c.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:c.jsx(Dp,{asChild:!0,...E,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:_,onCurrentTabStopIdChange:N,onEntryFocus:$(l,k=>{v.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(Ca,{role:"menu","aria-orientation":"vertical","data-state":Ri(x.open),"data-radix-menu-content":"",dir:v.dir,...w,...g,ref:C,style:{outline:"none",...g.style},onKeyDown:$(g.onKeyDown,k=>{const D=k.target.closest("[data-radix-menu-content]")===k.currentTarget,F=k.ctrlKey||k.altKey||k.metaKey,H=k.key.length===1;D&&(k.key==="Tab"&&k.preventDefault(),!F&&H&&K(k.key));const Z=M.current;if(k.target!==Z||!Lp.includes(k.key))return;k.preventDefault();const ue=S().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ti.includes(k.key)&&ue.reverse(),om(ue)}),onBlur:$(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(j.current),L.current="")}),onPointerMove:$(e.onPointerMove,kt(k=>{const y=k.target,D=W.current!==k.clientX;if(k.currentTarget.contains(y)&&D){const F=k.clientX>W.current?"right":"left";z.current=F,W.current=k.clientX}}))})})})})})})});ci.displayName=be;var qp="MenuGroup",Hr=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"group",...r,ref:t})});Hr.displayName=qp;var Xp="MenuLabel",li=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{...r,ref:t})});li.displayName=Xp;var gn="MenuItem",ui="menu.itemSelect",vn=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=u.useRef(null),a=Nt(gn,e.__scopeMenu),i=$r(gn,e.__scopeMenu),l=ie(t,s),p=u.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const m=new CustomEvent(ui,{bubbles:!0,cancelable:!0});f.addEventListener(ui,h=>r==null?void 0:r(h),{once:!0}),Yo(f,m),m.defaultPrevented?p.current=!1:a.onClose()}};return c.jsx(di,{...o,ref:l,disabled:n,onClick:$(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),p.current=!0},onPointerUp:$(e.onPointerUp,f=>{var m;p.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:$(e.onKeyDown,f=>{const m=i.searchRef.current!=="";n||m&&f.key===" "||jr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});vn.displayName=gn;var di=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=$r(gn,n),i=ri(n),l=u.useRef(null),p=ie(t,l),[d,f]=u.useState(!1),[m,h]=u.useState("");return u.useEffect(()=>{const b=l.current;b&&h((b.textContent??"").trim())},[s.children]),c.jsx(Mt.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:c.jsx(Ip,{asChild:!0,...i,focusable:!r,children:c.jsx(re.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:p,onPointerMove:$(e.onPointerMove,kt(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(e.onPointerLeave,kt(b=>a.onItemLeave(b))),onFocus:$(e.onFocus,()=>f(!0)),onBlur:$(e.onBlur,()=>f(!1))})})})}),Zp="MenuCheckboxItem",fi=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return c.jsx(vi,{scope:e.__scopeMenu,checked:n,children:c.jsx(vn,{role:"menuitemcheckbox","aria-checked":bn(n)?"mixed":n,...o,ref:t,"data-state":Gr(n),onSelect:$(o.onSelect,()=>r==null?void 0:r(bn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fi.displayName=Zp;var pi="MenuRadioGroup",[Jp,Qp]=Qe(pi,{value:void 0,onValueChange:()=>{}}),mi=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=_e(r);return c.jsx(Jp,{scope:e.__scopeMenu,value:n,onValueChange:s,children:c.jsx(Hr,{...o,ref:t})})});mi.displayName=pi;var hi="MenuRadioItem",gi=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=Qp(hi,e.__scopeMenu),s=n===o.value;return c.jsx(vi,{scope:e.__scopeMenu,checked:s,children:c.jsx(vn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Gr(s),onSelect:$(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});gi.displayName=hi;var zr="MenuItemIndicator",[vi,em]=Qe(zr,{checked:!1}),bi=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=em(zr,n);return c.jsx(Ie,{present:r||bn(s.checked)||s.checked===!0,children:c.jsx(re.span,{...o,ref:t,"data-state":Gr(s.checked)})})});bi.displayName=zr;var tm="MenuSeparator",xi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});xi.displayName=tm;var nm="MenuArrow",wi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=At(n);return c.jsx(Ea,{...o,...r,ref:t})});wi.displayName=nm;var Wr="MenuSub",[rm,yi]=Qe(Wr),Ci=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=Ue(Wr,t),a=At(t),[i,l]=u.useState(null),[p,d]=u.useState(null),f=_e(o);return u.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),c.jsx(Mr,{...a,children:c.jsx(oi,{scope:t,open:r,onOpenChange:f,content:p,onContentChange:d,children:c.jsx(rm,{scope:t,contentId:De(),triggerId:De(),trigger:i,onTriggerChange:l,children:n})})})};Ci.displayName=Wr;var Tt="MenuSubTrigger",Ei=u.forwardRef((e,t)=>{const n=Ue(Tt,e.__scopeMenu),r=Nt(Tt,e.__scopeMenu),o=yi(Tt,e.__scopeMenu),s=$r(Tt,e.__scopeMenu),a=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=s,p={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=i.current;return()=>{window.clearTimeout(f),l(null)}},[i,l]),c.jsx(Lr,{asChild:!0,...p,children:c.jsx(di,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ri(n.open),...e,ref:$t(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$(e.onPointerMove,kt(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:$(e.onPointerLeave,kt(f=>{var h,b;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const g=(b=n.content)==null?void 0:b.dataset.side,x=g==="right",v=x?-5:5,w=m[x?"left":"right"],E=m[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:w,y:m.top},{x:E,y:m.top},{x:E,y:m.bottom},{x:w,y:m.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:$(e.onKeyDown,f=>{var h;const m=s.searchRef.current!=="";e.disabled||m&&f.key===" "||Fp[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});Ei.displayName=Tt;var Si="MenuSubContent",_i=u.forwardRef((e,t)=>{const n=ai(be,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Ue(be,e.__scopeMenu),a=Nt(be,e.__scopeMenu),i=yi(Si,e.__scopeMenu),l=u.useRef(null),p=ie(t,l);return c.jsx(Mt.Provider,{scope:e.__scopeMenu,children:c.jsx(Ie,{present:r||s.open,children:c.jsx(Mt.Slot,{scope:e.__scopeMenu,children:c.jsx(Vr,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:p,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;a.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:$(e.onFocusOutside,d=>{d.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:$(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:$(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=$p[a.dir].includes(d.key);f&&m&&(s.onOpenChange(!1),(h=i.trigger)==null||h.focus(),d.preventDefault())})})})})})});_i.displayName=Si;function Ri(e){return e?"open":"closed"}function bn(e){return e==="indeterminate"}function Gr(e){return bn(e)?"indeterminate":e?"checked":"unchecked"}function om(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function sm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function am(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=sm(e,Math.max(s,0));o.length===1&&(a=a.filter(p=>p!==n));const l=a.find(p=>p.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function im(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 i=t[s],l=t[a],p=i.x,d=i.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-p)*(r-d)/(m-d)+p&&(o=!o)}return o}function cm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return im(n,t)}function kt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lm=si,um=Lr,dm=ii,fm=ci,pm=Hr,mm=li,hm=vn,gm=fi,vm=mi,bm=gi,xm=bi,wm=xi,ym=wi,Cm=Ci,Em=Ei,Sm=_i,xn="DropdownMenu",[_m,L0]=Xe(xn,[ni]),pe=ni(),[Rm,Mi]=_m(xn),Ai=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:i=!0}=e,l=pe(t),p=u.useRef(null),[d,f]=xt({prop:o,defaultProp:s??!1,onChange:a,caller:xn});return c.jsx(Rm,{scope:t,triggerId:De(),triggerRef:p,contentId:De(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:i,children:c.jsx(lm,{...l,open:d,onOpenChange:f,dir:r,modal:i,children:n})})};Ai.displayName=xn;var Ni="DropdownMenuTrigger",Ti=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Mi(Ni,n),a=pe(n);return c.jsx(um,{asChild:!0,...a,children:c.jsx(re.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:$t(t,s.triggerRef),onPointerDown:$(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:$(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ti.displayName=Ni;var Mm="DropdownMenuPortal",ki=e=>{const{__scopeDropdownMenu:t,...n}=e,r=pe(t);return c.jsx(dm,{...r,...n})};ki.displayName=Mm;var Oi="DropdownMenuContent",Pi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mi(Oi,n),s=pe(n),a=u.useRef(!1);return c.jsx(fm,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:$(e.onCloseAutoFocus,i=>{var l;a.current||(l=o.triggerRef.current)==null||l.focus(),a.current=!1,i.preventDefault()}),onInteractOutside:$(e.onInteractOutside,i=>{const l=i.detail.originalEvent,p=l.button===0&&l.ctrlKey===!0,d=l.button===2||p;(!o.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pi.displayName=Oi;var Am="DropdownMenuGroup",Di=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(pm,{...o,...r,ref:t})});Di.displayName=Am;var Nm="DropdownMenuLabel",Ii=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(mm,{...o,...r,ref:t})});Ii.displayName=Nm;var Tm="DropdownMenuItem",ji=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(hm,{...o,...r,ref:t})});ji.displayName=Tm;var km="DropdownMenuCheckboxItem",Li=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(gm,{...o,...r,ref:t})});Li.displayName=km;var Om="DropdownMenuRadioGroup",Fi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(vm,{...o,...r,ref:t})});Fi.displayName=Om;var Pm="DropdownMenuRadioItem",$i=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(bm,{...o,...r,ref:t})});$i.displayName=Pm;var Dm="DropdownMenuItemIndicator",Vi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(xm,{...o,...r,ref:t})});Vi.displayName=Dm;var Im="DropdownMenuSeparator",Hi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(wm,{...o,...r,ref:t})});Hi.displayName=Im;var jm="DropdownMenuArrow",Lm=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(ym,{...o,...r,ref:t})});Lm.displayName=jm;var Fm=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,a=pe(t),[i,l]=xt({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(Cm,{...a,open:i,onOpenChange:l,children:n})},$m="DropdownMenuSubTrigger",zi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(Em,{...o,...r,ref:t})});zi.displayName=$m;var Vm="DropdownMenuSubContent",Wi=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pe(n);return c.jsx(Sm,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wi.displayName=Vm;var Hm=Ai,zm=Ti,Gi=ki,Wm=Pi,Gm=Di,Bm=Ii,Um=ji,Km=Li,Ym=Fi,qm=$i,Bi=Vi,Xm=Hi,Zm=Fm,Jm=zi,Qm=Wi;function Ui({...e}){return c.jsx(Hm,{"data-slot":"dropdown-menu",...e})}function e0({...e}){return c.jsx(Gi,{"data-slot":"dropdown-menu-portal",...e})}function Ki({...e}){return c.jsx(zm,{"data-slot":"dropdown-menu-trigger",...e})}function Yi({className:e,sideOffset:t=4,...n}){return c.jsx(Gi,{children:c.jsx(Wm,{"data-slot":"dropdown-menu-content",sideOffset:t,className:T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function t0({...e}){return c.jsx(Gm,{"data-slot":"dropdown-menu-group",...e})}function Br({className:e,inset:t,variant:n="default",...r}){return c.jsx(Um,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function n0({className:e,children:t,checked:n,...r}){return c.jsxs(Km,{"data-slot":"dropdown-menu-checkbox-item",className:T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...r,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(Qc,{className:"size-4"})})}),t]})}function r0({...e}){return c.jsx(Ym,{"data-slot":"dropdown-menu-radio-group",...e})}function o0({className:e,children:t,...n}){return c.jsxs(qm,{"data-slot":"dropdown-menu-radio-item",className:T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[c.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:c.jsx(Bi,{children:c.jsx(nl,{className:"size-2 fill-current"})})}),t]})}function qi({className:e,inset:t,...n}){return c.jsx(Bm,{"data-slot":"dropdown-menu-label","data-inset":t,className:T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Xi({className:e,...t}){return c.jsx(Xm,{"data-slot":"dropdown-menu-separator",className:T("bg-border -mx-1 my-1 h-px",e),...t})}function s0({className:e,...t}){return c.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:T("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function a0({...e}){return c.jsx(Zm,{"data-slot":"dropdown-menu-sub",...e})}function i0({className:e,inset:t,children:n,...r}){return c.jsxs(Jm,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:T("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...r,children:[n,c.jsx(So,{className:"ml-auto size-4"})]})}function c0({className:e,...t}){return c.jsx(Qm,{"data-slot":"dropdown-menu-sub-content",className:T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}const l0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20141%2060'%3e%3cpath%20d='M0.059%2019.711V59.673H19.509V49.95H9.779V19.711H0.059Z'%20fill='%2385B9D1'%3e%3c/path%3e%3cpath%20d='M0%200L0.056%204.915V19.715H9.776V9.715H19.5V59.673H29.22V0H0Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M23.49%2019.717H9.776V29.439H23.49V19.717Z'%20fill='%23F68029'%3e%3c/path%3e%3cpath%20d='M0.0580006%2019.718L9.785%2029.445V19.718H0.0580006Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M9.777%2049.953L19.504%2059.679V49.953H9.777Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M50.213%2021.331C50.1839%2019.244%2050.325%2017.1581%2050.635%2015.094C50.8293%2013.6891%2051.2694%2012.3294%2051.935%2011.077C52.4295%2010.1519%2053.1979%209.4023%2054.135%208.93101C55.1033%208.49691%2056.1561%208.28375%2057.217%208.307C58.2628%208.27673%2059.3024%208.47715%2060.262%208.894C61.1441%209.33605%2061.8541%2010.059%2062.28%2010.949C62.8725%2012.1976%2063.2507%2013.5369%2063.399%2014.911C63.6554%2016.9922%2063.7717%2019.0882%2063.747%2021.185C63.7759%2023.338%2063.6421%2025.4901%2063.347%2027.623C63.1657%2029.0675%2062.7378%2030.4702%2062.082%2031.77C61.6022%2032.7122%2060.8471%2033.4862%2059.917%2033.989C58.9503%2034.4507%2057.888%2034.6768%2056.817%2034.649C55.7687%2034.6771%2054.7258%2034.4896%2053.753%2034.098C52.8534%2033.6775%2052.1275%2032.9579%2051.699%2032.062C51.0884%2030.7803%2050.7037%2029.4027%2050.562%2027.99C50.3018%2025.7802%2050.1852%2023.5559%2050.213%2021.331ZM54.913%2022.248C54.913%2023.6913%2054.9377%2024.9267%2054.987%2025.954C55.0147%2026.8043%2055.1127%2027.6509%2055.28%2028.485C55.3666%2029.0149%2055.5877%2029.5138%2055.922%2029.934C56.0643%2030.0868%2056.238%2030.207%2056.4312%2030.2862C56.6244%2030.3655%2056.8324%2030.4019%2057.041%2030.393C57.25%2030.3964%2057.4571%2030.3533%2057.6473%2030.2668C57.8375%2030.1803%2058.0062%2030.0526%2058.141%2029.893C58.4964%2029.4241%2058.7297%2028.8744%2058.82%2028.293C59.0025%2027.3609%2059.1128%2026.4161%2059.15%2025.467C59.2107%2024.3177%2059.2414%2022.936%2059.242%2021.322C59.242%2019.732%2059.224%2018.3747%2059.188%2017.25C59.169%2016.3373%2059.0736%2015.4278%2058.903%2014.531C58.8198%2013.9744%2058.5923%2013.4493%2058.243%2013.008C58.0929%2012.8491%2057.9104%2012.7244%2057.7078%2012.6422C57.5053%2012.5601%2057.2874%2012.5225%2057.069%2012.532C56.8667%2012.5304%2056.6668%2012.576%2056.4852%2012.6652C56.3036%2012.7544%2056.1453%2012.8848%2056.023%2013.046C55.6766%2013.5389%2055.4446%2014.103%2055.344%2014.697C55.1442%2015.6885%2055.0277%2016.695%2054.996%2017.706C54.9347%2018.9533%2054.904%2020.4697%2054.904%2022.255'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M83.329%2021.331C83.2999%2019.244%2083.441%2017.1581%2083.751%2015.094C83.9453%2013.6891%2084.3854%2012.3294%2085.051%2011.077C85.5455%2010.1519%2086.3139%209.40235%2087.251%208.93105C89.2087%208.112%2091.4106%208.09871%2093.378%208.89405C94.2601%209.33609%2094.9701%2010.0591%2095.396%2010.949C95.9885%2012.1976%2096.3667%2013.537%2096.515%2014.911C96.7714%2016.9922%2096.8877%2019.0883%2096.863%2021.185C96.8919%2023.3381%2096.7581%2025.4902%2096.463%2027.6231C96.2817%2029.0676%2095.8538%2030.4703%2095.198%2031.77C94.7182%2032.7123%2093.9631%2033.4862%2093.033%2033.989C92.0663%2034.4507%2091.004%2034.6769%2089.933%2034.649C88.8847%2034.6772%2087.8418%2034.4896%2086.869%2034.098C85.9694%2033.6775%2085.2435%2032.9579%2084.815%2032.062C84.2044%2030.7803%2083.8197%2029.4027%2083.678%2027.99C83.4178%2025.7803%2083.3012%2023.5559%2083.329%2021.331ZM88.029%2022.2481C88.029%2023.6914%2088.0537%2024.9267%2088.103%2025.954C88.1307%2026.8044%2088.2287%2027.6509%2088.396%2028.4851C88.4826%2029.015%2088.7037%2029.5139%2089.038%2029.934C89.1803%2030.0869%2089.354%2030.207%2089.5472%2030.2863C89.7404%2030.3655%2089.9484%2030.4019%2090.157%2030.393C90.366%2030.3964%2090.573%2030.3533%2090.7633%2030.2669C90.9535%2030.1804%2091.1222%2030.0527%2091.257%2029.893C91.6124%2029.4242%2091.8458%2028.8744%2091.936%2028.2931C92.1185%2027.3609%2092.2288%2026.4161%2092.266%2025.467C92.3267%2024.3177%2092.3574%2022.936%2092.358%2021.322C92.358%2019.732%2092.34%2018.3747%2092.304%2017.2501C92.2887%2016.3329%2092.1964%2015.4187%2092.028%2014.517C91.9448%2013.9605%2091.7173%2013.4354%2091.368%2012.994C91.2162%2012.8368%2091.0323%2012.7141%2090.8289%2012.6343C90.6255%2012.5544%2090.4072%2012.5192%2090.189%2012.531C89.9867%2012.5294%2089.7868%2012.575%2089.6052%2012.6643C89.4236%2012.7535%2089.2653%2012.8839%2089.143%2013.045C88.7966%2013.5379%2088.5646%2014.102%2088.464%2014.6961C88.2642%2015.6876%2088.1477%2016.6941%2088.116%2017.705C88.0547%2018.9524%2088.024%2020.4687%2088.024%2022.254'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M131.349%2034.65V8.32202H135.458V30.797H140.631V34.649L131.349%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M71.95%2034.65V8.33203H76.059V30.796H81.232V34.648L71.95%2034.65Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M104.833%2014.692C104.934%2014.098%20105.166%2013.534%20105.512%2013.041C105.634%2012.8798%20105.793%2012.7494%20105.974%2012.6602C106.156%2012.571%20106.356%2012.5253%20106.558%2012.527H110.103V8.30798H106.703C105.642%208.2848%20104.589%208.49794%20103.621%208.93197C102.684%209.40306%20101.915%2010.1527%20101.421%2011.078C100.756%2012.3304%20100.316%2013.6901%20100.121%2015.095C99.8114%2017.1591%2099.6706%2019.245%2099.7%2021.332C99.6722%2023.5568%2099.7885%2025.7811%20100.048%2027.991C100.19%2029.4037%20100.574%2030.7812%20101.185%2032.063C101.614%2032.9584%20102.34%2033.6778%20103.239%2034.099C104.212%2034.4899%20105.255%2034.6771%20106.303%2034.649L110.103%2034.613V30.393H106.522C106.313%2030.402%20106.105%2030.3657%20105.912%2030.2866C105.719%2030.2076%20105.545%2030.0876%20105.403%2029.935C105.069%2029.5144%20104.848%2029.0152%20104.761%2028.485C104.594%2027.6509%20104.496%2026.8043%20104.468%2025.954C104.419%2024.9266%20104.394%2023.6916%20104.394%2022.249C104.394%2020.4636%20104.425%2018.9473%20104.486%2017.7C104.518%2016.6894%20104.633%2015.6832%20104.833%2014.692Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M46.728%2019.247H42.878V30.395H41.828C41.6182%2030.4039%2041.409%2030.3669%2041.2149%2030.2868C41.0208%2030.2067%2040.8465%2030.0853%2040.704%2029.931C40.3695%2029.5106%2040.1485%2029.0113%2040.062%2028.481C39.894%2027.647%2039.7956%2026.8004%2039.768%2025.95C39.7187%2024.9227%2039.6944%2023.6877%2039.695%2022.245C39.695%2020.4597%2039.7257%2018.9434%2039.787%2017.696C39.8191%2016.6854%2039.9355%2015.6792%2040.135%2014.688C40.2357%2014.094%2040.4677%2013.53%2040.814%2013.037C40.9376%2012.8768%2041.0968%2012.7476%2041.2791%2012.6598C41.4614%2012.5719%2041.6617%2012.5278%2041.864%2012.531H45.904V8.31202H42.012C40.9511%208.28877%2039.8983%208.50191%2038.93%208.93601C37.9927%209.40699%2037.2241%2010.1567%2036.73%2011.082C36.0644%2012.3344%2035.6243%2013.6941%2035.43%2015.099C35.1189%2017.1613%2034.9764%2019.2456%2035.004%2021.331C34.9762%2023.5559%2035.0925%2025.7802%2035.352%2027.99C35.494%2029.4026%2035.8787%2030.7802%2036.489%2032.062C36.9179%2032.9579%2037.6442%2033.6775%2038.544%2034.098C39.517%2034.4891%2040.5598%2034.6763%2041.608%2034.648L43.587%2034.629H46.727L46.728%2019.247Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M123.653%2029.87H118L116.691%2034.65H112.797L120.939%208L128.793%2034.65H124.856L123.653%2029.87ZM122.587%2026.212L120.893%2019.982L119.085%2026.212H122.587Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M39.016%2041.436H37.059V54.507H39.016V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M44.559%2041.436H46.384L48.331%2046.651C48.919%2048.1937%2049.4198%2049.7682%2049.831%2051.367C49.6744%2050.357%2049.5584%2049.4427%2049.483%2048.624C49.4077%2047.8054%2049.37%2047.0347%2049.37%2046.312V41.436H51.336V54.511H49.495L47.303%2048.627C47.103%2048.0797%2046.9134%2047.518%2046.734%2046.942C46.5547%2046.366%2046.39%2045.762%2046.24%2045.13C46.2274%2045.0507%2046.207%2044.9547%2046.179%2044.842C46.151%2044.7293%2046.1177%2044.5997%2046.079%2044.453C46.098%2044.6%2046.114%2044.725%2046.126%2044.829C46.138%2044.933%2046.148%2045.022%2046.154%2045.095L46.254%2046.424L46.354%2048.041C46.36%2048.131%2046.365%2048.241%2046.368%2048.371C46.371%2048.501%2046.368%2048.648%2046.368%2048.811L46.468%2054.511H44.559V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M55.493%2041.436H61.861V42.977H59.67V54.511H57.751V42.977H55.493V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M65.828%2041.436H71.028V42.926H67.787V47.065H70.665V48.555H67.787V53.016H71.028V54.506H65.828V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M75.906%2041.436H78.483C79.3332%2041.3696%2080.1787%2041.6132%2080.863%2042.122C81.2131%2042.4774%2081.4826%2042.904%2081.6531%2043.3729C81.8236%2043.8417%2081.8911%2044.3418%2081.851%2044.839C81.8876%2045.6248%2081.7066%2046.4055%2081.328%2047.095C81.1685%2047.3665%2080.9531%2047.6008%2080.696%2047.7826C80.4389%2047.9643%2080.1461%2048.0892%2079.837%2048.149L82.509%2054.507H80.525L77.863%2048.107V54.507H75.906V41.436ZM77.863%2047.227C78.1485%2047.2893%2078.4451%2047.279%2078.7256%2047.1969C79.0061%2047.1148%2079.2615%2046.9637%2079.4684%2046.7573C79.6753%2046.5509%2079.8271%2046.2959%2079.9098%2046.0156C79.9926%2045.7353%2080.0036%2045.4387%2079.942%2045.153C79.9472%2044.8034%2079.9137%2044.4543%2079.842%2044.112C79.7909%2043.8589%2079.6851%2043.62%2079.532%2043.412C79.3909%2043.2304%2079.2018%2043.0918%2078.986%2043.012C78.7308%2042.9221%2078.4615%2042.8791%2078.191%2042.885H77.862L77.863%2047.227Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M90.046%2041.06L85.913%2054.514H87.745L88.45%2051.974H91.496L92.135%2054.531H94.028L90.046%2041.06ZM88.876%2050.403L90.013%2046.703L91.048%2050.415L88.876%2050.403Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M106.344%2041.436H112.712V42.977H110.52V54.511H108.602V42.977H106.344V41.436Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M118.865%2041.462H116.908V54.533H118.865V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M134.181%2041.462H139.381V42.952H136.136V47.093H139.014V48.583H136.136V53.044H139.381V54.534H134.181V41.462Z'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M99.749%2044.338C99.8046%2044.0109%2099.9338%2043.7008%20100.127%2043.431C100.202%2043.3322%20100.3%2043.2523%20100.411%2043.1976C100.523%2043.1429%20100.646%2043.115%20100.77%2043.116H102.464V41.207H100.846C100.318%2041.1955%2099.7949%2041.3011%2099.313%2041.516C98.8543%2041.748%2098.4782%2042.1157%2098.236%2042.569C97.9008%2043.2016%2097.6788%2043.888%2097.58%2044.597C97.4215%2045.6561%2097.3493%2046.7263%2097.364%2047.797C97.3503%2048.9393%2097.4101%2050.0814%2097.543%2051.216C97.6145%2051.9294%2097.808%2052.6252%2098.115%2053.273C98.3244%2053.7086%2098.6776%2054.0586%2099.115%2054.264C99.6001%2054.458%20100.12%2054.5509%20100.642%2054.537L102.469%2054.52V52.61H100.755C100.629%2052.6147%20100.503%2052.592%20100.386%2052.5435C100.269%2052.495%20100.164%2052.4218%20100.078%2052.329C99.8888%2052.0951%2099.7637%2051.816%2099.715%2051.519C99.6273%2051.081%2099.5758%2050.6365%2099.561%2050.19C99.536%2049.66%2099.523%2049.014%2099.523%2048.27C99.523%2047.349%2099.539%2046.557%2099.57%2045.916C99.5873%2045.3865%2099.6485%2044.8594%2099.753%2044.34'%20fill='%230A3763'%3e%3c/path%3e%3cpath%20d='M128.799%2041.466L126.671%2048.91L124.671%2041.466H122.679L126.654%2054.953L130.774%2041.466H128.799Z'%20fill='%230A3763'%3e%3c/path%3e%3c/svg%3e";function u0(){const[e,t]=I.useState("");return I.useEffect(()=>{t(window.location.pathname);const r=()=>{t(window.location.pathname)},o=()=>{t(window.location.pathname)};return window.addEventListener("popstate",r),window.addEventListener("pushstate",o),window.addEventListener("replacestate",o),()=>{window.removeEventListener("popstate",r),window.removeEventListener("pushstate",o),window.removeEventListener("replacestate",o)}},[]),{currentPath:e,isActiveRoute:r=>!!(e===r||r!=="/"&&e.startsWith(r))}}const Zi=I.createContext(void 0),Ji=()=>{const e=I.useContext(Zi);if(e===void 0)throw new Error("usePermissions must be used within PermissionsProvider");return e};function d0({children:e}){const[t,n]=I.useState({essentialInsights:!1,priceMonster:!1,web:!1});return I.useEffect(()=>{fetch("/api/auth/permissions").then(r=>r.json()).then(r=>{const o=(r==null?void 0:r.userData)||{};n({essentialInsights:!!o.essentialInsights,priceMonster:!!o.priceMonster,web:!!o.web})}).catch(r=>console.error("Error fetching product access:",r))},[]),c.jsx(Zi.Provider,{value:t,children:e})}const f0={navMain:[{title:"Essential Insights",key:"essentialInsights",url:"/essential-insights/overall-performance",icon:c.jsx(Jc,{className:"h-5 w-5"}),items:[{title:"Overall Performance",url:"/essential-insights/overall-performance",icon:c.jsx(_o,{className:"h-4 w-4"})},{title:"Organic Performance",url:"/essential-insights/organic-performance",icon:c.jsx(Eo,{className:"h-4 w-4"})},{title:"Paid Performance",url:"/essential-insights/paid-performance",icon:c.jsx(Zc,{className:"h-4 w-4"})},{title:"Keyword Performance",url:"/essential-insights/keyword-performance",icon:c.jsx(Eo,{className:"h-4 w-4"})},{title:"More Components",url:"/essential-insights/more-components",icon:c.jsx(Ft,{className:"h-4 w-4"})}]},{title:"Price Monster",key:"priceMonster",url:"/price-monster",icon:c.jsx(tl,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/price-monster/dashboard",icon:c.jsx(Ft,{className:"h-4 w-4"})},{title:"Documentation",url:"/price-monster/documentation",icon:c.jsx(qc,{className:"h-4 w-4"})},{title:"Subscriptions",url:"/price-monster/subscriptions",icon:c.jsx(Xc,{className:"h-4 w-4"})}]},{title:"CMS",key:"web",url:"/cms",icon:c.jsx(Ft,{className:"h-4 w-4"}),items:[{title:"Dashboard",url:"/cms/dashboard",icon:c.jsx(Ft,{className:"h-4 w-4"})}]}]};function p0({...e}){const{isActiveRoute:t}=u0(),n=Ji();return c.jsxs(Ia,{...e,children:[c.jsx($a,{children:c.jsx("div",{className:"relative h-12 w-32 overflow-hidden",children:c.jsx("img",{src:l0,alt:"GLI Logo",className:"h-full w-full object-contain"})})}),c.jsxs(Va,{children:[c.jsx("div",{className:"relative flex w-full min-w-0 flex-col px-2 py-1",children:c.jsxs("a",{href:"/",className:T("flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors hover:bg-gray-100",t("/")&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx(_o,{className:T("h-5 w-5",t("/")?"text-gli-bluedark":"text-gray-500")}),c.jsx("span",{children:"Home"})]})}),c.jsx(kr,{delayDuration:150,children:f0.navMain.map(r=>{const o=!r.key||n[r.key],s=o&&(t(r.url)||r.items.some(i=>t(i.url))),a=c.jsx(Ua,{url:o?r.url:void 0,title:r.title,icon:r.icon,isActive:s,disabled:!o,className:T(!o&&"opacity-50"),children:o&&c.jsx(za,{children:c.jsx(Wa,{children:r.items.map(i=>{const l=t(i.url);return c.jsx(Ga,{children:c.jsx(Ba,{asChild:!0,children:c.jsxs("a",{href:i.url,className:T("flex items-center gap-2 pl-4 transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",l&&"bg-blue-50 text-gli-bluedark font-medium"),children:[c.jsx("span",{className:T(l?"text-gli-bluedark":"text-muted-foreground"),children:i.icon}),c.jsx("span",{className:T(l?"text-gli-bluedark":"text-muted-foreground"),children:i.title})]})})},i.title)})})})},r.title);return r.key==="priceMonster"&&!o?c.jsxs(Or,{children:[c.jsx(Pr,{asChild:!0,children:c.jsx("div",{children:a})}),c.jsx(hn,{side:"top",align:"center",children:"Coming soon"})]},r.title):a})})]}),c.jsx(La,{})]})}const Qi=({onLogout:e})=>{const{user:t,error:n,isLoading:r}=zc(),o=async()=>{try{e&&await e(),window.location.href="/auth/logout"}catch(s){console.error("Error during logout:",s),window.location.href="/auth/logout"}};return r?c.jsx("div",{className:"h-10 w-10 animate-pulse rounded-full bg-gray-200"}):n?c.jsxs("div",{children:["Error: ",n.message]}):t?c.jsx("div",{className:"relative flex items-center gap-3",children:c.jsxs(Ui,{children:[c.jsx(Ki,{asChild:!0,children:c.jsx(zt,{variant:"ghost",size:"lg",className:"rounded-full cursor-pointer p-0",children:t.picture?c.jsx("img",{src:t.picture,alt:t.name||"User profile",width:40,height:40,className:"rounded-full"}):c.jsx(Ro,{className:"h-5 w-5 text-gray-500"})})}),c.jsxs(Yi,{align:"end",className:"w-72",children:[c.jsx(qi,{children:c.jsx("div",{className:"flex flex-col space-y-1",children:c.jsxs("div",{className:"flex flex-col space-y-1",children:[c.jsx("p",{className:"text-xs text-gray-500",children:t.name}),c.jsx("p",{className:"truncate text-xs text-gray-500",children:t.email})]})})}),c.jsx(Xi,{}),c.jsx(Br,{asChild:!0,children:c.jsxs("a",{href:"/profile",className:"flex w-full cursor-default",children:[c.jsx(Ro,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Profile"})]})}),c.jsxs(Br,{onClick:o,children:[c.jsx(rl,{className:"mr-2 h-4 w-4"}),c.jsx("span",{children:"Sign out"})]})]})]})}):null},ec=({onLogout:e})=>c.jsx("div",{className:"sticky top-0 z-50 bg-white",children:c.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-4",children:[c.jsxs("div",{className:"flex h-full items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[c.jsx(ja,{}),c.jsx(Wt,{orientation:"vertical"})]}),c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Qi,{onLogout:e})})]})}),m0=({children:e,onLogout:t})=>c.jsx(Wc,{children:c.jsx(Da,{children:c.jsxs("div",{className:"flex h-screen w-full",children:[c.jsx(p0,{}),c.jsxs(Fa,{className:"flex-1 flex flex-col min-w-0",children:[c.jsx(ec,{onLogout:t}),c.jsx("main",{className:"flex-1 bg-white overflow-auto",id:"page-content",children:e})]})]})})});A.AppHeader=ec,A.Button=zt,A.Card=Gl,A.CardAction=Yl,A.CardContent=ql,A.CardDescription=Kl,A.CardFooter=Xl,A.CardHeader=Bl,A.CardTitle=Ul,A.CollapsibleSection=Ua,A.DropdownMenu=Ui,A.DropdownMenuCheckboxItem=n0,A.DropdownMenuContent=Yi,A.DropdownMenuGroup=t0,A.DropdownMenuItem=Br,A.DropdownMenuLabel=qi,A.DropdownMenuPortal=e0,A.DropdownMenuRadioGroup=r0,A.DropdownMenuRadioItem=o0,A.DropdownMenuSeparator=Xi,A.DropdownMenuShortcut=s0,A.DropdownMenuSub=a0,A.DropdownMenuSubContent=c0,A.DropdownMenuSubTrigger=i0,A.DropdownMenuTrigger=Ki,A.GLICloudProvider=m0,A.Input=Bn,A.PermissionsProvider=d0,A.ProfileDropdown=Qi,A.Separator=Wt,A.Sheet=Gs,A.SheetClose=Rd,A.SheetContent=cr,A.SheetDescription=dr,A.SheetFooter=Us,A.SheetHeader=lr,A.SheetOverlay=ir,A.SheetPortal=Bs,A.SheetTitle=ur,A.SheetTrigger=_d,A.Sidebar=Ia,A.SidebarContent=Va,A.SidebarFooter=fp,A.SidebarGroup=Ha,A.SidebarGroupAction=hp,A.SidebarGroupContent=za,A.SidebarGroupLabel=mp,A.SidebarHeader=$a,A.SidebarInput=dp,A.SidebarInset=Fa,A.SidebarMenu=gp,A.SidebarMenuAction=wp,A.SidebarMenuBadge=yp,A.SidebarMenuButton=xp,A.SidebarMenuItem=vp,A.SidebarMenuSkeleton=Cp,A.SidebarMenuSub=Wa,A.SidebarMenuSubButton=Ba,A.SidebarMenuSubItem=Ga,A.SidebarProvider=Da,A.SidebarRail=La,A.SidebarSeparator=pp,A.SidebarTrigger=ja,A.Skeleton=fr,A.Tooltip=Or,A.TooltipContent=hn,A.TooltipProvider=kr,A.TooltipTrigger=Pr,A.buttonVariants=Ko,A.usePermissions=Ji,A.useSidebar=St,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golocalinteractive/golocal-cloud-wrapper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "A React provider component for Go Local Interactive's cloud services",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Tanner Barrett, Cody Lacey, Go Local Interactive",
|