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