1var Jn=e=>{throw TypeError(e)};var eo=(e,t,n)=>t.has(e)||Jn("Cannot "+n);var ee=(e,t,n)=>(eo(e,t,"read from private field"),n?n.call(e):t.get(e)),to=(e,t,n)=>t.has(e)?Jn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Kt=(e,t,n,o)=>(eo(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);import{r as a,R as tt,j as S,a as ut}from"./vendor-react-BQgABvsW.js";var ci=Object.defineProperty,Cn=(e,t)=>ci(e,"name",{value:t,configurable:!0});function sn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Cn(sn,"setRef");function _o(...e){return t=>{let n=!1;const o=e.map(r=>{const i=sn(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():sn(e[r],null)}}}}Cn(_o,"composeRefs");function V(...e){return a.useCallback(_o(...e),e)}Cn(V,"useComposedRefs");var ai=Object.defineProperty,ue=(e,t)=>ai(e,"name",{value:t,configurable:!0});function Ce(e){const t=a.forwardRef((n,o)=>{let{children:r,...i}=n,s=null,c=!1;const l=[];
1cn(r)&&typeof pt=="function"&&(r=pt(r._payload)),a.Children.forEach(r,d=>{if(Mo(d)){c=!0;const v=d;let m="child"in v.props?v.props.child:v.props.children;cn(m)&&typeof pt=="function"&&(m=pt(m._payload)),s=ui(v,m),l.push(s?.props?.children)}else l.push(d)}),s?s=a.cloneElement(s,void 0,l):!c&&a.Children.count(r)===1&&a.isValidElement(r)&&(s=r);const u=s?Do(s):void 0,h=V(o,u);if(!s){if(r||r===0)throw new Error(c?pi(e):di(e));return r}const f=Ao(i,s.props??{});return s.type!==a.Fragment&&(f.ref=o?h:u),a.cloneElement(s,f)});return t.displayName=`${e}.Slot`,t}ue(Ce,"createSlot");var Ol=Ce("Slot"),To=Symbol.for("radix.slottable");function li(e){const t=ue(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=To,t}ue(li,"createSlottable");var ui=ue((e,t)=>{if("child"in e.props){const n=e.props.child;return a.isValidElement(n)?a.cloneElement(n,void 0,e.props.children(n.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Ao(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]=(...c)=>{const l=i(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}ue(Ao,"mergeProps");function Do(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)}ue(Do,"getElementRef");function Mo(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===To}ue(Mo,"isSlottable");var fi=Symbol.for("react.lazy");function cn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===fi&&"_payload"in e&&ko(e._payload)}ue(cn,"isLazyComponent");function ko(e){return typeof e=="object"&&e!==null&&"then"in e}ue(ko,"isPromiseLike");var di=ue(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),pi=ue(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),pt=tt[" use ".trim().toString()],hi=Object.defineProperty,ce=(e,t)=>hi(e,"name",{value:t,configurable:!0});function mi(e,t){const n=a.createContext(t);n.displayName=e+"Context";const o=ce(i=>{const{children:s,...c}=i,l=a.useMemo(()=>c,Object.values(c));return S.jsx(n.Provider,{value:l,children:s})},"Provider");o.displayName=e+"Provider";function r(i,s={}){const{optional:c=!1}=s,l=a.useContext(n);if(l)return l;if(t!==void 0)return t;if(!c)throw new Error(`\`${i}\` must be used within \`${e}\``)}return ce(r,"useContext"),[o,r]}ce(mi,"createContext");function ve(e,t=[]){let n=[];function o(i,s){const c=a.createContext(s);c.displayName=i+"Context";const l=n.length;n=[...n,s];const u=ce(f=>{const{scope:d,children:v,...m}=f,g=d?.[e]?.[l]||c,p=a.useMemo(()=>m,Object.values(m));return S.jsx(g.Provider,{value:p,children:v})},"Provider");u.displayName=i+"Provider";function h(f,d,v={}){const{optional:m=!1}=v,g=d?.[e]?.[l]||c,p=a.useContext(g);if(p)return p;if(s!==void 0)return s;if(!m)throw new Error(`\`${f}\` must be used within \`${i}\``)}return ce(h,"useContext"),[u,h]}ce(o,"createContext");const r=ce(()=>{const i=n.map(s=>a.createContext(s));return ce(function(c){const l=c?.[e]||i;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])},"useScope")},"createScope");return r.scopeName=e,[o,No(r,...t)]}ce(ve,"createContextScope");function No(...e){const t=e[0];if(e.length===1)return t;const n=ce(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return ce(function(i){const s=o.reduce((c,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}ce(No,"composeContextScopes");var vi=Object.defineProperty,nt=(e,t)=>vi(e,"name",{value:t,configurable:!0}),Lo=!!(typeof window<"u"&&window.document&&window.document.createElement);function L(e,t,{checkForDefaultPrevented:n=!0}={}){return nt(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}nt(L,"composeEventHandlers");function gi(e){if(!Lo)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}nt(gi,"getOwnerWindow");function an(e){if(!Lo)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}nt(an,"getOwnerDocument");function Fo(e,t=!1){const{activeElement:n}=an(e);if(!n?.nodeName)return null;if(jo(n)&&n.contentDocument)return Fo(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=an(n).getElementById(o);if(r)return r}}return n}nt(Fo,"getActiveElement");function jo(e){return e.tagName==="IFRAME"}nt(jo,"isFrame");var G=globalThis?.document?a.useLayoutEffect:()=>{},bi=Object.defineProperty,wi=(e,t)=>bi(e,"name",{value:t,configurable:!0}),no=tt[" useEffectEvent ".trim().toString()],oo=tt[" useInsertionEffect ".trim().toString()];function $o(e){if(typeof no=="function")return no(e);const t=a.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof oo=="function"?oo(()=>{t.current=e}):G(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}wi($o,"useEffectEvent");var yi=Object.defineProperty,ft=(e,t)=>yi(e,"name",{value:t,configurable:!0}),xi=tt[" useInsertionEffect ".trim().toString()]||G;function De({prop:e,defaultProp:t,onChange:n=ft(()=>{},"onChange"),caller:o}){const[r,i,s]=Bo({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r,u=a.useCallback(h=>{if(c){const f=Vo(h)?h(e):h;f!==e&&s.current?.(f)}else i(h)},[c,e,i,s]);return[l,u]}ft(De,"useControllableState");function Bo({defaultProp:e,onChange:t}
1){const[n,o]=a.useState(e),r=a.useRef(n),i=a.useRef(t);return xi(()=>{i.current=t},[t]),a.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}ft(Bo,"useUncontrolledState");function Vo(e){return typeof e=="function"}ft(Vo,"isFunction");var ro=Symbol("RADIX:SYNC_STATE");function Si(e,t,n,o){const{prop:r,defaultProp:i,onChange:s,caller:c}=t,l=r!==void 0,u=$o(s),h=[{...n,state:i}];o&&h.push(o);const[f,d]=a.useReducer((p,y)=>{if(y.type===ro)return{...p,state:y.state};const x=e(p,y);return l&&!Object.is(x.state,p.state)&&u(x.state),x},...h),v=f.state,m=a.useRef(v);a.useEffect(()=>{m.current!==v&&(m.current=v,l||u(v))},[v,m,l]);const g=a.useMemo(()=>r!==void 0?{...f,state:r}:f,[f,r]);return a.useEffect(()=>{l&&!Object.is(r,f.state)&&d({type:ro,state:r})},[r,f.state,l]),[g,d]}ft(Si,"useControllableStateReducer");var Ci=Object.defineProperty,Ei=(e,t)=>Ci(e,"name",{value:t,configurable:!0});function _t(e){const[t,n]=a.useState(void 0);return G(()=>{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 s,c;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,c=u.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}Ei(_t,"useSize");var Ri=Object.defineProperty,Ee=(e,t)=>Ri(e,"name",{value:t,configurable:!0});function Wo(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}Ee(Wo,"useStateMachine");var ot=Ee(e=>{const{present:t,children:n}=e,o=Ho(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),i=Uo(o.ref,zo(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:i}):null},"Presence");function Ho(e){const[t,n]=a.useState(),o=a.useRef(null),r=a.useRef(e),i=a.useRef("none"),s=a.useRef(void 0),c=e?"mounted":"unmounted",[l,u]=Wo(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{l==="mounted"?(i.current=s.current??Ze(o.current),s.current=void 0):i.current="none"},[l]),G(()=>{const h=o.current,f=r.current;if(f!==e){const v=i.current,m=Ze(h);e?(s.current=m,u("MOUNT")):m==="none"||h?.display==="none"?u("UNMOUNT"):u(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),G(()=>{if(t){let h;const f=t.ownerDocument.defaultView??window,d=Ee(m=>{const p=Ze(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(u("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",h=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),v=Ee(m=>{m.target===t&&(i.current=Ze(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(h=>{if(h){const f=getComputedStyle(h);o.current=f,s.current=Ze(f)}else o.current=null;n(h)},[])}}Ee(Ho,"usePresence");function ln(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ee(ln,"setRef");function Uo(...e){const t=a.useRef(e);return t.current=e,a.useCallback(n=>{const o=t.current;let r=!1;const i=o.map(s=>{const c=ln(s,n);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():ln(o[s],null)}}},[])}Ee(Uo,"useStableComposedRefs");function Ze(e){return e?.animationName||"none"}Ee(Ze,"getAnimationName");function zo(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)}Ee(zo,"getElementRef");var Pi=Object.defineProperty,Ii=(e,t)=>Pi(e,"name",{value:t,configurable:!0}),Oi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=Oi.reduce((e,t)=>
1{const n=Ce(`Primitive.${t}`),o=a.forwardRef((r,i)=>{const{asChild:s,...c}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...c,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ko(e,t){e&&ut.flushSync(()=>e.dispatchEvent(t))}Ii(Ko,"dispatchDiscreteCustomEvent");var _i=Object.defineProperty,Re=(e,t)=>_i(e,"name",{value:t,configurable:!0}),En="Checkbox",[Ti,_l]=ve(En),[Ai,Rn]=Ti(En);function Go(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:i,form:s,name:c,onCheckedChange:l,required:u,value:h="on",internal_do_not_use_render:f}=e,[d,v]=De({prop:n,defaultProp:r??!1,onChange:l,caller:En}),[m,g]=a.useState(null),[p,y]=a.useState(null),x=a.useRef(!1),[b,w]=a.useReducer(R=>R+1,0),C=m?!!s||!!m.closest("form"):!0,E={checked:d,disabled:i,setChecked:v,control:m,setControl:g,name:c,form:s,value:h,hasConsumerStoppedPropagationRef:x,userInteractionCount:b,onUserInteraction:w,required:u,defaultChecked:ye(r)?!1:r,isFormControl:C,bubbleInput:p,setBubbleInput:y};return S.jsx(Ai,{scope:t,...E,children:Yo(f)?f(E):o})}Re(Go,"CheckboxProvider");var Di="CheckboxTrigger",Mi=a.forwardRef(Re(function({__scopeCheckbox:t,onKeyDown:n,onClick:o,...r},i){const{control:s,value:c,disabled:l,checked:u,required:h,setControl:f,setChecked:d,hasConsumerStoppedPropagationRef:v,onUserInteraction:m,isFormControl:g,bubbleInput:p}=Rn(Di,t),y=V(i,f),x=a.useRef(u);return a.useEffect(()=>{const b=s?.form;if(b){const w=Re(()=>d(x.current),"reset");return b.addEventListener("reset",w),()=>b.removeEventListener("reset",w)}},[s,d]),S.jsx($.button,{type:"button",role:"checkbox","aria-checked":ye(u)?"mixed":u,"aria-required":h,"data-state":Pn(u),"data-disabled":l?"":void 0,disabled:l,value:c,...r,ref:y,onKeyDown:L(n,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:L(o,b=>{m(),d(w=>ye(w)?!0:!w),p&&g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})})},"CheckboxTrigger")),Tl=a.forwardRef(Re(function(t,n){const{__scopeCheckbox:o,name:r,checked:i,defaultChecked:s,required:c,disabled:l,value:u,onCheckedChange:h,form:f,...d}=t;return S.jsx(Go,{__scopeCheckbox:o,checked:i,defaultChecked:s,disabled:l,required:c,onCheckedChange:h,name:r,form:f,value:u,internal_do_not_use_render:({isFormControl:v})=>S.jsxs(S.Fragment,{children:[S.jsx(Mi,{...d,ref:n,__scopeCheckbox:o}),v&&S.jsx(Li,{__scopeCheckbox:o})]})})},"Checkbox")),ki="CheckboxIndicator",Al=a.forwardRef(Re(function(t,n){const{__scopeCheckbox:o,forceMount:r,...i}=t,s=Rn(ki,o);return S.jsx(ot,{present:r||ye(s.checked)||s.checked===!0,children:S.jsx($.span,{"data-state":Pn(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:n,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),Ni="CheckboxBubbleInput",Li=a.forwardRef(Re(function({__scopeCheckbox:t,onClick:n,...o},r){const{control:i,hasConsumerStoppedPropagationRef:s,userInteractionCount:c,checked:l,defaultChecked:u,required:h,disabled:f,name:d,value:v,form:m,bubbleInput:g,setBubbleInput:p}=Rn(Ni,t),y=V(r,p),x=_t(i),b=a.useRef(!1),w=a.useRef(l),C=a.useRef(c);a.useEffect(()=>{const R=g;if(!R)return;const O=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(O,"checked").set,A=c!==C.current;C.current=c;const I=w.current!==l;w.current=l;const T=!(A&&s.current);if(I&&_){b.current=!A;const D=new Event("click",{bubbles:T});R.indeterminate=ye(l),_.call(R,ye(l)?!1:l),R.dispatchEvent(D),b.current=!1}},[g,l,s,c]);const E=a.useRef(ye(l)?!1:l);return S.jsx($.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??E.current,required:h,disabled:f,name:d,value:v,form:m,...o,tabIndex:-1,ref:y,onClick:L(n,R=>{b.current&&R.stopPropagation()}),style:{...o.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function Yo(e){return typeof e=="function"}Re(Yo,"isFunction");function ye(e){return e==="indeterminate"}Re(ye,"isIndeterminate");function Pn(e){return ye(e)?"indeterminate":e?"checked":"unchecked"}Re(Pn,"getState");var Fi=Object.defineProperty,ji=(e,t)=>Fi(e,"name",{value:t,configurable:!0});function un(e,[t,n]){return Math.min(n,Math.max(t,e))}ji(un,"clamp");var $i=Object.defineProperty,Z=(e,t)=>$i(e,"name",{value:t,configurable:!0});function In(e){const t=e+"CollectionProvider",[n,o]=ve(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=Z(g=>{const{scope:p,children:y}=g,x=a.useRef(null),b=a.useRef(new Map).current;return S.jsx(r,{scope:p,itemMap:b,collectionRef:x,children:y})},"CollectionProvider");s.displayName=t;const c=e+"CollectionSlot",l=Ce(c),u=a.forwardRef((g,p)=>{const{scope:y,children:x}=g,b=i(c,y),w=V(p,b.collectionRef);return S.jsx(l,{ref:w,children:x})});u.displayName=c;const h=e+"CollectionItemSlot",f="data-radix-collection-item",d=Ce(h),v=a.forwardRef((g,p)=>{const{scope:y,children:x,...b}=g,w=a.useRef(null),C=V(p,w),E=i(h,y);return a.useEffect(()=>(E.itemMap.set(w,{ref:w,...b}),()=>void E.itemMap.delete(w))),S.jsx(d,{[f]:"",ref:C,children:x})});v.displayName=h;function m(g){const p=i(e+"CollectionConsumer",g);return a.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((E,R)=>b.indexOf(E.ref.current)-b.indexOf(R.ref.current))},[p.collectionRef,p.itemMap])}return Z(m,"useCollection"),[{Provider:s,Slot:u,ItemSlot:v},m,o]}Z(In,"createCollection");var io=new WeakMap,X,re,Gt=(re=class extends Map{constructor(n){super(n);to(this,X);Kt(this,X,[...super.keys()]),io.set(this,!0)}set(n,o){return io.get(this)&&(this.has(n)?ee(this,X)[ee(this,X).indexOf(n)]=n:ee(this,X).push(n)),super.set(n,o),this}insert(n,o,r){const i=this.has(o),s=ee(this,X).length,c=On(n);let l=c>=0?c:s+c;const u=l<0||l>=s?-1:l;if(u===this.size||i&&u===this.size-1||u===-1)return this.set(o,r),this;const h=this.size+(i?0:1);c<0&&l++;const f=[...ee(this,X)];let d,v=!1;for(let m=l;m<h;m++)if(l===m){let g=f[m];f[m]===o&&(g=f[m+1]),i&&this.delete(o),d=this.get(g),this.set(o,r)}else{!v&&f[m-1]===o&&(v=!0);const g=f[v?m:m-1],p=d;d=this.get(g),this.delete(g),this.set(g,p)}return this}with(n,o,r){const i=new re(this);return i.insert(n,o,r),i}before(n){const o=ee(this,X).indexOf(n)-1;if(!(o<0))return this.entryAt(o)}setBefore(n,o,r){const i=ee(this,X).indexOf(n);return i===-1?this:this.insert(i,o,r)}after(n){let o=ee(this,X).indexOf(n);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(n,o,r){const i=ee(this,X).indexOf(n);return i===-1?this:this.insert(i+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Kt(this,X,[]),super.clear()}delete(n){const o=super.delete(n);return o&&ee(this,X).splice(ee(this,X).indexOf(n),1),o}deleteAt(n){const o=this.keyAt(n);return o!==void 0?this.delete(o):!1}at(n){const o=xt(ee(this,X),n);if(o!==void 0)return this.get(o)}entryAt(n){const o=xt(ee(this,X),n);if(o!==void 0)return[o,this.get(o)]}indexOf(n){return ee(this,X).indexOf(n)}keyAt(n){return xt(ee(this,X),n)}from(n,o){const r=this.indexOf(n);if(r===-1)return;let i=r+o;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(n,o){const r=this.indexOf(n);if(r===-1)return;let i=r+o;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(n,o){let r=0;for(const i of this){if(Reflect.apply(n,o,[i,r,this]))return i;r++}}findIndex(n,o){let r=0;for(const i of this){if(Reflect.apply(n,o,[i,r,this]))return r;r++}return-1}filter(n,o){const r=[];let i=0;for(const s of this)Reflect.apply(n,o,[s,i,this])&&r.push(s),i++;return new re(r)}map(n,o){const r=[];let i=0;for(const s of this)r.push([s[0],Reflect.apply(n,o,[s,i,this])]),i++;return new re(r)}reduce(...n){const[o,r]=n;let i=0,s=r??this.at(0);for(const c of this)i===0&&n.length===1?s=c:s=Reflect.apply(o,this,[s,c,i,this]),i++;return s}reduceRight(...n){const[o,r]=n;let i=r??this.at(-1);for(let s=this.size-1;s>=0;s--){const c=this.at(s);s===this.size-1&&n.length===1?i=c:i=Reflect.apply(o,this,[i,c,s,this])}return i}toSorted(n){const o=[...this.entries()].sort(n);return new re(o)}toReversed(){const n=new re;for(let o=this.size-1;o>=0;o--){const r=this.keyAt(o),i=this.get(r);n.set(r,i)}return n}toSpliced(...n){const o=[...this.entries()];return o.splice(...n),new re(o)}slice(n,o){const r=new re;let i=this.size-1;if(n===void 0)return r;n<0&&(n=n+this.size),o!==void 0&&o>0&&(i=o-1);for(let s=n;s<=i;s++){const c=this.keyAt(s),l=this.get(c);r.set(c,l)}return r}every(n,o){let r=0;for(const i of this){if(!Reflect.apply(n,o,[i,r,this]))return!1;r++}return!0}some(n,o){let r=0;for(const i of this){if(Reflect.apply(n,o,[i,r,this]))return!0;r++}return!1}},X=new WeakMap,Z(re,"OrderedDict"),re);function xt(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=Xo(e,t);return n===-1?void 0:e[n]}Z(xt,"at");function Xo(e,t){const n=e.length,o=On(t),r=o>=0?o:n+o;return r<0||r>=n?-1:r}Z(Xo,"toSafeIndex");function On(e){return e!==e||e===0?0:Math.trunc(e)}Z(On,"toSafeInteger");function Bi(e){const t=e+"CollectionProvider",[n,o]=ve(t),[r,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Gt,setItemMap:Z(()=>{},"setItemMap")}),s=Z(({state:b,...w})=>b?S.jsx(l,{...w,state:b}):S.jsx(c,{...w}),"CollectionProvider");s.displayName=t;const c=Z(b=>{const w=p();return S.jsx(l,{...b,state:w})},"CollectionInit");c.displayName=t+"Init";const l=Z(b=>{const{scope:w,children:C,state:E}=b,R=a.useRef(null),[O,P]=a.useState(null),_=V(R,P),[A,I]=E;return a.useEffect(()=>{if(!O)return;const T=Qo(()=>{});return T.observe(O,{childList:!0,subtree:!0}),()=>{T.disconnect()}},[O]),S.jsx(r,{scope:w,itemMap:A,setItemMap:I,collectionRef:_,collectionRefObject:R,collectionElement:O,children:C})},"CollectionProviderImpl");l.displayName=t+"Impl";const u=e+"CollectionSlot",h=Ce(u),f=a.forwardRef((b,w)=>{const{scope:C,children:E}=b,R=i(u,C),O=V(w,R.collectionRef);return S.jsx(h,{ref:O,children:E})});f.displayName=u;const d=e+"CollectionItemSlot",v="data-radix-collection-item",m=Ce(d),g=a.forwardRef((b,w)=>{const{scope:C,children:E,...R}=b,O=a.useRef(null),[P,_]=a.useState(null),A=V(w,O,_),I=i(d,C),{setItemMap:T}=I,D=a.useRef(R);qo(D.current,R)||(D.current=R);const W=D.current;return a.useEffect(()=>{const F=W;return T(M=>P?M.has(P)?M.set(P,{...F,element:P}).toSorted(fn):(M.set(P,{...F,element:P}),M.toSorted(fn)):M),()=>{T(M=>
1!P||!M.has(P)?M:(M.delete(P),new Gt(M)))}},[P,W,T]),S.jsx(m,{[v]:"",ref:A,children:E})});g.displayName=d;function p(){return a.useState(new Gt)}Z(p,"useInitCollection");function y(b){const{itemMap:w}=i(e+"CollectionConsumer",b);return w}return Z(y,"useCollection"),[{Provider:s,Slot:f,ItemSlot:g},{createCollectionScope:o,useCollection:y,useInitCollection:p}]}Z(Bi,"createCollection");function qo(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Z(qo,"shallowEqual");function Zo(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Z(Zo,"isElementPreceding");function fn(e,t){return!e[1].element||!t[1].element?0:Zo(e[1].element,t[1].element)?-1:1}Z(fn,"sortByDocumentPosition");function Qo(e){return new MutationObserver(n=>{for(const o of n)if(o.type==="childList"){e();return}})}Z(Qo,"getChildListObserver");var Vi=Object.defineProperty,Wi=(e,t)=>Vi(e,"name",{value:t,configurable:!0}),Hi=a.createContext(void 0);function Tt(e){const t=a.useContext(Hi);return e||t||"ltr"}Wi(Tt,"useDirection");var Ui=Object.defineProperty,zi=(e,t)=>Ui(e,"name",{value:t,configurable:!0});function le(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}zi(le,"useCallbackRef");var Ki=Object.defineProperty,q=(e,t)=>Ki(e,"name",{value:t,configurable:!0}),dn="dismissableLayer.update",Gi="dismissableLayer.pointerDownOutside",Yi="dismissableLayer.focusOutside",so,Jo=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),er=a.forwardRef(q(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,onDismiss:u,...h}=t,f=a.useContext(Jo),[d,v]=a.useState(null),m=d?.ownerDocument??globalThis?.document,[,g]=a.useState({}),p=V(n,v),y=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=x?y.indexOf(x):-1,w=d?y.indexOf(d):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,R=a.useRef(!1),O=nr(I=>{s?.(I),l?.(I),I.defaultPrevented||u?.()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(I=>{if(!(I instanceof Node))return!1;const T=[...f.branches].some(D=>D.contains(I));return E&&!T},[f.branches,E])}),P=or(I=>{if(r&&R.current)return;const T=I.target;[...f.branches].some(W=>W.contains(T))||(c?.(I),l?.(I),I.defaultPrevented||u?.())},m),_=d?w===y.length-1:!1,A=le(I=>{I.key==="Escape"&&(i?.(I),!I.defaultPrevented&&u&&(I.preventDefault(),u()))});return a.useEffect(()=>{if(_)return m.addEventListener("keydown",A,{capture:!0}),()=>m.removeEventListener("keydown",A,{capture:!0})},[m,_,A]),a.useEffect(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(so=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),pn(),()=>{o&&(f.layersWithOutsidePointerEventsDisabled.delete(d),f.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=so))}},[d,m,o,f]),a.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),pn())},[d,f]),a.useEffect(()=>{const I=q(()=>g({}),"handleUpdate");return document.addEventListener(dn,I),()=>document.removeEventListener(dn,I)},[]),S.jsx($.div,{...h,ref:p,style:{pointerEvents:C?E?"auto":"none":void 0,...t.style},onFocusCapture:L(t.onFocusCapture,P.onFocusCapture),onBlurCapture:L(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:L(t.onPointerDownCapture,O.onPointerDownCapture)})},"DismissableLayer"));function tr(){const e=a.useContext(Jo),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}q(tr,"useDismissableLayerSurface");var Xi=q(()=>!0,"IS_TRUE");function nr(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=Xi}=t,c=le(e),l=a.useRef(!1),u=a.useRef(!1),h=a.useRef(new Map),f=a.useRef(()=>{});return a.useEffect(()=>{function d(){u.current=!1,r.current=!1,h.current.clear()}q(d,"resetOutsideInteraction");function v(){return Array.from(h.current.values()).some(Boolean)}q(v,"isOutsideInteractionIntercepted");function m(b){if(!u.current)return;const w=b.target;w instanceof Node&&[...i].some(E=>E.contains(w))||h.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}q(m,"handleInteractionCapture");function g(b){u.current&&h.current.set(b.type,!1)}q(g,"handleInteractionBubble");const p=q(b=>{if(b.target&&!l.current){let w=function(){n.removeEventListener("click",f.current);const E=v();d(),E||_n(Gi,c,C,{discrete:!0})};if(q(w,"handleAndDispatchPointerDownOutsideEvent"),!s(b.target)){n.removeEventListener("click",f.current),d(),l.current=!1;return}const C={originalEvent:b};u.current=!0,r.current=o&&b.button===0,h.current.clear(),!o||b.button!==0?w():(n.removeEventListener("click",f.current),f.current=w,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),d();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,m,!0),n.addEventListener(b,g);const x=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{window.clearTimeout(x),n.removeEventListener("pointerdown",p),n.removeEventListener("click",f.current);for(const b of y)n.removeEventListener(b,m,!0),n.removeEventListener(b,g)}},[n,c,o,r,i,s]),{onPointerDownCapture:q(()=>l.current=!0,"onPointerDownCapture")}}q(nr,"usePointerDownOutside");function or(e,t=globalThis?.document){const n=le(e),o=a.useRef(!1);return a.useEffect(()=>{const r=q(i=>
vendor: 2,816 bytes, line 1
1{i.target&&!o.current&&_n(Yi,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:q(()=>o.current=!0,"onFocusCapture"),onBlurCapture:q(()=>o.current=!1,"onBlurCapture")}}q(or,"useFocusOutside");function pn(){const e=new CustomEvent(dn);document.dispatchEvent(e)}q(pn,"dispatchUpdate");function _n(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?Ko(r,i):r.dispatchEvent(i)}q(_n,"handleAndDispatchCustomEvent");var qi=Object.defineProperty,Tn=(e,t)=>qi(e,"name",{value:t,configurable:!0}),ht=0,Ge=null;function Zi(e){return At(),e.children}Tn(Zi,"FocusGuards");function At(){a.useEffect(()=>{Ge||(Ge={start:hn(),end:hn()});const{start:e,end:t}=Ge;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ht++,()=>{ht===1&&(Ge?.start.remove(),Ge?.end.remove(),Ge=null),ht=Math.max(0,ht-1)}},[])}Tn(At,"useFocusGuards");function hn(){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}Tn(hn,"createFocusGuard");var Qi=Object.defineProperty,te=(e,t)=>Qi(e,"name",{value:t,configurable:!0}),Yt="focusScope.autoFocusOnMount",Xt="focusScope.autoFocusOnUnmount",co={bubbles:!1,cancelable:!0},rr=a.forwardRef(te(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...c}=t,[l,u]=a.useState(null),h=le(i),f=le(s),d=a.useRef(null),v=V(n,u),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let p=function(w){if(m.paused||!l)return;const C=w.target;l.contains(C)?d.current=C:we(d.current,{select:!0})},y=function(w){if(m.paused||!l)return;const C=w.relatedTarget;C!==null&&(l.contains(C)||we(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&we(l)};te(p,"handleFocusIn"),te(y,"handleFocusOut"),te(x,"handleMutations"),document.addEventListener("focusin",p),document.addEventListener("focusout",y);const b=new MutationObserver(x);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),b.disconnect()}}},[r,l,m.paused]),a.useEffect(()=>{if(l){ao.add(m);const p=document.activeElement;if(!l.contains(p)){const x=new CustomEvent(Yt,co);l.addEventListener(Yt,h),l.dispatchEvent(x),x.defaultPrevented||(ir(ur(An(l)),{select:!0}),document.activeElement===p&&we(l))}return()=>{l.removeEventListener(Yt,h),setTimeout(()=>
1{const x=new CustomEvent(Xt,co);l.addEventListener(Xt,f),l.dispatchEvent(x),x.defaultPrevented||we(p??document.body,{select:!0}),l.removeEventListener(Xt,f),ao.remove(m)},0)}}},[l,h,f,m]);const g=a.useCallback(p=>{if(!o&&!r||m.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(y&&x){const b=p.currentTarget,[w,C]=sr(b);w&&C?!p.shiftKey&&x===C?(p.preventDefault(),o&&we(w,{select:!0})):p.shiftKey&&x===w&&(p.preventDefault(),o&&we(C,{select:!0})):x===b&&p.preventDefault()}},[o,r,m.paused]);return S.jsx($.div,{tabIndex:-1,...c,ref:v,onKeyDown:g})},"FocusScope"));function ir(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(we(o,{select:t}),document.activeElement!==n)return}te(ir,"focusFirst");function sr(e){const t=An(e),n=mn(t,e),o=mn(t.reverse(),e);return[n,o]}te(sr,"getTabbableEdges");function An(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:te(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}te(An,"getTabbableCandidates");function mn(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):cr(o,{upTo:t})))return o}te(mn,"findVisible");function cr(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}te(cr,"isHidden");function ar(e){return e instanceof HTMLInputElement&&"select"in e}te(ar,"isSelectableInput");function we(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ar(e)&&t&&e.select()}}te(we,"focus");var ao=lr();function lr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=vn(e,t),e.unshift(t)},remove(t){e=vn(e,t),e[0]?.resume()}}}te(lr,"createFocusScopesStack");function vn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}te(vn,"arrayRemove");function ur(e){return e.filter(t=>t.tagName!=="A")}te(ur,"removeLinks");var Ji=Object.defineProperty,es=(e,t)=>Ji(e,"name",{value:t,configurable:!0}),ts=tt[" useId ".trim().toString()]||(()=>{}),ns=0;function Te(e){const[t,n]=a.useState(ts());return G(()=>{e||n(o=>o??String(ns++))},[e]),e||(t?`radix-${t}`:"")}es(Te,"useId");const os=["top","right","bottom","left"],Me=Math.min,xe=Math.max,Rt=Math.round,mt=Math.floor,Se=e=>({x:e,y:e}),rs={left:"right",right:"left",bottom:"top",top:"bottom"};function fr(e,t,n){return xe(e,Me(t,n))}function Pe(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function Dn(e){return e==="x"?"y":"x"}function Mn(e){return e==="y"?"height":"width"}function pe(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function kn(e){return Dn(pe(e))}function is(e,t,n){n===void 0&&(n=!1);const o=rt(e),r=kn(e),i=Mn(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Pt(s)),[s,Pt(s)]}function ss(e){const t=Pt(e);return[gn(e),t,gn(t)]}function gn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const lo=["left","right"],uo=["right","left"],cs=["top","bottom"],as=["bottom","top"];function ls(e,t,n){switch(e){case"top":case"bottom":return n?t?uo:lo:t?lo:uo;case"left":case"right":return t?cs:as;default:return[]}}function us(e,t,n,o){const r=rt(e);let i=ls(ke(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(gn)))),i}function Pt(e){const t=ke(e);return rs[t]+e.slice(t.length)}function fs(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function dr(e){return typeof e!="number"?fs(e):{top:e,right:e,bottom:e,left:e}}function It(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 fo(e,t,n){let{reference:o,floating:r}=e;const i=pe(t),s=kn(t),c=Mn(s),l=ke(t),u=i==="y",h=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[c]/2-r[c]/2;let v;switch(l){case"top":v={x:h,y:o.y-r.height};break;case"bottom":v={x:h,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:f};break;case"left":v={x:o.x-r.width,y:f};break;default:v={x:o.x,y:o.y}}const m=rt(t);return m&&(v[s]+=d*(m==="end"?1:-1)*(n&&u?-1:1)),v}async function ds(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:d=!1,padding:v=0}=Pe(t,e),m=dr(v),p=c[d?f==="floating"?"reference":"floating":f],y=It(await i.getClippingRect
vendor: 4,476 bytes, line 1
1({element:(n=await(i.isElement==null?void 0:i.isElement(p)))==null||n?p:p.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:l})),x=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),w=await(i.isElement==null?void 0:i.isElement(b))&&await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1},C=It(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(y.top-C.top+m.top)/w.y,bottom:(C.bottom-y.bottom+m.bottom)/w.y,left:(y.left-C.left+m.left)/w.x,right:(C.right-y.right+m.right)/w.x}}const ps=50,hs=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:ds},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:f}=fo(u,o,l),d=o,v=0;const m={};for(let g=0;g<i.length;g++){const p=i[g];if(!p)continue;const{name:y,fn:x}=p,{x:b,y:w,data:C,reset:E}=await x({x:h,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:u,platform:c,elements:{reference:e,floating:t}});h=b??h,f=w??f,m[y]={...m[y],...C},E&&v<ps&&(v++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:h,y:f}=fo(u,d,l)),g=-1)}return{x:h,y:f,placement:d,strategy:r,middlewareData:m}},ms=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:h=0}=Pe(e,t)||{};if(u==null)return{};const f=dr(h),d={x:n,y:o},v=kn(r),m=Mn(v),g=await s.getDimensions(u),p=v==="y",y=p?"top":"left",x=p?"bottom":"right",b=p?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[v]-d[v]-i.floating[m],C=d[v]-i.reference[v],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=E?E[b]:0;(!R||!await(s.isElement==null?void 0:s.isElement(E)))&&(R=c.floating[b]||i.floating[m]);const O=w/2-C/2,P=R/2-g[m]/2-1,_=Me(f[y],P),A=Me(f[x],P),I=R-g[m]-A,T=R/2-g[m]/2+O,D=fr(_,T,I),W=!l.arrow&&rt(r)!=null&&T!==D&&i.reference[m]/2-(T<_?_:A)-g[m]/2<0,F=W?T<_?T-_:T-I:0;return{[v]:d[v]+F,data:{[v]:D,centerOffset:T-D-F,...W&&{alignmentOffset:F}},reset:W}}}),vs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...p}=Pe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ke(r),x=pe(c),b=ke(c)===c,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(b||!g?[Pt(c)]:ss(c)),E=m!=="none";!d&&E&&C.push(...us(c,g,m,w));const R=[c,...C],O=await l.detectOverflow(t,p),P=[];let _=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&P.push(O[y]),f){const D=is(r,s,w);P.push(O[D[0]],O[D[1]])}if(_=[..._,{placement:r,overflows:P}],!P.every(D=>D<=0)){var A,I;const D=(((A=i.flip)==null?void 0:A.index)||0)+1,W=R[D];if(W&&(!(f==="alignment"?x!==pe(W):!1)||_.every(k=>pe(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:D,overflows:_},reset:{placement:W}};let F=(I=_.filter(M=>M.overflows[0]<=0).sort((M,k)=>M.overflows[1]-k.overflows[1])[0])==null?void 0:I.placement;if(!F)switch(v){case"bestFit":{var T;const M=(T=_.filter(k=>{if(E){const B=pe(k.placement);return B===x||B==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(B=>B>0).reduce((B,z)=>B+z,0)]).sort((k,B)=>k[1]-B[1])[0])==null?void 0:T[0];M&&(F=M);break}case"initialPlacement":F=c;break}if(r!==F)return{reset:{placement:F}}}return{}}}};function po(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ho(e){return os.some(t=>e[t]>=0)}const gs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=Pe(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),c=po(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:ho(c)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),c=po(s,n.floating);return{data:{escapedOffsets:c,escaped:ho(c)}}}default:return{}}}}}
vendor: 4,965 bytes, line 1
1,pr=new Set(["left","top"]);async function bs(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=ke(n),c=rt(n),l=pe(n)==="y",u=pr.has(s)?-1:1,h=i&&l?-1:1,f=Pe(t,e);let{mainAxis:d,crossAxis:v,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof m=="number"&&(v=c==="end"?m*-1:m),l?{x:v*h,y:d*u}:{x:d*u,y:v*h}}const ws=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,l=await bs(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},ys=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:b,y:w}=x;return{x:b,y:w}}},...u}=Pe(e,t),h={x:n,y:o},f=await i.detectOverflow(t,u),d=pe(r),v=Dn(d);let m=h[v],g=h[d];const p=(x,b)=>fr(b+f[x==="y"?"top":"left"],b,b-f[x==="y"?"bottom":"right"]);s&&(m=p(v,m)),c&&(g=p(d,g));const y=l.fn({...t,[v]:m,[d]:g});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[v]:s,[d]:c}}}}}},xs=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:c,middlewareData:l}=t,{offset:u=0,mainAxis:h=!0,crossAxis:f=!0}=Pe(e,t),d={x:r,y:i},v=pe(s),m=Dn(v);let g=d[m],p=d[v];const y=Pe(u,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(n=y.mainAxis)!=null?n:0,crossAxis:(o=y.crossAxis)!=null?o:0};if(h){const C=m==="y"?"height":"width",E=c.reference[m]-c.floating[C]+x.mainAxis,R=c.reference[m]+c.reference[C]-x.mainAxis;g<E?g=E:g>R&&(g=R)}if(f){var b,w;const C=m==="y"?"width":"height",E=pr.has(ke(s)),R=c.reference[v]-c.floating[C]+(E&&((b=l.offset)==null?void 0:b[v])||0)+(E?0:x.crossAxis),O=c.reference[v]+c.reference[C]+(E?0:((w=l.offset)==null?void 0:w[v])||0)-(E?x.crossAxis:0);p<R?p=R:p>O&&(p=O)}return{[m]:g,[v]:p}}}},Ss=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...c}=Pe(e,t),l=await r.detectOverflow(t,c),u=ke(n),h=rt(n),f=pe(n)==="y",{width:d,height:v}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,m=h==="end"?"top":"bottom");const p=v-l.top-l.bottom,y=d-l.left-l.right,x=Me(v-l[m],p),b=Me(d-l[g],y),w=t.middlewareData.shift,C=!w;let E=x,R=b;w!=null&&w.enabled.x&&(R=y),w!=null&&w.enabled.y&&(E=p),C&&!h&&(f?R=d-2*xe(l.left,l.right):E=v-2*xe(l.top,l.bottom)),await s({...t,availableWidth:R,availableHeight:E});const O=await r.getDimensions(i.floating);return d!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function Dt(){return typeof window<"u"}function it(e){return hr(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(hr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hr(e){return Dt()?e instanceof Node||e instanceof ne(e).Node:!1}function he(e){return Dt()?e instanceof Element||e instanceof ne(e).Element:!1}function Le(e){return Dt()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function mo(e){return!Dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}function Mt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Cs(e){return/^(table|td|th)$/.test(it(e))}function kt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Es=/transform|translate|scale|rotate|perspective|filter/,Rs=/paint|layout|strict|content/,$e=e=>!!e&&e!=="none";let qt;function Nn(e){const t=he(e)?me(e):e;return $e(t.transform)||$e(t.translate)||$e(t.scale)||$e(t.rotate)||$e(t.perspective)||!Ln()&&($e(t.backdropFilter)||$e(t.filter))||Es.test(t.willChange||"")||Rs.test(t.contain||"")}function Ps(e){let t=Be(e);for(;Le(t)&&!ct(t);){if(Nn(t))return t;if(kt(t))return null;t=Be(t)}return null}function Ln(){return qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qt}function ct(e){return/^(html|body|#document)$/.test(it(e))}function me(e){return ne(e).getComputedStyle(e)}function Nt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(it(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mo(e)&&e.host||Ie(e);return mo(t)?t.host:t}function mr(e){const t=Be(e);return ct(t)?(e.ownerDocument||e).body:Le(t)&&Mt(t)?t:mr(t)}function at(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=mr(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=ne(r);if(i){const c=bn(s);
vendor: 22,324 bytes, lines 1-16
1return t.concat(s,s.visualViewport||[],Mt(r)?r:[],c&&n?at(c):[])}else return t.concat(r,at(r,[],n))}function bn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vr(e){const t=me(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Le(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=Rt(n)!==i||Rt(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Fn(e){return he(e)?e:e.contextElement}function Qe(e){const t=Fn(e);if(!Le(t))return Se(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=vr(t);let s=(i?Rt(n.width):n.width)/o,c=(i?Rt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Is=Se(0);function gr(e){const t=ne(e);return!Ln()||!t.visualViewport?Is:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Os(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ne(e)}function Ve(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Fn(e);let s=Se(1);t&&(o?he(o)&&(s=Qe(o)):s=Qe(e));const c=Os(i,n,o)?gr(i):Se(0);let l=(r.left+c.x)/s.x,u=(r.top+c.y)/s.y,h=r.width/s.x,f=r.height/s.y;if(i&&o){const d=ne(i),v=he(o)?ne(o):o;let m=d,g=bn(m);for(;g&&v!==m;){const p=Qe(g),y=g.getBoundingClientRect(),x=me(g),b=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*p.x,w=y.top+(g.clientTop+parseFloat(x.paddingTop))*p.y;l*=p.x,u*=p.y,h*=p.x,f*=p.y,l+=b,u+=w,m=ne(g),g=bn(m)}}return It({width:h,height:f,x:l,y:u})}function Lt(e,t){const n=Nt(e).scrollLeft;return t?t.left+n:Ve(Ie(e)).left+n}function br(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Lt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function _s(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Ie(o),c=t?kt(t.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Se(1);const h=Se(0),f=Le(o);if((f||!i)&&((it(o)!=="body"||Mt(s))&&(l=Nt(o)),f)){const v=Ve(o);u=Qe(o),h.x=v.x+o.clientLeft,h.y=v.y+o.clientTop}const d=s&&!f&&!i?br(s,l):Se(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+h.x+d.x,y:n.y*u.y-l.scrollTop*u.y+h.y+d.y}}function Ts(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function As(e){const t=Nt(e),n=e.ownerDocument.body,o=xe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=xe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Lt(e);const s=-t.scrollTop;return me(n).direction==="rtl"&&(i+=xe(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Ds=25;function Ms(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=ne(e),i=Ie(e),s=r.visualViewport;let c=i.clientWidth,l=i.clientHeight,u=0,h=0;if(s){const d=!Ln()||t==="fixed";o?d||(u=-s.offsetLeft,h=-s.offsetTop):(c=s.width,l=s.height,d&&(u=s.offsetLeft,h=s.offsetTop))}if(Lt(i)<=0){const d=i.ownerDocument,v=d.body,m=getComputedStyle(v),g=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(i.clientWidth-v.clientWidth-g),y=getComputedStyle(i).scrollbarGutter==="stable both-edges"?p/2:p;y<=Ds&&(c-=y)}return{width:c,height:l,x:u,y:h}}function ks(e,t){const n=Ve(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Qe(e),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:s,height:c,x:l,y:u}}function vo(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Ms(e,n,t);else if(t==="document")o=As(Ie(e));else if(he(t))o=ks(t,n);else{const r=gr(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return It(o)}function Ns(e,t){const n=t.get(e);if(n)return n;let o=at(e,[],!1).filter(c=>he(c)&&it(c)!=="body"),r=null;const i=me(e).position==="fixed";let s=i?Be(e):e;for(;he(s)&&!ct(s);){const c=me(s),l=Nn(s),u=r?r.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&c.position==="static")?o=o.filter(f=>f!==s):r=c,s=Be(s)}return t.set(e,o),o}function Ls(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?kt(t)?[]:Ns(t,this._c):[].concat(n),o],c=vo(t,s[0],r);let l=c.top,u=c.right,h=c.bottom,f=c.left;for(let d=1;d<s.length;d++){const v=vo(t,s[d],r);l=xe(v.top,l),u=Me(v.right,u),h=Me(v.bottom,h),f=xe(v.left,f)}return{width:u-f,height:h-l,x:f,y:l}}function Fs(e){const{width:t,height:n}=vr(e);return{width:t,height:n}}function js(e,t,n){const o=Le(t),r=Ie(t),i=n==="fixed",s=Ve(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=Se(0);if((o||!i)&&((it(t)!=="body"||Mt(r))&&(c=Nt(t)),o)){const d=Ve(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Lt(r));const u=r&&!o&&!i?br(r,c):Se(0),h=s.left+c.scrollLeft-l.x-u.x,f=s.top+c.scrollTop-l.y-u.y;return{x:h,y:f,width:s.width,height:s.height}}function Zt(e){return me(e).position==="static"}function go(e,t){if(!Le(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ie(e)===n&&(n=n.ownerDocument.body),n}function wr(e,t){const n=ne(e);if(kt(e))return n;if(!Le(e)){let r=Be(e);for(;r&&!ct(r);){if(he(r)&&!Zt(r))return r;r=Be(r)}return n}let o=go(e,t);for(;o&&Cs(o)&&Zt(o);)o=go(o,t);return o&&ct(o)&&Zt(o)&&!Nn(o)?n:o||Ps(e)||n}const $s=async function(e){const t=this.getOffsetParent||wr,n=this.getDimensions,o=await n(e.floating);return{reference:js(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Bs(e){return me(e).direction==="rtl"}const Vs={convertOffsetParentRelativeRectToViewportRelativeRect:_s,getDocumentElement:Ie,getClippingRect:Ls,getOffsetParent:wr,getElementRects:$s,getClientRects:Ts,getDimensions:Fs,getScale:Qe,isElement:he,isRTL:Bs};function yr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ws(e,t,n){let o=null,r;const i=Ie(e);function s(){var h;clearTimeout(r),(h=o)==null||h.disconnect(),o=null}function c(h,f){h===void 0&&(h=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:v,top:m,width:g,height:p}=d;if(h||t(),!g||!p)return;const y=mt(m),x=mt(i.clientWidth-(v+g)),b=mt(i.clientHeight-(m+p)),w=mt(v),E={rootMargin:-y+"px "+-x+"px "+-b+"px "+-w+"px",threshold:xe(0,Me(1,f))||1};let R=!0;function O(P){const _=P[0].intersectionRatio;if(!yr(d,e.getBoundingClientRect()))return c();if(_!==f){if(!R)return c();_?c(!1,_):r=setTimeout(()=>{c(!1,1e-7)},1e3)}R=!1}try{o=new IntersectionObserver(O,{...E,root:i.ownerDocument})}catch{o=new IntersectionObserver(O,E)}o.observe(e)}const l=ne(e),u=()=>c(n);return l.addEventListener("resize",u),c(!0),()=>{l.removeEventListener("resize",u),s()}}function Hs(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Fn(e),h=r||i?[...u?at(u):[],...t?at(t):[]]:[];h.forEach(y=>{r&&y.addEventListener("scroll",n),i&&y.addEventListener("resize",n)});const f=u&&c?Ws(u,n,i):null;let d=-1,v=null;s&&(v=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&v&&t&&(v.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),u&&!l&&v.observe(u),t&&v.observe(t));let m,g=l?Ve(e):null;l&&p();function p(){const y=Ve(e);g&&!yr(g,y)&&n(),g=y,m=requestAnimationFrame(p)}return n(),()=>{var y;h.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f?.(),(y=v)==null||y.disconnect(),v=null,l&&cancelAnimationFrame(m)}}const Us=ws,zs=ys,Ks=vs,Gs=Ss,Ys=gs,bo=ms,Xs=xs,qs=(e,t,n)=>{const o=new Map,r=n??{},i={...Vs,...r.platform,_c:o};return hs(e,t,{...r,platform:i})};var Zs=typeof document<"u",Qs=function(){},St=Zs?a.useLayoutEffect:Qs;function Ot(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(!Ot(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)&&!Ot(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wo(e,t){const n=xr(e);return Math.round(t*n)/n}function Qt(e){const t=a.useRef(e);return St(()=>{t.current=e}),t}function Js(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[h,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=a.useState(o);Ot(d,o)||v(o);const[m,g]=a.useState(null),[p,y]=a.useState(null),x=a.useCallback(k=>{k!==E.current&&(E.current=k,g(k))},[]),b=a.useCallback(k=>{k!==R.current&&(R.current=k,y(k))},[]),w=i||m,C=s||p,E=a.useRef(null),R=a.useRef(null),O=a.useRef(h),P=l!=null,_=Qt(l),A=Qt(r),I=Qt(u),T=a.useCallback(()=>{if(!E.current||!R.current)return;const k={placement:t,strategy:n,middleware:d};A.current&&(k.platform=A.current),qs(E.current,R.current,k).then(B=>{const z={...B,isPositioned:I.current!==!1};D.current&&!Ot(O.current,z)&&(O.current=z,ut.flushSync(()=>{f(z)}))})},[d,t,n,A,I]);St(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const D=a.useRef(!1);St(()=>(D.current=!0,()=>{D.current=!1}),[]),St(()=>{if(w&&(E.current=w),C&&(R.current=C),w&&C){if(_.current)return _.current(w,C,T);T()}},[w,C,T,_,P]);const W=a.useMemo(()=>({reference:E,floating:R,setReference:x,setFloating:b}),[x,b]),F=a.useMemo(()=>({reference:w,floating:C}),[w,C]),M=a.useMemo(()=>{const k={position:n,left:0,top:0};if(!F.floating)return k;const B=wo(F.floating,h.x),z=wo(F.floating,h.y);return c?{...k,transform:"translate("+B+"px, "+z+"px)",...xr(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:z}},[n,c,F.floating,h.x,h.y]);return a.useMemo(()=>({...h,update:T,refs:W,elements:F,floatingStyles:M}),[h,T,W,F,M])}const ec=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?bo({element:o.current,padding:r}).fn(n):{}:o?bo({element:o,padding:r}).fn(n):{}}}},tc=(e,t)=>{const n=Us(e);return{name:n.name,fn:n.fn,options:[e,t]}},nc=(e,t)=>{const n=zs(e);return{name:n.name,fn:n.fn,options:[e,t]}},oc=(e,t)=>({fn:Xs(e).fn,options:[e,t]}),rc=(e,t)=>{const n=Ks(e);return{name:n.name,fn:n.fn,options:[e,t]}},ic=(e,t)=>{const n=Gs(e);return{name:n.name,fn:n.fn,options:[e,t]}},sc=(e,t)=>{const n=Ys(e);return{name:n.name,fn:n.fn,options:[e,t]}},cc=(e,t)=>{const n=ec(e);return{name:n.name,fn:n.fn,options:[e,t]}};var ac=Object.defineProperty,Ae=(e,t)=>ac(e,"name",{value:t,configurable:!0}),Sr="Popper",[Cr,Er]=ve(Sr),[lc,Rr]=Cr(Sr),uc=Ae(e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null),[i,s]=a.useState(void 0);return S.jsx(lc,{scope:t,anchor:o,onAnchorChange:r,placementState:i,setPlacementState:s,children:n})},"Popper"),fc="PopperAnchor",dc=a.forwardRef(Ae(function(t,n){const{__scopePopper:o,virtualRef:r,...i}=t,s=Rr(fc,o),c=a.useRef(null),l=s.onAnchorChange,u=a.useCallback(g=>{c.current=g,g&&l(g)},[l]),h=V(n,u),f=a.useRef(null);a.useEffect(()=>{if(!r)return;const g=f.current;f.current=r.current,g!==f.current&&l(f.current)});const d=s.placementState&&Ft(s.placementState),v=d?.[0],m=d?.[1];return r?null:S.jsx($.div,{"data-radix-popper-side":v,"data-radix-popper-align":m,...i,ref:h})},"PopperAnchor")),Pr="PopperContent",[pc,Dl]=Cr(Pr),hc=a.forwardRef(Ae(function(t,n){const{__scopePopper:o,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:h=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:g,...p}=t,y=Rr(Pr,o),[x,b]=a.useState(null),w=V(n,b),[C,E]=a.useState(null),R=_t(C),O=R?.width??0,P=R?.height??0,_=r+(s!=="center"?"-"+s:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(h)?h:[h],T=I.length>0,D={padding:A,boundary:I.filter(Ir),altBoundary:T},{refs:W,floatingStyles:F,placement:M,isPositioned:k,middlewareData:B}=Js({strategy:"fixed",placement:_,whileElementsMounted:Ae((...K)=>Hs(...K,{animationFrame:m==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[tc({mainAxis:i+P,alignmentAxis:c}),u&&nc({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?oc():void 0,...D}),u&&rc({...D}),ic({...D,apply:Ae(({elements:K,rects:J,availableWidth:H,availableHeight:U})=>{const{width:Y,height:be}=J.reference,se=K.floating.style;se.setProperty("--radix-popper-available-width",`${H}px`),se.setProperty("--radix-popper-available-height",`${U}px`),se.setProperty("--radix-popper-anchor-width",`${Y}px`),se.setProperty("--radix-popper-anchor-height",`${be}px`)},"apply")}),C&&cc({element:C,padding:l}),mc({arrowWidth:O,arrowHeight:P}),v&&sc({strategy:"referenceHidden",...D,boundary:T?D.boundary:void 0})]}),z=y.setPlacementState;G(()=>(z(M),()=>{z(void 0)}),[M,z]);const[ge,Q]=Ft(M),oe=le(g);G(()=>{k&&oe?.()},[k,oe]);const Oe=B.arrow?.x,_e=B.arrow?.y,Ke=B.arrow?.centerOffset!==0,[je,N]=a.useState();return G(()=>{x&&N(window.getComputedStyle(x).zIndex)},[x]),S.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:k?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:je,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:S.jsx(pc,{scope:o,placedSide:ge,placedAlign:Q,onArrowChange:E,arrowX:Oe,arrowY:_e,shouldHideArrow:Ke,children:S.jsx($.div,{"data-side":ge,"data-align":Q,...p,ref:w,style:{...p.style,animation:k?p.style?.animation:"none"}})})})},"PopperContent"));function Ir(e){return e!==null}Ae(Ir,"isNotNull");var mc=Ae(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,h]=Ft(n),f={start:"0%",center:"50%",end:"100%"}[h],d=(r.arrow?.x??0)+c/2,v=(r.arrow?.y??0)+l/2;let m="",g="";return u==="bottom"?(m=s?f:`${d}px`,g=`${-l}px`):u==="top"?(m=s?f:`${d}px`,g=`${o.floating.height+l}px`):u==="right"?(m=`${-l}px`,g=s?f:`${v}px`):u==="left"&&(m=`${o.floating.width+l}px`,g=s?f:`${v}px`),{data:{x:m,y:g}}}}),"transformOrigin");function Ft(e){const[t,n="center"]=e.split("-");return[t,n]}Ae(Ft,"getSideAndAlignFromPlacement");var vc=uc,gc=dc,bc=hc,wc=Object.defineProperty,yc=(e,t)=>wc(e,"name",{value:t,configurable:!0}),Or=a.forwardRef(yc(function(t,n){const{container:o,...r}=t,[i,s]=a.useState(!1);G(()=>s(!0),[]);const c=o||i&&globalThis?.document?.body;return c?ut.createPortal(S.jsx($.div,{...r,ref:n}),c):null},"Portal")),xc=Object.defineProperty,Sc=(e,t)=>xc(e,"name",{value:t,configurable:!0});function _r(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])}Sc(_r,"usePrevious");var Cc=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"}),Ec=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ye=new WeakMap,vt=new WeakMap,gt={},Jt=0,Tr=function(e){return e&&(e.host||Tr(e.parentNode))},Rc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Tr(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})},Pc=function(e,t,n,o){var r=Rc(t,Array.isArray(e)?e:[e]);gt[n]||(gt[n]=new WeakMap);var i=gt[n],s=[],c=new Set,l=new Set(r),u=function(f){!f||c.has(f)||(c.add(f),u(f.parentNode))};r.forEach(u);var h=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(c.has(d))h(d);else try{var v=d.getAttribute(o),m=v!==null&&v!=="false",g=(Ye.get(d)||0)+1,p=(i.get(d)||0)+1;Ye.set(d,g),i.set(d,p),s.push(d),g===1&&m&&vt.set(d,!0),p===1&&d.setAttribute(n,"true"),m||d.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return h(t),c.clear(),Jt++,function(){s.forEach(function(f){var d=Ye.get(f)-1,v=i.get(f)-1;Ye.set(f,d),i.set(f,v),d||(vt.has(f)||f.removeAttribute(o),vt.delete(f)),v||f.removeAttribute(n)}),Jt--,Jt||(Ye=new WeakMap,Ye=new WeakMap,vt=new WeakMap,gt={})}},Ar=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Ec(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Pc(o,r,n,"aria-hidden")):function(){return null}},de=function(){return de=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},de.apply(this,arguments)};function Dr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Ic(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 Ct="right-scroll-bar-position",Et="width-before-scroll-bar",Oc="with-scroll-bars-hidden",_c="--removed-body-scroll-bar-size";function en(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Tc(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 Ac=typeof window<"u"?a.useLayoutEffect:a.useEffect,yo=new WeakMap;function Dc(e,t){var n=Tc(null,function(o){return e.forEach(function(r){return en(r,o)})});return Ac(function(){var o=yo.get(n);if(o){var r=new Set(o),i=new Set(e),s=n.current;r.forEach(function(c){i.has(c)||en(c,null)}),i.forEach(function(c){r.has(c)||en(c,s)})}yo.set(n,e)},[e]),n}function Mc(e){return e}function kc(e,t){t===void 0&&(t=Mc);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 s=t(i,o);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(o=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){o=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var l=function(){var h=s;s=[],h.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(h){s.push(h),u()},filter:function(h){return s=s.filter(h),n}}}};return r}function Nc(e){e===void 0&&(e={});var t=kc(null);return t.options=de({async:!0,ssr:!1},e),t}var Mr=function(e){var t=e.sideCar,n=Dr(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,de({},n))};Mr.isSideCarExport=!0;function Lc(e,t){return e.useMedium(t),Mr}var kr=Nc(),tn=function(){},jt=a.forwardRef(function(e,t){var n=a.useRef(null),o=a.useState({onScrollCapture:tn,onWheelCapture:tn,onTouchMoveCapture:tn}),r=o[0],i=o[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,h=e.enabled,f=e.shards,d=e.sideCar,v=e.noRelative,m=e.noIsolation,g=e.inert,p=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,b=e.gapMode,w=Dr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,E=Dc([n,t]),R=de(de({},w),r);return a.createElement(a.Fragment,null,h&&a.createElement(C,{sideCar:kr,removeScrollBar:u,shards:f,noRelative:v,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:b}),s?a.cloneElement(a.Children.only(c),de(de({},R),{ref:E})):a.createElement(x,de({},R,{className:l,ref:E}),c))});jt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jt.classNames={fullWidth:Et,zeroRight:Ct};var Fc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fc();return t&&e.setAttribute("nonce",t),e}function $c(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Bc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jc())&&($c(t,n),Bc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wc=function(){var e=Vc();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Nr=function(){var e=Wc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Hc={left:0,top:0,right:0,gap:0},nn=function(e){return parseInt(e||"",10)||0},Uc=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[nn(n),nn(o),nn(r)]},zc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hc;var t=Uc(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])}},Kc=Nr(),Je="data-scroll-locked",Gc=function(e,t,n,o){var r=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Oc,` { 3 overflow: hidden `).concat(o,`; 4 padding-right: `).concat(c,"px ").concat(o,`; 5 } 6 body[`).concat(Je,`] { 7 overflow: hidden `).concat(o,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 10 padding-left: `.concat(r,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(c,"px ").concat(o,`; 16 `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(Ct,` { 20 right: `).concat(c,"px ").concat(o,`; 21 } 22 23 .`).concat(Et,` { 24 margin-right: `).concat(c,"px ").concat(o,`; 25 } 26 27 .`).concat(Ct," .").concat(Ct,` { 28 right: 0 `).concat(o,`; 29 } 30 31 .`).concat(Et," .").concat(Et,` { 32 margin-right: 0 `).concat(o,`; 33 } 34 35 body[`).concat(Je,`] { 36 `).concat(_c,": ").concat(c,`px; 37 } 38`)},xo=function(){var e=parseInt(document.body.getAttribute(Je)||"0",10);return isFinite(e)?e:0},Yc=function(){a.useEffect(function(){return document.body.setAttribute(Je,(xo()+1).toString()),function(){var e=xo()-1;e<=0?document.body.removeAttribute(Je):document.body.setAttribute(Je,e.toString())}},[])},Xc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Yc();var i=a.useMemo(function(){return zc(r)},[r]);return a.createElement(Kc,{styles:Gc(i,!t,r,n?"":"!important")})},wn=!1;if(typeof window<"u")try{var bt=Object.defineProperty({},"passive",{get:function(){return wn=!0,!0}});window.addEventListener("test",bt,bt),window.removeEventListener("test",bt,bt)}catch{wn=!1}var Xe=wn?{passive:!1}:!1,qc=function(e){return e.tagName==="TEXTAREA"},Lr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qc(e)&&n[t]==="visible")},Zc=function(e){return Lr(e,"overflowY")},Qc=function(e){return Lr(e,"overflowX")},So=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Fr(e,o);if(r){var i=jr(e,o),s=i[1],c=i[2];if(s>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Jc=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},ea=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Fr=function(e,t){return e==="v"?Zc(t):Qc(t)},jr=function(e,t){return e==="v"?Jc(t):ea(t)},ta=function(e,t){return e==="h"&&t==="rtl"?-1:1},na=function(e,t,n,o,r){var i=ta(e,window.getComputedStyle(t).direction),s=i*o,c=n.target,l=t.contains(c),u=!1,h=s>0,f=0,d=0;do{if(!c)break;var v=jr(e,c),m=v[0],g=v[1],p=v[2],y=g-p-i*m;(m||y)&&Fr(e,c)&&(f+=y,d+=m);var x=c.parentNode;c=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(h&&Math.abs(f)<1||!h&&Math.abs(d)<1)&&(u=!0),u},wt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Co=function(e){return[e.deltaX,e.deltaY]},Eo=function(e){return e&&"current"in e?e.current:e},oa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ra=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},ia=0,qe=[];function sa(e){var t=a.useRef([]),n=a.useRef([0,0]),o=a.useRef(),r=a.useState(ia++)[0],i=a.useState(Nr)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=Ic([e.lockRef.current],(e.shards||[]).map(Eo),!0).filter(Boolean);return g.forEach(function(p){return p.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(g,p){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var y=wt(g),x=n.current,b="deltaX"in g?g.deltaX:x[0]-y[0],w="deltaY"in g?g.deltaY:x[1]-y[1],C,E=g.target,R=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in g&&R==="h"&&E.type==="range")return!1;var O=window.getSelection(),P=O&&O.anchorNode,_=P?P===E||P.contains(E):!1;if(_)return!1;var A=So(R,E);if(!A)return!0;if(A?C=R:(C=R==="v"?"h":"v",A=So(R,E)),!A)return!1;if(!o.current&&"changedTouches"in g&&(b||w)&&(o.current=C),!C)return!0;var I=o.current||C;return na(I,p,g,I==="h"?b:w)},[]),l=a.useCallback(function(g){var p=g;if(!(!qe.length||qe[qe.length-1]!==i)){var y="deltaY"in p?Co(p):wt(p),x=t.current.filter(function(C){return C.name===p.type&&(C.target===p.target||p.target===C.shadowParent)&&oa(C.delta,y)})[0];if(x&&x.should){p.cancelable&&p.preventDefault();return}
vendor: 4,199 bytes, line 41
41if(!x){var b=(s.current.shards||[]).map(Eo).filter(Boolean).filter(function(C){return C.contains(p.target)}),w=b.length>0?c(p,b[0]):!s.current.noIsolation;w&&p.cancelable&&p.preventDefault()}}},[]),u=a.useCallback(function(g,p,y,x){var b={name:g,delta:p,target:y,should:x,shadowParent:ca(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),h=a.useCallback(function(g){n.current=wt(g),o.current=void 0},[]),f=a.useCallback(function(g){u(g.type,Co(g),g.target,c(g,e.lockRef.current))},[]),d=a.useCallback(function(g){u(g.type,wt(g),g.target,c(g,e.lockRef.current))},[]);a.useEffect(function(){return qe.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Xe),document.addEventListener("touchmove",l,Xe),document.addEventListener("touchstart",h,Xe),function(){qe=qe.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,Xe),document.removeEventListener("touchmove",l,Xe),document.removeEventListener("touchstart",h,Xe)}},[]);var v=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(i,{styles:ra(r)}):null,v?a.createElement(Xc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ca(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aa=Lc(kr,sa);var jn=a.forwardRef(function(e,t){return a.createElement(jt,de({},e,{ref:t,sideCar:aa}))});jn.classNames=jt.classNames;var la=Object.defineProperty,j=(e,t)=>la(e,"name",{value:t,configurable:!0}),ua=[" ","Enter","ArrowUp","ArrowDown"],fa=[" ","Enter"],et="Select",[$t,Bt,da]=In(et),[He,Ml]=ve(et,[da,Er]),$n=Er(),[pa,Fe]=He(et),[ha,ma]=He(et);function $r(e){const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:c,onValueChange:l,dir:u,name:h,autoComplete:f,disabled:d,required:v,form:m,internal_do_not_use_render:g}=e,p=$n(t),[y,x]=a.useState(null),[b,w]=a.useState(null),[C,E]=a.useState(!1),R=Tt(u),[O,P]=De({prop:o,defaultProp:r??!1,onChange:i,caller:et}),[_,A]=De({prop:s,defaultProp:c,onChange:l,caller:et}),I=a.useRef(null),T=a.useRef(_);a.useEffect(()=>{const Q=m?y?.ownerDocument.getElementById(m):y?.form;if(Q instanceof HTMLFormElement){const oe=j(()=>A(T.current),"reset");return Q.addEventListener("reset",oe),()=>Q.removeEventListener("reset",oe)}},[m,y,A]);const D=y?!!m||!!y.closest("form"):!0,[W,F]=a.useState(new Set),M=Te(),k=Array.from(W).map(Q=>Q.props.value).join(";"),B=a.useCallback(Q=>{F(oe=>new Set(oe).add(Q))},[]),z=a.useCallback(Q=>{F(oe=>{const Oe=new Set(oe);return Oe.delete(Q),Oe})},[]),ge={required:v,trigger:y,onTriggerChange:x,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:M,value:_,onValueChange:A,open:O,onOpenChange:P,dir:R,triggerPointerDownPosRef:I,disabled:d,name:h,autoComplete:f,form:m,nativeOptions:W,nativeSelectKey:k,isFormControl:D};return S.jsx(vc,{...p,children:S.jsx(pa,{scope:t,...ge,children:S.jsx($t.Provider,{scope:t,children:S.jsx(ha,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:z,children:Hr(g)?g(ge):n})})})})}j($r,"SelectProvider");var kl=j(e=>{const{__scopeSelect:t,children:n,...o}=e;return S.jsx($r,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>S.jsxs(S.Fragment,{children:[n,r?S.jsx(Da,{__scopeSelect:t}):null]})})},"Select"),va="SelectTrigger",Nl=a.forwardRef(j(function(t,n){const{__scopeSelect:o,disabled:r=!1,...i}=t,s=$n(o),c=Fe(va,o),l=c.disabled||r,u=V(n,c.onTriggerChange),h=Bt(o),f=a.useRef("touch"),[d,v,m]=Vn(p=>{const y=h().filter(w=>!w.disabled),x=y.find(w=>w.value===c.value),b=Wn(y,p,x);b!==void 0&&c.onValueChange(b.value)}),g=j(p=>{l||(c.onOpenChange(!0),m()),p&&(c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})},"handleOpen");return S.jsx(gc,{asChild:!0,...s,children:S.jsx($.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":dt(c.value)?"":void 0,...i,ref:u,onClick:L(i.onClick,p=>
41{p.currentTarget.focus(),f.current!=="mouse"&&g(p)}),onPointerDown:L(i.onPointerDown,p=>{f.current=p.pointerType;const y=p.target;y.hasPointerCapture(p.pointerId)&&y.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(g(p),p.preventDefault())}),onKeyDown:L(i.onKeyDown,p=>{const y=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&v(p.key),!(y&&p.key===" ")&&ua.includes(p.key)&&(g(),p.preventDefault())})})})},"SelectTrigger")),ga="SelectValue",Ll=a.forwardRef(j(function(t,n){const{__scopeSelect:o,className:r,style:i,children:s,placeholder:c="",...l}=t,u=Fe(ga,o),{onValueNodeHasChildrenChange:h}=u,f=s!==void 0,d=V(n,u.onValueNodeChange);G(()=>{h(f)},[h,f]);const v=dt(u.value);return S.jsx($.span,{...l,asChild:v?!1:l.asChild,ref:d,style:{pointerEvents:"none"},children:S.jsx(a.Fragment,{children:v?c:s},v?"placeholder":"value")})},"SelectValue")),Fl=a.forwardRef(j(function(t,n){const{__scopeSelect:o,children:r,...i}=t;return S.jsx($.span,{"aria-hidden":!0,...i,ref:n,children:r||"â¼"})},"SelectIcon")),ba="SelectPortal",[wa,ya]=He(ba,{forceMount:void 0}),jl=j(e=>{const{__scopeSelect:t,forceMount:n,...o}=e;return S.jsx(wa,{scope:e.__scopeSelect,forceMount:n,children:S.jsx(Or,{asChild:!0,...o})})},"SelectPortal"),We="SelectContent",$l=a.forwardRef(j(function(t,n){const o=ya(We,t.__scopeSelect),{forceMount:r=o.forceMount,...i}=t,s=Fe(We,t.__scopeSelect),[c,l]=a.useState();return G(()=>{l(new DocumentFragment)},[]),S.jsx(ot,{present:r||s.open,children:({present:u})=>u?S.jsx(Ca,{...i,ref:n}):S.jsx(xa,{...i,fragment:c})})},"SelectContent")),xa=a.forwardRef(j(function(t,n){const{__scopeSelect:o,children:r,fragment:i}=t;return i?ut.createPortal(S.jsx(Br,{scope:o,children:S.jsx($t.Slot,{scope:o,children:S.jsx("div",{ref:n,children:r})})}),i):null},"SelectContentFragment")),ae=10,[Br,Ue]=He(We),Sa=Ce("SelectContent.RemoveScroll"),Ca=a.forwardRef(j(function(t,n){const{__scopeSelect:o}=t,{position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:c,side:l,sideOffset:u,align:h,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:y,...x}=t,b=Fe(We,o),[w,C]=a.useState(null),[E,R]=a.useState(null),O=V(n,C),[P,_]=a.useState(null),[A,I]=a.useState(null),T=Bt(o),[D,W]=a.useState(!1),F=a.useRef(!1);a.useEffect(()=>{if(w)return Ar(w)},[w]),At();const M=a.useCallback(N=>{const[K,...J]=T().map(Y=>Y.ref.current),[H]=J.slice(-1),U=document.activeElement;for(const Y of N)if(Y===U||(Y?.scrollIntoView({block:"nearest"}),Y===K&&E&&(E.scrollTop=0),Y===H&&E&&(E.scrollTop=E.scrollHeight),Y?.focus(),document.activeElement!==U))return},[T,E]),k=a.useCallback(()=>M([P,w]),[M,P,w]);a.useEffect(()=>{D&&k()},[D,k]);const{onOpenChange:B,triggerPointerDownPosRef:z}=b;a.useEffect(()=>{if(w){let N={x:0,y:0};const K=j(H=>{N={x:Math.abs(Math.round(H.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(z.current?.y??0))}},"handlePointerMove"),J=j(H=>{N.x<=10&&N.y<=10?H.preventDefault():H.composedPath().includes(w)||B(!1),document.removeEventListener("pointermove",K),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",J,{capture:!0})}}},[w,B,z]),a.useEffect(()=>{const N=j(()=>B(!1),"close");return window.addEventListener("blur",N),window.addEventListener("resize",N),()=>{window.removeEventListener("blur",N),window.removeEventListener("resize",N)}},[B]);const[ge,Q]=Vn(N=>{const K=T().filter(U=>!U.disabled),J=K.find(U=>U.ref.current===document.activeElement),H=Wn(K,N,J);H&&setTimeout(()=>H.ref.current?.focus())}),oe=a.useCallback((N,K,J)=>{const H=!F.current&&!J;(b.value!==void 0&&b.value===K||H)&&(_(N),H&&(F.current=!0))},[b.value]),Oe=a.useCallback(()=>w?.focus(),[w]),_e=a.useCallback((N,K,J)=>{const H=!F.current&&!J;(b.value!==void 0&&b.value===K||H)&&I(N)},[b.value]),Ke=r==="popper"?Ro:Ea,je=Ke===Ro?{side:l,sideOffset:u,align:h,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:y}:{};return S.jsx(Br,{scope:o,content:w,viewport:E,onViewportChange:R,itemRefCallback:oe,selectedItem:P,onItemLeave:Oe,itemTextRefCallback:_e,focusSelectedItem:k,selectedItemText:A,position:r,isPositioned:D,searchRef:ge,children:S.jsx(jn,{as:Sa,allowPinchZoom:!0,children:S.jsx(rr,{asChild:!0,trapped:b.o
vendor: 5,349 bytes, line 41
41pen,onMountAutoFocus:N=>{N.preventDefault()},onUnmountAutoFocus:L(i,N=>{b.trigger?.focus({preventScroll:!0}),N.preventDefault()}),children:S.jsx(er,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:N=>N.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:S.jsx(Ke,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:N=>N.preventDefault(),...x,...je,onPlaced:()=>W(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:L(x.onKeyDown,N=>{const K=N.ctrlKey||N.altKey||N.metaKey;if(N.key==="Tab"&&N.preventDefault(),!K&&N.key.length===1&&Q(N.key),["ArrowUp","ArrowDown","Home","End"].includes(N.key)){let H=T().filter(U=>!U.disabled).map(U=>U.ref.current);if(["ArrowUp","End"].includes(N.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(N.key)){const U=N.target,Y=H.indexOf(U);H=H.slice(Y+1)}setTimeout(()=>M(H)),N.preventDefault()}})})})})})})},"SelectContentImpl")),Ea=a.forwardRef(j(function(t,n){const{__scopeSelect:o,onPlaced:r,...i}=t,s=Fe(We,o),c=Ue(We,o),[l,u]=a.useState(null),[h,f]=a.useState(null),d=V(n,f),v=Bt(o),m=a.useRef(!1),g=a.useRef(!0),{viewport:p,selectedItem:y,selectedItemText:x,focusSelectedItem:b}=c,w=a.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&h&&p&&y&&x){const O=s.trigger.getBoundingClientRect(),P=h.getBoundingClientRect(),_=s.valueNode.getBoundingClientRect(),A=x.getBoundingClientRect();if(s.dir!=="rtl"){const U=A.left-P.left,Y=_.left-U,be=O.left-Y,se=O.width+be,Ht=Math.max(se,P.width),Ut=window.innerWidth-ae,zt=un(Y,[ae,Math.max(ae,Ut-Ht)]);l.style.minWidth=se+"px",l.style.left=zt+"px"}else{const U=P.right-A.right,Y=window.innerWidth-_.right-U,be=window.innerWidth-O.right-Y,se=O.width+be,Ht=Math.max(se,P.width),Ut=window.innerWidth-ae,zt=un(Y,[ae,Math.max(ae,Ut-Ht)]);l.style.minWidth=se+"px",l.style.right=zt+"px"}const I=v(),T=window.innerHeight-ae*2,D=p.scrollHeight,W=window.getComputedStyle(h),F=parseInt(W.borderTopWidth,10),M=parseInt(W.paddingTop,10),k=parseInt(W.borderBottomWidth,10),B=parseInt(W.paddingBottom,10),z=F+M+D+B+k,ge=Math.min(y.offsetHeight*5,z),Q=window.getComputedStyle(p),oe=parseInt(Q.paddingTop,10),Oe=parseInt(Q.paddingBottom,10),_e=O.top+O.height/2-ae,Ke=T-_e,je=y.offsetHeight/2,N=y.offsetTop+je,K=F+M+N,J=z-K;if(K<=_e){const U=I.length>0&&y===I[I.length-1].ref.current;l.style.bottom="0px";const Y=h.clientHeight-p.offsetTop-p.offsetHeight,be=Math.max(Ke,je+(U?Oe:0)+Y+k),se=K+be;l.style.height=se+"px"}else{const U=I.length>0&&y===I[0].ref.current;l.style.top="0px";const be=Math.max(_e,F+p.offsetTop+(U?oe:0)+je)+J;l.style.height=be+"px",p.scrollTop=K-_e+p.offsetTop}l.style.margin=`${ae}px 0`,l.style.minHeight=ge+"px",l.style.maxHeight=T+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[v,s.trigger,s.valueNode,l,h,p,y,x,s.dir,r]);G(()=>w(),[w]);const[C,E]=a.useState();G(()=>{h&&E(window.getComputedStyle(h).zIndex)},[h]);const R=a.useCallback(O=>{O&&g.current===!0&&(w(),b?.(),g.current=!1)},[w,b]);return S.jsx(Ra,{scope:o,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:S.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:S.jsx($.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),Ro=a.forwardRef(j(function(t,n){const{__scopeSelect:o,align:r="start",collisionPadding:i=ae,...s}=t,c=$n(o);return S.jsx(bc,{...c,...s,ref:n,align:r,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Ra,Bn]=He(We,{}),Po="SelectViewport",Bl=a.forwardRef(j(function(t,n){const{__scopeSelect:o,nonce:r,...i}=t,s=Ue(Po,o),c=Bn(Po,o),l=V(n,s.onViewportChange),u=a.useRef(0);return S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),S.jsx($t.Slot,{scope:o,children:S.jsx($.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:L(i.onScroll,h=>{const f=h.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:v}=c;if(v?.current&&d){const m=Math.abs(u.current-f.scrollTop);if(m>0){const g=window.innerHeight-ae*2,p=parseFloat(d.style.minHeight),y=parseFloat(d.style.height),x=Math.max(p,y);if(x<g){const b=x+m,w=Math.min(g,b),C=b-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,d.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})},"SelectViewport")),Pa="SelectGroup",[Vl,Ia]=He(Pa),Oa="SelectLabel",Wl=a.forwardRef(j(function(t,n){const{__scopeSelect:o,...r}=t,i=Ia(Oa,o);return S.jsx($.div,{id:i.id,...r,ref:n})},"SelectLabel")),yn="SelectItem",[_a,Vr]=He(yn),Hl=a.forwardRef(j(function(t,n){const{__scopeSelect:o,value:r,disabled:i=!1,textValue:s,...c}
41=t,l=Fe(yn,o),u=Ue(yn,o),h=l.value===r,[f,d]=a.useState(s??""),[v,m]=a.useState(!1),g=le(w=>u.itemRefCallback?.(w,r,i)),p=V(n,g),y=Te(),x=a.useRef("touch"),b=j(()=>{i||(l.onValueChange(r),l.onOpenChange(!1))},"handleSelect");return S.jsx(_a,{scope:o,value:r,disabled:i,textId:y,isSelected:h,onItemTextChange:a.useCallback(w=>{d(C=>C||(w?.textContent??"").trim())},[]),children:S.jsx($t.ItemSlot,{scope:o,value:r,disabled:i,textValue:f,children:S.jsx($.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":h&&v,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...c,ref:p,onFocus:L(c.onFocus,()=>m(!0)),onBlur:L(c.onBlur,()=>m(!1)),onClick:L(c.onClick,()=>{x.current!=="mouse"&&b()}),onPointerUp:L(c.onPointerUp,()=>{x.current==="mouse"&&b()}),onPointerDown:L(c.onPointerDown,w=>{x.current=w.pointerType}),onPointerMove:L(c.onPointerMove,w=>{x.current=w.pointerType,i?u.onItemLeave?.():x.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(c.onPointerLeave,w=>{w.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:L(c.onKeyDown,w=>{i||w.target!==w.currentTarget||u.searchRef?.current!==""&&w.key===" "||(fa.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})},"SelectItem")),yt="SelectItemText",Ul=a.forwardRef(j(function(t,n){const{__scopeSelect:o,className:r,style:i,...s}=t,c=Fe(yt,o),l=Ue(yt,o),u=Vr(yt,o),h=ma(yt,o),[f,d]=a.useState(null),v=le(b=>l.itemTextRefCallback?.(b,u.value,u.disabled)),m=V(n,d,u.onItemTextChange,v),g=f?.textContent,p=a.useMemo(()=>S.jsx("option",{value:u.value,disabled:u.disabled,children:g},u.value),[u.disabled,u.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=h;return G(()=>(y(p),()=>x(p)),[y,x,p]),S.jsxs(S.Fragment,{children:[S.jsx($.span,{id:u.textId,...s,ref:m}),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!dt(c.value)?ut.createPortal(s.children,c.valueNode):null]})},"SelectItemText")),Ta="SelectItemIndicator",zl=a.forwardRef(j(function(t,n){const{__scopeSelect:o,...r}=t;return Vr(Ta,o).isSelected?S.jsx($.span,{"aria-hidden":!0,...r,ref:n}):null},"SelectItemIndicator")),Io="SelectScrollUpButton",Kl=a.forwardRef(j(function(t,n){const o=Ue(Io,t.__scopeSelect),r=Bn(Io,t.__scopeSelect),[i,s]=a.useState(!1),c=V(n,r.onScrollButtonChange);return G(()=>{if(o.viewport&&o.isPositioned){let l=function(){const h=u.scrollTop>0;s(h)};j(l,"handleScroll");const u=o.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[o.viewport,o.isPositioned]),i?S.jsx(Wr,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=o;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),Oo="SelectScrollDownButton",Gl=a.forwardRef(j(function(t,n){const o=Ue(Oo,t.__scopeSelect),r=Bn(Oo,t.__scopeSelect),[i,s]=a.useState(!1),c=V(n,r.onScrollButtonChange);return G(()=>{if(o.viewport&&o.isPositioned){let l=function(){const h=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<h;s(f)};j(l,"handleScroll");const u=o.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[o.viewport,o.isPositioned]),i?S.jsx(Wr,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=o;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),Wr=a.forwardRef(j(function(t,n){const{__scopeSelect:o,onAutoScroll:r,...i}=t,s=Ue("SelectScrollButton",o),c=a.useRef(null),l=Bt(o),u=a.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return a.useEffect(()=>()=>u(),[u]),G(()=>{l().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),S.jsx($.div,{"aria-hidden":!0,...i,ref:n,style:{flexShrink:0,...i.style},onPointerDown:L(i.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:L(i.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:L(i.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),Yl=a.forwardRef(j(function(t,n){const{__scopeSelect:o,...r}=t;return S.jsx($.div,{"aria-hidden":!0,...r,ref:n})},"SelectSeparator")),Aa="SelectBubbleInput",Da=a.forwardRef(j(function({__scopeSelect:t,...n},o){const r=Fe(Aa,t),{value:i,onValueChange:s,required:c,disabled:l,name:u,autoComplete:h,form:f}=r,{nativeOptions:d,nativeSelectKey:v}=r,m=a.useRef(null),g=V(o,m),p=i??"",y=_r(p),x=Array.from(d).some(b=>(b.props.value??"")==="");return a.useEffect(()=>{const b=m.current;if(!b)return;const w=window.HTMLSelectElement.prototype,E=Object.getOwnPropertyDescriptor(w,"value").set;if(y!==p&&E){const R=new Event("change",{bubbles:!0});E.call(b,p),b.dispatchEvent(R)}},[y,p]),S.jsxs($.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:u,autoComplete:h,disabled:l,form:f,onChange:b=>s(b.target.value),...n,style:{...Cc,...n.style},ref:g,defaultValue:p,children:[dt(i)&&!x?S.jsx("option",{value:""}):null,Array.from(d)]},v)},"SelectBubbleInput"));function Hr(e){return typeof e=="function"}j(Hr,"isFunction");function dt(e){return e===""||e===void 0}j(dt,"shouldShowPlaceholder");function Vn(e){const t=le(e),n=a.useRef(""),o=a.useRef(0),r=a.useCallback(s=>{const c=n.current+s;t(c),j(function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))},"updateSearch")(c)},[t]),i=a.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,i]}j(Vn,"useTypeaheadSearch");function Wn(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Ur(e,Math.max(i,0));r.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}j(Wn,"findNextItem");function Ur(e,t){return e.map((n,o)=>e[(t+o)%e.length])}j(Ur,"wrapArray");var Ma=Object.defineProperty,ie=(e,t)=>Ma(e,"name",{value:t,configurable:!0}),Hn="Dialog",[zr,Xl]=ve(Hn),[ka,fe]=zr(Hn),ql=ie(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:s=!0}=e,c=a.useRef(null),l=a.useRef(null),[u,h]=De({prop:o,defaultProp:r??!1,onChange:i,caller:Hn}
41),[f,d]=a.useState(0),[v,m]=a.useState(0);return S.jsx(ka,{scope:t,triggerRef:c,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),titlePresent:f>0,descriptionPresent:v>0,setTitleCount:d,setDescriptionCount:m,open:u,onOpenChange:h,onOpenToggle:a.useCallback(()=>h(g=>!g),[h]),modal:s,children:n})},"Dialog"),Na="DialogTrigger",Zl=a.forwardRef(ie(function(t,n){const{__scopeDialog:o,...r}=t,i=fe(Na,o),s=V(n,i.triggerRef);return S.jsx($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Vt(i.open),...r,ref:s,onClick:L(t.onClick,i.onOpenToggle)})},"DialogTrigger")),Kr="DialogPortal",[La,Gr]=zr(Kr,{forceMount:void 0}),Ql=ie(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,i=fe(Kr,t);return S.jsx(La,{scope:t,forceMount:n,children:a.Children.map(o,s=>S.jsx(ot,{present:n||i.open,children:S.jsx(Or,{asChild:!0,container:r,children:s})}))})},"DialogPortal"),xn="DialogOverlay",Jl=a.forwardRef(ie(function(t,n){const o=Gr(xn,t.__scopeDialog),{forceMount:r=o.forceMount,...i}=t,s=fe(xn,t.__scopeDialog);return s.modal?S.jsx(ot,{present:r||s.open,children:S.jsx(ja,{...i,ref:n})}):null},"DialogOverlay")),Fa=Ce("DialogOverlay.RemoveScroll"),ja=a.forwardRef(ie(function(t,n){const{__scopeDialog:o,...r}=t,i=fe(xn,o),s=tr(),c=V(n,s);return S.jsx(jn,{as:Fa,allowPinchZoom:!0,shards:[i.contentRef],children:S.jsx($.div,{"data-state":Vt(i.open),...r,ref:c,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),lt="DialogContent",eu=a.forwardRef(ie(function(t,n){const o=Gr(lt,t.__scopeDialog),{forceMount:r=o.forceMount,...i}=t,s=fe(lt,t.__scopeDialog);return S.jsx(ot,{present:r||s.open,children:s.modal?S.jsx($a,{...i,ref:n}):S.jsx(Ba,{...i,ref:n})})},"DialogContent")),$a=a.forwardRef(ie(function(t,n){const o=fe(lt,t.__scopeDialog),r=a.useRef(null),i=V(n,o.contentRef,r);return a.useEffect(()=>{const s=r.current;if(s)return Ar(s)},[]),S.jsx(Yr,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:L(t.onCloseAutoFocus,s=>{s.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:L(t.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:L(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),Ba=a.forwardRef(ie(function(t,n){const o=fe(lt,t.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return S.jsx(Yr,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=s.target;o.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})},"DialogContentNonModal")),Yr=a.forwardRef(ie(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...c}=t,l=fe(lt,o);return At(),S.jsx(S.Fragment,{children:S.jsx(rr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:S.jsx(er,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Vt(l.open),...c,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),Va="DialogTitle",tu=a.forwardRef(ie(function(t,n){const{__scopeDialog:o,...r}=t,i=fe(Va,o),{setTitleCount:s}=i;return G(()=>(s(c=>c+1),()=>s(c=>c-1)),[s]),S.jsx($.h2,{id:i.titleId,...r,ref:n})},"DialogTitle")),Wa="DialogDescription",nu=a.forwardRef(ie(function(t,n){const{__scopeDialog:o,...r}=t,i=fe(Wa,o),{setDescriptionCount:s}=i;return G(()=>(s(c=>c+1),()=>s(c=>c-1)),[s]),S.jsx($.p,{id:i.descriptionId,...r,ref:n})},"DialogDescription")),Ha="DialogClose",ou=a.forwardRef(ie(function(t,n){const{__scopeDialog:o,...r}=t,i=fe(Ha,o);return S.jsx($.button,{type:"button",...r,ref:n,onClick:L(t.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function Vt(e){return e?"open":"closed"}ie(Vt,"getState");var Ua=Object.defineProperty,za=(e,t)=>Ua(e,"name",{value:t,configurable:!0}),Ka=a.forwardRef(za(function(t,n){return S.jsx($.label,{...t,ref:n,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(t.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}})},"Label")),ru=Ka,Ga=Object.defineProperty,Ne=(e,t)=>Ga(e,"name",{value:t,configurable:!0}),Un="Switch",[Ya,iu]=ve(Un),[Xa,zn]=Ya(Un);function Xr(e){const{__scopeSwitch:t,checked:n,children:o,defaultChecked:r,disabled:i,form:s,name:c,onCheckedChange:l,required:u,value:h="on",internal_do_not_use_render:f}=e,[d,v]=De({prop:n,defaultProp:r??!1,onChange:l,caller:Un}),[m,g]=a.useState(null),[p,y]=a.useState(null),x=a.useRef(!1),[b,w]=a.useReducer(R=>R+1,0),C=m?!!s||!!m.closest("form"):!0,E={checked:d,setChecked:v,disabled:i,control:m,setControl:g,name:c,form:s,value:h,hasConsumerStoppedPropagationRef:x,userInteractionCount:b,onUserInteraction:w,required:u,defaultChecked:r,isFormControl:C,bubbleInput:p,setBubbleInput:y};return S.jsx(Xa,{scope:t,...E,children:qr(f)?f(E):o})}Ne(Xr,"SwitchProvider");var qa="SwitchTrigger",Za=a.forwardRef(Ne(function({__scopeSwitch:t,onClick:n,...o},r){const{control:i,form:s,value:c,disabled:l,checked:u,required:h,setControl:f,setChecked:d,hasConsumerStoppedPropagationRef:v,onUserInteraction:m,isFormControl:g,bubbleInput:p}=zn(qa,t),y=V(r,f),x=a.useRef(u);return a.useEffect(()=>{const b=s?i?.ownerDocument.getElementById(s):i?.form;if(b instanceof HTMLFormElement){const w=Ne(()=>d(x.current),"reset");return b.addEventListener("reset",w),()=>b.removeEventListener("reset",w)}},[i,s,d]),S.jsx($.button,{type:"button",role:"switch","aria-checked":u,"aria-required":h,"data-state":Kn(u),"data-disabled":l?"":void 0,disabled:l,value:c,...o,ref:y,onClick:L(n,b=>{m(),d(w=>!w),p&&g&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})})},"SwitchTrigger")),su=a.forwardRef(Ne(function(t,n){const{__scopeSwitch:o,name:r,checked:i,defaultChecked:s,required:c,disabled:l,value:u,onCheckedChange:h,form:f,...d}=t;return S.jsx(Xr,{__scopeSwitch:o,checked:i,defaultChecked:s,disabled:l,required:c,onCheckedChange:h,name:r,form:f,value:u,internal_do_not_use_render:({isFormControl:v})=>S.jsxs(S.Fragment,{children:[S.jsx(Za,{...d,ref:n,__scopeSwitch:o}),v&&S.jsx(el,{__scopeSwitch:o})]})})},"Switch")),Qa="SwitchThumb",cu=a.forwardRef(Ne(function(t,n){const{__scopeSwitch:o,...r}=t,i=zn(Qa,o);return S.jsx($.span,{"data-state":Kn(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:n})},"SwitchThumb")),Ja="SwitchBubbleInput",el=a.forwardRef(Ne(function({__scopeSwitch:t,onClick:n,...o},r){const{control:i,hasConsumerStoppedPropagationRef:s,userInteractionCount:c,checked:l,defaultChecked:u,required:h,disabled:f,name:d,value:v,form:m,bubbleInput:g,setBubbleInput:p}=zn(Ja,t),y=V(r,p),x=_t(i),b=a.useRef(!1),w=a.useRef(l),C=a.useRef(c);a.useEffect(()=>{const R=g;if(!R)return;const O=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(O,"checked").set,A=c!==C.current;C.current=c;const I=w.current!==l;w.current=l;const T=!(A&&s.current);if(I&&_){b.current=!A;const D=new Event("click",{bubbles:T});_.call(R,l),R.dispatchEvent(D),b.current=!1}},[g,l,s,c]);const E=a.useRef(l);return S.jsx($.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??E.current,required:h,disabled:f,name:d,value:v,form:m,...o,tabIndex:-1,ref:y,onClick:L(n,R=>{b.current&&R.stopPropagation()}),style:{...o.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})}
41,"SwitchBubbleInput"));function qr(e){return typeof e=="function"}Ne(qr,"isFunction");function Kn(e){return e?"checked":"unchecked"}Ne(Kn,"getState");var tl=Object.defineProperty,Gn=(e,t)=>tl(e,"name",{value:t,configurable:!0}),on=!1;function Zr(){const[e,t]=a.useState(on);return a.useEffect(()=>{on||(on=!0,t(!0))},[]),e}Gn(Zr,"useIsHydrated");var Qr=tt[" useSyncExternalStore ".trim().toString()];function Jr(){return()=>{}}Gn(Jr,"subscribe");function ei(){return Qr(Jr,()=>!0,()=>!1)}Gn(ei,"useIsHydratedModern");var nl=typeof Qr=="function"?ei:Zr,ol=Object.defineProperty,ze=(e,t)=>ol(e,"name",{value:t,configurable:!0}),rn="rovingFocusGroup.onEntryFocus",rl={bubbles:!1,cancelable:!0},Wt="RovingFocusGroup",[Sn,ti,il]=In(Wt),[sl,ni]=ve(Wt,[il]),[cl,al]=sl(Wt),ll=a.forwardRef(ze(function(t,n){return S.jsx(Sn.Provider,{scope:t.__scopeRovingFocusGroup,children:S.jsx(Sn.Slot,{scope:t.__scopeRovingFocusGroup,children:S.jsx(ul,{...t,ref:n})})})},"RovingFocusGroup")),ul=a.forwardRef(ze(function(t,n){const{__scopeRovingFocusGroup:o,orientation:r,loop:i=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:h,preventScrollOnEntryFocus:f=!1,...d}=t,v=a.useRef(null),m=V(n,v),g=Tt(s),[p,y]=De({prop:c,defaultProp:l??null,onChange:u,caller:Wt}),[x,b]=a.useState(!1),w=le(h),C=ti(o),E=a.useRef(!1),[R,O]=a.useState(0);return a.useEffect(()=>{const P=v.current;if(P)return P.addEventListener(rn,w),()=>P.removeEventListener(rn,w)},[w]),S.jsx(cl,{scope:o,orientation:r,dir:g,loop:i,currentTabStopId:p,onItemFocus:a.useCallback(P=>y(P),[y]),onItemShiftTab:a.useCallback(()=>b(!0),[]),onFocusableItemAdd:a.useCallback(()=>O(P=>P+1),[]),onFocusableItemRemove:a.useCallback(()=>O(P=>P-1),[]),children:S.jsx($.div,{tabIndex:x||R===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...t.style},onMouseDown:L(t.onMouseDown,()=>{E.current=!0}),onFocus:L(t.onFocus,P=>{const _=!E.current;if(P.target===P.currentTarget&&_&&!x){const A=new CustomEvent(rn,rl);if(P.currentTarget.dispatchEvent(A),!A.defaultPrevented){const I=C().filter(M=>M.focusable),T=I.find(M=>M.active),D=I.find(M=>M.id===p),F=[T,D,...I].filter(Boolean).map(M=>M.ref.current);Yn(F,f)}}E.current=!1}),onBlur:L(t.onBlur,()=>b(!1))})})},"RovingFocusGroupImpl")),fl="RovingFocusGroupItem",dl=a.forwardRef(ze(function(t,n){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:i=!1,tabStopId:s,children:c,...l}=t,u=Te(),h=s||u,f=al(fl,o),d=f.currentTabStopId===h,v=ti(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:p}=f,y=nl();return G(()=>{if(!(!y||!r))return m(),()=>g()},[y,r,m,g]),a.useEffect(()=>{if(!(y||!r))return m(),()=>g()},[y,r,m,g]),S.jsx(Sn.ItemSlot,{scope:o,id:h,focusable:r,active:i,children:S.jsx($.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...l,ref:n,onMouseDown:L(t.onMouseDown,x=>{r?f.onItemFocus(h):x.preventDefault()}),onFocus:L(t.onFocus,()=>f.onItemFocus(h)),onKeyDown:L(t.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const b=ri(x,f.orientation,f.dir);if(b!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=v().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")C.reverse();else if(b==="prev"||b==="next"){b==="prev"&&C.reverse();const E=C.indexOf(x.currentTarget);C=f.loop?ii(C,E+1):C.slice(E+1)}setTimeout(()=>Yn(C))}}),children:typeof c=="function"?c({isCurrentTabStop:d,hasTabStop:p!=null}):c})})},"RovingFocusGroupItem")),pl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oi(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}ze(oi,"getDirectionAwareKey");function ri(e,t,n){const o=oi(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return pl[o]}ze(ri,"getFocusIntent");function Yn(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}ze(Yn,"focusFirst");function ii(e,t){return e.map((n,o)=>e[(t+o)%e.length])}ze(ii,"wrapArray");var hl=ll,ml=dl,vl=Object.defineProperty,st=(e,t)=>
41vl(e,"name",{value:t,configurable:!0}),Xn="Tabs",[gl,au]=ve(Xn,[ni]),si=ni(),[bl,qn]=gl(Xn),wl=a.forwardRef(st(function(t,n){const{__scopeTabs:o,value:r,onValueChange:i,defaultValue:s,orientation:c="horizontal",dir:l,activationMode:u="automatic",...h}=t,f=Tt(l),[d,v]=De({prop:r,onChange:i,defaultProp:s??"",caller:Xn});return S.jsx(bl,{scope:o,baseId:Te(),value:d,onValueChange:v,orientation:c,dir:f,activationMode:u,children:S.jsx($.div,{dir:f,"data-orientation":c,...h,ref:n})})},"Tabs")),yl="TabsList",xl=a.forwardRef(st(function(t,n){const{__scopeTabs:o,loop:r=!0,...i}=t,s=qn(yl,o),c=si(o);return S.jsx(hl,{asChild:!0,...c,orientation:s.orientation,dir:s.dir,loop:r,children:S.jsx($.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:n})})},"TabsList")),Sl="TabsTrigger",Cl=a.forwardRef(st(function(t,n){const{__scopeTabs:o,value:r,disabled:i=!1,...s}=t,c=qn(Sl,o),l=si(o),u=Zn(c.baseId,r),h=Qn(c.baseId,r),f=r===c.value;return S.jsx(ml,{asChild:!0,...l,focusable:!i,active:f,children:S.jsx($.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":h,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...s,ref:n,onMouseDown:L(t.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?c.onValueChange(r):d.preventDefault()}),onKeyDown:L(t.onKeyDown,d=>{i||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&c.onValueChange(r)}),onFocus:L(t.onFocus,()=>{const d=c.activationMode!=="manual";!f&&!i&&d&&c.onValueChange(r)})})})},"TabsTrigger")),El="TabsContent",Rl=a.forwardRef(st(function(t,n){const{__scopeTabs:o,value:r,forceMount:i,children:s,...c}=t,l=qn(El,o),u=Zn(l.baseId,r),h=Qn(l.baseId,r),f=r===l.value,d=a.useRef(f);return a.useEffect(()=>{const v=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(v)},[]),S.jsx(ot,{present:i||f,children:({present:v})=>S.jsx($.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!v,id:h,tabIndex:0,...c,ref:n,style:{...t.style,animationDuration:d.current?"0s":void 0},children:v&&s})})},"TabsContent"));function Zn(e,t){return`${e}-trigger-${t}`}st(Zn,"makeTriggerId");function Qn(e,t){return`${e}-content-${t}`}st(Qn,"makeContentId");var lu=wl,uu=xl,fu=Cl,du=Rl;export{Tl as C,ql as D,uu as L,ru as R,Ol as S,fu as T,Al as a,Nl as b,Fl as c,Kl as d,Gl as e,jl as f,$l as g,Bl as h,Wl as i,Hl as j,zl as k,Ul as l,Yl as m,kl as n,Ll as o,su as p,cu as q,lu as r,du as s,Ql as t,eu as u,ou as v,tu as w,Jl as x,nu as y,Zl 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.