1import{r as i,j as v,R as Rt}from"./vendor-web3-x3amP11p.js";import{r as nt}from"./vendor-charts-CaphL54U.js";function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}function qn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ps(...e){return t=>{let n=!1;const o=e.map(r=>{const s=qn(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():qn(e[r],null)}}}}function $(...e){return i.useCallback(Ps(...e),e)}function ye(e,t=[]){let n=[];function o(s,c){const a=i.createContext(c);a.displayName=s+"Context";const l=n.length;n=[...n,c];const f=u=>{const{scope:h,children:m,...g}=u,p=h?.[e]?.[l]||a,w=i.useMemo(()=>g,Object.values(g));return v.jsx(p.Provider,{value:w,children:m})};f.displayName=s+"Provider";function d(u,h,m={}){const{optional:g=!1}=m,p=h?.[e]?.[l]||a,w=i.useContext(p);if(w)return w;if(c!==void 0)return c;if(!g)throw new Error(`\`${u}\` must be used within \`${s}\``)}return[f,d]}const r=()=>{const s=n.map(c=>i.createContext(c));return function(a){const l=a?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,Ts(r,...t)]}function Ts(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((a,{useScope:l,scopeName:f})=>{const u=l(s)[`__scope${f}`];return{...a,...u}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Me(e){const t=i.forwardRef((n,o)=>{let{children:r,...s}=n,c=null,a=!1;const l=[];Qn(r)&&typeof ct=="function"&&(r=ct(r._payload)),i.Children.forEach(r,h=>{if(Os(h)){a=!0;const m=h;let g="child"in m.props?m.props.child:m.props.children;Qn(g)&&typeof ct=="function"&&(g=ct(g._payload)),c=As(m,g),l.push(c?.props?.children)}else l.push(h)}),c?c=i.cloneElement(c,void 0,l):!a&&i.Children.count(r)===1&&i.isValidElement(r)&&(c=r);const f=c?Is(c):void 0,d=$(o,f);if(!c){if(r||r===0)throw new Error(a?ks(e):Ls(e));return r}const u=_s(s,c.props??{});return c.type!==i.Fragment&&(u.ref=o?d:f),i.cloneElement(c,u)});return t.displayName=`${e}.Slot`,t}var Gu=Me("Slot"),So=Symbol.for("radix.slottable");function Ms(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=So,t}var As=(e,t)=>{if("child"in e.props){const n=e.props.child;return i.isValidElement(n)?i.cloneElement(n,void 0,e.props.children(n.props.children)):null}return i.isValidElement(t)?t:null};function _s(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Is(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)}function Os(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===So}var Ds=Symbol.for("react.lazy");function Qn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ds&&"_payload"in e&&Ns(e._payload)}function Ns(e){return typeof e=="object"&&e!==null&&"then"in e}var Ls=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ks=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ct=Rt[" use ".trim().toString()];function yn(e){const t=e+"CollectionProvider",[n,o]=ye(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=p=>{const{scope:w,children:y}=p,C=i.useRef(null),x=i.useRef(new Map).current;return v.jsx(r,{scope:w,itemMap:x,collectionRef:C,children:y})};c.displayName=t;const a=e+"CollectionSlot",l=Me(a),f=i.forwardRef((p,w)=>{const{scope:y,children:C}=p,x=s(a,y),b=$(w,x.collectionRef);return v.jsx(l,{ref:b,children:C})});f.displayName=a;const d=e+"CollectionItemSlot",u="data-radix-collection-item",h=Me(d),m=i.forwardRef((p,w)=>{const{scope:y,children:C,...x}=p,b=i.useRef(null),S=$(w,b),P=s(d,y);return i.useEffect(()=>(P.itemMap.set(b,{ref:b,...x}
1),()=>void P.itemMap.delete(b))),v.jsx(h,{[u]:"",ref:S,children:C})});m.displayName=d;function g(p){const w=s(e+"CollectionConsumer",p);return i.useCallback(()=>{const C=w.collectionRef.current;if(!C)return[];const x=Array.from(C.querySelectorAll(`[${u}]`));return Array.from(w.itemMap.values()).sort((P,M)=>x.indexOf(P.ref.current)-x.indexOf(M.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:c,Slot:f,ItemSlot:m},g,o]}var js=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],L=js.reduce((e,t)=>{const n=Me(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:c,...a}=r,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Eo(e,t){e&&nt.flushSync(()=>e.dispatchEvent(t))}function se(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}var Fs="DismissableLayer",rn="dismissableLayer.update",$s="dismissableLayer.pointerDownOutside",Bs="dismissableLayer.focusOutside",Jn,xn=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ue=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:a,onDismiss:l,...f}=e,d=i.useContext(xn),[u,h]=i.useState(null),m=u?.ownerDocument??globalThis?.document,[,g]=i.useState({}),p=$(t,h),w=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=y?w.indexOf(y):-1,x=u?w.indexOf(u):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,S=x>=C,P=i.useRef(!1),M=Us(T=>{s?.(T),a?.(T),T.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(T=>{if(!(T instanceof Node))return!1;const N=[...d.branches].some(j=>j.contains(T));return S&&!N},[d.branches,S])}),_=Ks(T=>{if(o&&P.current)return;const N=T.target;[...d.branches].some(k=>k.contains(N))||(c?.(T),a?.(T),T.defaultPrevented||l?.())},m),F=u?x===w.length-1:!1,D=se(T=>{T.key==="Escape"&&(r?.(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))});return i.useEffect(()=>{if(F)return m.addEventListener("keydown",D,{capture:!0}),()=>m.removeEventListener("keydown",D,{capture:!0})},[m,F,D]),i.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Jn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),eo(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(u),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Jn))}},[u,m,n,d]),i.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),eo())},[u,d]),i.useEffect(()=>{const T=()=>g({});return document.addEventListener(rn,T),()=>document.removeEventListener(rn,T)},[]),v.jsx(L.div,{...f,ref:p,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,_.onFocusCapture),onBlurCapture:R(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,M.onPointerDownCapture)})});Ue.displayName=Fs;var Hs="DismissableLayerBranch",Ro=i.forwardRef((e,t)=>{const n=i.useContext(xn),o=i.useRef(null),r=$(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(L.div,{...e,ref:r})});Ro.displayName=Hs;function Ws(){const e=i.useContext(xn),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var Vs=()=>!0;function Us(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:c=Vs}=t,a=se(e),l=i.useRef(!1),f=i.useRef(!1),d=i.useRef(new Map),u=i.useRef(()=>{});return i.useEffect(()=>{function h(){f.current=!1,r.current=!1,d.current.clear()}function m(){return Array.from(d.current.values()).some(Boolean)}function g(x){if(!f.current)return;const b=x.target;b instanceof Node&&[...s].some(P=>P.contains(b))||d.current.set(x.type,!0),x.type==="click"&&window.setTimeout(()=>{f.current&&u.current()},0)}function p(x){f.current&&d.current.set(x.type,!1)}const w=x=>{if(x.target&&!l.current){let b=function(){n.removeEventListener("click",u.current);const P=m();h(),P||Po($s,a,S,{discrete:!0})};if(!c(x.target)){n.removeEventListener("click",u.current),h(),l.current=!1;return}const S={originalEvent:x};f.current=!0,r.current=o&&x.button===0,d.current.clear(),!o||x.button!==0?b():(n.removeEventListener("click",u.current),u.current=b,n.addEventListener("click",u.current,{once:!0}))}else n.removeEventListener("click",u.current),h();l.current=!1},y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const x of y)n.addEventListener(x,g,!0),n.addEventListener(x,p);const C=window.setTimeout(()=>{n.addEventListener("pointerdown",w)},0);return()=>{window.clearTimeout(C),n.removeEventListener("pointerdown",w),n.removeEventListener("click",u.current);for(const x of y)n.removeEventListener(x,g,!0),n.removeEventListener(x,p)}},[n,a,o,r,s,c]),{onPointerDownCapture:()=>l.current=!0}}function Ks(e,t=globalThis?.document){const n=se(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>
vendor: 4,314 bytes, line 1
1{s.target&&!o.current&&Po(Bs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function eo(){const e=new CustomEvent(rn);document.dispatchEvent(e)}function Po(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Eo(r,s):r.dispatchEvent(s)}var zu=Ue,Yu=Ro,Y=globalThis?.document?i.useLayoutEffect:()=>{},Gs="Portal",Pt=i.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=i.useState(!1);Y(()=>s(!0),[]);const c=n||r&&globalThis?.document?.body;return c?nt.createPortal(v.jsx(L.div,{...o,ref:t}),c):null});Pt.displayName=Gs;function zs(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var ue=e=>{const{present:t,children:n}=e,o=Ys(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=Xs(o.ref,Zs(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};ue.displayName="Presence";function Ys(e){const[t,n]=i.useState(),o=i.useRef(null),r=i.useRef(e),s=i.useRef("none"),c=i.useRef(void 0),a=e?"mounted":"unmounted",[l,f]=zs(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{l==="mounted"?(s.current=c.current??Ye(o.current),c.current=void 0):s.current="none"},[l]),Y(()=>{const d=o.current,u=r.current;if(u!==e){const m=s.current,g=Ye(d);e?(c.current=g,f("MOUNT")):g==="none"||d?.display==="none"?f("UNMOUNT"):f(u&&m!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),Y(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,h=g=>{const w=Ye(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&w&&(f("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=g=>{g.target===t&&(s.current=Ye(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(d=>{if(d){const u=getComputedStyle(d);o.current=u,c.current=Ye(u)}else o.current=null;n(d)},[])}}function to(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xs(...e){const t=i.useRef(e);return t.current=e,i.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(c=>{const a=to(c,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let c=0;c<s.length;c++){const a=s[c];typeof a=="function"?a():to(o[c],null)}}},[])}function Ye(e){return e?.animationName||"none"}function Zs(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 qs=Rt[" useInsertionEffect ".trim().toString()]||Y;function Ae({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,c]=Qs({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const d=i.useRef(e!==void 0);i.useEffect(()=>{const u=d.current;u!==a&&console.warn(`${o} is changing from ${u?"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.`),d.current=a},[a,o])}const f=i.useCallback(d=>{if(a){const u=Js(d)?d(e):d;u!==e&&c.current?.(u)}else s(d)},[a,e,s,c]);return[l,f]}function Qs({defaultProp:e,onChange:t}){const[n,o]=i.useState(e),r=i.useRef(n),s=i.useRef(t);return qs(()=>{s.current=t},[t]),i.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function Js(e){return typeof e=="function"}var To=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ei="VisuallyHidden",Mo=i.forwardRef((e,t)=>
vendor: 10,536 bytes, line 1
1v.jsx(L.span,{...e,ref:t,style:{...To,...e.style}}));Mo.displayName=ei;var ti=Mo,ni=Rt[" useId ".trim().toString()]||(()=>{}),oi=0;function ce(e){const[t,n]=i.useState(ni());return Y(()=>{n(o=>o??String(oi++))},[e]),t?`radix-${t}`:""}const ri=["top","right","bottom","left"],Ce=Math.min,te=Math.max,gt=Math.round,at=Math.floor,be=e=>({x:e,y:e}),si={left:"right",right:"left",bottom:"top",top:"bottom"},ii={start:"end",end:"start"};function sn(e,t,n){return te(e,Ce(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function Cn(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}function Se(e){return["top","bottom"].includes(we(e))?"y":"x"}function Sn(e){return Cn(Se(e))}function ci(e,t,n){n===void 0&&(n=!1);const o=Ke(e),r=Sn(e),s=bn(r);let c=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=wt(c)),[c,wt(c)]}function ai(e){const t=wt(e);return[cn(e),t,cn(t)]}function cn(e){return e.replace(/start|end/g,t=>ii[t])}function li(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:c;default:return[]}}function ui(e,t,n,o){const r=Ke(e);let s=li(we(e),n==="start",o);return r&&(s=s.map(c=>c+"-"+r),t&&(s=s.concat(s.map(cn)))),s}function wt(e){return e.replace(/left|right|bottom|top/g,t=>si[t])}function di(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ao(e){return typeof e!="number"?di(e):{top:e,right:e,bottom:e,left:e}}function yt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function no(e,t,n){let{reference:o,floating:r}=e;const s=Se(t),c=Sn(t),a=bn(c),l=we(t),f=s==="y",d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let m;switch(l){case"top":m={x:d,y:o.y-r.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-r.width,y:u};break;default:m={x:o.x,y:o.y}}switch(Ke(t)){case"start":m[c]-=h*(n&&f?-1:1);break;case"end":m[c]+=h*(n&&f?-1:1);break}return m}const fi=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:c}=n,a=s.filter(Boolean),l=await(c.isRTL==null?void 0:c.isRTL(t));let f=await c.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=no(f,o,l),h=o,m={},g=0;for(let p=0;p<a.length;p++){const{name:w,fn:y}=a[p],{x:C,y:x,data:b,reset:S}=await y({x:d,y:u,initialPlacement:o,placement:h,strategy:r,middlewareData:m,rects:f,platform:c,elements:{reference:e,floating:t}});d=C??d,u=x??u,m={...m,[w]:{...m[w],...b}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(f=S.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:u}=no(f,h,l)),p=-1)}return{x:d,y:u,placement:h,strategy:r,middlewareData:m}};async function qe(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:c,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=ge(t,e),g=Ao(m),w=a[h?u==="floating"?"reference":"floating":u],y=yt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:f,rootBoundary:d,strategy:l})),C=u==="floating"?{x:o,y:r,width:c.floating.width,height:c.floating.height}:c.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=yt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:x,strategy:l}):C);return{top:(y.top-S.top+g.top)/b.y,bottom:(S.bottom-y.bottom+g.bottom)/b.y,left:(y.left-S.left+g.left)/b.x,right:(S.right-y.right+g.right)/b.x}}const pi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:c,elements:a,middlewareData:l}=t,{element:f,padding:d=0}=ge(e,t)||{};if(f==null)return{};const u=Ao(d),h={x:n,y:o},m=Sn(r),g=bn(m),p=await c.getDimensions(f),w=m==="y",y=w?"top":"left",C=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=s.reference[g]+s.reference[m]-h[m]-s.floating[g],S=h[m]-s.reference[m],P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f));let M=P?P[x]:0;(!M||!await(c.isElement==null?void 0:c.isElement(P)))&&(M=a.floating[x]||s.floating[g]);const _=b/2-S/2,F=M/2-p[g]/2-1,D=Ce(u[y],F),T=Ce(u[C],F),N=D,j=M-p[g]-T,k=M/2-p[g]/2+_,H=sn(N,k,j),O=!l.arrow&&Ke(r)!=null&&k!==H&&s.reference[g]/2-(k<N?D:T)-p[g]/2<0,B=O?k<N?k-N:k-j:0;return{[m]:h[m]+B,data:{[m]:H,centerOffset:k-H-B,...O&&{alignmentOffset:B}},reset:O}}}),mi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:c,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...w}=ge(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=we(r),C=Se(a),x=we(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=h||(x||!p?[wt(a)]:ai(a)),P=g!=="none";!h&&P&&S.push(...ui(a,p,g,b));const M=[a,...S],_=await qe(t,w),F=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&F.push(_[y]),u){const k=ci(r,c,b);F.push(_[k[0]],_[k[1]])}if(D=[...D,{placement:r,overflows:F}],!F.every(k=>k<=0)){var T,N;const k=(((T=s.flip)==null?void 0:T.index)||0)+1,H=M[k];if(H)return{data:{index:k,overflows:D},reset:{placement:H}};let O=(N=D.filter(B=>B.overflows[0]<=0).sort((B,I)=>B.overflows[1]-I.overflows[1])[0])==null?void 0:N.placement;if(!O)switch(m){case"bestFit":{var j;const B=(j=D.filter(I=>{if(P){const E=Se(I.placement);return E===C||E==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(E=>E>0).reduce((E,U)=>E+U,0)]).sort((I,E)=>I[1]-E[1])[0])==null?void 0:j[0];B&&(O=B);break}case"initialPlacement":O=a;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function oo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ro(e){return ri.some(t=>e[t]>=0)}const hi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=ge(e,t);switch(o){case"referenceHidden":{const s=await qe(t,{...r,elementContext:"reference"}),c=oo(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:ro(c)}}}case"escaped":{const s=await qe(t,{...r,altBoundary:!0}),c=oo(s,n.floating);return{data:{escapedOffsets:c,escaped:ro(c)}}}default:return{}}}}};async function vi(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),c=we(n),a=Ke(n),l=Se(n)==="y",f=["left","top"].includes(c)?-1:1,d=s&&l?-1:1,u=ge(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*d,y:h*f}:{x:h*f,y:m*d}}const gi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:c,middlewareData:a}=t,l=await vi(t,e);return c===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:c}}}}},wi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:a={fn:w=>{let{x:y,y:C}=w;return{x:y,y:C}}},...l}=ge(e,t),f={x:n,y:o},d=await qe(t,l),u=Se(we(r)),h=Cn(u);let m=f[h],g=f[u];if(s){const w=h==="y"?"top":"left",y=h==="y"?"bottom":"right",C=m+d[w],x=m-d[y];m=sn(C,m,x)}if(c){const w=u==="y"?"top":"left",y=u==="y"?"bottom":"right",C=g+d[w],x=g-d[y];g=sn(C,g,x)}const p=a.fn({...t,[h]:m,[u]:g});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[h]:s,[u]:c}}}}}},yi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:c}=t,{offset:a=0,mainAxis:l=!0,crossAxis:f=!0}=ge(e,t),d={x:n,y:o},u=Se(r),h=Cn(u);let m=d[h],g=d[u];const p=ge(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const x=h==="y"?"height":"width",b=s.reference[h]-s.floating[x]+w.mainAxis,S=s.reference[h]+s.reference[x]-w.mainAxis;m<b?m=b:m>S&&(m=S)}if(f){var y,C;const x=h==="y"?"width":"height",b=["top","left"].includes(we(r)),S=s.reference[u]-s.floating[x]+(b&&((y=c.offset)==null?void 0:y[u])||0)+(b?0:w.crossAxis),P=s.reference[u]+s.reference[x]+(b?0:((C=c.offset)==null?void 0:C[u])||0)-(b?w.crossAxis:0);g<S?g=S:g>P&&(g=P)}return{[h]:m,[u]:g}}}},xi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:c,elements:a}=t,{apply:l=()=>{},...f}=ge(e,t),d=await qe(t,f),u=we(r),h=Ke(r),m=Se(r)==="y",{width:g,height:p}=s.floating;let w,y;u==="top"||u==="bottom"?(w=u,y=h===(await(c.isRTL==null?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,w=h==="end"?"top":"bottom");const C=p-d.top-d.bottom,x=g-d.left-d.right,b=Ce(p-d[w],C),S=Ce(g-d[y],x),P=!t.middlewareData.shift;let M=b,_=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(M=C),P&&!h){const D=te(d.left,0),T=te(d.right,0),N=te(d.top,0),j=te(d.bottom,0);m?_=g-2*(D!==0||T!==0?D+T:te(d.left,d.right)):M=p-2*(N!==0||j!==0?N+j:te(d.top,d.bottom))}await l({...t,availableWidth:_,availableHeight:M});const F=await c.getDimensions(a.floating);return g!==F.width||p!==F.height?{reset:{rects:!0}}:{}}}};function Tt(){return typeof window<"u"}function Ge(e){return _o(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=(_o(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _o(e){return Tt()?e instanceof Node||e instanceof ne(e).Node:!1}function ae(e){return Tt()?e instanceof Element||e instanceof ne(e).Element:!1}function pe(e){return Tt()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function so(e){return!Tt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}function ot(e){const{overflow:t,overflowX:n,overflowY:o,display:r}
vendor: 8,581 bytes, line 1
1=le(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Ci(e){return["table","td","th"].includes(Ge(e))}function Mt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function En(e){const t=Rn(),n=ae(e)?le(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function bi(e){let t=Ee(e);for(;pe(t)&&!He(t);){if(En(t))return t;if(Mt(t))return null;t=Ee(t)}return null}function Rn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function He(e){return["html","body","#document"].includes(Ge(e))}function le(e){return ne(e).getComputedStyle(e)}function At(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ee(e){if(Ge(e)==="html")return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||me(e);return so(t)?t.host:t}function Io(e){const t=Ee(e);return He(t)?e.ownerDocument?e.ownerDocument.body:e.body:pe(t)&&ot(t)?t:Io(t)}function Qe(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Io(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),c=ne(r);if(s){const a=an(c);return t.concat(c,c.visualViewport||[],ot(r)?r:[],a&&n?Qe(a):[])}return t.concat(r,Qe(r,[],n))}function an(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oo(e){const t=le(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=pe(e),s=r?e.offsetWidth:n,c=r?e.offsetHeight:o,a=gt(n)!==s||gt(o)!==c;return a&&(n=s,o=c),{width:n,height:o,$:a}}function Pn(e){return ae(e)?e:e.contextElement}function $e(e){const t=Pn(e);if(!pe(t))return be(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Oo(t);let c=(s?gt(n.width):n.width)/o,a=(s?gt(n.height):n.height)/r;return(!c||!Number.isFinite(c))&&(c=1),(!a||!Number.isFinite(a))&&(a=1),{x:c,y:a}}const Si=be(0);function Do(e){const t=ne(e);return!Rn()||!t.visualViewport?Si:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ei(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ne(e)?!1:t}function _e(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Pn(e);let c=be(1);t&&(o?ae(o)&&(c=$e(o)):c=$e(e));const a=Ei(s,n,o)?Do(s):be(0);let l=(r.left+a.x)/c.x,f=(r.top+a.y)/c.y,d=r.width/c.x,u=r.height/c.y;if(s){const h=ne(s),m=o&&ae(o)?ne(o):o;let g=h,p=an(g);for(;p&&o&&m!==g;){const w=$e(p),y=p.getBoundingClientRect(),C=le(p),x=y.left+(p.clientLeft+parseFloat(C.paddingLeft))*w.x,b=y.top+(p.clientTop+parseFloat(C.paddingTop))*w.y;l*=w.x,f*=w.y,d*=w.x,u*=w.y,l+=x,f+=b,g=ne(p),p=an(g)}}return yt({width:d,height:u,x:l,y:f})}function Ri(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",c=me(o),a=t?Mt(t.floating):!1;if(o===c||a&&s)return n;let l={scrollLeft:0,scrollTop:0},f=be(1);const d=be(0),u=pe(o);if((u||!u&&!s)&&((Ge(o)!=="body"||ot(c))&&(l=At(o)),pe(o))){const h=_e(o);f=$e(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+d.x,y:n.y*f.y-l.scrollTop*f.y+d.y}}function Pi(e){return Array.from(e.getClientRects())}function ln(e,t){const n=At(e).scrollLeft;return t?t.left+n:_e(me(e)).left+n}function Ti(e){const t=me(e),n=At(e),o=e.ownerDocument.body,r=te(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=te(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+ln(e);const a=-n.scrollTop;return le(o).direction==="rtl"&&(c+=te(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:c,y:a}}function Mi(e,t){const n=ne(e),o=me(e),r=n.visualViewport;let s=o.clientWidth,c=o.clientHeight,a=0,l=0;if(r){s=r.width,c=r.height;const f=Rn();(!f||f&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:c,x:a,y:l}}function Ai(e,t){const n=_e(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=pe(e)?$e(e):be(1),c=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,f=o*s.y;return{width:c,height:a,x:l,y:f}}function io(e,t,n){let o;if(t==="viewport")o=Mi(e,n);else if(t==="document")o=Ti(me(e));else if(ae(t))o=Ai(t,n);else{const r=Do(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return yt(o)}function No(e,t){const n=Ee(e);return n===t||!ae(n)||He(n)?!1:le(n).position==="fixed"||No(n,t)}function _i(e,t){const n=t.get(e);if(n)return n;let o=Qe(e,[],!1).filter(a=>ae(a)&&Ge(a)!=="body"),r=null;const s=le(e).position==="fixed";let c=s?Ee(e):e;for(;ae(c)&&!He(c);){const a=le(c),l=En(c);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ot(c)&&!l&&No(e,c))?o=o.filter(d=>d!==c):r=a,c=Ee(c)}return t.set(e,o),o}function Ii(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[...n==="clippingAncestors"?Mt(t)?[]:_i(t,this._c):[].concat(n),o],a=c[0],l=c.reduce((f,d)=>{const u=io(t,d,r);return f.top=te(u.top,f.top),f.right=Ce(u.right,f.right),f.bottom=Ce(u.bottom,f.bottom),f.left=te(u.left,f.left),f},io(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Oi(e){const{width:t,height:n}=Oo(e);return{width:t,height:n}}function Di(e,t,n){const o=pe(t),r=me(t),s=n==="fixed",c=_e(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=be(0);if(o||!o&&!s)if((Ge(t)!=="body"||ot(r))&&(a=At(t)),o){const m=_e(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else r&&(l.x=ln(r));let f=0,d=0;if(r&&!o&&!s){const m=r.getBoundingClientRect();d=m.top+a.scrollTop,f=m.left+a.scrollLeft-ln(r,m)}const u=c.left+a.scrollLeft-l.x-f,h=c.top+a.scrollTop-l.y-d;return{x:u,y:h,width:c.width,height:c.height}}function Yt(e){return le(e).position==="static"}function co(e,t){if(!pe(e)||le(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return me(e)===n&&(n=n.ownerDocument.body),n}function Lo(e,t){const n=ne(e);if(Mt(e))return n;if(!pe(e)){let r=Ee(e);for(;r&&!He(r);){if(ae(r)&&!Yt(r))return r;r=Ee(r)}return n}let o=co(e,t);for(;o&&Ci(o)&&Yt(o);)o=co(o,t);return o&&He(o)&&Yt(o)&&!En(o)?n:o||bi(e)||n}const Ni=async function(e){const t=this.getOffsetParent||Lo,n=this.getDimensions,o=await n(e.floating);return{reference:Di(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Li(e){return le(e).direction==="rtl"}const ki={convertOffsetParentRelativeRectToViewportRelativeRect:Ri,getDocumentElement:me,getClippingRect:Ii,getOffsetParent:Lo,getElementRects:Ni,getClientRects:Pi,getDimensions:Oi,getScale:$e,isElement:ae,isRTL:Li};function ji(e,t){let n=null,o;const r=me(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function c(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:f,top:d,width:u,height:h}=e.getBoundingClientRect();if(a||t(),!u||!h)return;const m=at(d),g=at(r.clientWidth-(f+u)),p=at(r.clientHeight-(d+h)),w=at(f),C={rootMargin:-m+"px "+-g+"px "+-p+"px "+-w+"px",threshold:te(0,Ce(1,l))||1};let x=!0;function b(S){const P=S[0].intersectionRatio;if(P!==l){if(!x)return c();P?c(!1,P):o=setTimeout(()=>{c(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(b,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(b,C)}n.observe(e)}return c(!0),s}function Fi(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=Pn(e),d=r||s?[...f?Qe(f):[],...Qe(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const u=f&&a?ji(f,n):null;let h=-1,m=null;c&&(m=new ResizeObserver(y=>{let[C]=y;C&&C.target===f&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),f&&!l&&m.observe(f),m.observe(t));let g,p=l?_e(e):null;l&&w();function w(){const y=_e(e);p&&(y.x!==p.x||y.y!==p.y||y.width!==p.width||y.height!==p.height)&&n(),p=y,g=requestAnimationFrame(w)}return n(),()=>{var y;d.forEach(C=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),u?.(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const $i=gi,Bi=wi,Hi=mi,Wi=xi,Vi=hi,ao=pi,Ui=yi,Ki=(e,t,n)=>{const o=new Map,r={platform:ki,...n},s={...r.platform,_c:o};return fi(e,t,{...r,platform:s})};var mt=typeof document<"u"?i.useLayoutEffect:i.useEffect;function xt(e,t){if(e===t)return!0;
vendor: 1,498 bytes, line 1
1if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!xt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!xt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ko(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lo(e,t){const n=ko(e);return Math.round(t*n)/n}function Xt(e){const t=i.useRef(e);return mt(()=>{t.current=e}),t}function Gi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:c}={},transform:a=!0,whileElementsMounted:l,open:f}=e,[d,u]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=i.useState(o);xt(h,o)||m(o);const[g,p]=i.useState(null),[w,y]=i.useState(null),C=i.useCallback(I=>{I!==P.current&&(P.current=I,p(I))},[]),x=i.useCallback(I=>{I!==M.current&&(M.current=I,y(I))},[]),b=s||g,S=c||w,P=i.useRef(null),M=i.useRef(null),_=i.useRef(d),F=l!=null,D=Xt(l),T=Xt(r),N=Xt(f),j=i.useCallback(()=>{if(!P.current||!M.current)return;const I={placement:t,strategy:n,middleware:h};T.current&&(I.platform=T.current),Ki(P.current,M.current,I).then(E=>{const U={...E,isPositioned:N.current!==!1};
vendor: 5,197 bytes, line 1
1k.current&&!xt(_.current,U)&&(_.current=U,nt.flushSync(()=>{u(U)}))})},[h,t,n,T,N]);mt(()=>{f===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(I=>({...I,isPositioned:!1})))},[f]);const k=i.useRef(!1);mt(()=>(k.current=!0,()=>{k.current=!1}),[]),mt(()=>{if(b&&(P.current=b),S&&(M.current=S),b&&S){if(D.current)return D.current(b,S,j);j()}},[b,S,j,D,F]);const H=i.useMemo(()=>({reference:P,floating:M,setReference:C,setFloating:x}),[C,x]),O=i.useMemo(()=>({reference:b,floating:S}),[b,S]),B=i.useMemo(()=>{const I={position:n,left:0,top:0};if(!O.floating)return I;const E=lo(O.floating,d.x),U=lo(O.floating,d.y);return a?{...I,transform:"translate("+E+"px, "+U+"px)",...ko(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:E,top:U}},[n,a,O.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:j,refs:H,elements:O,floatingStyles:B}),[d,j,H,O,B])}const zi=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?ao({element:o.current,padding:r}).fn(n):{}:o?ao({element:o,padding:r}).fn(n):{}}}},Yi=(e,t)=>({...$i(e),options:[e,t]}),Xi=(e,t)=>({...Bi(e),options:[e,t]}),Zi=(e,t)=>({...Ui(e),options:[e,t]}),qi=(e,t)=>({...Hi(e),options:[e,t]}),Qi=(e,t)=>({...Wi(e),options:[e,t]}),Ji=(e,t)=>({...Vi(e),options:[e,t]}),ec=(e,t)=>({...zi(e),options:[e,t]});var tc="Arrow",jo=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return v.jsx(L.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});jo.displayName=tc;var nc=jo;function oc(e){const[t,n]=i.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let c,a;if("borderBoxSize"in s){const l=s.borderBoxSize,f=Array.isArray(l)?l[0]:l;c=f.inlineSize,a=f.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Tn="Popper",[Fo,ze]=ye(Tn),[rc,$o]=Fo(Tn),Bo=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null),[s,c]=i.useState(void 0);return v.jsx(rc,{scope:t,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:c,children:n})};Bo.displayName=Tn;var Ho="PopperAnchor",Wo=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=$o(Ho,n),c=i.useRef(null),a=s.onAnchorChange,l=i.useCallback(g=>{c.current=g,g&&a(g)},[a]),f=$(t,l),d=i.useRef(null);i.useEffect(()=>{if(!o)return;const g=d.current;d.current=o.current,g!==d.current&&a(d.current)});const u=s.placementState&&An(s.placementState),h=u?.[0],m=u?.[1];return o?null:v.jsx(L.div,{"data-radix-popper-side":h,"data-radix-popper-align":m,...r,ref:f})});Wo.displayName=Ho;var Mn="PopperContent",[sc,ic]=Fo(Mn),Vo=i.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:f=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...p}=e,w=$o(Mn,n),[y,C]=i.useState(null),x=$(t,C),[b,S]=i.useState(null),P=oc(b),M=P?.width??0,_=P?.height??0,F=o+(s!=="center"?"-"+s:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},T=Array.isArray(f)?f:[f],N=T.length>0,j={padding:D,boundary:T.filter(ac),altBoundary:N},{refs:k,floatingStyles:H,placement:O,isPositioned:B,middlewareData:I}=Gi({strategy:"fixed",placement:F,whileElementsMounted:(...W)=>Fi(...W,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[Yi({mainAxis:r+_,alignmentAxis:c}),l&&Xi({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Zi():void 0,...j}),l&&qi({...j}),Qi({...j,apply:({elements:W,rects:q,availableWidth:V,availableHeight:K})=>{const{width:z,height:ve}=q.reference,oe=W.floating.style;oe.setProperty("--radix-popper-available-width",`${V}px`),oe.setProperty("--radix-popper-available-height",`${K}px`),oe.setProperty("--radix-popper-anchor-width",`${z}px`),oe.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),b&&ec({element:b,padding:a}),lc({arrowWidth:M,arrowHeight:_}),h&&Ji({strategy:"referenceHidden",...j,boundary:N?j.boundary:void 0})]}),E=w.setPlacementState;Y(()=>(E(O),()=>{E(void 0)}),[O,E]);const[U,X]=An(O),G=se(g);Y(()=>{B&&G?.()},[B,G]);const Z=I.arrow?.x,Q=I.arrow?.y,he=I.arrow?.centerOffset!==0,[ee,A]=i.useState();return Y(()=>{y&&A(window.getComputedStyle(y).zIndex)},[y]),v.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:B?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(sc,{scope:n,placedSide:U,placedAlign:X,onArrowChange:S,arrowX:Z,arrowY:Q,shouldHideArrow:he,children:v.jsx(L.div,{"data-side":U,"data-align":X,...p,ref:x,style:{...p.style,animation:B?void 0:"none"}})})})});Vo.displayName=Mn;var Uo="PopperArrow",cc={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},Ko=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=ic(Uo,o),c=cc[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(nc,{...r,ref:n,style:{...r.style,display:"block"}})})});Ko.displayName=Uo;function ac(e){return e!==null}var lc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,c=r.arrow?.centerOffset!==0,a=c?0:e.arrowWidth,l=c?0:e.arrowHeight,[f,d]=An(n),u={start:"0%",center:"50%",end:"100%"}[d],h=(r.arrow?.x??0)+a/2,m=(r.arrow?.y??0)+l/2;let g="",p="";return f==="bottom"?(g=c?u:`${h}px`,p=`${-l}px`):f==="top"?(g=c?u:`${h}px`,p=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,p=c?u:`${m}px`):f==="left"&&(g=`${o.floating.width+l}px`,p=c?u:`${m}px`),{data:{x:g,y:p}}}});function An(e){const[t,n="center"]=e.split("-");return[t,n]}var _n=Bo,In=Wo,On=Vo,Dn=Ko,[_t,Xu]=ye("Tooltip",[ze]),It=ze(),Go="TooltipProvider",uc=700,un="tooltip.open",[dc,Nn]=_t(Go),zo=e=>{const{__scopeTooltip:t,delayDuration:n=uc,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,c=i.useRef(!0),a=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),v.jsx(dc,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:i.useCallback(()=>{o<=0||(window.clearTimeout(l.current),c.current=!1)},[o]),onClose:i.useCallback(()=>{o<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>c.current=!0,o))},[o]),isPointerInTransitRef:a,onPointerInTransitChange:i.useCallback(f=>{a.current=f},[]),disableHoverableContent:r,children:s})};zo.displayName=Go;var Je="Tooltip",[fc,Ot]=_t(Je),Yo=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:c,delayDuration:a}=e,l=Nn(Je,e.__scopeTooltip),f=It(t),[d,u]=i.useState(null),h=ce(),m=i.useRef(0),g=c??l.disableHoverableContent,p=a??l.delayDuration,w=i.useRef(!1),[y,C]=Ae({prop:o,defaultProp:r??!1,onChange:M=>{M?(l.onOpen(),document.dispatchEvent(new CustomEvent(un))):l.onClose(),s?.(M)},caller:Je}),x=i.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),b=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w.current=!1,C(!0)},[C]),S=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,C(!1)},[C]),P=i.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,C(!0),m.current=0},p)},[p,C]);return i.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),v.jsx(_n,{...f,children:v.jsx(fc,{scope:t,contentId:h,open:y,stateAttribute:x,trigger:d,onTriggerChange:u,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayedRef.current?P():b()},[l.isOpenDelayedRef,P,b]),onTriggerLeave:i.useCallback(()=>{g?S():(window.clearTimeout(m.current),m.current=0)},[S,g]),onOpen:b,onClose:S,disableHoverableContent:g,children:n})})};Yo.displayName=Je;var dn="TooltipTrigger",Xo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ot(dn,n),s=Nn(dn,n),c=It(n),a=i.useRef(null),l=$(t,a,r.onTriggerChange),f=i.useRef(!1),d=i.useRef(!1),u=i.useCallback(()=>f.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),v.jsx(In,{asChild:!0,...c,children:v.jsx(L.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:R(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:R(e.onPointerDown,()=>{r.open&&r.onClose(),f.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:R(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:R(e.onBlur,r.onClose),onClick:R(e.onClick,r.onClose)})})});Xo.displayName=dn;var pc="TooltipPortal",[Zu,mc]=_t(pc,{forceMount:void 0}),We="TooltipContent",Zo=i.forwardRef((e,t)=>
vendor: 13,656 bytes, lines 1-16
1{const n=mc(We,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,c=Ot(We,e.__scopeTooltip);return v.jsx(ue,{present:o||c.open,children:c.disableHoverableContent?v.jsx(qo,{side:r,...s,ref:t}):v.jsx(hc,{side:r,...s,ref:t})})}),hc=i.forwardRef((e,t)=>{const n=Ot(We,e.__scopeTooltip),o=Nn(We,e.__scopeTooltip),r=i.useRef(null),s=$(t,r),[c,a]=i.useState(null),{trigger:l,onClose:f}=n,d=r.current,{onPointerInTransitChange:u}=o,h=i.useCallback(()=>{a(null),u(!1)},[u]),m=i.useCallback((g,p)=>{const w=g.currentTarget,y={x:g.clientX,y:g.clientY},C=xc(y,w.getBoundingClientRect()),x=Cc(y,C),b=bc(p.getBoundingClientRect()),S=Ec([...x,...b]);a(S),u(!0)},[u]);return i.useEffect(()=>()=>h(),[h]),i.useEffect(()=>{if(l&&d){const g=w=>m(w,d),p=w=>m(w,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",p)}}},[l,d,m,h]),i.useEffect(()=>{if(c){const g=p=>{const w=p.target,y={x:p.clientX,y:p.clientY},C=l?.contains(w)||d?.contains(w),x=!Sc(y,c);C?h():x&&(h(),f())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,c,f,h]),v.jsx(qo,{...e,ref:s})}),[vc,gc]=_t(Je,{isInside:!1}),wc=Ms("TooltipContent"),qo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:c,...a}=e,l=Ot(We,n),f=It(n),{onClose:d}=l;return i.useEffect(()=>(document.addEventListener(un,d),()=>document.removeEventListener(un,d)),[d]),i.useEffect(()=>{if(l.trigger){const u=h=>{h.target instanceof Node&&h.target.contains(l.trigger)&&d()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,d]),v.jsx(Ue,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u=>u.preventDefault(),onDismiss:d,children:v.jsxs(On,{"data-state":l.stateAttribute,...f,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(wc,{children:o}),v.jsx(vc,{scope:n,isInside:!0,children:v.jsx(ti,{id:l.contentId,role:"tooltip",children:r||o})})]})})});Zo.displayName=We;var Qo="TooltipArrow",yc=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=It(n);return gc(Qo,n).isInside?null:v.jsx(Dn,{...r,...o,ref:t})});yc.displayName=Qo;function xc(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Cc(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function bc(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Sc(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const a=t[s],l=t[c],f=a.x,d=a.y,u=l.x,h=l.y;d>o!=h>o&&n<(u-f)*(o-d)/(h-d)+f&&(r=!r)}return r}function Ec(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Rc(t)}function Rc(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],c=t[t.length-2];if((s.x-c.x)*(r.y-c.y)>=(s.y-c.y)*(r.x-c.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(r.y-c.y)>=(s.y-c.y)*(r.x-c.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qu=zo,Qu=Yo,Ju=Xo,ed=Zo,Zt="focusScope.autoFocusOnMount",qt="focusScope.autoFocusOnUnmount",uo={bubbles:!1,cancelable:!0},Pc="FocusScope",Dt=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[a,l]=i.useState(null),f=se(r),d=se(s),u=i.useRef(null),h=$(t,l),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(x){if(m.paused||!a)return;const b=x.target;a.contains(b)?u.current=b:xe(u.current,{select:!0})},w=function(x){if(m.paused||!a)return;const b=x.relatedTarget;b!==null&&(a.contains(b)||xe(u.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&xe(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const C=new MutationObserver(y);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),C.disconnect()}}},[o,a,m.paused]),i.useEffect(()=>{if(a){po.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(Zt,uo);a.addEventListener(Zt,f),a.dispatchEvent(y),y.defaultPrevented||(Tc(Oc(Jo(a)),{select:!0}),document.activeElement===p&&xe(a))}return()=>{a.removeEventListener(Zt,f),setTimeout(()=>{const y=new CustomEvent(qt,uo);a.addEventListener(qt,d),a.dispatchEvent(y),y.defaultPrevented||xe(p??document.body,{select:!0}),a.removeEventListener(qt,d),po.remove(m)},0)}}},[a,f,d,m]);const g=i.useCallback(p=>{if(!n&&!o||m.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(w&&y){const C=p.currentTarget,[x,b]=Mc(C);x&&b?!p.shiftKey&&y===b?(p.preventDefault(),n&&xe(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&xe(b,{select:!0})):y===C&&p.preventDefault()}},[n,o,m.paused]);return v.jsx(L.div,{tabIndex:-1,...c,ref:h,onKeyDown:g})});Dt.displayName=Pc;function Tc(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(xe(o,{select:t}),document.activeElement!==n)return}function Mc(e){const t=Jo(e),n=fo(t,e),o=fo(t.reverse(),e);return[n,o]}function Jo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fo(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Ac(o,{upTo:t})))return o}function Ac(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 _c(e){return e instanceof HTMLInputElement&&"select"in e}function xe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_c(e)&&t&&e.select()}}var po=Ic();function Ic(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=mo(e,t),e.unshift(t)},remove(t){e=mo(e,t),e[0]?.resume()}}}function mo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Oc(e){return e.filter(t=>t.tagName!=="A")}var lt=0,Le=null;function Ln(){i.useEffect(()=>{Le||(Le={start:ho(),end:ho()});const{start:e,end:t}=Le;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),lt++,()=>{lt===1&&(Le?.start.remove(),Le?.end.remove(),Le=null),lt=Math.max(0,lt-1)}},[])}function ho(){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 fe=function(){return fe=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},fe.apply(this,arguments)};function er(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Dc(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var ht="right-scroll-bar-position",vt="width-before-scroll-bar",Nc="with-scroll-bars-hidden",Lc="--removed-body-scroll-bar-size";function Qt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kc(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var jc=typeof window<"u"?i.useLayoutEffect:i.useEffect,vo=new WeakMap;function Fc(e,t){var n=kc(null,function(o){return e.forEach(function(r){return Qt(r,o)})});return jc(function(){var o=vo.get(n);if(o){var r=new Set(o),s=new Set(e),c=n.current;r.forEach(function(a){s.has(a)||Qt(a,null)}),s.forEach(function(a){r.has(a)||Qt(a,c)})}vo.set(n,e)},[e]),n}function $c(e){return e}function Bc(e,t){t===void 0&&(t=$c);var n=[],o=!1,r={read:function(){if(o)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(s){var c=t(s,o);return n.push(c),function(){n=n.filter(function(a){return a!==c})}},assignSyncMedium:function(s){for(o=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var c=[];if(n.length){var a=n;n=[],a.forEach(s),c=n}var l=function(){var d=c;c=[],d.forEach(s)},f=function(){return Promise.resolve().then(l)};f(),n={push:function(d){c.push(d),f()},filter:function(d){return c=c.filter(d),n}}}};return r}function Hc(e){e===void 0&&(e={});var t=Bc(null);return t.options=fe({async:!0,ssr:!1},e),t}var tr=function(e){var t=e.sideCar,n=er(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return i.createElement(o,fe({},n))};tr.isSideCarExport=!0;function Wc(e,t){return e.useMedium(t),tr}var nr=Hc(),Jt=function(){},Nt=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:Jt,onWheelCapture:Jt,onTouchMoveCapture:Jt}),r=o[0],s=o[1],c=e.forwardProps,a=e.children,l=e.className,f=e.removeScrollBar,d=e.enabled,u=e.shards,h=e.sideCar,m=e.noRelative,g=e.noIsolation,p=e.inert,w=e.allowPinchZoom,y=e.as,C=y===void 0?"div":y,x=e.gapMode,b=er(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,P=Fc([n,t]),M=fe(fe({},b),r);return i.createElement(i.Fragment,null,d&&i.createElement(S,{sideCar:nr,removeScrollBar:f,shards:u,noRelative:m,noIsolation:g,inert:p,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:x}),c?i.cloneElement(i.Children.only(a),fe(fe({},M),{ref:P})):i.createElement(C,fe({},M,{className:l,ref:P}),a))});Nt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nt.classNames={fullWidth:vt,zeroRight:ht};var Vc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Uc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vc();return t&&e.setAttribute("nonce",t),e}function Kc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Uc())&&(Kc(t,n),Gc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yc=function(){var e=zc();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},or=function(){var e=Yc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Xc={left:0,top:0,right:0,gap:0},en=function(e){return parseInt(e||"",10)||0},Zc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[en(n),en(o),en(r)]},qc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xc;var t=Zc(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Qc=or(),Be="data-scroll-locked",Jc=function(e,t,n,o){var r=e.left,s=e.top,c=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Nc,` { 3 overflow: hidden `).concat(o,`; 4 padding-right: `).concat(a,"px ").concat(o,`; 5 } 6 body[`).concat(Be,`] { 7 overflow: hidden `).concat(o,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 10 padding-left: `.concat(r,`px; 11 padding-top: `).concat(s,`px; 12 padding-right: `).concat(c,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(o,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(ht,` { 20 right: `).concat(a,"px ").concat(o,`; 21 } 22 23 .`).concat(vt,` { 24 margin-right: `).concat(a,"px ").concat(o,`; 25 } 26 27 .`).concat(ht," .").concat(ht,` { 28 right: 0 `).concat(o,`; 29 } 30 31 .`).concat(vt," .").concat(vt,` { 32 margin-right: 0 `).concat(o,`; 33 } 34 35 body[`).concat(Be,`] { 36 `).concat(Lc,": ").concat(a,`px; 37 } 38`)},go=function(){var e=parseInt(document.body.getAttribute(Be)||"0",10);return isFinite(e)?e:0},ea=function(){i.useEffect(function(){return document.body.setAttribute(Be,(go()+1).toString()),function(){var e=go()-1;e<=0?document.body.removeAttribute(Be):document.body.setAttribute(Be,e.toString())}},[])},ta=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;ea();var s=i.useMemo(function(){return qc(r)},[r]);return i.createElement(Qc,{styles:Jc(s,!t,r,n?"":"!important")})},fn=!1;if(typeof window<"u")try{var ut=Object.defineProperty({},"passive",{get:function(){return fn=!0,!0}});window.addEventListener("test",ut,ut),window.removeEventListener("test",ut,ut)}catch{fn=!1}var ke=fn?{passive:!1}:!1,na=function(e){return e.tagName==="TEXTAREA"},rr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!na(e)&&n[t]==="visible")},oa=function(e){return rr(e,"overflowY")},ra=function(e){return rr(e,"overflowX")},wo=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=sr(e,o);if(r){var s=ir(e,o),c=s[1],a=s[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},sa=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},ia=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},sr=function(e,t){return e==="v"?oa(t):ra(t)},ir=function(e,t){return e==="v"?sa(t):ia(t)},ca=function(e,t){return e==="h"&&t==="rtl"?-1:1},aa=function(e,t,n,o,r){var s=ca(e,window.getComputedStyle(t).direction),c=s*o,a=n.target,l=t.contains(a),f=!1,d=c>0,u=0,h=0;do{if(!a)break;var m=ir(e,a),g=m[0],p=m[1],w=m[2],y=p-w-s*g;(g||y)&&sr(e,a)&&(u+=y,h+=g);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(u)<1||!r)||!d&&(Math.abs(h)<1||!r))&&(f=!0),f},dt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yo=function(e){return[e.deltaX,e.deltaY]},xo=function(e){return e&&"current"in e?e.current:e},la=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ua=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},da=0,je=[];function fa(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),r=i.useState(da++)[0],s=i.useState(or)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=Dc([e.lockRef.current],(e.shards||[]).map(xo),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=i.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!c.current.allowPinchZoom;var y=dt(p),C=n.current,x="deltaX"in p?p.deltaX:C[0]-y[0],b="deltaY"in p?p.deltaY:C[1]-y[1],S,P=p.target,M=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in p&&M==="h"&&P.type==="range")return!1;var _=window.getSelection(),F=_&&_.anchorNode,D=F?F===P||F.contains(P):!1;if(D)return!1;var T=wo(M,P);if(!T)return!0;if(T?S=M:(S=M==="v"?"h":"v",T=wo(M,P)),!T)return!1;if(!o.current&&"changedTouches"in p&&(x||b)&&(o.current=S),!S)return!0;var N=o.current||S;return aa(N,w,p,N==="h"?x:b,!0)},[]),l=i.useCallback(function(p){var w=p;if(!(!je.length||je[je.length-1]!==s)){var y="deltaY"in w?yo(w):dt(w),C=t.current.filter(function(S){return S.name===w.t
vendor: 8,908 bytes, line 41
41ype&&(S.target===w.target||w.target===S.shadowParent)&&la(S.delta,y)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var x=(c.current.shards||[]).map(xo).filter(Boolean).filter(function(S){return S.contains(w.target)}),b=x.length>0?a(w,x[0]):!c.current.noIsolation;b&&w.cancelable&&w.preventDefault()}}},[]),f=i.useCallback(function(p,w,y,C){var x={name:p,delta:w,target:y,should:C,shadowParent:pa(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),d=i.useCallback(function(p){n.current=dt(p),o.current=void 0},[]),u=i.useCallback(function(p){f(p.type,yo(p),p.target,a(p,e.lockRef.current))},[]),h=i.useCallback(function(p){f(p.type,dt(p),p.target,a(p,e.lockRef.current))},[]);i.useEffect(function(){return je.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ke),document.addEventListener("touchmove",l,ke),document.addEventListener("touchstart",d,ke),function(){je=je.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,ke),document.removeEventListener("touchmove",l,ke),document.removeEventListener("touchstart",d,ke)}},[]);var m=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(s,{styles:ua(r)}):null,m?i.createElement(ta,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pa(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ma=Wc(nr,fa);var Lt=i.forwardRef(function(e,t){return i.createElement(Nt,fe({},e,{ref:t,sideCar:ma}))});Lt.classNames=Nt.classNames;var ha=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fe=new WeakMap,ft=new WeakMap,pt={},tn=0,cr=function(e){return e&&(e.host||cr(e.parentNode))},va=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=cr(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ga=function(e,t,n,o){var r=va(t,Array.isArray(e)?e:[e]);pt[n]||(pt[n]=new WeakMap);var s=pt[n],c=[],a=new Set,l=new Set(r),f=function(u){!u||a.has(u)||(a.add(u),f(u.parentNode))};r.forEach(f);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(o),g=m!==null&&m!=="false",p=(Fe.get(h)||0)+1,w=(s.get(h)||0)+1;Fe.set(h,p),s.set(h,w),c.push(h),p===1&&g&&ft.set(h,!0),w===1&&h.setAttribute(n,"true"),g||h.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),a.clear(),tn++,function(){c.forEach(function(u){var h=Fe.get(u)-1,m=s.get(u)-1;Fe.set(u,h),s.set(u,m),h||(ft.has(u)||u.removeAttribute(o),ft.delete(u)),m||u.removeAttribute(n)}),tn--,tn||(Fe=new WeakMap,Fe=new WeakMap,ft=new WeakMap,pt={})}},kn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=ha(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),ga(o,r,n,"aria-hidden")):function(){return null}},kt="Dialog",[ar,td]=ye(kt),[wa,de]=ar(kt),ya=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!0}=e,a=i.useRef(null),l=i.useRef(null),[f,d]=Ae({prop:o,defaultProp:r??!1,onChange:s,caller:kt});return v.jsx(wa,{scope:t,triggerRef:a,contentRef:l,contentId:ce(),titleId:ce(),descriptionId:ce(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(u=>!u),[d]),modal:c,children:n})};ya.displayName=kt;var lr="DialogTrigger",xa=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=de(lr,n),s=$(t,r.triggerRef);return v.jsx(L.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":Fn(r.open),...o,ref:s,onClick:R(e.onClick,r.onOpenToggle)})});xa.displayName=lr;var jn="DialogPortal",[Ca,ur]=ar(jn,{forceMount:void 0}),ba=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=de(jn,t);return v.jsx(Ca,{scope:t,forceMount:n,children:i.Children.map(o,c=>v.jsx(ue,{present:n||s.open,children:v.jsx(Pt,{asChild:!0,container:r,children:c})}))})};ba.displayName=jn;var Ct="DialogOverlay",Sa=i.forwardRef((e,t)=>{const n=ur(Ct,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=de(Ct,e.__scopeDialog);return s.modal?v.jsx(ue,{present:o||s.open,children:v.jsx(Ra,{...r,ref:t})}):null});Sa.displayName=Ct;var Ea=Me("DialogOverlay.RemoveScroll"),Ra=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=de(Ct,n),s=Ws(),c=$(t,s);return v.jsx(Lt,{as:Ea,allowPinchZoom:!0,shards:[r.contentRef],children:v.jsx(L.div,{"data-state":Fn(r.open),...o,ref:c,style:{pointerEvents:"auto",...o.style}})})}),Ve="DialogContent",Pa=i.forwardRef((e,t)=>{const n=ur(Ve,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=de(Ve,e.__scopeDialog);return v.jsx(ue,{present:o||s.open,children:s.modal?v.jsx(Ta,{...r,ref:t}):v.jsx(Ma,{...r,ref:t})})});Pa.displayName=Ve;var Ta=i.forwardRef((e,t)=>{const n=de(Ve,e.__scopeDialog),o=i.useRef(null),r=$(t,n.contentRef,o);return i.useEffect(()=>{const s=o.current;if(s)return kn(s)},[]),v.jsx(dr,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:R(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&s.preventDefault()}),onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault())})}),Ma=i.forwardRef((e,t)=>{const n=de(Ve,e.__scopeDialog),o=i.useRef(!1),r=i.useRef(!1);return v.jsx(dr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),dr=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...c}=e,a=de(Ve,n);return Ln(),v.jsx(v.Fragment,{children:v.jsx(Dt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:v.jsx(Ue,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Fn(a.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>a.onOpenChange(!1)})})})}),fr="DialogTitle",Aa=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=de(fr,n);return v.jsx(L.h2,{id:r.titleId,...o,ref:t})});Aa.displayName=fr;var pr="DialogDescription",_a=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=de(pr,n);return v.jsx(L.p,{id:r.descriptionId,...o,ref:t})});_a.displayName=pr;var mr="DialogClose",Ia=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=de(mr,n);return v.jsx(L.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});Ia.displayName=mr;function Fn(e){return e?"open":"closed"}var Oa=i.createContext(void 0);function $n(e){const t=i.useContext(Oa);return e||t||"ltr"}var nn=!1;function Da(){const[e,t]=i.useState(nn);return i.useEffect(()=>{nn||(nn=!0,t(!0))},[]),e}var hr=Rt[" useSyncExternalStore ".trim().toString()];function Na(){return()=>{}}function La(){return hr(Na,()=>!0,()=>!1)}var ka=typeof hr=="function"?La:Da,on="rovingFocusGroup.onEntryFocus",ja={bubbles:!1,cancelable:!0},rt="RovingFocusGroup",[pn,vr,Fa]=yn(rt),[$a,gr]=ye(rt,[Fa]),[Ba,Ha]=$a(rt),wr=i.forwardRef((e,t)=>v.jsx(pn.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(pn.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(Wa,{...e,ref:t})})}));wr.displayName=rt;var Wa=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,...u}=e,h=i.useRef(null),m=$(t,h),g=$n(s),[p,w]=Ae({prop:c,defaultProp:a??null,onChange:l,caller:rt}),[y,C]=i.useState(!1),x=se(f),b=vr(n),S=i.useRef(!1),[P,M]=i.useState(0);return i.useEffect(()=>{const _=h.current;if(_)return _.addEventListener(on,x),()=>_.removeEventListener(on,x)},[x]),v.jsx(Ba,{scope:n,orientation:o,dir:g,loop:r,currentTabStopId:p,onItemFocus:i.useCallback(_=>w(_),[w]),onItemShiftTab:i.useCallback(()=>C(!0),[]),onFocusableItemAdd:i.useCallback(()=>M(_=>_+1),[]),onFocusableItemRemove:i.useCallback(()=>M(_=>_-1),[]),children:v.jsx(L.div,{tabIndex:y||P===0?-1:0,"data-orientation":o,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{S.current=!0}),onFocus:R(e.onFocus,_=>{const F=!S.current;if(_.target===_.currentTarget&&F&&!y){const D=new CustomEvent(on,ja);if(_.currentTarget.dispatchEvent(D),!D.defaultPrevented){const T=b().filter(O=>O.focusable),N=T.find(O=>O.active),j=T.find(O=>
vendor: 4,364 bytes, line 41
41O.id===p),H=[N,j,...T].filter(Boolean).map(O=>O.ref.current);Cr(H,d)}}S.current=!1}),onBlur:R(e.onBlur,()=>C(!1))})})}),yr="RovingFocusGroupItem",xr=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:c,...a}=e,l=ce(),f=s||l,d=Ha(yr,n),u=d.currentTabStopId===f,h=vr(n),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:p}=d,w=ka();return Y(()=>{if(!(!w||!o))return m(),()=>g()},[w,o,m,g]),i.useEffect(()=>{if(!(w||!o))return m(),()=>g()},[w,o,m,g]),v.jsx(pn.ItemSlot,{scope:n,id:f,focusable:o,active:r,children:v.jsx(L.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:R(e.onMouseDown,y=>{o?d.onItemFocus(f):y.preventDefault()}),onFocus:R(e.onFocus,()=>d.onItemFocus(f)),onKeyDown:R(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){d.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const C=Ka(y,d.orientation,d.dir);if(C!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let b=h().filter(S=>S.focusable).map(S=>S.ref.current);if(C==="last")b.reverse();else if(C==="prev"||C==="next"){C==="prev"&&b.reverse();const S=b.indexOf(y.currentTarget);b=d.loop?Ga(b,S+1):b.slice(S+1)}setTimeout(()=>Cr(b))}}),children:typeof c=="function"?c({isCurrentTabStop:u,hasTabStop:p!=null}):c})})});xr.displayName=yr;var Va={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ua(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ka(e,t,n){const o=Ua(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Va[o]}function Cr(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Ga(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var za=wr,Ya=xr,mn=["Enter"," "],Xa=["ArrowDown","PageUp","Home"],br=["ArrowUp","PageDown","End"],Za=[...Xa,...br],qa={ltr:[...mn,"ArrowRight"],rtl:[...mn,"ArrowLeft"]},Qa={ltr:["ArrowLeft"],rtl:["ArrowRight"]},st="Menu",[et,Ja,el]=yn(st),[Oe,Sr]=ye(st,[el,ze,gr]),jt=ze(),Er=gr(),[tl,De]=Oe(st),[nl,it]=Oe(st),Rr=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:c=!0}=e,a=jt(t),[l,f]=i.useState(null),d=i.useRef(!1),u=se(s),h=$n(r);return i.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),i.useEffect(()=>{if(!n)return;const m=()=>u(!1);return window.addEventListener("blur",m),()=>window.removeEventListener("blur",m)},[n,u]),v.jsx(_n,{...a,children:v.jsx(tl,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:f,children:v.jsx(nl,{scope:t,onClose:i.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:h,modal:c,children:o})})})};Rr.displayName=st;var ol="MenuAnchor",Bn=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=jt(n);return v.jsx(In,{...r,...o,ref:t})});Bn.displayName=ol;var Hn="MenuPortal",[rl,Pr]=Oe(Hn,{forceMount:void 0}),Tr=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=De(Hn,t);return v.jsx(rl,{scope:t,forceMount:n,children:v.jsx(ue,{present:n||s.open,children:v.jsx(Pt,{asChild:!0,container:r,children:o})})})};Tr.displayName=Hn;var re="MenuContent",[sl,Wn]=Oe(re),Mr=i.forwardRef((e,t)=>{const n=Pr(re,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=De(re,e.__scopeMenu),c=it(re,e.__scopeMenu);return v.jsx(et.Provider,{scope:e.__scopeMenu,children:v.jsx(ue,{present:o||s.open,children:v.jsx(et.Slot,{scope:e.__scopeMenu,children:c.modal?v.jsx(il,{...r,ref:t}):v.jsx(cl,{...r,ref:t})})})})}),il=i.forwardRef((e,t)=>{const n=De(re,e.__scopeMenu),o=i.useRef(null),r=$(t,o);return i.useEffect(()=>{const s=o.current;if(s)return kn(s)},[]),v.jsx(Vn,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),cl=i.forwardRef((e,t)=>
vendor: 20,571 bytes, line 41
41{const n=De(re,e.__scopeMenu);return v.jsx(Vn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),al=Me("MenuContent.ScrollLock"),Vn=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...p}=e,w=De(re,n),y=it(re,n),C=jt(n),x=Er(n),b=Ja(n),[S,P]=i.useState(null),M=i.useRef(null),_=$(t,M,w.onContentChange),F=i.useRef(0),D=i.useRef(""),T=i.useRef(0),N=i.useRef(null),j=i.useRef("right"),k=i.useRef(0),H=g?Lt:i.Fragment,O=g?{as:al,allowPinchZoom:!0}:void 0,B=E=>{const U=D.current+E,X=b().filter(A=>!A.disabled),G=document.activeElement,Z=X.find(A=>A.ref.current===G)?.textValue,Q=X.map(A=>A.textValue),he=xl(Q,U,Z),ee=X.find(A=>A.textValue===he)?.ref.current;(function A(W){D.current=W,window.clearTimeout(F.current),W!==""&&(F.current=window.setTimeout(()=>A(""),1e3))})(U),ee&&setTimeout(()=>ee.focus())};i.useEffect(()=>()=>window.clearTimeout(F.current),[]),Ln();const I=i.useCallback(E=>j.current===N.current?.side&&bl(E,N.current?.area),[]);return v.jsx(sl,{scope:n,searchRef:D,onItemEnter:i.useCallback(E=>{I(E)&&E.preventDefault()},[I]),onItemLeave:i.useCallback(E=>{I(E)||(M.current?.focus(),P(null))},[I]),onTriggerLeave:i.useCallback(E=>{I(E)&&E.preventDefault()},[I]),pointerGraceTimerRef:T,onPointerGraceIntentChange:i.useCallback(E=>{N.current=E},[]),children:v.jsx(H,{...O,children:v.jsx(Dt,{asChild:!0,trapped:r,onMountAutoFocus:R(s,E=>{E.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:v.jsx(Ue,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:h,onDismiss:m,children:v.jsx(za,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:P,onEntryFocus:R(l,E=>{y.isUsingKeyboardRef.current||E.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(On,{role:"menu","aria-orientation":"vertical","data-state":Ur(w.open),"data-radix-menu-content":"",dir:y.dir,...C,...p,ref:_,style:{outline:"none",...p.style},onKeyDown:R(p.onKeyDown,E=>{const X=E.target.closest("[data-radix-menu-content]")===E.currentTarget,G=E.ctrlKey||E.altKey||E.metaKey,Z=E.key.length===1;X&&(E.key==="Tab"&&E.preventDefault(),!G&&Z&&B(E.key));const Q=M.current;if(E.target!==Q||!Za.includes(E.key))return;E.preventDefault();const ee=b().filter(A=>!A.disabled).map(A=>A.ref.current);br.includes(E.key)&&ee.reverse(),wl(ee)}),onBlur:R(e.onBlur,E=>{E.currentTarget.contains(E.target)||(window.clearTimeout(F.current),D.current="")}),onPointerMove:R(e.onPointerMove,tt(E=>{const U=E.target,X=k.current!==E.clientX;if(E.currentTarget.contains(U)&&X){const G=E.clientX>k.current?"right":"left";j.current=G,k.current=E.clientX}}))})})})})})})});Mr.displayName=re;var ll="MenuGroup",Un=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return v.jsx(L.div,{role:"group",...o,ref:t})});Un.displayName=ll;var ul="MenuLabel",Ar=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return v.jsx(L.div,{...o,ref:t})});Ar.displayName=ul;var bt="MenuItem",Co="menu.itemSelect",Ft=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=i.useRef(null),c=it(bt,e.__scopeMenu),a=Wn(bt,e.__scopeMenu),l=$(t,s),f=i.useRef(!1),d=()=>{const u=s.current;if(!n&&u){const h=new CustomEvent(Co,{bubbles:!0,cancelable:!0});u.addEventListener(Co,m=>o?.(m),{once:!0}),Eo(u,h),h.defaultPrevented?f.current=!1:c.onClose()}};return v.jsx(_r,{...r,ref:l,disabled:n,onClick:R(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),f.current=!0},onPointerUp:R(e.onPointerUp,u=>{f.current||u.currentTarget?.click()}),onKeyDown:R(e.onKeyDown,u=>{n||u.target!==u.currentTarget||a.searchRef.current!==""&&u.key===" "||mn.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Ft.displayName=bt;var _r=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,c=Wn(bt,n),a=Er(n),l=i.useRef(null),f=$(t,l),[d,u]=i.useState(!1),[h,m]=i.useState("");return i.useEffect(()=>{const g=l.current;g&&m((g.textContent??"").trim())},[s.children]),v.jsx(et.ItemSlot,{scope:n,disabled:o,textValue:r??h,children:v.jsx(Ya,{asChild:!0,...a,focusable:!o,children:v.jsx(L.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:f,onPointerMove:R(e.onPointerMove,tt(g=>{o?c.onItemLeave(g):(c.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:R(e.onPointerLeave,tt(g=>c.onItemLeave(g))),onFocus:R(e.onFocus,()=>u(!0)),onBlur:R(e.onBlur,()=>u(!1))})})})}),dl="MenuCheckboxItem",Ir=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return v.jsx(kr,{scope:e.__scopeMenu,checked:n,children:v.jsx(Ft,{role:"menuitemcheckbox","aria-checked":St(n)?"mixed":n,...r,ref:t,"data-state":Gn(n),onSelect:R(r.onSelect,()=>o?.(St(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ir.displayName=dl;var Or="MenuRadioGroup",[fl,pl]=Oe(Or,{value:void 0,onValueChange:()=>{}}),Dr=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=se(o);return v.jsx(fl,{scope:e.__scopeMenu,value:n,onValueChange:s,children:v.jsx(Un,{...r,ref:t})})});Dr.displayName=Or;var Nr="MenuRadioItem",Lr=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=pl(Nr,e.__scopeMenu),s=n===r.value;return v.jsx(kr,{scope:e.__scopeMenu,checked:s,children:v.jsx(Ft,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Gn(s),onSelect:R(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Lr.displayName=Nr;var Kn="MenuItemIndicator",[kr,ml]=Oe(Kn,{checked:!1}),jr=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=ml(Kn,n);return v.jsx(ue,{present:o||St(s.checked)||s.checked===!0,children:v.jsx(L.span,{...r,ref:t,"data-state":Gn(s.checked)})})});jr.displayName=Kn;var hl="MenuSeparator",Fr=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return v.jsx(L.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Fr.displayName=hl;var vl="MenuArrow",$r=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=jt(n);return v.jsx(Dn,{...r,...o,ref:t})});$r.displayName=vl;var gl="MenuSub",[nd,Br]=Oe(gl),Xe="MenuSubTrigger",Hr=i.forwardRef((e,t)=>{const n=De(Xe,e.__scopeMenu),o=it(Xe,e.__scopeMenu),r=Br(Xe,e.__scopeMenu),s=Wn(Xe,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,f={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);i.useEffect(()=>d,[d]),i.useEffect(()=>{const h=a.current;return()=>{window.clearTimeout(h),l(null)}},[a,l]);const u=$(t,r.onTriggerChange);return v.jsx(Bn,{asChild:!0,...f,children:v.jsx(_r,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?r.contentId:void 0,"data-state":Ur(n.open),...e,ref:u,onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,tt(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:R(e.onPointerLeave,tt(h=>{d();const m=n.content?.getBoundingClientRect();if(m){const g=n.content?.dataset.side,p=g==="right",w=p?-5:5,y=m[p?"left":"right"],C=m[p?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+w,y:h.clientY},{x:y,y:m.top},{x:C,y:m.top},{x:C,y:m.bottom},{x:y,y:m.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:R(e.onKeyDown,h=>{e.disabled||h.target!==h.currentTarget||s.searchRef.current!==""&&h.key===" "||qa[o.dir].includes(h.key)&&(n.onOpenChange(!0),n.content?.focus(),h.preventDefault())})})})});Hr.displayName=Xe;var Wr="MenuSubContent",Vr=i.forwardRef((e,t)=>{const n=Pr(re,e.__scopeMenu),{forceMount:o=n.forceMount,align:r="start",...s}=e,c=De(re,e.__scopeMenu),a=it(re,e.__scopeMenu),l=Br(Wr,e.__scopeMenu),f=i.useRef(null),d=$(t,f);return v.jsx(et.Provider,{scope:e.__scopeMenu,children:v.jsx(ue,{present:o||c.open,children:v.jsx(et.Slot,{scope:e.__scopeMenu,children:v.jsx(Vn,{id:l.contentId,"aria-labelledby":l.triggerId,...s,ref:d,align:r,side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{a.isUsingKeyboardRef.current&&f.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:R(e.onFocusOutside,u=>{u.target!==l.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:R(e.onKeyDown,u=>{const h=u.currentTarget.contains(u.target),m=Qa[a.dir].includes(u.key);h&&m&&(c.onOpenChange(!1),l.trigger?.focus(),u.preventDefault())})})})})})});Vr.displayName=Wr;function Ur(e){return e?"open":"closed"}function St(e){return e==="indeterminate"}function Gn(e){return St(e)?"indeterminate":e?"checked":"unchecked"}function wl(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function yl(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function xl(e,t,n){const r=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=yl(e,Math.max(s,0));r.length===1&&(c=c.filter(f=>f!==n));const l=c.find(f=>f.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Cl(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const a=t[s],l=t[c],f=a.x,d=a.y,u=l.x,h=l.y;d>o!=h>o&&n<(u-f)*(o-d)/(h-d)+f&&(r=!r)}return r}function bl(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Cl(n,t)}function tt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Sl=Rr,El=Bn,Rl=Tr,Pl=Mr,Tl=Un,Ml=Ar,Al=Ft,_l=Ir,Il=Dr,Ol=Lr,Dl=jr,Nl=Fr,Ll=$r,kl=Hr,jl=Vr,$t="DropdownMenu",[Fl,od]=ye($t,[Sr]),J=Sr(),[$l,Kr]=Fl($t),Gr=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:c,modal:a=!0}=e,l=J(t),f=i.useRef(null),[d,u]=Ae({prop:r,defaultProp:s??!1,onChange:c,caller:$t});return v.jsx($l,{scope:t,triggerId:ce(),triggerRef:f,contentId:ce(),open:d,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(h=>!h),[u]),modal:a,children:v.jsx(Sl,{...l,open:d,onOpenChange:u,dir:o,modal:a,children:n})})};Gr.displayName=$t;var zr="DropdownMenuTrigger",Yr=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=Kr(zr,n),c=J(n),a=$(t,s.triggerRef);return v.jsx(El,{asChild:!0,...c,children:v.jsx(L.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:a,onPointerDown:R(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:R(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Yr.displayName=zr;var Bl="DropdownMenuPortal",Xr=e=>{const{__scopeDropdownMenu:t,...n}=e,o=J(t);return v.jsx(Rl,{...o,...n})};Xr.displayName=Bl;var Zr="DropdownMenuContent",qr=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Kr(Zr,n),s=J(n),c=i.useRef(!1);return v.jsx(Pl,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,a=>{c.current||r.triggerRef.current?.focus(),c.current=!1,a.preventDefault()}),onInteractOutside:R(e.onInteractOutside,a=>{const l=a.detail.originalEvent,f=l.button===0&&l.ctrlKey===!0,d=l.button===2||f;(!r.modal||d)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qr.displayName=Zr;var Hl="DropdownMenuGroup",Wl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Tl,{...r,...o,ref:t})});Wl.displayName=Hl;var Vl="DropdownMenuLabel",Qr=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Ml,{...r,...o,ref:t})});Qr.displayName=Vl;var Ul="DropdownMenuItem",Jr=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Al,{...r,...o,ref:t})});Jr.displayName=Ul;var Kl="DropdownMenuCheckboxItem",es=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(_l,{...r,...o,ref:t})});es.displayName=Kl;var Gl="DropdownMenuRadioGroup",zl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Il,{...r,...o,ref:t})});zl.displayName=Gl;var Yl="DropdownMenuRadioItem",ts=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Ol,{...r,...o,ref:t})});ts.displayName=Yl;var Xl="DropdownMenuItemIndicator",ns=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Dl,{...r,...o,ref:t})});ns.displayName=Xl;var Zl="DropdownMenuSeparator",os=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Nl,{...r,...o,ref:t})});os.displayName=Zl;var ql="DropdownMenuArrow",Ql=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(Ll,{...r,...o,ref:t})});Ql.displayName=ql;var Jl="DropdownMenuSubTrigger",rs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(kl,{...r,...o,ref:t})});rs.displayName=Jl;var eu="DropdownMenuSubContent",ss=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=J(n);return v.jsx(jl,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ss.displayName=eu;var rd=Gr,sd=Yr,id=Xr,cd=qr,ad=Qr,ld=Jr,ud=es,dd=ts,fd=ns,pd=os,md=rs,hd=ss;function tu(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function bo(e,[t,n]){return Math.min(n,Math.max(t,e))}var nu=[" ","Enter","ArrowUp","ArrowDown"],ou=[" ","Enter"],Ie="Select",[Bt,Ht,ru]=yn(Ie),[Ne,vd]=ye(Ie,[ru,ze]),Wt=ze(),[su,Pe]=Ne(Ie),[iu,cu]=Ne(Ie),au="SelectProvider";function is(e){const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:c,defaultValue:a,onValueChange:l,dir:f,name:d,autoComplete:u,disabled:h,required:m,form:g,internal_do_not_use_render:p}=e,w=Wt(t),[y,C]=i.useState(null),[x,b]=i.useState(null),[S,P]=i.useState(!1),M=$n(f),[_,F]=Ae({prop:o,defaultProp:r??!1,onChange:s,caller:Ie}),[D,T]=Ae({prop:c,defaultProp:a,onChange:l,caller:Ie}),N=i.useRef(null),j=i.useRef(D);i.useEffect(()=>{const G=g?y?.ownerDocument.getElementById(g):y?.form;if(G instanceof HTMLFormElement){const Z=()=>T(j.current);return G.addEventListener("reset",Z),()=>G.removeEventListener("reset",Z)}},[g,y,T]);const k=y?!!g||!!y.closest("form"):!0,[H,O]=i.useState(new Set),B=ce(),I=Array.from(H).map(G=>G.props.value).join(";"),E=i.useCallback(G=>{O(Z=>new Set(Z).add(G))},[]),U=i.useCallback(G=>{O(Z=>{const Q=new Set(Z);return Q.delete(G),Q})},[]),X={required:m,trigger:y,onTriggerChange:C,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:P,contentId:B,value:D,onValueChange:T,open:_,onOpenChange:F,dir:M,triggerPointerDownPosRef:N,disabled:h,name:d,autoComplete:u,form:g,nativeOptions:H,nativeSelectKey:I,isFormControl:k};return v.jsx(_n,{...w,children:v.jsx(su,{scope:t,...X,children:v.jsx(Bt.Provider,{scope:t,children:v.jsx(iu,{scope:t,onNativeOptionAdd:E,onNativeOptionRemove:U,children:ju(p)?p(X):n})})})})}is.displayName=au;var lu=e=>{const{__scopeSelect:t,children:n,...o}=e;return v.jsx(is,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>v.jsxs(v.Fragment,{children:[n,r?v.jsx(Cs,{__scopeSelect:t}):null]})})};lu.displayName=Ie;var cs="SelectTrigger",uu=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=Wt(n),c=Pe(cs,n),a=c.disabled||o,l=$(t,c.onTriggerChange),f=Ht(n),d=i.useRef("touch"),[u,h,m]=bs(p=>{const w=f().filter(x=>!x.disabled),y=w.find(x=>x.value===c.value),C=Ss(w,p,y);C!==void 0&&c.onValueChange(C.value)}),g=p=>{a||(c.onOpenChange(!0),m()),p&&(c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return v.jsx(In,{asChild:!0,...s,children:v.jsx(L.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Vt(c.value)?"":void 0,...r,ref:l,onClick:R(r.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&g(p)}),onPointerDown:R(r.onPointerDown,p=>{d.current=p.pointerType;const w=p.target;w.hasPointerCapture(p.pointerId)&&w.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(g(p),p.preventDefault())}),onKeyDown:R(r.onKeyDown,p=>{const w=u.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(w&&p.key===" ")&&nu.includes(p.key)&&(g(),p.preventDefault())})})})});uu.displayName=cs;var as="SelectValue",du=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:c="",...a}=e,l=Pe(as,n),{onValueNodeHasChildrenChange:f}=l,d=s!==void 0,u=$(t,l.onValueNodeChange);Y(()=>{f(d)},[f,d]);const h=Vt(l.value);return v.jsx(L.span,{...a,asChild:h?!1:a.asChild,ref:u,style:{pointerEvents:"none"},children:v.jsx(i.Fragment,{children:h?c:s},h?"placeholder":"value")})});du.displayName=as;var fu="SelectIcon",pu=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return v.jsx(L.span,{"aria-hidden":!0,...r,ref:t,children:o||"â¼"})});pu.displayName=fu;var ls="SelectPortal",[mu,hu]=Ne(ls,{forceMount:void 0}),vu=e=>{const{__scopeSelect:t,forceMount:n,...o}=e;return v.jsx(mu,{scope:e.__scopeSelect,forceMount:n,children:v.jsx(Pt,{asChild:!0,...o})})};vu.displayName=ls;var Re="SelectContent",gu=i.forwardRef((e,t)=>{const n=hu(Re,e.__scopeSelect),{forceMount:o=n.forceMount,...r}=e,s=Pe(Re,e.__scopeSelect),[c,a]=i.useState();return Y(()=>{a(new DocumentFragment)},[]),v.jsx(ue,{present:o||s.open,children:({present:l})=>l?v.jsx(fs,{...r,ref:t}):v.jsx(us,{...r,fragment:c})})});gu.displayName=Re;var us=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,fragment:r}=e;return r?nt.createPortal(v.jsx(ds,{scope:n,children:v.jsx(Bt.Slot,{scope:n,children:v.jsx("div",{ref:t,children:o})})}),r):null});us.displayName="SelectContentFragment";var ie=10,[ds,Te]=Ne(Re),wu="SelectContentImpl",yu=Me("SelectContent.RemoveScroll"),fs=i.forwardRef((e,t)=>{const{__scopeSelect:n}=e,{position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:c,side:a,sideOffset:l,align:f,alignOffset:d,arrowPadding:u,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:w,...y}=e,C=Pe(Re,n),[x,b]=i.useState(null),[S,P]=i.useState(null),M=$(t,b),[_,F]=i.useState(null),[D,T]=i.useState(null),N=Ht(n),[j,k]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if(x)return kn(x)},[x]),Ln();const O=i.useCallback(A=>{const[W,...q]=N().map(z=>z.ref.current),[V]=q.slice(-1),K=document.activeElement;for(const z of A)if(z===K||(z?.scrollIntoView({block:"nearest"}),z===W&&S&&(S.scrollTop=0),z===V&&S&&(S.scrollTop=S.scrollHeight),z?.focus(),document.activeElement!==K))return},[N,S]),B=i.useCallback(()=>O([_,x]),[O,_,x]);i.useEffect(()=>{j&&B()},[j,B]);const{onOpenChange:I,triggerPointerDownPosRef:E}=C;i.useEffect(()=>{if(x){let A={x:0,y:0};const W=V=>{A={x:Math.abs(Math.round(V.pageX)-(E.current?.x??0)),y:Math.abs(Math.round(V.pageY)-(E.current?.y??0))}},q=V=>{A.x<=10&&A.y<=10?V.preventDefault():V.composedPath().includes(x)||I(!1),document.removeEventListener("pointermove",W),E.current=null};return E.current!==null&&(document.addEventListener("pointermove",W),document.addEventListener("pointerup",q,{c
vendor: 8,807 bytes, line 41
41apture:!0,once:!0})),()=>{document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",q,{capture:!0})}}},[x,I,E]),i.useEffect(()=>{const A=()=>I(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[I]);const[U,X]=bs(A=>{const W=N().filter(K=>!K.disabled),q=W.find(K=>K.ref.current===document.activeElement),V=Ss(W,A,q);V&&setTimeout(()=>V.ref.current?.focus())}),G=i.useCallback((A,W,q)=>{const V=!H.current&&!q;(C.value!==void 0&&C.value===W||V)&&(F(A),V&&(H.current=!0))},[C.value]),Z=i.useCallback(()=>x?.focus(),[x]),Q=i.useCallback((A,W,q)=>{const V=!H.current&&!q;(C.value!==void 0&&C.value===W||V)&&T(A)},[C.value]),he=o==="popper"?hn:ps,ee=he===hn?{side:a,sideOffset:l,align:f,alignOffset:d,arrowPadding:u,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:w}:{};return v.jsx(ds,{scope:n,content:x,viewport:S,onViewportChange:P,itemRefCallback:G,selectedItem:_,onItemLeave:Z,itemTextRefCallback:Q,focusSelectedItem:B,selectedItemText:D,position:o,isPositioned:j,searchRef:U,children:v.jsx(Lt,{as:yu,allowPinchZoom:!0,children:v.jsx(Dt,{asChild:!0,trapped:C.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:R(r,A=>{C.trigger?.focus({preventScroll:!0}),A.preventDefault()}),children:v.jsx(Ue,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:v.jsx(he,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:A=>A.preventDefault(),...y,...ee,onPlaced:()=>k(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:R(y.onKeyDown,A=>{const W=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!W&&A.key.length===1&&X(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let V=N().filter(K=>!K.disabled).map(K=>K.ref.current);if(["ArrowUp","End"].includes(A.key)&&(V=V.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const K=A.target,z=V.indexOf(K);V=V.slice(z+1)}setTimeout(()=>O(V)),A.preventDefault()}})})})})})})});fs.displayName=wu;var xu="SelectItemAlignedPosition",ps=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Pe(Re,n),c=Te(Re,n),[a,l]=i.useState(null),[f,d]=i.useState(null),u=$(t,d),h=Ht(n),m=i.useRef(!1),g=i.useRef(!0),{viewport:p,selectedItem:w,selectedItemText:y,focusSelectedItem:C}=c,x=i.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&f&&p&&w&&y){const M=s.trigger.getBoundingClientRect(),_=f.getBoundingClientRect(),F=s.valueNode.getBoundingClientRect(),D=y.getBoundingClientRect();if(s.dir!=="rtl"){const K=D.left-_.left,z=F.left-K,ve=M.left-z,oe=M.width+ve,Kt=Math.max(oe,_.width),Gt=window.innerWidth-ie,zt=bo(z,[ie,Math.max(ie,Gt-Kt)]);a.style.minWidth=oe+"px",a.style.left=zt+"px"}else{const K=_.right-D.right,z=window.innerWidth-F.right-K,ve=window.innerWidth-M.right-z,oe=M.width+ve,Kt=Math.max(oe,_.width),Gt=window.innerWidth-ie,zt=bo(z,[ie,Math.max(ie,Gt-Kt)]);a.style.minWidth=oe+"px",a.style.right=zt+"px"}const T=h(),N=window.innerHeight-ie*2,j=p.scrollHeight,k=window.getComputedStyle(f),H=parseInt(k.borderTopWidth,10),O=parseInt(k.paddingTop,10),B=parseInt(k.borderBottomWidth,10),I=parseInt(k.paddingBottom,10),E=H+O+j+I+B,U=Math.min(w.offsetHeight*5,E),X=window.getComputedStyle(p),G=parseInt(X.paddingTop,10),Z=parseInt(X.paddingBottom,10),Q=M.top+M.height/2-ie,he=N-Q,ee=w.offsetHeight/2,A=w.offsetTop+ee,W=H+O+A,q=E-W;if(W<=Q){const K=T.length>0&&w===T[T.length-1].ref.current;a.style.bottom="0px";const z=f.clientHeight-p.offsetTop-p.offsetHeight,ve=Math.max(he,ee+(K?Z:0)+z+B),oe=W+ve;a.style.height=oe+"px"}else{const K=T.length>0&&w===T[0].ref.current;a.style.top="0px";const ve=Math.max(Q,H+p.offsetTop+(K?G:0)+ee)+q;a.style.height=ve+"px",p.scrollTop=W-Q+p.offsetTop}a.style.margin=`${ie}px 0`,a.style.minHeight=U+"px",a.style.maxHeight=N+"px",o?.(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,a,f,p,w,y,s.dir,o]);Y(()=>x(),[x]);const[b,S]=i.useState();Y(()=>{f&&S(window.getComputedStyle(f).zIndex)},[f]);const P=i.useCallback(M=>{M&&g.current===!0&&(x(),C?.(),g.current=!1)},[x,C]);return v.jsx(bu,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:v.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:v.jsx(L.div,{...r,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ps.displayName=xu;var Cu="SelectPopperPosition",hn=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ie,...s}=e,c=Wt(n);return v.jsx(On,{...c,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hn.displayName=Cu;var[bu,zn]=Ne(Re,{}),vn="SelectViewport",Su=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Te(vn,n),c=zn(vn,n),a=$(t,s.onViewportChange),l=i.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),v.jsx(Bt.Slot,{scope:n,children:v.jsx(L.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:R(r.onScroll,f=>{const d=f.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:h}=c;if(h?.current&&u){const m=Math.abs(l.current-d.scrollTop);if(m>0){const g=window.innerHeight-ie*2,p=parseFloat(u.style.minHeight),w=parseFloat(u.style.height),y=Math.max(p,w);if(y<g){const C=y+m,x=Math.min(g,C),b=C-x;u.style.height=x+"px",u.style.bottom==="0px"&&(d.scrollTop=b>0?b:0,u.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Su.displayName=vn;var ms="SelectGroup",[Eu,Ru]=Ne(ms),Pu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ce();return v.jsx(Eu,{scope:n,id:r,children:v.jsx(L.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Pu.displayName=ms;var hs="SelectLabel",Tu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ru(hs,n);return v.jsx(L.div,{id:r.id,...o,ref:t})});Tu.displayName=hs;var Et="SelectItem",[Mu,vs]=Ne(Et),Au=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...c}=e,a=Pe(Et,n),l=Te(Et,n),f=a.value===o,[d,u]=i.useState(s??""),[h,m]=i.useState(!1),g=se(x=>l.itemRefCallback?.(x,o,r)),p=$(t,g),w=ce(),y=i.useRef("touch"),C=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};return v.jsx(Mu,{scope:n,value:o,disabled:r,textId:w,isSelected:f,onItemTextChange:i.useCallback(x=>{u(b=>b||(x?.textContent??"").trim())},[]),children:v.jsx(Bt.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:v.jsx(L.div,{role:"option","aria-labelledby":w,"data-highlighted":h?"":void 0,"aria-selected":f&&h,"data-state":f?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...c,ref:p,onFocus:R(c.onFocus,()=>m(!0)),onBlur:R(c.onBlur,()=>m(!1)),onClick:R(c.onClick,()=>{y.current!=="mouse"&&C()}),onPointerUp:R(c.onPointerUp,()=>{y.current==="mouse"&&C()}),onPointerDown:R(c.onPointerDown,x=>{y.current=x.pointerType}),onPointerMove:R(c.onPointerMove,x=>{y.current=x.pointerType,r?l.onItemLeave?.():y.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(c.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:R(c.onKeyDown,x=>{r||x.target!==x.currentTarget||l.searchRef?.current!==""&&x.key===" "||(ou.includes(x.key)&&C(),x.key===" "&&x.preventDefault())})})})})});Au.displayName=Et;var Ze="SelectItemText",_u=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,c=Pe(Ze,n),a=Te(Ze,n),l=vs(Ze,n),f=cu(Ze,n),[d,u]=i.useState(null),h=se(C=>a.itemTextRefCallback?.(C,l.value,l.disabled)),m=$(t,u,l.onItemTextChange,h),g=d?.textContent,p=i.useMemo(()=>v.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=f;return Y(()=>(w(p),()=>y(p)),[w,y,p]),v.jsxs(v.Fragment,{children:[v.jsx(L.span,{id:l.textId,...s,ref:m}),l.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!Vt(c.value)?nt.createPortal(s.children,c.valueNode):null]})});_u.displayName=Ze;var gs="SelectItemIndicator",Iu=i.forwardRef((e,t)=>
vendor: 4,291 bytes, line 41
41{const{__scopeSelect:n,...o}=e;return vs(gs,n).isSelected?v.jsx(L.span,{"aria-hidden":!0,...o,ref:t}):null});Iu.displayName=gs;var gn="SelectScrollUpButton",Ou=i.forwardRef((e,t)=>{const n=Te(gn,e.__scopeSelect),o=zn(gn,e.__scopeSelect),[r,s]=i.useState(!1),c=$(t,o.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=l.scrollTop>0;s(f)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?v.jsx(ws,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Ou.displayName=gn;var wn="SelectScrollDownButton",Du=i.forwardRef((e,t)=>{const n=Te(wn,e.__scopeSelect),o=zn(wn,e.__scopeSelect),[r,s]=i.useState(!1),c=$(t,o.onScrollButtonChange);return Y(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<f;s(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?v.jsx(ws,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Du.displayName=wn;var ws=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Te("SelectScrollButton",n),c=i.useRef(null),a=Ht(n),l=i.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),Y(()=>{a().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),v.jsx(L.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:R(r.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(o,50))}),onPointerMove:R(r.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(o,50))}),onPointerLeave:R(r.onPointerLeave,()=>{l()})})}),Nu="SelectSeparator",Lu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return v.jsx(L.div,{"aria-hidden":!0,...o,ref:t})});Lu.displayName=Nu;var ys="SelectArrow",ku=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Wt(n);return Te(ys,n).position==="popper"?v.jsx(Dn,{...r,...o,ref:t}):null});ku.displayName=ys;var xs="SelectBubbleInput",Cs=i.forwardRef(({__scopeSelect:e,...t},n)=>{const o=Pe(xs,e),{value:r,onValueChange:s,required:c,disabled:a,name:l,autoComplete:f,form:d}=o,{nativeOptions:u,nativeSelectKey:h}=o,m=i.useRef(null),g=$(n,m),p=r??"",w=tu(p),y=Array.from(u).some(C=>(C.props.value??"")==="");return i.useEffect(()=>{const C=m.current;if(!C)return;const x=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(x,"value").set;if(w!==p&&S){const P=new Event("change",{bubbles:!0});S.call(C,p),C.dispatchEvent(P)}},[w,p]),v.jsxs(L.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:l,autoComplete:f,disabled:a,form:d,onChange:C=>s(C.target.value),...t,style:{...To,...t.style},ref:g,defaultValue:p,children:[Vt(r)&&!y?v.jsx("option",{value:""}):null,Array.from(u)]},h)});Cs.displayName=xs;function ju(e){return typeof e=="function"}function Vt(e){return e===""||e===void 0}function bs(e){const t=se(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(c=>{const a=n.current+c;t(a),function l(f){n.current=f,window.clearTimeout(o.current),f!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Ss(e,t,n){const r=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=Fu(e,Math.max(s,0));r.length===1&&(c=c.filter(f=>f!==n));const l=c.find(f=>f.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Fu(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Ut="Collapsible",[$u,gd]=ye(Ut),[Bu,Yn]=$u(Ut),Es=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:c,...a}=e,[l,f]=Ae({prop:o,defaultProp:r??!1,onChange:c,caller:Ut});return v.jsx(Bu,{scope:n,disabled:s,contentId:ce(),open:l,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),children:v.jsx(L.div,{"data-state":Zn(l),"data-disabled":s?"":void 0,...a,ref:t})})});Es.displayName=Ut;var Rs="CollapsibleTrigger",Hu=i.forwardRef((e,t)=>
vendor: 2,092 bytes, line 41
41{const{__scopeCollapsible:n,...o}=e,r=Yn(Rs,n);return v.jsx(L.button,{type:"button","aria-controls":r.open?r.contentId:void 0,"aria-expanded":r.open||!1,"data-state":Zn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:R(e.onClick,r.onOpenToggle)})});Hu.displayName=Rs;var Xn="CollapsibleContent",Wu=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=Yn(Xn,e.__scopeCollapsible);return v.jsx(ue,{present:n||r.open,children:({present:s})=>v.jsx(Vu,{...o,ref:t,present:s})})});Wu.displayName=Xn;var Vu=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,c=Yn(Xn,n),[a,l]=i.useState(o),f=i.useRef(null),d=$(t,f),u=i.useRef(0),h=u.current,m=i.useRef(0),g=m.current,p=c.open||a,w=i.useRef(p),y=i.useRef(void 0);return i.useEffect(()=>{const C=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(C)},[]),Y(()=>{const C=f.current;if(C){y.current=y.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const x=C.getBoundingClientRect();u.current=x.height,m.current=x.width,w.current||(C.style.transitionDuration=y.current.transitionDuration,C.style.animationName=y.current.animationName),l(o)}},[c.open,o]),v.jsx(L.div,{"data-state":Zn(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!p,...s,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:p&&r})});function Zn(e){return e?"open":"closed"}var wd=Es;export{Au as $,pd as A,Yu as B,ed as C,Sa as D,rd as E,sd as F,tu as G,oc as H,ld as I,gr as J,$n as K,ad as L,za as M,Ya as N,uu as O,L as P,pu as Q,zu as R,Gu as S,Ju as T,Ou as U,Mo as V,Du as W,vu as X,gu as Y,Su as Z,Tu as _,ye as a,Iu as a0,_u as a1,Lu as a2,lu as a3,du as a4,wd as a5,Hu as a6,Wu as a7,Ae as b,yn as c,ue as d,se as e,R as f,Pt as g,Y as h,Eo as i,qu as j,Qu as k,Pa as l,Ia as m,Aa as n,_a as o,ba as p,ya as q,xa as r,md as s,hd as t,$ as u,id as v,cd as w,ud as x,fd as y,dd 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.