"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3934],{94674:function(e,t,n){n.d(t,{Cp:function(){return g},RR:function(){return y},YF:function(){return c},cv:function(){return p},dp:function(){return h},dr:function(){return m},uY:function(){return v},x7:function(){return w}});var r=n(85621),o=n(2265),i=n(54887),u="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function l(e,t){let n,r,o;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(!l(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!l(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function a(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=a(e);return Math.round(t*n)/n}function d(e){let t=o.useRef(e);return u(()=>{t.current=e}),t}function c(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:c=[],platform:f,elements:{reference:p,floating:v}={},transform:m=!0,whileElementsMounted:y,open:h}=e,[g,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=o.useState(c);l(b,c)||x(c);let[E,N]=o.useState(null),[P,C]=o.useState(null),O=o.useCallback(e=>{e!==M.current&&(M.current=e,N(e))},[]),R=o.useCallback(e=>{e!==W.current&&(W.current=e,C(e))},[]),S=p||E,A=v||P,M=o.useRef(null),W=o.useRef(null),L=o.useRef(g),D=null!=y,T=d(y),j=d(f),k=o.useCallback(()=>{if(!M.current||!W.current)return;let e={placement:t,strategy:n,middleware:b};j.current&&(e.platform=j.current),(0,r.oo)(M.current,W.current,e).then(e=>{let t={...e,isPositioned:!0};_.current&&!l(L.current,t)&&(L.current=t,i.flushSync(()=>{w(t)}))})},[b,t,n,j]);u(()=>{!1===h&&L.current.isPositioned&&(L.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[h]);let _=o.useRef(!1);u(()=>(_.current=!0,()=>{_.current=!1}),[]),u(()=>{if(S&&(M.current=S),A&&(W.current=A),S&&A){if(T.current)return T.current(S,A,k);k()}},[S,A,k,T,D]);let z=o.useMemo(()=>({reference:M,floating:W,setReference:O,setFloating:R}),[O,R]),F=o.useMemo(()=>({reference:S,floating:A}),[S,A]),I=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!F.floating)return e;let t=s(F.floating,g.x),r=s(F.floating,g.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...a(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,F.floating,g.x,g.y]);return o.useMemo(()=>({...g,update:k,refs:z,elements:F,floatingStyles:I}),[g,k,z,F,I])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:o}).fn(t):{}:n?(0,r.x7)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),v=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.dr)(e),options:[e,t]}),y=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),h=(e,t)=>({...(0,r.dp)(e),options:[e,t]}),g=(e,t)=>({...(0,r.Cp)(e),options:[e,t]}),w=(e,t)=>({...f(e),options:[e,t]})},78149:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},98324:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(2265),o=n(57437);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let u=r.createContext(i),l=n.length;function a(t){let{scope:n,children:i,...a}=t,s=n?.[e][l]||u,d=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(s.Provider,{value:d,children:i})}return n=[...n,i],a.displayName=t+"Provider",[a,function(n,o){let a=o?.[e][l]||u,s=r.useContext(a);if(s)return s;if(void 0!==i)return i;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 o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},53938:function(e,t,n){n.d(t,{XB:function(){return f}});var r,o=n(2265),i=n(78149),u=n(25171),l=n(1584),a=n(75137),s=n(57437),d="dismissableLayer.update",c=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:y,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(c),[N,P]=o.useState(null),C=null!==(f=null==N?void 0:N.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,O]=o.useState({}),R=(0,l.e)(t,e=>P(e)),S=Array.from(E.layers),[A]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),M=S.indexOf(A),W=N?S.indexOf(N):-1,L=E.layersWithOutsidePointerEventsDisabled.size>0,D=W>=M,T=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,a.W)(e),i=o.useRef(!1),u=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",u.current),u.current=t,n.addEventListener("click",u.current,{once:!0})):t()}else n.removeEventListener("click",u.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",u.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!D||n||(null==h||h(e),null==w||w(e),e.defaultPrevented||null==b||b())},C),j=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,a.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},C);return!function(e,t=globalThis?.document){let n=(0,a.W)(e);o.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=>{W!==E.layers.size-1||(null==y||y(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},C),o.useEffect(()=>{if(N)return m&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(N)),E.layers.add(N),p(),()=>{m&&1===E.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[N,C,m,E]),o.useEffect(()=>()=>{N&&(E.layers.delete(N),E.layersWithOutsidePointerEventsDisabled.delete(N),p())},[N,E]),o.useEffect(()=>{let e=()=>O({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,s.jsx)(u.WV.div,{...x,ref:R,style:{pointerEvents:L?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,T.onPointerDownCapture)})});function p(){let e=new CustomEvent(d);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,u.jH)(i,l):i.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(c),r=o.useRef(null),i=(0,l.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(u.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},88564:function(e,t,n){n.d(t,{ee:function(){return L},Eh:function(){return T},VY:function(){return D},fC:function(){return W},D7:function(){return m}});var r=n(2265),o=n(94674),i=n(85621),u=n(25171),l=n(57437),a=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,l.jsx)(u.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});a.displayName="Arrow";var s=n(1584),d=n(98324),c=n(75137),f=n(1336),p="Popper",[v,m]=(0,d.b)(p),[y,h]=v(p),g=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,l.jsx)(y,{scope:t,anchor:o,onAnchorChange:i,children:n})};g.displayName=p;var w="PopperAnchor",b=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=h(w,n),d=r.useRef(null),c=(0,s.e)(t,d);return r.useEffect(()=>{a.onAnchorChange((null==o?void 0:o.current)||d.current)}),o?null:(0,l.jsx)(u.WV.div,{...i,ref:c})});b.displayName=w;var x="PopperContent",[E,N]=v(x),P=r.forwardRef((e,t)=>{var n,a,d,p,v,m,y,g;let{__scopePopper:w,side:b="bottom",sideOffset:N=0,align:P="center",alignOffset:C=0,arrowPadding:O=0,avoidCollisions:R=!0,collisionBoundary:W=[],collisionPadding:L=0,sticky:D="partial",hideWhenDetached:T=!1,updatePositionStrategy:j="optimized",onPlaced:k,..._}=e,z=h(x,w),[F,I]=r.useState(null),U=(0,s.e)(t,e=>I(e)),[B,V]=r.useState(null),Y=function(e){let[t,n]=r.useState(void 0);return(0,f.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(B),H=null!==(y=null==Y?void 0:Y.width)&&void 0!==y?y:0,$=null!==(g=null==Y?void 0:Y.height)&&void 0!==g?g:0,X="number"==typeof L?L:{top:0,right:0,bottom:0,left:0,...L},q=Array.isArray(W)?W:[W],G=q.length>0,J={padding:X,boundary:q.filter(S),altBoundary:G},{refs:K,floatingStyles:Q,placement:Z,isPositioned:ee,middlewareData:et}=(0,o.YF)({strategy:"fixed",placement:b+("center"!==P?"-"+P:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.Me)(...t,{animationFrame:"always"===j})},elements:{reference:z.anchor},middleware:[(0,o.cv)({mainAxis:N+$,alignmentAxis:C}),R&&(0,o.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===D?(0,o.dr)():void 0,...J}),R&&(0,o.RR)({...J}),(0,o.dp)({...J,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:u}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(u,"px"))}}),B&&(0,o.x7)({element:B,padding:O}),A({arrowWidth:H,arrowHeight:$}),T&&(0,o.Cp)({strategy:"referenceHidden",...J})]}),[en,er]=M(Z),eo=(0,c.W)(k);(0,f.b)(()=>{ee&&(null==eo||eo())},[ee,eo]);let ei=null===(n=et.arrow)||void 0===n?void 0:n.x,eu=null===(a=et.arrow)||void 0===a?void 0:a.y,el=(null===(d=et.arrow)||void 0===d?void 0:d.centerOffset)!==0,[ea,es]=r.useState();return(0,f.b)(()=>{F&&es(window.getComputedStyle(F).zIndex)},[F]),(0,l.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:ee?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ea,"--radix-popper-transform-origin":[null===(p=et.transformOrigin)||void 0===p?void 0:p.x,null===(v=et.transformOrigin)||void 0===v?void 0:v.y].join(" "),...(null===(m=et.hide)||void 0===m?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(E,{scope:w,placedSide:en,onArrowChange:V,arrowX:ei,arrowY:eu,shouldHideArrow:el,children:(0,l.jsx)(u.WV.div,{"data-side":en,"data-align":er,..._,ref:U,style:{..._.style,animation:ee?void 0:"none"}})})})});P.displayName=x;var C="PopperArrow",O={top:"bottom",right:"left",bottom:"top",left:"right"},R=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=N(C,n),i=O[o.placedSide];return(0,l.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(a,{...r,ref:t,style:{...r.style,display:"block"}})})});function S(e){return null!==e}R.displayName=C;var A=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,u;let{placement:l,rects:a,middlewareData:s}=t,d=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,c=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,v]=M(l),m={start:"0%",center:"50%",end:"100%"}[v],y=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+c/2,h=(null!==(u=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==u?u:0)+f/2,g="",w="";return"bottom"===p?(g=d?m:"".concat(y,"px"),w="".concat(-f,"px")):"top"===p?(g=d?m:"".concat(y,"px"),w="".concat(a.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),w=d?m:"".concat(h,"px")):"left"===p&&(g="".concat(a.floating.width+f,"px"),w=d?m:"".concat(h,"px")),{data:{x:g,y:w}}}});function M(e){let[t,n="center"]=e.split("-");return[t,n]}var W=g,L=b,D=P,T=R},56935:function(e,t,n){n.d(t,{h:function(){return a}});var r=n(2265),o=n(54887),i=n(25171),u=n(1336),l=n(57437),a=r.forwardRef((e,t)=>{var n,a;let{container:s,...d}=e,[c,f]=r.useState(!1);(0,u.b)(()=>f(!0),[]);let p=s||c&&(null===(a=globalThis)||void 0===a?void 0:null===(n=a.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,l.jsx)(i.WV.div,{...d,ref:t}),p):null});a.displayName="Portal"},31383:function(e,t,n){n.d(t,{z:function(){return u}});var r=n(2265),o=n(1584),i=n(1336),u=e=>{var t,n;let u,a;let{present:s,children:d}=e,c=function(e){var t,n;let[o,u]=r.useState(),a=r.useRef({}),s=r.useRef(e),d=r.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(a.current);d.current="mounted"===c?e:"none"},[c]),(0,i.b)(()=>{let t=a.current,n=s.current;if(n!==e){let r=d.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(a.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(d.current=l(a.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(a.current=getComputedStyle(e)),u(e)},[])}}(s),f="function"==typeof d?d({present:c.isPresent}):r.Children.only(d),p=(0,o.e)(c.ref,(u=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in u&&u.isReactWarning?f.ref:(u=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in u&&u.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof d||c.isPresent?r.cloneElement(f,{ref:p}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},25171:function(e,t,n){n.d(t,{WV:function(){return l},jH:function(){return a}});var r=n(2265),o=n(54887),i=n(71538),u=n(57437),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},75137:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(2265);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},91715:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(2265),o=n(75137);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,u]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,u=r.useRef(i),l=(0,o.W)(t);return r.useEffect(()=>{u.current!==i&&(l(i),u.current=i)},[i,u,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,a=l?e:i,s=(0,o.W)(n);return[a,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else u(t)},[l,e,u,s])]}},1336:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(2265),o=globalThis?.document?r.useLayoutEffect:()=>{}}}]);