(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,92704,19751,e=>{let t;var n=e.i(71645),r=e.i(44508),l=e.i(35696);function o(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}e.s(["f",0,function(e,t,i=!1){let[u,a]=(0,n.useState)(()=>o(t));return(0,l.f)(()=>{if(!t||!e)return;let n=(0,r.f)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),a(e=>{let n=o(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),i?{width:`${u.width}px`,height:`${u.height}px`}:u}],92704);let i=Math.min,u=Math.max,a=Math.round,f=Math.floor,c=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],x=["right","left"],b=["top","bottom"],R=["bottom","top"];function C(e){let t=p(e);return s[t]+e.slice(t.length)}function E(e){let{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function T(e,t,n){let r,{reference:l,floating:o}=e,i=y(t),u=g(y(t)),a=h(u),f=p(t),c=l.x+l.width/2-o.width/2,s=l.y+l.height/2-o.height/2,d=l[a]/2-o[a]/2;switch(f){case"top":r={x:c,y:l.y-o.height};break;case"bottom":r={x:c,y:l.y+l.height};break;case"right":r={x:l.x+l.width,y:s};break;case"left":r={x:l.x-o.width,y:s};break;default:r={x:l.x,y:l.y}}let v=m(t);return v&&(r[u]+=d*("end"===v?1:-1)*(n&&"y"===i?-1:1)),r}async function S(e,t){var n,r,l,o,i;void 0===t&&(t={});let{x:u,y:a,platform:f,rects:c,elements:s,strategy:p}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:h="floating",altBoundary:y=!1,padding:v=0}=d(t,e),w="number"!=typeof v?{top:null!=(r=v.top)?r:0,right:null!=(l=v.right)?l:0,bottom:null!=(o=v.bottom)?o:0,left:null!=(i=v.left)?i:0}:{top:v,right:v,bottom:v,left:v},x=s[y?"floating"===h?"reference":"floating":h],b=E(await f.getClippingRect({element:null==(n=await (null==f.isElement?void 0:f.isElement(x)))||n?x:x.contextElement||await (null==f.getDocumentElement?void 0:f.getDocumentElement(s.floating)),boundary:m,rootBoundary:g,strategy:p})),R="floating"===h?{x:u,y:a,width:c.floating.width,height:c.floating.height}:c.reference,C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(s.floating)),T=await (null==f.isElement?void 0:f.isElement(C))&&await (null==f.getScale?void 0:f.getScale(C))||{x:1,y:1},S=E(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:R,offsetParent:C,strategy:p}):R);return{top:(b.top-S.top+w.top)/T.y,bottom:(S.bottom-b.bottom+w.bottom)/T.y,left:(b.left-S.left+w.left)/T.x,right:(S.right-b.right+w.right)/T.x}}let M=async(e,t,n)=>{let{placement:r="bottom",strategy:l="absolute",middleware:o=[],platform:i}=n,u=i.detectOverflow?i:{...i,detectOverflow:S},a=await (null==i.isRTL?void 0:i.isRTL(t)),f=await i.getElementRects({reference:e,floating:t,strategy:l}),{x:c,y:s}=T(f,r,a),d=r,p=0,m={};for(let n=0;ntypeof window}function A(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return!!O()&&(e instanceof Node||e instanceof F(e).Node)}function D(e){return!!O()&&(e instanceof Element||e instanceof F(e).Element)}function j(e){return!!O()&&(e instanceof HTMLElement||e instanceof F(e).HTMLElement)}function N(e){return!(!O()||"u"!!e&&"none"!==e;function I(e){let t=D(e)?K(e):e;return z(t.transform)||z(t.translate)||z(t.scale)||z(t.rotate)||z(t.perspective)||!q()&&(z(t.backdropFilter)||z(t.filter))||W.test(t.willChange||"")||$.test(t.contain||"")}function q(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function _(e){return/^(html|body|#document)$/.test(A(e))}function K(e){return F(e).getComputedStyle(e)}function U(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if("html"===A(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||H(e);return N(t)?t.host:t}function Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let l=function e(t){let n=X(t);return _(n)?(t.ownerDocument||t).body:j(n)&&B(n)?n:e(n)}(e),o=l===(null==(r=e.ownerDocument)?void 0:r.body),i=F(l);if(!o)return t.concat(l,Y(l,[],n));{let e=G(i);return t.concat(i,i.visualViewport||[],B(l)?l:[],e&&n?Y(e):[])}}function G(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function J(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,l=j(e),o=l?e.offsetWidth:n,i=l?e.offsetHeight:r,u=a(n)!==o||a(r)!==i;return u&&(n=o,r=i),{width:n,height:r,$:u}}function Q(e){return D(e)?e:e.contextElement}function Z(e){let t=Q(e);if(!j(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:l,$:o}=J(t),i=(o?a(n.width):n.width)/r,u=(o?a(n.height):n.height)/l;return i&&Number.isFinite(i)||(i=1),u&&Number.isFinite(u)||(u=1),{x:i,y:u}}let ee=c(0);function et(e){let t=F(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ee}function en(e,t,n,r){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),i=Q(e),u=c(1);t&&(r?D(r)&&(u=Z(r)):u=Z(e));let a=(void 0===(l=n)&&(l=!1),r&&l&&r===F(i))?et(i):c(0),f=(o.left+a.x)/u.x,s=(o.top+a.y)/u.y,d=o.width/u.x,p=o.height/u.y;if(i&&r){let e=F(i),t=D(r)?F(r):r,n=e,l=G(n);for(;l&&t!==n;){let e=Z(l),t=l.getBoundingClientRect(),r=K(l),o=t.left+(l.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(l.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,s*=e.y,d*=e.x,p*=e.y,f+=o,s+=i,l=G(n=F(l))}}return E({width:d,height:p,x:f,y:s})}function er(e,t){let n=U(e).scrollLeft;return t?t.left+n:en(H(e)).left+n}function el(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-er(e,n),y:n.top+t.scrollTop}}function eo(e,t,n){var r;let l;if("viewport"===t||"layoutViewport"===t)l=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,l=F(e),o=H(e),i=l.visualViewport,u=o.clientWidth,a=o.clientHeight,f=0,c=0;if(i){let e=!q()||"fixed"===t;r?e||(f=-i.offsetLeft,c=-i.offsetTop):(u=i.width,a=i.height,e&&(f=i.offsetLeft,c=i.offsetTop))}if(0>=er(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(o.clientWidth-t.clientWidth-r),i="stable both-edges"===getComputedStyle(o).scrollbarGutter?l/2:l;i<=25&&(u-=i)}return{width:u,height:a,x:f,y:c}}(e,n,t);else if("document"===t){let t,n,o,i,a,f;t=U(r=H(e)),n=r.ownerDocument.body,o=u(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=u(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+er(r),f=-t.scrollTop,"rtl"===K(n).direction&&(a+=u(r.clientWidth,n.clientWidth)-o),l={width:o,height:i,x:a,y:f}}else if(D(t)){let e,r,o,i,u,a;r=(e=en(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,i=Z(t),u=t.clientWidth*i.x,a=t.clientHeight*i.y,l={width:u,height:a,x:o*i.x,y:r*i.y}}else{let n=et(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return E(l)}function ei(e){return"static"===K(e).position}function eu(e,t){if(!j(e)||"fixed"===K(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function ea(e,t){var n;let r=F(e);if(V(e))return r;if(!j(e)){let t=X(e);for(;t&&!_(t);){if(D(t)&&!ei(t))return t;t=X(t)}return r}let l=eu(e,t);for(;l&&(n=l,/^(table|td|th)$/.test(A(n)))&&ei(l);)l=eu(l,t);return l&&_(l)&&ei(l)&&!I(l)?r:l||function(e){let t=X(e);for(;j(t)&&!_(t);){if(I(t))return t;if(V(t))break;t=X(t)}return null}(e)||r}let ef=async function(e){let t=this.getOffsetParent||ea,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=j(t),l=H(t),o="fixed"===n,i=en(e,!0,o,t),u={scrollLeft:0,scrollTop:0},a=c(0);if((r||!o)&&(("body"!==A(t)||B(l))&&(u=U(t)),r)){let e=en(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&l&&(a.x=er(l));let f=!l||r||o?c(0):el(l,u);return{x:i.left+u.scrollLeft-a.x-f.x,y:i.top+u.scrollTop-a.y-f.y,width:i.width,height:i.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:l}=e,o="fixed"===l,i=H(r),u=!!t&&V(t.floating);if(r===i||u&&o)return n;let a={scrollLeft:0,scrollTop:0},f=c(1),s=c(0),d=j(r);if((d||!o)&&(("body"!==A(r)||B(i))&&(a=U(r)),d)){let e=en(r);f=Z(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let p=!i||d||o?c(0):el(i,a);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+s.x+p.x,y:n.y*f.y-a.scrollTop*f.y+s.y+p.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,o=[..."clippingAncestors"===n?V(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>D(e)&&"body"!==A(e)),l=null,o="fixed"===K(e).position,i=o?X(e):e;for(;D(i)&&!_(i);){let e=K(i),t=I(i),n=l?l.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?l=e:r=r.filter(e=>e!==i),i=X(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=eo(t,o[0],l),f=a.top,c=a.right,s=a.bottom,d=a.left;for(let e=1;e{o&&e.addEventListener("scroll",n),a&&e.addEventListener("resize",n)});let g=p&&s?function(e,t,n){let r,l=null,o=H(e);function a(){var e;clearTimeout(r),null==(e=l)||e.disconnect(),l=null}function c(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),a();let d=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=d;if(n||t(),!g||!h)return;let y={rootMargin:-f(m)+"px "+-f(o.clientWidth-(p+g))+"px "+-f(o.clientHeight-(m+h))+"px "+-f(p)+"px",threshold:u(0,i(1,s))||1},v=!0;function w(t){let n=t[0].intersectionRatio;if(!es(d,e.getBoundingClientRect()))return c();if(n!==s){if(!v)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}v=!1}try{l=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch(e){l=new IntersectionObserver(w,y)}l.observe(e)}let s=F(e),d=()=>c(n);return s.addEventListener("resize",d),c(!0),()=>{s.removeEventListener("resize",d),a()}}(p,n,a):null,h=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&t&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),t&&y.observe(t));let v=d?en(e):null;return d&&function t(){let r=en(e);v&&!es(v,r)&&n(),v=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(l)}}var ep=e.i(74080),em="u">typeof document?n.useLayoutEffect:function(){};function eg(e,t){let n,r,l;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(!eg(e[r],t[r]))return!1;return!0}if((n=(l=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,l[r]))return!1;for(r=n;0!=r--;){let n=l[r];if(("_owner"!==n||!e.$$typeof)&&!eg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eh(e){return"u"{t.current=e}),t}let ew=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:l,y:o,placement:i,middlewareData:u}=e,a=await P(e,n);return i===(null==(t=u.offset)?void 0:t.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:l+a.x,y:o+a.y,data:{...a,placement:i}}}});return{name:r.name,fn:r.fn,options:[e,t]}};var ex="u"e());function eC(e){let t=n.useRef(()=>{});return eR(()=>{t.current=e}),n.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;rtypeof document?n.useLayoutEffect:n.useEffect;let eT=!1,eS=0,eM=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+eS++,eL=eb.useId||function(){let[e,t]=n.useState(()=>eT?eM():void 0);return eE(()=>{null==e&&t(eM())},[]),n.useEffect(()=>{eT=!0},[]),e},eP=n.createContext(null),eO=n.createContext(null),eA="active",eF="selected";function eH(e,t,n){let r=new Map,l="item"===n,o=e;if(l&&e){let{[eA]:t,[eF]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(l&&[eA,eF].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var i;null==(i=r.get(n))||i.push(o),e[n]=function(){for(var e,t=arguments.length,l=Array(t),o=0;oe(...l)).find(e=>void 0!==e)}}}else e[n]=o}),e),{})}}function ek(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var eD=e.i(46725),ej=e.i(14189),eN=e.i(13581);let eB=(0,n.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});eB.displayName="FloatingContext";let eV=(0,n.createContext)(null);function eW(e,t,r){let o=(0,eD.f)(),i=(0,ej.f)((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let n=e$(e,t);return[n,r=>{let l=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),l=n[1].slice(t+1).trim();return l?[r,...e(l)]:[r]}return[]}(e);{let i=l.map(e=>window.getComputedStyle(t).getPropertyValue(e));o.requestAnimationFrame(function u(){o.nextFrame(u);let a=!1;for(let[e,n]of l.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(i[e]!==r){i[e]=r,a=!0;break}}if(!a)return;let f=e$(e,t);n!==f&&(r(f),n=f)})}return o.dispose}]}return[r,null]}),u=(0,n.useMemo)(()=>i(e,t)[0],[e,t]),[a=u,f]=(0,n.useState)();return(0,l.f)(()=>{let[n,r]=i(e,t);if(f(n),r)return r(f)},[e,t]),a}function e$(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}eV.displayName="PlacementContext",e.s(["j",0,function({children:e,enabled:t=!0}){var r,o,f,c,s,E,T,L,P,O,A,F,H;let k,j,N,B,V,W,$,z,I,q,_,K,U,[X,Y]=(0,n.useState)(null),[G,J]=(0,n.useState)(0),Q=(0,n.useRef)(null),[Z,ee]=(0,n.useState)(null);L=Z,(0,l.f)(()=>{if(!L)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(L).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(L.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(L,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[L]);let et=t&&null!==X&&null!==Z,{to:en="bottom",gap:er=0,offset:el=0,padding:eo=0,inner:ei}=(P=X,O=Z,k=eW(null!=(A=null==P?void 0:P.gap)?A:"var(--anchor-gap, 0)",O),j=eW(null!=(F=null==P?void 0:P.offset)?F:"var(--anchor-offset, 0)",O),N=eW(null!=(H=null==P?void 0:P.padding)?H:"var(--anchor-padding, 0)",O),{...P,gap:k,offset:j,padding:N}),[eu,ea="center"]=en.split(" ");(0,l.f)(()=>{et&&J(0)},[et]);let{refs:ef,floatingStyles:es,context:ex}=function(e){void 0===e&&(e={});let{nodeId:t}=e,r=function(e){var t;let{open:r=!1,onOpenChange:l,elements:o}=e,i=eL(),u=n.useRef({}),[a]=n.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}),f=null!=((null==(t=n.useContext(eP))?void 0:t.id)||null),[c,s]=n.useState(o.reference),d=eC((e,t,n)=>{u.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:f}),null==l||l(e,t,n)}),p=n.useMemo(()=>({setPositionReference:s}),[]),m=n.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return n.useMemo(()=>({dataRef:u,open:r,onOpenChange:d,elements:m,events:a,floatingId:i,refs:p}),[r,d,m,a,i,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||r,o=l.elements,[i,u]=n.useState(null),[a,f]=n.useState(null),c=(null==o?void 0:o.domReference)||i,s=n.useRef(null),d=n.useContext(eO);eE(()=>{c&&(s.current=c)},[c]);let p=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:l=[],platform:o,elements:{reference:i,floating:u}={},transform:a=!0,whileElementsMounted:f,open:c}=e,[s,d]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=n.useState(l);eg(p,l)||m(l);let[g,h]=n.useState(null),[y,v]=n.useState(null),w=n.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),x=n.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),b=i||g,R=u||y,C=n.useRef(null),E=n.useRef(null),T=n.useRef(s),S=null!=f,L=ev(f),P=ev(o),O=ev(c),A=n.useCallback(()=>{var e,n;let l,o,i;if(!C.current||!E.current)return;let u={placement:t,strategy:r,middleware:p};P.current&&(u.platform=P.current),(e=C.current,n=E.current,l=new Map,o=null!=u?u:{},i={...ec,...o.platform,_c:l},M(e,n,{...o,platform:i})).then(e=>{let t={...e,isPositioned:!1!==O.current};F.current&&!eg(T.current,t)&&(T.current=t,ep.flushSync(()=>{d(t)}))})},[p,t,r,P,O]);em(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let F=n.useRef(!1);em(()=>(F.current=!0,()=>{F.current=!1}),[]),em(()=>{if(b&&(C.current=b),R&&(E.current=R),b&&R){if(L.current)return L.current(b,R,A);A()}},[b,R,A,L,S]);let H=n.useMemo(()=>({reference:C,floating:E,setReference:w,setFloating:x}),[w,x]),k=n.useMemo(()=>({reference:b,floating:R}),[b,R]),D=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=ey(k.floating,s.x),n=ey(k.floating,s.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...eh(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,a,k.floating,s.x,s.y]);return n.useMemo(()=>({...s,update:A,refs:H,elements:k,floatingStyles:D}),[s,A,H,k,D])}({...e,elements:{...o,...a&&{reference:a}}}),m=n.useCallback(e=>{let t=D(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;f(t),p.refs.setReference(t)},[p.refs]),g=n.useCallback(e=>{(D(e)||null===e)&&(s.current=e,u(e)),(D(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!D(e))&&p.refs.setReference(e)},[p.refs]),h=n.useMemo(()=>({...p.refs,setReference:g,setPositionReference:m,domReference:s}),[p.refs,g,m]),y=n.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),v=n.useMemo(()=>({...p,...l,refs:h,elements:y,nodeId:t}),[p,h,y,t,l]);return eE(()=>{l.dataRef.current.floatingContext=v;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),n.useMemo(()=>({...p,context:v,refs:h,elements:y}),[p,h,y,v])}({open:et,placement:"selection"===eu?"center"===ea?"bottom":`bottom-${ea}`:"center"===ea?`${eu}`:`${eu}-${ea}`,strategy:"absolute",transform:!1,middleware:[ew({mainAxis:"selection"===eu?0:er,crossAxis:el}),{name:(B={name:"shift",options:o=r={padding:eo},async fn(e){let{x:t,y:n,placement:r,platform:l}=e,{mainAxis:a=!0,crossAxis:f=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=d(o,e),p={x:t,y:n},m=await l.detectOverflow(e,s),h=y(r),v=g(h),w=p[v],x=p[h],b=(e,t)=>u(t+m["y"===e?"top":"left"],i(t,t-m["y"===e?"bottom":"right"]));a&&(w=b(v,w)),f&&(x=b(h,x));let R=c.fn({...e,[v]:w,[h]:x});return{...R,data:{x:R.x-t,y:R.y-n,enabled:{[v]:a,[h]:f}}}}}).name,fn:B.fn,options:[r,void 0]},"selection"!==eu&&{name:(V={name:"flip",options:c=f={padding:eo},async fn(e){var t,n,r,l,o,i,u,a;let f,s,E,{placement:T,middlewareData:S,rects:M,initialPlacement:L,platform:P,elements:O}=e,{mainAxis:A=!0,crossAxis:F=!0,fallbackPlacements:H,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:j=!0,...N}=d(c,e);if(null!=(t=S.arrow)&&t.alignmentOffset)return{};let B=p(T),V=y(L),W=p(L)===L,$=await (null==P.isRTL?void 0:P.isRTL(O.floating)),z=H||(W||!j?[C(L)]:(f=C(L),[v(L),f,v(f)])),I="none"!==D;!H&&I&&z.push(...(s=m(L),E=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:w;return t?w:x;case"left":case"right":return t?b:R;default:return[]}}(p(L),"start"===D,$),s&&(E=E.map(e=>e+"-"+s),j&&(E=E.concat(E.map(v)))),E));let q=[L,...z],_=await P.detectOverflow(e,N),K=[],U=(null==(n=S.flip)?void 0:n.overflows)||[];if(A&&K.push(_[B]),F){let e,t,n,r,l=(i=T,u=M,void 0===(a=$)&&(a=!1),e=m(i),n=h(t=g(y(i))),r="x"===t?e===(a?"end":"start")?"right":"left":"start"===e?"bottom":"top",u.reference[n]>u.floating[n]&&(r=C(r)),[r,C(r)]);K.push(_[l[0]],_[l[1]])}if(U=[...U,{placement:T,overflows:K}],!K.every(e=>e<=0)){let e=((null==(r=S.flip)?void 0:r.index)||0)+1,t=q[e];if(t&&("alignment"!==F||V===y(t)||U.every(e=>y(e.placement)!==V||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let n=null==(l=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(k){case"bestFit":{let e=null==(o=U.filter(e=>{if(I){let t=y(e.placement);return t===V||"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:o[0];e&&(n=e);break}case"initialPlacement":n=L}if(T!==n)return{reset:{placement:n}}}return{}}}).name,fn:V.fn,options:[f,void 0]},"selection"===eu&&ei?{name:"inner",options:W={...ei,padding:eo,overflowRef:Q,offset:G,minItemsVisible:4,referenceOverflowThreshold:eo,onFallbackChange(e){var t,n;if(!e)return;let r=ex.elements.floating;if(!r)return;let l=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,o=Math.min(4,r.childElementCount),i=0,u=0;for(let e of null!=(n=null==(t=ex.elements.floating)?void 0:t.childNodes)?n:[])if(eN.F(e)){let t=e.offsetTop,n=t+e.clientHeight+l,a=r.scrollTop,f=a+r.clientHeight;if(t>=a&&n<=f)o--;else{u=Math.max(0,Math.min(n,f)-Math.max(t,a)),i=e.clientHeight;break}}o>=1&&J(e=>{let t=i*o-u+l;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:r,offset:l=0,index:o=0,minItemsVisible:f=4,referenceOverflowThreshold:c=0,scrollRef:s,...p}=d(W,e),{rects:m,elements:{floating:g}}=e,h=t.current[o],y=(null==s?void 0:s.current)||g,v=g.clientTop||y.clientTop,w=0!==g.clientTop,x=0!==y.clientTop,b=g===y;if(!h)return{};let R={...e,...await ew(-h.offsetTop-g.clientTop-m.reference.height/2-h.offsetHeight/2-l).fn(e)},C=await S(ek(R,y.scrollHeight+v+g.clientTop),p),E=await S(R,{...p,elementContext:"reference"}),T=u(0,C.top),M=R.y+T,L=(y.scrollHeight>y.clientHeight?e=>e:a)(u(0,y.scrollHeight+(w&&b||x?2*v:0)-T-u(0,C.bottom)));if(y.style.maxHeight=L+"px",y.scrollTop=T,r){let e=y.offsetHeight=-c||E.bottom>=-c;ep.flushSync(()=>r(e))}return n&&(n.current=await S(ek({...R,y:M},y.offsetHeight+v+g.clientTop),p)),{y:M}}}:null,{name:($={name:"size",options:E=s={padding:eo,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},async fn(e){let t,n,{placement:r,rects:l,platform:o,elements:a}=e,{apply:f=()=>{},...c}=d(E,e),s=await o.detectOverflow(e,c),g=p(r),h=m(r),v="y"===y(r),{width:w,height:x}=l.floating;"top"===g||"bottom"===g?(t=g,n=h===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=g,t="end"===h?"top":"bottom");let b=x-s.top-s.bottom,R=w-s.left-s.right,C=i(x-s[t],b),T=i(w-s[n],R),S=e.middlewareData.shift,M=!S,L=C,P=T;null!=S&&S.enabled.x&&(P=R),null!=S&&S.enabled.y&&(L=b),M&&!h&&(v?P=w-2*u(s.left,s.right):L=x-2*u(s.top,s.bottom)),await f({...e,availableWidth:P,availableHeight:L});let O=await o.getDimensions(a.floating);return w!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}).name,fn:$.fn,options:[s,void 0]}].filter(Boolean),whileElementsMounted:ed}),[eb=eu,eR=ea]=ex.placement.split("-");"selection"===eu&&(eb="selection");let eT=(0,n.useMemo)(()=>({anchor:[eb,eR].filter(Boolean).join(" ")}),[eb,eR]),{getReferenceProps:eS,getFloatingProps:eM}=(z=(T=[function(e,t){let{open:r,elements:l}=e,{enabled:o=!0,overflowRef:i,scrollRef:u,onChange:a}=t,f=eC(a),c=n.useRef(!1),s=n.useRef(null),d=n.useRef(null);n.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,l=i.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,u=n<0?-1:1,a=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!r&&n>0||!l&&n<0)e.preventDefault(),ep.flushSync(()=>{f(e=>e+Math[a](n,o*u))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==u?void 0:u.current)||l.floating;if(r&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{s.current=t.scrollTop,null!=i.current&&(d.current={...i.current})}),()=>{s.current=null,d.current=null,t.removeEventListener("wheel",e)}},[o,r,l.floating,i,u,f]);let p=n.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){let e=(null==u?void 0:u.current)||l.floating;if(i.current&&e&&c.current){if(null!==s.current){let t=e.scrollTop-s.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&ep.flushSync(()=>f(e=>e+t))}requestAnimationFrame(()=>{s.current=e.scrollTop})}}}),[l.floating,f,i,u]);return n.useMemo(()=>o?{floating:p}:{},[o,p])}(ex,{overflowRef:Q,onChange:J})]).map(e=>null==e?void 0:e.reference),I=T.map(e=>null==e?void 0:e.floating),q=T.map(e=>null==e?void 0:e.item),_=n.useCallback(e=>eH(e,T,"reference"),z),K=n.useCallback(e=>eH(e,T,"floating"),I),U=n.useCallback(e=>eH(e,T,"item"),q),n.useMemo(()=>({getReferenceProps:_,getFloatingProps:K,getItemProps:U}),[_,K,U])),eA=(0,ej.f)(e=>{ee(e),ef.setFloating(e)});return n.createElement(eV.Provider,{value:Y},n.createElement(eB.Provider,{value:{setFloating:eA,setReference:ef.setReference,styles:es,getReferenceProps:eS,getFloatingProps:eM,slot:eT}},e))},"X",0,function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,n.useContext)(eV),r=(0,n.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,l.f)(()=>{null==t||t(null!=r?r:null)},[t,r]);let o=(0,n.useContext)(eB);return(0,n.useMemo)(()=>[o.setFloating,e?o.styles:{}],[o.setFloating,e,o.styles])},"S",0,function(){let{getFloatingProps:e,slot:t}=(0,n.useContext)(eB);return(0,n.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])},"$",0,function(){return(0,n.useContext)(eB).setReference},"f",0,function(){return(0,n.useContext)(eB).getReferenceProps},"L",0,function(e){return(0,n.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}],19751)},88496,e=>{var t=e.i(71645),n=Object.defineProperty,r=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let u=t.forwardRef((e,n)=>{var{color:u="currentColor"}=e,a=((e,t)=>{var n={};for(var i in e)l.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&r)for(var i of r(e))0>t.indexOf(i)&&o.call(e,i)&&(n[i]=e[i]);return n})(e,["color"]);return t.createElement("svg",((e,t)=>{for(var n in t||(t={}))l.call(t,n)&&i(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&i(e,n,t[n]);return e})({xmlns:"http://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 15 15",fill:"none",ref:n},a),t.createElement("g",{clipPath:"url(#a)"},t.createElement("path",{fill:u,d:"M7.5.389C3.58.389.389 3.579.389 7.5s3.19 7.111 7.111 7.111 7.111-3.19 7.111-7.111S11.421.389 7.5.389m3.416 5.074-3.778 4.889a.67.67 0 0 1-.502.258h-.025a.67.67 0 0 1-.496-.22l-2-2.222a.668.668 0 0 1 .992-.893l1.465 1.629 3.29-4.257a.667.667 0 0 1 1.055.815z"})),t.createElement("defs",null,t.createElement("clipPath",{id:"a"},t.createElement("path",{fill:"#fff",d:"M0 0h15v15H0z"}))))});u.displayName="CheckCircleSolid",e.s(["f",0,u],88496)}])})();