1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,291967,698820,680970,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}],291967);var t=e.i(713842);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(...e){return t=>{let r=!1,i=e.map(e=>{let i=n(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof r?r():n(e[t],null)}}}}e.s(["composeRefs",0,r,"useComposedRefs",0,function(...e){return t.useCallback(r(...e),e)}],698820);var i=e.i(722613);e.s(["createContext",0,function(e,n){let r=t.createContext(n),o=e=>{let{children:n,...o}=e,l=t.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:l,children:n})};return o.displayName=e+"Provider",[o,function(i){let o=t.useContext(r);if(o)return o;if(void 0!==n)return n;throw Error(`\`${i}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,n=[]){let r=[],o=()=>{let n=r.map(e=>t.createContext(e));return function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(n,o){let l=t.createContext(o),a=r.length;r=[...r,o];let s=n=>{let{scope:r,children:o,...s}=n,u=r?.[e]?.[a]||l,c=t.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:o})};return s.displayName=n+"Provider",[s,function(r,i){let s=i?.[e]?.[a]||l,u=t.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}(o,...n)]}],680970)},207763,393688,913540,852674,e=>{"use strict";var t,n=e.i(713842),r=e.i(291967),i=e.i(291222),o=e.i(698820),l=e.i(722613);function a(e){var t;let r,i=(t=e,(r=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var l;let e,a,s=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.composeRefs)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=n.forwardRef((e,t)=>{let{children:r,...o}=e,a=n.Children.toArray(r),s=a.find(u);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(i,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,l.jsx)(i,{...o,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var s=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}e.s(["createSlot",0,a,"createSlottable",0,function(e){let t=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}],393688);var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=a(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i?r:t,{...o,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function f(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}function d(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["Primitive",0,c,"dispatchDiscreteCustomEvent",0,f],913540),e.s(["useCallbackRef",0,d],852674);
1var p="dismissableLayer.update",m=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=n.forwardRef((e,i)=>{let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:v,...w}=e,x=n.useContext(m),[b,E]=n.useState(null),R=b?.ownerDocument??globalThis?.document,[,C]=n.useState({}),S=(0,o.useComposedRefs)(i,e=>E(e)),A=Array.from(x.layers),[P]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),L=A.indexOf(P),O=b?A.indexOf(b):-1,T=x.layersWithOutsidePointerEventsDisabled.size>0,N=O>=L,D=function(e,t=globalThis?.document){let r=d(e),i=n.useRef(!1),o=n.useRef(()=>{});return n.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let n=function(){y("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);i.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));N&&!n&&(u?.(e),h?.(e),e.defaultPrevented||v?.())},R),M=function(e,t=globalThis?.document){let r=d(e),i=n.useRef(!1);return n.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(f?.(e),h?.(e),e.defaultPrevented||v?.())},R);return!function(e,t=globalThis?.document){let r=d(e);n.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{O===x.layers.size-1&&(s?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},R),n.useEffect(()=>{if(b)return a&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(t=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),g(),()=>{a&&1===x.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=t)}},[b,R,a,x]),n.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),g())},[b,x]),n.useEffect(()=>{let e=()=>C({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,l.jsx)(c.div,{...w,ref:S,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,D.onPointerDownCapture)})});function g(){let e=new CustomEvent(p);document.dispatchEvent(e)}function y(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?f(i,o):i.dispatchEvent(o)}h.displayName="DismissableLayer",n.forwardRef((e,t)=>{let r=n.useContext(m),i=n.useRef(null),a=(0,o.useComposedRefs)(t,i);return n.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,l.jsx)(c.div,{...e,ref:a})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,h],207763)},997214,395760,e=>{"use strict";var t=e.i(713842),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n],395760);var r=t[" useId ".trim().toString()]||(()=>void 0),i=0;e.s(["useId",0,function(e){let[o,l]=t.useState(r());return n(()=>{e||l(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}],997214)},471884,e=>{"use strict";var t=e.i(713842);let n=["top","right","bottom","left"],r=Math.min,i=Math.max,o=Math.round,l=Math.floor,a=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function c(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}let h=new Set(["top","bottom"]);function g(e){return h.has(f(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>u[e])}let v=["left","right"],w=["right","left"],x=["top","bottom"],b=["bottom","top"];function E(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function S(e,t,n){let r,{reference:i,floating:o}=e,l=g(t),a=p(g(t)),s=m(a),u=f(t),c="y"===l,h=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,v=i[s]/2-o[s]/2;switch(u){case"top":r={x:h,y:i.y-o.height};break;case"bottom":r={x:h,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(d(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}let A=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}
1=n,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=S(u,r,s),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:o,fn:h}=a[n],{x:g,y:y,data:v,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,f=null!=y?y:f,p={...p,[o]:{...p[o],...v}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=S(u,d,s)),n=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function P(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=c(t,e),h=R(m),g=a[p?"floating"===d?"reference":"floating":d],y=C(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:s})),v="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},b=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:s}):v);return{top:(y.top-b.top+h.top)/x.y,bottom:(b.bottom-y.bottom+h.bottom)/x.y,left:(y.left-b.left+h.left)/x.x,right:(b.right-y.right+h.right)/x.x}}function L(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function O(e){return n.some(t=>e[t]>=0)}let T=new Set(["left","top"]);async function N(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=f(n),a=d(n),s="y"===g(n),u=T.has(l)?-1:1,p=o&&s?-1:1,m=c(t,e),{mainAxis:h,crossAxis:y,alignmentAxis:v}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof v&&(y="end"===a?-1*v:v),s?{x:y*p,y:h*u}:{x:h*u,y:y*p}}function D(){return"u">typeof window}function M(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function W(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return!!D()&&(e instanceof Node||e instanceof j(e).Node)}function $(e){return!!D()&&(e instanceof Element||e instanceof j(e).Element)}function F(e){return!!D()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function H(e){return!(!D()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}let I=new Set(["inline","contents"]);function _(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!I.has(i)}let B=new Set(["table","td","th"]),z=[":popover-open",":modal"];function V(e){return z.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let U=["transform","translate","scale","rotate","perspective"],Y=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function q(e){let t=K(),n=$(e)?J(e):e;return U.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Y.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function K(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Z=new Set(["html","body","#document"]);function G(e){return Z.has(M(e))}function J(e){return j(e).getComputedStyle(e)}function Q(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||W(e);return H(t)?t.host:t}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=ee(t);return G(n)?t.ownerDocument?t.ownerDocument.body:t.body:F(n)&&_(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=j(i);if(o){let e=en(l);
1return t.concat(l,l.visualViewport||[],_(i)?i:[],e&&n?et(e):[])}return t.concat(i,et(i,[],n))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function er(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=F(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=o(n)!==l||o(r)!==a;return s&&(n=l,r=a),{width:n,height:r,$:s}}function ei(e){return $(e)?e:e.contextElement}function eo(e){let t=ei(e);if(!F(t))return a(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=er(t),s=(l?o(n.width):n.width)/r,u=(l?o(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let el=a(0);function ea(e){let t=j(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function es(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=ei(e),s=a(1);t&&(r?$(r)&&(s=eo(r)):s=eo(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===j(l))&&i)?ea(l):a(0),c=(o.left+u.x)/s.x,f=(o.top+u.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(l){let e=j(l),t=r&&$(r)?j(r):r,n=e,i=en(n);for(;i&&r&&t!==n;){let e=eo(i),t=i.getBoundingClientRect(),r=J(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=o,f+=l,i=en(n=j(i))}}return C({width:d,height:p,x:c,y:f})}function eu(e,t){let n=Q(e).scrollLeft;return t?t.left+n:es(W(e)).left+n}function ec(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eu(e,n),y:n.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function ed(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=j(e),r=W(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=K();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let u=eu(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else u<=25&&(o+=u);return{width:o,height:l,x:a,y:s}}(e,n);else if("document"===t){let t,n,l,a,s,u,c;r=W(e),t=W(r),n=Q(r),l=r.ownerDocument.body,a=i(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),s=i(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),u=-n.scrollLeft+eu(r),c=-n.scrollTop,"rtl"===J(l).direction&&(u+=i(t.clientWidth,l.clientWidth)-a),o={width:a,height:s,x:u,y:c}}else if($(t)){let e,r,i,l,s,u;r=(e=es(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=F(t)?eo(t):a(1),s=t.clientWidth*l.x,u=t.clientHeight*l.y,o={width:s,height:u,x:i*l.x,y:r*l.y}}else{let n=ea(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(o)}function ep(e){return"static"===J(e).position}function em(e,t){if(!F(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){var n;let r=j(e);if(V(e))return r;if(!F(e)){let t=ee(e);for(;t&&!G(t);){if($(t)&&!ep(t))return t;t=ee(t)}return r}let i=em(e,t);for(;i&&(n=i,B.has(M(n)))&&ep(i);)i=em(i,t);return i&&G(i)&&ep(i)&&!q(i)?r:i||function(e){let t=ee(e);for(;F(t)&&!G(t);){if(q(t))return t;if(V(t))break;t=ee(t)}return null}(e)||r}let eg=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=F(t),i=W(t),o="fixed"===n,l=es(e,!0,o,t),s={scrollLeft:0,scrollTop:0},u=a(0);if(r||!r&&!o)if(("body"!==M(t)||_(i))&&(s=Q(t)),r){let e=es(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=eu(i));o&&!r&&i&&(u.x=eu(i));let c=!i||r||o?a(0):ec(i,s);return{x:l.left+s.scrollLeft-u.x-c.x,y:l.top+s.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}}},ey={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=W(r),s=!!t&&V(t.floating);if(r===l||s&&o)return n;let u={scrollLeft:0,scrollTop:0},c=a(1),f=a(0),d=F(r);if((d||!d&&!o)&&(("body"!==M(r)||_(l))&&(u=Q(r)),F(r))){let e=es(r);c=eo(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||o?a(0):ec(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-u.scrollTop*c.y+f.y+p.y}},getDocumentElement:W,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,a=[..."clippingAncestors"===n?V(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=et(e,[],!1).filter(e=>$(e)&&"body"!==M(e)),i=null,o="fixed"===J(e).position,l=o?ee(e):e;for(;$(l)&&!G(l);){let t=J(l),n=q(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&ef.has(i.position)||_(l)&&!n&&function e(t,n){let r=ee(t);return!(r===n||!$(r)||G(r))&&("fixed"===J(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=ee(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],s=a[0],u=a.reduce((e,n)=>{let o=ed(t,n,l);return e.top=i(o.top,e.top),e.right=r(o.right,e.right),e.bottom=r(o.bottom,e.bottom),e.left=i(o.left,e.left),e},ed(t,s,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:eh,getElementRects:eg,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=er(e);return{width:t,height:n}},getScale:eo,isElement:$,isRTL:function(e){return"rtl"===J(e).direction}};function ev(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:l,rects:a,platform:s,elements:u,middlewareData:f}=t,{element:h,padding:y=0}=c(e,t)||{};if(null==h)return{};let v=R(y),w={x:n,y:o},x=p(g(l)),b=m(x),E=await s.getDimensions(h),C="y"===x,S=C?"clientHeight":"clientWidth",A=a.reference[b]+a.reference[x]-w[x]-a.floating[b],P=w[x]-a.reference[x],L=await (null==s.getOffsetParent?void 0:s.getOffsetParent(h)),O=L?L[S]:0;
1O&&await (null==s.isElement?void 0:s.isElement(L))||(O=u.floating[S]||a.floating[b]);let T=O/2-E[b]/2-1,N=r(v[C?"top":"left"],T),D=r(v[C?"bottom":"right"],T),M=O-E[b]-D,j=O/2-E[b]/2+(A/2-P/2),W=i(N,r(j,M)),k=!f.arrow&&null!=d(l)&&j!==W&&a.reference[b]/2-(j<N?N:D)-E[b]/2<0,$=k?j<N?j-N:j-M:0;return{[x]:w[x]+$,data:{[x]:W,centerOffset:j-W-$,...k&&{alignmentOffset:$}},reset:k}}});var ex=e.i(291222),eb="u">typeof document?t.useLayoutEffect:function(){};function eE(e,t){let n,r,i;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(!eE(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eE(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eR(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eC(e,t){let n=eR(e);return Math.round(t*n)/n}function eS(e){let n=t.useRef(e);return eb(()=>{n.current=e}),n}var eA=e.i(913540),eP=e.i(722613),eL=t.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eP.jsx)(eA.Primitive.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eP.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eL.displayName="Arrow";var eO=e.i(698820),eT=e.i(680970),eN=e.i(852674),eD=e.i(395760),eM="Popper",[ej,eW]=(0,eT.createContextScope)(eM),[ek,e$]=ej(eM),eF=e=>{let{__scopePopper:n,children:r}=e,[i,o]=t.useState(null);return(0,eP.jsx)(ek,{scope:n,anchor:i,onAnchorChange:o,children:r})};eF.displayName=eM;var eH="PopperAnchor",eI=t.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:i,...o}=e,l=e$(eH,r),a=t.useRef(null),s=(0,eO.useComposedRefs)(n,a),u=t.useRef(null);return t.useEffect(()=>{let e=u.current;u.current=i?.current||a.current,e!==u.current&&l.onAnchorChange(u.current)}),i?null:(0,eP.jsx)(eA.Primitive.div,{...o,ref:s})});eI.displayName=eH;var e_="PopperContent",[eB,ez]=ej(e_),eV=t.forwardRef((e,n)=>{var o,a,s,u,h,R,C,S,D,M,j,k,$;let{__scopePopper:F,side:H="bottom",sideOffset:I=0,align:_="center",alignOffset:B=0,arrowPadding:z=0,avoidCollisions:V=!0,collisionBoundary:U=[],collisionPadding:Y=0,sticky:X="partial",hideWhenDetached:q=!1,updatePositionStrategy:K="optimized",onPlaced:Z,...G}=e,J=e$(e_,F),[Q,ee]=t.useState(null),en=(0,eO.useComposedRefs)(n,e=>ee(e)),[er,eo]=t.useState(null),el=function(e){let[n,r]=t.useState(void 0);return(0,eD.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),n}(er),ea=el?.width??0,eu=el?.height??0,ec="number"==typeof Y?Y:{top:0,right:0,bottom:0,left:0,...Y},ef=Array.isArray(U)?U:[U],ed=ef.length>0,ep={padding:ec,boundary:ef.filter(eq),altBoundary:ed},{refs:em,floatingStyles:eh,placement:eg,isPositioned:eL,middlewareData:eT}=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[f,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=t.useState(i);eE(p,i)||m(i);let[h,g]=t.useState(null),[y,v]=t.useState(null),w=t.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),x=t.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),b=l||h,E=a||y,R=t.useRef(null),C=t.useRef(null),S=t.useRef(f),P=null!=u,L=eS(u),O=eS(o),T=eS(c),N=t.useCallback(()=>{var e,t;let i,o,l;if(!R.current||!C.current)return;let a={placement:n,strategy:r,middleware:p};O.current&&(a.platform=O.current),(e=R.current,t=C.current,i=new Map,l={...(o={platform:ey,...a}
1).platform,_c:i},A(e,t,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==T.current};D.current&&!eE(S.current,t)&&(S.current=t,ex.flushSync(()=>{d(t)}))})},[p,n,r,O,T]);eb(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let D=t.useRef(!1);eb(()=>(D.current=!0,()=>{D.current=!1}),[]),eb(()=>{if(b&&(R.current=b),E&&(C.current=E),b&&E){if(L.current)return L.current(b,E,N);N()}},[b,E,N,L,P]);let M=t.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:x}),[w,x]),j=t.useMemo(()=>({reference:b,floating:E}),[b,E]),W=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!j.floating)return e;let t=eC(j.floating,f.x),n=eC(j.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...eR(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,j.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:N,refs:M,elements:j,floatingStyles:W}),[f,N,M,j,W])}({strategy:"fixed",placement:H+("center"!==_?"-"+_:""),whileElementsMounted:(...e)=>(function(e,t,n,o){let a;void 0===o&&(o={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=ei(e),m=s||u?[...p?et(p):[],...et(t)]:[];m.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,o=null,a=W(e);function s(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),s();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=d;if(c||t(),!h||!g)return;let y={rootMargin:-l(m)+"px "+-l(a.clientWidth-(p+h))+"px "+-l(a.clientHeight-(m+g))+"px "+-l(p)+"px",threshold:i(0,r(1,f))||1},v=!0;function w(t){let r=t[0].intersectionRatio;if(r!==f){if(!v)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ev(d,e.getBoundingClientRect())||u(),v=!1}try{o=new IntersectionObserver(w,{...y,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(w,y)}o.observe(e)}(!0),s}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let v=d?es(e):null;return d&&function t(){let r=es(e);v&&!ev(v,r)&&n(),v=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===K}),elements:{reference:J.anchor},middleware:[{...{name:"offset",options:a=o={mainAxis:I+eu,alignmentAxis:B},async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:l}=e,s=await N(e,a);return o===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:o}}}},options:[o,void 0]},V&&{...{name:"shift",options:h=u={mainAxis:!0,crossAxis:!1,limiter:"partial"===X?{...(s=void 0,{options:s={},fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=c(s,e),d={x:t,y:n},m=g(r),h=p(m),y=d[h],v=d[m],w=c(l,e),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+x.mainAxis,n=i.reference[h]+i.reference[e]-x.mainAxis;y<t?y=t:y>n&&(y=n)}if(u){var b,E;let e="y"===h?"width":"height",t=T.has(f(r)),n=i.reference[m]-i.floating[e]+(t&&(null==(b=o.offset)?void 0:b[m])||0)+(t?0:x.crossAxis),l=i.reference[m]+i.reference[e]+(t?0:(null==(E=o.offset)?void 0:E[m])||0)-(t?x.crossAxis:0);v<n?v=n:v>l&&(v=l)}return{[h]:y,[m]:v}}}),options:[void 0,void 0]}:void 0,...ep},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=c(h,e),d={x:t,y:n},m=await P(e,u),y=g(f(o)),v=p(y),w=d[v],x=d[y];if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+m[e],o=w-m[t];w=i(n,r(w,o))}if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+m[e],o=x-m[t];x=i(n,r(x,o))}let b=s.fn({...e,[v]:w,[y]:x});return{...b,data:{x:b.x-t,y:b.y-n,enabled:{[v]:l,[y]:a}}}}},options:[u,void 0]},V&&{...{name:"flip",options:C=R={...ep},async fn(e){var t,n,r,i,o,l,a,s;let u,h,R,{placement:S,middlewareData:A,rects:L,initialPlacement:O,platform:T,elements:N}=e,{mainAxis:D=!0,crossAxis:M=!0,fallbackPlacements:j,fallbackStrategy:W="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:$=!0,...F}=c(C,e);if(null!=(t=A.arrow)&&t.alignmentOffset)return{};let H=f(S),I=g(O),_=f(O)===O,B=await (null==T.isRTL?void 0:T.isRTL(N.floating)),z=j||(_||!$?[E(O)]:(u=E(O),[y(O),u,y(u)])),V="none"!==k;!j&&V&&z.push(...(h=d(O),R=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:v;return t?v:w;case"left":case"right":return t?x:b;default:return[]}}(f(O),"start"===k,B),h&&(R=R.map(e=>e+"-"+h),$&&(R=R.concat(R.map(y)))),R));let U=[O,...z],Y=await P(e,F),X=[],q=(null==(n=A.flip)?void 0:n.overflows)||[];if(D&&X.push(Y[H]),M){let e,t,n,r,i=(l=S,a=L,void 0===(s=B)&&(s=!1),e=d(l),n=m(t=p(g(l))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=E(r)),[r,E(r)]);X.push(Y[i[0]],Y[i[1]])}if(q=[...q,{placement:S,overflows:X}],!X.every(e=>e<=0)){let e=((null==(r=A.flip)?void 0:r.index)||0)+1,t=U[e];if(t&&("alignment"!==M||I===g(t)||q.every(e=>g(e.placement)!==I||e.overflows[0]>0)))return{data:{index:e,overflows:q},reset:{placement:t}};let n=null==(i=q.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(W){case"bestFit":{let e=null==(o=q.filter(e=>{if(V){let t=g(e.placement);return t===I||"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=O}if(S!==n)return{reset:{placement:n}}}return{}}},options:[R,void 0]},{...{name:"size",options:D=S={...ep,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let o,l,{placement:a,rects:s,platform:u,elements:p}=e,{apply:m=()=>{},...h}=c(D,e),y=await P(e,h),v=f(a),w=d(a),x="y"===g(a),{width:b,height:E}=s.floating;"top"===v||"bottom"===v?(o=v,l=w===(await (null==u.isRTL?void 0:u.isRTL(p.floating))?"start":"end")?"left":"right"):(l=v,o="end"===w?"top":"bottom");let R=E-y.top-y.bottom,C=b-y.left-y.right,S=r(E-y[o],R),A=r(b-y[l],C),L=!e.middlewareData.shift,O=S,T=A;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(T=C),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(O=R),L&&!w){let e=i(y.left,0),t=i(y.right,0),n=i(y.top,0),r=i(y.bottom,0);x?T=b-2*(0!==e||0!==t?e+t:i(y.left,y.right)):O=E-2*(0!==n||0!==r?n+r:i(y.top,y.bottom))}await m({...e,availableWidth:T,availableHeight:O});let N=await u.getDimensions(p.floating);return b!==N.width||E!==N.height?{reset:{rects:!0}}:{}}},options:[S,void 0]},er&&{...{name:"arrow",options:j=M={element:er,padding:z},fn(e){let{element:t,padding:n}="function"==typeof j?j(e):j;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ew({element:t.current,padding:n}).fn(e):{}:t?ew({element:t,padding:n}).fn(e):{}}},options:[M,void 0]},eK({arrowWidth:ea,arrowHeight:eu}),q&&{...{name:"hide",options:$=k={strategy:"referenceHidden",...ep},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=c($,e);switch(n){case"referenceHidden":{let n=L(await P(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:O(n)}}}case"escaped":{let n=L(await P(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:O(n)}}}default:return{}}}},options:[k,void 0]}]}),[eM,ej]=eZ(eg),eW=(0,eN.useCallbackRef)(Z);(0,eD.useLayoutEffect)(()=>{eL&&eW?.()},[eL,eW]);let ek=eT.arrow?.x,eF=eT.arrow?.y,eH=eT.arrow?.centerOffset!==0,[eI,ez]=t.useState();return(0,eD.useLayoutEffect)(()=>{Q&&ez(window.getComputedStyle(Q).zIndex)},[Q]),(0,eP.jsx)("div",{ref:em.setFloating,"data-radix-popper-content-wrapper":"",style:{...eh,transform:eL?eh.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eI,"--radix-popper-transform-origin":[eT.transformOrigin?.x,eT.transformOrigin?.y].join(" "),...eT.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eP.jsx)(eB,{scope:F,placedSide:eM,onArrowChange:eo,arrowX:ek,arrowY:eF,shouldHideArrow:eH,children:(0,eP.jsx)(eA.Primitive.div,{"data-side":eM,"data-align":ej,...G,ref:en,style:{...G.style,animation:eL?void 0:"none"}})})})});eV.displayName=e_;var eU="PopperArrow",eY={top:"bottom",right:"left",bottom:"top",left:"right"},eX=t.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=ez(eU,n),o=eY[i.placedSide];return(0,eP.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eP.jsx)(eL,{...r,ref:t,style:{...r.style,display:"block"}})})});function eq(e){return null!==e}eX.displayName=eU;var eK=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[s,u]=eZ(n),c={start:"0%",center:"50%",end:"100%"}[u],f=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",m="";return"bottom"===s?(p=o?c:`${f}px`,m=`${-a}px`):"top"===s?(p=o?c:`${f}px`,m=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,m=o?c:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,m=o?c:`${d}px`),{data:{x:p,y:m}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",0,eI,"Arrow",0,eX,"Content",0,eV,"Root",0,eF,"createPopperScope",0,eW],471884)},509045,458867,e=>{"use strict";var t=e.i(713842),n=e.i(291222),r=e.i(913540),i=e.i(395760),o=e.i(722613),l=t.forwardRef((e,l)=>{let{container:a,...s}=e,[u,c]=t.useState(!1);(0,i.useLayoutEffect)(()=>c(!0),[]);let f=a||u&&globalThis?.document?.body;return f?n.default.createPortal((0,o.jsx)(r.Primitive.div,{...s,ref:l}),f):null});l.displayName="Portal",e.s(["Portal",0,l],509045);var a=e.i(698820),s=e=>{var n;let r,o,{present:l,children:s}=e,c=function(e){var n,r;let[o,l]=t.useState(),a=t.useRef(null),s=t.useRef(e),c=t.useRef("none"),[f,d]=(n=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>
1r[e][t]??e,n));return t.useEffect(()=>{let e=u(a.current);c.current="mounted"===f?e:"none"},[f]),(0,i.useLayoutEffect)(()=>{let t=a.current,n=s.current;if(n!==e){let r=c.current,i=u(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),(0,i.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=n=>{let r=u(a.current).includes(CSS.escape(n.animationName));if(n.target===o&&r&&(d("ANIMATION_END"),!s.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(c.current=u(a.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{a.current=e?getComputedStyle(e):null,l(e)},[])}}(l),f="function"==typeof s?s({present:c.isPresent}):t.Children.only(s),d=(0,a.useComposedRefs)(c.ref,(n=f,(o=(r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?n.ref:(o=(r=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof s||c.isPresent?t.cloneElement(f,{ref:d}):null};function u(e){return e?.animationName||"none"}s.displayName="Presence",e.s(["Presence",0,s],458867)},939977,e=>{"use strict";var t=e.i(713842),n=e.i(395760);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var r=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:n,onChange:i=()=>{},caller:o}){let[l,a,s]=function({defaultProp:e,onChange:n}){let[i,o]=t.useState(e),l=t.useRef(i),a=t.useRef(n);return r(()=>{a.current=n},[n]),t.useEffect(()=>{l.current!==i&&(a.current?.(i),l.current=i)},[i,l]),[i,o,a]}({defaultProp:n,onChange:i}),u=void 0!==e,c=u?e:l;{let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} 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.`)}n.current=u},[u,o])}return[c,t.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[u,e,a,s])]}],939977)}]);
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.