"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4020],{80850:(e,t,n)=>{n.d(t,{ie:()=>m,we:()=>k});var l,r=n(12115),o=n(95155),u=n(75640);n(47650);var s=n(96932);let i={...l||(l=n.t(r,2))},f=i.useInsertionEffect||(e=>e());var c="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let a=!1,d=0,g=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+d++,h=i.useId||function(){let[e,t]=r.useState(()=>a?g():void 0);return c(()=>{null==e&&t(g())},[]),r.useEffect(()=>{a=!0},[]),e},m=r.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:l},middlewareData:{arrow:s,shift:i}},width:f=14,height:a=7,tipRadius:d=0,strokeWidth:g=0,staticOffset:m,stroke:v,d:p,style:{transform:x,...R}={},...C}=e,w=h(),[b,k]=r.useState(!1);if(c(()=>{l&&"rtl"===(0,u.L9)(l).direction&&k(!0)},[l]),!l)return null;let[y,E]=n.split("-"),M="top"===y||"bottom"===y,S=m;(M&&null!=i&&i.x||!M&&null!=i&&i.y)&&(S=null);let j=2*g,q=j/2,_=f/2*(-(d/8)+1),B=a/2*d/4,L=!!p,N=S&&"end"===E?"bottom":"top",O=S&&"end"===E?"right":"left";S&&b&&(O="end"===E?"left":"right");let z=(null==s?void 0:s.x)!=null?S||s.x:"",I=(null==s?void 0:s.y)!=null?S||s.y:"",P=p||"M0,0 H"+f+" L"+(f-_)+","+(a-B)+(" Q"+f/2+","+a+" ")+_+","+(a-B)+" Z",A={top:L?"rotate(180deg)":"",left:L?"rotate(90deg)":"rotate(-90deg)",bottom:L?"":"rotate(180deg)",right:L?"rotate(-90deg)":"rotate(90deg)"}[y];return(0,o.jsxs)("svg",{...C,"aria-hidden":!0,ref:t,width:L?f:f+j,height:f,viewBox:"0 0 "+f+" "+(a>f?a:f),style:{position:"absolute",pointerEvents:"none",[O]:z,[N]:I,[y]:M||L?"100%":"calc(100% - "+j/2+"px)",transform:[A,x].filter(e=>!!e).join(" "),...R},children:[j>0&&(0,o.jsx)("path",{clipPath:"url(#"+w+")",fill:"none",stroke:v,strokeWidth:j+(p?0:1),d:P}),(0,o.jsx)("path",{stroke:j&&!p?C.fill:"none",d:P}),(0,o.jsx)("clipPath",{id:w,children:(0,o.jsx)("rect",{x:-q,y:q*(L?-1:1),width:f+j,height:f})})]})}),v=r.createContext(null),p=r.createContext(null),x=()=>{var e;return(null==(e=r.useContext(v))?void 0:e.id)||null},R=()=>r.useContext(p),C=()=>{},w=e=>e&&(e.host||w(e.parentNode)),b=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function k(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:l}=e,o=h(),u=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)}}})()),i=null!=x(),[c,a]=r.useState(l.reference),d=function(e){let t=r.useRef(()=>{});return f(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return null==t.current?void 0:t.current(...n)},[])}((e,t,l)=>{u.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:l,nested:i}),null==n||n(e,t,l)}),g=r.useMemo(()=>({setPositionReference:a}),[]),m=r.useMemo(()=>({reference:c||l.reference||null,floating:l.floating||null,domReference:l.reference}),[c,l.reference,l.floating]);return r.useMemo(()=>({dataRef:u,open:t,onOpenChange:d,elements:m,events:s,floatingId:o,refs:g}),[t,d,m,s,o,g])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||n,o=l.elements,[i,a]=r.useState(null),[d,g]=r.useState(null),m=(null==o?void 0:o.domReference)||i,v=r.useRef(null),p=R();c(()=>{m&&(v.current=m)},[m]);let C=(0,s.we)({...e,elements:{...o,...d&&{reference:d}}}),w=r.useCallback(e=>{let t=(0,u.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;g(t),C.refs.setReference(t)},[C.refs]),b=r.useCallback(e=>{((0,u.vq)(e)||null===e)&&(v.current=e,a(e)),((0,u.vq)(C.refs.reference.current)||null===C.refs.reference.current||null!==e&&!(0,u.vq)(e))&&C.refs.setReference(e)},[C.refs]),k=r.useMemo(()=>({...C.refs,setReference:b,setPositionReference:w,domReference:v}),[C.refs,b,w]),y=r.useMemo(()=>({...C.elements,domReference:m}),[C.elements,m]),E=r.useMemo(()=>({...C,...l,refs:k,elements:y,nodeId:t}),[C,k,y,t,l]);return c(()=>{l.dataRef.current.floatingContext=E;let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=E)}),r.useMemo(()=>({...C,context:E,refs:k,elements:y}),[C,k,y,E])}}}]);