1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[842],{6326:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9465).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},9068:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9465).Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7294:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9465).Z)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},5615:function(e,t,n){n.d(t,{VY:function(){return el},h4:function(){return eo},ck:function(){return er},fC:function(){return en},xz:function(){return ei}});var r=n(8496),o=n(2943),i=n(8846),l=n(2930),a=n(2178),u=n(4334),c=n(4776),s=n(3715),d=n(7678),f=n(5187),p=n(3890),h="Collapsible",[v,m]=(0,o.b)(h),[g,w]=v(h),x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:l,onOpenChange:a,...s}=e,[d,v]=(0,u.T)({prop:o,defaultProp:null!=i&&i,onChange:a,caller:h});return(0,p.jsx)(g,{scope:n,disabled:l,contentId:(0,f.M)(),open:d,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),children:(0,p.jsx)(c.WV.div,{"data-state":M(d),"data-disabled":l?"":void 0,...s,ref:t})})});x.displayName=h;var y="CollapsibleTrigger",b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=w(y,n);return(0,p.jsx)(c.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":M(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,a.Mj)(e.onClick,o.onOpenToggle)})});b.displayName=y;var R="CollapsibleContent",j=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=w(R,e.__scopeCollapsible);return(0,p.jsx)(d.z,{present:n||o.open,children:e=>{let{present:n}=e;return(0,p.jsx)(C,{...r,ref:t,present:n})}})});j.displayName=R;var C=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...a}=e,u=w(R,n),[d,f]=r.useState(o),h=r.useRef(null),v=(0,l.e)(t,h),m=r.useRef(0),g=m.current,x=r.useRef(0),y=x.current,b=u.open||d,j=r.useRef(b),C=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.b)(()=>{let e=h.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();m.current=t.height,x.current=t.width,j.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),f(o)}},[u.open,o]),(0,p.jsx)(c.WV.div,{"data-state":M(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!b,...a,ref:v,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:b&&i})});function M(e){return e?"open":"closed"}var A=n(6741),D="Accordion",k=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[T,S,E]=(0,i.B)(D),[P,O]=(0,o.b)(D,[E,m]),_=m(),I=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(T.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(H,{...r,ref:t}):(0,p.jsx)(V,{...r,ref:t})})});I.displayName=D;var[L,N]=P(D),[F,W]=P(D,{collapsible:!1}),V=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:l=!1,...a}=e,[c,s]=(0,u.T)({prop:n,defaultProp:null!=o?o:"",onChange:i,caller:D});return(0,p.jsx)(L,{scope:e.__scopeAccordion,value:r.useMemo(()=>c?[c]:[],[c]),onItemOpen:s,onItemClose:r.useCallback(()=>l&&s(""),[l,s]),children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:l,children:(0,p.jsx)(B,{...a,ref:t})})})}),H=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[a,c]=(0,u.T)({prop:n,defaultProp:null!=o?o:[],onChange:i,caller:D}),s=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),d=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,p.jsx)(L,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:d,children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(B,{...l,ref:t})})})}),[K,z]=P(D),B=r.forwardRef((e,t)=>
1{let{__scopeAccordion:n,disabled:o,dir:i,orientation:u="vertical",...s}=e,d=r.useRef(null),f=(0,l.e)(d,t),h=S(n),v="ltr"===(0,A.gm)(i),m=(0,a.Mj)(e.onKeyDown,e=>{var t;if(!k.includes(e.key))return;let n=e.target,r=h().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let l=o,a=i-1,c=()=>{(l=o+1)>a&&(l=0)},s=()=>{(l=o-1)<0&&(l=a)};switch(e.key){case"Home":l=0;break;case"End":l=a;break;case"ArrowRight":"horizontal"===u&&(v?c():s());break;case"ArrowDown":"vertical"===u&&c();break;case"ArrowLeft":"horizontal"===u&&(v?s():c());break;case"ArrowUp":"vertical"===u&&s()}null===(t=r[l%i].ref.current)||void 0===t||t.focus()});return(0,p.jsx)(K,{scope:n,disabled:o,direction:i,orientation:u,children:(0,p.jsx)(T.Slot,{scope:n,children:(0,p.jsx)(c.WV.div,{...s,"data-orientation":u,ref:f,onKeyDown:o?void 0:m})})})}),G="AccordionItem",[U,Z]=P(G),X=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,i=z(G,n),l=N(G,n),a=_(n),u=(0,f.M)(),c=r&&l.value.includes(r)||!1,s=i.disabled||e.disabled;return(0,p.jsx)(U,{scope:n,open:c,disabled:s,triggerId:u,children:(0,p.jsx)(x,{"data-orientation":i.orientation,"data-state":et(c),...a,...o,ref:t,disabled:s,open:c,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});X.displayName=G;var Y="AccordionHeader",$=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(D,n),i=Z(Y,n);return(0,p.jsx)(c.WV.h3,{"data-orientation":o.orientation,"data-state":et(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});$.displayName=Y;var q="AccordionTrigger",J=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(D,n),i=Z(q,n),l=W(q,n),a=_(n);return(0,p.jsx)(T.ItemSlot,{scope:n,children:(0,p.jsx)(b,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...r,ref:t})})});J.displayName=q;var Q="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(D,n),i=Z(Q,n),l=_(n);return(0,p.jsx)(j,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var en=I,er=X,eo=$,ei=J,el=ee},6653:function(e,t,n){let r;n.d(t,{oC:function(){return nX},VY:function(){return nB},ZA:function(){return nG},ck:function(){return nZ},wU:function(){return nq},__:function(){return nU},Uv:function(){return nz},Ee:function(){return nY},Rk:function(){return n$},fC:function(){return nH},Z0:function(){return nJ},Tr:function(){return nQ},tu:function(){return n1},fF:function(){return n0},xz:function(){return nK}});var o=n(8496),i=n(2178),l=n(2930),a=n(2943),u=n(4334),c=n(4776),s=n(8846),d=n(6741),f=n(1628),p=n(9547),h=n(3101),v=n(5187);let m=["top","right","bottom","left"],g=Math.min,w=Math.max,x=Math.round,y=Math.floor,b=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"};function j(e,t){return"function"==typeof e?e(t):e}function C(e){return e.split("-")[0]}function M(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function D(e){return"y"===e?"height":"width"}function k(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function T(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let S=["left","right"],E=["right","left"],P=["top","bottom"],O=["bottom","top"];function _(e){let t=C(e);return R[t]+e.slice(t.length)}function I(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(e){let{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 N(e,t,n){let r,{reference:o,floating:i}=e,l=k(t),a=A(k(t)),u=D(a),c=C(t),s="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(M(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}async function F(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=j(t,e),h=I(p),v=a[f?"floating"===d?"reference":"floating":d],m=L(await i.getClippingRect
1({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},y=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:u}):g);return{top:(m.top-y.top+h.top)/x.y,bottom:(y.bottom-m.bottom+h.bottom)/x.y,left:(m.left-y.left+h.left)/x.x,right:(y.right-m.right+h.right)/x.x}}let W=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:F},u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=N(c,r,u),f=r,p=0,h={};for(let n=0;n<i.length;n++){let v=i[n];if(!v)continue;let{name:m,fn:g}=v,{x:w,y:x,data:y,reset:b}=await g({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=w?w:s,d=null!=x?x:d,h[m]={...h[m],...y},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:s,y:d}=N(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:h}};function V(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function H(e){return m.some(t=>e[t]>=0)}let K=new Set(["left","top"]);async function z(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=C(n),a=M(n),u="y"===k(n),c=K.has(l)?-1:1,s=i&&u?-1:1,d=j(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function B(){return"undefined"!=typeof window}function G(e){return X(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Z(e){var t;return null==(t=(X(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X(e){return!!B()&&(e instanceof Node||e instanceof U(e).Node)}function Y(e){return!!B()&&(e instanceof Element||e instanceof U(e).Element)}function $(e){return!!B()&&(e instanceof HTMLElement||e instanceof U(e).HTMLElement)}function q(e){return!!B()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof U(e).ShadowRoot)}function J(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=el(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ee=/transform|translate|scale|rotate|perspective|filter/,et=/paint|layout|strict|content/,en=e=>!!e&&"none"!==e;function er(e){let t=Y(e)?el(e):e;return en(t.transform)||en(t.translate)||en(t.scale)||en(t.rotate)||en(t.perspective)||!eo()&&(en(t.backdropFilter)||en(t.filter))||ee.test(t.willChange||"")||et.test(t.contain||"")}function eo(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ei(e){return/^(html|body|#document)$/.test(G(e))}function el(e){return U(e).getComputedStyle(e)}function ea(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if("html"===G(e))return e;let t=e.assignedSlot||e.parentNode||q(e)&&e.host||Z(e);return q(t)?t.host:t}function ec(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eu(t);return ei(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&J(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=U(o);if(!i)return t.concat(o,ec(o,[],n));{let e=es(l);
1return t.concat(l,l.visualViewport||[],J(o)?o:[],e&&n?ec(e):[])}}function es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ed(e){let t=el(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=$(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=x(n)!==i||x(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ef(e){return Y(e)?e:e.contextElement}function ep(e){let t=ef(e);if(!$(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ed(t),l=(i?x(n.width):n.width)/r,a=(i?x(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eh=b(0);function ev(e){let t=U(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eh}function em(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ef(e),a=b(1);t&&(r?Y(r)&&(a=ep(r)):a=ep(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===U(l))&&o)?ev(l):b(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=U(l),t=r&&Y(r)?U(r):r,n=e,o=es(n);for(;o&&r&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=el(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=l,o=es(n=U(o))}}return L({width:d,height:f,x:c,y:s})}function eg(e,t){let n=ea(e).scrollLeft;return t?t.left+n:em(Z(e)).left+n}function ew(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eg(e,n),y:n.top+t.scrollTop}}function ex(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=U(e),r=Z(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=eg(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=Z(e),n=ea(e),r=e.ownerDocument.body,o=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eg(e),a=-n.scrollTop;return"rtl"===el(r).direction&&(l+=w(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(Z(e));else if(Y(t))r=function(e,t){let n=em(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$(e)?ep(e):b(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ev(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function ey(e){return"static"===el(e).position}function eb(e,t){if(!$(e)||"fixed"===el(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Z(e)===n&&(n=n.ownerDocument.body),n}function eR(e,t){var n;let r=U(e);if(Q(e))return r;if(!$(e)){let t=eu(e);for(;t&&!ei(t);){if(Y(t)&&!ey(t))return t;t=eu(t)}return r}let o=eb(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(G(n)))&&ey(o);)o=eb(o,t);return o&&ei(o)&&ey(o)&&!er(o)?r:o||function(e){let t=eu(e);for(;$(t)&&!ei(t);){if(er(t))return t;if(Q(t))break;t=eu(t)}return null}(e)||r}let ej=async function(e){let t=this.getOffsetParent||eR,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),o=Z(t),i="fixed"===n,l=em(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=b(0);if(r||!r&&!i){if(("body"!==G(t)||J(o))&&(a=ea(t)),r){let e=em(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eg(o))}i&&!r&&o&&(u.x=eg(o));let c=!o||r||i?b(0):ew(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eC={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=Z(r),a=!!t&&Q(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=b(1),s=b(0),d=$(r);if((d||!d&&!i)&&(("body"!==G(r)||J(l))&&(u=ea(r)),d)){let e=em(r);c=ep(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!l||d||i?b(0):ew(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+f.x,y:n.y*c.y-u.scrollTop*c.y+s.y+f.y}},getDocumentElement:Z,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ec(e,[],!1).filter(e=>Y(e)&&"body"!==G(e)),o=null,i="fixed"===el(e).position,l=i?eu(e):e;for(;Y(l)&&!ei(l);){let t=el(l),n=er(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||J(l)&&!n&&function e(t,n){let r=eu(t);return!(r===n||!Y(r)||ei(r))&&("fixed"===el(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=eu(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=ex(t,i[0],o),a=l.top,u=l.right,c=l.bottom,s=l.left;for(let e=1;e<i.length;e++){let n=ex(t,i[e],o);a=w(n.top,a),u=g(n.right,u),c=g(n.bottom,c),s=w(n.left,s)}return{width:u-s,height:c-a,x:s,y:a}},getOffsetParent:eR,getElementRects:ej,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ed(e);return{width:t,height:n}},getScale:ep,isElement:Y,isRTL:function(e){return"rtl"===el(e).direction}};function eM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eA=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=j(e,t)||{};if(null==c)return{};let d=I(s),f={x:n,y:r},p=A(k(o)),h=D(p),v=await l.getDimensions(c),m="y"===p,x=m?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],b=f[p]-i.reference[p],R=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),C=R?R[x]:0;C&&await (null==l.isElement?void 0:l.isElement(R))||(C=a.floating[x]||i.floating[h]);let T=C/2-v[h]/2-1,S=g(d[m?"top":"left"],T),E=g(d[m?"bottom":"right"],T),P=C-v[h]-E,O=C/2-v[h]/2+(y/2-b/2),_=w(S,g(O,P)),L=!u.arrow&&null!=M(o)&&O!==_&&i.reference[h]/2-(O<S?S:E)-v[h]/2<0,N=L?O<S?O-S:O-P:0;return{[p]:f[p]+N,data:{[p]:_,centerOffset:O-_-N,...L&&{alignmentOffset:N}},reset:L}}}),eD=(e,t,n)=>{let r=new Map,o={platform:eC,...n},i={...o.platform,_c:r};return W(e,t,{...o,platform:i})};var ek=n(1720),eT="undefined"!=typeof document?o.useLayoutEffect:function(){};function eS(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eS(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eS(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eE(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eP(e,t){let n=eE(e);return Math.round(t*n)/n}function eO(e){let t=o.useRef(e);return eT(()=>{t.current=e}),t}let e_=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eA({element:n.current,padding:r}).fn(t):{}:n?eA({element:n,padding:r}).fn(t):{}}}),eI=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await z(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eL=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=j(n,e),s={x:t,y:r},d=await i.detectOverflow(e,c),f=k(C(o)),p=A(f),h=s[p],v=s[f];
1if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+d[e],r=h-d[t];h=w(n,g(h,r))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=v+d[e],r=v-d[t];v=w(n,g(v,r))}let m=u.fn({...e,[p]:h,[f]:v});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[p]:l,[f]:a}}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eN=(e,t)=>{var n;return{fn:(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=j(n,e),s={x:t,y:r},d=k(o),f=A(d),p=s[f],h=s[d],v=j(a,e),m="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,w;let e="y"===f?"width":"height",t=K.has(C(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(w=l.offset)?void 0:w[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}).fn,options:[e,t]}},eF=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...x}=j(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let y=C(a),b=k(s),R=C(s)===s,I=await (null==d.isRTL?void 0:d.isRTL(f.floating)),L=v||(R||!w?[_(s)]:function(e){let t=_(e);return[T(e),t,T(t)]}(s)),N="none"!==g;!v&&N&&L.push(...function(e,t,n,r){let o=M(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?E:S;return t?S:E;case"left":case"right":return t?P:O;default:return[]}}(C(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(T)))),i}(s,w,g,I));let F=[s,...L],W=await d.detectOverflow(e,x),V=[],H=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&V.push(W[y]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=M(e),o=A(k(e)),i=D(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_(l)),[l,_(l)]}(a,c,I);V.push(W[e[0]],W[e[1]])}if(H=[...H,{placement:a,overflows:V}],!V.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=F[e];if(t&&(!("alignment"===h&&b!==k(t))||H.every(e=>k(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(i=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=H.filter(e=>{if(N){let t=k(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},eW=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:l,rects:a,platform:u,elements:c}=e,{apply:s=()=>{},...d}=j(n,e),f=await u.detectOverflow(e,d),p=C(l),h=M(l),v="y"===k(l),{width:m,height:x}=a.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let y=x-f.top-f.bottom,b=m-f.left-f.right,R=g(x-f[o],y),A=g(m-f[i],b),D=!e.middlewareData.shift,T=R,S=A;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(T=y),D&&!h){let e=w(f.left,0),t=w(f.right,0),n=w(f.top,0),r=w(f.bottom,0);v?S=m-2*(0!==e||0!==t?e+t:w(f.left,f.right)):T=x-2*(0!==n||0!==r?n+r:w(f.top,f.bottom))}await s({...e,availableWidth:S,availableHeight:T});let E=await u.getDimensions(c.floating);return m!==E.width||x!==E.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}},eV=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=j(n,e);switch(o){case"referenceHidden":{let n=V(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:H(n)}}}case"escaped":{let n=V(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:H(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eH=(e,t)=>{let n=e_(e);return{name:n.name,fn:n.fn,options:[e,t]}};var eK=n(3890),ez=o.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eK.jsx)(c.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eK.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ez.displayName="Arrow";var eB=n(8432),eG=n(3715),eU="Popper",[eZ,eX]=(0,a.b)(eU),[eY,e$]=eZ(eU),eq=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,eK.jsx)(eY,{scope:t,anchor:r,onAnchorChange:i,children:n})};eq.displayName=eU;var eJ="PopperAnchor",eQ=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=e$(eJ,n),u=o.useRef(null),s=(0,l.e)(t,u),d=o.useRef(null);return o.useEffect(()=>{let e=d.current;d.current=(null==r?void 0:r.current)||u.current,e!==d.current&&a.onAnchorChange(d.current)}),r?null:(0,eK.jsx)(c.WV.div,{...i,ref:s})});eQ.displayName=eJ;var e0="PopperContent",[e1,e2]=eZ(e0),e5=o.forwardRef((e,t)=>{var n,r,i,a,u,s,d,f;let{__scopePopper:p,side:h="bottom",sideOffset:v=0,align:m="center",alignOffset:x=0,arrowPadding:b=0,avoidCollisions:R=!0,collisionBoundary:j=[],collisionPadding:C=0,sticky:M="partial",hideWhenDetached:A=!1,updatePositionStrategy:D="optimized",onPlaced:k,...T}=e,S=e$(e0,p),[E,P]=o.useState(null),O=(0,l.e)(t,e=>P(e)),[_,I]=o.useState(null),L=function(e){let[t,n]=o.useState(void 0);return(0,eG.b)(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(_),N=null!==(d=null==L?void 0:L.width)&&void 0!==d?d:0,F=null!==(f=null==L?void 0:L.height)&&void 0!==f?f:0,W="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},V=Array.isArray(j)?j:[j],H=V.length>0,K={padding:W,boundary:V.filter(e6),altBoundary:H},{refs:z,floatingStyles:B,placement:G,isPositioned:U,middlewareData:X}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);eS(p,r)||h(r);let[v,m]=o.useState(null),[g,w]=o.useState(null),x=o.useCallback(e=>{e!==j.current&&(j.current=e,m(e))},[]),y=o.useCallback(e=>{e!==C.current&&(C.current=e,w(e))},[]),b=l||v,R=a||g,j=o.useRef(null),C=o.useRef(null),M=o.useRef(d),A=null!=c,D=eO(c),k=eO(i),T=eO(s),S=o.useCallback(()=>{if(!j.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),eD(j.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};E.current&&!eS(M.current,t)&&(M.current=t,ek.flushSync(()=>{f(t)}))})},[p,t,n,k,T]);eT(()=>{!1===s&&M.current.isPositioned&&(M.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let E=o.useRef(!1);eT(()=>(E.current=!0,()=>{E.current=!1}),[]),eT(()=>{if(b&&(j.current=b),R&&(C.current=R),b&&R){if(D.current)return D.current(b,R,S);S()}},[b,R,S,D,A]);let P=o.useMemo(()=>({reference:j,floating:C,setReference:x,setFloating:y}),[x,y]),O=o.useMemo(()=>({reference:b,floating:R}),[b,R]),_=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eP(O.floating,d.x),r=eP(O.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eE(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,O.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:S,refs:P,elements:O,floatingStyles:_}),[d,S,P,O,_])}({strategy:"fixed",placement:h+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=ef(e),d=i||l?[...s?ec(s):[],...t?ec(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=Z(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let c=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;let h=y(d),v=y(o.clientWidth-(s+f)),m={rootMargin:-h+"px "+-v+"px "+-y(o.clientHeight-(d+p))+"px "+-y(s)+"px",threshold:w(0,g(1,u))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==u){if(!x)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eM(c,e.getBoundingClientRect())||l(),x=!1}try{r=new IntersectionObserver(b,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,m)}r.observe(e)}(!0),i}(s,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),s&&!c&&h.observe(s),t&&h.observe(t));let v=c?em(e):null;return c&&function t(){let r=em(e);v&&!eM(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===D})}
1,elements:{reference:S.anchor},middleware:[eI({mainAxis:v+F,alignmentAxis:x}),R&&eL({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?eN():void 0,...K}),R&&eF({...K}),eW({...K,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),_&&eH({element:_,padding:b}),e7({arrowWidth:N,arrowHeight:F}),A&&eV({strategy:"referenceHidden",...K})]}),[Y,$]=e9(G),q=(0,eB.W)(k);(0,eG.b)(()=>{U&&(null==q||q())},[U,q]);let J=null===(n=X.arrow)||void 0===n?void 0:n.x,Q=null===(r=X.arrow)||void 0===r?void 0:r.y,ee=(null===(i=X.arrow)||void 0===i?void 0:i.centerOffset)!==0,[et,en]=o.useState();return(0,eG.b)(()=>{E&&en(window.getComputedStyle(E).zIndex)},[E]),(0,eK.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:U?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(a=X.transformOrigin)||void 0===a?void 0:a.x,null===(u=X.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(s=X.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eK.jsx)(e1,{scope:p,placedSide:Y,onArrowChange:I,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,eK.jsx)(c.WV.div,{"data-side":Y,"data-align":$,...T,ref:O,style:{...T.style,animation:U?void 0:"none"}})})})});e5.displayName=e0;var e3="PopperArrow",e4={top:"bottom",right:"left",bottom:"top",left:"right"},e8=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e2(e3,n),i=e4[o.placedSide];return(0,eK.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eK.jsx)(ez,{...r,ref:t,style:{...r.style,display:"block"}})})});function e6(e){return null!==e}e8.displayName=e3;var e7=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,h]=e9(a),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,w="",x="";return"bottom"===p?(w=s?v:"".concat(m,"px"),x="".concat(-f,"px")):"top"===p?(w=s?v:"".concat(m,"px"),x="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),x=s?v:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),x=s?v:"".concat(g,"px")),{data:{x:w,y:x}}}});function e9(e){let[t,n="center"]=e.split("-");return[t,n]}var te=n(8948),tt=n(7678),tn="rovingFocusGroup.onEntryFocus",tr={bubbles:!1,cancelable:!0},to="RovingFocusGroup",[ti,tl,ta]=(0,s.B)(to),[tu,tc]=(0,a.b)(to,[ta]),[ts,td]=tu(to),tf=o.forwardRef((e,t)=>(0,eK.jsx)(ti.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,eK.jsx)(ti.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,eK.jsx)(tp,{...e,ref:t})})}));tf.displayName=to;var tp=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:s,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:m=!1,...g}=e,w=o.useRef(null),x=(0,l.e)(t,w),y=(0,d.gm)(s),[b,R]=(0,u.T)({prop:f,defaultProp:null!=p?p:null,onChange:h,caller:to}),[j,C]=o.useState(!1),M=(0,eB.W)(v),A=tl(n),D=o.useRef(!1),[k,T]=o.useState(0);return o.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(tn,M),()=>e.removeEventListener(tn,M)},[M]),(0,eK.jsx)(ts,{scope:n,orientation:r,dir:y,loop:a,currentTabStopId:b,onItemFocus:o.useCallback(e=>R(e),[R]),onItemShiftTab:o.useCallback(()=>C(!0),[]),onFocusableItemAdd:o.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>T(e=>e-1),[]),children:(0,eK.jsx)(c.WV.div,{tabIndex:j||0===k?-1:0,"data-orientation":r,...g,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,i.Mj)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,i.Mj)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(tn,tr);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=A().filter(e=>
1e.focusable);tg([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),m)}}D.current=!1}),onBlur:(0,i.Mj)(e.onBlur,()=>C(!1))})})}),th="RovingFocusGroupItem",tv=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:l=!1,tabStopId:a,children:u,...s}=e,d=(0,v.M)(),f=a||d,p=td(th,n),h=p.currentTabStopId===f,m=tl(n),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:x}=p;return o.useEffect(()=>{if(r)return g(),()=>w()},[r,g,w]),(0,eK.jsx)(ti.ItemSlot,{scope:n,id:f,focusable:r,active:l,children:(0,eK.jsx)(c.WV.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:(0,i.Mj)(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,i.Mj)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tm[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=p.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>tg(o))}}),children:"function"==typeof u?u({isCurrentTabStop:h,hasTabStop:null!=x}):u})})});tv.displayName=th;var tm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tg(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tw=n(3437),tx=n(4495),ty=n(8212),tb=["Enter"," "],tR=["ArrowUp","PageDown","End"],tj=["ArrowDown","PageUp","Home",...tR],tC={ltr:[...tb,"ArrowRight"],rtl:[...tb,"ArrowLeft"]},tM={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tA="Menu",[tD,tk,tT]=(0,s.B)(tA),[tS,tE]=(0,a.b)(tA,[tT,eX,tc]),tP=eX(),tO=tc(),[t_,tI]=tS(tA),[tL,tN]=tS(tA),tF=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=tP(t),[c,s]=o.useState(null),f=o.useRef(!1),p=(0,eB.W)(l),h=(0,d.gm)(i);return o.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,eK.jsx)(eq,{...u,children:(0,eK.jsx)(t_,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:s,children:(0,eK.jsx)(tL,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:a,children:r})})})};tF.displayName=tA;var tW=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tP(n);return(0,eK.jsx)(eQ,{...o,...r,ref:t})});tW.displayName="MenuAnchor";var tV="MenuPortal",[tH,tK]=tS(tV,{forceMount:void 0}),tz=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tI(tV,t);return(0,eK.jsx)(tH,{scope:t,forceMount:n,children:(0,eK.jsx)(tt.z,{present:n||i.open,children:(0,eK.jsx)(te.h,{asChild:!0,container:o,children:r})})})};tz.displayName=tV;var tB="MenuContent",[tG,tU]=tS(tB),tZ=o.forwardRef((e,t)=>{let n=tK(tB,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tI(tB,e.__scopeMenu),l=tN(tB,e.__scopeMenu);return(0,eK.jsx)(tD.Provider,{scope:e.__scopeMenu,children:(0,eK.jsx)(tt.z,{present:r||i.open,children:(0,eK.jsx)(tD.Slot,{scope:e.__scopeMenu,children:l.modal?(0,eK.jsx)(tX,{...o,ref:t}):(0,eK.jsx)(tY,{...o,ref:t})})})})}),tX=o.forwardRef((e,t)=>{let n=tI(tB,e.__scopeMenu),r=o.useRef(null),a=(0,l.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,tx.Ry)(e)},[]),(0,eK.jsx)(tq,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tY=o.forwardRef((e,t)=>
1{let n=tI(tB,e.__scopeMenu);return(0,eK.jsx)(tq,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),t$=(0,tw.Z8)("MenuContent.ScrollLock"),tq=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:w,onDismiss:x,disableOutsideScroll:y,...b}=e,R=tI(tB,n),j=tN(tB,n),C=tP(n),M=tO(n),A=tk(n),[D,k]=o.useState(null),T=o.useRef(null),S=(0,l.e)(t,T,R.onContentChange),E=o.useRef(0),P=o.useRef(""),O=o.useRef(0),_=o.useRef(null),I=o.useRef("right"),L=o.useRef(0),N=y?ty.Z:o.Fragment,F=e=>{var t,n;let r=P.current+e,o=A().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===a))||void 0===n?void 0:n.ref.current;!function e(t){P.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};o.useEffect(()=>()=>window.clearTimeout(E.current),[]),(0,p.EW)();let W=o.useCallback(e=>{var t,n,r;return I.current===(null===(t=_.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=_.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,c=l.y,s=a.x,d=a.y;c>r!=d>r&&n<(s-u)*(r-c)/(d-c)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,eK.jsx)(tG,{scope:n,searchRef:P,onItemEnter:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:o.useCallback(e=>{var t;W(e)||(null===(t=T.current)||void 0===t||t.focus(),k(null))},[W]),onTriggerLeave:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:O,onPointerGraceIntentChange:o.useCallback(e=>{_.current=e},[]),children:(0,eK.jsx)(N,{...y?{as:t$,allowPinchZoom:!0}:void 0,children:(0,eK.jsx)(h.M,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.Mj)(u,e=>{var t;e.preventDefault(),null===(t=T.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,eK.jsx)(f.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:w,onDismiss:x,children:(0,eK.jsx)(tf,{asChild:!0,...M,dir:j.dir,orientation:"vertical",loop:r,currentTabStopId:D,onCurrentTabStopIdChange:k,onEntryFocus:(0,i.Mj)(d,e=>{j.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eK.jsx)(e5,{role:"menu","aria-orientation":"vertical","data-state":nv(R.open),"data-radix-menu-content":"",dir:j.dir,...C,...b,ref:S,style:{outline:"none",...b.style},onKeyDown:(0,i.Mj)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&F(e.key));let o=T.current;if(e.target!==o||!tj.includes(e.key))return;e.preventDefault();let i=A().filter(e=>!e.disabled).map(e=>e.ref.current);tR.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.Mj)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),P.current="")}),onPointerMove:(0,i.Mj)(e.onPointerMove,nw(e=>{let t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>L.current?"right":"left";I.current=t,L.current=e.clientX}}))})})})})})})});tZ.displayName=tB;var tJ=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eK.jsx)(c.WV.div,{role:"group",...r,ref:t})});tJ.displayName="MenuGroup";var tQ=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eK.jsx)(c.WV.div,{...r,ref:t})});tQ.displayName="MenuLabel";var t0="MenuItem",t1="menu.itemSelect",t2=o.forwardRef((e,t)=>
1{let{disabled:n=!1,onSelect:r,...a}=e,u=o.useRef(null),s=tN(t0,e.__scopeMenu),d=tU(t0,e.__scopeMenu),f=(0,l.e)(t,u),p=o.useRef(!1);return(0,eK.jsx)(t5,{...a,ref:f,disabled:n,onClick:(0,i.Mj)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(t1,{bubbles:!0,cancelable:!0});e.addEventListener(t1,e=>null==r?void 0:r(e),{once:!0}),(0,c.jH)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,i.Mj)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&tb.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});t2.displayName=t0;var t5=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...u}=e,s=tU(t0,n),d=tO(n),f=o.useRef(null),p=(0,l.e)(t,f),[h,v]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,eK.jsx)(tD.ItemSlot,{scope:n,disabled:r,textValue:null!=a?a:m,children:(0,eK.jsx)(tv,{asChild:!0,...d,focusable:!r,children:(0,eK.jsx)(c.WV.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:p,onPointerMove:(0,i.Mj)(e.onPointerMove,nw(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.Mj)(e.onPointerLeave,nw(e=>s.onItemLeave(e))),onFocus:(0,i.Mj)(e.onFocus,()=>v(!0)),onBlur:(0,i.Mj)(e.onBlur,()=>v(!1))})})})}),t3=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,eK.jsx)(nn,{scope:e.__scopeMenu,checked:n,children:(0,eK.jsx)(t2,{role:"menuitemcheckbox","aria-checked":nm(n)?"mixed":n,...o,ref:t,"data-state":ng(n),onSelect:(0,i.Mj)(o.onSelect,()=>null==r?void 0:r(!!nm(n)||!n),{checkForDefaultPrevented:!1})})})});t3.displayName="MenuCheckboxItem";var t4="MenuRadioGroup",[t8,t6]=tS(t4,{value:void 0,onValueChange:()=>{}}),t7=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eB.W)(r);return(0,eK.jsx)(t8,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eK.jsx)(tJ,{...o,ref:t})})});t7.displayName=t4;var t9="MenuRadioItem",ne=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=t6(t9,e.__scopeMenu),l=n===o.value;return(0,eK.jsx)(nn,{scope:e.__scopeMenu,checked:l,children:(0,eK.jsx)(t2,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":ng(l),onSelect:(0,i.Mj)(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});ne.displayName=t9;var nt="MenuItemIndicator",[nn,nr]=tS(nt,{checked:!1}),no=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=nr(nt,n);return(0,eK.jsx)(tt.z,{present:r||nm(i.checked)||!0===i.checked,children:(0,eK.jsx)(c.WV.span,{...o,ref:t,"data-state":ng(i.checked)})})});no.displayName=nt;var ni=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eK.jsx)(c.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ni.displayName="MenuSeparator";var nl=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tP(n);return(0,eK.jsx)(e8,{...o,...r,ref:t})});nl.displayName="MenuArrow";var na="MenuSub",[nu,nc]=tS(na),ns=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,l=tI(na,t),a=tP(t),[u,c]=o.useState(null),[s,d]=o.useState(null),f=(0,eB.W)(i);return o.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,eK.jsx)(eq,{...a,children:(0,eK.jsx)(t_,{scope:t,open:r,onOpenChange:f,content:s,onContentChange:d,children:(0,eK.jsx)(nu,{scope:t,contentId:(0,v.M)(),triggerId:(0,v.M)(),trigger:u,onTriggerChange:c,children:n})})})};ns.displayName=na;var nd="MenuSubTrigger",nf=o.forwardRef((e,t)=>{let n=tI(nd,e.__scopeMenu),r=tN(nd,e.__scopeMenu),a=nc(nd,e.__scopeMenu),u=tU(nd,e.__scopeMenu),c=o.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,eK.jsx)(tW,{asChild:!0,...f,children:(0,eK.jsx)(t5,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":nv(n.open
1),...e,ref:(0,l.F)(t,a.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.Mj)(e.onPointerMove,nw(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,i.Mj)(e.onPointerLeave,nw(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],a=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.Mj)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&tC[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});nf.displayName=nd;var np="MenuSubContent",nh=o.forwardRef((e,t)=>{let n=tK(tB,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,u=tI(tB,e.__scopeMenu),c=tN(tB,e.__scopeMenu),s=nc(np,e.__scopeMenu),d=o.useRef(null),f=(0,l.e)(t,d);return(0,eK.jsx)(tD.Provider,{scope:e.__scopeMenu,children:(0,eK.jsx)(tt.z,{present:r||u.open,children:(0,eK.jsx)(tD.Slot,{scope:e.__scopeMenu,children:(0,eK.jsx)(tq,{id:s.contentId,"aria-labelledby":s.triggerId,...a,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.Mj)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.Mj)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tM[c.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function nv(e){return e?"open":"closed"}function nm(e){return"indeterminate"===e}function ng(e){return nm(e)?"indeterminate":e?"checked":"unchecked"}function nw(e){return t=>"mouse"===t.pointerType?e(t):void 0}nh.displayName=np;var nx="DropdownMenu",[ny,nb]=(0,a.b)(nx,[tE]),nR=tE(),[nj,nC]=ny(nx),nM=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:c=!0}=e,s=nR(t),d=o.useRef(null),[f,p]=(0,u.T)({prop:i,defaultProp:null!=l&&l,onChange:a,caller:nx});return(0,eK.jsx)(nj,{scope:t,triggerId:(0,v.M)(),triggerRef:d,contentId:(0,v.M)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,eK.jsx)(tF,{...s,open:f,onOpenChange:p,dir:r,modal:c,children:n})})};nM.displayName=nx;var nA="DropdownMenuTrigger",nD=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=nC(nA,n),u=nR(n);return(0,eK.jsx)(tW,{asChild:!0,...u,children:(0,eK.jsx)(c.WV.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,l.F)(t,a.triggerRef),onPointerDown:(0,i.Mj)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nD.displayName=nA;var nk=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nR(t);return(0,eK.jsx)(tz,{...r,...n})};nk.displayName="DropdownMenuPortal";var nT="DropdownMenuContent",nS=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,l=nC(nT,n),a=nR(n),u=o.useRef(!1);return(0,eK.jsx)(tZ,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,i.Mj)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.Mj)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(u.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)"}})});nS.displayName=nT;var nE=o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(tJ,{...o,...r,ref:t})});nE.displayName="DropdownMenuGroup";var nP=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(tQ,{...o,...r,ref:t})});nP.displayName="DropdownMenuLabel";var nO=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(t2,{...o,...r,ref:t})});nO.displayName="DropdownMenuItem";var n_=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(t3,{...o,...r,ref:t})});n_.displayName="DropdownMenuCheckboxItem";var nI=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(t7,{...o,...r,ref:t})});nI.displayName="DropdownMenuRadioGroup";var nL=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(ne,{...o,...r,ref:t})});nL.displayName="DropdownMenuRadioItem";var nN=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(no,{...o,...r,ref:t})});nN.displayName="DropdownMenuItemIndicator";var nF=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(ni,{...o,...r,ref:t})});nF.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(nl,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nW=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(nf,{...o,...r,ref:t})});nW.displayName="DropdownMenuSubTrigger";var nV=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nR(n);return(0,eK.jsx)(nh,{...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)"}})});nV.displayName="DropdownMenuSubContent";var nH=nM,nK=nD,nz=nk,nB=nS,nG=nE,nU=nP,nZ=nO,nX=n_,nY=nI,n$=nL,nq=nN,nJ=nF,nQ=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=nR(t),[a,c]=(0,u.T)({prop:r,defaultProp:null!=i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,eK.jsx)(ns,{...l,open:a,onOpenChange:c,children:n})},n0=nW,n1=nV},8513:function(e,t,n){n.d(t,{f:function(){return c}});var r=n(8496),o=n(5330),i=n(3890),l="horizontal",a=["horizontal","vertical"],u=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=l,...u}=e,c=a.includes(r)?r:l;return(0,i.jsx)(o.WV.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});u.displayName="Separator";var c=u}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.