PageSourceSearch

https://kreisregional.de/assets/vendor-ui-BlK0hL34.js

js kreisregional.de collected 2026-10-09 23:31:27 UTC 179,742 bytes, 81 lines download raw bytes

vendor: 13,335 bytes, line 1
1import{r as i,j as p,R as re,c as Rt,d as Ql,b as Xo,s as Jl}from"./vendor-react-CkOnMV_R.js";function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ho(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Re(...e){return t=>{let n=!1;const r=e.map(o=>{const a=ho(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():ho(e[o],null)}}}}function B(...e){return i.useCallback(Re(...e),e)}function eu(e,t){const n=i.createContext(t),r=a=>{const{children:s,...c}=a,l=i.useMemo(()=>c,Object.values(c));return p.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=i.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ne(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];const u=f=>{var b;const{scope:v,children:h,...w}=f,m=((b=v==null?void 0:v[e])==null?void 0:b[l])||c,g=i.useMemo(()=>w,Object.values(w));return p.jsx(m.Provider,{value:g,children:h})};u.displayName=a+"Provider";function d(f,v){var m;const h=((m=v==null?void 0:v[e])==null?void 0:m[l])||c,w=i.useContext(h);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,d]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=(c==null?void 0:c[e])||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,tu(o,...t)]}function tu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((c,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Me(e){const t=nu(e),n=i.forwardRef((r,o)=>{const{children:a,...s}=r,c=i.Children.toArray(a),l=c.find(ru);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...s,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return p.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ng=Me("Slot");function nu(e){const t=i.forwardRef((n,r)=>{const{children:o,...a}=n;if(i.isValidElement(o)){const s=au(o),c=ou(a,o.props);return o.type!==i.Fragment&&(c.ref=r?Re(r,s):s),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qo=Symbol("radix.slottable");function Zo(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=qo,t}function ru(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qo}function ou(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{const l=a(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function au(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function st(e){const t=e+"CollectionProvider",[n,r]=ne(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:b}=m,x=re.useRef(null),y=re.useRef(new Map).current;return p.jsx(o,{scope:g,itemMap:y,collectionRef:x,children:b})};s.displayName=t;const c=e+"CollectionSlot",l=Me(c),u=re.forwardRef((m,g)=>{const{scope:b,children:x}=m,y=a(c,b),C=B(g,y.collectionRef);return p.jsx(l,{ref:C,children:x})});u.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=Me(d),h=re.forwardRef((m,g)=>{const{scope:b,children:x,...y}=m,C=re.useRef(null),S=B(g,C),R=a(d,b);return re.useEffect(()=>(R.itemMap.set(C,{ref:C,...y}),()=>void R.itemMap.delete(C))),p.jsx(v,{[f]:"",ref:S,children:x})});h.displayName=d;function w(m){const g=a(e+"CollectionConsumer",m);return re.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((R,E)=>y.indexOf(R.ref.current)-y.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},w,r]}var su=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],T=su.reduce((e,t)=>{const n=Me(`Primitive.${t}`),r=i.forwardRef((o,a)=>{const{asChild:s,...c}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Er(e,t){e&&Rt.flushSync(()=>e.dispatchEvent(t))}function ee(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function iu(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var cu="DismissableLayer",tr="dismissableLayer.update",lu="dismissableLayer.pointerDownOutside",uu="dismissableLayer.focusOutside",go,Qo=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ue=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=e,u=i.useContext(Qo),[d,f]=i.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),w=B(t,E=>f(E)),m=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),x=d?m.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,S=fu(E=>{const D=E.target,N=[...u.branches].some(k=>k.contains(D));!C||N||(o==null||o(E),s==null||s(E),E.defaultPrevented||c==null||c())},v),R=pu(E=>{const D=E.target;[...u.branches].some(k=>k.contains(D))||(a==null||a(E),s==null||s(E),E.defaultPrevented||c==null||c())},v);return iu(E=>{x===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},v),i.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(go=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),wo(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=go)}},[d,v,n,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),wo())},[d,u]),i.useEffect(()=>{const E=()=>h({});return document.addEventListener(tr,E),()=>document.removeEventListener(tr,E)},[]),p.jsx(T.div,{...l,ref:w,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,R.onFocusCapture),onBlurCapture:A(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,S.onPointerDownCapture)})});Ue.displayName=cu;var du="DismissableLayerBranch",Jo=i.forwardRef((e,t)=>{const n=i.useContext(Qo),r=i.useRef(null),o=B(t,r);return i.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(T.div,{...e,ref:o})});Jo.displayName=du;function fu(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let l=function(){ea(lu,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pu(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&ea(uu,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function wo(){const e=new CustomEvent(tr);document.dispatchEvent(e)}function ea(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Er(o,a):o.dispatchEvent(a)}var vu=Ue,mu=Jo,te=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},hu="Portal",it=i.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,a]=i.useState(!1);te(()=>a(!0),[]);const s=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?Ql.createPortal(p.jsx(T.div,{...r,ref:t}),s):null});it.displayName=hu;function gu(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var ae=e=>{const{present:t,children:n}=e,r=wu(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=B(r.ref,xu(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};ae.displayName="Presence";function wu(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=gu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=$t(r.current);a.current=c==="mounted"?u:"none"},[c]),te(()=>{const u=r.current,d=o.current;if(d!==e){const v=a.current,h=$t(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),te(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const m=$t(r.current).includes(h.animationName);if(h.target===t&&m&&(l("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(a.current=$t(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function $t(e){return(e==null?void 0:e.animationName)||"none"}function xu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bu=Xo[" useInsertionEffect ".trim().toString()]||te;function se({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=yu({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const d=i.useRef(e!==void 0);i.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"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=c},[c,r])}const u=i.useCallback(d=>{var f;if(c){const v=Cu(d)?d(e):d;v!==e&&((f=s.current)==null||f.call(s,v))}else a(d)},[c,e,a,s]);return[l,u]}function yu({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return bu(()=>{a.current=t},[t]),i.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Cu(e){return typeof e=="function"}var ta=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"}),Su="VisuallyHidden",cn=i.forwardRef((e,t)=>p.jsx(T.span,{...e,ref:t,style:{...ta,...e.style}}));cn.displayName=Su;var Eu=cn,Rr="ToastProvider",[Pr,Ru,Pu]=st("Toast"),[na,Og]=ne("Toast",[Pu]),[Au,ln]=na(Rr),ra=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[c,l]=i.useState(null),[u,d]=i.useState(0),f=i.useRef(!1),v=i.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Rr}\`. Expected non-empty \`string\`.`),p.jsx(Pr.Provider,{scope:t,children:p.jsx(Au,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:i.useCallback(()=>d(h=>h+1),[]),onToastRemove:i.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:v,children:s})})};ra.displayName=Rr;var oa="ToastViewport",Tu=["F8"],nr="toast.viewportPause",rr="toast.viewportResume",aa=i.forwardRef((e,t)=>
1{const{__scopeToast:n,hotkey:r=Tu,label:o="Notifications ({hotkey})",...a}=e,s=ln(oa,n),c=Ru(n),l=i.useRef(null),u=i.useRef(null),d=i.useRef(null),f=i.useRef(null),v=B(t,f,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;i.useEffect(()=>{const g=b=>{var y;r.length!==0&&r.every(C=>b[C]||b.code===C)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),i.useEffect(()=>{const g=l.current,b=f.current;if(w&&g&&b){const x=()=>{if(!s.isClosePausedRef.current){const R=new CustomEvent(nr);b.dispatchEvent(R),s.isClosePausedRef.current=!0}},y=()=>{if(s.isClosePausedRef.current){const R=new CustomEvent(rr);b.dispatchEvent(R),s.isClosePausedRef.current=!1}},C=R=>{!g.contains(R.relatedTarget)&&y()},S=()=>{g.contains(document.activeElement)||y()};return g.addEventListener("focusin",x),g.addEventListener("focusout",C),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",S),window.addEventListener("blur",x),window.addEventListener("focus",y),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",C),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",S),window.removeEventListener("blur",x),window.removeEventListener("focus",y)}}},[w,s.isClosePausedRef]);const m=i.useCallback(({tabbingDirection:g})=>{const x=c().map(y=>{const C=y.ref.current,S=[C,...Vu(C)];return g==="forwards"?S:S.reverse()});return(g==="forwards"?x.reverse():x).flat()},[c]);return i.useEffect(()=>{const g=f.current;if(g){const b=x=>{var S,R,E;const y=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!y){const D=document.activeElement,N=x.shiftKey;if(x.target===g&&N){(S=u.current)==null||S.focus();return}const V=m({tabbingDirection:N?"backwards":"forwards"}),K=V.findIndex(_=>_===D);Vn(V.slice(K+1))?x.preventDefault():N?(R=u.current)==null||R.focus():(E=d.current)==null||E.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[c,m]),p.jsxs(mu,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&p.jsx(or,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});Vn(g)}}),p.jsx(Pr.Slot,{scope:n,children:p.jsx(T.ol,{tabIndex:-1,...a,ref:v})}),w&&p.jsx(or,{ref:d,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});Vn(g)}})]})});aa.displayName=oa;var sa="ToastFocusProxy",or=i.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=ln(sa,n);return p.jsx(cn,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const c=s.relatedTarget;!((u=a.viewport)!=null&&u.contains(c))&&r()}})});or.displayName=sa;var Pt="Toast",_u="toast.swipeStart",Iu="toast.swipeMove",Mu="toast.swipeCancel",Du="toast.swipeEnd",ia=i.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[c,l]=se({prop:r,defaultProp:o??!0,onChange:a,caller:Pt});return p.jsx(ae,{present:n||c,children:p.jsx(ku,{open:c,...s,ref:t,onClose:()=>l(!1),onPause:ee(e.onPause),onResume:ee(e.onResume),onSwipeStart:A(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:A(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:A(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:A(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});ia.displayName=Pt;var[Nu,Ou]=na(Pt,{onClose(){}}),ku=i.forwardRef((e,t)=>
vendor: 4,168 bytes, line 1
1{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:c,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:v,onSwipeEnd:h,...w}=e,m=ln(Pt,n),[g,b]=i.useState(null),x=B(t,_=>b(_)),y=i.useRef(null),C=i.useRef(null),S=o||m.duration,R=i.useRef(0),E=i.useRef(S),D=i.useRef(0),{onToastAdd:N,onToastRemove:k}=m,L=ee(()=>{var H;(g==null?void 0:g.contains(document.activeElement))&&((H=m.viewport)==null||H.focus()),s()}),V=i.useCallback(_=>{!_||_===1/0||(window.clearTimeout(D.current),R.current=new Date().getTime(),D.current=window.setTimeout(L,_))},[L]);i.useEffect(()=>{const _=m.viewport;if(_){const H=()=>{V(E.current),u==null||u()},j=()=>{const W=new Date().getTime()-R.current;E.current=E.current-W,window.clearTimeout(D.current),l==null||l()};return _.addEventListener(nr,j),_.addEventListener(rr,H),()=>{_.removeEventListener(nr,j),_.removeEventListener(rr,H)}}},[m.viewport,S,l,u,V]),i.useEffect(()=>{a&&!m.isClosePausedRef.current&&V(S)},[a,S,m.isClosePausedRef,V]),i.useEffect(()=>(N(),()=>k()),[N,k]);const K=i.useMemo(()=>g?va(g):null,[g]);return m.viewport?p.jsxs(p.Fragment,{children:[K&&p.jsx(Lu,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),p.jsx(Nu,{scope:n,onClose:L,children:Rt.createPortal(p.jsx(Pr.ItemSlot,{scope:n,children:p.jsx(vu,{asChild:!0,onEscapeKeyDown:A(c,()=>{m.isFocusedToastEscapeKeyDownRef.current||L(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(T.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":m.swipeDirection,...w,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:A(e.onKeyDown,_=>{_.key==="Escape"&&(c==null||c(_.nativeEvent),_.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:A(e.onPointerDown,_=>{_.button===0&&(y.current={x:_.clientX,y:_.clientY})}),onPointerMove:A(e.onPointerMove,_=>{if(!y.current)return;const H=_.clientX-y.current.x,j=_.clientY-y.current.y,W=!!C.current,O=["left","right"].includes(m.swipeDirection),I=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,q=O?I(0,H):0,J=O?0:I(0,j),P=_.pointerType==="touch"?10:2,$={x:q,y:J},U={originalEvent:_,delta:$};W?(C.current=$,Bt(Iu,f,U,{discrete:!1})):xo($,m.swipeDirection,P)?(C.current=$,Bt(_u,d,U,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(H)>P||Math.abs(j)>P)&&(y.current=null)}),onPointerUp:A(e.onPointerUp,_=>{const H=C.current,j=_.target;if(j.hasPointerCapture(_.pointerId)&&j.releasePointerCapture(_.pointerId),C.current=null,y.current=null,H){const W=_.currentTarget,O={originalEvent:_,delta:H};xo(H,m.swipeDirection,m.swipeThreshold)?Bt(Du,h,O,{discrete:!0}):Bt(Mu,v,O,{discrete:!0}),W.addEventListener("click",I=>I.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Lu=e=>{const{__scopeToast:t,children:n,...r}=e,o=ln(Pt,t),[a,s]=i.useState(!1),[c,l]=i.useState(!1);return $u(()=>s(!0)),i.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:p.jsx(it,{asChild:!0,children:p.jsx(cn,{...r,children:a&&p.jsxs(p.Fragment,{children:[o.label," ",n]})})})},ju="ToastTitle",ca=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(T.div,{...r,ref:t})});ca.displayName=ju;var Fu="ToastDescription",la=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(T.div,{...r,ref:t})});la.displayName=Fu;var ua="ToastAction",da=i.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(pa,{altText:n,asChild:!0,children:p.jsx(Ar,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ua}\`. Expected non-empty \`string\`.`),null)});da.displayName=ua;var fa="ToastClose",Ar=i.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Ou(fa,n);return p.jsx(pa,{asChild:!0,children:p.jsx(T.button,{type:"button",...r,ref:t,onClick:A(e.onClick,o.onClose)})})});Ar.displayName=fa;var pa=i.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return p.jsx(T.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function va(e){const t=[];
1return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Bu(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...va(r))}}),t}function Bt(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Er(o,a):o.dispatchEvent(a)}var xo=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function $u(e=()=>{}){const t=ee(e);te(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Bu(e){return e.nodeType===e.ELEMENT_NODE}function Vu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vn(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var kg=ra,Lg=aa,jg=ia,Fg=ca,$g=la,Bg=da,Vg=Ar;/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Hu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ma=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var Wu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const Ku=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...c},l)=>i.createElement("svg",{ref:l,...Wu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ma("lucide",o),...c},[...s.map(([u,d])=>i.createElement(u,d)),...Array.isArray(a)?a:[a]]));/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const Uu=(e,t)=>{const n=i.forwardRef(({className:r,...o},a)=>i.createElement(Ku,{ref:a,iconNode:t,className:ma(`lucide-${Hu(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
22 * @license lucide-react v0.462.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const Hg=Uu("Vault",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["path",{d:"m7.9 7.9 2.7 2.7",key:"hpeyl3"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}],["path",{d:"m13.4 10.6 2.7-2.7",key:"264c1n"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["path",{d:"m7.9 16.1 2.7-2.7",key:"p81g5e"}],["circle",{cx:"16.5",cy:"16.5",r:".5",fill:"currentColor",key:"fubopw"}],["path",{d:"m13.4 13.4 2.7 2.7",key:"abhel3"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var Gu=Xo[" useId ".trim().toString()]||(()=>{}),zu=0;function oe(e){const[t,n]=i.useState(Gu());return te(()=>{e||n(r=>r??String(zu++))},[e]),e||(t?`radix-${t}`:"")}const Yu=["top","right","bottom","left"],De=Math.min,le=Math.max,Xt=Math.round,Vt=Math.floor,ye=e=>({x:e,y:e}
vendor: 11,917 bytes, line 26
26),Xu={left:"right",right:"left",bottom:"top",top:"bottom"},qu={start:"end",end:"start"};function ar(e,t,n){return le(e,De(t,n))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function Tr(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}const Zu=new Set(["top","bottom"]);function be(e){return Zu.has(Ae(e))?"y":"x"}function Ir(e){return Tr(be(e))}function Qu(e,t,n){n===void 0&&(n=!1);const r=ct(e),o=Ir(e),a=_r(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=qt(s)),[s,qt(s)]}function Ju(e){const t=qt(e);return[sr(e),t,sr(t)]}function sr(e){return e.replace(/start|end/g,t=>qu[t])}const bo=["left","right"],yo=["right","left"],ed=["top","bottom"],td=["bottom","top"];function nd(e,t,n){switch(e){case"top":case"bottom":return n?t?yo:bo:t?bo:yo;case"left":case"right":return t?ed:td;default:return[]}}function rd(e,t,n,r){const o=ct(e);let a=nd(Ae(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(sr)))),a}function qt(e){return e.replace(/left|right|bottom|top/g,t=>Xu[t])}function od(e){return{top:0,right:0,bottom:0,left:0,...e}}function ha(e){return typeof e!="number"?od(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Co(e,t,n){let{reference:r,floating:o}=e;const a=be(t),s=Ir(t),c=_r(s),l=Ae(t),u=a==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ct(t)){case"start":h[s]-=v*(n&&u?-1:1);break;case"end":h[s]+=v*(n&&u?-1:1);break}return h}const ad=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Co(u,r,l),v=r,h={},w=0;for(let m=0;m<c.length;m++){const{name:g,fn:b}=c[m],{x,y,data:C,reset:S}=await b({x:d,y:f,initialPlacement:r,placement:v,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,f=y??f,h={...h,[g]:{...h[g],...C}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:f}=Co(u,v,l)),m=-1)}return{x:d,y:f,placement:v,strategy:o,middlewareData:h}};async function xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:v=!1,padding:h=0}=Pe(t,e),w=ha(h),g=c[v?f==="floating"?"reference":"floating":f],b=Zt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(g)))==null||n?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),x=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Zt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:y,strategy:l}):x);return{top:(b.top-S.top+w.top)/C.y,bottom:(S.bottom-b.bottom+w.bottom)/C.y,left:(b.left-S.left+w.left)/C.x,right:(S.right-b.right+w.right)/C.x}}const sd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=Pe(e,t)||{};if(u==null)return{};const f=ha(d),v={x:n,y:r},h=Ir(o),w=_r(h),m=await s.getDimensions(u),g=h==="y",b=g?"top":"left",x=g?"bottom":"right",y=g?"clientHeight":"clientWidth",C=a.reference[w]+a.reference[h]-v[h]-a.floating[w],S=v[h]-a.reference[h],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=R?R[y]:0;(!E||!await(s.isElement==null?void 0:s.isElement(R)))&&(E=c.floating[y]||a.floating[w]);const D=C/2-S/2,N=E/2-m[w]/2-1,k=De(f[b],N),L=De(f[x],N),V=k,K=E-m[w]-L,_=E/2-m[w]/2+D,H=ar(V,_,K),j=!l.arrow&&ct(o)!=null&&_!==H&&a.reference[w]/2-(_<V?k:L)-m[w]/2<0,W=j?_<V?_-V:_-K:0;return{[h]:v[h]+W,data:{[h]:H,centerOffset:_-H-W,...j&&{alignmentOffset:W}},reset:j}}}),id=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...g}=Pe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const b=Ae(o),x=be(c),y=Ae(c)===c,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=v||(y||!m?[qt(c)]:Ju(c)),R=w!=="none";!v&&R&&S.push(...rd(c,m,w,C));const E=[c,...S],D=await xt(t,g),N=[];let k=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(D[b]),f){const _=Qu(o,s,C);N.push(D[_[0]],D[_[1]])}if(k=[...k,{placement:o,overflows:N}],!N.every(_=>_<=0)){var L,V;const _=(((L=a.flip)==null?void 0:L.index)||0)+1,H=E[_];if(H&&(!(f==="alignment"?x!==be(H):!1)||k.every(O=>O.overflows[0]>0&&be(O.placement)===x)))return{data:{index:_,overflows:k},reset:{placement:H}};let j=(V=k.filter(W=>W.overflows[0]<=0).sort((W,O)=>W.overflows[1]-O.overflows[1])[0])==null?void 0:V.placement;if(!j)switch(h){case"bestFit":{var K;const W=(K=k.filter(O=>{if(R){const I=be(O.placement);return I===x||I==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(I=>I>0).reduce((I,q)=>I+q,0)]).sort((O,I)=>O[1]-I[1])[0])==null?void 0:K[0];W&&(j=W);break}case"initialPlacement":j=c;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function So(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Eo(e){return Yu.some(t=>e[t]>=0)}const cd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Pe(e,t);switch(r){case"referenceHidden":{const a=await xt(t,{...o,elementContext:"reference"}),s=So(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Eo(s)}}}case"escaped":{const a=await xt(t,{...o,altBoundary:!0}),s=So(a,n.floating);return{data:{escapedOffsets:s,escaped:Eo(s)}}}default:return{}}}}},ga=new Set(["left","top"]);async function ld(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ae(n),c=ct(n),l=be(n)==="y",u=ga.has(s)?-1:1,d=a&&l?-1:1,f=Pe(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof w=="number"&&(h=c==="end"?w*-1:w),l?{x:h*d,y:v*u}:{x:v*u,y:h*d}}const ud=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await ld(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},dd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:g=>{let{x:b,y:x}=g;return{x:b,y:x}}},...l}=Pe(e,t),u={x:n,y:r},d=await xt(t,l),f=be(Ae(o)),v=Tr(f);let h=u[v],w=u[f];if(a){const g=v==="y"?"top":"left",b=v==="y"?"bottom":"right",x=h+d[g],y=h-d[b];h=ar(x,h,y)}if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=w+d[g],y=w-d[b];w=ar(x,w,y)}const m=c.fn({...t,[v]:h,[f]:w});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[v]:a,[f]:s}}}}}},fd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Pe(e,t),d={x:n,y:r},f=be(o),v=Tr(f);let h=d[v],w=d[f];const m=Pe(c,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=v==="y"?"height":"width",C=a.reference[v]-a.floating[y]+g.mainAxis,S=a.reference[v]+a.reference[y]-g.mainAxis;h<C?h=C:h>S&&(h=S)}if(u){var b,x;const y=v==="y"?"width":"height",C=ga.has(Ae(o)),S=a.reference[f]-a.floating[y]+(C&&((b=s.offset)==null?void 0:b[f])||0)+(C?0:g.crossAxis),R=a.reference[f]+a.reference[y]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?g.crossAxis:0);w<S?w=S:w>R&&(w=R)}return{[v]:h,[f]:w}}}},pd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:c}=t,{apply:l=()=>{},...u}=Pe(e,t),d=await xt(t,u),f=Ae(o),v=ct(o),h=be(o)==="y",{width:w,height:m}=a.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(b=f,g=v==="end"?"top":"bottom");const x=m-d.top-d.bottom,y=w-d.left-d.right,C=De(m-d[g],x),S=De(w-d[b],y),R=!t.middlewareData.shift;let E=C,D=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=x),R&&!v){const k=le(d.left,0),L=le(d.right,0),V=le(d.top,0),K=le(d.bottom,0);h?D=w-2*(k!==0||L!==0?k+L:le(d.left,d.right)):E=m-2*(V!==0||K!==0?V+K:le(d.top,d.bottom))}await l({...t,availableWidth:D,availableHeight:E});const N=await s.getDimensions(c.floating);return w!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function un(){return typeof window<"u"}function lt(e){return wa(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(wa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wa(e){return un()?e instanceof Node||e instanceof ue(e).Node:!1}function ve(e){return un()?e instanceof Element||e instanceof ue(e).Element:!1}function Ce(e){return un()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Ro(e){return!un()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const vd=new Set(["inline","contents"]);function At(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!vd.has(o)}const md=new Set(["table","td","th"]);function hd(e){return md.has(lt(e))}const gd=[":popover-open",":modal"];function dn(e){return gd.some(t=>{try{return e.matches(t)}catch{return!1}})}const wd=["transform","translate","scale","rotate","perspective"],xd=["transform","translate","scale","rotate","perspective","filter"],bd=["paint","layout","strict","content"];function Mr(e){const t=Dr(),n=ve(e)?me(e):e;return wd.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||xd.some(r=>(n.willChange||"").includes(r))||bd.some(r=>(n.contain||"").includes(r))}function yd(e){let t=Ne(e);for(;Ce(t)&&!nt(t);){if(Mr(t))return t;if(dn(t))return null;t=Ne(t)}return null}function Dr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Cd=new Set(["html","body","#document"]);function nt(e){return Cd.has(lt(e))}function me(e){return ue(e).getComputedStyle(e)}function fn(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ro(e)&&e.host||Se(e);return Ro(t)?t.host:t}function xa(e){const t=Ne(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&At(t)?t:xa(t)}function bt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=xa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=ue(o);if(a){const c=ir(s);
vendor: 4,741 bytes, line 26
26return t.concat(s,s.visualViewport||[],At(o)?o:[],c&&n?bt(c):[])}return t.concat(o,bt(o,[],n))}function ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ba(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Xt(n)!==a||Xt(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function Nr(e){return ve(e)?e:e.contextElement}function Je(e){const t=Nr(e);if(!Ce(t))return ye(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ba(t);let s=(a?Xt(n.width):n.width)/r,c=(a?Xt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Sd=ye(0);function ya(e){const t=ue(e);return!Dr()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ed(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Nr(e);let s=ye(1);t&&(r?ve(r)&&(s=Je(r)):s=Je(e));const c=Ed(a,n,r)?ya(a):ye(0);let l=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){const v=ue(a),h=r&&ve(r)?ue(r):r;let w=v,m=ir(w);for(;m&&r&&h!==w;){const g=Je(m),b=m.getBoundingClientRect(),x=me(m),y=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*g.x,C=b.top+(m.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,f*=g.y,l+=y,u+=C,w=ue(m),m=ir(w)}}return Zt({width:d,height:f,x:l,y:u})}function Or(e,t){const n=fn(e).scrollLeft;return t?t.left+n:Be(Se(e)).left+n}function Ca(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Or(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Rd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Se(r),c=t?dn(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=ye(1);const d=ye(0),f=Ce(r);if((f||!f&&!a)&&((lt(r)!=="body"||At(s))&&(l=fn(r)),Ce(r))){const h=Be(r);u=Je(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const v=s&&!f&&!a?Ca(s,l,!0):ye(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+v.x,y:n.y*u.y-l.scrollTop*u.y+d.y+v.y}}function Pd(e){return Array.from(e.getClientRects())}function Ad(e){const t=Se(e),n=fn(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Or(e);const c=-n.scrollTop;return me(r).direction==="rtl"&&(s+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Td(e,t){const n=ue(e),r=Se(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const u=Dr();(!u||u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:c,y:l}}const _d=new Set(["absolute","fixed"]);function Id(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ce(e)?Je(e):ye(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:c,x:l,y:u}}function Po(e,t,n){let r;if(t==="viewport")r=Td(e,n);else if(t==="document")r=Ad(Se(e));else if(ve(t))r=Id(t,n);else{const o=ya(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zt(r)}function Sa(e,t){const n=Ne(e);return n===t||!ve(n)||nt(n)?!1:me(n).position==="fixed"||Sa(n,t)}function Md(e,t){const n=t.get(e);if(n)return n;let r=bt(e,[],!1).filter(c=>ve(c)&&lt(c)!=="body"),o=null;const a=me(e).position==="fixed";let s=a?Ne(e):e;for(;ve(s)&&!nt(s);){const c=me(s),l=Mr(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&_d.has(o.position)||At(s)&&!l&&Sa(e,s))?r=r.filter(d=>d!==s):o=c,s=Ne(s)}return t.set(e,r),r}function Dd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?dn(t)?[]:Md(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((u,d)=>{const f=Po(t,d,o);return u.top=le(f.top,u.top),u.right=De(f.right,u.right),u.bottom=De(f.bottom,u.bottom),u.left=le(f.left,u.left),u},Po(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Nd(e){const{width:t,height:n}=ba(e);return{width:t,height:n}}function Od(e,t,n){const r=Ce(t),o=Se(t),a=n==="fixed",s=Be(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=ye(0);function u(){l.x=Or(o)}if(r||!r&&!a)if((lt(t)!=="body"||At(o))&&(c=fn(t)),r){const h=Be(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const d=o&&!r&&!a?Ca(o,c):ye(0),f=s.left+c.scrollLeft-l.x-d.x,v=s.top+c.scrollTop-l.y-d.y;return{x:f,y:v,width:s.width,height:s.height}}function Hn(e){return me(e).position==="static"}function Ao(e,t){if(!Ce(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Se(e)===n&&(n=n.ownerDocument.body),n}
vendor: 5,487 bytes, line 26
26function Ea(e,t){const n=ue(e);if(dn(e))return n;if(!Ce(e)){let o=Ne(e);for(;o&&!nt(o);){if(ve(o)&&!Hn(o))return o;o=Ne(o)}return n}let r=Ao(e,t);for(;r&&hd(r)&&Hn(r);)r=Ao(r,t);return r&&nt(r)&&Hn(r)&&!Mr(r)?n:r||yd(e)||n}const kd=async function(e){const t=this.getOffsetParent||Ea,n=this.getDimensions,r=await n(e.floating);return{reference:Od(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ld(e){return me(e).direction==="rtl"}const jd={convertOffsetParentRelativeRectToViewportRelativeRect:Rd,getDocumentElement:Se,getClippingRect:Dd,getOffsetParent:Ea,getElementRects:kd,getClientRects:Pd,getDimensions:Nd,getScale:Je,isElement:ve,isRTL:Ld};function Ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fd(e,t){let n=null,r;const o=Se(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:d,top:f,width:v,height:h}=u;if(c||t(),!v||!h)return;const w=Vt(f),m=Vt(o.clientWidth-(d+v)),g=Vt(o.clientHeight-(f+h)),b=Vt(d),y={rootMargin:-w+"px "+-m+"px "+-g+"px "+-b+"px",threshold:le(0,De(1,l))||1};let C=!0;function S(R){const E=R[0].intersectionRatio;if(E!==l){if(!C)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Ra(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return s(!0),a}function $d(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Nr(e),d=o||a?[...u?bt(u):[],...bt(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),a&&b.addEventListener("resize",n)});const f=u&&c?Fd(u,n):null;let v=-1,h=null;s&&(h=new ResizeObserver(b=>{let[x]=b;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let w,m=l?Be(e):null;l&&g();function g(){const b=Be(e);m&&!Ra(m,b)&&n(),m=b,w=requestAnimationFrame(g)}return n(),()=>{var b;d.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),f==null||f(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const Bd=ud,Vd=dd,Hd=id,Wd=pd,Kd=cd,To=sd,Ud=fd,Gd=(e,t,n)=>{const r=new Map,o={platform:jd,...n},a={...o.platform,_c:r};return ad(e,t,{...o,platform:a})};var zd=typeof document<"u",Yd=function(){},Gt=zd?i.useLayoutEffect:Yd;function Qt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Qt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Pa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _o(e,t){const n=Pa(e);return Math.round(t*n)/n}function Wn(e){const t=i.useRef(e);return Gt(()=>{t.current=e}),t}function Xd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=i.useState(r);Qt(v,r)||h(r);const[w,m]=i.useState(null),[g,b]=i.useState(null),x=i.useCallback(O=>{O!==R.current&&(R.current=O,m(O))},[]),y=i.useCallback(O=>{O!==E.current&&(E.current=O,b(O))},[]),C=a||w,S=s||g,R=i.useRef(null),E=i.useRef(null),D=i.useRef(d),N=l!=null,k=Wn(l),L=Wn(o),V=Wn(u),K=i.useCallback(()=>{if(!R.current||!E.current)return;const O={placement:t,strategy:n,middleware:v};L.current&&(O.platform=L.current),Gd(R.current,E.current,O).then(I=>{const q={...I,isPositioned:V.current!==!1};_.current&&!Qt(D.current,q)&&(D.current=q,Rt.flushSync(()=>{f(q)}))})},[v,t,n,L,V]);Gt(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[u]);const _=i.useRef(!1);Gt(()=>(_.current=!0,()=>{_.current=!1}),[]),Gt(()=>{if(C&&(R.current=C),S&&(E.current=S),C&&S){if(k.current)return k.current(C,S,K);K()}},[C,S,K,k,N]);const H=i.useMemo(()=>({reference:R,floating:E,setReference:x,setFloating:y}),[x,y]),j=i.useMemo(()=>({reference:C,floating:S}),[C,S]),W=i.useMemo(()=>{const O={position:n,left:0,top:0};if(!j.floating)return O;const I=_o(j.floating,d.x),q=_o(j.floating,d.y);return c?{...O,transform:"translate("+I+"px, "+q+"px)",...Pa(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:q}},[n,c,j.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:K,refs:H,elements:j,floatingStyles:W}),[d,K,H,j,W])}const qd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?To({element:r.current,padding:o}).fn(n):{}:r?To({element:r,padding:o}).fn(n):{}}}},Zd=(e,t)=>({...Bd(e),options:[e,t]}),Qd=(e,t)=>({...Vd(e),options:[e,t]}),Jd=(e,t)=>({...Ud(e),options:[e,t]}),ef=(e,t)=>({...Hd(e),options:[e,t]}),tf=(e,t)=>({...Wd(e),options:[e,t]}),nf=(e,t)=>
vendor: 12,303 bytes, line 26
26({...Kd(e),options:[e,t]}),rf=(e,t)=>({...qd(e),options:[e,t]});var of="Arrow",Aa=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return p.jsx(T.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Aa.displayName=of;var af=Aa;function Tt(e){const[t,n]=i.useState(void 0);return te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,c=u.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var kr="Popper",[Ta,ke]=ne(kr),[sf,_a]=Ta(kr),Ia=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return p.jsx(sf,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ia.displayName=kr;var Ma="PopperAnchor",Da=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=_a(Ma,n),s=i.useRef(null),c=B(t,s);return i.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:p.jsx(T.div,{...o,ref:c})});Da.displayName=Ma;var Lr="PopperContent",[cf,lf]=Ta(Lr),Na=i.forwardRef((e,t)=>{var M,G,z,X,Z,Q;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:w,...m}=e,g=_a(Lr,n),[b,x]=i.useState(null),y=B(t,ce=>x(ce)),[C,S]=i.useState(null),R=Tt(C),E=(R==null?void 0:R.width)??0,D=(R==null?void 0:R.height)??0,N=r+(a!=="center"?"-"+a:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(u)?u:[u],V=L.length>0,K={padding:k,boundary:L.filter(df),altBoundary:V},{refs:_,floatingStyles:H,placement:j,isPositioned:W,middlewareData:O}=Xd({strategy:"fixed",placement:N,whileElementsMounted:(...ce)=>$d(...ce,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Zd({mainAxis:o+D,alignmentAxis:s}),l&&Qd({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Jd():void 0,...K}),l&&ef({...K}),tf({...K,apply:({elements:ce,rects:we,availableWidth:pt,availableHeight:vt})=>{const{width:mt,height:Zl}=we.reference,Ft=ce.floating.style;Ft.setProperty("--radix-popper-available-width",`${pt}px`),Ft.setProperty("--radix-popper-available-height",`${vt}px`),Ft.setProperty("--radix-popper-anchor-width",`${mt}px`),Ft.setProperty("--radix-popper-anchor-height",`${Zl}px`)}}),C&&rf({element:C,padding:c}),ff({arrowWidth:E,arrowHeight:D}),v&&nf({strategy:"referenceHidden",...K})]}),[I,q]=La(j),J=ee(w);te(()=>{W&&(J==null||J())},[W,J]);const P=(M=O.arrow)==null?void 0:M.x,$=(G=O.arrow)==null?void 0:G.y,U=((z=O.arrow)==null?void 0:z.centerOffset)!==0,[F,Y]=i.useState();return te(()=>{b&&Y(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:W?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(X=O.transformOrigin)==null?void 0:X.x,(Z=O.transformOrigin)==null?void 0:Z.y].join(" "),...((Q=O.hide)==null?void 0:Q.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(cf,{scope:n,placedSide:I,onArrowChange:S,arrowX:P,arrowY:$,shouldHideArrow:U,children:p.jsx(T.div,{"data-side":I,"data-align":q,...m,ref:y,style:{...m.style,animation:W?void 0:"none"}})})})});Na.displayName=Lr;var Oa="PopperArrow",uf={top:"bottom",right:"left",bottom:"top",left:"right"},ka=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=lf(Oa,r),s=uf[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(af,{...o,ref:n,style:{...o.style,display:"block"}})})});ka.displayName=Oa;function df(e){return e!==null}var ff=e=>({name:"transformOrigin",options:e,fn(t){var g,b,x;const{placement:n,rects:r,middlewareData:o}=t,s=((g=o.arrow)==null?void 0:g.centerOffset)!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=La(n),f={start:"0%",center:"50%",end:"100%"}[d],v=(((b=o.arrow)==null?void 0:b.x)??0)+c/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let w="",m="";return u==="bottom"?(w=s?f:`${v}px`,m=`${-l}px`):u==="top"?(w=s?f:`${v}px`,m=`${r.floating.height+l}px`):u==="right"?(w=`${-l}px`,m=s?f:`${h}px`):u==="left"&&(w=`${r.floating.width+l}px`,m=s?f:`${h}px`),{data:{x:w,y:m}}}});function La(e){const[t,n="center"]=e.split("-");return[t,n]}var pn=Ia,_t=Da,vn=Na,mn=ka,[hn,Wg]=ne("Tooltip",[ke]),gn=ke(),ja="TooltipProvider",pf=700,cr="tooltip.open",[vf,jr]=hn(ja),Fa=e=>{const{__scopeTooltip:t,delayDuration:n=pf,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=i.useRef(!0),c=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),p.jsx(vf,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:i.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:a})};Fa.displayName=ja;var yt="Tooltip",[mf,wn]=hn(yt),$a=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=jr(yt,e.__scopeTooltip),u=gn(t),[d,f]=i.useState(null),v=oe(),h=i.useRef(0),w=s??l.disableHoverableContent,m=c??l.delayDuration,g=i.useRef(!1),[b,x]=se({prop:r,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(cr))):l.onClose(),a==null||a(E)},caller:yt}),y=i.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),C=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,x(!0)},[x]),S=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),R=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,x(!0),h.current=0},m)},[m,x]);return i.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(pn,{...u,children:p.jsx(mf,{scope:t,contentId:v,open:b,stateAttribute:y,trigger:d,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayedRef.current?R():C()},[l.isOpenDelayedRef,R,C]),onTriggerLeave:i.useCallback(()=>{w?S():(window.clearTimeout(h.current),h.current=0)},[S,w]),onOpen:C,onClose:S,disableHoverableContent:w,children:n})})};$a.displayName=yt;var lr="TooltipTrigger",Ba=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=wn(lr,n),a=jr(lr,n),s=gn(n),c=i.useRef(null),l=B(t,c,o.onTriggerChange),u=i.useRef(!1),d=i.useRef(!1),f=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(_t,{asChild:!0,...s,children:p.jsx(T.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:A(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:A(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:A(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:A(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:A(e.onBlur,o.onClose),onClick:A(e.onClick,o.onClose)})})});Ba.displayName=lr;var hf="TooltipPortal",[Kg,gf]=hn(hf,{forceMount:void 0}),rt="TooltipContent",Va=i.forwardRef((e,t)=>{const n=gf(rt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=wn(rt,e.__scopeTooltip);return p.jsx(ae,{present:r||s.open,children:s.disableHoverableContent?p.jsx(Ha,{side:o,...a,ref:t}):p.jsx(wf,{side:o,...a,ref:t})})}),wf=i.forwardRef((e,t)=>{const n=wn(rt,e.__scopeTooltip),r=jr(rt,e.__scopeTooltip),o=i.useRef(null),a=B(t,o),[s,c]=i.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,v=i.useCallback(()=>{c(null),f(!1)},[f]),h=i.useCallback((w,m)=>{const g=w.currentTarget,b={x:w.clientX,y:w.clientY},x=Sf(b,g.getBoundingClientRect()),y=Ef(b,x),C=Rf(m.getBoundingClientRect()),S=Af([...y,...C]);c(S),f(!0)},[f]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(l&&d){const w=g=>h(g,d),m=g=>h(g,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[l,d,h,v]),i.useEffect(()=>{if(s){const w=m=>{const g=m.target,b={x:m.clientX,y:m.clientY},x=(l==null?void 0:l.contains(g))||(d==null?void 0:d.contains(g)),y=!Pf(b,s);x?v():y&&(v(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,s,u,v]),p.jsx(Ha,{...e,ref:a})}),[xf,bf]=hn(yt,{isInside:!1}),yf=Zo("TooltipContent"),Ha=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=wn(rt,n),u=gn(n),{onClose:d}=l;return i.useEffect(()=>(document.addEventListener(cr,d),()=>document.removeEventListener(cr,d)),[d]),i.useEffect(()=>{if(l.trigger){const f=v=>{const h=v.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.jsx(Ue,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(vn,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.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:[p.jsx(yf,{children:r}),p.jsx(xf,{scope:n,isInside:!0,children:p.jsx(Eu,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Va.displayName=rt;var Wa="TooltipArrow",Cf=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gn(n);return bf(Wa,n).isInside?null:p.jsx(mn,{...o,...r,ref:t})});Cf.displayName=Wa;function Sf(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ef(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Rf(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Pf(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a],l=t[s],u=c.x,d=c.y,f=l.x,v=l.y;d>r!=v>r&&n<(f-u)*(r-d)/(v-d)+u&&(o=!o)}return o}function Af(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Tf(t)}function Tf(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}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 Ug=Fa,Gg=$a,zg=Ba,Yg=Va;function _f(){return Jl.useSyncExternalStore(If,()=>!0,()=>!1)}function If(){return()=>{}}var Fr="Avatar",[Mf,Xg]=ne(Fr),[Df,Ka]=Mf(Fr),Ua=i.forwardRef((e,t)=>
vendor: 7,177 bytes, line 26
26{const{__scopeAvatar:n,...r}=e,[o,a]=i.useState("idle");return p.jsx(Df,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:p.jsx(T.span,{...r,ref:t})})});Ua.displayName=Fr;var Ga="AvatarImage",za=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Ka(Ga,n),c=Nf(r,a),l=ee(u=>{o(u),s.onImageLoadingStatusChange(u)});return te(()=>{c!=="idle"&&l(c)},[c,l]),c==="loaded"?p.jsx(T.img,{...a,ref:t,src:r}):null});za.displayName=Ga;var Ya="AvatarFallback",Xa=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ka(Ya,n),[s,c]=i.useState(r===void 0);return i.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?p.jsx(T.span,{...o,ref:t}):null});Xa.displayName=Ya;function Io(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Nf(e,{referrerPolicy:t,crossOrigin:n}){const r=_f(),o=i.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,c]=i.useState(()=>Io(a,e));return te(()=>{c(Io(a,e))},[a,e]),te(()=>{const l=f=>()=>{c(f)};if(!a)return;const u=l("loaded"),d=l("error");return a.addEventListener("load",u),a.addEventListener("error",d),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",d)}},[a,n,t]),s}var qg=Ua,Zg=za,Qg=Xa,Of=i.createContext(void 0);function Le(e){const t=i.useContext(Of);return e||t||"ltr"}var Kn=0;function xn(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mo()),document.body.insertAdjacentElement("beforeend",e[1]??Mo()),Kn++,()=>{Kn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Kn--}},[])}function Mo(){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 Un="focusScope.autoFocusOnMount",Gn="focusScope.autoFocusOnUnmount",Do={bubbles:!1,cancelable:!0},kf="FocusScope",It=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),u=ee(o),d=ee(a),f=i.useRef(null),v=B(t,m=>l(m)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let m=function(y){if(h.paused||!c)return;const C=y.target;c.contains(C)?f.current=C:_e(f.current,{select:!0})},g=function(y){if(h.paused||!c)return;const C=y.relatedTarget;C!==null&&(c.contains(C)||_e(f.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&_e(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(b);return c&&x.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){Oo.add(h);const m=document.activeElement;if(!c.contains(m)){const b=new CustomEvent(Un,Do);c.addEventListener(Un,u),c.dispatchEvent(b),b.defaultPrevented||(Lf(Vf(qa(c)),{select:!0}),document.activeElement===m&&_e(c))}return()=>{c.removeEventListener(Un,u),setTimeout(()=>{const b=new CustomEvent(Gn,Do);c.addEventListener(Gn,d),c.dispatchEvent(b),b.defaultPrevented||_e(m??document.body,{select:!0}),c.removeEventListener(Gn,d),Oo.remove(h)},0)}}},[c,u,d,h]);const w=i.useCallback(m=>{if(!n&&!r||h.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(g&&b){const x=m.currentTarget,[y,C]=jf(x);y&&C?!m.shiftKey&&b===C?(m.preventDefault(),n&&_e(y,{select:!0})):m.shiftKey&&b===y&&(m.preventDefault(),n&&_e(C,{select:!0})):b===x&&m.preventDefault()}},[n,r,h.paused]);return p.jsx(T.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});It.displayName=kf;function Lf(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_e(r,{select:t}),document.activeElement!==n)return}function jf(e){const t=qa(e),n=No(t,e),r=No(t.reverse(),e);return[n,r]}function qa(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function No(e,t){for(const n of e)if(!Ff(n,{upTo:t}))return n}function Ff(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 $f(e){return e instanceof HTMLInputElement&&"select"in e}function _e(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$f(e)&&t&&e.select()}}var Oo=Bf();function Bf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ko(e,t),e.unshift(t)},remove(t){var n;e=ko(e,t),(n=e[0])==null||n.resume()}}}function ko(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Vf(e){return e.filter(t=>t.tagName!=="A")}var zn="rovingFocusGroup.onEntryFocus",Hf={bubbles:!1,cancelable:!0},Mt="RovingFocusGroup",[ur,Za,Wf]=st(Mt),[Kf,ut]=ne(Mt,[Wf]),[Uf,Gf]=Kf(Mt),Qa=i.forwardRef((e,t)=>p.jsx(ur.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ur.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(zf,{...e,ref:t})})}));Qa.displayName=Mt;var zf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,v=i.useRef(null),h=B(t,v),w=Le(a),[m,g]=se({prop:s,defaultProp:c??null,onChange:l,caller:Mt}),[b,x]=i.useState(!1),y=ee(u),C=Za(n),S=i.useRef(!1),[R,E]=i.useState(0);return i.useEffect(()=>{const D=v.current;if(D)return D.addEventListener(zn,y),()=>D.removeEventListener(zn,y)},[y]),p.jsx(Uf,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:m,onItemFocus:i.useCallback(D=>g(D),[g]),onItemShiftTab:i.useCallback(()=>x(!0),[]),onFocusableItemAdd:i.useCallback(()=>E(D=>D+1),[]),onFocusableItemRemove:i.useCallback(()=>E(D=>D-1),[]),children:p.jsx(T.div,{tabIndex:b||R===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{S.current=!0}),onFocus:A(e.onFocus,D=>{const N=!S.current;if(D.target===D.currentTarget&&N&&!b){const k=new CustomEvent(zn,Hf);if(D.currentTarget.dispatchEvent(k),!k.defaultPrevented){const L=C().filter(j=>j.focusable),V=L.find(j=>j.active),K=L.find(j=>j.id===m),H=[V,K,...L].filter(Boolean).map(j=>j.ref.current);ts(H,d)}}S.current=!1}),onBlur:A(e.onBlur,()=>x(!1))})})}),Ja="RovingFocusGroupItem",es=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...c}=e,l=oe(),u=a||l,d=Gf(Ja,n),f=d.currentTabStopId===u,v=Za(n),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:m}=d;return i.useEffect(()=>{if(r)return h(),()=>w()}
vendor: 4,444 bytes, line 26
26,[r,h,w]),p.jsx(ur.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:p.jsx(T.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:A(e.onMouseDown,g=>{r?d.onItemFocus(u):g.preventDefault()}),onFocus:A(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:A(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const b=qf(g,d.orientation,d.dir);if(b!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(C=>C.focusable).map(C=>C.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const C=y.indexOf(g.currentTarget);y=d.loop?Zf(y,C+1):y.slice(C+1)}setTimeout(()=>ts(y))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:m!=null}):s})})});es.displayName=Ja;var Yf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Xf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function qf(e,t,n){const r=Xf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Yf[r]}function ts(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Zf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $r=Qa,Br=es,Qf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ye=new WeakMap,Ht=new WeakMap,Wt={},Yn=0,ns=function(e){return e&&(e.host||ns(e.parentNode))},Jf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ns(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ep=function(e,t,n,r){var o=Jf(t,Array.isArray(e)?e:[e]);Wt[n]||(Wt[n]=new WeakMap);var a=Wt[n],s=[],c=new Set,l=new Set(o),u=function(f){!f||c.has(f)||(c.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(v){if(c.has(v))d(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",m=(Ye.get(v)||0)+1,g=(a.get(v)||0)+1;Ye.set(v,m),a.set(v,g),s.push(v),m===1&&w&&Ht.set(v,!0),g===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return d(t),c.clear(),Yn++,function(){s.forEach(function(f){var v=Ye.get(f)-1,h=a.get(f)-1;Ye.set(f,v),a.set(f,h),v||(Ht.has(f)||f.removeAttribute(r),Ht.delete(f)),h||f.removeAttribute(n)}),Yn--,Yn||(Ye=new WeakMap,Ye=new WeakMap,Ht=new WeakMap,Wt={})}},bn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ep(r,o,n,"aria-hidden")):function(){return null}},xe=function(){return xe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xe.apply(this,arguments)};function rs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function tp(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var zt="right-scroll-bar-position",Yt="width-before-scroll-bar",np="with-scroll-bars-hidden",rp="--removed-body-scroll-bar-size";function Xn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function op(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ap=typeof window<"u"?i.useLayoutEffect:i.useEffect,Lo=new WeakMap;function sp(e,t){var n=op(null,function(r){return e.forEach(function(o){return Xn(o,r)})});return ap(function(){var r=Lo.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||Xn(c,null)}),a.forEach(function(c){o.has(c)||Xn(c,s)})}Lo.set(n,e)},[e]),n}function ip(e){return e}
vendor: 1,690 bytes, line 26
26function cp(e,t){t===void 0&&(t=ip);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var d=s;s=[],d.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function lp(e){e===void 0&&(e={});var t=cp(null);return t.options=xe({async:!0,ssr:!1},e),t}var os=function(e){var t=e.sideCar,n=rs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,xe({},n))};os.isSideCarExport=!0;function up(e,t){return e.useMedium(t),os}var as=lp(),qn=function(){},yn=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:qn,onWheelCapture:qn,onTouchMoveCapture:qn}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,m=e.inert,g=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,y=e.gapMode,C=rs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,R=sp([n,t]),E=xe(xe({}
vendor: 9,226 bytes, lines 26-66
26,C),o);return i.createElement(i.Fragment,null,d&&i.createElement(S,{sideCar:as,removeScrollBar:u,shards:f,noRelative:h,noIsolation:w,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),s?i.cloneElement(i.Children.only(c),xe(xe({},E),{ref:R})):i.createElement(x,xe({},E,{className:l,ref:R}),c))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yn.classNames={fullWidth:Yt,zeroRight:zt};var dp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dp();return t&&e.setAttribute("nonce",t),e}function pp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fp())&&(pp(t,n),vp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hp=function(){var e=mp();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ss=function(){var e=hp(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},gp={left:0,top:0,right:0,gap:0},Zn=function(e){return parseInt(e||"",10)||0},wp=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zn(n),Zn(r),Zn(o)]},xp=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gp;var t=wp(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},bp=ss(),et="data-scroll-locked",yp=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
27  .`.concat(np,` {
28   overflow: hidden `).concat(r,`;
29   padding-right: `).concat(c,"px ").concat(r,`;
30  }
31  body[`).concat(et,`] {
32    overflow: hidden `).concat(r,`;
33    overscroll-behavior: contain;
34    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
35    padding-left: `.concat(o,`px;
36    padding-top: `).concat(a,`px;
37    padding-right: `).concat(s,`px;
38    margin-left:0;
39    margin-top:0;
40    margin-right: `).concat(c,"px ").concat(r,`;
41    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
42  }
43  
44  .`).concat(zt,` {
45    right: `).concat(c,"px ").concat(r,`;
46  }
47  
48  .`).concat(Yt,` {
49    margin-right: `).concat(c,"px ").concat(r,`;
50  }
51  
52  .`).concat(zt," .").concat(zt,` {
53    right: 0 `).concat(r,`;
54  }
55  
56  .`).concat(Yt," .").concat(Yt,` {
57    margin-right: 0 `).concat(r,`;
58  }
59  
60  body[`).concat(et,`] {
61    `).concat(rp,": ").concat(c,`px;
62  }
63`)},jo=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},Cp=function(){i.useEffect(function(){return document.body.setAttribute(et,(jo()+1).toString()),function(){var e=jo()-1;e<=0?document.body.removeAttribute(et):document.body.setAttribute(et,e.toString())}},[])},Sp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Cp();var a=i.useMemo(function(){return xp(o)},[o]);return i.createElement(bp,{styles:yp(a,!t,o,n?"":"!important")})},dr=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return dr=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{dr=!1}var Xe=dr?{passive:!1}:!1,Ep=function(e){return e.tagName==="TEXTAREA"},is=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ep(e)&&n[t]==="visible")},Rp=function(e){return is(e,"overflowY")},Pp=function(e){return is(e,"overflowX")},Fo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=cs(e,r);if(o){var a=ls(e,r),s=a[1],c=a[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ap=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Tp=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cs=function(e,t){return e==="v"?Rp(t):Pp(t)},ls=function(e,t){return e==="v"?Ap(t):Tp(t)},_p=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ip=function(e,t,n,r,o){var a=_p(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,l=t.contains(c),u=!1,d=s>0,f=0,v=0;do{if(!c)break;var h=ls(e,c),w=h[0],m=h[1],g=h[2],b=m-g-a*w;(w||b)&&cs(e,c)&&(f+=b,v+=w);var x=c.parentNode;c=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(v)<1||!o))&&(u=!0),u},Ut=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$o=function(e){return[e.deltaX,e.deltaY]},Bo=function(e){return e&&"current"in e?e.current:e},Mp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dp=function(e){return`
64  .block-interactivity-`.concat(e,` {pointer-events: none;}
65  .allow-interactivity-`).concat(e,` {pointer-events: all;}
66`)},Np=0,qe=[];function Op(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Np++)[0],a=i.useState(ss)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=tp([e.lockRef.current],(e.shards||[]).map(Bo),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=Ut(m),x=n.current,y="deltaX"in m?m.deltaX:x[0]-b[0],C="deltaY"in m?m.deltaY:x[1]-b[1],S,R=m.target,E=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in m&&E==="h"&&R.type==="range")return!1;var D=Fo(E,R);if(!D)return!0;if(D?S=E:(S=E==="v"?"h":"v",D=Fo(E,R)),!D)return!1;if(!r.current&&"changedTouches"in m&&(y||C)&&(r.current=S),!S)return!0;var N=r.current||S;return Ip(N,g,m,N==="h"?y:C,!0)},[]),l=i.useCallback(function(m){var g=m;if(!(!qe.length||qe[qe.length-1]!==a)){var b="deltaY"in g?$o(g):Ut(g),x=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Mp(S.delta,b)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var y=(s.current.shards||[]).map(Bo).filter(Boolean).filter(function(S){return S.contains(g.target)}),C=y.length>0?c(g,y[0]):!s.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),u=i.useCallback(function(m,g,b,x){var y={name:m,delta:g,target:b,should:x,shadowParent:kp(b)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),d=i.useCallback(function(m){n.current=Ut(m),r.current=void 0},[]),f=i.useCallback(function(m){u(m.type,$o(m),m.target,c(m,e.lockRef.current))},[]),v=i.useCallback(function(m){u(m.type,Ut(m),m.target,c(m,e.lockRef.current))},[]);i.useEffect(function(){return qe.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Xe),document.addEventListener("touchmove",l,Xe),document.addEventListener("touchstart",d,Xe),function(){qe=qe.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,Xe),document.removeEventListener("touchmove",l,Xe),document.removeEventListener("touchstart",d,Xe)}},[]);var h=e.removeScrollBar,w=e.inert;return i.createElement(i.Fragment,null,w?i.createElement(a,{styles:Dp(o)}):null,h?i.createElement(Sp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function kp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Lp=up(as,Op);var Dt=i.forwardRef(function(e,t){return i.createElement(yn,xe({},e,{ref:t,sideCar:Lp}))});Dt.classNames=yn.classNames;var fr=["Enter"," "],jp=["ArrowDown","PageUp","Home"],us=["ArrowUp","PageDown","End"],Fp=[...jp,...us],$p={ltr:[...fr,"ArrowRight"],rtl:[...fr,"ArrowLeft"]},Bp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nt="Menu",[Ct,Vp,Hp]=st(Nt),[Ge,ds]=ne(Nt,[Hp,ke,ut]),Cn=ke(),fs=ut(),[Wp,ze]=Ge(Nt),[Kp,Ot]=Ge(Nt),ps=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,c=Cn(t),[l,u]=i.useState(null),d=i.useRef(!1),f=ee(a),v=Le(o);return i.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),p.jsx(pn,{...c,children:p.jsx(Wp,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:p.jsx(Kp,{scope:t,onClose:i.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:v,modal:s,children:r})})})};ps.displayName=Nt;var Up="MenuAnchor",Vr=i.forwardRef((e,t)=>
vendor: 32,292 bytes, line 66
66{const{__scopeMenu:n,...r}=e,o=Cn(n);return p.jsx(_t,{...o,...r,ref:t})});Vr.displayName=Up;var Hr="MenuPortal",[Gp,vs]=Ge(Hr,{forceMount:void 0}),ms=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ze(Hr,t);return p.jsx(Gp,{scope:t,forceMount:n,children:p.jsx(ae,{present:n||a.open,children:p.jsx(it,{asChild:!0,container:o,children:r})})})};ms.displayName=Hr;var de="MenuContent",[zp,Wr]=Ge(de),hs=i.forwardRef((e,t)=>{const n=vs(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ze(de,e.__scopeMenu),s=Ot(de,e.__scopeMenu);return p.jsx(Ct.Provider,{scope:e.__scopeMenu,children:p.jsx(ae,{present:r||a.open,children:p.jsx(Ct.Slot,{scope:e.__scopeMenu,children:s.modal?p.jsx(Yp,{...o,ref:t}):p.jsx(Xp,{...o,ref:t})})})})}),Yp=i.forwardRef((e,t)=>{const n=ze(de,e.__scopeMenu),r=i.useRef(null),o=B(t,r);return i.useEffect(()=>{const a=r.current;if(a)return bn(a)},[]),p.jsx(Kr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:A(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Xp=i.forwardRef((e,t)=>{const n=ze(de,e.__scopeMenu);return p.jsx(Kr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),qp=Me("MenuContent.ScrollLock"),Kr=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:v,onDismiss:h,disableOutsideScroll:w,...m}=e,g=ze(de,n),b=Ot(de,n),x=Cn(n),y=fs(n),C=Vp(n),[S,R]=i.useState(null),E=i.useRef(null),D=B(t,E,g.onContentChange),N=i.useRef(0),k=i.useRef(""),L=i.useRef(0),V=i.useRef(null),K=i.useRef("right"),_=i.useRef(0),H=w?Dt:i.Fragment,j=w?{as:qp,allowPinchZoom:!0}:void 0,W=I=>{var M,G;const q=k.current+I,J=C().filter(z=>!z.disabled),P=document.activeElement,$=(M=J.find(z=>z.ref.current===P))==null?void 0:M.textValue,U=J.map(z=>z.textValue),F=cv(U,q,$),Y=(G=J.find(z=>z.textValue===F))==null?void 0:G.ref.current;(function z(X){k.current=X,window.clearTimeout(N.current),X!==""&&(N.current=window.setTimeout(()=>z(""),1e3))})(q),Y&&setTimeout(()=>Y.focus())};i.useEffect(()=>()=>window.clearTimeout(N.current),[]),xn();const O=i.useCallback(I=>{var J,P;return K.current===((J=V.current)==null?void 0:J.side)&&uv(I,(P=V.current)==null?void 0:P.area)},[]);return p.jsx(zp,{scope:n,searchRef:k,onItemEnter:i.useCallback(I=>{O(I)&&I.preventDefault()},[O]),onItemLeave:i.useCallback(I=>{var q;O(I)||((q=E.current)==null||q.focus(),R(null))},[O]),onTriggerLeave:i.useCallback(I=>{O(I)&&I.preventDefault()},[O]),pointerGraceTimerRef:L,onPointerGraceIntentChange:i.useCallback(I=>{V.current=I},[]),children:p.jsx(H,{...j,children:p.jsx(It,{asChild:!0,trapped:o,onMountAutoFocus:A(a,I=>{var q;I.preventDefault(),(q=E.current)==null||q.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:p.jsx(Ue,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:v,onDismiss:h,children:p.jsx($r,{asChild:!0,...y,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:R,onEntryFocus:A(l,I=>{b.isUsingKeyboardRef.current||I.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(vn,{role:"menu","aria-orientation":"vertical","data-state":Ds(g.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:D,style:{outline:"none",...m.style},onKeyDown:A(m.onKeyDown,I=>{const J=I.target.closest("[data-radix-menu-content]")===I.currentTarget,P=I.ctrlKey||I.altKey||I.metaKey,$=I.key.length===1;J&&(I.key==="Tab"&&I.preventDefault(),!P&&$&&W(I.key));const U=E.current;if(I.target!==U||!Fp.includes(I.key))return;I.preventDefault();const Y=C().filter(M=>!M.disabled).map(M=>M.ref.current);us.includes(I.key)&&Y.reverse(),sv(Y)}),onBlur:A(e.onBlur,I=>{I.currentTarget.contains(I.target)||(window.clearTimeout(N.current),k.current="")}),onPointerMove:A(e.onPointerMove,St(I=>{const q=I.target,J=_.current!==I.clientX;if(I.currentTarget.contains(q)&&J){const P=I.clientX>_.current?"right":"left";K.current=P,_.current=I.clientX}}))})})})})})})});hs.displayName=de;var Zp="MenuGroup",Ur=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(T.div,{role:"group",...r,ref:t})});Ur.displayName=Zp;var Qp="MenuLabel",gs=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(T.div,{...r,ref:t})});gs.displayName=Qp;var Jt="MenuItem",Vo="menu.itemSelect",Sn=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),s=Ot(Jt,e.__scopeMenu),c=Wr(Jt,e.__scopeMenu),l=B(t,a),u=i.useRef(!1),d=()=>{const f=a.current;if(!n&&f){const v=new CustomEvent(Vo,{bubbles:!0,cancelable:!0});f.addEventListener(Vo,h=>r==null?void 0:r(h),{once:!0}),Er(f,v),v.defaultPrevented?u.current=!1:s.onClose()}};return p.jsx(ws,{...o,ref:l,disabled:n,onClick:A(e.onClick,d),onPointerDown:f=>{var v;(v=e.onPointerDown)==null||v.call(e,f),u.current=!0},onPointerUp:A(e.onPointerUp,f=>{var v;u.current||(v=f.currentTarget)==null||v.click()}),onKeyDown:A(e.onKeyDown,f=>{const v=c.searchRef.current!=="";n||v&&f.key===" "||fr.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Sn.displayName=Jt;var ws=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Wr(Jt,n),c=fs(n),l=i.useRef(null),u=B(t,l),[d,f]=i.useState(!1),[v,h]=i.useState("");return i.useEffect(()=>{const w=l.current;w&&h((w.textContent??"").trim())},[a.children]),p.jsx(Ct.ItemSlot,{scope:n,disabled:r,textValue:o??v,children:p.jsx(Br,{asChild:!0,...c,focusable:!r,children:p.jsx(T.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:A(e.onPointerMove,St(w=>{r?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:A(e.onPointerLeave,St(w=>s.onItemLeave(w))),onFocus:A(e.onFocus,()=>f(!0)),onBlur:A(e.onBlur,()=>f(!1))})})})}),Jp="MenuCheckboxItem",xs=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Es,{scope:e.__scopeMenu,checked:n,children:p.jsx(Sn,{role:"menuitemcheckbox","aria-checked":en(n)?"mixed":n,...o,ref:t,"data-state":zr(n),onSelect:A(o.onSelect,()=>r==null?void 0:r(en(n)?!0:!n),{checkForDefaultPrevented:!1})})})});xs.displayName=Jp;var bs="MenuRadioGroup",[ev,tv]=Ge(bs,{value:void 0,onValueChange:()=>{}}),ys=i.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ee(r);return p.jsx(ev,{scope:e.__scopeMenu,value:n,onValueChange:a,children:p.jsx(Ur,{...o,ref:t})})});ys.displayName=bs;var Cs="MenuRadioItem",Ss=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=tv(Cs,e.__scopeMenu),a=n===o.value;return p.jsx(Es,{scope:e.__scopeMenu,checked:a,children:p.jsx(Sn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":zr(a),onSelect:A(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Ss.displayName=Cs;var Gr="MenuItemIndicator",[Es,nv]=Ge(Gr,{checked:!1}),Rs=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=nv(Gr,n);return p.jsx(ae,{present:r||en(a.checked)||a.checked===!0,children:p.jsx(T.span,{...o,ref:t,"data-state":zr(a.checked)})})});Rs.displayName=Gr;var rv="MenuSeparator",Ps=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(T.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Ps.displayName=rv;var ov="MenuArrow",As=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Cn(n);return p.jsx(mn,{...o,...r,ref:t})});As.displayName=ov;var av="MenuSub",[Jg,Ts]=Ge(av),gt="MenuSubTrigger",_s=i.forwardRef((e,t)=>{const n=ze(gt,e.__scopeMenu),r=Ot(gt,e.__scopeMenu),o=Ts(gt,e.__scopeMenu),a=Wr(gt,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{const f=c.current;return()=>{window.clearTimeout(f),l(null)}},[c,l]),p.jsx(Vr,{asChild:!0,...u,children:p.jsx(ws,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ds(n.open),...e,ref:Re(t,o.onTriggerChange),onClick:f=>{var v;(v=e.onClick)==null||v.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:A(e.onPointerMove,St(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:A(e.onPointerLeave,St(f=>{var h,w;d();const v=(h=n.content)==null?void 0:h.getBoundingClientRect();if(v){const m=(w=n.content)==null?void 0:w.dataset.side,g=m==="right",b=g?-5:5,x=v[g?"left":"right"],y=v[g?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+b,y:f.clientY},{x,y:v.top},{x:y,y:v.top},{x:y,y:v.bottom},{x,y:v.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:A(e.onKeyDown,f=>{var h;const v=a.searchRef.current!=="";e.disabled||v&&f.key===" "||$p[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});_s.displayName=gt;var Is="MenuSubContent",Ms=i.forwardRef((e,t)=>{const n=vs(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ze(de,e.__scopeMenu),s=Ot(de,e.__scopeMenu),c=Ts(Is,e.__scopeMenu),l=i.useRef(null),u=B(t,l);return p.jsx(Ct.Provider,{scope:e.__scopeMenu,children:p.jsx(ae,{present:r||a.open,children:p.jsx(Ct.Slot,{scope:e.__scopeMenu,children:p.jsx(Kr,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:A(e.onFocusOutside,d=>{d.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:A(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:A(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),v=Bp[s.dir].includes(d.key);f&&v&&(a.onOpenChange(!1),(h=c.trigger)==null||h.focus(),d.preventDefault())})})})})})});Ms.displayName=Is;function Ds(e){return e?"open":"closed"}function en(e){return e==="indeterminate"}function zr(e){return en(e)?"indeterminate":e?"checked":"unchecked"}function sv(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function iv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function cv(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=iv(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function lv(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a],l=t[s],u=c.x,d=c.y,f=l.x,v=l.y;d>r!=v>r&&n<(f-u)*(r-d)/(v-d)+u&&(o=!o)}return o}function uv(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return lv(n,t)}function St(e){return t=>t.pointerType==="mouse"?e(t):void 0}var dv=ps,fv=Vr,pv=ms,vv=hs,mv=Ur,hv=gs,gv=Sn,wv=xs,xv=ys,bv=Ss,yv=Rs,Cv=Ps,Sv=As,Ev=_s,Rv=Ms,En="DropdownMenu",[Pv,ew]=ne(En,[ds]),ie=ds(),[Av,Ns]=Pv(En),Os=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=ie(t),u=i.useRef(null),[d,f]=se({prop:o,defaultProp:a??!1,onChange:s,caller:En});return p.jsx(Av,{scope:t,triggerId:oe(),triggerRef:u,contentId:oe(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(v=>!v),[f]),modal:c,children:p.jsx(dv,{...l,open:d,onOpenChange:f,dir:r,modal:c,children:n})})};Os.displayName=En;var ks="DropdownMenuTrigger",Ls=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Ns(ks,n),s=ie(n);return p.jsx(fv,{asChild:!0,...s,children:p.jsx(T.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Re(t,a.triggerRef),onPointerDown:A(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:A(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Ls.displayName=ks;var Tv="DropdownMenuPortal",js=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ie(t);return p.jsx(pv,{...r,...n})};js.displayName=Tv;var Fs="DropdownMenuContent",$s=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ns(Fs,n),a=ie(n),s=i.useRef(!1);return p.jsx(vv,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:A(e.onCloseAutoFocus,c=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:A(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!o.modal||d)&&(s.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)"}})});$s.displayName=Fs;var _v="DropdownMenuGroup",Iv=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(mv,{...o,...r,ref:t})});Iv.displayName=_v;var Mv="DropdownMenuLabel",Bs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(hv,{...o,...r,ref:t})});Bs.displayName=Mv;var Dv="DropdownMenuItem",Vs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(gv,{...o,...r,ref:t})});Vs.displayName=Dv;var Nv="DropdownMenuCheckboxItem",Hs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(wv,{...o,...r,ref:t})});Hs.displayName=Nv;var Ov="DropdownMenuRadioGroup",kv=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(xv,{...o,...r,ref:t})});kv.displayName=Ov;var Lv="DropdownMenuRadioItem",Ws=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(bv,{...o,...r,ref:t})});Ws.displayName=Lv;var jv="DropdownMenuItemIndicator",Ks=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(yv,{...o,...r,ref:t})});Ks.displayName=jv;var Fv="DropdownMenuSeparator",Us=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Cv,{...o,...r,ref:t})});Us.displayName=Fv;var $v="DropdownMenuArrow",Bv=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Sv,{...o,...r,ref:t})});Bv.displayName=$v;var Vv="DropdownMenuSubTrigger",Gs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Ev,{...o,...r,ref:t})});Gs.displayName=Vv;var Hv="DropdownMenuSubContent",zs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Rv,{...o,...r,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)"}})});zs.displayName=Hv;var tw=Os,nw=Ls,rw=js,ow=$s,aw=Bs,sw=Vs,iw=Hs,cw=Ws,lw=Ks,uw=Us,dw=Gs,fw=zs,Rn="Popover",[Ys,pw]=ne(Rn,[ke]),kt=ke(),[Wv,je]=Ys(Rn),Xs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,c=kt(t),l=i.useRef(null),[u,d]=i.useState(!1),[f,v]=se({prop:r,defaultProp:o??!1,onChange:a,caller:Rn});return p.jsx(pn,{...c,children:p.jsx(Wv,{scope:t,contentId:oe(),triggerRef:l,open:f,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(h=>!h),[v]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:s,children:n})})};Xs.displayName=Rn;var qs="PopoverAnchor",Kv=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=je(qs,n),a=kt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(s(),()=>c()),[s,c]),p.jsx(_t,{...a,...r,ref:t})});Kv.displayName=qs;var Zs="PopoverTrigger",Qs=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=je(Zs,n),a=kt(n),s=B(t,o.triggerRef),c=p.jsx(T.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ri(o.open),...r,ref:s,onClick:A(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:p.jsx(_t,{asChild:!0,...a,children:c})});Qs.displayName=Zs;var Yr="PopoverPortal",[Uv,Gv]=Ys(Yr,{forceMount:void 0}),Js=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=je(Yr,t);return p.jsx(Uv,{scope:t,forceMount:n,children:p.jsx(ae,{present:n||a.open,children:p.jsx(it,{asChild:!0,container:o,children:r})})})};Js.displayName=Yr;var ot="PopoverContent",ei=i.forwardRef((e,t)=>{const n=Gv(ot,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=je(ot,e.__scopePopover);return p.jsx(ae,{present:r||a.open,children:a.modal?p.jsx(Yv,{...o,ref:t}):p.jsx(Xv,{...o,ref:t})})});ei.displayName=ot;var zv=Me("PopoverContent.RemoveScroll"),Yv=i.forwardRef((e,t)=>{const n=je(ot,e.__scopePopover),r=i.useRef(null),o=B(t,r),a=i.useRef(!1);return i.useEffect(()=>{const s=r.current;if(s)return bn(s)},[]),p.jsx(Dt,{as:zv,allowPinchZoom:!0,children:p.jsx(ti,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),a.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:A(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Xv=i.forwardRef((e,t)=>{const n=je(ot,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return p.jsx(ti,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ti=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...f}=e,v=je(ot,n),h=kt(n);return xn(),p.jsx(It,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Ue,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(vn,{"data-state":ri(v.open),role:"dialog",id:v.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ni="PopoverClose",qv=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=je(ni,n);return p.jsx(T.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});qv.displayName=ni;var Zv="PopoverArrow",Qv=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=kt(n);return p.jsx(mn,{...o,...r,ref:t})});Qv.displayName=Zv;function ri(e){return e?"open":"closed"}var vw=Xs,mw=Qs,hw=Js,gw=ei;function Et(e,[t,n]){return Math.min(n,Math.max(t,e))}function Jv(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var Xr="ScrollArea",[oi,ww]=ne(Xr),[em,fe]=oi(Xr),ai=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:a=600,...s}=e,[c,l]=i.useState(null),[u,d]=i.useState(null),[f,v]=i.useState(null),[h,w]=i.useState(null),[m,g]=i.useState(null),[b,x]=i.useState(0),[y,C]=i.useState(0),[S,R]=i.useState(!1),[E,D]=i.useState(!1),N=B(t,L=>l(L)),k=Le(o);return p.jsx(em,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:c,viewport:u,onViewportChange:d,content:f,onContentChange:v,scrollbarX:h,onScrollbarXChange:w,scrollbarXEnabled:S,onScrollbarXEnabledChange:R,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:E,onScrollbarYEnabledChange:D,onCornerWidthChange:x,onCornerHeightChange:C,children:p.jsx(T.div,{dir:k,...s,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})});ai.displayName=Xr;var si="ScrollAreaViewport",ii=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...a}=e,s=fe(si,n),c=i.useRef(null),l=B(t,c,s.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(T.div,{"data-radix-scroll-area-viewport":"",...a,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});ii.displayName=si;var Ee="ScrollAreaScrollbar",tm=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=fe(Ee,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,c=e.orientation==="horizontal";return i.useEffect(()=>(c?a(!0):s(!0),()=>{c?a(!1):s(!1)}),[c,a,s]),o.type==="hover"?p.jsx(nm,{...r,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(rm,{...r,ref:t,forceMount:n}):o.type==="auto"?p.jsx(ci,{...r,ref:t,forceMount:n}):o.type==="always"?p.jsx(qr,{...r,ref:t}):null});tm.displayName=Ee;var nm=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=fe(Ee,e.__scopeScrollArea),[a,s]=i.useState(!1);return i.useEffect(()=>{const c=o.scrollArea;let l=0;if(c){const u=()=>{window.clearTimeout(l),s(!0)},d=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return c.addEventListener("pointerenter",u),c.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),c.removeEventListener("pointerenter",u),c.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(ae,{present:n||a,children:p.jsx(ci,{"data-state":a?"visible":"hidden",...r,ref:t})})}),rm=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=fe(Ee,e.__scopeScrollArea),a=e.orientation==="horizontal",s=An(()=>l("SCROLL_END"),100),[c,l]=Jv("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return i.useEffect(()=>{if(c==="idle"){const u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[c,o.scrollHideDelay,l]),i.useEffect(()=>{const u=o.viewport,d=a?"scrollLeft":"scrollTop";if(u){let f=u[d];const v=()=>{const h=u[d];f!==h&&(l("SCROLL"),s()),f=h};return u.addEventListener("scroll",v),()=>u.removeEventListener("scroll",v)}},[o.viewport,a,l,s]),p.jsx(ae,{present:n||c!=="hidden",children:p.jsx(qr,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:A(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:A(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),ci=i.forwardRef((e,t)=>{const n=fe(Ee,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,s]=i.useState(!1),c=e.orientation==="horizontal",l=An(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;s(c?u:d)}},10);return at(n.viewport,l),at(n.content,l),p.jsx(ae,{present:r||a,children:p.jsx(qr,{"data-state":a?"visible":"hidden",...o,ref:t})})}),qr=i.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=fe(Ee,e.__scopeScrollArea),a=i.useRef(null),s=i.useRef(0),[c,l]=i.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=fi(c.viewport,c.content),d={...r,sizes:c,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:v=>a.current=v,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:v=>s.current=v};function f(v,h){return um(v,s.current,c,h)}return n==="horizontal"?p.jsx(om,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const v=o.viewport.scrollLeft,h=Ho(v,c,o.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:v=>{o.viewport&&(o.viewport.scrollLeft=v)},onDragScroll:v=>{o.viewport&&(o.viewport.scrollLeft=f(v,o.dir))}}):n==="vertical"?p.jsx(am,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const v=o.viewport.scrollTop,h=Ho(v,c);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:v=>{o.viewport&&(o.viewport.scrollTop=v)},onDragScroll:v=>{o.viewport&&(o.viewport.scrollTop=f(v))}}):null}),om=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=fe(Ee,e.__scopeScrollArea),[s,c]=i.useState(),l=i.useRef(null),u=B(t,l,a.onScrollbarXChange);return i.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),p.jsx(ui,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Pn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const v=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(v),vi(v,f)&&d.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:nn(s.paddingLeft),paddingEnd:nn(s.paddingRight)}})}})}),am=i.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,a=fe(Ee,e.__scopeScrollArea),[s,c]=i.useState(),l=i.useRef(null),u=B(t,l,a.onScrollbarYChange);return i.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),p.jsx(ui,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Pn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const v=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(v),vi(v,f)&&d.preventDefault()}},onResize:()=>{l.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:nn(s.paddingTop),paddingEnd:nn(s.paddingBottom)}})}})}),[sm,li]=oi(Ee),ui=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:c,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:f,...v}=e,h=fe(Ee,n),[w,m]=i.useState(null),g=B(t,N=>m(N)),b=i.useRef(null),x=i.useRef(""),y=h.viewport,C=r.content-r.viewport,S=ee(d),R=ee(l),E=An(f,10);function D(N){if(b.current){const k=N.clientX-b.current.left,L=N.clientY-b.current.top;u({x:k,y:L})}}return i.useEffect(()=>{const N=k=>{const L=k.target;(w==null?void 0:w.contains(L))&&S(k,C)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[y,w,C,S]),i.useEffect(R,[r,R]),at(w,E),at(h.content,E),p.jsx(sm,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:ee(a),onThumbPointerUp:ee(s),onThumbPositionChange:R,onThumbPointerDown:ee(c),children:p.jsx(T.div,{...v,ref:g,style:{position:"absolute",...v.style},onPointerDown:A(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),b.current=w.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),D(N))}),onPointerMove:A(e.onPointerMove,D),onPointerUp:A(e.onPointerUp,N=>{const k=N.target;k.hasPointerCapture(N.pointerId)&&k.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=x.current,h.viewport&&(h.viewport.style.scrollBehavior=""),b.current=null})})})}),tn="ScrollAreaThumb",im=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=li(tn,e.__scopeScrollArea);return p.jsx(ae,{present:n||o.hasThumb,children:p.jsx(cm,{ref:t,...r})})}),cm=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,a=fe(tn,n),s=li(tn,n),{onThumbPositionChange:c}=s,l=B(t,f=>s.onThumbChange(f)),u=i.useRef(void 0),d=An(()=>{u.current&&(u.current(),u.current=void 0)},100);return i.useEffect(()=>{const f=a.viewport;if(f){const v=()=>{if(d(),!u.current){const h=dm(f,c);u.current=h,c()}};return c(),f.addEventListener("scroll",v),()=>f.removeEventListener("scroll",v)}},[a.viewport,d,c]),p.jsx(T.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:A(e.onPointerDownCapture,f=>{const h=f.target.getBoundingClientRect(),w=f.clientX-h.left,m=f.clientY-h.top;s.onThumbPointerDown({x:w,y:m})}),onPointerUp:A(e.onPointerUp,s.onThumbPointerUp)})});im.displayName=tn;var Zr="ScrollAreaCorner",di=i.forwardRef((e,t)=>{const n=fe(Zr,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(lm,{...e,ref:t}):null});di.displayName=Zr;var lm=i.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=fe(Zr,n),[a,s]=i.useState(0),[c,l]=i.useState(0),u=!!(a&&c);return at(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),l(d)}),at(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),s(d)}),u?p.jsx(T.div,{...r,ref:t,style:{width:a,height:c,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function nn(e){return e?parseInt(e,10):0}function fi(e,t){const n=e/t;return isNaN(n)?0:n}function Pn(e){const t=fi(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function um(e,t,n,r="ltr"){const o=Pn(n),a=o/2,s=t||a,c=o-s,l=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-c,d=n.content-n.viewport,f=r==="ltr"?[0,d]:[d*-1,0];return pi([l,u],f)(e)}function Ho(e,t,n="ltr"){const r=Pn(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,s=t.content-t.viewport,c=a-r,l=n==="ltr"?[0,s]:[s*-1,0],u=Et(e,l);return pi([0,s],[0,c])(u)}function pi(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function vi(e,t){return e>0&&e<t}var dm=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=n.left!==a.left,c=n.top!==a.top;(s||c)&&t(),n=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function An(e,t){const n=ee(e),r=i.useRef(0);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),i.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function at(e,t){const n=ee(t);te(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var xw=ai,bw=ii,yw=di,Tn="Tabs",[fm,Cw]=ne(Tn,[ut]),mi=ut(),[pm,Qr]=fm(Tn),hi=i.forwardRef((e,t)=>
vendor: 4,678 bytes, line 66
66{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:c,activationMode:l="automatic",...u}=e,d=Le(c),[f,v]=se({prop:r,onChange:o,defaultProp:a??"",caller:Tn});return p.jsx(pm,{scope:n,baseId:oe(),value:f,onValueChange:v,orientation:s,dir:d,activationMode:l,children:p.jsx(T.div,{dir:d,"data-orientation":s,...u,ref:t})})});hi.displayName=Tn;var gi="TabsList",wi=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Qr(gi,n),s=mi(n);return p.jsx($r,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:p.jsx(T.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});wi.displayName=gi;var xi="TabsTrigger",bi=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=Qr(xi,n),c=mi(n),l=Si(s.baseId,r),u=Ei(s.baseId,r),d=r===s.value;return p.jsx(Br,{asChild:!0,...c,focusable:!o,active:d,children:p.jsx(T.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:A(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?s.onValueChange(r):f.preventDefault()}),onKeyDown:A(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&s.onValueChange(r)}),onFocus:A(e.onFocus,()=>{const f=s.activationMode!=="manual";!d&&!o&&f&&s.onValueChange(r)})})})});bi.displayName=xi;var yi="TabsContent",Ci=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,c=Qr(yi,n),l=Si(c.baseId,r),u=Ei(c.baseId,r),d=r===c.value,f=i.useRef(d);return i.useEffect(()=>{const v=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(ae,{present:o||d,children:({present:v})=>p.jsx(T.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!v,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:v&&a})})});Ci.displayName=yi;function Si(e,t){return`${e}-trigger-${t}`}function Ei(e,t){return`${e}-content-${t}`}var Sw=hi,Ew=wi,Rw=bi,Pw=Ci,vm="Label",Ri=i.forwardRef((e,t)=>p.jsx(T.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ri.displayName=vm;var Aw=Ri;function Lt(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])}var mm=[" ","Enter","ArrowUp","ArrowDown"],hm=[" ","Enter"],Ve="Select",[_n,In,gm]=st(Ve),[dt,Tw]=ne(Ve,[gm,ke]),Mn=ke(),[wm,Fe]=dt(Ve),[xm,bm]=dt(Ve),Pi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:v,required:h,form:w}=e,m=Mn(t),[g,b]=i.useState(null),[x,y]=i.useState(null),[C,S]=i.useState(!1),R=Le(u),[E,D]=se({prop:r,defaultProp:o??!1,onChange:a,caller:Ve}),[N,k]=se({prop:s,defaultProp:c,onChange:l,caller:Ve}),L=i.useRef(null),V=g?w||!!g.closest("form"):!0,[K,_]=i.useState(new Set),H=Array.from(K).map(j=>j.props.value).join(";");return p.jsx(pn,{...m,children:p.jsxs(wm,{required:h,scope:t,trigger:g,onTriggerChange:b,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:oe(),value:N,onValueChange:k,open:E,onOpenChange:D,dir:R,triggerPointerDownPosRef:L,disabled:v,children:[p.jsx(_n.Provider,{scope:t,children:p.jsx(xm,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(j=>{_(W=>new Set(W).add(j))},[]),onNativeOptionRemove:i.useCallback(j=>{_(W=>{const O=new Set(W);return O.delete(j),O})},[]),children:n})}),V?p.jsxs(Zi,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:N,onChange:j=>k(j.target.value),disabled:v,form:w,children:[N===void 0?p.jsx("option",{value:""}):null,Array.from(K)]},H):null]})})};Pi.displayName=Ve;var Ai="SelectTrigger",Ti=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Mn(n),s=Fe(Ai,n),c=s.disabled||r,l=B(t,s.onTriggerChange),u=In(n),d=i.useRef("touch"),[f,v,h]=Ji(m=>{const g=u().filter(y=>!y.disabled),b=g.find(y=>y.value===s.value),x=ec(g,m,b);x!==void 0&&s.onValueChange(x.value)}),w=m=>{c||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(_t,{asChild:!0,...a,children:p.jsx(T.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Qi(s.value)?"":void 0,...o,ref:l,onClick:A(o.onClick,m=>
vendor: 26,485 bytes, lines 66-70
66{m.currentTarget.focus(),d.current!=="mouse"&&w(m)}),onPointerDown:A(o.onPointerDown,m=>{d.current=m.pointerType;const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(w(m),m.preventDefault())}),onKeyDown:A(o.onKeyDown,m=>{const g=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&v(m.key),!(g&&m.key===" ")&&mm.includes(m.key)&&(w(),m.preventDefault())})})})});Ti.displayName=Ai;var _i="SelectValue",Ii=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...c}=e,l=Fe(_i,n),{onValueNodeHasChildrenChange:u}=l,d=a!==void 0,f=B(t,l.onValueNodeChange);return te(()=>{u(d)},[u,d]),p.jsx(T.span,{...c,ref:f,style:{pointerEvents:"none"},children:Qi(l.value)?p.jsx(p.Fragment,{children:s}):a})});Ii.displayName=_i;var ym="SelectIcon",Mi=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(T.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Mi.displayName=ym;var Cm="SelectPortal",Di=e=>p.jsx(it,{asChild:!0,...e});Di.displayName=Cm;var He="SelectContent",Ni=i.forwardRef((e,t)=>{const n=Fe(He,e.__scopeSelect),[r,o]=i.useState();if(te(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?Rt.createPortal(p.jsx(Oi,{scope:e.__scopeSelect,children:p.jsx(_n.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(ki,{...e,ref:t})});Ni.displayName=He;var pe=10,[Oi,$e]=dt(He),Sm="SelectContentImpl",Em=Me("SelectContent.RemoveScroll"),ki=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:g,...b}=e,x=Fe(He,n),[y,C]=i.useState(null),[S,R]=i.useState(null),E=B(t,M=>C(M)),[D,N]=i.useState(null),[k,L]=i.useState(null),V=In(n),[K,_]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if(y)return bn(y)},[y]),xn();const j=i.useCallback(M=>{const[G,...z]=V().map(Q=>Q.ref.current),[X]=z.slice(-1),Z=document.activeElement;for(const Q of M)if(Q===Z||(Q==null||Q.scrollIntoView({block:"nearest"}),Q===G&&S&&(S.scrollTop=0),Q===X&&S&&(S.scrollTop=S.scrollHeight),Q==null||Q.focus(),document.activeElement!==Z))return},[V,S]),W=i.useCallback(()=>j([D,y]),[j,D,y]);i.useEffect(()=>{K&&W()},[K,W]);const{onOpenChange:O,triggerPointerDownPosRef:I}=x;i.useEffect(()=>{if(y){let M={x:0,y:0};const G=X=>{var Z,Q;M={x:Math.abs(Math.round(X.pageX)-(((Z=I.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(X.pageY)-(((Q=I.current)==null?void 0:Q.y)??0))}},z=X=>{M.x<=10&&M.y<=10?X.preventDefault():y.contains(X.target)||O(!1),document.removeEventListener("pointermove",G),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",z,{capture:!0})}}},[y,O,I]),i.useEffect(()=>{const M=()=>O(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[O]);const[q,J]=Ji(M=>{const G=V().filter(Z=>!Z.disabled),z=G.find(Z=>Z.ref.current===document.activeElement),X=ec(G,M,z);X&&setTimeout(()=>X.ref.current.focus())}),P=i.useCallback((M,G,z)=>{const X=!H.current&&!z;(x.value!==void 0&&x.value===G||X)&&(N(M),X&&(H.current=!0))},[x.value]),$=i.useCallback(()=>y==null?void 0:y.focus(),[y]),U=i.useCallback((M,G,z)=>{const X=!H.current&&!z;(x.value!==void 0&&x.value===G||X)&&L(M)},[x.value]),F=r==="popper"?pr:Li,Y=F===pr?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:g}:{};return p.jsx(Oi,{scope:n,content:y,viewport:S,onViewportChange:R,itemRefCallback:P,selectedItem:D,onItemLeave:$,itemTextRefCallback:U,focusSelectedItem:W,selectedItemText:k,position:r,isPositioned:K,searchRef:q,children:p.jsx(Dt,{as:Em,allowPinchZoom:!0,children:p.jsx(It,{asChild:!0,trapped:x.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:A(o,M=>{var G;(G=x.trigger)==null||G.focus({preventScroll:!0}),M.preventDefault()}),children:p.jsx(Ue,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:p.jsx(F,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:M=>M.preventDefault(),...b,...Y,onPlaced:()=>_(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:A(b.onKeyDown,M=>{const G=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!G&&M.key.length===1&&J(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let X=V().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(M.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const Z=M.target,Q=X.indexOf(Z);X=X.slice(Q+1)}setTimeout(()=>j(X)),M.preventDefault()}})})})})})})});ki.displayName=Sm;var Rm="SelectItemAlignedPosition",Li=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Fe(He,n),s=$e(He,n),[c,l]=i.useState(null),[u,d]=i.useState(null),f=B(t,E=>d(E)),v=In(n),h=i.useRef(!1),w=i.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:b,focusSelectedItem:x}=s,y=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&m&&g&&b){const E=a.trigger.getBoundingClientRect(),D=u.getBoundingClientRect(),N=a.valueNode.getBoundingClientRect(),k=b.getBoundingClientRect();if(a.dir!=="rtl"){const Z=k.left-D.left,Q=N.left-Z,ce=E.left-Q,we=E.width+ce,pt=Math.max(we,D.width),vt=window.innerWidth-pe,mt=Et(Q,[pe,Math.max(pe,vt-pt)]);c.style.minWidth=we+"px",c.style.left=mt+"px"}else{const Z=D.right-k.right,Q=window.innerWidth-N.right-Z,ce=window.innerWidth-E.right-Q,we=E.width+ce,pt=Math.max(we,D.width),vt=window.innerWidth-pe,mt=Et(Q,[pe,Math.max(pe,vt-pt)]);c.style.minWidth=we+"px",c.style.right=mt+"px"}const L=v(),V=window.innerHeight-pe*2,K=m.scrollHeight,_=window.getComputedStyle(u),H=parseInt(_.borderTopWidth,10),j=parseInt(_.paddingTop,10),W=parseInt(_.borderBottomWidth,10),O=parseInt(_.paddingBottom,10),I=H+j+K+O+W,q=Math.min(g.offsetHeight*5,I),J=window.getComputedStyle(m),P=parseInt(J.paddingTop,10),$=parseInt(J.paddingBottom,10),U=E.top+E.height/2-pe,F=V-U,Y=g.offsetHeight/2,M=g.offsetTop+Y,G=H+j+M,z=I-G;if(G<=U){const Z=L.length>0&&g===L[L.length-1].ref.current;c.style.bottom="0px";const Q=u.clientHeight-m.offsetTop-m.offsetHeight,ce=Math.max(F,Y+(Z?$:0)+Q+W),we=G+ce;c.style.height=we+"px"}else{const Z=L.length>0&&g===L[0].ref.current;c.style.top="0px";const ce=Math.max(U,H+m.offsetTop+(Z?P:0)+Y)+z;c.style.height=ce+"px",m.scrollTop=G-U+m.offsetTop}c.style.margin=`${pe}px 0`,c.style.minHeight=q+"px",c.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[v,a.trigger,a.valueNode,c,u,m,g,b,a.dir,r]);te(()=>y(),[y]);const[C,S]=i.useState();te(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const R=i.useCallback(E=>{E&&w.current===!0&&(y(),x==null||x(),w.current=!1)},[y,x]);return p.jsx(Am,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:R,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(T.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Li.displayName=Rm;var Pm="SelectPopperPosition",pr=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=pe,...a}=e,s=Mn(n);return p.jsx(vn,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.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)"}})});pr.displayName=Pm;var[Am,Jr]=dt(He,{}),vr="SelectViewport",ji=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=$e(vr,n),s=Jr(vr,n),c=B(t,a.onViewportChange),l=i.useRef(0);return p.jsxs(p.Fragment,{children:[p.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:r}),p.jsx(_n.Slot,{scope:n,children:p.jsx(T.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:A(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&f){const h=Math.abs(l.current-d.scrollTop);if(h>0){const w=window.innerHeight-pe*2,m=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),b=Math.max(m,g);if(b<w){const x=b+h,y=Math.min(w,x),C=x-y;f.style.height=y+"px",f.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});ji.displayName=vr;var Fi="SelectGroup",[Tm,_m]=dt(Fi),$i=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=oe();return p.jsx(Tm,{scope:n,id:o,children:p.jsx(T.div,{role:"group","aria-labelledby":o,...r,ref:t})})});$i.displayName=Fi;var Bi="SelectLabel",Vi=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_m(Bi,n);return p.jsx(T.div,{id:o.id,...r,ref:t})});Vi.displayName=Bi;var rn="SelectItem",[Im,Hi]=dt(rn),Wi=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,c=Fe(rn,n),l=$e(rn,n),u=c.value===r,[d,f]=i.useState(a??""),[v,h]=i.useState(!1),w=B(t,x=>{var y;return(y=l.itemRefCallback)==null?void 0:y.call(l,x,r,o)}),m=oe(),g=i.useRef("touch"),b=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(Im,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:i.useCallback(x=>{f(y=>y||((x==null?void 0:x.textContent)??"").trim())},[]),children:p.jsx(_n.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:p.jsx(T.div,{role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:A(s.onFocus,()=>h(!0)),onBlur:A(s.onBlur,()=>h(!1)),onClick:A(s.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:A(s.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:A(s.onPointerDown,x=>{g.current=x.pointerType}),onPointerMove:A(s.onPointerMove,x=>{var y;g.current=x.pointerType,o?(y=l.onItemLeave)==null||y.call(l):g.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:A(s.onPointerLeave,x=>{var y;x.currentTarget===document.activeElement&&((y=l.onItemLeave)==null||y.call(l))}),onKeyDown:A(s.onKeyDown,x=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&x.key===" "||(hm.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Wi.displayName=rn;var wt="SelectItemText",Ki=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=Fe(wt,n),c=$e(wt,n),l=Hi(wt,n),u=bm(wt,n),[d,f]=i.useState(null),v=B(t,b=>f(b),l.onItemTextChange,b=>{var x;return(x=c.itemTextRefCallback)==null?void 0:x.call(c,b,l.value,l.disabled)}),h=d==null?void 0:d.textContent,w=i.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return te(()=>(m(w),()=>g(w)),[m,g,w]),p.jsxs(p.Fragment,{children:[p.jsx(T.span,{id:l.textId,...a,ref:v}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Rt.createPortal(a.children,s.valueNode):null]})});Ki.displayName=wt;var Ui="SelectItemIndicator",Gi=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Hi(Ui,n).isSelected?p.jsx(T.span,{"aria-hidden":!0,...r,ref:t}):null});Gi.displayName=Ui;var mr="SelectScrollUpButton",zi=i.forwardRef((e,t)=>{const n=$e(mr,e.__scopeSelect),r=Jr(mr,e.__scopeSelect),[o,a]=i.useState(!1),s=B(t,r.onScrollButtonChange);return te(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollTop>0;a(u)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?p.jsx(Xi,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});zi.displayName=mr;var hr="SelectScrollDownButton",Yi=i.forwardRef((e,t)=>{const n=$e(hr,e.__scopeSelect),r=Jr(hr,e.__scopeSelect),[o,a]=i.useState(!1),s=B(t,r.onScrollButtonChange);return te(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;a(d)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?p.jsx(Xi,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});Yi.displayName=hr;var Xi=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=$e("SelectScrollButton",n),s=i.useRef(null),c=In(n),l=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),te(()=>{var d;const u=c().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[c]),p.jsx(T.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:A(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:A(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:A(o.onPointerLeave,()=>{l()})})}),Mm="SelectSeparator",qi=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(T.div,{"aria-hidden":!0,...r,ref:t})});qi.displayName=Mm;var gr="SelectArrow",Dm=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Mn(n),a=Fe(gr,n),s=$e(gr,n);return a.open&&s.position==="popper"?p.jsx(mn,{...o,...r,ref:t}):null});Dm.displayName=gr;var Nm="SelectBubbleInput",Zi=i.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=i.useRef(null),a=B(r,o),s=Lt(t);return i.useEffect(()=>{const c=o.current;if(!c)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&d){const f=new Event("change",{bubbles:!0});d.call(c,t),c.dispatchEvent(f)}},[s,t]),p.jsx(T.select,{...n,style:{...ta,...n.style},ref:a,defaultValue:t})});Zi.displayName=Nm;function Qi(e){return e===""||e===void 0}function Ji(e){const t=ee(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(s=>{const c=n.current+s;t(c),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ec(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Om(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Om(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _w=Pi,Iw=Ti,Mw=Ii,Dw=Mi,Nw=Di,Ow=Ni,kw=ji,Lw=$i,jw=Vi,Fw=Wi,$w=Ki,Bw=Gi,Vw=zi,Hw=Yi,Ww=qi,Dn="Dialog",[tc,nc]=ne(Dn),[km,he]=tc(Dn),rc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=i.useRef(null),l=i.useRef(null),[u,d]=se({prop:r,defaultProp:o??!1,onChange:a,caller:Dn});return p.jsx(km,{scope:t,triggerRef:c,contentRef:l,contentId:oe(),titleId:oe(),descriptionId:oe(),open:u,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(f=>!f),[d]),modal:s,children:n})};rc.displayName=Dn;var oc="DialogTrigger",ac=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(oc,n),a=B(t,o.triggerRef);return p.jsx(T.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":no(o.open),...r,ref:a,onClick:A(e.onClick,o.onOpenToggle)})});ac.displayName=oc;var eo="DialogPortal",[Lm,sc]=tc(eo,{forceMount:void 0}),ic=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=he(eo,t);return p.jsx(Lm,{scope:t,forceMount:n,children:i.Children.map(r,s=>p.jsx(ae,{present:n||a.open,children:p.jsx(it,{asChild:!0,container:o,children:s})}))})};ic.displayName=eo;var on="DialogOverlay",cc=i.forwardRef((e,t)=>{const n=sc(on,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(on,e.__scopeDialog);return a.modal?p.jsx(ae,{present:r||a.open,children:p.jsx(Fm,{...o,ref:t})}):null});cc.displayName=on;var jm=Me("DialogOverlay.RemoveScroll"),Fm=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(on,n);return p.jsx(Dt,{as:jm,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(T.div,{"data-state":no(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),We="DialogContent",lc=i.forwardRef((e,t)=>{const n=sc(We,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=he(We,e.__scopeDialog);return p.jsx(ae,{present:r||a.open,children:a.modal?p.jsx($m,{...o,ref:t}):p.jsx(Bm,{...o,ref:t})})});lc.displayName=We;var $m=i.forwardRef((e,t)=>{const n=he(We,e.__scopeDialog),r=i.useRef(null),o=B(t,n.contentRef,r);return i.useEffect(()=>{const a=r.current;if(a)return bn(a)},[]),p.jsx(uc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&a.preventDefault()}),onFocusOutside:A(e.onFocusOutside,a=>a.preventDefault())})}),Bm=i.forwardRef((e,t)=>{const n=he(We,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return p.jsx(uc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),uc=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,c=he(We,n),l=i.useRef(null),u=B(t,l);return xn(),p.jsxs(p.Fragment,{children:[p.jsx(It,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Ue,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":no(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Hm,{titleId:c.titleId}),p.jsx(Km,{contentRef:l,descriptionId:c.descriptionId})]})]})}),to="DialogTitle",dc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(to,n);return p.jsx(T.h2,{id:o.titleId,...r,ref:t})});dc.displayName=to;var fc="DialogDescription",pc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(fc,n);return p.jsx(T.p,{id:o.descriptionId,...r,ref:t})});pc.displayName=fc;var vc="DialogClose",mc=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=he(vc,n);return p.jsx(T.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});mc.displayName=vc;function no(e){return e?"open":"closed"}var hc="DialogTitleWarning",[Vm,gc]=eu(hc,{contentName:We,titleName:to,docsSlug:"dialog"}),Hm=({titleId:e})=>{const t=gc(hc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
67
68If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
69
70For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Wm="DialogDescriptionWarning",Km=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gc(Wm).contentName}}.`;return i.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},wc=rc,Um=ac,xc=ic,bc=cc,yc=lc,Gm=dc,zm=pc,Cc=mc,Nn="Switch",[Ym,Kw]=ne(Nn),[Xm,qm]=Ym(Nn),Sc=i.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:c,value:l="on",onCheckedChange:u,form:d,...f}=e,[v,h]=i.useState(null),w=B(t,y=>h(y)),m=i.useRef(!1),g=v?d||!!v.closest("form"):!0,[b,x]=se({prop:o,defaultProp:a??!1,onChange:u,caller:Nn});return p.jsxs(Xm,{scope:n,checked:b,disabled:c,children:[p.jsx(T.button,{type:"button",role:"switch","aria-checked":b,"aria-required":s,"data-state":Ac(b),"data-disabled":c?"":void 0,disabled:c,value:l,...f,ref:w,onClick:A(e.onClick,y=>{x(C=>!C),g&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),g&&p.jsx(Pc,{control:v,bubbles:!m.current,name:r,value:l,checked:b,required:s,disabled:c,form:d,style:{transform:"translateX(-100%)"}})]})});Sc.displayName=Nn;var Ec="SwitchThumb",Rc=i.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=qm(Ec,n);return p.jsx(T.span,{"data-state":Ac(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Rc.displayName=Ec;var Zm="SwitchBubbleInput",Pc=i.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=i.useRef(null),c=B(s,a),l=Lt(n),u=Tt(t);return i.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&h){const w=new Event("click",{bubbles:r});h.call(d,n),d.dispatchEvent(w)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Pc.displayName=Zm;function Ac(e){return e?"checked":"unchecked"}var Uw=Sc,Gw=Rc,Qm="Separator",Wo="horizontal",Jm=["horizontal","vertical"],Tc=i.forwardRef((e,t)=>{const{decorative:n,orientation:r=Wo,...o}=e,a=eh(r)?r:Wo,c=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return p.jsx(T.div,{"data-orientation":a,...c,...o,ref:t})});Tc.displayName=Qm;function eh(e){return Jm.includes(e)}var zw=Tc,On="Checkbox",[th,Yw]=ne(On),[nh,ro]=th(On);function rh(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:c,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:f}=e,[v,h]=se({prop:n,defaultProp:o??!1,onChange:l,caller:On}),[w,m]=i.useState(null),[g,b]=i.useState(null),x=i.useRef(!1),y=w?!!s||!!w.closest("form"):!0,C={checked:v,disabled:a,setChecked:h,control:w,setControl:m,name:c,form:s,value:d,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:Ie(o)?!1:o,isFormControl:y,bubbleInput:g,setBubbleInput:b};return p.jsx(nh,{scope:t,...C,children:sh(f)?f(C):r})}var _c="CheckboxTrigger",Ic=i.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:c,checked:l,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:v,isFormControl:h,bubbleInput:w}=ro(_c,e),m=B(o,d),g=i.useRef(l);return i.useEffect(()=>{const b=a==null?void 0:a.form;if(b){const x=()=>f(g.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[a,f]),p.jsx(T.button,{type:"button",role:"checkbox","aria-checked":Ie(l)?"mixed":l,"aria-required":u,"data-state":Oc(l),"data-disabled":c?"":void 0,disabled:c,value:s,...r,ref:m,onKeyDown:A(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:A(n,b=>{f(x=>Ie(x)?!0:!x),w&&h&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})})});Ic.displayName=_c;var oh=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:c,value:l,onCheckedChange:u,form:d,...f}=e;return p.jsx(rh,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:c,required:s,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:v})=>p.jsxs(p.Fragment,{children:[p.jsx(Ic,{...f,ref:t,__scopeCheckbox:n}),v&&p.jsx(Nc,{__scopeCheckbox:n})]})})});oh.displayName=On;var Mc="CheckboxIndicator",ah=i.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=ro(Mc,n);return p.jsx(ae,{present:r||Ie(a.checked)||a.checked===!0,children:p.jsx(T.span,{"data-state":Oc(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ah.displayName=Mc;var Dc="CheckboxBubbleInput",Nc=i.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:c,disabled:l,name:u,value:d,form:f,bubbleInput:v,setBubbleInput:h}=ro(Dc,e),w=B(n,h),m=Lt(a),g=Tt(r);i.useEffect(()=>{const x=v;if(!x)return;const y=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(y,"checked").set,R=!o.current;if(m!==a&&S){const E=new Event("click",{bubbles:R});x.indeterminate=Ie(a),S.call(x,Ie(a)?!1:a),x.dispatchEvent(E)}},[v,m,a,o]);const b=i.useRef(Ie(a)?!1:a);return p.jsx(T.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??b.current,required:c,disabled:l,name:u,value:d,form:f,...t,tabIndex:-1,ref:w,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Nc.displayName=Dc;function sh(e){return typeof e=="function"}function Ie(e){return e==="indeterminate"}function Oc(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}var kn="Collapsible",[ih,kc]=ne(kn),[ch,oo]=ih(kn),Lc=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...c}=e,[l,u]=se({prop:r,defaultProp:o??!1,onChange:s,caller:kn});return p.jsx(ch,{scope:n,disabled:a,contentId:oe(),open:l,onOpenToggle:i.useCallback(()=>u(d=>!d),[u]),children:p.jsx(T.div,{"data-state":so(l),"data-disabled":a?"":void 0,...c,ref:t})})});Lc.displayName=kn;var jc="CollapsibleTrigger",Fc=i.forwardRef((e,t)=>
vendor: 4,182 bytes, line 70
70{const{__scopeCollapsible:n,...r}=e,o=oo(jc,n);return p.jsx(T.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":so(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:A(e.onClick,o.onOpenToggle)})});Fc.displayName=jc;var ao="CollapsibleContent",$c=i.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=oo(ao,e.__scopeCollapsible);return p.jsx(ae,{present:n||o.open,children:({present:a})=>p.jsx(lh,{...r,ref:t,present:a})})});$c.displayName=ao;var lh=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=oo(ao,n),[c,l]=i.useState(r),u=i.useRef(null),d=B(t,u),f=i.useRef(0),v=f.current,h=i.useRef(0),w=h.current,m=s.open||c,g=i.useRef(m),b=i.useRef(void 0);return i.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),te(()=>{const x=u.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const y=x.getBoundingClientRect();f.current=y.height,h.current=y.width,g.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),l(r)}},[s.open,r]),p.jsx(T.div,{"data-state":so(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!m,...a,ref:d,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:m&&o})});function so(e){return e?"open":"closed"}var uh=Lc,dh=Fc,fh=$c,ge="Accordion",ph=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[io,vh,mh]=st(ge),[Ln,Xw]=ne(ge,[mh,kc]),co=kc(),Bc=re.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return p.jsx(io.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(xh,{...a,ref:t}):p.jsx(wh,{...o,ref:t})})});Bc.displayName=ge;var[Vc,hh]=Ln(ge),[Hc,gh]=Ln(ge,{collapsible:!1}),wh=re.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[c,l]=se({prop:n,defaultProp:r??"",onChange:o,caller:ge});return p.jsx(Vc,{scope:e.__scopeAccordion,value:re.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:re.useCallback(()=>a&&l(""),[a,l]),children:p.jsx(Hc,{scope:e.__scopeAccordion,collapsible:a,children:p.jsx(Wc,{...s,ref:t})})})}),xh=re.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,c]=se({prop:n,defaultProp:r??[],onChange:o,caller:ge}),l=re.useCallback(d=>c((f=[])=>[...f,d]),[c]),u=re.useCallback(d=>c((f=[])=>f.filter(v=>v!==d)),[c]);return p.jsx(Vc,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:p.jsx(Hc,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(Wc,{...a,ref:t})})})}),[bh,jn]=Ln(ge),Wc=re.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,c=re.useRef(null),l=B(c,t),u=vh(n),f=Le(o)==="ltr",v=A(e.onKeyDown,h=>{var D;if(!ph.includes(h.key))return;const w=h.target,m=u().filter(N=>{var k;return!((k=N.ref.current)!=null&&k.disabled)}),g=m.findIndex(N=>N.ref.current===w),b=m.length;if(g===-1)return;h.preventDefault();let x=g;const y=0,C=b-1,S=()=>{x=g+1,x>C&&(x=y)},R=()=>{x=g-1,x<y&&(x=C)};switch(h.key){case"Home":x=y;break;case"End":x=C;break;case"ArrowRight":a==="horizontal"&&(f?S():R());break;case"ArrowDown":a==="vertical"&&S();break;case"ArrowLeft":a==="horizontal"&&(f?R():S());break;case"ArrowUp":a==="vertical"&&R();break}const E=x%b;(D=m[E].ref.current)==null||D.focus()});return p.jsx(bh,{scope:n,disabled:r,direction:o,orientation:a,children:p.jsx(io.Slot,{scope:n,children:p.jsx(T.div,{...s,"data-orientation":a,ref:l,onKeyDown:r?void 0:v})})})}),an="AccordionItem",[yh,lo]=Ln(an),Kc=re.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=jn(an,n),s=hh(an,n),c=co(n),l=oe(),u=r&&s.value.includes(r)||!1,d=a.disabled||e.disabled;return p.jsx(yh,{scope:n,open:u,disabled:d,triggerId:l,children:p.jsx(uh,{"data-orientation":a.orientation,"data-state":qc(u),...c,...o,ref:t,disabled:d,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});Kc.displayName=an;var Uc="AccordionHeader",Gc=re.forwardRef((e,t)=>
vendor: 2,335 bytes, line 70
70{const{__scopeAccordion:n,...r}=e,o=jn(ge,n),a=lo(Uc,n);return p.jsx(T.h3,{"data-orientation":o.orientation,"data-state":qc(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Gc.displayName=Uc;var wr="AccordionTrigger",zc=re.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=jn(ge,n),a=lo(wr,n),s=gh(wr,n),c=co(n);return p.jsx(io.ItemSlot,{scope:n,children:p.jsx(dh,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...c,...r,ref:t})})});zc.displayName=wr;var Yc="AccordionContent",Xc=re.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=jn(ge,n),a=lo(Yc,n),s=co(n);return p.jsx(fh,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Xc.displayName=Yc;function qc(e){return e?"open":"closed"}var qw=Bc,Zw=Kc,Qw=Gc,Jw=zc,ex=Xc,uo="Radio",[Ch,Zc]=ne(uo),[Sh,Eh]=Ch(uo),Qc=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:c="on",onCheck:l,form:u,...d}=e,[f,v]=i.useState(null),h=B(t,g=>v(g)),w=i.useRef(!1),m=f?u||!!f.closest("form"):!0;return p.jsxs(Sh,{scope:n,checked:o,disabled:s,children:[p.jsx(T.button,{type:"button",role:"radio","aria-checked":o,"data-state":nl(o),"data-disabled":s?"":void 0,disabled:s,value:c,...d,ref:h,onClick:A(e.onClick,g=>{o||l==null||l(),m&&(w.current=g.isPropagationStopped(),w.current||g.stopPropagation())})}),m&&p.jsx(tl,{control:f,bubbles:!w.current,name:r,value:c,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});Qc.displayName=uo;var Jc="RadioIndicator",el=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Eh(Jc,n);return p.jsx(ae,{present:r||a.checked,children:p.jsx(T.span,{"data-state":nl(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});el.displayName=Jc;var Rh="RadioBubbleInput",tl=i.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=i.useRef(null),c=B(s,a),l=Lt(n),u=Tt(t);return i.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&h){const w=new Event("click",{bubbles:r});
vendor: 14,282 bytes, line 70
70h.call(d,n),d.dispatchEvent(w)}},[l,n,r]),p.jsx(T.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});tl.displayName=Rh;function nl(e){return e?"checked":"unchecked"}var Ph=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Fn="RadioGroup",[Ah,tx]=ne(Fn,[ut,Zc]),rl=ut(),ol=Zc(),[Th,_h]=Ah(Fn),al=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:c=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...v}=e,h=rl(n),w=Le(u),[m,g]=se({prop:a,defaultProp:o??null,onChange:f,caller:Fn});return p.jsx(Th,{scope:n,name:r,required:s,disabled:c,value:m,onValueChange:g,children:p.jsx($r,{asChild:!0,...h,orientation:l,dir:w,loop:d,children:p.jsx(T.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":c?"":void 0,dir:w,...v,ref:t})})})});al.displayName=Fn;var sl="RadioGroupItem",il=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=_h(sl,n),s=a.disabled||r,c=rl(n),l=ol(n),u=i.useRef(null),d=B(t,u),f=a.value===o.value,v=i.useRef(!1);return i.useEffect(()=>{const h=m=>{Ph.includes(m.key)&&(v.current=!0)},w=()=>v.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",w)}},[]),p.jsx(Br,{asChild:!0,...c,focusable:!s,active:f,children:p.jsx(Qc,{disabled:s,required:a.required,checked:f,...l,...o,name:a.name,ref:d,onCheck:()=>a.onValueChange(o.value),onKeyDown:A(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:A(o.onFocus,()=>{var h;v.current&&((h=u.current)==null||h.click())})})})});il.displayName=sl;var Ih="RadioGroupIndicator",cl=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ol(n);return p.jsx(el,{...o,...r,ref:t})});cl.displayName=Ih;var nx=al,rx=il,ox=cl,Ko=1,Mh=.9,Dh=.8,Nh=.17,Qn=.1,Jn=.999,Oh=.9999,kh=.99,Lh=/[\\\/_+.#"@\[\(\{&]/,jh=/[\\\/_+.#"@\[\(\{&]/g,Fh=/[\s-]/,ll=/[\s-]/g;function xr(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?Ko:kh;var c=`${o},${a}`;if(s[c]!==void 0)return s[c];for(var l=r.charAt(a),u=n.indexOf(l,o),d=0,f,v,h,w;u>=0;)f=xr(e,t,n,r,u+1,a+1,s),f>d&&(u===o?f*=Ko:Lh.test(e.charAt(u-1))?(f*=Dh,h=e.slice(o,u-1).match(jh),h&&o>0&&(f*=Math.pow(Jn,h.length))):Fh.test(e.charAt(u-1))?(f*=Mh,w=e.slice(o,u-1).match(ll),w&&o>0&&(f*=Math.pow(Jn,w.length))):(f*=Nh,o>0&&(f*=Math.pow(Jn,u-o))),e.charAt(u)!==t.charAt(a)&&(f*=Oh)),(f<Qn&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(v=xr(e,t,n,r,u+1,a+2,s),v*Qn>f&&(f=v*Qn)),f>d&&(d=f),u=n.indexOf(l,u+1);return s[c]=d,d}function Uo(e){return e.toLowerCase().replace(ll," ")}function $h(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,xr(e,t,Uo(e),Uo(t),0,0,{})}var ht='[cmdk-group=""]',er='[cmdk-group-items=""]',Bh='[cmdk-group-heading=""]',ul='[cmdk-item=""]',Go=`${ul}:not([aria-disabled="true"])`,br="cmdk-item-select",Ze="data-value",Vh=(e,t,n)=>$h(e,t,n),dl=i.createContext(void 0),jt=()=>i.useContext(dl),fl=i.createContext(void 0),fo=()=>i.useContext(fl),pl=i.createContext(void 0),vl=i.forwardRef((e,t)=>{let n=Qe(()=>{var P,$;return{search:"",value:($=(P=e.value)!=null?P:e.defaultValue)!=null?$:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Qe(()=>new Set),o=Qe(()=>new Map),a=Qe(()=>new Map),s=Qe(()=>new Set),c=ml(e),{label:l,children:u,value:d,onValueChange:f,filter:v,shouldFilter:h,loop:w,disablePointerSelection:m=!1,vimBindings:g=!0,...b}=e,x=oe(),y=oe(),C=oe(),S=i.useRef(null),R=Qh();Ke(()=>{if(d!==void 0){let P=d.trim();n.current.value=P,E.emit()}},[d]),Ke(()=>{R(6,K)},[]);let E=i.useMemo(()=>({subscribe:P=>(s.current.add(P),()=>s.current.delete(P)),snapshot:()=>n.current,setState:(P,$,U)=>{var F,Y,M,G;if(!Object.is(n.current[P],$)){if(n.current[P]=$,P==="search")V(),k(),R(1,L);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let z=document.getElementById(C);z?z.focus():(F=document.getElementById(x))==null||F.focus()}if(R(7,()=>{var z;n.current.selectedItemId=(z=_())==null?void 0:z.id,E.emit()}),U||R(5,K),((Y=c.current)==null?void 0:Y.value)!==void 0){let z=$??"";(G=(M=c.current).onValueChange)==null||G.call(M,z);return}}E.emit()}},emit:()=>{s.current.forEach(P=>P())}}),[]),D=i.useMemo(()=>({value:(P,$,U)=>{var F;$!==((F=a.current.get(P))==null?void 0:F.value)&&(a.current.set(P,{value:$,keywords:U}),n.current.filtered.items.set(P,N($,U)),R(2,()=>{k(),E.emit()}))},item:(P,$)=>(r.current.add(P),$&&(o.current.has($)?o.current.get($).add(P):o.current.set($,new Set([P]))),R(3,()=>{V(),k(),n.current.value||L(),E.emit()}),()=>{a.current.delete(P),r.current.delete(P),n.current.filtered.items.delete(P);let U=_();R(4,()=>{V(),(U==null?void 0:U.getAttribute("id"))===P&&L(),E.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{a.current.delete(P),o.current.delete(P)}),filter:()=>c.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:x,inputId:C,labelId:y,listInnerRef:S}),[]);function N(P,$){var U,F;let Y=(F=(U=c.current)==null?void 0:U.filter)!=null?F:Vh;return P?Y(P,n.current.search,$):0}function k(){if(!n.current.search||c.current.shouldFilter===!1)return;let P=n.current.filtered.items,$=[];n.current.filtered.groups.forEach(F=>{let Y=o.current.get(F),M=0;Y.forEach(G=>{let z=P.get(G);M=Math.max(z,M)}),$.push([F,M])});let U=S.current;H().sort((F,Y)=>{var M,G;let z=F.getAttribute("id"),X=Y.getAttribute("id");return((M=P.get(X))!=null?M:0)-((G=P.get(z))!=null?G:0)}).forEach(F=>{let Y=F.closest(er);Y?Y.appendChild(F.parentElement===Y?F:F.closest(`${er} > *`)):U.appendChild(F.parentElement===U?F:F.closest(`${er} > *`))}),$.sort((F,Y)=>Y[1]-F[1]).forEach(F=>{var Y;let M=(Y=S.current)==null?void 0:Y.querySelector(`${ht}[${Ze}="${encodeURIComponent(F[0])}"]`);M==null||M.parentElement.appendChild(M)})}function L(){let P=H().find(U=>U.getAttribute("aria-disabled")!=="true"),$=P==null?void 0:P.getAttribute(Ze);E.setState("value",$||void 0)}function V(){var P,$,U,F;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Y=0;for(let M of r.current){let G=($=(P=a.current.get(M))==null?void 0:P.value)!=null?$:"",z=(F=(U=a.current.get(M))==null?void 0:U.keywords)!=null?F:[],X=N(G,z);n.current.filtered.items.set(M,X),X>0&&Y++}for(let[M,G]of o.current)for(let z of G)if(n.current.filtered.items.get(z)>0){n.current.filtered.groups.add(M);break}n.current.filtered.count=Y}function K(){var P,$,U;let F=_();F&&(((P=F.parentElement)==null?void 0:P.firstChild)===F&&((U=($=F.closest(ht))==null?void 0:$.querySelector(Bh))==null||U.scrollIntoView({block:"nearest"})),F.scrollIntoView({block:"nearest"}))}function _(){var P;return(P=S.current)==null?void 0:P.querySelector(`${ul}[aria-selected="true"]`)}function H(){var P;return Array.from(((P=S.current)==null?void 0:P.querySelectorAll(Go))||[])}function j(P){let $=H()[P];$&&E.setState("value",$.getAttribute(Ze))}function W(P){var $;let U=_(),F=H(),Y=F.findIndex(G=>G===U),M=F[Y+P];($=c.current)!=null&&$.loop&&(M=Y+P<0?F[F.length-1]:Y+P===F.length?F[0]:F[Y+P]),M&&E.setState("value",M.getAttribute(Ze))}function O(P){let $=_(),U=$==null?void 0:$.closest(ht),F;for(;U&&!F;)U=P>0?qh(U,ht):Zh(U,ht),F=U==null?void 0:U.querySelector(Go);F?E.setState("value",F.getAttribute(Ze)):W(P)}let I=()=>j(H().length-1),q=P=>{P.preventDefault(),P.metaKey?I():P.altKey?O(1):W(1)},J=P=>{P.preventDefault(),P.metaKey?j(0):P.altKey?O(-1):W(-1)};return i.createElement(T.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:P=>{var $;($=b.onKeyDown)==null||$.call(b,P);let U=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||U))switch(P.key){case"n":case"j":{g&&P.ctrlKey&&q(P);break}case"ArrowDown":{q(P);break}case"p":case"k":{g&&P.ctrlKey&&J(P);break}case"ArrowUp":{J(P);break}case"Home":{P.preventDefault(),j(0);break}case"End":{P.preventDefault(),I();break}case"Enter":{P.preventDefault();let F=_();if(F){let Y=new Event(br);F.dispatchEvent(Y)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:eg},l),$n(e,P=>i.createElement(fl.Provider,{value:E},i.createElement(dl.Provider,{value:D},P))))}),Hh=i.forwardRef((e,t)=>{var n,r;let o=oe(),a=i.useRef(null),s=i.useContext(pl),c=jt(),l=ml(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ke(()=>{if(!u)return c.item(o,s==null?void 0:s.id)},[u]);let d=hl(o,a,[e.value,e.children,a],e.keywords),f=fo(),v=Oe(R=>R.value&&R.value===d.current),h=Oe(R=>u||c.filter()===!1?!0:R.search?R.filtered.items.get(o)>0:!0);i.useEffect(()=>{let R=a.current;if(!(!R||e.disabled))return R.addEventListener(br,w),()=>R.removeEventListener(br,w)},[h,e.onSelect,e.disabled]);function w(){var R,E;m(),(E=(R=l.current).onSelect)==null||E.call(R,d.current)}function m(){f.setState("value",d.current,!0)}if(!h)return null;let{disabled:g,value:b,onSelect:x,forceMount:y,keywords:C,...S}=e;return i.createElement(T.div,{ref:Re(a,t),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!v,"data-disabled":!!g,"data-selected":!!v,onPointerMove:g||c.getDisablePointerSelection()?void 0:m,onClick:g?void 0:w},e.children)}),Wh=i.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=oe(),c=i.useRef(null),l=i.useRef(null),u=oe(),d=jt(),f=Oe(h=>o||d.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ke(()=>d.group(s),[]),hl(s,c,[e.value,e.heading,l]);let v=i.useMemo(()=>({id:s,forceMount:o}),[o]);return i.createElement(T.div,{ref:Re(c,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),$n(e,h=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},i.createElement(pl.Provider,{value:v},h))))}),Kh=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=Oe(s=>!s.search);return!n&&!a?null:i.createElement(T.div,{ref:Re(o,t),...r,"cmdk-separator":"",role:"separator"})}),Uh=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=fo(),s=Oe(u=>u.search),c=Oe(u=>u.selectedItemId),l=jt();return i.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),i.createElement(T.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),Gh=i.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=i.useRef(null),s=i.useRef(null),c=Oe(u=>u.selectedItemId),l=jt();return i.useEffect(()=>{if(s.current&&a.current){let u=s.current,d=a.current,f,v=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;d.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return v.observe(u),()=>{cancelAnimationFrame(f),v.unobserve(u)}}},[]),i.createElement(T.div,{ref:Re(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:l.listId},$n(e,u=>i.createElement("div",{ref:Re(s,l.listInnerRef),"cmdk-list-sizer":""},u)))}),zh=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...c}=e;return i.createElement(wc,{open:n,onOpenChange:r},i.createElement(xc,{container:s},i.createElement(bc,{"cmdk-overlay":"",className:o}),i.createElement(yc,{"aria-label":e.label,"cmdk-dialog":"",className:a},i.createElement(vl,{ref:t,...c}))))}),Yh=i.forwardRef((e,t)=>Oe(n=>n.filtered.count===0)?i.createElement(T.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Xh=i.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return i.createElement(T.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},$n(e,s=>i.createElement("div",{"aria-hidden":!0},s)))}),ax=Object.assign(vl,{List:Gh,Item:Hh,Input:Uh,Group:Wh,Separator:Kh,Dialog:zh,Empty:Yh,Loading:Xh});function qh(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Zh(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function ml(e){let t=i.useRef(e);return Ke(()=>{t.current=e}),t}var Ke=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Qe(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function Oe(e){let t=fo(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function hl(e,t,n,r=[]){let o=i.useRef(),a=jt();return Ke(()=>{var s;let c=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());a.value(e,c,l),(s=t.current)==null||s.setAttribute(Ze,c),o.current=c}),o}var Qh=()=>{let[e,t]=i.useState(),n=Qe(()=>new Map);return Ke(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Jh(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function $n({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(Jh(t),{ref:t.ref},n(t.props.children)):n(t)}var eg={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},po="Progress",vo=100,[tg,sx]=ne(po),[ng,rg]=tg(po),gl=i.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=og,...s}=e;(o||o===0)&&!zo(o)&&console.error(ag(`${o}`,"Progress"));const c=zo(o)?o:vo;r!==null&&!Yo(r,c)&&console.error(sg(`${r}`,"Progress"));const l=Yo(r,c)?r:null,u=sn(l)?a(l,c):void 0;return p.jsx(ng,{scope:n,value:l,max:c,children:p.jsx(T.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":sn(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":bl(l,c),"data-value":l??void 0,"data-max":c,...s,ref:t})})});gl.displayName=po;var wl="ProgressIndicator",xl=i.forwardRef((e,t)=>
70{const{__scopeProgress:n,...r}=e,o=rg(wl,n);return p.jsx(T.div,{"data-state":bl(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});xl.displayName=wl;function og(e,t){return`${Math.round(e/t*100)}%`}function bl(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function sn(e){return typeof e=="number"}function zo(e){return sn(e)&&!isNaN(e)&&e>0}function Yo(e,t){return sn(e)&&!isNaN(e)&&e<=t&&e>=0}function ag(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${vo}\`.`}function sg(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
71  - a positive number
72  - less than the value passed to \`max\` (or ${vo} if no \`max\` prop is set)
73  - \`null\` or \`undefined\` if the progress is indeterminate.
74
75Defaulting to \`null\`.`}var ix=gl,cx=xl,yl="AlertDialog",[ig,lx]=ne(yl,[nc]),Te=nc(),Cl=e=>{const{__scopeAlertDialog:t,...n}=e,r=Te(t);return p.jsx(wc,{...r,...n,modal:!0})};Cl.displayName=yl;var cg="AlertDialogTrigger",Sl=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Te(n);return p.jsx(Um,{...o,...r,ref:t})});Sl.displayName=cg;var lg="AlertDialogPortal",El=e=>{const{__scopeAlertDialog:t,...n}=e,r=Te(t);return p.jsx(xc,{...r,...n})};El.displayName=lg;var ug="AlertDialogOverlay",Rl=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Te(n);return p.jsx(bc,{...o,...r,ref:t})});Rl.displayName=ug;var tt="AlertDialogContent",[dg,fg]=ig(tt),pg=Zo("AlertDialogContent"),Pl=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Te(n),s=i.useRef(null),c=B(t,s),l=i.useRef(null);return p.jsx(Vm,{contentName:tt,titleName:Al,docsSlug:"alert-dialog",children:p.jsx(dg,{scope:n,cancelRef:l,children:p.jsxs(yc,{role:"alertdialog",...a,...o,ref:c,onOpenAutoFocus:A(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[p.jsx(pg,{children:r}),p.jsx(mg,{contentRef:s})]})})})});Pl.displayName=tt;var Al="AlertDialogTitle",Tl=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Te(n);return p.jsx(Gm,{...o,...r,ref:t})});Tl.displayName=Al;var _l="AlertDialogDescription",Il=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Te(n);return p.jsx(zm,{...o,...r,ref:t})});Il.displayName=_l;var vg="AlertDialogAction",Ml=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Te(n);return p.jsx(Cc,{...o,...r,ref:t})});Ml.displayName=vg;var Dl="AlertDialogCancel",Nl=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=fg(Dl,n),a=Te(n),s=B(t,o);return p.jsx(Cc,{...a,...r,ref:s})});Nl.displayName=Dl;var mg=({contentRef:e})=>{const t=`\`${tt}\` requires a description for the component to be accessible for screen reader users.
76
77You can add a description to the \`${tt}\` by passing a \`${_l}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
78
79Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${tt}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
80
81For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},ux=Cl,dx=Sl,fx=El,px=Rl,vx=Pl,mx=Ml,hx=Nl,gx=Tl,wx=Il,hg="AspectRatio",Ol=i.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return p.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:p.jsx(T.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});Ol.displayName=hg;var xx=Ol,kl="Toggle",Ll=i.forwardRef((e,t)=>
81{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,c]=se({prop:n,onChange:o,defaultProp:r??!1,caller:kl});return p.jsx(T.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:A(e.onClick,()=>{e.disabled||c(!s)})})});Ll.displayName=kl;var bx=Ll,jl=["PageUp","PageDown"],Fl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$l={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ft="Slider",[yr,gg,wg]=st(ft),[Bl,yx]=ne(ft,[wg]),[xg,Bn]=Bl(ft),Vl=i.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:s="horizontal",disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:d,onValueChange:f=()=>{},onValueCommit:v=()=>{},inverted:h=!1,form:w,...m}=e,g=i.useRef(new Set),b=i.useRef(0),y=s==="horizontal"?bg:yg,[C=[],S]=se({prop:d,defaultProp:u,onChange:L=>{var K;(K=[...g.current][b.current])==null||K.focus(),f(L)}}),R=i.useRef(C);function E(L){const V=Pg(C,L);k(L,V)}function D(L){k(L,b.current)}function N(){const L=R.current[b.current];C[b.current]!==L&&v(C)}function k(L,V,{commit:K}={commit:!1}){const _=Ig(a),H=Mg(Math.round((L-r)/a)*a+r,_),j=Et(H,[r,o]);S((W=[])=>{const O=Eg(W,j,V);
vendor: 4,179 bytes, line 81
81if(_g(O,l*a)){b.current=O.indexOf(j);const I=String(O)!==String(W);return I&&K&&v(O),I?O:W}else return W})}return p.jsx(xg,{scope:e.__scopeSlider,name:n,disabled:c,min:r,max:o,valueIndexToChangeRef:b,thumbs:g.current,values:C,orientation:s,form:w,children:p.jsx(yr.Provider,{scope:e.__scopeSlider,children:p.jsx(yr.Slot,{scope:e.__scopeSlider,children:p.jsx(y,{"aria-disabled":c,"data-disabled":c?"":void 0,...m,ref:t,onPointerDown:A(m.onPointerDown,()=>{c||(R.current=C)}),min:r,max:o,inverted:h,onSlideStart:c?void 0:E,onSlideMove:c?void 0:D,onSlideEnd:c?void 0:N,onHomeKeyDown:()=>!c&&k(r,0,{commit:!0}),onEndKeyDown:()=>!c&&k(o,C.length-1,{commit:!0}),onStepKeyDown:({event:L,direction:V})=>{if(!c){const H=jl.includes(L.key)||L.shiftKey&&Fl.includes(L.key)?10:1,j=b.current,W=C[j],O=a*H*V;k(W+O,j,{commit:!0})}}})})})})});Vl.displayName=ft;var[Hl,Wl]=Bl(ft,{startEdge:"left",endEdge:"right",size:"width",direction:1}),bg=i.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=e,[f,v]=i.useState(null),h=B(t,y=>v(y)),w=i.useRef(void 0),m=Le(o),g=m==="ltr",b=g&&!a||!g&&a;function x(y){const C=w.current||f.getBoundingClientRect(),S=[0,C.width],E=mo(S,b?[n,r]:[r,n]);return w.current=C,E(y-C.left)}return p.jsx(Hl,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:p.jsx(Kl,{dir:m,"data-orientation":"horizontal",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const C=x(y.clientX);s==null||s(C)},onSlideMove:y=>{const C=x(y.clientX);c==null||c(C)},onSlideEnd:()=>{w.current=void 0,l==null||l()},onStepKeyDown:y=>{const S=$l[b?"from-left":"from-right"].includes(y.key);u==null||u({event:y,direction:S?-1:1})}})})}),yg=i.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,d=i.useRef(null),f=B(t,d),v=i.useRef(void 0),h=!o;function w(m){const g=v.current||d.current.getBoundingClientRect(),b=[0,g.height],y=mo(b,h?[r,n]:[n,r]);return v.current=g,y(m-g.top)}return p.jsx(Hl,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(Kl,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const g=w(m.clientY);a==null||a(g)},onSlideMove:m=>{const g=w(m.clientY);s==null||s(g)},onSlideEnd:()=>{v.current=void 0,c==null||c()},onStepKeyDown:m=>{const b=$l[h?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:b?-1:1})}})})}),Kl=i.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=Bn(ft,n);return p.jsx(T.span,{...u,ref:t,onKeyDown:A(e.onKeyDown,f=>{f.key==="Home"?(s(f),f.preventDefault()):f.key==="End"?(c(f),f.preventDefault()):jl.concat(Fl).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:A(e.onPointerDown,f=>{const v=f.target;v.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(v)?v.focus():r(f)}),onPointerMove:A(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:A(e.onPointerUp,f=>{const v=f.target;v.hasPointerCapture(f.pointerId)&&(v.releasePointerCapture(f.pointerId),a(f))})})}),Ul="SliderTrack",Gl=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Bn(Ul,n);return p.jsx(T.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Gl.displayName=Ul;var Cr="SliderRange",zl=i.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Bn(Cr,n),a=Wl(Cr,n),s=i.useRef(null),c=B(t,s),l=o.values.length,u=o.values.map(v=>ql(v,o.min,o.max)),d=l>1?Math.min(...u):0,f=100-Math.max(...u);return p.jsx(T.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:c,style:{...e.style,[a.startEdge]:d+"%",[a.endEdge]:f+"%"}})});zl.displayName=Cr;var Sr="SliderThumb",Yl=i.forwardRef((e,t)=>{const n=gg(e.__scopeSlider),[r,o]=i.useState(null),a=B(t,c=>o(c)),s=i.useMemo(()=>r?n().findIndex(c=>c.ref.current===r):-1,[n,r]);return p.jsx(Cg,{...e,ref:a,index:s})}),Cg=i.forwardRef((e,t)=>
81{const{__scopeSlider:n,index:r,name:o,...a}=e,s=Bn(Sr,n),c=Wl(Sr,n),[l,u]=i.useState(null),d=B(t,x=>u(x)),f=l?s.form||!!l.closest("form"):!0,v=Tt(l),h=s.values[r],w=h===void 0?0:ql(h,s.min,s.max),m=Rg(r,s.values.length),g=v==null?void 0:v[c.size],b=g?Ag(g,w,c.direction):0;return i.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${w}% + ${b}px)`},children:[p.jsx(yr.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":s.min,"aria-valuenow":h,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:d,style:h===void 0?{display:"none"}:e.style,onFocus:A(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),f&&p.jsx(Xl,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:h},r)]})});Yl.displayName=Sr;var Sg="RadioBubbleInput",Xl=i.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=i.useRef(null),a=B(o,r),s=Lt(t);return i.useEffect(()=>{const c=o.current;if(!c)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&d){const f=new Event("input",{bubbles:!0});d.call(c,t),c.dispatchEvent(f)}},[s,t]),p.jsx(T.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});Xl.displayName=Sg;function Eg(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function ql(e,t,n){const a=100/(n-t)*(e-t);return Et(a,[0,100])}function Rg(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Pg(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Ag(e,t,n){const r=e/2,a=mo([0,50],[0,r]);return(r-a(t)*n)*n}function Tg(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function _g(e,t){if(t>0){const n=Tg(e);return Math.min(...n)>=t}return!0}function mo(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Ig(e){return(String(e).split(".")[1]||"").length}function Mg(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Cx=Vl,Sx=Gl,Ex=zl,Rx=Yl;export{Ww as $,Bg as A,Ew as B,Vg as C,$g as D,Rw as E,Qg as F,Pw as G,Sw as H,Zg as I,Aw as J,Iw as K,aw as L,Dw as M,Vw as N,Hw as O,kg as P,Nw as Q,jg as R,Ng as S,Fg as T,Ow as U,Lg as V,kw as W,jw as X,Fw as Y,Bw as Z,$w as _,Yg as a,_w as a0,Lw as a1,Mw as a2,bc as a3,yc as a4,Cc as a5,Gm as a6,zm as a7,wc as a8,xc as a9,Zw as aA,Qw as aB,Jw as aC,ex as aD,qw as aE,Cx as aF,Sx as aG,Ex as aH,Rx as aI,Hg as aJ,Ku as aK,Um as aa,Uw as ab,Gw as ac,zw as ad,oh as ae,ah as af,bx as ag,nx as ah,rx as ai,ox as aj,ax as ak,ix as al,cx as am,ux as an,px as ao,vx as ap,gx as aq,wx as ar,mx as as,hx as at,dx as au,fx as av,uh as aw,Fc as ax,$c as ay,xx as az,Ug as b,Uu as c,Gg as d,zg as e,qg as f,dw as g,fw as h,rw as i,ow as j,sw as k,iw as l,lw as m,cw as n,uw as o,tw as p,nw as q,hw as r,gw as s,vw as t,mw as u,xw as v,bw as w,yw as x,tm as y,im 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.