1 |
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9407],{29340:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(57749),i=n(34001);function o(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return l.scopeName=e,[function(t,o){let l=r.createContext(o),a=n.length;function s(t){let{scope:n,children:o,...s}=t,u=n?.[e][a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:o})}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,i){let s=i?.[e][a]||l,u=r.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(l,...t)]}},50596:(e,t,n)=>{n.d(t,{qW:()=>d});var r,i=n(57749),o=n(16513),l=n(32644),a=n(68448),s=n(36664),u=n(34001),c="dismissableLayer.update",f=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=i.forwardRef((e,t)=>{var n,d;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,...b}=e,E=i.useContext(f),[R,A]=i.useState(null),L=null!==(d=null==R?void 0:R.ownerDocument)&&void 0!==d?d:null===(n=globalThis)||void 0===n?void 0:n.document,[,C]=i.useState({}),P=(0,a.s)(t,e=>A(e)),O=Array.from(E.layers),[T]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),S=O.indexOf(T),D=R?O.indexOf(R):-1,k=E.layersWithOutsidePointerEventsDisabled.size>0,N=D>=S,W=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.c)(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!N||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==x||x())},L),H=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==x||x())},L);return!function(e,t=globalThis?.document){let n=(0,s.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{D!==E.layers.size-1||(null==v||v(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},L),i.useEffect(()=>{if(R)return m&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=L.body.style.pointerEvents,L.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(R)),E.layers.add(R),p(),()=>{m&&1===E.layersWithOutsidePointerEventsDisabled.size&&(L.body.style.pointerEvents=r)}},[R,L,m,E]),i.useEffect(()=>()=>{R&&(E.layers.delete(R),E.layersWithOutsidePointerEventsDisabled.delete(R),p())},[R,E]),i.useEffect(()=>{let e=()=>C({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(l.sG.div,{...b,ref:P,style:{pointerEvents:k?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,H.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,W.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,l.hO)(o,a):o.dispatchEvent(a)}d.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(f),r=i.useRef(null),o=(0,a.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(l.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},63033:(e,t,n)=>{n.d(t,{Mz:()=>ej,i3:()=>eM,UC:()=>ez,bL:()=>eF,Bk:()=>ex});var r=n(57749);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,a=Math.round,s=Math.floor,u=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 m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(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 x(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){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function E(e,t,n){let r,{reference:i,floating:o}=e,l=g(t),a=m(g(t)),s=v(a),u=p(t),c="y"===l,f=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,y=i[s]/2-o[s]/2;switch(u){case"top":r={x:f,y:i.y-o.height};break;case"bottom":r={x:f,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[a]-=y*(n&&c?-1:1);break;case"end":r[a]+=y*(n&&c?-1:1)}return r}let R=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=E(u,r,s),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:v,y:g,data:y,reset:w}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});if(c=null!=v?v:c,f=null!=g?g:f,p={...p,[o]:{...p[o],...y}},w&&h<=50){h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=E(u,d,s)),n=-1;continue}}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function A(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=x(h),v=a[p?"floating"===f?"reference":"floating":f],g=b(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{...l.floating,x:r,y:i}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),E=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},R=b(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:w,strategy:s}):y);return{top:(g.top-R.top+m.top)/E.y,bottom:(R.bottom-g.bottom+m.bottom)/E.y,left:(g.left-R.left+m.left)/E.x,right:(R.right-g.right+m.right)/E.x}}let L=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:s,elements:u,middlewareData:c}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let y=x(p),w={x:n,y:r},b=m(g(i)),E=v(b),R=await s.getDimensions(f),A="y"===b,L=A?"clientHeight":"clientWidth",C=a.reference[E]+a.reference[b]-w[b]-a.floating[E],P=w[b]-a.reference[b],O=await (null==s.getOffsetParent?void 0:s.getOffsetParent(f)),T=O?O[L]:0;T&&await (null==s.isElement?void 0:s.isElement(O))||(T=u.floating[L]||a.floating[E]);let S=T/2-R[E]/2-1,D=o(y[A?"top":"left"],S),k=o(y[A?"bottom":"right"],S),N=T-R[E]-k,W=T/2-R[E]/2+(C/2-P/2),H=l(D,o(W,N)),F=!c.arrow&&null!=h(i)&&W!=H&&a.reference[E]/2-(W<D?D:k)-R[E]/2<0,j=F?W<D?W-D:W-N:0;return{[b]:w[b]+j,data:{[b]:H,centerOffset:W-H-j,...F&&{alignmentOffset:j}},reset:F}}});function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return i.some(t=>e[t]>=0)}async function O(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=p(n),a=h(n),s="y"===g(n),u=["left","top"].includes(l)?-1:1,c=o&&s?-1:1,f=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof y&&(v="end"===a?-1*y:y),s?{x:v*c,y:m*u}:{x:m*u,y:v*c}}function T(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function S(e){var t;return(null==e?void 0:null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return e instanceof Node||e instanceof S(e).Node}function N(e){return e instanceof Element||e instanceof S(e).Element}function W(e){return e instanceof HTMLElement||e instanceof S(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof S(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function j(e){let t=z(),n=B(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 z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function M(e){return["html","body","#document"].includes(T(e))}function B(e){return S(e).getComputedStyle(e)}function _(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function V(e){if("html"===T(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||D(e);return H(t)?t.host:t}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=V(t);return M(n)?t.ownerDocument?t.ownerDocument.body:t.body:W(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=S(i);return o?t.concat(l,l.visualViewport||[],F(i)?i:[],l.frameElement&&n?$(l.frameElement):[]):t.concat(i,$(i,[],n))}function G(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=W(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,s=a(n)!==o||a(r)!==l;return s&&(n=o,r=l),{width:n,height:r,$:s}}function X(e){return N(e)?e:e.contextElement}function I(e){let t=X(e);if(!W(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=G(t),l=(o?a(n.width):n.width)/r,s=(o?a(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let Y=u(0);function q(e){let t=S(e);return z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Y}function U(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=X(e),a=u(1);t&&(r?N(r)&&(a=I(r)):a=I(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===S(l))&&i)?q(l):u(0),c=(o.left+s.x)/a.x,f=(o.top+s.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=S(l),t=r&&N(r)?S(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=I(n),t=n.getBoundingClientRect(),r=B(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=i,f+=o,n=S(n).frameElement}}return b({width:d,height:p,x:c,y:f})}function Z(e){return U(D(e)).left+_(e).scrollLeft}function J(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=S(e),r=D(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=z();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}return{width:o,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=D(e),n=_(e),r=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Z(e),s=-n.scrollTop;return"rtl"===B(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(D(e));else if(N(t))r=function(e,t){let n=U(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=W(e)?I(e):u(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function K(e,t){return W(e)&&"fixed"!==B(e).position?t?t(e):e.offsetParent:null}function Q(e,t){let n=S(e);if(!W(e))return n;let r=K(e,t);for(;r&&["table","td","th"].includes(T(r))&&"static"===B(r).position;)r=K(r,t);return r&&("html"===T(r)||"body"===T(r)&&"static"===B(r).position&&!j(r))?n:r||function(e){let t=V(e);for(;W(t)&&!M(t);){if(j(t))return t;t=V(t)}return null}(e)||n}let ee=async function(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Q,o=this.getDimensions;return{reference:function(e,t,n){let r=W(t),i=D(t),o="fixed"===n,l=U(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=u(0);if(r||!r&&!o){if(("body"!==T(t)||F(i))&&(a=_(t)),r){let e=U(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Z(i))}return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=W(n),o=D(n);if(n===o)return t;let l={scrollLeft:0,scrollTop:0},a=u(1),s=u(0);if((i||!i&&"fixed"!==r)&&(("body"!==T(n)||F(o))&&(l=_(n)),W(n))){let e=U(n);a=I(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=$(e,[],!1).filter(e=>N(e)&&"body"!==T(e)),i=null,o="fixed"===B(e).position,l=o?V(e):e;for(;N(l)&&!M(l);){let t=B(l),n=j(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||F(l)&&!n&&function e(t,n){let r=V(t);return!(r===n||!N(r)||M(r))&&("fixed"===B(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=V(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=a[0],u=a.reduce((e,n)=>{let r=J(t,n,i);return e.top=l(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=l(r.left,e.left),e},J(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:Q,getElementRects:ee,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return G(e)},getScale:I,isElement:N,isRTL:function(e){return"rtl"===B(e).direction}},en=(e,t,n)=>{let r=new Map,i={platform:et,...n},o={...i.platform,_c:r};return R(e,t,{...i,platform:o})};var er=n(39864);let ei=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return L({element:n.current,padding:r}).fn(t)}else if(n)return L({element:n,padding:r}).fn(t);return{}}});var eo="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function el(e,t){let n,r,i;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(!el(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!el(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ea(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function es(e,t){let n=ea(e);return Math.round(t*n)/n}function eu(e){let t=r.useRef(e);return eo(()=>{t.current=e}),t}var ec=n(32644),ef=n(34001),ed=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ef.jsx)(ec.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ef.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ed.displayName="Arrow";var ep=n(68448),eh=n(29340),em=n(36664),ev=n(56872),eg=n(52080),ey="Popper",[ew,ex]=(0,eh.A)(ey),[eb,eE]=ew(ey),eR=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,ef.jsx)(eb,{scope:t,anchor:i,onAnchorChange:o,children:n})};eR.displayName=ey;var eA="PopperAnchor",eL=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,l=eE(eA,n),a=r.useRef(null),s=(0,ep.s)(t,a);return r.useEffect(()=>{l.onAnchorChange((null==i?void 0:i.current)||a.current)}),i?null:(0,ef.jsx)(ec.sG.div,{...o,ref:s})});eL.displayName=eA;var eC="PopperContent",[eP,eO]=ew(eC),eT=r.forwardRef((e,t)=>{var n,i,a,u,c,f,x,b;let{__scopePopper:E,side:R="bottom",sideOffset:L=0,align:T="center",alignOffset:S=0,arrowPadding:k=0,avoidCollisions:N=!0,collisionBoundary:W=[],collisionPadding:H=0,sticky:F="partial",hideWhenDetached:j=!1,updatePositionStrategy:z="optimized",onPlaced:M,...B}=e,_=eE(eC,E),[V,G]=r.useState(null),I=(0,ep.s)(t,e=>G(e)),[Y,q]=r.useState(null),Z=(0,eg.X)(Y),J=null!==(x=null==Z?void 0:Z.width)&&void 0!==x?x:0,K=null!==(b=null==Z?void 0:Z.height)&&void 0!==b?b:0,Q="number"==typeof H?H:{top:0,right:0,bottom:0,left:0,...H},ee=Array.isArray(W)?W:[W],et=ee.length>0,ed={padding:Q,boundary:ee.filter(eN),altBoundary:et},{refs:eh,floatingStyles:ey,placement:ew,isPositioned:ex,middlewareData:eb}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(i);el(p,i)||h(i);let[m,v]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback(e=>{e!=R.current&&(R.current=e,v(e))},[v]),x=r.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[y]),b=l||m,E=a||g,R=r.useRef(null),A=r.useRef(null),L=r.useRef(f),C=eu(u),P=eu(o),O=r.useCallback(()=>{if(!R.current||!A.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),en(R.current,A.current,e).then(e=>{let t={...e,isPositioned:!0};T.current&&!el(L.current,t)&&(L.current=t,er.flushSync(()=>{d(t)}))})},[p,t,n,P]);eo(()=>{!1===c&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let T=r.useRef(!1);eo(()=>(T.current=!0,()=>{T.current=!1}),[]),eo(()=>{if(b&&(R.current=b),E&&(A.current=E),b&&E){if(C.current)return C.current(b,E,O);O()}},[b,E,O,C]);let S=r.useMemo(()=>({reference:R,floating:A,setReference:w,setFloating:x}),[w,x]),D=r.useMemo(()=>({reference:b,floating:E}),[b,E]),k=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=es(D.floating,f.x),r=es(D.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ea(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,D.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:O,refs:S,elements:D,floatingStyles:k}),[f,O,S,D,k])}({strategy:"fixed",placement:R+("center"!==T?"-"+T:""),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 i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=X(e),h=a||u?[...p?$(p):[],...$(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&f?function(e,t){let n,r=null,i=D(e);function a(){clearTimeout(n),r&&r.disconnect(),r=null}return!function u(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),a();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(c||t(),!h||!m)return;let v=s(p),g=s(i.clientWidth-(d+h)),y={rootMargin:-v+"px "+-g+"px "+-s(i.clientHeight-(p+m))+"px "+-s(d)+"px",threshold:l(0,o(1,f))||1},w=!0;function x(e){let t=e[0].intersectionRatio;if(t!==f){if(!w)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},100)}w=!1}try{r=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,y)}r.observe(e)}(!0),a}(p,n):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),p&&!d&&g.observe(p),g.observe(t));let y=d?U(e):null;return d&&function t(){let r=U(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{h.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),m&&m(),g&&g.disconnect(),g=null,d&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===z})},elements:{reference:_.anchor},middleware:[function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,s=await O(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}}({mainAxis:L+K,alignmentAxis:S}),N&&function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),f={x:n,y:r},h=await A(t,c),v=g(p(i)),y=m(v),w=f[y],x=f[v];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+h[e],r=w-h[t];w=l(n,o(w,r))}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+h[e],r=x-h[t];x=l(n,o(x,r))}let b=u.fn({...t,[y]:w,[v]:x});return{...b,data:{x:b.x-n,y:b.y-r}}}}}({mainAxis:!0,crossAxis:!1,limiter:"partial"===F?function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=d(e,t),c={x:n,y:r},f=g(i),h=m(f),v=c[h],y=c[f],w=d(a,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+x.mainAxis,n=o.reference[h]+o.reference[e]-x.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var b,E;let e="y"===h?"width":"height",t=["top","left"].includes(p(i)),n=o.reference[f]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:x.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[f])||0)-(t?x.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:v,[f]:y}}}}():void 0,...ed}),N&&function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:f,elements:x}=t,{mainAxis:b=!0,crossAxis:E=!0,fallbackPlacements:R,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:P=!0,...O}=d(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let T=p(a),S=p(c)===c,D=await (null==f.isRTL?void 0:f.isRTL(x.floating)),k=R||(S||!P?[w(c)]:function(e){let t=w(e);return[y(e),t,y(t)]}(c));R||"none"===C||k.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(c,P,C,D));let N=[c,...k],W=await A(t,O),H=[],F=(null==(r=s.flip)?void 0:r.overflows)||[];if(b&&H.push(W[T]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=m(g(e)),o=v(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=w(l)),[l,w(l)]}(a,u,D);H.push(W[e[0]],W[e[1]])}if(F=[...F,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(L){case"bestFit":{let e=null==(l=F.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{}}}}({...ed}),function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:i,rects:a,platform:s,elements:u}=t,{apply:c=()=>{},...f}=d(e,t),m=await A(t,f),v=p(i),y=h(i),w="y"===g(i),{width:x,height:b}=a.floating;"top"===v||"bottom"===v?(n=v,r=y===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(r=v,n="end"===y?"top":"bottom");let E=b-m[n],R=x-m[r],L=!t.middlewareData.shift,C=E,P=R;if(w){let e=x-m.left-m.right;P=y||L?o(R,e):e}else{let e=b-m.top-m.bottom;C=y||L?o(E,e):e}if(L&&!y){let e=l(m.left,0),t=l(m.right,0),n=l(m.top,0),r=l(m.bottom,0);w?P=x-2*(0!==e||0!==t?e+t:l(m.left,m.right)):C=b-2*(0!==n||0!==r?n+r:l(m.top,m.bottom))}await c({...t,availableWidth:P,availableHeight:C});let O=await s.getDimensions(u.floating);return x!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}}({...ed,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),Y&&ei({element:Y,padding:k}),eW({arrowWidth:J,arrowHeight:K}),j&&function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=C(await A(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case"escaped":{let e=C(await A(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}}({strategy:"referenceHidden",...ed})]}),[eR,eA]=eH(ew),eL=(0,em.c)(M);(0,ev.N)(()=>{ex&&(null==eL||eL())},[ex,eL]);let eO=null===(n=eb.arrow)||void 0===n?void 0:n.x,eT=null===(i=eb.arrow)||void 0===i?void 0:i.y,eS=(null===(a=eb.arrow)||void 0===a?void 0:a.centerOffset)!==0,[eD,ek]=r.useState();return(0,ev.N)(()=>{V&&ek(window.getComputedStyle(V).zIndex)},[V]),(0,ef.jsx)("div",{ref:eh.setFloating,"data-radix-popper-content-wrapper":"",style:{...ey,transform:ex?ey.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eD,"--radix-popper-transform-origin":[null===(u=eb.transformOrigin)||void 0===u?void 0:u.x,null===(c=eb.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(f=eb.hide)||void 0===f?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ef.jsx)(eP,{scope:E,placedSide:eR,onArrowChange:q,arrowX:eO,arrowY:eT,shouldHideArrow:eS,children:(0,ef.jsx)(ec.sG.div,{"data-side":eR,"data-align":eA,...B,ref:I,style:{...B.style,animation:ex?void 0:"none"}})})})});eT.displayName=eC;var eS="PopperArrow",eD={top:"bottom",right:"left",bottom:"top",left:"right"},ek=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eO(eS,n),o=eD[i.placedSide];return(0,ef.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ef.jsx)(ed,{...r,ref:t,style:{...r.style,display:"block"}})})});function eN(e){return null!==e}ek.displayName=eS;var eW=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eH(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+f/2,g=(null!==(l=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==l?l:0)+d/2,y="",w="";return"bottom"===p?(y=c?m:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(y=c?m:"".concat(v,"px"),w="".concat(s.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(s.floating.width+d,"px"),w=c?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function eH(e){let[t,n="center"]=e.split("-");return[t,n]}var eF=eR,ej=eL,ez=eT,eM=ek},67172:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(57749),i=n(39864),o=n(32644),l=n(56872),a=n(34001),s=r.forwardRef((e,t)=>{var n,s;let{container:u,...c}=e,[f,d]=r.useState(!1);(0,l.N)(()=>d(!0),[]);let p=u||f&&(null===(s=globalThis)||void 0===s?void 0:null===(n=s.document)||void 0===n?void 0:n.body);return p?i.createPortal((0,a.jsx)(o.sG.div,{...c,ref:t}),p):null});s.displayName="Portal"},52080:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(57749),i=n(56872);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]);
|