PageSourceSearch

https://alwaysintune.netlify.app/assets/ui-vendor-CwH6wFZJ.js

js alwaysintune.netlify.app collected 2026-10-03 10:26:26 UTC 66,668 bytes, 45 lines download raw bytes

vendor: 18,934 bytes, line 1
1import{a,j as C,b as oe,R as ut}from"./query-vendor-BB0JUlq_.js";import{r as Zt,v as hr}from"./react-vendor-BIjsaQ6L.js";function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function At(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ft(...e){return t=>{let n=!1;const r=e.map(o=>{const i=At(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():At(e[o],null)}}}}function H(...e){return a.useCallback(ft(...e),e)}function vr(e,t){const n=a.createContext(t),r=i=>{const{children:c,...s}=i,u=a.useMemo(()=>s,Object.values(s));return C.jsx(n.Provider,{value:u,children:c})};r.displayName=e+"Provider";function o(i){const c=a.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function $e(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),u=n.length;n=[...n,c];const l=d=>{const{scope:h,children:m,...g}=d,p=h?.[e]?.[u]||s,v=a.useMemo(()=>g,Object.values(g));return C.jsx(p.Provider,{value:v,children:m})};l.displayName=i+"Provider";function f(d,h){const m=h?.[e]?.[u]||s,g=a.useContext(m);if(g)return g;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,f]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const u=s?.[e]||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return o.scopeName=e,[r,gr(o,...t)]}function gr(...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 c=r.reduce((s,{useScope:u,scopeName:l})=>{const d=u(i)[`__scope${l}`];return{...s,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Ie(e){const t=yr(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),u=s.find(wr);if(u){const l=u.props.children,f=s.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return C.jsx(t,{...c,ref:o,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return C.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function yr(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=xr(o),s=br(i,o.props);return o.type!==a.Fragment&&(s.ref=r?ft(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qt=Symbol("radix.slottable");function Os(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=qt,t}function wr(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qt}function br(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]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function xr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Er(e){const t=e+"CollectionProvider",[n,r]=$e(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=p=>{const{scope:v,children:y}=p,x=oe.useRef(null),w=oe.useRef(new Map).current;return C.jsx(o,{scope:v,itemMap:w,collectionRef:x,children:y})};c.displayName=t;const s=e+"CollectionSlot",u=Ie(s),l=oe.forwardRef((p,v)=>{const{scope:y,children:x}=p,w=i(s,y),b=H(v,w.collectionRef);return C.jsx(u,{ref:b,children:x})});l.displayName=s;const f=e+"CollectionItemSlot",d="data-radix-collection-item",h=Ie(f),m=oe.forwardRef((p,v)=>{const{scope:y,children:x,...w}=p,b=oe.useRef(null),E=H(v,b),R=i(f,y);return oe.useEffect(()=>(R.itemMap.set(b,{ref:b,...w}),()=>{R.itemMap.delete(b)})),C.jsx(h,{[d]:"",ref:E,children:x})});m.displayName=f;function g(p){const v=i(e+"CollectionConsumer",p);return oe.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((R,S)=>w.indexOf(R.ref.current)-w.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:c,Slot:l,ItemSlot:m},g,r]}var Cr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=Cr.reduce((e,t)=>{const n=Ie(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Sr(e,t){e&&Zt.flushSync(()=>e.dispatchEvent(t))}function se(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Rr(e,t=globalThis?.document){const n=se(e);a.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 Ar="DismissableLayer",ot="dismissableLayer.update",Pr="dismissableLayer.pointerDownOutside",Or="dismissableLayer.focusOutside",Pt,Qt=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...u}=e,l=a.useContext(Qt),[f,d]=a.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=a.useState({}),g=H(t,S=>d(S)),p=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),x=f?p.indexOf(f):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,b=x>=y,E=Tr(S=>{const A=S.target,N=[...l.branches].some(O=>O.contains(A));!b||N||(o?.(S),c?.(S),S.defaultPrevented||s?.())},h),R=Nr(S=>{const A=S.target;[...l.branches].some(O=>O.contains(A))||(i?.(S),c?.(S),S.defaultPrevented||s?.())},h);return Rr(S=>{x===l.layers.size-1&&(r?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},h),a.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Pt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Ot(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Pt)}},[f,h,n,l]),a.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Ot())},[f,l]),a.useEffect(()=>{const S=()=>m({});return document.addEventListener(ot,S),()=>document.removeEventListener(ot,S)},[]),C.jsx($.div,{...u,ref:g,style:{pointerEvents:w?b?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,R.onFocusCapture),onBlurCapture:W(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,E.onPointerDownCapture)})});dt.displayName=Ar;var Dr="DismissableLayerBranch",Jt=a.forwardRef((e,t)=>{const n=a.useContext(Qt),r=a.useRef(null),o=H(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),C.jsx($.div,{...e,ref:o})});Jt.displayName=Dr;function Tr(e,t=globalThis?.document){const n=se(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){en(Pr,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Nr(e,t=globalThis?.document){const n=se(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&en(Or,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 Ot(){const e=new CustomEvent(ot);document.dispatchEvent(e)}function en(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?Sr(o,i):o.dispatchEvent(i)}var Ds=dt,Ts=Jt,te=globalThis?.document?a.useLayoutEffect:()=>{},Ir="Portal",tn=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=a.useState(!1);te(()=>i(!0),[]);const c=n||o&&globalThis?.document?.body;return c?hr.createPortal(C.jsx($.div,{...r,ref:t}),c):null});tn.displayName=Ir;function Mr(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var je=e=>{const{present:t,children:n}=e,r=Fr(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=H(r.ref,_r(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};je.displayName="Presence";function Fr(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),c=e?"mounted":"unmounted",[s,u]=Mr(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const l=Ee(r.current);i.current=s==="mounted"?l:"none"},[s]),te(()=>{const l=r.current,f=o.current;if(f!==e){const h=i.current,m=Ee(l);e?u("MOUNT"):m==="none"||l?.display==="none"?u("UNMOUNT"):u(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),te(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=m=>{const p=Ee(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(u("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(i.current=Ee(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:a.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ee(e){return e?.animationName||"none"}function _r(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lr=ut[" useInsertionEffect ".trim().toString()]||te;function nn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=kr({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:o;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const d=f.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,r])}const l=a.useCallback(f=>{if(s){const d=Wr(f)?f(e):f;d!==e&&c.current?.(d)}else i(f)},[s,e,i,c]);return[u,l]}function kr({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Lr(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Wr(e){return typeof e=="function"}var $r=ut[" useId ".trim().toString()]||(()=>{}),jr=0;function Oe(e){const[t,n]=a.useState($r());return te(()=>{n(r=>r??String(jr++))},[e]),e||(t?`radix-${t}`:"")}const Br=["top","right","bottom","left"],ne=Math.min,j=Math.max,Me=Math.round,Ce=Math.floor,X=e=>({x:e,y:e}),Hr={left:"right",right:"left",bottom:"top",top:"bottom"};function it(e,t,n){return j(e,ne(t,n))}function q(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function pt(e){return e==="x"?"y":"x"}function mt(e){return e==="y"?"height":"width"}function G(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ht(e){return pt(G(e))}function Vr(e,t,n){n===void 0&&(n=!1);const r=he(e),o=ht(e),i=mt(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Fe(c)),[c,Fe(c)]}function Ur(e){const t=Fe(e);return[st(e),t,st(t)]}function st(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dt=["left","right"],Tt=["right","left"],zr=["top","bottom"],Kr=["bottom","top"];function Yr(e,t,n){switch(e){case"top":case"bottom":return n?t?Tt:Dt:t?Dt:Tt;case"left":case"right":return t?zr:Kr;default:return[]}}function Gr(e,t,n,r){const o=he(e);let i=Yr(Q(e),n==="start",r);return o&&(i=i.map(c=>c+"-"+o),t&&(i=i.concat(i.map(st)))),i}function Fe(e){const t=Q(e);return Hr[t]+e.slice(t.length)}function Xr(e){return{top:0,right:0,bottom:0,left:0,...e}}function rn(e){return typeof e!="number"?Xr(e):{top:e,right:e,bottom:e,left:e}}function _e(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Nt(e,t,n){let{reference:r,floating:o}=e;const i=G(t),c=ht(t),s=mt(c),u=Q(t),l=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let m;switch(u){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(he(t)){case"start":m[c]-=h*(n&&l?-1:1);break;case"end":m[c]+=h*(n&&l?-1:1);break}return m}async function Zr(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:c,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=q(t,e),g=rn(m),v=s[h?d==="floating"?"reference":"floating":d],y=_e(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:u})),x=d==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=_e(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:u}):x);return{top:(y.top-E.top+g.top)/b.y,bottom:(E.bottom-y.bottom+g.bottom)/b.y,left:(y.left-E.left+g.left)/b.x,right:(E.right-y.right+g.right)/b.x}}const qr=50,Qr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c}=n,s=c.detectOverflow?c:{...c,detectOverflow:Zr},u=await(c.isRTL==null?void 0:c.isRTL(t));let l=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Nt(l,r,u),h=r,m=0;const g={};for(let p=0;p<i.length;p++){const v=i[p];if(!v)continue;const{name:y,fn:x}=v,{x:w,y:b,data:E,reset:R}=await x({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:l,platform:s,elements:{reference:e,floating:t}});f=w??f,d=b??d,g[y]={...g[y],...E},R&&m<qr&&(m++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(l=R.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:d}=Nt(l,h,u)),p=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:g}},Jr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:c,elements:s,middlewareData:u}=t,{element:l,padding:f=0}=q(e,t)||{};if(l==null)return{};const d=rn(f),h={x:n,y:r},m=ht(o),g=mt(m),p=await c.getDimensions(l),v=m==="y",y=v?"top":"left",x=v?"bottom":"right",w=v?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[m]-h[m]-i.floating[g],E=h[m]-i.reference[m],R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(l));let S=R?R[w]:0;(!S||!await(c.isElement==null?void 0:c.isElement(R)))&&(S=s.floating[w]||i.floating[g]);const A=b/2-E/2,N=S/2-p[g]/2-1,O=ne(d[y],N),T=ne(d[x],N),F=O,M=S-p[g]-T,I=S/2-p[g]/2+A,k=it(F,I,M),D=!u.arrow&&he(o)!=null&&I!==k&&i.reference[g]/2-(I<F?O:T)-p[g]/2<0,_=D?I<F?I-F:I-M:0;return{[m]:h[m]+_,data:{[m]:k,centerOffset:I-k-_,...D&&{alignmentOffset:_}},reset:D}}}),eo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:c,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=q(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Q(o),x=G(s),w=Q(s)===s,b=await(u.isRTL==null?void 0:u.isRTL(l.floating)),E=h||(w||!p?[Fe(s)]:Ur(s)),R=g!=="none";!h&&R&&E.push(...Gr(s,p,g,b));const S=[s,...E],A=await u.detectOverflow(t,v),N=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&N.push(A[y]),d){const I=Vr(o,c,b);N.push(A[I[0]],A[I[1]])}if(O=[...O,{placement:o,overflows:N}],!N.every(I=>I<=0)){var T,F;const I=(((T=i.flip)==null?void 0:T.index)||0)+1,k=S[I];if(k&&(!(d==="alignment"?x!==G(k):!1)||O.every(P=>G(P.placement)===x?P.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:k}};let D=(F=O.filter(_=>_.overflows[0]<=0).sort((_,P)=>_.overflows[1]-P.overflows[1])[0])==null?void 0:F.placement;if(!D)switch(m){case"bestFit":{var M;const _=(M=O.filter(P=>{if(R){const L=G(P.placement);return L===x||L==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(L=>L>0).reduce((L,K)=>L+K,0)]).sort((P,L)=>P[1]-L[1])[0])==null?void 0:M[0];_&&(D=_);break}case"initialPlacement":D=s;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function It(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mt(e){return Br.some(t=>e[t]>=0)}const to=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=q(e,t);switch(o){case"referenceHidden":{const c=await r.detectOverflow(t,{...i,elementContext:"reference"}),s=It(c,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Mt(s)}}}case"escaped":{const c=await r.detectOverflow(t,{...i,altBoundary:!0}),s=It(c,n.floating);return{data:{escapedOffsets:s,escaped:Mt(s)}}}default:return{}}}}},on=new Set(["left","top"]);async function no(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=Q(n),s=he(n),u=G(n)==="y",l=on.has(c)?-1:1,f=i&&u?-1:1,d=q(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),u?{x:m*f,y:h*l}:{x:h*l,y:m*f}}const ro=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:c,middlewareData:s}=t,u=await no(t,e);return c===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:c}}}}},oo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:c=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...l}=q(e,t),f={x:n,y:r},d=await i.detectOverflow(t,l),h=G(Q(o)),m=pt(h);let g=f[m],p=f[h];if(c){const y=m==="y"?"top":"left",x=m==="y"?"bottom":"right",w=g+d[y],b=g-d[x];g=it(w,g,b)}if(s){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",w=p+d[y],b=p-d[x];p=it(w,p,b)}const v=u.fn({...t,[m]:g,[h]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:c,[h]:s}}}}}},io=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:c}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=q(e,t),f={x:n,y:r},d=G(o),h=pt(d);let m=f[h],g=f[d];const p=q(s,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const w=h==="y"?"height":"width",b=i.reference[h]-i.floating[w]+v.mainAxis,E=i.reference[h]+i.reference[w]-v.mainAxis;m<b?m=b:m>E&&(m=E)}if(l){var y,x;const w=h==="y"?"width":"height",b=on.has(Q(o)),E=i.reference[d]-i.floating[w]+(b&&((y=c.offset)==null?void 0:y[d])||0)+(b?0:v.crossAxis),R=i.reference[d]+i.reference[w]+(b?0:((x=c.offset)==null?void 0:x[d])||0)-(b?v.crossAxis:0);g<E?g=E:g>R&&(g=R)}return{[h]:m,[d]:g}}}},so=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:c,elements:s}=t,{apply:u=()=>{},...l}=q(e,t),f=await c.detectOverflow(t,l),d=Q(o),h=he(o),m=G(o)==="y",{width:g,height:p}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=h===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,v=h==="end"?"top":"bottom");const x=p-f.top-f.bottom,w=g-f.left-f.right,b=ne(p-f[v],x),E=ne(g-f[y],w),R=!t.middlewareData.shift;let S=b,A=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=x),R&&!h){const O=j(f.left,0),T=j(f.right,0),F=j(f.top,0),M=j(f.bottom,0);m?A=g-2*(O!==0||T!==0?O+T:j(f.left,f.right)):S=p-2*(F!==0||M!==0?F+M:j(f.top,f.bottom))}await u({...t,availableWidth:A,availableHeight:S});const N=await c.getDimensions(s.floating);return g!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function Be(){return typeof window<"u"}function ve(e){return sn(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Z(e){var t;return(t=(sn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sn(e){return Be()?e instanceof Node||e instanceof B(e).Node:!1}function V(e){return Be()?e instanceof Element||e instanceof B(e).Element:!1}function J(e){return Be()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function Ft(e){return!Be()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function we(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function co(e){return/^(table|td|th)$/.test(ve(e))}function He(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ao=/transform|translate|scale|rotate|perspective|filter/,lo=/paint|layout|strict|content/,ie=e=>!!e&&e!=="none";let Ye;function vt(e){const t=V(e)?U(e):e;return ie(t.transform)||ie(t.translate)||ie(t.scale)||ie(t.rotate)||ie(t.perspective)||!gt()&&(ie(t.backdropFilter)||ie(t.filter))||ao.test(t.willChange||"")||lo.test(t.contain||"")}function uo(e){let t=re(e);for(;J(t)&&!me(t);){if(vt(t))return t;if(He(t))return null;t=re(t)}return null}function gt(){return Ye==null&&(Ye=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ye}function me(e){return/^(html|body|#document)$/.test(ve(e))}function U(e){return B(e).getComputedStyle(e)}function Ve(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(ve(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ft(e)&&e.host||Z(e);return Ft(t)?t.host:t}function cn(e){const t=re(e);return me(t)?e.ownerDocument?e.ownerDocument.body:e.body:J(t)&&we(t)?t:cn(t)}function ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),c=B(o);if(i){const s=ct(c);
vendor: 4,516 bytes, line 1
1return t.concat(c,c.visualViewport||[],we(o)?o:[],s&&n?ye(s):[])}else return t.concat(o,ye(o,[],n))}function ct(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function an(e){const t=U(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=J(e),i=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=Me(n)!==i||Me(r)!==c;return s&&(n=i,r=c),{width:n,height:r,$:s}}function yt(e){return V(e)?e:e.contextElement}function de(e){const t=yt(e);if(!J(t))return X(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=an(t);let c=(i?Me(n.width):n.width)/r,s=(i?Me(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const fo=X(0);function ln(e){const t=B(e);return!gt()||!t.visualViewport?fo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function po(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function ce(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=yt(e);let c=X(1);t&&(r?V(r)&&(c=de(r)):c=de(e));const s=po(i,n,r)?ln(i):X(0);let u=(o.left+s.x)/c.x,l=(o.top+s.y)/c.y,f=o.width/c.x,d=o.height/c.y;if(i){const h=B(i),m=r&&V(r)?B(r):r;let g=h,p=ct(g);for(;p&&r&&m!==g;){const v=de(p),y=p.getBoundingClientRect(),x=U(p),w=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*v.x,b=y.top+(p.clientTop+parseFloat(x.paddingTop))*v.y;u*=v.x,l*=v.y,f*=v.x,d*=v.y,u+=w,l+=b,g=B(p),p=ct(g)}}return _e({width:f,height:d,x:u,y:l})}function Ue(e,t){const n=Ve(e).scrollLeft;return t?t.left+n:ce(Z(e)).left+n}function un(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ue(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function mo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",c=Z(r),s=t?He(t.floating):!1;if(r===c||s&&i)return n;let u={scrollLeft:0,scrollTop:0},l=X(1);const f=X(0),d=J(r);if((d||!d&&!i)&&((ve(r)!=="body"||we(c))&&(u=Ve(r)),d)){const m=ce(r);l=de(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const h=c&&!d&&!i?un(c,u):X(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+h.x,y:n.y*l.y-u.scrollTop*l.y+f.y+h.y}}function ho(e){return Array.from(e.getClientRects())}function vo(e){const t=Z(e),n=Ve(e),r=e.ownerDocument.body,o=j(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=j(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Ue(e);const s=-n.scrollTop;return U(r).direction==="rtl"&&(c+=j(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:c,y:s}}const _t=25;function go(e,t){const n=B(e),r=Z(e),o=n.visualViewport;let i=r.clientWidth,c=r.clientHeight,s=0,u=0;if(o){i=o.width,c=o.height;const f=gt();(!f||f&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=Ue(r);if(l<=0){const f=r.ownerDocument,d=f.body,h=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-m);g<=_t&&(i-=g)}else l<=_t&&(i+=l);return{width:i,height:c,x:s,y:u}}function yo(e,t){const n=ce(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=J(e)?de(e):X(1),c=e.clientWidth*i.x,s=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:c,height:s,x:u,y:l}}function Lt(e,t,n){let r;if(t==="viewport")r=go(e,n);else if(t==="document")r=vo(Z(e));else if(V(t))r=yo(t,n);else{const o=ln(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _e(r)}function fn(e,t){const n=re(e);return n===t||!V(n)||me(n)?!1:U(n).position==="fixed"||fn(n,t)}function wo(e,t){const n=t.get(e);if(n)return n;let r=ye(e,[],!1).filter(s=>V(s)&&ve(s)!=="body"),o=null;const i=U(e).position==="fixed";let c=i?re(e):e;for(;V(c)&&!me(c);){const s=U(c),u=vt(c);!u&&s.position==="fixed"&&(o=null),(i?!u&&!o:!u&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||we(c)&&!u&&fn(e,c))?r=r.filter(f=>f!==c):o=s,c=re(c)}return t.set(e,r),r}function bo(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?He(t)?[]:wo(t,this._c):[].concat(n),r],s=Lt(t,c[0],o);let u=s.top,l=s.right,f=s.bottom,d=s.left;for(let h=1;h<c.length;h++){const m=Lt(t,c[h],o);u=j(m.top,u),l=ne(m.right,l),f=ne(m.bottom,f),d=j(m.left,d)}return{width:l-d,height:f-u,x:d,y:u}}function xo(e){const{width:t,height:n}=an(e);return{width:t,height:n}}function Eo(e,t,n){const r=J(t),o=Z(t),i=n==="fixed",c=ce(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const u=X(0);function l(){u.x=Ue(o)}if(r||!r&&!i)if((ve(t)!=="body"||we(o))&&(s=Ve(t)),r){const m=ce(t,!0,i,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}
vendor: 3,903 bytes, line 1
1else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?un(o,s):X(0),d=c.left+s.scrollLeft-u.x-f.x,h=c.top+s.scrollTop-u.y-f.y;return{x:d,y:h,width:c.width,height:c.height}}function Ge(e){return U(e).position==="static"}function kt(e,t){if(!J(e)||U(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Z(e)===n&&(n=n.ownerDocument.body),n}function dn(e,t){const n=B(e);if(He(e))return n;if(!J(e)){let o=re(e);for(;o&&!me(o);){if(V(o)&&!Ge(o))return o;o=re(o)}return n}let r=kt(e,t);for(;r&&co(r)&&Ge(r);)r=kt(r,t);return r&&me(r)&&Ge(r)&&!vt(r)?n:r||uo(e)||n}const Co=async function(e){const t=this.getOffsetParent||dn,n=this.getDimensions,r=await n(e.floating);return{reference:Eo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function So(e){return U(e).direction==="rtl"}const Ro={convertOffsetParentRelativeRectToViewportRelativeRect:mo,getDocumentElement:Z,getClippingRect:bo,getOffsetParent:dn,getElementRects:Co,getClientRects:ho,getDimensions:xo,getScale:de,isElement:V,isRTL:So};function pn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ao(e,t){let n=null,r;const o=Z(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),i();const l=e.getBoundingClientRect(),{left:f,top:d,width:h,height:m}=l;if(s||t(),!h||!m)return;const g=Ce(d),p=Ce(o.clientWidth-(f+h)),v=Ce(o.clientHeight-(d+m)),y=Ce(f),w={rootMargin:-g+"px "+-p+"px "+-v+"px "+-y+"px",threshold:j(0,ne(1,u))||1};let b=!0;function E(R){const S=R[0].intersectionRatio;if(S!==u){if(!b)return c();S?c(!1,S):r=setTimeout(()=>{c(!1,1e-7)},1e3)}S===1&&!pn(l,e.getBoundingClientRect())&&c(),b=!1}try{n=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return c(!0),i}function Po(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=yt(e),f=o||i?[...l?ye(l):[],...t?ye(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&s?Ao(l,n):null;let h=-1,m=null;c&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),l&&!u&&m.observe(l),t&&m.observe(t));let g,p=u?ce(e):null;u&&v();function v(){const y=ce(e);p&&!pn(p,y)&&n(),p=y,g=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const Oo=ro,Do=oo,To=eo,No=so,Io=to,Wt=Jr,Mo=io,Fo=(e,t,n)=>{const r=new Map,o={platform:Ro,...n},i={...o.platform,_c:r};return Qr(e,t,{...o,platform:i})};var _o=typeof document<"u",Lo=function(){},De=_o?a.useLayoutEffect:Lo;function Le(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Le(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Le(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function mn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $t(e,t){const n=mn(e);return Math.round(t*n)/n}function Xe(e){const t=a.useRef(e);return De(()=>{t.current=e}),t}function ko(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:c}={},transform:s=!0,whileElementsMounted:u,open:l}
vendor: 17,922 bytes, lines 1-16
1=e,[f,d]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=a.useState(r);Le(h,r)||m(r);const[g,p]=a.useState(null),[v,y]=a.useState(null),x=a.useCallback(P=>{P!==R.current&&(R.current=P,p(P))},[]),w=a.useCallback(P=>{P!==S.current&&(S.current=P,y(P))},[]),b=i||g,E=c||v,R=a.useRef(null),S=a.useRef(null),A=a.useRef(f),N=u!=null,O=Xe(u),T=Xe(o),F=Xe(l),M=a.useCallback(()=>{if(!R.current||!S.current)return;const P={placement:t,strategy:n,middleware:h};T.current&&(P.platform=T.current),Fo(R.current,S.current,P).then(L=>{const K={...L,isPositioned:F.current!==!1};I.current&&!Le(A.current,K)&&(A.current=K,Zt.flushSync(()=>{d(K)}))})},[h,t,n,T,F]);De(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[l]);const I=a.useRef(!1);De(()=>(I.current=!0,()=>{I.current=!1}),[]),De(()=>{if(b&&(R.current=b),E&&(S.current=E),b&&E){if(O.current)return O.current(b,E,M);M()}},[b,E,M,O,N]);const k=a.useMemo(()=>({reference:R,floating:S,setReference:x,setFloating:w}),[x,w]),D=a.useMemo(()=>({reference:b,floating:E}),[b,E]),_=a.useMemo(()=>{const P={position:n,left:0,top:0};if(!D.floating)return P;const L=$t(D.floating,f.x),K=$t(D.floating,f.y);return s?{...P,transform:"translate("+L+"px, "+K+"px)",...mn(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:K}},[n,s,D.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:M,refs:k,elements:D,floatingStyles:_}),[f,M,k,D,_])}const Wo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Wt({element:r.current,padding:o}).fn(n):{}:r?Wt({element:r,padding:o}).fn(n):{}}}},$o=(e,t)=>{const n=Oo(e);return{name:n.name,fn:n.fn,options:[e,t]}},jo=(e,t)=>{const n=Do(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bo=(e,t)=>({fn:Mo(e).fn,options:[e,t]}),Ho=(e,t)=>{const n=To(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vo=(e,t)=>{const n=No(e);return{name:n.name,fn:n.fn,options:[e,t]}},Uo=(e,t)=>{const n=Io(e);return{name:n.name,fn:n.fn,options:[e,t]}},zo=(e,t)=>{const n=Wo(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Ko="Arrow",hn=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return C.jsx($.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});hn.displayName=Ko;var Yo=hn;function Go(e){const[t,n]=a.useState(void 0);return te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let c,s;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;c=l.inlineSize,s=l.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var wt="Popper",[vn,Ns]=$e(wt),[Xo,gn]=vn(wt),yn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return C.jsx(Xo,{scope:t,anchor:r,onAnchorChange:o,children:n})};yn.displayName=wt;var wn="PopperAnchor",bn=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=gn(wn,n),c=a.useRef(null),s=H(t,c),u=a.useRef(null);return a.useEffect(()=>{const l=u.current;u.current=r?.current||c.current,l!==u.current&&i.onAnchorChange(u.current)}),r?null:C.jsx($.div,{...o,ref:s})});bn.displayName=wn;var bt="PopperContent",[Zo,qo]=vn(bt),xn=a.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...p}=e,v=gn(bt,n),[y,x]=a.useState(null),w=H(t,ge=>x(ge)),[b,E]=a.useState(null),R=Go(b),S=R?.width??0,A=R?.height??0,N=r+(i!=="center"?"-"+i:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(l)?l:[l],F=T.length>0,M={padding:O,boundary:T.filter(Jo),altBoundary:F},{refs:I,floatingStyles:k,placement:D,isPositioned:_,middlewareData:P}=ko({strategy:"fixed",placement:N,whileElementsMounted:(...ge)=>Po(...ge,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[$o({mainAxis:o+A,alignmentAxis:c}),u&&jo({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Bo():void 0,...M}),u&&Ho({...M}),Vo({...M,apply:({elements:ge,rects:Rt,availableWidth:fr,availableHeight:dr})=>{const{width:pr,height:mr}=Rt.reference,xe=ge.floating.style;xe.setProperty("--radix-popper-available-width",`${fr}px`),xe.setProperty("--radix-popper-available-height",`${dr}px`),xe.setProperty("--radix-popper-anchor-width",`${pr}px`),xe.setProperty("--radix-popper-anchor-height",`${mr}px`)}}),b&&zo({element:b,padding:s}),ei({arrowWidth:S,arrowHeight:A}),h&&Uo({strategy:"referenceHidden",...M})]}),[L,K]=Sn(D),St=se(g);te(()=>{_&&St?.()},[_,St]);const sr=P.arrow?.x,cr=P.arrow?.y,ar=P.arrow?.centerOffset!==0,[lr,ur]=a.useState();return te(()=>{y&&ur(window.getComputedStyle(y).zIndex)},[y]),C.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:_?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lr,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(Zo,{scope:n,placedSide:L,onArrowChange:E,arrowX:sr,arrowY:cr,shouldHideArrow:ar,children:C.jsx($.div,{"data-side":L,"data-align":K,...p,ref:w,style:{...p.style,animation:_?void 0:"none"}})})})});xn.displayName=bt;var En="PopperArrow",Qo={top:"bottom",right:"left",bottom:"top",left:"right"},Cn=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=qo(En,r),c=Qo[i.placedSide];return C.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]: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:C.jsx(Yo,{...o,ref:n,style:{...o.style,display:"block"}})})});Cn.displayName=En;function Jo(e){return e!==null}var ei=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,s=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[l,f]=Sn(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+s/2,m=(o.arrow?.y??0)+u/2;let g="",p="";return l==="bottom"?(g=c?d:`${h}px`,p=`${-u}px`):l==="top"?(g=c?d:`${h}px`,p=`${r.floating.height+u}px`):l==="right"?(g=`${-u}px`,p=c?d:`${m}px`):l==="left"&&(g=`${r.floating.width+u}px`,p=c?d:`${m}px`),{data:{x:g,y:p}}}});function Sn(e){const[t,n="center"]=e.split("-");return[t,n]}var Is=yn,Ms=bn,Fs=xn,_s=Cn,ti=Symbol.for("react.lazy"),ke=ut[" use ".trim().toString()];function ni(e){return typeof e=="object"&&e!==null&&"then"in e}function Rn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ti&&"_payload"in e&&ni(e._payload)}function An(e){const t=ri(e),n=a.forwardRef((r,o)=>{let{children:i,...c}=r;Rn(i)&&typeof ke=="function"&&(i=ke(i._payload));const s=a.Children.toArray(i),u=s.find(ii);if(u){const l=u.props.children,f=s.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return C.jsx(t,{...c,ref:o,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return C.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Ls=An("Slot");function ri(e){const t=a.forwardRef((n,r)=>{let{children:o,...i}=n;if(Rn(o)&&typeof ke=="function"&&(o=ke(o._payload)),a.isValidElement(o)){const c=ci(o),s=si(i,o.props);return o.type!==a.Fragment&&(s.ref=r?ft(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oi=Symbol("radix.slottable");function ii(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oi}function si(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]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ci(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ze="focusScope.autoFocusOnMount",qe="focusScope.autoFocusOnUnmount",jt={bubbles:!1,cancelable:!0},ai="FocusScope",Pn=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,u]=a.useState(null),l=se(o),f=se(i),d=a.useRef(null),h=H(t,p=>u(p)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let p=function(w){if(m.paused||!s)return;const b=w.target;s.contains(b)?d.current=b:ee(d.current,{select:!0})},v=function(w){if(m.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||ee(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&ee(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),x.disconnect()}}},[r,s,m.paused]),a.useEffect(()=>{if(s){Ht.add(m);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(Ze,jt);s.addEventListener(Ze,l),s.dispatchEvent(y),y.defaultPrevented||(li(mi(On(s)),{select:!0}),document.activeElement===p&&ee(s))}return()=>{s.removeEventListener(Ze,l),setTimeout(()=>{const y=new CustomEvent(qe,jt);s.addEventListener(qe,f),s.dispatchEvent(y),y.defaultPrevented||ee(p??document.body,{select:!0}),s.removeEventListener(qe,f),Ht.remove(m)},0)}}},[s,l,f,m]);const g=a.useCallback(p=>{if(!n&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const x=p.currentTarget,[w,b]=ui(x);w&&b?!p.shiftKey&&y===b?(p.preventDefault(),n&&ee(w,{select:!0})):p.shiftKey&&y===w&&(p.preventDefault(),n&&ee(b,{select:!0})):y===x&&p.preventDefault()}},[n,r,m.paused]);return C.jsx($.div,{tabIndex:-1,...c,ref:h,onKeyDown:g})});Pn.displayName=ai;function li(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ee(r,{select:t}),document.activeElement!==n)return}function ui(e){const t=On(e),n=Bt(t,e),r=Bt(t.reverse(),e);return[n,r]}function On(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 Bt(e,t){for(const n of e)if(!fi(n,{upTo:t}))return n}function fi(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 di(e){return e instanceof HTMLInputElement&&"select"in e}function ee(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&di(e)&&t&&e.select()}}var Ht=pi();function pi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Vt(e,t),e.unshift(t)},remove(t){e=Vt(e,t),e[0]?.resume()}}}function Vt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function mi(e){return e.filter(t=>t.tagName!=="A")}var Qe=0;function hi(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ut()),document.body.insertAdjacentElement("beforeend",e[1]??Ut()),Qe++,()=>{Qe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qe--}},[])}function Ut(){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 Y=function(){return Y=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},Y.apply(this,arguments)};function Dn(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 vi(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 Te="right-scroll-bar-position",Ne="width-before-scroll-bar",gi="with-scroll-bars-hidden",yi="--removed-body-scroll-bar-size";function Je(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wi(e,t){var n=a.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 bi=typeof window<"u"?a.useLayoutEffect:a.useEffect,zt=new WeakMap;function xi(e,t){var n=wi(null,function(r){return e.forEach(function(o){return Je(o,r)})});return bi(function(){var r=zt.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||Je(s,null)}),i.forEach(function(s){o.has(s)||Je(s,c)})}zt.set(n,e)},[e]),n}function Ei(e){return e}function Ci(e,t){t===void 0&&(t=Ei);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 c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var u=function(){var f=c;c=[],f.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){c.push(f),l()},filter:function(f){return c=c.filter(f),n}}}};return o}function Si(e){e===void 0&&(e={});var t=Ci(null);return t.options=Y({async:!0,ssr:!1},e),t}var Tn=function(e){var t=e.sideCar,n=Dn(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 a.createElement(r,Y({},n))};Tn.isSideCarExport=!0;function Ri(e,t){return e.useMedium(t),Tn}var Nn=Si(),et=function(){},ze=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:et,onWheelCapture:et,onTouchMoveCapture:et}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,m=e.noRelative,g=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,b=Dn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,R=xi([n,t]),S=Y(Y({},b),o);return a.createElement(a.Fragment,null,f&&a.createElement(E,{sideCar:Nn,removeScrollBar:l,shards:d,noRelative:m,noIsolation:g,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:w}),c?a.cloneElement(a.Children.only(s),Y(Y({},S),{ref:R})):a.createElement(x,Y({},S,{className:u,ref:R}),s))});ze.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ze.classNames={fullWidth:Ne,zeroRight:Te};var Ai=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ai();return t&&e.setAttribute("nonce",t),e}function Oi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Di(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ti=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Pi())&&(Oi(t,n),Di(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ni=function(){var e=Ti();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},In=function(){var e=Ni(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ii={left:0,top:0,right:0,gap:0},tt=function(e){return parseInt(e||"",10)||0},Mi=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[tt(n),tt(r),tt(o)]},Fi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ii;var t=Mi(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])}},_i=In(),pe="data-scroll-locked",Li=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(gi,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(s,"px ").concat(r,`;
5  }
6  body[`).concat(pe,`] {
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(c,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(s,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(Te,` {
20    right: `).concat(s,"px ").concat(r,`;
21  }
22  
23  .`).concat(Ne,` {
24    margin-right: `).concat(s,"px ").concat(r,`;
25  }
26  
27  .`).concat(Te," .").concat(Te,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(Ne," .").concat(Ne,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(pe,`] {
36    `).concat(yi,": ").concat(s,`px;
37  }
38`)},Kt=function(){var e=parseInt(document.body.getAttribute(pe)||"0",10);return isFinite(e)?e:0},ki=function(){a.useEffect(function(){return document.body.setAttribute(pe,(Kt()+1).toString()),function(){var e=Kt()-1;e<=0?document.body.removeAttribute(pe):document.body.setAttribute(pe,e.toString())}},[])},Wi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ki();var i=a.useMemo(function(){return Fi(o)},[o]);return a.createElement(_i,{styles:Li(i,!t,o,n?"":"!important")})},at=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return at=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{at=!1}var le=at?{passive:!1}:!1,$i=function(e){return e.tagName==="TEXTAREA"},Mn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$i(e)&&n[t]==="visible")},ji=function(e){return Mn(e,"overflowY")},Bi=function(e){return Mn(e,"overflowX")},Yt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fn(e,r);if(o){var i=_n(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hi=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Vi=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fn=function(e,t){return e==="v"?ji(t):Bi(t)},_n=function(e,t){return e==="v"?Hi(t):Vi(t)},Ui=function(e,t){return e==="h"&&t==="rtl"?-1:1},zi=function(e,t,n,r,o){var i=Ui(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,u=t.contains(s),l=!1,f=c>0,d=0,h=0;do{if(!s)break;var m=_n(e,s),g=m[0],p=m[1],v=m[2],y=p-v-i*g;(g||y)&&Fn(e,s)&&(d+=y,h+=g);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(f&&Math.abs(d)<1||!f&&Math.abs(h)<1)&&(l=!0),l},Re=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gt=function(e){return[e.deltaX,e.deltaY]},Xt=function(e){return e&&"current"in e?e.current:e},Ki=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Yi=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Gi=0,ue=[];function Xi(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Gi++)[0],i=a.useState(In)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=vi([e.lockRef.current],(e.shards||[]).map(Xt),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!c.current.allowPinchZoom;var y=Re(p),x=n.current,w="deltaX"in p?p.deltaX:x[0]-y[0],b="deltaY"in p?p.deltaY:x[1]-y[1],E,R=p.target,S=Math.abs(w)>Math.abs(b)?"h":"v";if("touches"in p&&S==="h"&&R.type==="range")return!1;var A=window.getSelection(),N=A&&A.anchorNode,O=N?N===R||N.contains(R):!1;if(O)return!1;var T=Yt(S,R);if(!T)return!0;if(T?E=S:(E=S==="v"?"h":"v",T=Yt(S,R)),!T)return!1;if(!r.current&&"changedTouches"in p&&(w||b)&&(r.current=E),!E)return!0;var F=r.current||E;return zi(F,v,p,F==="h"?w:b)},[]),u=a.useCallback(function(p){var v=p;if(!(!ue.length||ue[ue.length-1]!==i)){var y="deltaY"in v?Gt(v):Re(v),x=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&Ki(E.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}
vendor: 4,333 bytes, line 41
41if(!x){var w=(c.current.shards||[]).map(Xt).filter(Boolean).filter(function(E){return E.contains(v.target)}),b=w.length>0?s(v,w[0]):!c.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),l=a.useCallback(function(p,v,y,x){var w={name:p,delta:v,target:y,should:x,shadowParent:Zi(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(b){return b!==w})},1)},[]),f=a.useCallback(function(p){n.current=Re(p),r.current=void 0},[]),d=a.useCallback(function(p){l(p.type,Gt(p),p.target,s(p,e.lockRef.current))},[]),h=a.useCallback(function(p){l(p.type,Re(p),p.target,s(p,e.lockRef.current))},[]);a.useEffect(function(){return ue.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",u,le),document.addEventListener("touchmove",u,le),document.addEventListener("touchstart",f,le),function(){ue=ue.filter(function(p){return p!==i}),document.removeEventListener("wheel",u,le),document.removeEventListener("touchmove",u,le),document.removeEventListener("touchstart",f,le)}},[]);var m=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(i,{styles:Yi(o)}):null,m?a.createElement(Wi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qi=Ri(Nn,Xi);var Ln=a.forwardRef(function(e,t){return a.createElement(ze,Y({},e,{ref:t,sideCar:qi}))});Ln.classNames=ze.classNames;var Qi=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fe=new WeakMap,Ae=new WeakMap,Pe={},nt=0,kn=function(e){return e&&(e.host||kn(e.parentNode))},Ji=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=kn(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})},es=function(e,t,n,r){var o=Ji(t,Array.isArray(e)?e:[e]);Pe[n]||(Pe[n]=new WeakMap);var i=Pe[n],c=[],s=new Set,u=new Set(o),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(h){if(s.has(h))f(h);else try{var m=h.getAttribute(r),g=m!==null&&m!=="false",p=(fe.get(h)||0)+1,v=(i.get(h)||0)+1;fe.set(h,p),i.set(h,v),c.push(h),p===1&&g&&Ae.set(h,!0),v===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),s.clear(),nt++,function(){c.forEach(function(d){var h=fe.get(d)-1,m=i.get(d)-1;fe.set(d,h),i.set(d,m),h||(Ae.has(d)||d.removeAttribute(r),Ae.delete(d)),m||d.removeAttribute(n)}),nt--,nt||(fe=new WeakMap,fe=new WeakMap,Ae=new WeakMap,Pe={})}},ts=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qi(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),es(r,o,n,"aria-hidden")):function(){return null}},Ke="Dialog",[Wn,ks]=$e(Ke),[ns,z]=Wn(Ke),$n=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,s=a.useRef(null),u=a.useRef(null),[l,f]=nn({prop:r,defaultProp:o??!1,onChange:i,caller:Ke});return C.jsx(ns,{scope:t,triggerRef:s,contentRef:u,contentId:Oe(),titleId:Oe(),descriptionId:Oe(),open:l,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(d=>!d),[f]),modal:c,children:n})};$n.displayName=Ke;var jn="DialogTrigger",Bn=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(jn,n),i=H(t,o.triggerRef);return C.jsx($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ct(o.open),...r,ref:i,onClick:W(e.onClick,o.onOpenToggle)})});Bn.displayName=jn;var xt="DialogPortal",[rs,Hn]=Wn(xt,{forceMount:void 0}),Vn=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=z(xt,t);return C.jsx(rs,{scope:t,forceMount:n,children:a.Children.map(r,c=>C.jsx(je,{present:n||i.open,children:C.jsx(tn,{asChild:!0,container:o,children:c})}))})};Vn.displayName=xt;var We="DialogOverlay",Un=a.forwardRef((e,t)=>{const n=Hn(We,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z(We,e.__scopeDialog);return i.modal?C.jsx(je,{present:r||i.open,children:C.jsx(is,{...o,ref:t})}):null});Un.displayName=We;var os=Ie("DialogOverlay.RemoveScroll"),is=a.forwardRef((e,t)=>
vendor: 7,966 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=z(We,n);return C.jsx(Ln,{as:os,allowPinchZoom:!0,shards:[o.contentRef],children:C.jsx($.div,{"data-state":Ct(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ae="DialogContent",zn=a.forwardRef((e,t)=>{const n=Hn(ae,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z(ae,e.__scopeDialog);return C.jsx(je,{present:r||i.open,children:i.modal?C.jsx(ss,{...o,ref:t}):C.jsx(cs,{...o,ref:t})})});zn.displayName=ae;var ss=a.forwardRef((e,t)=>{const n=z(ae,e.__scopeDialog),r=a.useRef(null),o=H(t,n.contentRef,r);return a.useEffect(()=>{const i=r.current;if(i)return ts(i)},[]),C.jsx(Kn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&i.preventDefault()}),onFocusOutside:W(e.onFocusOutside,i=>i.preventDefault())})}),cs=a.forwardRef((e,t)=>{const n=z(ae,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return C.jsx(Kn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;n.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Kn=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,s=z(ae,n),u=a.useRef(null),l=H(t,u);return hi(),C.jsxs(C.Fragment,{children:[C.jsx(Pn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:C.jsx(dt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ct(s.open),...c,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(as,{titleId:s.titleId}),C.jsx(us,{contentRef:u,descriptionId:s.descriptionId})]})]})}),Et="DialogTitle",Yn=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(Et,n);return C.jsx($.h2,{id:o.titleId,...r,ref:t})});Yn.displayName=Et;var Gn="DialogDescription",Xn=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(Gn,n);return C.jsx($.p,{id:o.descriptionId,...r,ref:t})});Xn.displayName=Gn;var Zn="DialogClose",qn=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(Zn,n);return C.jsx($.button,{type:"button",...r,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});qn.displayName=Zn;function Ct(e){return e?"open":"closed"}var Qn="DialogTitleWarning",[Ws,Jn]=vr(Qn,{contentName:ae,titleName:Et,docsSlug:"dialog"}),as=({titleId:e})=>{const t=Jn(Qn),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ls="DialogDescriptionWarning",us=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Jn(ls).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$s=$n,js=Bn,Bs=Vn,Hs=Un,Vs=zn,Us=Yn,zs=Xn,Ks=qn,fs=a.createContext(void 0);function ds(e){const t=a.useContext(fs);return e||t||"ltr"}var rt="rovingFocusGroup.onEntryFocus",ps={bubbles:!1,cancelable:!0},be="RovingFocusGroup",[lt,er,ms]=Er(be),[hs,Ys]=$e(be,[ms]),[vs,gs]=hs(be),tr=a.forwardRef((e,t)=>C.jsx(lt.Provider,{scope:e.__scopeRovingFocusGroup,children:C.jsx(lt.Slot,{scope:e.__scopeRovingFocusGroup,children:C.jsx(ys,{...e,ref:t})})}));tr.displayName=be;var ys=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,h=a.useRef(null),m=H(t,h),g=ds(i),[p,v]=nn({prop:c,defaultProp:s??null,onChange:u,caller:be}),[y,x]=a.useState(!1),w=se(l),b=er(n),E=a.useRef(!1),[R,S]=a.useState(0);return a.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(rt,w),()=>A.removeEventListener(rt,w)},[w]),C.jsx(vs,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:p,onItemFocus:a.useCallback(A=>v(A),[v]),onItemShiftTab:a.useCallback(()=>x(!0),[]),onFocusableItemAdd:a.useCallback(()=>S(A=>A+1),[]),onFocusableItemRemove:a.useCallback(()=>S(A=>A-1),[]),children:C.jsx($.div,{tabIndex:y||R===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{E.current=!0}),onFocus:W(e.onFocus,A=>{const N=!E.current;if(A.target===A.currentTarget&&N&&!y){const O=new CustomEvent(rt,ps);if(A.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=b().filter(D=>D.focusable),F=T.find(D=>D.active),M=T.find(D=>D.id===p),k=[F,M,...T].filter(Boolean).map(D=>D.ref.current);or(k,f)}}E.current=!1}),onBlur:W(e.onBlur,()=>x(!1))})})}),nr="RovingFocusGroupItem",rr=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:c,...s}=e,u=Oe(),l=i||u,f=gs(nr,n),d=f.currentTabStopId===l,h=er(n),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:p}=f;return a.useEffect(()=>{if(r)return m(),()=>g()},[r,m,g]),C.jsx(lt.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:C.jsx($.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,v=>{r?f.onItemFocus(l):v.preventDefault()}),onFocus:W(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:W(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=xs(v,f.orientation,f.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=h().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const b=w.indexOf(v.currentTarget);w=f.loop?Es(w,b+1):w.slice(b+1)}setTimeout(()=>or(w))}}),children:typeof c=="function"?c({isCurrentTabStop:d,hasTabStop:p!=null}):c})})});rr.displayName=nr;var ws={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bs(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xs(e,t,n){const r=bs(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return ws[r]}function or(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Es(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Gs=tr,Xs=rr,Cs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ss=Cs.reduce((e,t)=>{const n=An(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Rs="Label",ir=a.forwardRef((e,t)=>C.jsx(Ss.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ir.displayName=Rs;var Zs=ir;export{Ms as A,Ts as B,Fs as C,dt as D,ts as E,hi as F,Ln as G,Pn as H,Xs as I,Ie as J,Zs as K,Hs as O,$ as P,Ds as R,Ls as S,Us as T,Ws as W,nn as a,je as b,W as c,se as d,Er as e,$e as f,tn as g,te as h,Sr as i,Ns as j,Os as k,_s as l,Bs as m,Vs as n,zs as o,Ks as p,ks as q,$s as r,js as s,ds as t,H as u,Gs as v,Ys as w,Go as x,Oe as y,Is 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.