!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6448bbcf-b5a1-43c5-a7fa-6a6109c97638",e._sentryDebugIdIdentifier="sentry-dbid-6448bbcf-b5a1-43c5-a7fa-6a6109c97638")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2966],{80535:function(e,t,n){n.d(t,{Y$:function(){return g},YF:function(){return M},ll:function(){return j}});var l,r=n(66123),u=n(27458),o=n(35683),i=n(5827),s=n(58775),d=n(13454);let f={...l||(l=n.t(r,2))},c=!1,a=0,m=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+a++,p=f.useId||function(){let[e,t]=r.useState(()=>c?m():void 0);return(0,u.Xj)(()=>{null==e&&t(m())},[]),r.useEffect(()=>{c=!0},[]),e},g=r.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:l},middlewareData:{arrow:s,shift:d}},width:f=14,height:c=7,tipRadius:a=0,strokeWidth:m=0,staticOffset:g,stroke:v,d:h,style:{transform:x,...b}={},...R}=e,y=p(),[E,C]=r.useState(!1);if((0,u.Xj)(()=>{l&&"rtl"===(0,i.Dx)(l).direction&&C(!0)},[l]),!l)return null;let[w,j]=n.split("-"),k="top"===w||"bottom"===w,M=g;(k&&null!=d&&d.x||!k&&null!=d&&d.y)&&(M=null);let S=2*m,X=S/2,I=f/2*(-(a/8)+1),_=c/2*a/4,D=!!h,N=M&&"end"===j?"bottom":"top",F=M&&"end"===j?"right":"left";M&&E&&(F="end"===j?"left":"right");let K=(null==s?void 0:s.x)!=null?M||s.x:"",L=(null==s?void 0:s.y)!=null?M||s.y:"",B=h||"M0,0 H"+f+" L"+(f-I)+","+(c-_)+(" Q"+f/2+","+c+" ")+I+","+(c-_)+" Z",O={top:D?"rotate(180deg)":"",left:D?"rotate(90deg)":"rotate(-90deg)",bottom:D?"":"rotate(180deg)",right:D?"rotate(-90deg)":"rotate(90deg)"}[w];return(0,o.jsxs)("svg",{...R,"aria-hidden":!0,ref:t,width:D?f:f+S,height:f,viewBox:"0 0 "+f+" "+(c>f?c:f),style:{position:"absolute",pointerEvents:"none",[F]:K,[N]:L,[w]:k||D?"100%":"calc(100% - "+S/2+"px)",transform:[O,x].filter(e=>!!e).join(" "),...b},children:[S>0&&(0,o.jsx)("path",{clipPath:"url(#"+y+")",fill:"none",stroke:v,strokeWidth:S+(h?0:1),d:B}),(0,o.jsx)("path",{stroke:S&&!h?R.fill:"none",d:B}),(0,o.jsx)("clipPath",{id:y,children:(0,o.jsx)("rect",{x:-X,y:X*(D?-1:1),width:f+S,height:f})})]})}),v=r.createContext(null),h=r.createContext(null),x=()=>{var e;return(null==(e=r.useContext(v))?void 0:e.id)||null},b=()=>r.useContext(h);function R(e){return"data-floating-ui-"+e}let y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},E=r.forwardRef(function(e,t){let[n,l]=r.useState();(0,u.Xj)(()=>{(0,u.G6)()&&l("button")},[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[R("focus-guard")]:"",style:y};return(0,o.jsx)("span",{...e,...i})}),C=r.createContext(null),w=R("portal");function j(e){let{children:t,id:n,root:l,preserveTabOrder:d=!0}=e,f=function(e){void 0===e&&(e={});let{id:t,root:n}=e,l=p(),o=k(),[s,d]=r.useState(null),f=r.useRef(null);return(0,u.Xj)(()=>()=>{null==s||s.remove(),queueMicrotask(()=>{f.current=null})},[s]),(0,u.Xj)(()=>{if(!l||f.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=l,n.setAttribute(w,""),e.appendChild(n),f.current=n,d(n)},[t,l]),(0,u.Xj)(()=>{if(null===n||!l||f.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,i.kK)(e)&&(e=e.current),e=e||document.body;let r=null;t&&((r=document.createElement("div")).id=t,e.appendChild(r));let u=document.createElement("div");u.id=l,u.setAttribute(w,""),(e=r||e).appendChild(u),f.current=u,d(u)},[t,n,l,o]),s}({id:n,root:l}),[c,a]=r.useState(null),m=r.useRef(null),g=r.useRef(null),v=r.useRef(null),h=r.useRef(null),x=null==c?void 0:c.modal,b=null==c?void 0:c.open,R=!!c&&!c.modal&&c.open&&d&&!!(l||f);return r.useEffect(()=>{if(f&&d&&!x)return f.addEventListener("focusin",e,!0),f.addEventListener("focusout",e,!0),()=>{f.removeEventListener("focusin",e,!0),f.removeEventListener("focusout",e,!0)};function e(e){f&&(0,u.dE)(e)&&("focusin"===e.type?u.NX:u.N6)(f)}},[f,d,x]),r.useEffect(()=>{f&&(b||(0,u.NX)(f))},[b,f]),(0,o.jsxs)(C.Provider,{value:r.useMemo(()=>({preserveTabOrder:d,beforeOutsideRef:m,afterOutsideRef:g,beforeInsideRef:v,afterInsideRef:h,portalNode:f,setFocusManagerState:a}),[d,f]),children:[R&&f&&(0,o.jsx)(E,{"data-type":"outside",ref:m,onFocus:e=>{if((0,u.dE)(e,f)){var t;null==(t=v.current)||t.focus()}else{let e=c?c.domReference:null,t=(0,u.e8)(e);null==t||t.focus()}}}),R&&f&&(0,o.jsx)("span",{"aria-owns":f.id,style:y}),f&&s.createPortal(t,f),R&&f&&(0,o.jsx)(E,{"data-type":"outside",ref:g,onFocus:e=>{if((0,u.dE)(e,f)){var t;null==(t=h.current)||t.focus()}else{let t=c?c.domReference:null,n=(0,u.k0)(t);null==n||n.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let k=()=>r.useContext(C);function M(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:l}=e,o=p(),i=r.useRef({}),[s]=r.useState(()=>(function(){let e=new Map;return{emit(t,n){var l;null==(l=e.get(t))||l.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var l;null==(l=e.get(t))||l.delete(n)}}})()),d=null!=x(),[f,c]=r.useState(l.reference),a=(0,u.iW)((e,t,l)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:l,nested:d}),null==n||n(e,t,l)}),m=r.useMemo(()=>({setPositionReference:c}),[]),g=r.useMemo(()=>({reference:f||l.reference||null,floating:l.floating||null,domReference:l.reference}),[f,l.reference,l.floating]);return r.useMemo(()=>({dataRef:i,open:t,onOpenChange:a,elements:g,events:s,floatingId:o,refs:m}),[t,a,g,s,o,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||n,o=l.elements,[s,f]=r.useState(null),[c,a]=r.useState(null),m=(null==o?void 0:o.domReference)||s,g=r.useRef(null),v=b();(0,u.Xj)(()=>{m&&(g.current=m)},[m]);let h=(0,d.YF)({...e,elements:{...o,...c&&{reference:c}}}),R=r.useCallback(e=>{let t=(0,i.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),h.refs.setReference(t)},[h.refs]),y=r.useCallback(e=>{((0,i.kK)(e)||null===e)&&(g.current=e,f(e)),((0,i.kK)(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!(0,i.kK)(e))&&h.refs.setReference(e)},[h.refs]),E=r.useMemo(()=>({...h.refs,setReference:y,setPositionReference:R,domReference:g}),[h.refs,y,R]),C=r.useMemo(()=>({...h.elements,domReference:m}),[h.elements,m]),w=r.useMemo(()=>({...h,...l,refs:E,elements:C,nodeId:t}),[h,E,C,t,l]);return(0,u.Xj)(()=>{l.dataRef.current.floatingContext=w;let e=null==v?void 0:v.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),r.useMemo(()=>({...h,context:w,refs:E,elements:C}),[h,E,C,w])}}}]);