1import{c as Gn}from"./chunk-TIF53vAD.js";import{r as c,j as S,d as Wt,k as jt,l as $t}from"./chunk-DTTAq8le.js";import{c as Zn}from"./chunk-DgK-84Bn.js";/** 2 * @license lucide-react v0.468.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ns=Gn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function rs(e,t){const n=c.createContext(t),r=i=>{const{children:s,...a}=i,u=c.useMemo(()=>a,Object.values(a));return S.jsx(n.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(i){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Bt(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),u=n.length;n=[...n,s];const l=d=>{const{scope:h,children:m,...v}=d,p=h?.[e]?.[u]||a,g=c.useMemo(()=>v,Object.values(v));return S.jsx(p.Provider,{value:g,children:m})};l.displayName=i+"Provider";function f(d,h){const m=h?.[e]?.[u]||a,v=c.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,f]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const u=a?.[e]||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,qn(o,...t)]}function qn(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:u,scopeName:l})=>{const d=u(i)[`__scope${l}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function mt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ht(...e){return t=>{let n=!1;const r=e.map(o=>{const i=mt(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():mt(e[o],null)}}}}function ne(...e){return c.useCallback(Ht(...e),e)}function tt(e){const t=Qn(e),n=c.forwardRef((r,o)=>{const{children:i,...s}=r,a=c.Children.toArray(i),u=a.find(Jn);if(u){const l=u.props.children,f=a.map(d=>d===u?c.Children.count(l)>1?c.Children.only(null):c.isValidElement(l)?l.props.children:null:d);return S.jsx(t,{...s,ref:o,children:c.isValidElement(l)?c.cloneElement(l,void 0,f):null})}return S.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var os=tt("Slot");function Qn(e){const t=c.forwardRef((n,r)=>{const{children:o,...i}=n;if(c.isValidElement(o)){const s=tr(o),a=er(i,o.props);
vendor: 4,453 bytes, line 6
6return o.type!==c.Fragment&&(a.ref=r?Ht(r,s):s),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zt=Symbol("radix.slottable");function is(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=zt,t}function Jn(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zt}function er(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function tr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=nr.reduce((e,t)=>{const n=tt(`Primitive.${t}`),r=c.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function rr(e,t){e&&Wt.flushSync(()=>e.dispatchEvent(t))}function ue(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function or(e,t=globalThis?.document){const n=ue(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ir="DismissableLayer",Ge="dismissableLayer.update",sr="dismissableLayer.pointerDownOutside",ar="dismissableLayer.focusOutside",ht,Vt=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ut=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,l=c.useContext(Vt),[f,d]=c.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=c.useState({}),v=ne(t,C=>d(C)),p=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),w=f?p.indexOf(f):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,x=w>=y,E=ur(C=>{const R=C.target,T=[...l.branches].some(O=>O.contains(R));!x||T||(o?.(C),s?.(C),C.defaultPrevented||a?.())},h),P=fr(C=>{const R=C.target;[...l.branches].some(O=>O.contains(R))||(i?.(C),s?.(C),C.defaultPrevented||a?.())},h);return or(C=>{w===l.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},h),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ht=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),vt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ht)}},[f,h,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),vt())},[f,l]),c.useEffect(()=>{const C=()=>m({});return document.addEventListener(Ge,C),()=>document.removeEventListener(Ge,C)},[]),S.jsx(Z.div,{...u,ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Ut.displayName=ir;var cr="DismissableLayerBranch",lr=c.forwardRef((e,t)=>{const n=c.useContext(Vt),r=c.useRef(null),o=ne(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(Z.div,{...e,ref:o})});lr.displayName=cr;function ur(e,t=globalThis?.document){const n=ue(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){Xt(sr,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}
6function fr(e,t=globalThis?.document){const n=ue(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xt(ar,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vt(){const e=new CustomEvent(Ge);document.dispatchEvent(e)}function Xt(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?rr(o,i):o.dispatchEvent(i)}var $e=0;function dr(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gt()),document.body.insertAdjacentElement("beforeend",e[1]??gt()),$e++,()=>{$e===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$e--}},[])}function gt(){const 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 Be="focusScope.autoFocusOnMount",He="focusScope.autoFocusOnUnmount",yt={bubbles:!1,cancelable:!0},pr="FocusScope",Yt=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=c.useState(null),l=ue(o),f=ue(i),d=c.useRef(null),h=ne(t,p=>u(p)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let p=function(b){if(m.paused||!a)return;const x=b.target;a.contains(x)?d.current=x:q(d.current,{select:!0})},g=function(b){if(m.paused||!a)return;const x=b.relatedTarget;x!==null&&(a.contains(x)||q(d.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&q(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),w.disconnect()}}},[r,a,m.paused]),c.useEffect(()=>{if(a){xt.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(Be,yt);a.addEventListener(Be,l),a.dispatchEvent(y),y.defaultPrevented||(mr(wr(Kt(a)),{select:!0}),document.activeElement===p&&q(a))}return()=>{a.removeEventListener(Be,l),setTimeout(()=>{const y=new CustomEvent(He,yt);a.addEventListener(He,f),a.dispatchEvent(y),y.defaultPrevented||q(p??document.body,{select:!0}),a.removeEventListener(He,f),xt.remove(m)},0)}}},[a,l,f,m]);const v=c.useCallback(p=>{if(!n&&!r||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const w=p.currentTarget,[b,x]=hr(w);b&&x?!p.shiftKey&&y===x?(p.preventDefault(),n&&q(b,{select:!0})):p.shiftKey&&y===b&&(p.preventDefault(),n&&q(x,{select:!0})):y===w&&p.preventDefault()}},[n,r,m.paused]);return S.jsx(Z.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});Yt.displayName=pr;function mr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(q(r,{select:t}),document.activeElement!==n)return}function hr(e){const t=Kt(e),n=wt(t,e),r=wt(t.reverse(),e);return[n,r]}function Kt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wt(e,t){for(const n of e)if(!vr(n,{upTo:t}))return n}function vr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gr(e){return e instanceof HTMLInputElement&&"select"in e}function q(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gr(e)&&t&&e.select()}}var xt=yr();function yr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bt(e,t),e.unshift(t)},remove(t){e=bt(e,t),e[0]?.resume()}}}function bt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wr(e){return e.filter(t=>t.tagName!=="A")}var J=globalThis?.document?c.useLayoutEffect:()=>{},xr=jt[" useId ".trim().toString()]||(()=>{}),br=0;function Er(e){const[t,n]=c.useState(xr());return J(()=>{n(r=>r??String(br++))},[e]),t?`radix-${t}`:""}const Cr=["top","right","bottom","left"],ee=Math.min,W=Math.max,Te=Math.round,be=Math.floor,U=e=>({x:e,y:e}
vendor: 6,888 bytes, line 6
6),Sr={left:"right",right:"left",bottom:"top",top:"bottom"},Pr={start:"end",end:"start"};function Ze(e,t,n){return W(e,ee(t,n))}function K(e,t){return typeof e=="function"?e(t):e}function G(e){return e.split("-")[0]}function pe(e){return e.split("-")[1]}function nt(e){return e==="x"?"y":"x"}function rt(e){return e==="y"?"height":"width"}const Ar=new Set(["top","bottom"]);function V(e){return Ar.has(G(e))?"y":"x"}function ot(e){return nt(V(e))}function Rr(e,t,n){n===void 0&&(n=!1);const r=pe(e),o=ot(e),i=rt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Me(s)),[s,Me(s)]}function Or(e){const t=Me(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>Pr[t])}const Et=["left","right"],Ct=["right","left"],Nr=["top","bottom"],Tr=["bottom","top"];function Mr(e,t,n){switch(e){case"top":case"bottom":return n?t?Ct:Et:t?Et:Ct;case"left":case"right":return t?Nr:Tr;default:return[]}}function Dr(e,t,n,r){const o=pe(e);let i=Mr(G(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(qe)))),i}function Me(e){return e.replace(/left|right|bottom|top/g,t=>Sr[t])}function Lr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gt(e){return typeof e!="number"?Lr(e):{top:e,right:e,bottom:e,left:e}}function De(e){const{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 St(e,t,n){let{reference:r,floating:o}=e;const i=V(t),s=ot(t),a=rt(s),u=G(t),l=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(pe(t)){case"start":m[s]-=h*(n&&l?-1:1);break;case"end":m[s]+=h*(n&&l?-1:1);break}return m}const Fr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=St(l,r,u),h=r,m={},v=0;for(let p=0;p<a.length;p++){const{name:g,fn:y}=a[p],{x:w,y:b,data:x,reset:E}=await y({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});f=w??f,d=b??d,m={...m,[g]:{...m[g],...x}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:d}=St(l,h,u)),p=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:m}};async function ve(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=K(t,e),v=Gt(m),g=a[h?d==="floating"?"reference":"floating":d],y=De(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:u})),w=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},E=De(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:u}):w);return{top:(y.top-E.top+v.top)/x.y,bottom:(E.bottom-y.bottom+v.bottom)/x.y,left:(y.left-E.left+v.left)/x.x,right:(E.right-y.right+v.right)/x.x}}const kr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:l,padding:f=0}=K(e,t)||{};if(l==null)return{};const d=Gt(f),h={x:n,y:r},m=ot(o),v=rt(m),p=await s.getDimensions(l),g=m==="y",y=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[m]-h[m]-i.floating[v],E=h[m]-i.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let C=P?P[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(P)))&&(C=a.floating[b]||i.floating[v]);const R=x/2-E/2,T=C/2-p[v]/2-1,O=ee(d[y],T),k=ee(d[w],T),_=O,M=C-p[v]-k,N=C/2-p[v]/2+R,I=Ze(_,N,M),D=!u.arrow&&pe(o)!=null&&N!==I&&i.reference[v]/2-(N<_?O:k)-p[v]/2<0,L=D?N<_?N-_:N-M:0;return{[m]:h[m]+L,data:{[m]:I,centerOffset:N-I-L,...D&&{alignmentOffset:L}},reset:D}}}),_r=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...g}=K(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=G(o),w=V(a),b=G(a)===a,x=await(u.isRTL==null?void 0:u.isRTL(l.floating)),E=h||(b||!p?[Me(a)]:Or(a)),P=v!=="none";!h&&P&&E.push(...Dr(a,p,v,x));const C=[a,...E],R=await ve(t,g),T=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&T.push(R[y]),d){const N=Rr(o,s,x);T.push(R[N[0]],R[N[1]])}if(O=[...O,{placement:o,overflows:T}],!T.every(N=>N<=0)){var k,_;const N=(((k=i.flip)==null?void 0:k.index)||0)+1,I=C[N];if(I&&(!(d==="alignment"?w!==V(I):!1)||O.every(A=>V(A.placement)===w?A.overflows[0]>0:!0)))return{data:{index:N,overflows:O},reset:{placement:I}};let D=(_=O.filter(L=>L.overflows[0]<=0).sort((L,A)=>L.overflows[1]-A.overflows[1])[0])==null?void 0:_.placement;if(!D)switch(m){case"bestFit":{var M;const L=(M=O.filter(A=>{if(P){const F=V(A.placement);return F===w||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,H)=>F+H,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:M[0];L&&(D=L);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Pt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function At(e){return Cr.some(t=>e[t]>=0)}const Ir=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=K(e,t);switch(r){case"referenceHidden":{const i=await ve(t,{...o,elementContext:"reference"}),s=Pt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:At(s)}}}case"escaped":{const i=await ve(t,{...o,altBoundary:!0}),s=Pt(i,n.floating);return{data:{escapedOffsets:s,escaped:At(s)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function Wr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=G(n),a=pe(n),u=V(n)==="y",l=Zt.has(s)?-1:1,f=i&&u?-1:1,d=K(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}
6:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),u?{x:m*f,y:h*l}:{x:h*l,y:m*f}}const jr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await Wr(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},$r=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:y,y:w}=g;return{x:y,y:w}}},...u}=K(e,t),l={x:n,y:r},f=await ve(t,u),d=V(G(o)),h=nt(d);let m=l[h],v=l[d];if(i){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=m+f[g],b=m-f[y];m=Ze(w,m,b)}if(s){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=v+f[g],b=v-f[y];v=Ze(w,v,b)}const p=a.fn({...t,[h]:m,[d]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:s}}}}}},Br=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=K(e,t),f={x:n,y:r},d=V(o),h=nt(d);let m=f[h],v=f[d];const p=K(a,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const b=h==="y"?"height":"width",x=i.reference[h]-i.floating[b]+g.mainAxis,E=i.reference[h]+i.reference[b]-g.mainAxis;m<x?m=x:m>E&&(m=E)}if(l){var y,w;const b=h==="y"?"width":"height",x=Zt.has(G(o)),E=i.reference[d]-i.floating[b]+(x&&((y=s.offset)==null?void 0:y[d])||0)+(x?0:g.crossAxis),P=i.reference[d]+i.reference[b]+(x?0:((w=s.offset)==null?void 0:w[d])||0)-(x?g.crossAxis:0);v<E?v=E:v>P&&(v=P)}return{[h]:m,[d]:v}}}},Hr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...l}=K(e,t),f=await ve(t,l),d=G(o),h=pe(o),m=V(o)==="y",{width:v,height:p}=i.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g=h==="end"?"top":"bottom");const w=p-f.top-f.bottom,b=v-f.left-f.right,x=ee(p-f[g],w),E=ee(v-f[y],b),P=!t.middlewareData.shift;let C=x,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),P&&!h){const O=W(f.left,0),k=W(f.right,0),_=W(f.top,0),M=W(f.bottom,0);m?R=v-2*(O!==0||k!==0?O+k:W(f.left,f.right)):C=p-2*(_!==0||M!==0?_+M:W(f.top,f.bottom))}await u({...t,availableWidth:R,availableHeight:C});const T=await s.getDimensions(a.floating);return v!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Fe(){return typeof window<"u"}function me(e){return qt(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y(e){var t;return(t=(qt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qt(e){return Fe()?e instanceof Node||e instanceof j(e).Node:!1}function $(e){return Fe()?e instanceof Element||e instanceof j(e).Element:!1}function X(e){return Fe()?e instanceof HTMLElement||e instanceof j(e).HTMLElement:!1}function Rt(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof j(e).ShadowRoot}const zr=new Set(["inline","contents"]);function ye(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!zr.has(o)}const Vr=new Set(["table","td","th"]);function Ur(e){return Vr.has(me(e))}const Xr=[":popover-open",":modal"];function ke(e){return Xr.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yr=["transform","translate","scale","rotate","perspective"],Kr=["transform","translate","scale","rotate","perspective","filter"],Gr=["paint","layout","strict","content"];function it(e){const t=st(),n=$(e)?B(e):e;return Yr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Kr.some(r=>(n.willChange||"").includes(r))||Gr.some(r=>(n.contain||"").includes(r))}function Zr(e){let t=te(e);for(;X(t)&&!fe(t);){if(it(t))return t;if(ke(t))return null;t=te(t)}return null}function st(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qr=new Set(["html","body","#document"]);function fe(e){return qr.has(me(e))}function B(e){return j(e).getComputedStyle(e)}function _e(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rt(e)&&e.host||Y(e);return Rt(t)?t.host:t}function Qt(e){const t=te(e);return fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:X(t)&&ye(t)?t:Qt(t)}function ge(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Qt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=j(o);if(i){const a=Qe(s);
6return t.concat(s,s.visualViewport||[],ye(o)?o:[],a&&n?ge(a):[])}return t.concat(o,ge(o,[],n))}function Qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jt(e){const t=B(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=X(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Te(n)!==i||Te(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function at(e){return $(e)?e:e.contextElement}function ce(e){const t=at(e);if(!X(t))return U(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Jt(t);let s=(i?Te(n.width):n.width)/r,a=(i?Te(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Qr=U(0);function en(e){const t=j(e);return!st()||!t.visualViewport?Qr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==j(e)?!1:t}function oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=at(e);let s=U(1);t&&(r?$(r)&&(s=ce(r)):s=ce(e));const a=Jr(i,n,r)?en(i):U(0);let u=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,f=o.width/s.x,d=o.height/s.y;if(i){const h=j(i),m=r&&$(r)?j(r):r;let v=h,p=Qe(v);for(;p&&r&&m!==v;){const g=ce(p),y=p.getBoundingClientRect(),w=B(p),b=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*g.x,x=y.top+(p.clientTop+parseFloat(w.paddingTop))*g.y;u*=g.x,l*=g.y,f*=g.x,d*=g.y,u+=b,l+=x,v=j(p),p=Qe(v)}}return De({width:f,height:d,x:u,y:l})}function Ie(e,t){const n=_e(e).scrollLeft;return t?t.left+n:oe(Y(e)).left+n}function tn(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ie(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function eo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Y(r),a=t?ke(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},l=U(1);const f=U(0),d=X(r);if((d||!d&&!i)&&((me(r)!=="body"||ye(s))&&(u=_e(r)),X(r))){const m=oe(r);l=ce(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const h=s&&!d&&!i?tn(s,u):U(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+h.x,y:n.y*l.y-u.scrollTop*l.y+f.y+h.y}}function to(e){return Array.from(e.getClientRects())}function no(e){const t=Y(e),n=_e(e),r=e.ownerDocument.body,o=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ie(e);const a=-n.scrollTop;return B(r).direction==="rtl"&&(s+=W(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Ot=25;function ro(e,t){const n=j(e),r=Y(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const f=st();(!f||f&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const l=Ie(r);if(l<=0){const f=r.ownerDocument,d=f.body,h=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-m);v<=Ot&&(i-=v)}else l<=Ot&&(i+=l);return{width:i,height:s,x:a,y:u}}const oo=new Set(["absolute","fixed"]);function io(e,t){const n=oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=X(e)?ce(e):U(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:s,height:a,x:u,y:l}}function Nt(e,t,n){let r;if(t==="viewport")r=ro(e,n);else if(t==="document")r=no(Y(e));else if($(t))r=io(t,n);else{const o=en(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return De(r)}function nn(e,t){const n=te(e);return n===t||!$(n)||fe(n)?!1:B(n).position==="fixed"||nn(n,t)}function so(e,t){const n=t.get(e);if(n)return n;let r=ge(e,[],!1).filter(a=>$(a)&&me(a)!=="body"),o=null;const i=B(e).position==="fixed";let s=i?te(e):e;for(;$(s)&&!fe(s);){const a=B(s),u=it(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&oo.has(o.position)||ye(s)&&!u&&nn(e,s))?r=r.filter(f=>f!==s):o=a,s=te(s)}return t.set(e,r),r}function ao(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ke(t)?[]:so(t,this._c):[].concat(n),r],a=s[0],u=s.reduce((l,f)=>{const d=Nt(t,f,o);return l.top=W(d.top,l.top),l.right=ee(d.right,l.right),l.bottom=ee(d.bottom,l.bottom),l.left=W(d.left,l.left),l},Nt(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function co(e){const{width:t,height:n}=Jt(e);return{width:t,height:n}}function lo(e,t,n){const r=X(t),o=Y(t),i=n==="fixed",s=oe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=U(0);function l(){u.x=Ie(o)}if(r||!r&&!i)if((me(t)!=="body"||ye(o))&&(a=_e(t)),r){const m=oe(t,!0,i,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}
6else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?tn(o,a):U(0),d=s.left+a.scrollLeft-u.x-f.x,h=s.top+a.scrollTop-u.y-f.y;return{x:d,y:h,width:s.width,height:s.height}}function ze(e){return B(e).position==="static"}function Tt(e,t){if(!X(e)||B(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Y(e)===n&&(n=n.ownerDocument.body),n}function rn(e,t){const n=j(e);if(ke(e))return n;if(!X(e)){let o=te(e);for(;o&&!fe(o);){if($(o)&&!ze(o))return o;o=te(o)}return n}let r=Tt(e,t);for(;r&&Ur(r)&&ze(r);)r=Tt(r,t);return r&&fe(r)&&ze(r)&&!it(r)?n:r||Zr(e)||n}const uo=async function(e){const t=this.getOffsetParent||rn,n=this.getDimensions,r=await n(e.floating);return{reference:lo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fo(e){return B(e).direction==="rtl"}const po={convertOffsetParentRelativeRectToViewportRelativeRect:eo,getDocumentElement:Y,getClippingRect:ao,getOffsetParent:rn,getElementRects:uo,getClientRects:to,getDimensions:co,getScale:ce,isElement:$,isRTL:fo};function on(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t){let n=null,r;const o=Y(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const l=e.getBoundingClientRect(),{left:f,top:d,width:h,height:m}=l;if(a||t(),!h||!m)return;const v=be(d),p=be(o.clientWidth-(f+h)),g=be(o.clientHeight-(d+m)),y=be(f),b={rootMargin:-v+"px "+-p+"px "+-g+"px "+-y+"px",threshold:W(0,ee(1,u))||1};let x=!0;function E(P){const C=P[0].intersectionRatio;if(C!==u){if(!x)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!on(l,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return s(!0),i}function ho(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=at(e),f=o||i?[...l?ge(l):[],...ge(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?mo(l,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let v,p=u?oe(e):null;u&&g();function g(){const y=oe(e);p&&!on(p,y)&&n(),p=y,v=requestAnimationFrame(g)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(v)}}const vo=jr,go=$r,yo=_r,wo=Hr,xo=Ir,Mt=kr,bo=Br,Eo=(e,t,n)=>{const r=new Map,o={platform:po,...n},i={...o.platform,_c:r};return Fr(e,t,{...o,platform:i})};var Co=typeof document<"u",So=function(){},Re=Co?c.useLayoutEffect:So;function Le(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Le(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Le(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function sn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dt(e,t){const n=sn(e);return Math.round(t*n)/n}function Ve(e){const t=c.useRef(e);return Re(()=>{t.current=e}),t}function Po(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=c.useState(r);Le(h,r)||m(r);const[v,p]=c.useState(null),[g,y]=c.useState(null),w=c.useCallback(A=>{A!==P.current&&(P.current=A,p(A))},[]),b=c.useCallback(A=>{A!==C.current&&(C.current=A,y(A))},[]),x=i||v,E=s||g,P=c.useRef(null),C=c.useRef(null),R=c.useRef(f),T=u!=null,O=Ve(u),k=Ve(o),_=Ve(l),M=c.useCallback(()=>
6{if(!P.current||!C.current)return;const A={placement:t,strategy:n,middleware:h};k.current&&(A.platform=k.current),Eo(P.current,C.current,A).then(F=>{const H={...F,isPositioned:_.current!==!1};N.current&&!Le(R.current,H)&&(R.current=H,Wt.flushSync(()=>{d(H)}))})},[h,t,n,k,_]);Re(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[l]);const N=c.useRef(!1);Re(()=>(N.current=!0,()=>{N.current=!1}),[]),Re(()=>{if(x&&(P.current=x),E&&(C.current=E),x&&E){if(O.current)return O.current(x,E,M);M()}},[x,E,M,O,T]);const I=c.useMemo(()=>({reference:P,floating:C,setReference:w,setFloating:b}),[w,b]),D=c.useMemo(()=>({reference:x,floating:E}),[x,E]),L=c.useMemo(()=>{const A={position:n,left:0,top:0};if(!D.floating)return A;const F=Dt(D.floating,f.x),H=Dt(D.floating,f.y);return a?{...A,transform:"translate("+F+"px, "+H+"px)",...sn(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:H}},[n,a,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:M,refs:I,elements:D,floatingStyles:L}),[f,M,I,D,L])}const Ao=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Mt({element:r.current,padding:o}).fn(n):{}:r?Mt({element:r,padding:o}).fn(n):{}}}},Ro=(e,t)=>({...vo(e),options:[e,t]}),Oo=(e,t)=>({...go(e),options:[e,t]}),No=(e,t)=>({...bo(e),options:[e,t]}),To=(e,t)=>({...yo(e),options:[e,t]}),Mo=(e,t)=>({...wo(e),options:[e,t]}),Do=(e,t)=>({...xo(e),options:[e,t]}),Lo=(e,t)=>({...Ao(e),options:[e,t]});var Fo="Arrow",an=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(Z.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});an.displayName=Fo;var ko=an;function _o(e){const[t,n]=c.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ct="Popper",[cn,ln]=Bt(ct),[Io,un]=cn(ct),fn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return S.jsx(Io,{scope:t,anchor:r,onAnchorChange:o,children:n})};fn.displayName=ct;var dn="PopperAnchor",pn=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=un(dn,n),s=c.useRef(null),a=ne(t,s),u=c.useRef(null);return c.useEffect(()=>{const l=u.current;u.current=r?.current||s.current,l!==u.current&&i.onAnchorChange(u.current)}),r?null:S.jsx(Z.div,{...o,ref:a})});pn.displayName=dn;var lt="PopperContent",[Wo,jo]=cn(lt),mn=c.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=e,g=un(lt,n),[y,w]=c.useState(null),b=ne(t,he=>w(he)),[x,E]=c.useState(null),P=_o(x),C=P?.width??0,R=P?.height??0,T=r+(i!=="center"?"-"+i:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(l)?l:[l],_=k.length>0,M={padding:O,boundary:k.filter(Bo),altBoundary:_},{refs:N,floatingStyles:I,placement:D,isPositioned:L,middlewareData:A}=Po({strategy:"fixed",placement:T,whileElementsMounted:(...he)=>ho(...he,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Ro({mainAxis:o+R,alignmentAxis:s}),u&&Oo({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?No():void 0,...M}),u&&To({...M}),Mo({...M,apply:({elements:he,rects:pt,availableWidth:Un,availableHeight:Xn})=>{const{width:Yn,height:Kn}=pt.reference,xe=he.floating.style;xe.setProperty("--radix-popper-available-width",`${Un}px`),xe.setProperty("--radix-popper-available-height",`${Xn}px`),xe.setProperty("--radix-popper-anchor-width",`${Yn}px`),xe.setProperty("--radix-popper-anchor-height",`${Kn}px`)}}),x&&Lo({element:x,padding:a}),Ho({arrowWidth:C,arrowHeight:R}),h&&Do({strategy:"referenceHidden",...M})]}),[F,H]=gn(D),dt=ue(v);J(()=>{L&&dt?.()},[L,dt]);const $n=A.arrow?.x,Bn=A.arrow?.y,Hn=A.arrow?.centerOffset!==0,[zn,Vn]=c.useState();return J(()=>{y&&Vn(window.getComputedStyle(y).zIndex)},[y]),S.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:L?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:zn,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(Wo,{scope:n,placedSide:F,onArrowChange:E,arrowX:$n,arrowY:Bn,shouldHideArrow:Hn,children:S.jsx(Z.div,{"data-side":F,"data-align":H,...p,ref:b,style:{...p.style,animation:L?void 0:"none"}})})})});mn.displayName=lt;var hn="PopperArrow",$o={top:"bottom",right:"left",bottom:"top",left:"r
6ight"},vn=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=jo(hn,r),s=$o[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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:S.jsx(ko,{...o,ref:n,style:{...o.style,display:"block"}})})});vn.displayName=hn;function Bo(e){return e!==null}var Ho=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,f]=gn(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+u/2;let v="",p="";return l==="bottom"?(v=s?d:`${h}px`,p=`${-u}px`):l==="top"?(v=s?d:`${h}px`,p=`${r.floating.height+u}px`):l==="right"?(v=`${-u}px`,p=s?d:`${m}px`):l==="left"&&(v=`${r.floating.width+u}px`,p=s?d:`${m}px`),{data:{x:v,y:p}}}});function gn(e){const[t,n="center"]=e.split("-");return[t,n]}var zo=fn,yn=pn,Vo=mn,Uo=vn,Xo="Portal",wn=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=c.useState(!1);J(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?$t.createPortal(S.jsx(Z.div,{...r,ref:t}),s):null});wn.displayName=Xo;var Yo=jt[" useInsertionEffect ".trim().toString()]||J;function Ko({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Go({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. 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.`),f.current=a},[a,r])}const l=c.useCallback(f=>{if(a){const d=Zo(f)?f(e):f;d!==e&&s.current?.(d)}else i(f)},[a,e,i,s]);return[u,l]}function Go({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return Yo(()=>{i.current=t},[t]),c.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Zo(e){return typeof e=="function"}var qo=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ie=new WeakMap,Ee=new WeakMap,Ce={},Ue=0,xn=function(e){return e&&(e.host||xn(e.parentNode))},Qo=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xn(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Jo=function(e,t,n,r){var o=Qo(t,Array.isArray(e)?e:[e]);Ce[n]||(Ce[n]=new WeakMap);var i=Ce[n],s=[],a=new Set,u=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))f(h);else try{var m=h.getAttribute(r),v=m!==null&&m!=="false",p=(ie.get(h)||0)+1,g=(i.get(h)||0)+1;ie.set(h,p),i.set(h,g),s.push(h),p===1&&v&&Ee.set(h,!0),g===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),a.clear(),Ue++,function(){s.forEach(function(d){var h=ie.get(d)-1,m=i.get(d)-1;ie.set(d,h),i.set(d,m),h||(Ee.has(d)||d.removeAttribute(r),Ee.delete(d)),m||d.removeAttribute(n)}),Ue--,Ue||(ie=new WeakMap,ie=new WeakMap,Ee=new WeakMap,Ce={})}},ei=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=qo(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Jo(r,o,n,"aria-hidden")):function(){return null}},Je=function(e,t){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Je(e,t)};function ss(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Je(e,t);function n(){this.constructor=e}
vendor: 5,657 bytes, lines 6-21
6e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},z.apply(this,arguments)};function bn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ti(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Oe="right-scroll-bar-position",Ne="width-before-scroll-bar",ni="with-scroll-bars-hidden",ri="--removed-body-scroll-bar-size";function Xe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oi(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ii=typeof window<"u"?c.useLayoutEffect:c.useEffect,Lt=new WeakMap;function si(e,t){var n=oi(null,function(r){return e.forEach(function(o){return Xe(o,r)})});return ii(function(){var r=Lt.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Xe(a,null)}),i.forEach(function(a){o.has(a)||Xe(a,s)})}Lt.set(n,e)},[e]),n}function ai(e){return e}function ci(e,t){t===void 0&&(t=ai);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var f=s;s=[],f.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return o}function li(e){e===void 0&&(e={});var t=ci(null);return t.options=z({async:!0,ssr:!1},e),t}var En=function(e){var t=e.sideCar,n=bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,z({},n))};En.isSideCarExport=!0;function ui(e,t){return e.useMedium(t),En}var Cn=li(),Ye=function(){},We=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Ye,onWheelCapture:Ye,onTouchMoveCapture:Ye}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,m=e.noRelative,v=e.noIsolation,p=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,b=e.gapMode,x=bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,P=si([n,t]),C=z(z({},x),o);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:Cn,removeScrollBar:l,shards:d,noRelative:m,noIsolation:v,inert:p,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),s?c.cloneElement(c.Children.only(a),z(z({},C),{ref:P})):c.createElement(w,z({},C,{className:u,ref:P}),a))});We.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};We.classNames={fullWidth:Ne,zeroRight:Oe};var fi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function di(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fi();return t&&e.setAttribute("nonce",t),e}function pi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=di())&&(pi(t,n),mi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vi=function(){var e=hi();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sn=function(){var e=vi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},gi={left:0,top:0,right:0,gap:0},Ke=function(e){return parseInt(e||"",10)||0},yi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ke(n),Ke(r),Ke(o)]},wi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gi;var t=yi(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])}},xi=Sn(),le="data-scroll-locked",bi=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 7 .`.concat(ni,` { 8 overflow: hidden `).concat(r,`; 9 padding-right: `).concat(a,"px ").concat(r,`; 10 } 11 body[`).concat(le,`] { 12 overflow: hidden `).concat(r,`; 13 overscroll-behavior: contain; 14 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 15 padding-left: `.concat(o,`px; 16 padding-top: `).concat(i,`px; 17 padding-right: `).concat(s,`px; 18 margin-left:0; 19 margin-top:0; 20 margin-right: `).concat(a,"px ").concat(r,`; 21 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
21")].filter(Boolean).join(""),` 22 } 23 24 .`).concat(Oe,` { 25 right: `).concat(a,"px ").concat(r,`; 26 } 27 28 .`).concat(Ne,` { 29 margin-right: `).concat(a,"px ").concat(r,`; 30 } 31 32 .`).concat(Oe," .").concat(Oe,` { 33 right: 0 `).concat(r,`; 34 } 35 36 .`).concat(Ne," .").concat(Ne,` { 37 margin-right: 0 `).concat(r,`; 38 } 39 40 body[`).concat(le,`] { 41 `).concat(ri,": ").concat(a,`px; 42 } 43`)},Ft=function(){var e=parseInt(document.body.getAttribute(le)||"0",10);return isFinite(e)?e:0},Ei=function(){c.useEffect(function(){return document.body.setAttribute(le,(Ft()+1).toString()),function(){var e=Ft()-1;e<=0?document.body.removeAttribute(le):document.body.setAttribute(le,e.toString())}},[])},Ci=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ei();var i=c.useMemo(function(){return wi(o)},[o]);return c.createElement(xi,{styles:bi(i,!t,o,n?"":"!important")})},et=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return et=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{et=!1}var se=et?{passive:!1}:!1,Si=function(e){return e.tagName==="TEXTAREA"},Pn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Si(e)&&n[t]==="visible")},Pi=function(e){return Pn(e,"overflowY")},Ai=function(e){return Pn(e,"overflowX")},kt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=An(e,r);if(o){var i=Rn(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ri=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Oi=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},An=function(e,t){return e==="v"?Pi(t):Ai(t)},Rn=function(e,t){return e==="v"?Ri(t):Oi(t)},Ni=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ti=function(e,t,n,r,o){var i=Ni(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,u=t.contains(a),l=!1,f=s>0,d=0,h=0;do{if(!a)break;var m=Rn(e,a),v=m[0],p=m[1],g=m[2],y=p-g-i*v;(v||y)&&An(e,a)&&(d+=y,h+=v);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&Math.abs(d)<1||!f&&Math.abs(h)<1)&&(l=!0),l},Pe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_t=function(e){return[e.deltaX,e.deltaY]},It=function(e){return e&&"current"in e?e.current:e},Mi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Di=function(e){return` 44 .block-interactivity-`.concat(e,` {pointer-events: none;} 45 .allow-interactivity-`).concat(e,` {pointer-events: all;} 46`)},Li=0,ae=[];function Fi(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Li++)[0],i=c.useState(Sn)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=ti([e.lockRef.current],(e.shards||[]).map(It),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Pe(p),w=n.current,b="deltaX"in p?p.deltaX:w[0]-y[0],x="deltaY"in p?p.deltaY:w[1]-y[1],E,P=p.target,C=Math.abs(b)>Math.abs(x)?"h":"v";if("touches"in p&&C==="h"&&P.type==="range")return!1;var R=kt(C,P);if(!R)return!0;if(R?E=C:(E=C==="v"?"h":"v",R=kt(C,P)),!R)return!1;if(!r.current&&"changedTouches"in p&&(b||x)&&(r.current=E),!E)return!0;var T=r.current||E;return Ti(T,g,p,T==="h"?b:x)},[]),u=c.useCallback(function(p){var g=p;if(!(!ae.length||ae[ae.length-1]!==i)){var y="deltaY"in g?_t(g):Pe(g),w=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&Mi(E.delta,y)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}
vendor: 4,306 bytes, line 46
46if(!w){var b=(s.current.shards||[]).map(It).filter(Boolean).filter(function(E){return E.contains(g.target)}),x=b.length>0?a(g,b[0]):!s.current.noIsolation;x&&g.cancelable&&g.preventDefault()}}},[]),l=c.useCallback(function(p,g,y,w){var b={name:p,delta:g,target:y,should:w,shadowParent:ki(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(x){return x!==b})},1)},[]),f=c.useCallback(function(p){n.current=Pe(p),r.current=void 0},[]),d=c.useCallback(function(p){l(p.type,_t(p),p.target,a(p,e.lockRef.current))},[]),h=c.useCallback(function(p){l(p.type,Pe(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return ae.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",u,se),document.addEventListener("touchmove",u,se),document.addEventListener("touchstart",f,se),function(){ae=ae.filter(function(p){return p!==i}),document.removeEventListener("wheel",u,se),document.removeEventListener("touchmove",u,se),document.removeEventListener("touchstart",f,se)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(i,{styles:Di(o)}):null,m?c.createElement(Ci,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ki(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _i=ui(Cn,Fi);var On=c.forwardRef(function(e,t){return c.createElement(We,z({},e,{ref:t,sideCar:_i}))});On.classNames=We.classNames;function Ii(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ut=e=>{const{present:t,children:n}=e,r=Wi(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=ne(r.ref,ji(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null};ut.displayName="Presence";function Wi(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,u]=Ii(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ae(r.current);i.current=a==="mounted"?l:"none"},[a]),J(()=>{const l=r.current,f=o.current;if(f!==e){const h=i.current,m=Ae(l);e?u("MOUNT"):m==="none"||l?.display==="none"?u("UNMOUNT"):u(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),J(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=m=>{const p=Ae(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=m=>{m.target===t&&(i.current=Ae(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ae(e){return e?.animationName||"none"}function ji(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var je="Popover",[Nn,as]=Bt(je,[ln]),we=ln(),[$i,re]=Nn(je),Tn=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=we(t),u=c.useRef(null),[l,f]=c.useState(!1),[d,h]=Ko({prop:r,defaultProp:o??!1,onChange:i,caller:je});return S.jsx(zo,{...a,children:S.jsx($i,{scope:t,contentId:Er(),triggerRef:u,open:d,onOpenChange:h,onOpenToggle:c.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:l,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:s,children:n})})};Tn.displayName=je;var Mn="PopoverAnchor",Bi=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=re(Mn,n),i=we(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return c.useEffect(()=>(s(),()=>a()),[s,a]),S.jsx(yn,{...i,...r,ref:t})});Bi.displayName=Mn;var Dn="PopoverTrigger",Ln=c.forwardRef((e,t)=>
46{const{__scopePopover:n,...r}=e,o=re(Dn,n),i=we(n),s=ne(t,o.triggerRef),a=S.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wn(o.open),...r,ref:s,onClick:Q(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:S.jsx(yn,{asChild:!0,...i,children:a})});Ln.displayName=Dn;var ft="PopoverPortal",[Hi,zi]=Nn(ft,{forceMount:void 0}),Fn=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=re(ft,t);return S.jsx(Hi,{scope:t,forceMount:n,children:S.jsx(ut,{present:n||i.open,children:S.jsx(wn,{asChild:!0,container:o,children:r})})})};Fn.displayName=ft;var de="PopoverContent",kn=c.forwardRef((e,t)=>{const n=zi(de,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=re(de,e.__scopePopover);return S.jsx(ut,{present:r||i.open,children:i.modal?S.jsx(Ui,{...o,ref:t}):S.jsx(Xi,{...o,ref:t})})});kn.displayName=de;var Vi=tt("PopoverContent.RemoveScroll"),Ui=c.forwardRef((e,t)=>{const n=re(de,e.__scopePopover),r=c.useRef(null),o=ne(t,r),i=c.useRef(!1);return c.useEffect(()=>{const s=r.current;if(s)return ei(s)},[]),S.jsx(On,{as:Vi,allowPinchZoom:!0,children:S.jsx(_n,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,s=>{s.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,l=a.button===2||u;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:Q(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Xi=c.forwardRef((e,t)=>{const n=re(de,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return S.jsx(_n,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),_n=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:f,...d}=e,h=re(de,n),m=we(n);return dr(),S.jsx(Yt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(Ut,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:S.jsx(Vo,{"data-state":Wn(h.open),role:"dialog",id:h.contentId,...m,...d,ref:t,style:{...d.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)"}})})})}),In="PopoverClose",Yi=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=re(In,n);return S.jsx(Z.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});Yi.displayName=In;var Ki="PopoverArrow",Gi=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=we(n);return S.jsx(Uo,{...o,...r,ref:t})});Gi.displayName=Ki;function Wn(e){return e?"open":"closed"}var Zi=Tn,qi=Ln,cs=Fn,jn=kn;const ls=Zi,us=qi,Qi=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{const i=S.jsx(jn,{ref:o,align:t,sideOffset:n,className:Zn("z-[2147483647] w-72 rounded-md border bg-gray-50 p-4 text-gray-700 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r});return typeof window<"u"&&typeof document<"u"?$t.createPortal(i,document.body):null});Qi.displayName=jn.displayName;export{yn as A,Ro as B,Vo as C,Ut as D,Lo as E,Yt as F,is as G,Zi as H,cs as I,jn as J,Z as P,On as R,os as S,qi as T,ns as X,ss as _,tt as a,ln as b,Bt as c,Q as d,J as e,wn as f,Er as g,ue as h,ei as i,dr as j,Ko as k,zo as l,Uo as m,_o as n,ls as o,us as p,Qi as q,ut as r,rs as
46s,z as t,ne as u,Po as v,$ as w,B as x,ho as y,To as z};
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.