"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58355],{68602:function(e,t,n){n.d(t,{Eh:function(){return H},VY:function(){return N},fC:function(){return k},h_:function(){return M},xz:function(){return F}});var r,o=n(2265),i=n(78149),l=n(98324),a=n(91715),u=n(1584),s=n(77683),c=n(56935),f=n(31383),d=n(25171),p=n(53938),h=n(57437),v="HoverCard",[g,m]=(0,l.b)(v,[s.D7]),x=(0,s.D7)(),[w,y]=g(v),b=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:l,openDelay:u=700,closeDelay:c=300}=e,f=x(t),d=o.useRef(0),p=o.useRef(0),v=o.useRef(!1),g=o.useRef(!1),[m=!1,y]=(0,a.T)({prop:r,defaultProp:i,onChange:l}),b=o.useCallback(()=>{clearTimeout(p.current),d.current=window.setTimeout(()=>y(!0),u)},[u,y]),R=o.useCallback(()=>{clearTimeout(d.current),v.current||g.current||(p.current=window.setTimeout(()=>y(!1),c))},[c,y]),C=o.useCallback(()=>y(!1),[y]);return o.useEffect(()=>()=>{clearTimeout(d.current),clearTimeout(p.current)},[]),(0,h.jsx)(w,{scope:t,open:m,onOpenChange:y,onOpen:b,onClose:R,onDismiss:C,hasSelectionRef:v,isPointerDownOnContentRef:g,children:(0,h.jsx)(s.fC,{...f,children:n})})};b.displayName=v;var R="HoverCardTrigger",C=o.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,o=y(R,n),l=x(n);return(0,h.jsx)(s.ee,{asChild:!0,...l,children:(0,h.jsx)(d.WV.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:(0,i.M)(e.onPointerEnter,L(o.onOpen)),onPointerLeave:(0,i.M)(e.onPointerLeave,L(o.onClose)),onFocus:(0,i.M)(e.onFocus,o.onOpen),onBlur:(0,i.M)(e.onBlur,o.onClose),onTouchStart:(0,i.M)(e.onTouchStart,e=>e.preventDefault())})})});C.displayName=R;var P="HoverCardPortal",[A,E]=g(P,{forceMount:void 0}),O=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:o}=e,i=y(P,t);return(0,h.jsx)(A,{scope:t,forceMount:n,children:(0,h.jsx)(f.z,{present:n||i.open,children:(0,h.jsx)(c.h,{asChild:!0,container:o,children:r})})})};O.displayName=P;var T="HoverCardContent",S=o.forwardRef((e,t)=>{let n=E(T,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,l=y(T,e.__scopeHoverCard);return(0,h.jsx)(f.z,{present:r||l.open,children:(0,h.jsx)(j,{"data-state":l.open?"open":"closed",...o,onPointerEnter:(0,i.M)(e.onPointerEnter,L(l.onOpen)),onPointerLeave:(0,i.M)(e.onPointerLeave,L(l.onClose)),ref:t})})});S.displayName=T;var j=o.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:f,...d}=e,v=y(T,n),g=x(n),m=o.useRef(null),w=(0,u.e)(t,m),[b,R]=o.useState(!1);return o.useEffect(()=>{if(b){let e=document.body;return r=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=r,e.style.webkitUserSelect=r}}},[b]),o.useEffect(()=>{if(m.current){let e=()=>{R(!1),v.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(v.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),v.hasSelectionRef.current=!1,v.isPointerDownOnContentRef.current=!1}}},[v.isPointerDownOnContentRef,v.hasSelectionRef]),o.useEffect(()=>{m.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(m.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,h.jsx)(p.XB,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:(0,i.M)(c,e=>{e.preventDefault()}),onDismiss:v.onDismiss,children:(0,h.jsx)(s.VY,{...g,...d,onPointerDown:(0,i.M)(d.onPointerDown,e=>{e.currentTarget.contains(e.target)&&R(!0),v.hasSelectionRef.current=!1,v.isPointerDownOnContentRef.current=!0}),ref:w,style:{...d.style,userSelect:b?"text":void 0,WebkitUserSelect:b?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),D=o.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,o=x(n);return(0,h.jsx)(s.Eh,{...o,...r,ref:t})});function L(e){return t=>"touch"===t.pointerType?void 0:e()}D.displayName="HoverCardArrow";var k=b,F=C,M=O,N=S,H=D},61485:function(e,t,n){n.d(t,{VY:function(){return $},ee:function(){return Y},fC:function(){return I},h_:function(){return U},x8:function(){return q},xz:function(){return X}});var r=n(2265),o=n(78149),i=n(1584),l=n(98324),a=n(53938),u=n(20589),s=n(80467),c=n(53201),f=n(77683),d=n(56935),p=n(31383),h=n(25171),v=n(71538),g=n(91715),m=n(78369),x=n(17590),w=n(57437),y="Popover",[b,R]=(0,l.b)(y,[f.D7]),C=(0,f.D7)(),[P,A]=b(y),E=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,u=C(t),s=r.useRef(null),[d,p]=r.useState(!1),[h=!1,v]=(0,g.T)({prop:o,defaultProp:i,onChange:l});return(0,w.jsx)(f.fC,{...u,children:(0,w.jsx)(P,{scope:t,contentId:(0,c.M)(),triggerRef:s,open:h,onOpenChange:v,onOpenToggle:r.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:a,children:n})})};E.displayName=y;var O="PopoverAnchor",T=r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,i=A(O,n),l=C(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:u}=i;return r.useEffect(()=>(a(),()=>u()),[a,u]),(0,w.jsx)(f.ee,{...l,...o,ref:t})});T.displayName=O;var S="PopoverTrigger",j=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=A(S,n),a=C(n),u=(0,i.e)(t,l.triggerRef),s=(0,w.jsx)(h.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":B(l.open),...r,ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?s:(0,w.jsx)(f.ee,{asChild:!0,...a,children:s})});j.displayName=S;var D="PopoverPortal",[L,k]=b(D,{forceMount:void 0}),F=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=A(D,t);return(0,w.jsx)(L,{scope:t,forceMount:n,children:(0,w.jsx)(p.z,{present:n||i.open,children:(0,w.jsx)(d.h,{asChild:!0,container:o,children:r})})})};F.displayName=D;var M="PopoverContent",N=r.forwardRef((e,t)=>{let n=k(M,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=A(M,e.__scopePopover);return(0,w.jsx)(p.z,{present:r||i.open,children:i.modal?(0,w.jsx)(H,{...o,ref:t}):(0,w.jsx)(W,{...o,ref:t})})});N.displayName=M;var H=r.forwardRef((e,t)=>{let n=A(M,e.__scopePopover),l=r.useRef(null),a=(0,i.e)(t,l),u=r.useRef(!1);return r.useEffect(()=>{let e=l.current;if(e)return(0,m.Ry)(e)},[]),(0,w.jsx)(x.Z,{as:v.g7,allowPinchZoom:!0,children:(0,w.jsx)(_,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;u.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=r.forwardRef((e,t)=>{let n=A(M,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,w.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,l;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;(null===(l=n.triggerRef.current)||void 0===l?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),_=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...v}=e,g=A(M,n),m=C(n);return(0,u.EW)(),(0,w.jsx)(s.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,w.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1),children:(0,w.jsx)(f.VY,{"data-state":B(g.open),role:"dialog",id:g.contentId,...m,...v,ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),V="PopoverClose",z=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A(V,n);return(0,w.jsx)(h.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function B(e){return e?"open":"closed"}z.displayName=V,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=C(n);return(0,w.jsx)(f.Eh,{...o,...r,ref:t})}).displayName="PopoverArrow";var I=E,Y=T,X=j,U=F,$=N,q=z},77683:function(e,t,n){n.d(t,{ee:function(){return e$},Eh:function(){return eK},VY:function(){return eq},fC:function(){return eU},D7:function(){return ej}});var r=n(2265);let o=["top","right","bottom","left"],i=Math.min,l=Math.max,a=Math.round,u=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(p(e))?"y":"x"}function x(e){return e.replace(/start|end/g,e=>f[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function y(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(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 R(e,t,n){let r,{reference:o,floating:i}=e,l=m(t),a=v(m(t)),u=g(a),s=p(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,x=o[u]/2-i[u]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(h(t)){case"start":r[a]-=x*(n&&c?-1:1);break;case"end":r[a]+=x*(n&&c?-1:1)}return r}let C=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=R(s,r,u),d=r,p={},h=0;for(let n=0;ne[t]>=0)}async function O(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=h(n),u="y"===m(n),s=["left","top"].includes(l)?-1:1,c=i&&u?-1:1,f=d(t,e),{mainAxis:v,crossAxis:g,alignmentAxis:x}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof x&&(g="end"===a?-1*x:x),u?{x:g*c,y:v*s}:{x:v*s,y:g*c}}function T(){return"undefined"!=typeof window}function S(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!T()&&(e instanceof Node||e instanceof j(e).Node)}function k(e){return!!T()&&(e instanceof Element||e instanceof j(e).Element)}function F(e){return!!T()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function M(e){return!!T()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function H(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function W(e){let t=_(),n=k(e)?z(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function _(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function V(e){return["html","body","#document"].includes(S(e))}function z(e){return j(e).getComputedStyle(e)}function B(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function I(e){if("html"===S(e))return e;let t=e.assignedSlot||e.parentNode||M(e)&&e.host||D(e);return M(t)?t.host:t}function Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=I(t);return V(n)?t.ownerDocument?t.ownerDocument.body:t.body:F(n)&&N(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=j(o);if(i){let e=X(l);return t.concat(l,l.visualViewport||[],N(o)?o:[],e&&n?Y(e):[])}return t.concat(o,Y(o,[],n))}function X(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U(e){let t=z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=F(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=a(n)!==i||a(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function $(e){return k(e)?e:e.contextElement}function q(e){let t=$(e);if(!F(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=U(t),l=(i?a(n.width):n.width)/r,u=(i?a(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let K=s(0);function Z(e){let t=j(e);return _()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function G(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=$(e),a=s(1);t&&(r?k(r)&&(a=q(r)):a=q(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===j(l))&&o)?Z(l):s(0),c=(i.left+u.x)/a.x,f=(i.top+u.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=j(l),t=r&&k(r)?j(r):r,n=e,o=X(n);for(;o&&r&&t!==n;){let e=q(o),t=o.getBoundingClientRect(),r=z(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=i,f+=l,o=X(n=j(o))}}return b({width:d,height:p,x:c,y:f})}function J(e,t){let n=B(e).scrollLeft;return t?t.left+n:G(D(e)).left+n}function Q(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=j(e),r=D(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=_();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=D(e),n=B(e),r=e.ownerDocument.body,o=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+J(e),u=-n.scrollTop;return"rtl"===z(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}(D(e));else if(k(t))r=function(e,t){let n=G(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=F(e)?q(e):s(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=Z(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function ee(e){return"static"===z(e).position}function et(e,t){if(!F(e)||"fixed"===z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return D(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=j(e);if(H(e))return n;if(!F(e)){let t=I(e);for(;t&&!V(t);){if(k(t)&&!ee(t))return t;t=I(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(S(r))&&ee(r);)r=et(r,t);return r&&V(r)&&ee(r)&&!W(r)?n:r||function(e){let t=I(e);for(;F(t)&&!V(t);){if(W(t))return t;if(H(t))break;t=I(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=F(t),o=D(t),i="fixed"===n,l=G(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!i){if(("body"!==S(t)||N(o))&&(a=B(t)),r){let e=G(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=J(o))}let c=0,f=0;if(o&&!r&&!i){let e=o.getBoundingClientRect();f=e.top+a.scrollTop,c=e.left+a.scrollLeft-J(o,e)}return{x:l.left+a.scrollLeft-u.x-c,y:l.top+a.scrollTop-u.y-f,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}}},eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=D(r),a=!!t&&H(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),f=s(0),d=F(r);if((d||!d&&!i)&&(("body"!==S(r)||N(l))&&(u=B(r)),F(r))){let e=G(r);c=q(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x,y:n.y*c.y-u.scrollTop*c.y+f.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?H(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>k(e)&&"body"!==S(e)),o=null,i="fixed"===z(e).position,l=i?I(e):e;for(;k(l)&&!V(l);){let t=z(l),n=W(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||N(l)&&!n&&function e(t,n){let r=I(t);return!(r===n||!k(r)||V(r))&&("fixed"===z(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=I(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],s=a.reduce((e,n)=>{let r=Q(t,n,o);return e.top=l(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=l(r.left,e.left),e},Q(t,u,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=U(e);return{width:t,height:n}},getScale:q,isElement:k,isRTL:function(e){return"rtl"===z(e).direction}},ei=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:a,platform:u,elements:s,middlewareData:c}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let x=y(p),w={x:n,y:r},b=v(m(o)),R=g(b),C=await u.getDimensions(f),P="y"===b,A=P?"clientHeight":"clientWidth",E=a.reference[R]+a.reference[b]-w[b]-a.floating[R],O=w[b]-a.reference[b],T=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),S=T?T[A]:0;S&&await (null==u.isElement?void 0:u.isElement(T))||(S=s.floating[A]||a.floating[R]);let j=S/2-C[R]/2-1,D=i(x[P?"top":"left"],j),L=i(x[P?"bottom":"right"],j),k=S-C[R]-L,F=S/2-C[R]/2+(E/2-O/2),M=l(D,i(F,k)),N=!c.arrow&&null!=h(o)&&F!==M&&a.reference[R]/2-(F{let r=new Map,o={platform:eo,...n},i={...o.platform,_c:r};return C(e,t,{...o,platform:i})};var ea=n(54887),eu="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function es(e,t){let n,r,o;if(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 ec(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ef(e,t){let n=ec(e);return Math.round(t*n)/n}function ed(e){let t=r.useRef(e);return eu(()=>{t.current=e}),t}let ep=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?ei({element:n.current,padding:r}).fn(t):{}:n?ei({element:n,padding:r}).fn(t):{}}}),eh=(e,t)=>{var n;return{...(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 O(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}}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:a=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(n,e),f={x:t,y:r},h=await P(e,c),g=m(p(o)),x=v(g),w=f[x],y=f[g];if(a){let e="y"===x?"top":"left",t="y"===x?"bottom":"right",n=w+h[e],r=w-h[t];w=l(n,i(w,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+h[e],r=y-h[t];y=l(n,i(y,r))}let b=s.fn({...e,[x]:w,[g]:y});return{...b,data:{x:b.x-t,y:b.y-r,enabled:{[x]:a,[g]:u}}}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(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:s=!0}=d(n,e),c={x:t,y:r},f=m(o),h=v(f),g=c[h],x=c[f],w=d(a,e),y="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+y.mainAxis,n=i.reference[h]+i.reference[e]-y.mainAxis;gn&&(g=n)}if(s){var b,R;let e="y"===h?"width":"height",t=["top","left"].includes(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:y.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[f])||0)-(t?y.crossAxis:0);xr&&(x=r)}return{[h]:g,[f]:x}}}),options:[e,t]}},em=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:y}=e,{mainAxis:b=!0,crossAxis:R=!0,fallbackPlacements:C,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:O=!0,...T}=d(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let S=p(a),j=m(c),D=p(c)===c,L=await (null==f.isRTL?void 0:f.isRTL(y.floating)),k=C||(D||!O?[w(c)]:function(e){let t=w(e);return[x(e),t,x(t)]}(c)),F="none"!==E;!C&&F&&k.push(...function(e,t,n,r){let o=h(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(x)))),i}(c,O,E,L));let M=[c,...k],N=await P(e,T),H=[],W=(null==(r=u.flip)?void 0:r.overflows)||[];if(b&&H.push(N[S]),R){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),o=v(m(e)),i=g(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=w(l)),[l,w(l)]}(a,s,L);H.push(N[e[0]],N[e[1]])}if(W=[...W,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:W},reset:{placement:t}};let n=null==(i=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(A){case"bestFit":{let e=null==(l=W.filter(e=>{if(F){let t=m(e.placement);return t===j||"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=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},ex=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,a;let{placement:u,rects:s,platform:c,elements:f}=e,{apply:v=()=>{},...g}=d(n,e),x=await P(e,g),w=p(u),y=h(u),b="y"===m(u),{width:R,height:C}=s.floating;"top"===w||"bottom"===w?(o=w,a=y===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(a=w,o="end"===y?"top":"bottom");let A=C-x.top-x.bottom,E=R-x.left-x.right,O=i(C-x[o],A),T=i(R-x[a],E),S=!e.middlewareData.shift,j=O,D=T;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(D=E),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(j=A),S&&!y){let e=l(x.left,0),t=l(x.right,0),n=l(x.top,0),r=l(x.bottom,0);b?D=R-2*(0!==e||0!==t?e+t:l(x.left,x.right)):j=C-2*(0!==n||0!==r?n+r:l(x.top,x.bottom))}await v({...e,availableWidth:D,availableHeight:j});let L=await c.getDimensions(f.floating);return R!==L.width||C!==L.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ew=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=d(n,e);switch(r){case"referenceHidden":{let n=A(await P(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:E(n)}}}case"escaped":{let n=A(await P(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:E(n)}}}default:return{}}}}),options:[e,t]}},ey=(e,t)=>({...ep(e),options:[e,t]});var eb=n(25171),eR=n(57437),eC=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eR.jsx)(eb.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eR.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eC.displayName="Arrow";var eP=n(1584),eA=n(98324),eE=n(75137),eO=n(1336),eT="Popper",[eS,ej]=(0,eA.b)(eT),[eD,eL]=eS(eT),ek=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eR.jsx)(eD,{scope:t,anchor:o,onAnchorChange:i,children:n})};ek.displayName=eT;var eF="PopperAnchor",eM=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=eL(eF,n),a=r.useRef(null),u=(0,eP.e)(t,a);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||a.current)}),o?null:(0,eR.jsx)(eb.WV.div,{...i,ref:u})});eM.displayName=eF;var eN="PopperContent",[eH,eW]=eS(eN),e_=r.forwardRef((e,t)=>{var n,o,a,s,c,f,d,p;let{__scopePopper:h,side:v="bottom",sideOffset:g=0,align:m="center",alignOffset:x=0,arrowPadding:w=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:R=0,sticky:C="partial",hideWhenDetached:P=!1,updatePositionStrategy:A="optimized",onPlaced:E,...O}=e,T=eL(eN,h),[S,j]=r.useState(null),L=(0,eP.e)(t,e=>j(e)),[k,F]=r.useState(null),M=function(e){let[t,n]=r.useState(void 0);return(0,eO.b)(()=>{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}(k),N=null!==(d=null==M?void 0:M.width)&&void 0!==d?d:0,H=null!==(p=null==M?void 0:M.height)&&void 0!==p?p:0,W="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},_=Array.isArray(b)?b:[b],V=_.length>0,z={padding:W,boundary:_.filter(eI),altBoundary:V},{refs:B,floatingStyles:I,placement:X,isPositioned:U,middlewareData:q}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);es(p,o)||h(o);let[v,g]=r.useState(null),[m,x]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),y=r.useCallback(e=>{e!==P.current&&(P.current=e,x(e))},[]),b=l||v,R=a||m,C=r.useRef(null),P=r.useRef(null),A=r.useRef(f),E=null!=s,O=ed(s),T=ed(i),S=ed(c),j=r.useCallback(()=>{if(!C.current||!P.current)return;let e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),el(C.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==S.current};D.current&&!es(A.current,t)&&(A.current=t,ea.flushSync(()=>{d(t)}))})},[p,t,n,T,S]);eu(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let D=r.useRef(!1);eu(()=>(D.current=!0,()=>{D.current=!1}),[]),eu(()=>{if(b&&(C.current=b),R&&(P.current=R),b&&R){if(O.current)return O.current(b,R,j);j()}},[b,R,j,O,E]);let L=r.useMemo(()=>({reference:C,floating:P,setReference:w,setFloating:y}),[w,y]),k=r.useMemo(()=>({reference:b,floating:R}),[b,R]),F=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=ef(k.floating,f.x),r=ef(k.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ec(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,k.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:j,refs:L,elements:k,floatingStyles:F}),[f,j,L,k,F])}({strategy:"fixed",placement:v+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let v=p&&f?function(e,t){let n,r=null,o=D(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),a();let{left:d,top:p,width:h,height:v}=e.getBoundingClientRect();if(c||t(),!h||!v)return;let g=u(p),m=u(o.clientWidth-(d+h)),x={rootMargin:-g+"px "+-m+"px "+-u(o.clientHeight-(p+v))+"px "+-u(d)+"px",threshold:l(0,i(1,f))||1},w=!0;function y(e){let t=e[0].intersectionRatio;if(t!==f){if(!w)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(y,{...x,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,x)}r.observe(e)}(!0),a}(p,n):null,g=-1,m=null;c&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),p&&!d&&m.observe(p),m.observe(t));let x=d?G(e):null;return d&&function t(){let r=G(e);x&&(r.x!==x.x||r.y!==x.y||r.width!==x.width||r.height!==x.height)&&n(),x=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=m)||e.disconnect(),m=null,d&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===A})},elements:{reference:T.anchor},middleware:[eh({mainAxis:g+H,alignmentAxis:x}),y&&ev({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?eg():void 0,...z}),y&&em({...z}),ex({...z,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"))}}),k&&ey({element:k,padding:w}),eY({arrowWidth:N,arrowHeight:H}),P&&ew({strategy:"referenceHidden",...z})]}),[K,Z]=eX(X),J=(0,eE.W)(E);(0,eO.b)(()=>{U&&(null==J||J())},[U,J]);let Q=null===(n=q.arrow)||void 0===n?void 0:n.x,ee=null===(o=q.arrow)||void 0===o?void 0:o.y,et=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[en,er]=r.useState();return(0,eO.b)(()=>{S&&er(window.getComputedStyle(S).zIndex)},[S]),(0,eR.jsx)("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:U?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(s=q.transformOrigin)||void 0===s?void 0:s.x,null===(c=q.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(f=q.hide)||void 0===f?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eR.jsx)(eH,{scope:h,placedSide:K,onArrowChange:F,arrowX:Q,arrowY:ee,shouldHideArrow:et,children:(0,eR.jsx)(eb.WV.div,{"data-side":K,"data-align":Z,...O,ref:L,style:{...O.style,animation:U?void 0:"none"}})})})});e_.displayName=eN;var eV="PopperArrow",ez={top:"bottom",right:"left",bottom:"top",left:"right"},eB=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eW(eV,n),i=ez[o.placedSide];return(0,eR.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,eR.jsx)(eC,{...r,ref:t,style:{...r.style,display:"block"}})})});function eI(e){return null!==e}eB.displayName=eV;var eY=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eX(a),v={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+f/2,m=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+d/2,x="",w="";return"bottom"===p?(x=c?v:"".concat(g,"px"),w="".concat(-d,"px")):"top"===p?(x=c?v:"".concat(g,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(x="".concat(-d,"px"),w=c?v:"".concat(m,"px")):"left"===p&&(x="".concat(u.floating.width+d,"px"),w=c?v:"".concat(m,"px")),{data:{x,y:w}}}});function eX(e){let[t,n="center"]=e.split("-");return[t,n]}var eU=ek,e$=eM,eq=e_,eK=eB}}]);