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