1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7351],{17351:(e,t,n)=>{n.d(t,{UC:()=>nP,ZL:()=>nA,bL:()=>nR,l9:()=>nS});var r,o,i,l=n(12115),a=n.t(l,2);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var c=n(94446),s=n(95155);function f(e,t=[]){let n=[],r=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=l.createContext(r),i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[i]||o,c=l.useMemo(()=>a,Object.values(a));return(0,s.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[i]||o,c=l.useContext(u);if(c)return c;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var d=n(47650),p=Symbol("radix.slottable");function m(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i,a=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(u.ref=t?(0,c.t)(t,a):a),l.cloneElement(n,u)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),a=i.find(m);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,s.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function v(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}var g="dismissableLayer.update",y=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),w=l.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:m,...w}=e,E=l.useContext(y),[C,R]=l.useState(null),S=null!=(r=null==C?void 0:C.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,A]=l.useState({}),P=(0,c.s)(t,e=>R(e)),N=Array.from(E.layers),[T]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),L=N.indexOf(T),O=C?N.indexOf(C):-1,k=E.layersWithOutsidePointerEventsDisabled.size>0,M=O>=L,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=v(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){x("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));M&&!n&&(null==f||f(e),null==p||p(e),e.defaultPrevented||null==m||m())},S),j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=v(e),o=l.useRef(!1);return l.useEffect(()=>{let e=e=>
1{e.target&&!o.current&&x("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==d||d(e),null==p||p(e),e.defaultPrevented||null==m||m())},S);return!function(e,t=globalThis?.document){let n=v(e);l.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=>{O===E.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))},S),l.useEffect(()=>{if(C)return i&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(o=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),b(),()=>{i&&1===E.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=o)}},[C,S,i,E]),l.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,E]),l.useEffect(()=>{let e=()=>A({});return document.addEventListener(g,e),()=>document.removeEventListener(g,e)},[]),(0,s.jsx)(h.div,{...w,ref:P,style:{pointerEvents:k?M?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,j.onFocusCapture),onBlurCapture:u(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,D.onPointerDownCapture)})});function b(){let e=new CustomEvent(g);document.dispatchEvent(e)}function x(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&d.flushSync(()=>i.dispatchEvent(l));else i.dispatchEvent(l)}w.displayName="DismissableLayer",l.forwardRef((e,t)=>{let n=l.useContext(y),r=l.useRef(null),o=(0,c.s)(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(h.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var E=0;function C(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var R="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",A={bubbles:!1,cancelable:!0},P=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,f]=l.useState(null),d=v(o),p=v(i),m=l.useRef(null),g=(0,c.s)(t,e=>f(e)),y=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(y.paused||!u)return;let t=e.target;u.contains(t)?m.current=t:L(m.current,{select:!0})},t=function(e){if(y.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||L(m.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&L(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,y.paused]),l.useEffect(()=>{if(u){O.add(y);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(R,A);u.addEventListener(R,d),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(L(r,{select:t}),document.activeElement!==n)return}(N(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&L(u))}return()=>{u.removeEventListener(R,d),setTimeout(()=>{let t=new CustomEvent(S,A);u.addEventListener(S,p),u.dispatchEvent(t),t.defaultPrevented||L(null!=e?e:document.body,{select:!0}),u.removeEventListener(S,p),O.remove(y)},0)}}},[u,d,p,y]);let w=l.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=N(e);return[T(t,e),T(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&L(i,{select:!0})):(e.preventDefault(),n&&L(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,s.jsx)(h.div,{tabIndex:-1,...a,ref:g,onKeyDown:w})});function N(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function L(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}P.displayName="FocusScope";var O=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=k(e,t)).unshift(t)},remove(t){var n;null==(n=(e=k(e,t))[0])||n.resume()}}}();function k(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var M=globalThis?.document?l.useLayoutEffect:()=>{},D=a[" useId ".trim().toString()]||(()=>void 0),j=0;let F=["top","right","bottom","left"],W=Math.min,I=Math.max,_=Math.round,B=Math.floor,H=e=>({x:e,y:e}
1),z={left:"right",right:"left",bottom:"top",top:"bottom"},V={start:"end",end:"start"};function $(e,t){return"function"==typeof e?e(t):e}function U(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function Y(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}let Z=new Set(["top","bottom"]);function q(e){return Z.has(U(e))?"y":"x"}function G(e){return e.replace(/start|end/g,e=>V[e])}let J=["left","right"],Q=["right","left"],ee=["top","bottom"],et=["bottom","top"];function en(e){return e.replace(/left|right|bottom|top/g,e=>z[e])}function er(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function eo(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ei(e,t,n){let r,{reference:o,floating:i}=e,l=q(t),a=Y(q(t)),u=K(a),c=U(t),s="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(X(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let el=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=ei(c,r,u),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:v,y:g,data:y,reset:w}=await h({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=v?v:s,f=null!=g?g:f,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:f}=ei(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:p}};async function ea(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=$(t,e),m=er(p),h=a[d?"floating"===f?"reference":"floating":f],v=eo(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=eo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}function eu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ec(e){return F.some(t=>e[t]>=0)}let es=new Set(["left","top"]);async function ef(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=U(n),a=X(n),u="y"===q(n),c=es.has(l)?-1:1,s=i&&u?-1:1,f=$(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function ed(){return"undefined"!=typeof window}function ep(e){return ev(e)?(e.nodeName||"").toLowerCase():"#document"}function em(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eh(e){var t;return null==(t=(ev(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ev(e){return!!ed()&&(e instanceof Node||e instanceof em(e).Node)}function eg(e){return!!ed()&&(e instanceof Element||e instanceof em(e).Element)}function ey(e){return!!ed()&&(e instanceof HTMLElement||e instanceof em(e).HTMLElement)}function ew(e){return!!ed()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof em(e).ShadowRoot)}let eb=new Set(["inline","contents"]);function ex(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ek(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eb.has(o)}let eE=new Set(["table","td","th"]),eC=[":popover-open",":modal"];function eR(e){return eC.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eS=["transform","translate","scale","rotate","perspective"],eA=["transform","translate","scale","rotate","perspective","filter"],eP=["paint","layout","strict","content"];function eN(e){let t=eT(),n=eg(e)?ek(e):e;return eS.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||eA.some(e=>(n.willChange||"").includes(e))||eP.some(e=>(n.contain||"").includes(e))}function eT(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eL=new Set(["html","body","#document"]);function eO(e){return eL.has(ep(e))}function ek(e){return em(e).getComputedStyle(e)}function eM(e){return eg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eD(e){if("html"===ep(e))return e;let t=e.assignedSlot||e.parentNode||ew(e)&&e.host||eh(e);return ew(t)?t.host:t}function ej(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eD(t);return eO(n)?t.ownerDocument?t.ownerDocument.body:t.body:ey(n)&&ex(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=em(o);if(i){let e=eF(l);return t.concat(l,l.visualViewport||[],ex(o)?o:[],e&&n?ej(e):[])}return t.concat(o,ej(o,[],n))}function eF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eW(e){let t=ek(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ey(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=_(n)!==i||_(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eI(e){return eg(e)?e:e.contextElement}function e_(e){let t=eI(e);if(!ey(t))return H(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eW(t),l=(i?_(n.width):n.width)/r,a=(i?_(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eB=H(0);function eH(e){let t=em(e);return eT()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eB}function ez(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eI(e),a=H(1);t&&(r?eg(r)&&(a=e_(r)):a=e_(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===em(l))&&o)?eH(l):H(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=em(l),t=r&&eg(r)?em(r):r,n=e,o=eF(n);for(;o&&r&&t!==n;){let e=e_(o),t=o.getBoundingClientRect(),r=ek(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,f*=e.x,d*=e.y,c+=i,s+=l,o=eF(n=em(o))}}return eo({width:f,height:d,x:c,y:s})}function eV(e,t){let n=eM(e).scrollLeft;return t?t.left+n:ez(eh(e)).left+n}function e$(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eV(e,n),y:n.top+t.scrollTop}}let eU=new Set(["absolute","fixed"]);function eX(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=em(e),r=eh(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eT();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=eV(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=eh(e),n=eM(e),r=e.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=I(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eV(e),a=-n.scrollTop;return"rtl"===ek(r).direction&&(l+=I(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(eh(e));else if(eg(t))r=function(e,t){let n=ez(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ey(e)?e_(e):H(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eH(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eo(r)}
1function eY(e){return"static"===ek(e).position}function eK(e,t){if(!ey(e)||"fixed"===ek(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eh(e)===n&&(n=n.ownerDocument.body),n}function eZ(e,t){var n;let r=em(e);if(eR(e))return r;if(!ey(e)){let t=eD(e);for(;t&&!eO(t);){if(eg(t)&&!eY(t))return t;t=eD(t)}return r}let o=eK(e,t);for(;o&&(n=o,eE.has(ep(n)))&&eY(o);)o=eK(o,t);return o&&eO(o)&&eY(o)&&!eN(o)?r:o||function(e){let t=eD(e);for(;ey(t)&&!eO(t);){if(eN(t))return t;if(eR(t))break;t=eD(t)}return null}(e)||r}let eq=async function(e){let t=this.getOffsetParent||eZ,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ey(t),o=eh(t),i="fixed"===n,l=ez(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=H(0);if(r||!r&&!i)if(("body"!==ep(t)||ex(o))&&(a=eM(t)),r){let e=ez(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eV(o));i&&!r&&o&&(u.x=eV(o));let c=!o||r||i?H(0):e$(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eG={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=eh(r),a=!!t&&eR(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=H(1),s=H(0),f=ey(r);if((f||!f&&!i)&&(("body"!==ep(r)||ex(l))&&(u=eM(r)),ey(r))){let e=ez(r);c=e_(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let d=!l||f||i?H(0):e$(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+d.x,y:n.y*c.y-u.scrollTop*c.y+s.y+d.y}},getDocumentElement:eh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eR(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ej(e,[],!1).filter(e=>eg(e)&&"body"!==ep(e)),o=null,i="fixed"===ek(e).position,l=i?eD(e):e;for(;eg(l)&&!eO(l);){let t=ek(l),n=eN(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&eU.has(o.position)||ex(l)&&!n&&function e(t,n){let r=eD(t);return!(r===n||!eg(r)||eO(r))&&("fixed"===ek(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eD(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eX(t,n,o);return e.top=I(r.top,e.top),e.right=W(r.right,e.right),e.bottom=W(r.bottom,e.bottom),e.left=I(r.left,e.left),e},eX(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eZ,getElementRects:eq,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eW(e);return{width:t,height:n}},getScale:e_,isElement:eg,isRTL:function(e){return"rtl"===ek(e).direction}};function eJ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eQ=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=$(e,t)||{};if(null==c)return{};let f=er(s),d={x:n,y:r},p=Y(q(o)),m=K(p),h=await l.getDimensions(c),v="y"===p,g=v?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-d[p]-i.floating[m],w=d[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),x=b?b[g]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=a.floating[g]||i.floating[m]);let E=x/2-h[m]/2-1,C=W(f[v?"top":"left"],E),R=W(f[v?"bottom":"right"],E),S=x-h[m]-R,A=x/2-h[m]/2+(y/2-w/2),P=I(C,W(A,S)),N=!u.arrow&&null!=X(o)&&A!==P&&i.reference[m]/2-(A<C?C:R)-h[m]/2<0,T=N?A<C?A-C:A-S:0;return{[p]:d[p]+T,data:{[p]:P,centerOffset:A-P-T,...N&&{alignmentOffset:T}},reset:N}}});var e0="undefined"!=typeof document?l.useLayoutEffect:function(){};function e1(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(!e1(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)&&!e1(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e2(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e5(e,t){let n=e2(e);return Math.round(t*n)/n}function e3(e){let t=l.useRef(e);return e0(()=>{t.current=e}),t}var e4=l.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:o=5,...i}=e;return(0,s.jsx)(h.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e4.displayName="Arrow";var e7="Popper",[e9,e6]=f(e7),[e8,te]=e9(e7),tt=e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return(0,s.jsx)(e8,{scope:t,anchor:r,onAnchorChange:o,children:n})};tt.displayName=e7;var tn="PopperAnchor",tr=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=te(tn,n),a=l.useRef(null),u=(0,c.s)(t,a),f=l.useRef(null);return l.useEffect(()=>{let e=f.current;f.current=(null==r?void 0:r.current)||a.current,e!==f.current&&i.onAnchorChange(f.current)}),r?null:(0,s.jsx)(h.div,{...o,ref:u})});tr.displayName=tn;var to="PopperContent",[ti,tl]=e9(to),ta=l.forwardRef((e,t)=>{var n,r,o,i,a,u,f,p;let{__scopePopper:m,side:g="bottom",sideOffset:y=0,align:w="center",alignOffset:b=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:C=[],collisionPadding:R=0,sticky:S="partial",hideWhenDetached:A=!1,updatePositionStrategy:P="optimized",onPlaced:N,...T}=e,L=te(to,m),[O,k]=l.useState(null),D=(0,c.s)(t,e=>k(e)),[j,F]=l.useState(null),_=function(e){let[t,n]=l.useState(void 0);return M(()=>{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}(j),H=null!=(f=null==_?void 0:_.width)?f:0,z=null!=(p=null==_?void 0:_.height)?p:0,V="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},Z=Array.isArray(C)?C:[C],er=Z.length>0,eo={padding:V,boundary:Z.filter(tf),altBoundary:er},{refs:ei,floatingStyles:ed,placement:ep,isPositioned:em,middlewareData:ev}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);e1(m,r)||h(r);let[v,g]=l.useState(null),[y,w]=l.useState(null),b=l.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),x=l.useCallback(e=>{e!==S.current&&(S.current=e,w(e))},[]),E=i||v,C=a||y,R=l.useRef(null),S=l.useRef(null),A=l.useRef(f),P=null!=c,N=e3(c),T=e3(o),L=e3(s),O=l.useCallback(()=>{if(!R.current||!S.current)return;let e={placement:t,strategy:n,middleware:m};T.current&&(e.platform=T.current),((e,t,n)=>{let r=new Map,o={platform:eG,...n},i={...o.platform,_c:r};return el(e,t,{...o,platform:i})})(R.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};k.current&&!e1(A.current,t)&&(A.current=t,d.flushSync(()=>{p(t)}))})},[m,t,n,T,L]);e0(()=>{!1===s&&A.current.isPositioned&&(A.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[s]);let k=l.useRef(!1);e0(()=>(k.current=!0,()=>{k.current=!1}),[]),e0(()=>{if(E&&(R.current=E),C&&(S.current=C),E&&C){if(N.current)return N.current(E,C,O);O()}},[E,C,O,N,P]);let M=l.useMemo(()=>({reference:R,floating:S,setReference:b,setFloating:x}),[b,x]),D=l.useMemo(()=>({reference:E,floating:C}),[E,C]),j=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=e5(D.floating,f.x),r=e5(D.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...e2(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,D.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:O,refs:M,elements:D,floatingStyles:j}),[f,O,M,D,j])}({strategy:"fixed",placement:g+("center"!==w?"-"+w:""),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 o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eI(e),f=i||l?[...s?ej(s):[],...ej(t)]:[];
1f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=s&&u?function(e,t){let n,r=null,o=eh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let c=e.getBoundingClientRect(),{left:s,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;let m=B(f),h=B(o.clientWidth-(s+d)),v={rootMargin:-m+"px "+-h+"px "+-B(o.clientHeight-(f+p))+"px "+-B(s)+"px",threshold:I(0,W(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eJ(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,v)}r.observe(e)}(!0),i}(s,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!c&&m.observe(s),m.observe(t));let h=c?ez(e):null;return c&&function t(){let r=ez(e);h&&!eJ(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},elements:{reference:L.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await ef(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}))({mainAxis:y+z,alignmentAxis:b}),E&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=$(e,t),c={x:n,y:r},s=await ea(t,u),f=q(U(o)),d=Y(f),p=c[d],m=c[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+s[e],r=p-s[t];p=I(n,W(p,r))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=m+s[e],r=m-s[t];m=I(n,W(m,r))}let h=a.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:l}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=$(e,t),s={x:n,y:r},f=q(o),d=Y(f),p=s[d],m=s[f],h=$(a,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===d?"width":"height",t=es.has(U(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[f])||0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}}(e),options:[e,t]}))():void 0,...eo}),E&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=$(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let b=U(a),x=q(s),E=U(s)===s,C=await (null==f.isRTL?void 0:f.isRTL(d.floating)),R=h||(E||!y?[en(s)]:function(e){let t=en(e);return[G(e),t,G(t)]}(s)),S="none"!==g;!h&&S&&R.push(...function(e,t,n,r){let o=X(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?Q:J;return t?J:Q;case"left":case"right":return t?ee:et;default:return[]}}(U(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(G)))),i}(s,y,g,C));let A=[s,...R],P=await ea(t,w),N=[],T=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&N.push(P[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=X(e),o=Y(q(e)),i=K(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=en(l)),[l,en(l)]}(a,c,C);N.push(P[e[0]],P[e[1]])}if(T=[...T,{placement:a,overflows:N}],!N.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=A[e];if(t&&("alignment"!==m||x===q(t)||T.every(e=>q(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(i=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=T.filter(e=>{if(S){let t=q(e.placement);return t===x||"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:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...eo}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...f}=$(e,t),d=await ea(t,f),p=U(l),m=X(l),h="y"===q(l),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let y=g-d.top-d.bottom,w=v-d.left-d.right,b=W(g-d[o],y),x=W(v-d[i],w),E=!t.middlewareData.shift,C=b,R=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),E&&!m){let e=I(d.left,0),t=I(d.right,0),n=I(d.top,0),r=I(d.bottom,0);h?R=v-2*(0!==e||0!==t?e+t:I(d.left,d.right)):C=g-2*(0!==n||0!==r?n+r:I(d.top,d.bottom))}await s({...t,availableWidth:R,availableHeight:C});let S=await u.getDimensions(c.floating);return v!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...eo,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),j&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eQ({element:n.current,padding:r}).fn(t):{}:n?eQ({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:j,padding:x}),td({arrowWidth:H,arrowHeight:z}),A&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=$(e,t);switch(r){case"referenceHidden":{let e=eu(await ea(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ec(e)}}}case"escaped":{let e=eu(await ea(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ec(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...eo})]}),[eg,ey]=tp(ep),ew=v(N);M(()=>{em&&(null==ew||ew())},[em,ew]);let eb=null==(n=ev.arrow)?void 0:n.x,ex=null==(r=ev.arrow)?void 0:r.y,eE=(null==(o=ev.arrow)?void 0:o.centerOffset)!==0,[eC,eR]=l.useState();return M(()=>{O&&eR(window.getComputedStyle(O).zIndex)},[O]),(0,s.jsx)("div",{ref:ei.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:em?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eC,"--radix-popper-transform-origin":[null==(i=ev.transformOrigin)?void 0:i.x,null==(a=ev.transformOrigin)?void 0:a.y].join(" "),...(null==(u=ev.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(ti,{scope:m,placedSide:eg,onArrowChange:F,arrowX:eb,arrowY:ex,shouldHideArrow:eE,children:(0,s.jsx)(h.div,{"data-side":eg,"data-align":ey,...T,ref:D,style:{...T.style,animation:em?void 0:"none"}})})})});ta.displayName=to;var tu="PopperArrow",tc={top:"bottom",right:"left",bottom:"top",left:"right"},ts=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tl(tu,n),i=tc[o.placedSide];return(0,s.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,s.jsx)(e4,{...r,ref:t,style:{...r.style,display:"block"}})})});function tf(e){return null!==e}ts.displayName=tu;var td=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,m]=tp(a),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(i=null==(r=c.arrow)?void 0:r.x)?i:0)+f/2,g=(null!=(l=null==(o=c.arrow)?void 0:o.y)?l:0)+d/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(y=s?h:"".concat(v,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function tp(e){let[t,n="center"]=e.split("-");return[t,n]}var tm=l.forwardRef((e,t)=>
1{var n,r;let{container:o,...i}=e,[a,u]=l.useState(!1);M(()=>u(!0),[]);let c=o||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?d.createPortal((0,s.jsx)(h.div,{...i,ref:t}),c):null});tm.displayName="Portal";var th=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=l.useState(),i=l.useRef(null),a=l.useRef(e),u=l.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},l.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return l.useEffect(()=>{let e=tv(i.current);u.current="mounted"===c?e:"none"},[c]),M(()=>{let t=i.current,n=a.current;if(n!==e){let r=u.current,o=tv(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),a.current=e}},[e,s]),M(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=tv(i.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(s("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},l=e=>{e.target===r&&(u.current=tv(i.current))};return r.addEventListener("animationstart",l),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",l),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(e=>{i.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):l.Children.only(n),i=(0,c.s)(r.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?l.cloneElement(o,{ref:i}):null};function tv(e){return(null==e?void 0:e.animationName)||"none"}th.displayName="Presence";var tg=Symbol("radix.slottable");function ty(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tg}var tw=a[" useInsertionEffect ".trim().toString()]||M;Symbol("RADIX:SYNC_STATE");var tb=new WeakMap,tx=new WeakMap,tE={},tC=0,tR=function(e){return e&&(e.host||tR(e.parentNode))},tS=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tR(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tE[n]||(tE[n]=new WeakMap);var i=tE[n],l=[],a=new Set,u=new Set(o),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(tb.get(e)||0)+1,c=(i.get(e)||0)+1;tb.set(e,u),i.set(e,c),l.push(e),1===u&&o&&tx.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),a.clear(),tC++,function(){l.forEach(function(e){var t=tb.get(e)-1,o=i.get(e)-1;tb.set(e,t),i.set(e,o),t||(tx.has(e)||e.removeAttribute(r),tx.delete(e)),o||e.removeAttribute(n)}),--tC||(tb=new WeakMap,tb=new WeakMap,tx=new WeakMap,tE={})}},tA=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tS(r,o,n,"aria-hidden")):function(){return null}},tP=n(71450),tN="right-scroll-bar-position",tT="width-before-scroll-bar";function tL(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tO="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,tk=new WeakMap;function tM(e){return e}var tD=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=tM),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;
1t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,tP.Cl)({async:!0,ssr:!1},e),o}(),tj=function(){},tF=l.forwardRef(function(e,t){var n,r,o,i,a=l.useRef(null),u=l.useState({onScrollCapture:tj,onWheelCapture:tj,onTouchMoveCapture:tj}),c=u[0],s=u[1],f=e.forwardProps,d=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,C=e.gapMode,R=(0,tP.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return tL(t,e)})},(o=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,tO(function(){var e=tk.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tL(e,null)}),r.forEach(function(e){t.has(e)||tL(e,o)})}tk.set(i,n)},[n]),i),A=(0,tP.Cl)((0,tP.Cl)({},R),c);return l.createElement(l.Fragment,null,h&&l.createElement(g,{sideCar:tD,removeScrollBar:m,shards:v,noRelative:y,noIsolation:w,inert:b,setCallbacks:s,allowPinchZoom:!!x,lockRef:a,gapMode:C}),f?l.cloneElement(l.Children.only(d),(0,tP.Cl)((0,tP.Cl)({},A),{ref:S})):l.createElement(void 0===E?"div":E,(0,tP.Cl)({},A,{className:p,ref:S}),d))});tF.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tF.classNames={fullWidth:tT,zeroRight:tN};var tW=function(e){var t=e.sideCar,n=(0,tP.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,(0,tP.Cl)({},n))};tW.isSideCarExport=!0;var tI=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},t_=function(){var e=tI();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tB=function(){var e=t_();return function(t){return e(t.styles,t.dynamic),null}},tH={left:0,top:0,right:0,gap:0},tz=function(e){return parseInt(e||"",10)||0},tV=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tz(n),tz(r),tz(o)]},t$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tH;var t=tV(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tU=tB(),tX="data-scroll-locked",tY=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(tX,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tN," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tT," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(tN," .").concat(tN," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tT," .").concat(tT," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tX,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")}
1,tK=function(){var e=parseInt(document.body.getAttribute(tX)||"0",10);return isFinite(e)?e:0},tZ=function(){l.useEffect(function(){return document.body.setAttribute(tX,(tK()+1).toString()),function(){var e=tK()-1;e<=0?document.body.removeAttribute(tX):document.body.setAttribute(tX,e.toString())}},[])},tq=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tZ();var i=l.useMemo(function(){return t$(o)},[o]);return l.createElement(tU,{styles:tY(i,!t,o,n?"":"!important")})},tG=!1;if("undefined"!=typeof window)try{var tJ=Object.defineProperty({},"passive",{get:function(){return tG=!0,!0}});window.addEventListener("test",tJ,tJ),window.removeEventListener("test",tJ,tJ)}catch(e){tG=!1}var tQ=!!tG&&{passive:!1},t0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},t1=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t2(e,r)){var o=t5(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t2=function(e,t){return"v"===e?t0(t,"overflowY"):t0(t,"overflowX")},t5=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t3=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,f=a>0,d=0,p=0;do{if(!u)break;var m=t5(e,u),h=m[0],v=m[1]-m[2]-l*h;(h||v)&&t2(e,u)&&(d+=v,p+=h);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&1>Math.abs(d)||!o&&a>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},t4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t7=function(e){return[e.deltaX,e.deltaY]},t9=function(e){return e&&"current"in e?e.current:e},t6=0,t8=[];let ne=(r=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(t6++)[0],i=l.useState(tB)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,tP.fX)([e.lockRef.current],(e.shards||[]).map(t9),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=t4(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],s=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var m=t1(f,s);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=t1(f,s)),!m)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var h=r.current||o;return t3(h,t,e,"h"===h?u:c,!0)},[]),c=l.useCallback(function(e){if(t8.length&&t8[t8.length-1]===i){var n="deltaY"in e?t7(e):t4(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(t9).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=l.useCallback(function(e){n.current=t4(e),r.current=void 0},[]),d=l.useCallback(function(t){s(t.type,t7(t),t.target,u(t,e.lockRef.current))},[]),p=l.useCallback(function(t){s(t.type,t4(t),t.target,u(t,e.lockRef.current))},[]);l.useEffect(function(){return t8.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,tQ),document.addEventListener("touchmove",c,tQ),document.addEventListener("touchstart",f,tQ),function(){t8=t8.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,tQ),document.removeEventListener("touchmove",c,tQ),document.removeEventListener("touchstart",f,tQ)}},[]);var m=e.removeScrollBar,h=e.inert;return l.createElement(l.Fragment,null,h?l.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?l.createElement(tq,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tD.useMedium(r),tW);var nt=l.forwardRef(function(e,t){return l.createElement(tF,(0,tP.Cl)({},e,{ref:t,sideCar:ne}))});nt.classNames=tF.classNames;
1var nn="Popover",[nr,no]=f(nn,[e6]),ni=e6(),[nl,na]=nr(nn),nu=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,u=ni(t),c=l.useRef(null),[f,d]=l.useState(!1),[p,m]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,a]=function({defaultProp:e,onChange:t}){let[n,r]=l.useState(e),o=l.useRef(n),i=l.useRef(t);return tw(()=>{i.current=t},[t]),l.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=l.useRef(void 0!==e);l.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[c,l.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else i(t)},[u,e,i,a])]}({prop:r,defaultProp:null!=o&&o,onChange:i,caller:nn});return(0,s.jsx)(tt,{...u,children:(0,s.jsx)(nl,{scope:t,contentId:function(e){let[t,n]=l.useState(D());return M(()=>{n(e=>e??String(j++))},[void 0]),e||(t?`radix-${t}`:"")}(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:a,children:n})})};nu.displayName=nn;var nc="PopoverAnchor";l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=na(nc,n),i=ni(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:u}=o;return l.useEffect(()=>(a(),()=>u()),[a,u]),(0,s.jsx)(tr,{...i,...r,ref:t})}).displayName=nc;var ns="PopoverTrigger",nf=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=na(ns,n),i=ni(n),l=(0,c.s)(t,o.triggerRef),a=(0,s.jsx)(h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nC(o.open),...r,ref:l,onClick:u(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:(0,s.jsx)(tr,{asChild:!0,...i,children:a})});nf.displayName=ns;var nd="PopoverPortal",[np,nm]=nr(nd,{forceMount:void 0}),nh=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=na(nd,t);return(0,s.jsx)(np,{scope:t,forceMount:n,children:(0,s.jsx)(th,{present:n||i.open,children:(0,s.jsx)(tm,{asChild:!0,container:o,children:r})})})};nh.displayName=nd;var nv="PopoverContent",ng=l.forwardRef((e,t)=>{let n=nm(nv,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=na(nv,e.__scopePopover);return(0,s.jsx)(th,{present:r||i.open,children:i.modal?(0,s.jsx)(nw,{...o,ref:t}):(0,s.jsx)(nb,{...o,ref:t})})});ng.displayName=nv;var ny=function(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i,a=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(u.ref=t?(0,c.t)(t,a):a),l.cloneElement(n,u)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),a=i.find(ty);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,s.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}("PopoverContent.RemoveScroll"),nw=l.forwardRef((e,t)=>{let n=na(nv,e.__scopePopover),r=l.useRef(null),o=(0,c.s)(t,r),i=l.useRef(!1);return l.useEffect(()=>{let e=r.current;if(e)return tA(e)},[]),(0,s.jsx)(nt,{as:ny,allowPinchZoom:!0,children:(0,s.jsx)(nx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),i.current||null==(t=n.triggerRef.current)||t.focu
1s()}),onPointerDownOutside:u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nb=l.forwardRef((e,t)=>{let n=na(nv,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return(0,s.jsx)(nx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,l;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(r.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,l;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),nx=l.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,...p}=e,m=na(nv,n),h=ni(n);return l.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:C()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:C()),E++,()=>{1===E&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),E--}},[]),(0,s.jsx)(P,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,s.jsx)(w,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:(0,s.jsx)(ta,{"data-state":nC(m.open),role:"dialog",id:m.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),nE="PopoverClose";function nC(e){return e?"open":"closed"}l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=na(nE,n);return(0,s.jsx)(h.button,{type:"button",...r,ref:t,onClick:u(e.onClick,()=>o.onOpenChange(!1))})}).displayName=nE,l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=ni(n);return(0,s.jsx)(ts,{...o,...r,ref:t})}).displayName="PopoverArrow";var nR=nu,nS=nf,nA=nh,nP=ng}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.