!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1937f6e3-5b60-4089-84b4-9b8fc81e67ad",t._sentryDebugIdIdentifier="sentry-dbid-1937f6e3-5b60-4089-84b4-9b8fc81e67ad")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4766],{74340:function(t,e,n){n.d(e,{x7:function(){return tu},Me:function(){return tn},oo:function(){return ta},RR:function(){return to},Cp:function(){return tf},dr:function(){return tc},cv:function(){return tr},uY:function(){return ti},dp:function(){return tl}});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,l=Math.round,f=Math.floor,u=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function s(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function g(t){return["top","bottom"].includes(d(t))?"y":"x"}function y(t){return t.replace(/start|end/g,t=>a[t])}function w(t){return t.replace(/left|right|bottom|top/g,t=>c[t])}function v(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function b(t){let{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function x(t,e,n){let r,{reference:i,floating:o}=t,l=g(e),f=p(g(e)),u=m(f),c=d(e),a="y"===l,s=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,w=i[u]/2-o[u]/2;switch(c){case"top":r={x:s,y:i.y-o.height};break;case"bottom":r={x:s,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(h(e)){case"start":r[f]-=w*(n&&a?-1:1);break;case"end":r[f]+=w*(n&&a?-1:1)}return r}let R=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,f=o.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(e)),c=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:s}=x(c,r,u),d=r,h={},p=0;for(let n=0;nt[e]>=0)}async function A(t,e){let{placement:n,platform:r,elements:i}=t,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=d(n),f=h(n),u="y"===g(n),c=["left","top"].includes(l)?-1:1,a=o&&u?-1:1,p=s(e,t),{mainAxis:m,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof w&&(y="end"===f?-1*w:w),u?{x:y*a,y:m*c}:{x:m*c,y:y*a}}function S(t){return O(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function C(t){var e;return null==(e=(O(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function O(t){return t instanceof Node||t instanceof k(t).Node}function D(t){return t instanceof Element||t instanceof k(t).Element}function P(t){return t instanceof HTMLElement||t instanceof k(t).HTMLElement}function H(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof k(t).ShadowRoot)}function W(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function M(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function F(t){let e=_(),n=D(t)?V(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function _(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(t){return["html","body","#document"].includes(S(t))}function V(t){return k(t).getComputedStyle(t)}function I(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function B(t){if("html"===S(t))return t;let e=t.assignedSlot||t.parentNode||H(t)&&t.host||C(t);return H(e)?e.host:e}function N(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);let i=function t(e){let n=B(e);return z(n)?e.ownerDocument?e.ownerDocument.body:e.body:P(n)&&W(n)?n:t(n)}(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),l=k(i);return o?e.concat(l,l.visualViewport||[],W(i)?i:[],l.frameElement&&n?N(l.frameElement):[]):e.concat(i,N(i,[],n))}function Y(t){let e=V(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=P(t),o=i?t.offsetWidth:n,f=i?t.offsetHeight:r,u=l(n)!==o||l(r)!==f;return u&&(n=o,r=f),{width:n,height:r,$:u}}function j(t){return D(t)?t:t.contextElement}function $(t){let e=j(t);if(!P(e))return u(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Y(e),f=(o?l(n.width):n.width)/r,c=(o?l(n.height):n.height)/i;return f&&Number.isFinite(f)||(f=1),c&&Number.isFinite(c)||(c=1),{x:f,y:c}}let q=u(0);function X(t){let e=k(t);return _()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:q}function G(t,e,n,r){var i;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),l=j(t),f=u(1);e&&(r?D(r)&&(f=$(r)):f=$(t));let c=(void 0===(i=n)&&(i=!1),r&&(!i||r===k(l))&&i)?X(l):u(0),a=(o.left+c.x)/f.x,s=(o.top+c.y)/f.y,d=o.width/f.x,h=o.height/f.y;if(l){let t=k(l),e=r&&D(r)?k(r):r,n=t,i=n.frameElement;for(;i&&r&&e!==n;){let t=$(i),e=i.getBoundingClientRect(),r=V(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;a*=t.x,s*=t.y,d*=t.x,h*=t.y,a+=o,s+=l,i=(n=k(i)).frameElement}}return b({width:d,height:h,x:a,y:s})}function J(t){return G(C(t)).left+I(t).scrollLeft}function K(t,e,n){let r;if("viewport"===e)r=function(t,e){let n=k(t),r=C(t),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,f=0,u=0;if(i){o=i.width,l=i.height;let t=_();(!t||t&&"fixed"===e)&&(f=i.offsetLeft,u=i.offsetTop)}return{width:o,height:l,x:f,y:u}}(t,n);else if("document"===e)r=function(t){let e=C(t),n=I(t),r=t.ownerDocument.body,i=o(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),l=o(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),f=-n.scrollLeft+J(t),u=-n.scrollTop;return"rtl"===V(r).direction&&(f+=o(e.clientWidth,r.clientWidth)-i),{width:i,height:l,x:f,y:u}}(C(t));else if(D(e))r=function(t,e){let n=G(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=P(t)?$(t):u(1),l=t.clientWidth*o.x;return{width:l,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{let n=X(t);r={...e,x:e.x-n.x,y:e.y-n.y}}return b(r)}function Q(t){return"static"===V(t).position}function U(t,e){return P(t)&&"fixed"!==V(t).position?e?e(t):t.offsetParent:null}function Z(t,e){let n=k(t);if(M(t))return n;if(!P(t)){let e=B(t);for(;e&&!z(e);){if(D(e)&&!Q(e))return e;e=B(e)}return n}let r=U(t,e);for(;r&&["table","td","th"].includes(S(r))&&Q(r);)r=U(r,e);return r&&z(r)&&Q(r)&&!F(r)?n:r||function(t){let e=B(t);for(;P(e)&&!z(e);){if(F(e))return e;if(M(e))break;e=B(e)}return null}(t)||n}let tt=async function(t){let e=this.getOffsetParent||Z,n=this.getDimensions,r=await n(t.floating);return{reference:function(t,e,n){let r=P(e),i=C(e),o="fixed"===n,l=G(t,!0,o,e),f={scrollLeft:0,scrollTop:0},c=u(0);if(r||!r&&!o){if(("body"!==S(e)||W(i))&&(f=I(e)),r){let t=G(e,!0,o,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=J(i))}return{x:l.left+f.scrollLeft-c.x,y:l.top+f.scrollTop-c.y,width:l.width,height:l.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},te={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t,o="fixed"===i,l=C(r),f=!!e&&M(e.floating);if(r===l||f&&o)return n;let c={scrollLeft:0,scrollTop:0},a=u(1),s=u(0),d=P(r);if((d||!d&&!o)&&(("body"!==S(r)||W(l))&&(c=I(r)),P(r))){let t=G(r);a=$(r),s.x=t.x+r.clientLeft,s.y=t.y+r.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+s.x,y:n.y*a.y-c.scrollTop*a.y+s.y}},getDocumentElement:C,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:l}=t,f=[..."clippingAncestors"===n?M(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let r=N(t,[],!1).filter(t=>D(t)&&"body"!==S(t)),i=null,o="fixed"===V(t).position,l=o?B(t):t;for(;D(l)&&!z(l);){let e=V(l),n=F(l);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||W(l)&&!n&&function t(e,n){let r=B(e);return!(r===n||!D(r)||z(r))&&("fixed"===V(r).position||t(r,n))}(t,l))?r=r.filter(t=>t!==l):i=e,l=B(l)}return e.set(t,r),r}(e,this._c):[].concat(n),r],u=f[0],c=f.reduce((t,n)=>{let r=K(e,n,l);return t.top=o(r.top,t.top),t.right=i(r.right,t.right),t.bottom=i(r.bottom,t.bottom),t.left=o(r.left,t.left),t},K(e,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Z,getElementRects:tt,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=Y(t);return{width:e,height:n}},getScale:$,isElement:D,isRTL:function(t){return"rtl"===V(t).direction}};function tn(t,e,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,h=j(t),p=u||c?[...h?N(h):[],...N(e)]:[];p.forEach(t=>{u&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)});let m=h&&s?function(t,e){let n,r=null,l=C(t);function u(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return!function c(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),u();let{left:d,top:h,width:p,height:m}=t.getBoundingClientRect();if(a||e(),!p||!m)return;let g=f(h),y=f(l.clientWidth-(d+p)),w={rootMargin:-g+"px "+-y+"px "+-f(l.clientHeight-(h+m))+"px "+-f(d)+"px",threshold:o(0,i(1,s))||1},v=!0;function b(t){let e=t[0].intersectionRatio;if(e!==s){if(!v)return c();e?c(!1,e):n=setTimeout(()=>{c(!1,1e-7)},1e3)}v=!1}try{r=new IntersectionObserver(b,{...w,root:l.ownerDocument})}catch(t){r=new IntersectionObserver(b,w)}r.observe(t)}(!0),u}(h,n):null,g=-1,y=null;a&&(y=new ResizeObserver(t=>{let[r]=t;r&&r.target===h&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),h&&!d&&y.observe(h),y.observe(e));let w=d?G(t):null;return d&&function e(){let r=G(t);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,l=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach(t=>{u&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,d&&cancelAnimationFrame(l)}}let tr=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;let{x:i,y:o,placement:l,middlewareData:f}=e,u=await A(e,t);return l===(null==(n=f.offset)?void 0:n.placement)&&null!=(r=f.arrow)&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:l}}}}},ti=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:l}=e,{mainAxis:f=!0,crossAxis:u=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...a}=s(t,e),h={x:n,y:r},m=await E(e,a),y=g(d(l)),w=p(y),v=h[w],b=h[y];if(f){let t="y"===w?"top":"left",e="y"===w?"bottom":"right",n=v+m[t],r=v-m[e];v=o(n,i(v,r))}if(u){let t="y"===y?"top":"left",e="y"===y?"bottom":"right",n=b+m[t],r=b-m[e];b=o(n,i(b,r))}let x=c.fn({...e,[w]:v,[y]:b});return{...x,data:{x:x.x-n,y:x.y-r}}}}},to=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r,i,o,l;let{placement:f,middlewareData:u,rects:c,initialPlacement:a,platform:v,elements:b}=e,{mainAxis:x=!0,crossAxis:R=!0,fallbackPlacements:L,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:S=!0,...k}=s(t,e);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let C=d(f),O=g(a),D=d(a)===a,P=await (null==v.isRTL?void 0:v.isRTL(b.floating)),H=L||(D||!S?[w(a)]:function(t){let e=w(t);return[y(t),e,y(e)]}(a)),W="none"!==A;!L&&W&&H.push(...function(t,e,n,r){let i=h(t),o=function(t,e,n){let r=["left","right"],i=["right","left"];switch(t){case"top":case"bottom":if(n)return e?i:r;return e?r:i;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(d(t),"start"===n,r);return i&&(o=o.map(t=>t+"-"+i),e&&(o=o.concat(o.map(y)))),o}(a,S,A,P));let M=[a,...H],F=await E(e,k),_=[],z=(null==(r=u.flip)?void 0:r.overflows)||[];if(x&&_.push(F[C]),R){let t=function(t,e,n){void 0===n&&(n=!1);let r=h(t),i=p(g(t)),o=m(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=w(l)),[l,w(l)]}(f,c,P);_.push(F[t[0]],F[t[1]])}if(z=[...z,{placement:f,overflows:_}],!_.every(t=>t<=0)){let t=((null==(i=u.flip)?void 0:i.index)||0)+1,e=M[t];if(e)return{data:{index:t,overflows:z},reset:{placement:e}};let n=null==(o=z.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(T){case"bestFit":{let t=null==(l=z.filter(t=>{if(W){let e=g(t.placement);return e===O||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:l[0];t&&(n=t);break}case"initialPlacement":n=a}if(f!==n)return{reset:{placement:n}}}return{}}}},tl=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){let n,r;let{placement:l,rects:f,platform:u,elements:c}=e,{apply:a=()=>{},...p}=s(t,e),m=await E(e,p),y=d(l),w=h(l),v="y"===g(l),{width:b,height:x}=f.floating;"top"===y||"bottom"===y?(n=y,r=w===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(r=y,n="end"===w?"top":"bottom");let R=x-m.top-m.bottom,L=b-m.left-m.right,T=i(x-m[n],R),A=i(b-m[r],L),S=!e.middlewareData.shift,k=T,C=A;if(v?C=w||S?i(A,L):L:k=w||S?i(T,R):R,S&&!w){let t=o(m.left,0),e=o(m.right,0),n=o(m.top,0),r=o(m.bottom,0);v?C=b-2*(0!==t||0!==e?t+e:o(m.left,m.right)):k=x-2*(0!==n||0!==r?n+r:o(m.top,m.bottom))}await a({...e,availableWidth:C,availableHeight:k});let O=await u.getDimensions(c.floating);return b!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}},tf=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:r="referenceHidden",...i}=s(t,e);switch(r){case"referenceHidden":{let t=L(await E(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:T(t)}}}case"escaped":{let t=L(await E(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:T(t)}}}default:return{}}}}},tu=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:l,rects:f,platform:u,elements:c,middlewareData:a}=e,{element:d,padding:y=0}=s(t,e)||{};if(null==d)return{};let w=v(y),b={x:n,y:r},x=p(g(l)),R=m(x),E=await u.getDimensions(d),L="y"===x,T=L?"clientHeight":"clientWidth",A=f.reference[R]+f.reference[x]-b[x]-f.floating[R],S=b[x]-f.reference[x],k=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),C=k?k[T]:0;C&&await (null==u.isElement?void 0:u.isElement(k))||(C=c.floating[T]||f.floating[R]);let O=C/2-E[R]/2-1,D=i(w[L?"top":"left"],O),P=i(w[L?"bottom":"right"],O),H=C-E[R]-P,W=C/2-E[R]/2+(A/2-S/2),M=o(D,i(W,H)),F=!a.arrow&&null!=h(l)&&W!==M&&f.reference[R]/2-(Wn&&(y=n)}if(c){var x,R;let t="y"===m?"width":"height",e=["top","left"].includes(d(i)),n=o.reference[h]-o.floating[t]+(e&&(null==(x=l.offset)?void 0:x[h])||0)+(e?0:b.crossAxis),r=o.reference[h]+o.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[h])||0)-(e?b.crossAxis:0);wr&&(w=r)}return{[m]:y,[h]:w}}}},ta=(t,e,n)=>{let r=new Map,i={platform:te,...n},o={...i.platform,_c:r};return R(t,e,{...i,platform:o})}},2327:function(t,e,n){n.d(e,{Cp:function(){return w},RR:function(){return g},YF:function(){return s},cv:function(){return h},dp:function(){return y},dr:function(){return m},uY:function(){return p},x7:function(){return v}});var r=n(74340),i=n(2265),o=n(54887),l="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function f(t,e){let n,r,i;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(r=n;0!=r--;)if(!f(t[r],e[r]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!t.$$typeof)&&!f(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function u(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function c(t,e){let n=u(t);return Math.round(e*n)/n}function a(t){let e=i.useRef(t);return l(()=>{e.current=t}),e}function s(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:s=[],platform:d,elements:{reference:h,floating:p}={},transform:m=!0,whileElementsMounted:g,open:y}=t,[w,v]=i.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[b,x]=i.useState(s);f(b,s)||x(s);let[R,E]=i.useState(null),[L,T]=i.useState(null),A=i.useCallback(t=>{t!==O.current&&(O.current=t,E(t))},[]),S=i.useCallback(t=>{t!==D.current&&(D.current=t,T(t))},[]),k=h||R,C=p||L,O=i.useRef(null),D=i.useRef(null),P=i.useRef(w),H=null!=g,W=a(g),M=a(d),F=i.useCallback(()=>{if(!O.current||!D.current)return;let t={placement:e,strategy:n,middleware:b};M.current&&(t.platform=M.current),(0,r.oo)(O.current,D.current,t).then(t=>{let e={...t,isPositioned:!0};_.current&&!f(P.current,e)&&(P.current=e,o.flushSync(()=>{v(e)}))})},[b,e,n,M]);l(()=>{!1===y&&P.current.isPositioned&&(P.current.isPositioned=!1,v(t=>({...t,isPositioned:!1})))},[y]);let _=i.useRef(!1);l(()=>(_.current=!0,()=>{_.current=!1}),[]),l(()=>{if(k&&(O.current=k),C&&(D.current=C),k&&C){if(W.current)return W.current(k,C,F);F()}},[k,C,F,W,H]);let z=i.useMemo(()=>({reference:O,floating:D,setReference:A,setFloating:S}),[A,S]),V=i.useMemo(()=>({reference:k,floating:C}),[k,C]),I=i.useMemo(()=>{let t={position:n,left:0,top:0};if(!V.floating)return t;let e=c(V.floating,w.x),r=c(V.floating,w.y);return m?{...t,transform:"translate("+e+"px, "+r+"px)",...u(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,m,V.floating,w.x,w.y]);return i.useMemo(()=>({...w,update:F,refs:z,elements:V,floatingStyles:I}),[w,F,z,V,I])}let d=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:i}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:i}).fn(e):{}:n?(0,r.x7)({element:n,padding:i}).fn(e):{}}}),h=(t,e)=>({...(0,r.cv)(t),options:[t,e]}),p=(t,e)=>({...(0,r.uY)(t),options:[t,e]}),m=(t,e)=>({...(0,r.dr)(t),options:[t,e]}),g=(t,e)=>({...(0,r.RR)(t),options:[t,e]}),y=(t,e)=>({...(0,r.dp)(t),options:[t,e]}),w=(t,e)=>({...(0,r.Cp)(t),options:[t,e]}),v=(t,e)=>({...d(t),options:[t,e]})},55378:function(t,e,n){n.d(e,{M:function(){return u}});var r,i=n(2265),o=n(29928),l=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),f=0;function u(t){let[e,n]=i.useState(l());return(0,o.b)(()=>{t||n(t=>t??String(f++))},[t]),t||(e?`radix-${e}`:"")}},58200:function(t,e,n){n.d(e,{W:function(){return i}});var r=n(2265);function i(t){let e=r.useRef(t);return r.useEffect(()=>{e.current=t}),r.useMemo(()=>(...t)=>e.current?.(...t),[])}},1215:function(t,e,n){n.d(e,{T:function(){return o}});var r=n(2265),i=n(58200);function o({prop:t,defaultProp:e,onChange:n=()=>{}}){let[o,l]=function({defaultProp:t,onChange:e}){let n=r.useState(t),[o]=n,l=r.useRef(o),f=(0,i.W)(e);return r.useEffect(()=>{l.current!==o&&(f(o),l.current=o)},[o,l,f]),n}({defaultProp:e,onChange:n}),f=void 0!==t,u=f?t:o,c=(0,i.W)(n);return[u,r.useCallback(e=>{if(f){let n="function"==typeof e?e(t):e;n!==t&&c(n)}else l(e)},[f,t,l,c])]}},98448:function(t,e,n){n.d(e,{e:function(){return o}});var r=n(2265),i=n(58200);function o(t,e=globalThis?.document){let n=(0,i.W)(t);r.useEffect(()=>{let t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t,{capture:!0}),()=>e.removeEventListener("keydown",t,{capture:!0})},[n,e])}},29928:function(t,e,n){n.d(e,{b:function(){return i}});var r=n(2265),i=globalThis?.document?r.useLayoutEffect:()=>{}},53420:function(t,e,n){n.d(e,{t:function(){return o}});var r=n(2265),i=n(29928);function o(t){let[e,n]=r.useState(void 0);return(0,i.b)(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let r,i;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,i=e.blockSize}else r=t.offsetWidth,i=t.offsetHeight;n({width:r,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}},27648:function(t,e,n){n.d(e,{default:function(){return i.a}});var r=n(72972),i=n.n(r)}}]);