PageSourceSearch

https://app.guardianpro.cloud/assets/radix-BmG-mZpu.js

js guardianpro.cloud collected 2026-10-03 21:15:45 UTC 124,165 bytes, 41 lines download raw bytes

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