1var Pn=e=>{throw TypeError(e)};var On=(e,t,n)=>t.has(e)||Pn("Cannot "+n);var K=(e,t,n)=>(On(e,t,"read from private field"),n?n.call(e):t.get(e)),An=(e,t,n)=>t.has(e)?Pn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Mt=(e,t,n,r)=>(On(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{c as gt,d as V,e as We,a as ee,B as ko}from"./button-CMRMQOKC.js";import{j as w}from"./jsx-runtime-u17CrQMm.js";import{r as c,P as Xe}from"./chunk-FGUA77HG-j0YWFtzu.js";import{P as B,d as Qn}from"./separator-BHE0rsnW.js";import{X as jo}from"./x-RfCwbkiA.js";import{r as Jn}from"./index-BGwPMSfl.js";const $o=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Du=gt("layout-dashboard",$o);const Wo=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Mu=gt("log-out",Wo);const zo=[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]],Iu=gt("pen-tool",zo);const Bo=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_u=gt("settings",Bo);var Uo=Object.defineProperty,J=(e,t)=>Uo(e,"name",{value:t,configurable:!0});function Ho(e,t){const n=c.createContext(t);n.displayName=e+"Context";const r=J(i=>{const{children:s,...a}=i,u=c.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:u,children:s})},"Provider");r.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 J(o,"useContext"),[r,o]}J(Ho,"createContext");function ve(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 f=J(l=>{const{scope:d,children:v,...h}=l,m=d?.[e]?.[u]||a,g=c.useMemo(()=>h,Object.values(h));return w.jsx(m.Provider,{value:g,children:v})},"Provider");f.displayName=i+"Provider";function p(l,d,v={}){const{optional:h=!1}=v,m=d?.[e]?.[u]||a,g=c.useContext(m);if(g)return g;if(s!==void 0)return s;if(!h)throw new Error(`\`${l}\` must be used within \`${i}\``)}return J(p,"useContext"),[f,p]}J(r,"createContext");const o=J(()=>{const i=n.map(s=>c.createContext(s));return J(function(a){const u=a?.[e]||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])},"useScope")},"createScope");return o.scopeName=e,[r,er(o,...t)]}J(ve,"createContextScope");function er(...e){const t=e[0];if(e.length===1)return t;const n=J(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return J(function(i){const s=r.reduce((a,{useScope:u,scopeName:f})=>{const l=u(i)[`__scope${f}`];return{...a,...l}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}J(er,"composeContextScopes");var Vo=Object.defineProperty,H=(e,t)=>Vo(e,"name",{value:t,configurable:!0});function sn(e){const t=e+"CollectionProvider",[n,r]=ve(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=H(m=>{const{scope:g,children:b}=m,y=c.useRef(null),x=c.useRef(new Map).current;return w.jsx(o,{scope:g,itemMap:x,collectionRef:y,children:b})},"CollectionProvider");s.displayName=t;
1const a=e+"CollectionSlot",u=We(a),f=c.forwardRef((m,g)=>{const{scope:b,children:y}=m,x=i(a,b),C=V(g,x.collectionRef);return w.jsx(u,{ref:C,children:y})});f.displayName=a;const p=e+"CollectionItemSlot",l="data-radix-collection-item",d=We(p),v=c.forwardRef((m,g)=>{const{scope:b,children:y,...x}=m,C=c.useRef(null),S=V(g,C),E=i(p,b);return c.useEffect(()=>(E.itemMap.set(C,{ref:C,...x}),()=>void E.itemMap.delete(C))),w.jsx(d,{[l]:"",ref:S,children:y})});v.displayName=p;function h(m){const g=i(e+"CollectionConsumer",m);return c.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${l}]`));return Array.from(g.itemMap.values()).sort((E,R)=>x.indexOf(E.ref.current)-x.indexOf(R.ref.current))},[g.collectionRef,g.itemMap])}return H(h,"useCollection"),[{Provider:s,Slot:f,ItemSlot:v},h,r]}H(sn,"createCollection");var Dn=new WeakMap,z,Z,It=(Z=class extends Map{constructor(n){super(n);An(this,z);Mt(this,z,[...super.keys()]),Dn.set(this,!0)}set(n,r){return Dn.get(this)&&(this.has(n)?K(this,z)[K(this,z).indexOf(n)]=n:K(this,z).push(n)),super.set(n,r),this}insert(n,r,o){const i=this.has(r),s=K(this,z).length,a=an(n);let u=a>=0?a:s+a;const f=u<0||u>=s?-1:u;if(f===this.size||i&&f===this.size-1||f===-1)return this.set(r,o),this;const p=this.size+(i?0:1);a<0&&u++;const l=[...K(this,z)];let d,v=!1;for(let h=u;h<p;h++)if(u===h){let m=l[h];l[h]===r&&(m=l[h+1]),i&&this.delete(r),d=this.get(m),this.set(r,o)}else{!v&&l[h-1]===r&&(v=!0);const m=l[v?h:h-1],g=d;d=this.get(m),this.delete(m),this.set(m,g)}return this}with(n,r,o){const i=new Z(this);return i.insert(n,r,o),i}before(n){const r=K(this,z).indexOf(n)-1;if(!(r<0))return this.entryAt(r)}setBefore(n,r,o){const i=K(this,z).indexOf(n);return i===-1?this:this.insert(i,r,o)}after(n){let r=K(this,z).indexOf(n);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(n,r,o){const i=K(this,z).indexOf(n);return i===-1?this:this.insert(i+1,r,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Mt(this,z,[]),super.clear()}delete(n){const r=super.delete(n);return r&&K(this,z).splice(K(this,z).indexOf(n),1),r}deleteAt(n){const r=this.keyAt(n);return r!==void 0?this.delete(r):!1}at(n){const r=ct(K(this,z),n);if(r!==void 0)return this.get(r)}entryAt(n){const r=ct(K(this,z),n);if(r!==void 0)return[r,this.get(r)]}indexOf(n){return K(this,z).indexOf(n)}keyAt(n){return ct(K(this,z),n)}from(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return i;o++}}findIndex(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return o;o++}return-1}filter(n,r){const o=[];let i=0;for(const s of this)Reflect.apply(n,r,[s,i,this])&&o.push(s),i++;return new Z(o)}map(n,r){const o=[];let i=0;for(const s of this)o.push([s[0],Reflect.apply(n,r,[s,i,this])]),i++;return new Z(o)}reduce(...n){const[r,o]=n;let i=0,s=o??this.at(0);for(const a of this)i===0&&n.length===1?s=a:s=Reflect.apply(r,this,[s,a,i,this]),i++;return s}reduceRight(...n){const[r,o]=n;let i=o??this.at(-1);for(let s=this.size-1;s>=0;s--){const a=this.at(s);s===this.size-1&&n.length===1?i=a:i=Reflect.apply(r,this,[i,a,s,this])}return i}toSorted(n){const r=[...this.entries()].sort(n);return new Z(r)}toReversed(){const n=new Z;for(let r=this.size-1;r>=0;r--){const o=this.keyAt(r),i=this.get(o);n.set(o,i)}return n}toSpliced(...n){const r=[...this.entries()];return r.splice(...n),new Z(r)}slice(n,r){const o=new Z;let i=this.size-1;if(n===void 0)return o;n<0&&(n=n+this.size),r!==void 0&&r>0&&(i=r-1);for(let s=n;s<=i;s++){const a=this.keyAt(s),u=this.get(a);o.set(a,u)}return o}every(n,r){let o=0;for(const i of this){if(!Reflect.apply(n,r,[i,o,this]))return!1;o++}return!0}some(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return!0;o++}return!1}},z=new WeakMap,H(Z,"OrderedDict"),Z);function ct(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=tr(e,t);return n===-1?void 0:e[n]}H(ct,"at");function tr(e,t){const n=e.length,r=an(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}H(tr,"toSafeIndex");function an(e){return e!==e||e===0?0:Math.trunc(e)}H(an,"toSafeInteger");function Ko(e){const t=e+"CollectionProvider",[n,r]=ve(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new It,setItemMap:H(()=>{},"setItemMap")}),s=H(({state:x,...C})=>x?w.jsx(u,{...C,state:x}):w.jsx(a,{...C}),"CollectionProvider");s.displayName=t;const a=H(x=>{const C=g();return w.jsx(u,{...x,state:C})},"CollectionInit");a.displayName=t+"Init";const u=H(x=>{const{scope:C,children:S,state:E}=x,R=c.useRef(null),[D,O]=c.useState(null),M=V(R,O),[L,A]=E;return c.useEffect(()=>{if(!D)return;const I=or(()=>{});return I.observe(D,{childList:!0,subtree:!0}),()=>{I.disconnect()}},[D]),w.jsx(o,{scope:C,itemMap:L,setItemMap:A,collectionRef:M,collectionRefObject:R,collectionElement:D,children:S})},"CollectionProviderImpl");u.displayName=t+"Impl";const f=e+"CollectionSlot",p=We(f),l=c.forwardRef((x,C)=>{const{scope:S,children:E}=x,R=i(f,S),D=V(C,R.collectionRef);return w.jsx(p,{ref:D,children:E})});l.displayName=f;const d=e+"CollectionItemSlot",v="data-radix-collection-item",h=We(d),m=c.forwardRef((x,C)=>{const{scope:S,children:E,...R}=x,D=c.useRef(null),[O,M]=c.useState(null),L=V(C,D,M),A=i(d,S),{setItemMap:I}=A,N=c.useRef(R);nr(N.current,R)||(N.current=R);const W=N.current;return c.useEffect(()=>{const k=W;return I(_=>O?_.has(O)?_.set(O,{...k,element:O}).toSorted(Ut):(_.set(O,{...k,element:O}),_.toSorted(Ut)):_),()=>{I(_=>!O||!_.has(O)?_:(_.delete(O),new It(_)))}},[O,W,I]),w.jsx(h,{[v]:"",ref:L,children:E})});m.displayName=d;
1function g(){return c.useState(new It)}H(g,"useInitCollection");function b(x){const{itemMap:C}=i(e+"CollectionConsumer",x);return C}return H(b,"useCollection"),[{Provider:s,Slot:l,ItemSlot:m},{createCollectionScope:r,useCollection:b,useInitCollection:g}]}H(Ko,"createCollection");function nr(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),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}H(nr,"shallowEqual");function rr(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}H(rr,"isElementPreceding");function Ut(e,t){return!e[1].element||!t[1].element?0:rr(e[1].element,t[1].element)?-1:1}H(Ut,"sortByDocumentPosition");function or(e){return new MutationObserver(n=>{for(const r of n)if(r.type==="childList"){e();return}})}H(or,"getChildListObserver");var Go=Object.defineProperty,ze=(e,t)=>Go(e,"name",{value:t,configurable:!0}),ir=!!(typeof window<"u"&&window.document&&window.document.createElement);function F(e,t,{checkForDefaultPrevented:n=!0}={}){return ze(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}ze(F,"composeEventHandlers");function Yo(e){if(!ir)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}ze(Yo,"getOwnerWindow");function Ht(e){if(!ir)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}ze(Ht,"getOwnerDocument");function sr(e,t=!1){const{activeElement:n}=Ht(e);if(!n?.nodeName)return null;if(ar(n)&&n.contentDocument)return sr(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=Ht(n).getElementById(r);if(o)return o}}return n}ze(sr,"getActiveElement");function ar(e){return e.tagName==="IFRAME"}ze(ar,"isFrame");var X=globalThis?.document?c.useLayoutEffect:()=>{},Xo=Object.defineProperty,qo=(e,t)=>Xo(e,"name",{value:t,configurable:!0}),Mn=Xe[" useEffectEvent ".trim().toString()],In=Xe[" useInsertionEffect ".trim().toString()];function cr(e){if(typeof Mn=="function")return Mn(e);const t=c.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof In=="function"?In(()=>{t.current=e}):X(()=>{t.current=e}),c.useMemo(()=>((...n)=>t.current?.(...n)),[])}qo(cr,"useEffectEvent");var Zo=Object.defineProperty,qe=(e,t)=>Zo(e,"name",{value:t,configurable:!0}),Qo=Xe[" useInsertionEffect ".trim().toString()]||X;function wt({prop:e,defaultProp:t,onChange:n=qe(()=>{},"onChange"),caller:r}){const[o,i,s]=ur({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o,f=c.useCallback(p=>{if(a){const l=lr(p)?p(e):p;l!==e&&s.current?.(l)}else i(p)},[a,e,i,s]);return[u,f]}qe(wt,"useControllableState");function ur({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return Qo(()=>{i.current=t},[t]),c.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}qe(ur,"useUncontrolledState");function lr(e){return typeof e=="function"}qe(lr,"isFunction");var _n=Symbol("RADIX:SYNC_STATE");function Jo(e,t,n,r){const{prop:o,defaultProp:i,onChange:s,caller:a}=t,u=o!==void 0,f=cr(s),p=[{...n,state:i}];r&&p.push(r);const[l,d]=c.useReducer((g,b)=>{if(b.type===_n)return{...g,state:b.state};const y=e(g,b);return u&&!Object.is(y.state,g.state)&&f(y.state),y},...p),v=l.state,h=c.useRef(v);c.useEffect(()=>{h.current!==v&&(h.current=v,u||f(v))},[v,h,u]);const m=c.useMemo(()=>o!==void 0?{...l,state:o}:l,[l,o]);return c.useEffect(()=>{u&&!Object.is(o,l.state)&&d({type:_n,state:o})},[o,l.state,u]),[m,d]}qe(Jo,"useControllableStateReducer");var ei=Object.defineProperty,pe=(e,t)=>ei(e,"name",{value:t,configurable:!0});function fr(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}pe(fr,"useStateMachine");var Ze=pe(e=>{const{present:t,children:n}=e,r=dr(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=pr(r.ref,mr(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null},"Presence");function dr(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),i=c.useRef("none"),s=c.useRef(void 0),a=e?"mounted":"unmounted",[u,f]=fr(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{u==="mounted"?(i.current=s.current??ke(r.current),s.current=void 0):i.current="none"},[u]),X(()=>{const p=r.current,l=o.current;if(l!==e){const v=i.current,h=ke(p);e?(s.current=h,f("MOUNT")):h==="none"||p?.display==="none"?f("UNMOUNT"):f(l&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),X(()=>
1{if(t){let p;const l=t.ownerDocument.defaultView??window,d=pe(h=>{const g=ke(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(f("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",p=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},"handleAnimationEnd"),v=pe(h=>{h.target===t&&(i.current=ke(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{l.clearTimeout(p),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:c.useCallback(p=>{if(p){const l=getComputedStyle(p);r.current=l,s.current=ke(l)}else r.current=null;n(p)},[])}}pe(dr,"usePresence");function Vt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}pe(Vt,"setRef");function pr(...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=Vt(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():Vt(r[s],null)}}},[])}pe(pr,"useStableComposedRefs");function ke(e){return e?.animationName||"none"}pe(ke,"getAnimationName");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)}pe(mr,"getElementRef");var ti=Object.defineProperty,ni=(e,t)=>ti(e,"name",{value:t,configurable:!0}),ri=Xe[" useId ".trim().toString()]||(()=>{}),oi=0;function Re(e){const[t,n]=c.useState(ri());return X(()=>{e||n(r=>r??String(oi++))},[e]),e||(t?`radix-${t}`:"")}ni(Re,"useId");var ii=Object.defineProperty,si=(e,t)=>ii(e,"name",{value:t,configurable:!0}),ai=c.createContext(void 0);function cn(e){const t=c.useContext(ai);return e||t||"ltr"}si(cn,"useDirection");var ci=Object.defineProperty,ui=(e,t)=>ci(e,"name",{value:t,configurable:!0});function ie(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>t.current?.(...n)),[])}ui(ie,"useCallbackRef");var li=Object.defineProperty,U=(e,t)=>li(e,"name",{value:t,configurable:!0}),Kt="dismissableLayer.update",fi="dismissableLayer.pointerDownOutside",di="dismissableLayer.focusOutside",Tn,hr=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),vr=c.forwardRef(U(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:f,...p}=t,l=c.useContext(hr),[d,v]=c.useState(null),h=d?.ownerDocument??globalThis?.document,[,m]=c.useState({}),g=V(n,v),b=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=y?b.indexOf(y):-1,C=d?b.indexOf(d):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=C>=x,R=c.useRef(!1),D=wr(A=>{s?.(A),u?.(A),A.defaultPrevented||f?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:l.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(A=>{if(!(A instanceof Node))return!1;const I=[...l.branches].some(N=>N.contains(A));return E&&!I},[l.branches,E])}),O=yr(A=>{if(o&&R.current)return;const I=A.target;[...l.branches].some(W=>W.contains(I))||(a?.(A),u?.(A),A.defaultPrevented||f?.())},h),M=d?C===b.length-1:!1,L=ie(A=>{A.key==="Escape"&&(i?.(A),!A.defaultPrevented&&f&&(A.preventDefault(),f()))});return c.useEffect(()=>{if(M)return h.addEventListener("keydown",L,{capture:!0}),()=>h.removeEventListener("keydown",L,{capture:!0})},[h,M,L]),c.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Tn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Gt(),()=>
1{r&&(l.layersWithOutsidePointerEventsDisabled.delete(d),l.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Tn))}},[d,h,r,l]),c.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Gt())},[d,l]),c.useEffect(()=>{const A=U(()=>m({}),"handleUpdate");return document.addEventListener(Kt,A),()=>document.removeEventListener(Kt,A)},[]),w.jsx(B.div,{...p,ref:g,style:{pointerEvents:S?E?"auto":"none":void 0,...t.style},onFocusCapture:F(t.onFocusCapture,O.onFocusCapture),onBlurCapture:F(t.onBlurCapture,O.onBlurCapture),onPointerDownCapture:F(t.onPointerDownCapture,D.onPointerDownCapture)})},"DismissableLayer"));function gr(){const e=c.useContext(hr),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}U(gr,"useDismissableLayerSurface");var pi=U(()=>!0,"IS_TRUE");function wr(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=pi}=t,a=ie(e),u=c.useRef(!1),f=c.useRef(!1),p=c.useRef(new Map),l=c.useRef(()=>{});return c.useEffect(()=>{function d(){f.current=!1,o.current=!1,p.current.clear()}U(d,"resetOutsideInteraction");function v(){return Array.from(p.current.values()).some(Boolean)}U(v,"isOutsideInteractionIntercepted");function h(x){if(!f.current)return;const C=x.target;C instanceof Node&&[...i].some(E=>E.contains(C))||p.current.set(x.type,!0),x.type==="click"&&window.setTimeout(()=>{f.current&&l.current()},0)}U(h,"handleInteractionCapture");function m(x){f.current&&p.current.set(x.type,!1)}U(m,"handleInteractionBubble");const g=U(x=>{if(x.target&&!u.current){let C=function(){n.removeEventListener("click",l.current);const E=v();d(),E||un(fi,a,S,{discrete:!0})};if(U(C,"handleAndDispatchPointerDownOutsideEvent"),!s(x.target)){n.removeEventListener("click",l.current),d(),u.current=!1;return}const S={originalEvent:x};f.current=!0,o.current=r&&x.button===0,p.current.clear(),!r||x.button!==0?C():(n.removeEventListener("click",l.current),l.current=C,n.addEventListener("click",l.current,{once:!0}))}else n.removeEventListener("click",l.current),d();u.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const x of b)n.addEventListener(x,h,!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 b)n.removeEventListener(x,h,!0),n.removeEventListener(x,m)}},[n,a,r,o,i,s]),{onPointerDownCapture:U(()=>u.current=!0,"onPointerDownCapture")}}U(wr,"usePointerDownOutside");function yr(e,t=globalThis?.document){const n=ie(e),r=c.useRef(!1);return c.useEffect(()=>{const o=U(i=>{i.target&&!r.current&&un(di,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(yr,"useFocusOutside");function Gt(){const e=new CustomEvent(Kt);document.dispatchEvent(e)}U(Gt,"dispatchUpdate");function un(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?Qn(o,i):o.dispatchEvent(i)}U(un,"handleAndDispatchCustomEvent");var mi=Object.defineProperty,Y=(e,t)=>mi(e,"name",{value:t,configurable:!0}),_t="focusScope.autoFocusOnMount",Tt="focusScope.autoFocusOnUnmount",Nn={bubbles:!1,cancelable:!0},xr=c.forwardRef(Y(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[u,f]=c.useState(null),p=ie(i),l=ie(s),d=c.useRef(null),v=V(n,f),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let g=function(C){if(h.paused||!u)return;const S=C.target;u.contains(S)?d.current=S:ue(d.current,{select:!0})},b=function(C){if(h.paused||!u)return;const S=C.relatedTarget;S!==null&&(u.contains(S)||ue(d.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&ue(u)};Y(g,"handleFocusIn"),Y(b,"handleFocusOut"),Y(y,"handleMutations"),document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(y);return u&&x.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[o,u,h.paused]),c.useEffect(()=>{if(u){Ln.add(h);const g=document.activeElement;if(!u.contains(g)){const y=new CustomEvent(_t,Nn);u.addEventListener(_t,p),u.dispatchEvent(y),y.defaultPrevented||(br(Pr(ln(u)),{select:!0}),document.activeElement===g&&ue(u))}return()=>{u.removeEventListener(_t,p),setTimeout(()=>{const y=new CustomEvent(Tt,Nn);u.addEventListener(Tt,l),u.dispatchEvent(y),y.defaultPrevented||ue(g??document.body,{select:!0}),u.removeEventListener(Tt,l),Ln.remove(h)}
1,0)}}},[u,p,l,h]);const m=c.useCallback(g=>{if(!r&&!o||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const x=g.currentTarget,[C,S]=Cr(x);C&&S?!g.shiftKey&&y===S?(g.preventDefault(),r&&ue(C,{select:!0})):g.shiftKey&&y===C&&(g.preventDefault(),r&&ue(S,{select:!0})):y===x&&g.preventDefault()}},[r,o,h.paused]);return w.jsx(B.div,{tabIndex:-1,...a,ref:v,onKeyDown:m})},"FocusScope"));function br(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ue(r,{select:t}),document.activeElement!==n)return}Y(br,"focusFirst");function Cr(e){const t=ln(e),n=Yt(t,e),r=Yt(t.reverse(),e);return[n,r]}Y(Cr,"getTabbableEdges");function ln(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Y(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Y(ln,"getTabbableCandidates");function Yt(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Sr(r,{upTo:t})))return r}Y(Yt,"findVisible");function Sr(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}Y(Sr,"isHidden");function Er(e){return e instanceof HTMLInputElement&&"select"in e}Y(Er,"isSelectableInput");function ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Er(e)&&t&&e.select()}}Y(ue,"focus");var Ln=Rr();function Rr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xt(e,t),e.unshift(t)},remove(t){e=Xt(e,t),e[0]?.resume()}}}Y(Rr,"createFocusScopesStack");function Xt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Y(Xt,"arrayRemove");function Pr(e){return e.filter(t=>t.tagName!=="A")}Y(Pr,"removeLinks");var hi=Object.defineProperty,vi=(e,t)=>hi(e,"name",{value:t,configurable:!0}),Or=c.forwardRef(vi(function(t,n){const{container:r,...o}=t,[i,s]=c.useState(!1);X(()=>s(!0),[]);const a=r||i&&globalThis?.document?.body;return a?Jn.createPortal(w.jsx(B.div,{...o,ref:n}),a):null},"Portal")),gi=Object.defineProperty,fn=(e,t)=>gi(e,"name",{value:t,configurable:!0}),tt=0,Te=null;function wi(e){return yt(),e.children}fn(wi,"FocusGuards");function yt(){c.useEffect(()=>{Te||(Te={start:qt(),end:qt()});const{start:e,end:t}=Te;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),tt++,()=>{tt===1&&(Te?.start.remove(),Te?.end.remove(),Te=null),tt=Math.max(0,tt-1)}},[])}fn(yt,"useFocusGuards");function qt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}fn(qt,"createFocusGuard");var re=function(){return re=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},re.apply(this,arguments)};function Ar(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 yi(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 ut="right-scroll-bar-position",lt="width-before-scroll-bar",xi="with-scroll-bars-hidden",bi="--removed-body-scroll-bar-size";function Nt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ci(e,t){var n=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 Si=typeof window<"u"?c.useLayoutEffect:c.useEffect,Fn=new WeakMap;function Ei(e,t){var n=Ci(null,function(r){return e.forEach(function(o){return Nt(o,r)})});return Si(function(){var r=Fn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Nt(a,null)}
vendor: 4,153 bytes, lines 1-16
1),i.forEach(function(a){o.has(a)||Nt(a,s)})}Fn.set(n,e)},[e]),n}function Ri(e){return e}function Pi(e,t){t===void 0&&(t=Ri);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var p=s;s=[],p.forEach(i)},f=function(){return Promise.resolve().then(u)};f(),n={push:function(p){s.push(p),f()},filter:function(p){return s=s.filter(p),n}}}};return o}function Oi(e){e===void 0&&(e={});var t=Pi(null);return t.options=re({async:!0,ssr:!1},e),t}var Dr=function(e){var t=e.sideCar,n=Ar(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,re({},n))};Dr.isSideCarExport=!0;function Ai(e,t){return e.useMedium(t),Dr}var Mr=Oi(),Lt=function(){},xt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Lt,onWheelCapture:Lt,onTouchMoveCapture:Lt}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,l=e.shards,d=e.sideCar,v=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,C=Ar(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=d,E=Ei([n,t]),R=re(re({},C),o);return c.createElement(c.Fragment,null,p&&c.createElement(S,{sideCar:Mr,removeScrollBar:f,shards:l,noRelative:v,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),s?c.cloneElement(c.Children.only(a),re(re({},R),{ref:E})):c.createElement(y,re({},R,{className:u,ref:E}),a))});xt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xt.classNames={fullWidth:lt,zeroRight:ut};var Di=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Mi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Di();return t&&e.setAttribute("nonce",t),e}function Ii(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _i(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ti=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Mi())&&(Ii(t,n),_i(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ni=function(){var e=Ti();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ir=function(){var e=Ni(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Li={left:0,top:0,right:0,gap:0},Ft=function(e){return parseInt(e||"",10)||0},Fi=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[Ft(n),Ft(r),Ft(o)]},ki=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Li;var t=Fi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ji=Ir(),je="data-scroll-locked",$i=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(xi,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(je,`] { 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,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(ut,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat(lt,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(ut," .").concat(ut,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(lt," .").concat(lt,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(je,`] { 36 `).concat(bi,": ").concat(a,`px; 37 } 38`)},kn=function(){var e=parseInt(document.body.getAttribute(je)||"0",10);return isFinite(e)?e:0},Wi=function(){c.useEffect(function(){return document.body.setAttribute(je,(kn()+1).toString()),function(){var e=kn()-1;e<=0?document.body.removeAttribute(je):document.body.setAttribute(je,e.toString())}},[])},zi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Wi();var i=c.useMemo(function(){return ki(o)},[o]);return c.createElement(ji,{styles:$i(i,!t,o,n?"":"!important")})},Zt=!1;if(typeof window<"u")try{var nt=Object.defineProperty({},"passive",{get:function(){return Zt=!0,!0}});window.addEventListener("test",nt,nt),window.removeEventListener("test",nt,nt)}catch{Zt=!1}var Ne=Zt?{passive:!1}:!1,Bi=function(e){return e.tagName==="TEXTAREA"},_r=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Bi(e)&&n[t]==="visible")},Ui=function(e){return _r(e,"overflowY")},Hi=function(e){return _r(e,"overflowX")},jn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Tr(e,r);if(o){var i=Nr(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Vi=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ki=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Tr=function(e,t){return e==="v"?Ui(t):Hi(t)},Nr=function(e,t){return e==="v"?Vi(t):Ki(t)},Gi=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yi=function(e,t,n,r,o){var i=Gi(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,u=t.contains(a),f=!1,p=s>0,l=0,d=0;do{if(!a)break;var v=Nr(e,a),h=v[0],m=v[1],g=v[2],b=m-g-i*h;(h||b)&&Tr(e,a)&&(l+=b,d+=h);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(p&&Math.abs(l)<1||!p&&Math.abs(d)<1)&&(f=!0),f},rt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$n=function(e){return[e.deltaX,e.deltaY]},Wn=function(e){return e&&"current"in e?e.current:e},Xi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qi=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Zi=0,Le=[];function Qi(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Zi++)[0],i=c.useState(Ir)[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));var m=yi([e.lockRef.current],(e.shards||[]).map(Wn),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var b=rt(m),y=n.current,x="deltaX"in m?m.deltaX:y[0]-b[0],C="deltaY"in m?m.deltaY:y[1]-b[1],S,E=m.target,R=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in m&&R==="h"&&E.type==="range")return!1;var D=window.getSelection(),O=D&&D.anchorNode,M=O?O===E||O.contains(E):!1;if(M)return!1;var L=jn(R,E);if(!L)return!0;if(L?S=R:(S=R==="v"?"h":"v",L=jn(R,E)),!L)return!1;if(!r.current&&"changedTouches"in m&&(x||C)&&(r.current=S),!S)return!0;var A=r.current||S;return Yi(A,g,m,A==="h"?x:C)},[]),u=c.useCallback(function(m){var g=m;if(!(!Le.length||Le[Le.length-1]!==i)){var b="deltaY"in g?$n(g):rt(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Xi(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}
41if(!y){var x=(s.current.shards||[]).map(Wn).filter(Boolean).filter(function(S){return S.contains(g.target)}),C=x.length>0?a(g,x[0]):!s.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),f=c.useCallback(function(m,g,b,y){var x={name:m,delta:g,target:b,should:y,shadowParent:Ji(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),p=c.useCallback(function(m){n.current=rt(m),r.current=void 0},[]),l=c.useCallback(function(m){f(m.type,$n(m),m.target,a(m,e.lockRef.current))},[]),d=c.useCallback(function(m){f(m.type,rt(m),m.target,a(m,e.lockRef.current))},[]);c.useEffect(function(){return Le.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",u,Ne),document.addEventListener("touchmove",u,Ne),document.addEventListener("touchstart",p,Ne),function(){Le=Le.filter(function(m){return m!==i}),document.removeEventListener("wheel",u,Ne),document.removeEventListener("touchmove",u,Ne),document.removeEventListener("touchstart",p,Ne)}},[]);var v=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(i,{styles:qi(o)}):null,v?c.createElement(zi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ji(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const es=Ai(Mr,Qi);var dn=c.forwardRef(function(e,t){return c.createElement(xt,re({},e,{ref:t,sideCar:es}))});dn.classNames=xt.classNames;var ts=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fe=new WeakMap,ot=new WeakMap,it={},kt=0,Lr=function(e){return e&&(e.host||Lr(e.parentNode))},ns=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lr(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})},rs=function(e,t,n,r){var o=ns(t,Array.isArray(e)?e:[e]);it[n]||(it[n]=new WeakMap);var i=it[n],s=[],a=new Set,u=new Set(o),f=function(l){!l||a.has(l)||(a.add(l),f(l.parentNode))};o.forEach(f);var p=function(l){!l||u.has(l)||Array.prototype.forEach.call(l.children,function(d){if(a.has(d))p(d);else try{var v=d.getAttribute(r),h=v!==null&&v!=="false",m=(Fe.get(d)||0)+1,g=(i.get(d)||0)+1;Fe.set(d,m),i.set(d,g),s.push(d),m===1&&h&&ot.set(d,!0),g===1&&d.setAttribute(n,"true"),h||d.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",d,b)}})};return p(t),a.clear(),kt++,function(){s.forEach(function(l){var d=Fe.get(l)-1,v=i.get(l)-1;Fe.set(l,d),i.set(l,v),d||(ot.has(l)||l.removeAttribute(r),ot.delete(l)),v||l.removeAttribute(n)}),kt--,kt||(Fe=new WeakMap,Fe=new WeakMap,ot=new WeakMap,it={})}},Fr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ts(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),rs(r,o,n,"aria-hidden")):function(){return null}},os=Object.defineProperty,Q=(e,t)=>os(e,"name",{value:t,configurable:!0}),pn="Dialog",[kr,Tu]=ve(pn),[is,te]=kr(pn),ss=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),[f,p]=wt({prop:r,defaultProp:o??!1,onChange:i,caller:pn}),[l,d]=c.useState(0),[v,h]=c.useState(0);return w.jsx(is,{scope:t,triggerRef:a,contentRef:u,contentId:Re(),titleId:Re(),descriptionId:Re(),titlePresent:l>0,descriptionPresent:v>0,setTitleCount:d,setDescriptionCount:h,open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(m=>!m),[p]),modal:s,children:n})},"Dialog"),as="DialogTrigger",cs=c.forwardRef(Q(function(t,n){const{__scopeDialog:r,...o}=t,i=te(as,r),s=V(n,i.triggerRef);return w.jsx(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":bt(i.open),...o,ref:s,onClick:F(t.onClick,i.onOpenToggle)})},"DialogTrigger")),jr="DialogPortal",[us,$r]=kr(jr,{forceMount:void 0}),ls=Q(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=te(jr,t);return w.jsx(us,{scope:t,forceMount:n,children:c.Children.map(r,s=>w.jsx(Ze,{present:n||i.open,children:w.jsx(Or,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Qt="DialogOverlay",fs=c.forwardRef(Q(function(t,n){const r=$r(Qt,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=te(Qt,t.__scopeDialog);return s.modal?w.jsx(Ze,{present:o||s.open,children:w.jsx(ps,{...i,ref:n})}):null},"DialogOverlay")),ds=We("DialogOverlay.RemoveScroll"),ps=c.forwardRef(Q(function(t,n){const{__scopeDialog:r,...o}=t,i=te(Qt,r),s=gr(),a=V(n,s);return w.jsx(dn,{as:ds,allowPinchZoom:!0,shards:[i.contentRef],children:w.jsx(B.div,{"data-state":bt(i.open
41),...o,ref:a,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Ke="DialogContent",ms=c.forwardRef(Q(function(t,n){const r=$r(Ke,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=te(Ke,t.__scopeDialog);return w.jsx(Ze,{present:o||s.open,children:s.modal?w.jsx(hs,{...i,ref:n}):w.jsx(vs,{...i,ref:n})})},"DialogContent")),hs=c.forwardRef(Q(function(t,n){const r=te(Ke,t.__scopeDialog),o=c.useRef(null),i=V(n,r.contentRef,o);return c.useEffect(()=>{const s=o.current;if(s)return Fr(s)},[]),w.jsx(Wr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:F(t.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:F(t.onPointerDownOutside,s=>{const a=s.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0;(a.button===2||u)&&s.preventDefault()}),onFocusOutside:F(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),vs=c.forwardRef(Q(function(t,n){const r=te(Ke,t.__scopeDialog),o=c.useRef(!1),i=c.useRef(!1);return w.jsx(Wr,{...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));const a=s.target;r.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})},"DialogContentNonModal")),Wr=c.forwardRef(Q(function(t,n){const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=t,u=te(Ke,r);return yt(),w.jsx(w.Fragment,{children:w.jsx(xr,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:w.jsx(vr,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":bt(u.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl")),gs="DialogTitle",ws=c.forwardRef(Q(function(t,n){const{__scopeDialog:r,...o}=t,i=te(gs,r),{setTitleCount:s}=i;return X(()=>(s(a=>a+1),()=>s(a=>a-1)),[s]),w.jsx(B.h2,{id:i.titleId,...o,ref:n})},"DialogTitle")),ys="DialogDescription",xs=c.forwardRef(Q(function(t,n){const{__scopeDialog:r,...o}=t,i=te(ys,r),{setDescriptionCount:s}=i;return X(()=>(s(a=>a+1),()=>s(a=>a-1)),[s]),w.jsx(B.p,{id:i.descriptionId,...o,ref:n})},"DialogDescription")),bs="DialogClose",Cs=c.forwardRef(Q(function(t,n){const{__scopeDialog:r,...o}=t,i=te(bs,r);return w.jsx(B.button,{type:"button",...o,ref:n,onClick:F(t.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function bt(e){return e?"open":"closed"}Q(bt,"getState");var Ss=Object.defineProperty,me=(e,t)=>
41Ss(e,"name",{value:t,configurable:!0}),zr="Avatar",[Es,Nu]=ve(zr),Rs=[0,()=>{}],[Ps,Br]=Es(zr),Os=c.forwardRef(me(function(t,n){const{__scopeAvatar:r,...o}=t,[i,s]=c.useState("idle"),[a,u]=Hr();return w.jsx(Ps,{scope:r,imageLoadingStatus:i,setImageLoadingStatus:s,imageCount:a,setImageCount:u,children:w.jsx(B.span,{...o,ref:n})})},"Avatar")),As="AvatarImage",Ds=c.forwardRef(me(function(t,n){const{__scopeAvatar:r,src:o,onLoadingStatusChange:i,...s}=t,a=Br(As,r);a.setImageCount;const u=Ur(o,{referrerPolicy:s.referrerPolicy,crossOrigin:s.crossOrigin,loadingStatus:a.imageLoadingStatus,setLoadingStatus:a.setImageLoadingStatus}),f=ie(l=>{i?.(l)}),p=c.useRef(u);return X(()=>{const l=p.current;p.current=u,u!==l&&f(u)},[u,f]),u==="loaded"?w.jsx(B.img,{...s,ref:n,src:o}):null},"AvatarImage")),Ms="AvatarFallback",Is=c.forwardRef(me(function(t,n){const{__scopeAvatar:r,delayMs:o,...i}=t,s=Br(Ms,r),[a,u]=c.useState(o===void 0);return c.useEffect(()=>{if(o!==void 0){const f=window.setTimeout(()=>u(!0),o);return()=>window.clearTimeout(f)}},[o]),a&&s.imageLoadingStatus!=="loaded"?w.jsx(B.span,{...i,ref:n}):null},"AvatarFallback"));function Ur(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:r,crossOrigin:o}){return X(()=>{if(!e){n("error");return}const i=new window.Image,s=me(u=>{const f=u.currentTarget;n(Jt(f))},"handleLoad"),a=me(()=>n("error"),"handleError");return i.addEventListener("load",s),i.addEventListener("error",a),r&&(i.referrerPolicy=r),i.crossOrigin=o??null,i.src=e,n(Jt(i)),()=>{i.removeEventListener("load",s),i.removeEventListener("error",a),n("idle")}},[e,o,r,n]),t}me(Ur,"useImageLoadingStatus");function Jt(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}me(Jt,"getImageLoadingStatus");function Hr(){return Rs}me(Hr,"useImageCount");function _s(e){}me(_s,"useUpdateImageCount");var Ts=Object.defineProperty,Ns=(e,t)=>Ts(e,"name",{value:t,configurable:!0});function Vr(e){const[t,n]=c.useState(void 0);return X(()=>{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,f=Array.isArray(u)?u[0]:u;s=f.inlineSize,a=f.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}Ns(Vr,"useSize");const Ls=["top","right","bottom","left"],xe=Math.min,le=Math.max,dt=Math.round,st=Math.floor,fe=e=>({x:e,y:e}),Fs={left:"right",right:"left",bottom:"top",top:"bottom"};function Kr(e,t,n){return le(e,xe(t,n))}function he(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function mn(e){return e==="x"?"y":"x"}function hn(e){return e==="y"?"height":"width"}function oe(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function vn(e){return mn(oe(e))}function ks(e,t,n){n===void 0&&(n=!1);const r=Be(e),o=vn(e),i=hn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pt(s)),[s,pt(s)]}function js(e){const t=pt(e);return[en(e),t,en(t)]}function en(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zn=["left","right"],Bn=["right","left"],$s=["top","bottom"],Ws=["bottom","top"];function zs(e,t,n){switch(e){case"top":case"bottom":return n?t?Bn:zn:t?zn:Bn;case"left":case"right":return t?$s:Ws;default:return[]}}function Bs(e,t,n,r){const o=Be(e);let i=zs(be(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(en)))),i}function pt(e){const t=be(e);return Fs[t]+e.slice(t.length)}function Us(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 Gr(e){return typeof e!="number"?Us(e):{top:e,right:e,bottom:e,left:e}}function mt(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 Un(e,t,n){let{reference:r,floating:o}=e;const i=oe(t),s=vn(t),a=hn(s),u=be(t),f=i==="y",p=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let v;switch(u){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:l};break;case"left":v={x:r.x-o.width,y:l};break;default:v={x:r.x,y:r.y}}const h=Be(t);return h&&(v[s]+=d*(h==="end"?1:-1)*(n&&f?-1:1)),v}async function Hs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:l="floating",altBoundary:d=!1,padding:v=0}=he(t,e),h=Gr(v),g=a[d?l==="floating"?"reference":"floating":l],b=mt(await i.getClippingRect
vendor: 4,793 bytes, line 41
41({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:p,strategy:u})),y=l==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},S=mt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:u}):y);return{top:(b.top-S.top+h.top)/C.y,bottom:(S.bottom-b.bottom+h.bottom)/C.y,left:(b.left-S.left+h.left)/C.x,right:(S.right-b.right+h.right)/C.x}}const Vs=50,Ks=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:Hs},u=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:l}=Un(f,r,u),d=r,v=0;const h={};for(let m=0;m<i.length;m++){const g=i[m];if(!g)continue;const{name:b,fn:y}=g,{x,y:C,data:S,reset:E}=await y({x:p,y:l,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:f,platform:a,elements:{reference:e,floating:t}});p=x??p,l=C??l,h[b]={...h[b],...S},E&&v<Vs&&(v++,typeof E=="object"&&(E.placement&&(d=E.placement),E.rects&&(f=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:l}=Un(f,d,u)),m=-1)}return{x:p,y:l,placement:d,strategy:o,middlewareData:h}},Gs=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:f,padding:p=0}=he(e,t)||{};if(f==null)return{};const l=Gr(p),d={x:n,y:r},v=vn(o),h=hn(v),m=await s.getDimensions(f),g=v==="y",b=g?"top":"left",y=g?"bottom":"right",x=g?"clientHeight":"clientWidth",C=i.reference[h]+i.reference[v]-d[v]-i.floating[h],S=d[v]-i.reference[v],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let R=E?E[x]:0;(!R||!await(s.isElement==null?void 0:s.isElement(E)))&&(R=a.floating[x]||i.floating[h]);const D=C/2-S/2,O=R/2-m[h]/2-1,M=xe(l[b],O),L=xe(l[y],O),A=R-m[h]-L,I=R/2-m[h]/2+D,N=Kr(M,I,A),W=!u.arrow&&Be(o)!=null&&I!==N&&i.reference[h]/2-(I<M?M:L)-m[h]/2<0,k=W?I<M?I-M:I-A:0;return{[v]:d[v]+k,data:{[v]:N,centerOffset:I-N-k,...W&&{alignmentOffset:k}},reset:W}}}),Ys=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:f}=t,{mainAxis:p=!0,crossAxis:l=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=he(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=be(o),y=oe(a),x=be(a)===a,C=await(u.isRTL==null?void 0:u.isRTL(f.floating)),S=d||(x||!m?[pt(a)]:js(a)),E=h!=="none";!d&&E&&S.push(...Bs(a,m,h,C));const R=[a,...S],D=await u.detectOverflow(t,g),O=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&O.push(D[b]),l){const N=ks(o,s,C);O.push(D[N[0]],D[N[1]])}if(M=[...M,{placement:o,overflows:O}],!O.every(N=>N<=0)){var L,A;const N=(((L=i.flip)==null?void 0:L.index)||0)+1,W=R[N];if(W&&(!(l==="alignment"?y!==oe(W):!1)||M.every(T=>oe(T.placement)===y?T.overflows[0]>0:!0)))return{data:{index:N,overflows:M},reset:{placement:W}};let k=(A=M.filter(_=>_.overflows[0]<=0).sort((_,T)=>_.overflows[1]-T.overflows[1])[0])==null?void 0:A.placement;if(!k)switch(v){case"bestFit":{var I;const _=(I=M.filter(T=>{if(E){const j=oe(T.placement);return j===y||j==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(j=>j>0).reduce((j,P)=>j+P,0)]).sort((T,j)=>T[1]-j[1])[0])==null?void 0:I[0];_&&(k=_);break}case"initialPlacement":k=a;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function Hn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vn(e){return Ls.some(t=>e[t]>=0)}const Xs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=he(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Hn(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Vn(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Hn(s,n.floating);return{data:{escapedOffsets:a,escaped:Vn(a)}}}default:return{}}}}},Yr=new Set(["left","top"]);async function qs(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=be(n),a=Be(n),u=oe(n)==="y",f=Yr.has(s)?-1:1,p=i&&u?-1:1,l=he(t,e);let{mainAxis:d,crossAxis:v,alignmentAxis:h}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}
41:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof h=="number"&&(v=a==="end"?h*-1:h),u?{x:v*p,y:d*f}:{x:d*f,y:v*p}}const Zs=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 qs(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}}}}},Qs=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=>{let{x,y:C}=y;return{x,y:C}}},...f}=he(e,t),p={x:n,y:r},l=await i.detectOverflow(t,f),d=oe(o),v=mn(d);let h=p[v],m=p[d];const g=(y,x)=>Kr(x+l[y==="y"?"top":"left"],x,x-l[y==="y"?"bottom":"right"]);s&&(h=g(v,h)),a&&(m=g(d,m));const b=u.fn({...t,[v]:h,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:s,[d]:a}}}}}},Js=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:f=0,mainAxis:p=!0,crossAxis:l=!0}=he(e,t),d={x:o,y:i},v=oe(s),h=mn(v);let m=d[h],g=d[v];const b=he(f,t),y=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(r=b.crossAxis)!=null?r:0};if(p){const S=h==="y"?"height":"width",E=a.reference[h]-a.floating[S]+y.mainAxis,R=a.reference[h]+a.reference[S]-y.mainAxis;m<E?m=E:m>R&&(m=R)}if(l){var x,C;const S=h==="y"?"width":"height",E=Yr.has(be(s)),R=a.reference[v]-a.floating[S]+(E&&((x=u.offset)==null?void 0:x[v])||0)+(E?0:y.crossAxis),D=a.reference[v]+a.reference[S]+(E?0:((C=u.offset)==null?void 0:C[v])||0)-(E?y.crossAxis:0);g<R?g=R:g>D&&(g=D)}return{[h]:m,[v]:g}}}},ea=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}=he(e,t),u=await o.detectOverflow(t,a),f=be(n),p=Be(n),l=oe(n)==="y",{width:d,height:v}=r.floating;let h,m;f==="top"||f==="bottom"?(h=f,m=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,h=p==="end"?"top":"bottom");const g=v-u.top-u.bottom,b=d-u.left-u.right,y=xe(v-u[h],g),x=xe(d-u[m],b),C=t.middlewareData.shift,S=!C;let E=y,R=x;C!=null&&C.enabled.x&&(R=b),C!=null&&C.enabled.y&&(E=g),S&&!p&&(l?R=d-2*le(u.left,u.right):E=v-2*le(u.top,u.bottom)),await s({...t,availableWidth:R,availableHeight:E});const D=await o.getDimensions(i.floating);return d!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function Ct(){return typeof window<"u"}function Ue(e){return Xr(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ge(e){var t;return(t=(Xr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xr(e){return Ct()?e instanceof Node||e instanceof q(e).Node:!1}function se(e){return Ct()?e instanceof Element||e instanceof q(e).Element:!1}function Ce(e){return Ct()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function Kn(e){return!Ct()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function St(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 ta(e){return/^(table|td|th)$/.test(Ue(e))}function Et(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const na=/transform|translate|scale|rotate|perspective|filter/,ra=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let jt;function gn(e){const t=se(e)?ae(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!wn()&&(Ee(t.backdropFilter)||Ee(t.filter))||na.test(t.willChange||"")||ra.test(t.contain||"")}function oa(e){let t=Pe(e);for(;Ce(t)&&!Ge(t);){if(gn(t))return t;if(Et(t))return null;t=Pe(t)}return null}function wn(){return jt==null&&(jt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),jt}function Ge(e){return/^(html|body|#document)$/.test(Ue(e))}function ae(e){return q(e).getComputedStyle(e)}function Rt(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pe(e){if(Ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kn(e)&&e.host||ge(e);return Kn(t)?t.host:t}function qr(e){const t=Pe(e);return Ge(t)?(e.ownerDocument||e).body:Ce(t)&&St(t)?t:qr(t)}function Ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=qr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=q(o);if(i){const a=tn(s);
41return t.concat(s,s.visualViewport||[],St(o)?o:[],a&&n?Ye(a):[])}else return t.concat(o,Ye(o,[],n))}function tn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zr(e){const t=ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ce(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=dt(n)!==i||dt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function yn(e){return se(e)?e:e.contextElement}function $e(e){const t=yn(e);if(!Ce(t))return fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Zr(t);let s=(i?dt(n.width):n.width)/r,a=(i?dt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ia=fe(0);function Qr(e){const t=q(e);return!wn()||!t.visualViewport?ia:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sa(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===q(e)}function Oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=yn(e);let s=fe(1);t&&(r?se(r)&&(s=$e(r)):s=$e(e));const a=sa(i,n,r)?Qr(i):fe(0);let u=(o.left+a.x)/s.x,f=(o.top+a.y)/s.y,p=o.width/s.x,l=o.height/s.y;if(i&&r){const d=q(i),v=se(r)?q(r):r;let h=d,m=tn(h);for(;m&&v!==h;){const g=$e(m),b=m.getBoundingClientRect(),y=ae(m),x=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,C=b.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;u*=g.x,f*=g.y,p*=g.x,l*=g.y,u+=x,f+=C,h=q(m),m=tn(h)}}return mt({width:p,height:l,x:u,y:f})}function Pt(e,t){const n=Rt(e).scrollLeft;return t?t.left+n:Oe(ge(e)).left+n}function Jr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Pt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function aa(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ge(r),a=t?Et(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},f=fe(1);const p=fe(0),l=Ce(r);if((l||!i)&&((Ue(r)!=="body"||St(s))&&(u=Rt(r)),l)){const v=Oe(r);f=$e(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const d=s&&!l&&!i?Jr(s,u):fe(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+p.x+d.x,y:n.y*f.y-u.scrollTop*f.y+p.y+d.y}}function ca(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ua(e){const t=Rt(e),n=e.ownerDocument.body,r=le(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=le(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Pt(e);const s=-t.scrollTop;return ae(n).direction==="rtl"&&(i+=le(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:s}}const la=25;function fa(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=q(e),i=ge(e),s=o.visualViewport;let a=i.clientWidth,u=i.clientHeight,f=0,p=0;if(s){const d=!wn()||t==="fixed";r?d||(f=-s.offsetLeft,p=-s.offsetTop):(a=s.width,u=s.height,d&&(f=s.offsetLeft,p=s.offsetTop))}if(Pt(i)<=0){const d=i.ownerDocument,v=d.body,h=getComputedStyle(v),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(i.clientWidth-v.clientWidth-m),b=getComputedStyle(i).scrollbarGutter==="stable both-edges"?g/2:g;b<=la&&(a-=b)}return{width:a,height:u,x:f,y:p}}function da(e,t){const n=Oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$e(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,f=r*i.y;return{width:s,height:a,x:u,y:f}}function Gn(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=fa(e,n,t);else if(t==="document")r=ua(ge(e));else if(se(t))r=da(t,n);else{const o=Qr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mt(r)}function pa(e,t){const n=t.get(e);if(n)return n;let r=Ye(e,[],!1).filter(a=>se(a)&&Ue(a)!=="body"),o=null;const i=ae(e).position==="fixed";let s=i?Pe(e):e;for(;se(s)&&!Ge(s);){const a=ae(s),u=gn(s),f=o?o.position:i?"fixed":"";!u&&(f==="fixed"||f==="absolute"&&a.position==="static")?r=r.filter(l=>l!==s):o=a,s=Pe(s)}return t.set(e,r),r}function ma(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Et(t)?[]:pa(t,this._c):[].concat(n),r],a=Gn(t,s[0],o);let u=a.top,f=a.right,p=a.bottom,l=a.left;for(let d=1;d<s.length;d++){const v=Gn(t,s[d],o);u=le(v.top,u),f=xe(v.right,f),p=xe(v.bottom,p),l=le(v.left,l)}return{width:f-l,height:p-u,x:l,y:u}}function ha(e){const{width:t,height:n}=Zr(e);return{width:t,height:n}}function va(e,t,n){const r=Ce(t),o=ge(t),i=n==="fixed",s=Oe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=fe(0);if((r||!i)&&((Ue(t)!=="body"||St(o))&&(a=Rt(t)),r)){const d=Oe(t,!0,i,t);u.x=d.x+t.clientLeft,u.y=d.y+t.clientTop}!r&&o&&(u.x=Pt(o));const f=o&&!r&&!i?Jr(o,a):fe(0),p=s.left+a.scrollLeft-u.x-f.x,l=s.top+a.scrollTop-u.y-f.y;return{x:p,y:l,width:s.width,height:s.height}}function $t(e){return ae(e).position==="static"}function Yn(e,t){if(!Ce(e)||ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ge(e)===n&&(n=n.ownerDocument.body),n}function eo(e,t){const n=q(e);if(Et(e))return n;if(!Ce(e)){let o=Pe(e);for(;o&&!Ge(o);){if(se(o)&&!$t(o))return o;o=Pe(o)}return n}let r=Yn(e,t);for(;r&&ta(r)&&$t(r);)r=Yn(r,t);return r&&Ge(r)&&$t(r)&&!gn(r)?n:r||oa(e)||n}const ga=async function(e){const t=this.getOffsetParent||eo,n=this.getDimensions,r=await n(e.floating);return{reference:va(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wa(e){return ae(e).direction==="rtl"}const ya={convertOffsetParentRelativeRectToViewportRelativeRect:aa,getDocumentElement:ge,getClippingRect:ma,getOffsetParent:eo,getElementRects:ga,getClientRects:ca,getDimensions:ha,getScale:$e,isElement:se,isRTL:wa};function to(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}
vendor: 4,251 bytes, line 41
41function xa(e,t,n){let r=null,o;const i=ge(e);function s(){var p;clearTimeout(o),(p=r)==null||p.disconnect(),r=null}function a(p,l){p===void 0&&(p=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:v,top:h,width:m,height:g}=d;if(p||t(),!m||!g)return;const b=st(h),y=st(i.clientWidth-(v+m)),x=st(i.clientHeight-(h+g)),C=st(v),E={rootMargin:-b+"px "+-y+"px "+-x+"px "+-C+"px",threshold:le(0,xe(1,l))||1};let R=!0;function D(O){const M=O[0].intersectionRatio;if(!to(d,e.getBoundingClientRect()))return a();if(M!==l){if(!R)return a();M?a(!1,M):o=setTimeout(()=>{a(!1,1e-7)},1e3)}R=!1}try{r=new IntersectionObserver(D,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(D,E)}r.observe(e)}const u=q(e),f=()=>a(n);return u.addEventListener("resize",f),a(!0),()=>{u.removeEventListener("resize",f),s()}}function ba(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,f=yn(e),p=o||i?[...f?Ye(f):[],...t?Ye(t):[]]:[];p.forEach(b=>{o&&b.addEventListener("scroll",n),i&&b.addEventListener("resize",n)});const l=f&&a?xa(f,n,i):null;let d=-1,v=null;s&&(v=new ResizeObserver(b=>{let[y]=b;y&&y.target===f&&v&&t&&(v.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),f&&!u&&v.observe(f),t&&v.observe(t));let h,m=u?Oe(e):null;u&&g();function g(){const b=Oe(e);m&&!to(m,b)&&n(),m=b,h=requestAnimationFrame(g)}return n(),()=>{var b;p.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),l?.(),(b=v)==null||b.disconnect(),v=null,u&&cancelAnimationFrame(h)}}const Ca=Zs,Sa=Qs,Ea=Ys,Ra=ea,Pa=Xs,Xn=Gs,Oa=Js,Aa=(e,t,n)=>{const r=new Map,o=n??{},i={...ya,...o.platform,_c:r};return Ks(e,t,{...o,platform:i})};var Da=typeof document<"u",Ma=function(){},ft=Da?c.useLayoutEffect:Ma;function ht(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(!ht(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)&&!ht(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function no(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qn(e,t){const n=no(e);return Math.round(t*n)/n}function Wt(e){const t=c.useRef(e);return ft(()=>{t.current=e}),t}function Ia(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:f}=e,[p,l]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=c.useState(r);ht(d,r)||v(r);const[h,m]=c.useState(null),[g,b]=c.useState(null),y=c.useCallback(T=>{T!==E.current&&(E.current=T,m(T))},[]),x=c.useCallback(T=>{T!==R.current&&(R.current=T,b(T))},[]),C=i||h,S=s||g,E=c.useRef(null),R=c.useRef(null),D=c.useRef(p),O=u!=null,M=Wt(u),L=Wt(o),A=Wt(f),I=c.useCallback(()=>{if(!E.current||!R.current)return;const T={placement:t,strategy:n,middleware:d};L.current&&(T.platform=L.current),Aa(E.current,R.current,T).then(j=>{const P={...j,isPositioned:A.current!==!1};N.current&&!ht(D.current,P)&&(D.current=P,Jn.flushSync(()=>{l(P)}))})},[d,t,n,L,A]);ft(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,l(T=>({...T,isPositioned:!1})))},[f]);const N=c.useRef(!1);ft(()=>(N.current=!0,()=>{N.current=!1}),[]),ft(()=>{if(C&&(E.current=C),S&&(R.current=S),C&&S){if(M.current)return M.current(C,S,I);I()}},[C,S,I,M,O]);const W=c.useMemo(()=>({reference:E,floating:R,setReference:y,setFloating:x}),[y,x]),k=c.useMemo(()=>({reference:C,floating:S}),[C,S]),_=c.useMemo(()=>{const T={position:n,left:0,top:0};if(!k.floating)return T;const j=qn(k.floating,p.x),P=qn(k.floating,p.y);return a?{...T,transform:"translate("+j+"px, "+P+"px)",...no(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:P}},[n,a,k.floating,p.x,p.y]);return c.useMemo(()=>
41({...p,update:I,refs:W,elements:k,floatingStyles:_}),[p,I,W,k,_])}const _a=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?Xn({element:r.current,padding:o}).fn(n):{}:r?Xn({element:r,padding:o}).fn(n):{}}}},Ta=(e,t)=>{const n=Ca(e);return{name:n.name,fn:n.fn,options:[e,t]}},Na=(e,t)=>{const n=Sa(e);return{name:n.name,fn:n.fn,options:[e,t]}},La=(e,t)=>({fn:Oa(e).fn,options:[e,t]}),Fa=(e,t)=>{const n=Ea(e);return{name:n.name,fn:n.fn,options:[e,t]}},ka=(e,t)=>{const n=Ra(e);return{name:n.name,fn:n.fn,options:[e,t]}},ja=(e,t)=>{const n=Pa(e);return{name:n.name,fn:n.fn,options:[e,t]}},$a=(e,t)=>{const n=_a(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Wa=Object.defineProperty,za=(e,t)=>Wa(e,"name",{value:t,configurable:!0}),Ba=c.forwardRef(za(function(t,n){const{children:r,width:o=10,height:i=5,...s}=t;return w.jsx(B.svg,{...s,ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:w.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),Ua=Ba,Ha=Object.defineProperty,de=(e,t)=>Ha(e,"name",{value:t,configurable:!0}),ro="Popper",[oo,io]=ve(ro),[Va,so]=oo(ro),Ka=de(e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null),[i,s]=c.useState(void 0);return w.jsx(Va,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:s,children:n})},"Popper"),Ga="PopperAnchor",Ya=c.forwardRef(de(function(t,n){const{__scopePopper:r,virtualRef:o,...i}=t,s=so(Ga,r),a=c.useRef(null),u=s.onAnchorChange,f=c.useCallback(m=>{a.current=m,m&&u(m)},[u]),p=V(n,f),l=c.useRef(null);c.useEffect(()=>{if(!o)return;const m=l.current;l.current=o.current,m!==l.current&&u(l.current)});const d=s.placementState&&Ot(s.placementState),v=d?.[0],h=d?.[1];return o?null:w.jsx(B.div,{"data-radix-popper-side":v,"data-radix-popper-align":h,...i,ref:p})},"PopperAnchor")),ao="PopperContent",[Xa,qa]=oo(ao),Za=c.forwardRef(de(function(t,n){const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:l=0,sticky:d="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:m,...g}=t,b=so(ao,r),[y,x]=c.useState(null),C=V(n,x),[S,E]=c.useState(null),R=Vr(S),D=R?.width??0,O=R?.height??0,M=o+(s!=="center"?"-"+s:""),L=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},A=Array.isArray(p)?p:[p],I=A.length>0,N={padding:L,boundary:A.filter(co),altBoundary:I},{refs:W,floatingStyles:k,placement:_,isPositioned:T,middlewareData:j}=Ia({strategy:"fixed",placement:M,whileElementsMounted:de((..._e)=>ba(..._e,{animationFrame:h==="always"}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[Ta({mainAxis:i+O,alignmentAxis:a}),f&&Na({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?La():void 0,...N}),f&&Fa({...N}),ka({...N,apply:de(({elements:_e,rects:Rn,availableWidth:To,availableHeight:No})=>{const{width:Lo,height:Fo}=Rn.reference,et=_e.floating.style;et.setProperty("--radix-popper-available-width",`${To}px`),et.setProperty("--radix-popper-available-height",`${No}px`),et.setProperty("--radix-popper-anchor-width",`${Lo}px`),et.setProperty("--radix-popper-anchor-height",`${Fo}px`)},"apply")}),S&&$a({element:S,padding:u}),tc({arrowWidth:D,arrowHeight:O}),v&&ja({strategy:"referenceHidden",...N,boundary:I?N.boundary:void 0})]}),P=b.setPlacementState;X(()=>(P(_),()=>{P(void 0)}),[_,P]);const[ce,ne]=Ot(_),we=ie(m);X(()=>{T&&we?.()},[T,we]);const He=j.arrow?.x,Ve=j.arrow?.y,Je=j.arrow?.centerOffset!==0,[Se,G]=c.useState();return X(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:T?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:w.jsx(Xa,{scope:r,placedSide:ce,placedAlign:ne,onArrowChange:E,arrowX:He,arrowY:Ve,shouldHideArrow:Je,children:w.jsx(B.div,{"data-side":ce,"data-align":ne,...g,ref:C,style:{...g.style,animation:T?g.style?.animation:"none"}})})})},"PopperContent")),Qa="PopperArrow",Ja={top:"bottom",right:"left",bottom:"top",left:"r
41ight"},ec=c.forwardRef(de(function(t,n){const{__scopePopper:r,...o}=t,i=qa(Qa,r),s=Ja[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(Ua,{...o,ref:n,style:{...o.style,display:"block"}})})},"PopperArrow"));function co(e){return e!==null}de(co,"isNotNull");var tc=de(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[f,p]=Ot(n),l={start:"0%",center:"50%",end:"100%"}[p],d=(o.arrow?.x??0)+a/2,v=(o.arrow?.y??0)+u/2;let h="",m="";return f==="bottom"?(h=s?l:`${d}px`,m=`${-u}px`):f==="top"?(h=s?l:`${d}px`,m=`${r.floating.height+u}px`):f==="right"?(h=`${-u}px`,m=s?l:`${v}px`):f==="left"&&(h=`${r.floating.width+u}px`,m=s?l:`${v}px`),{data:{x:h,y:m}}}}),"transformOrigin");function Ot(e){const[t,n="center"]=e.split("-");return[t,n]}de(Ot,"getSideAndAlignFromPlacement");var nc=Ka,rc=Ya,oc=Za,Lu=ec,ic=Object.defineProperty,xn=(e,t)=>ic(e,"name",{value:t,configurable:!0}),zt=!1;function uo(){const[e,t]=c.useState(zt);return c.useEffect(()=>{zt||(zt=!0,t(!0))},[]),e}xn(uo,"useIsHydrated");var lo=Xe[" useSyncExternalStore ".trim().toString()];function fo(){return()=>{}}xn(fo,"subscribe");function po(){return lo(fo,()=>!0,()=>!1)}xn(po,"useIsHydratedModern");var sc=typeof lo=="function"?po:uo,ac=Object.defineProperty,Ae=(e,t)=>ac(e,"name",{value:t,configurable:!0}),Bt="rovingFocusGroup.onEntryFocus",cc={bubbles:!1,cancelable:!0},At="RovingFocusGroup",[nn,mo,uc]=sn(At),[lc,ho]=ve(At,[uc]),[fc,dc]=lc(At),pc=c.forwardRef(Ae(function(t,n){return w.jsx(nn.Provider,{scope:t.__scopeRovingFocusGroup,children:w.jsx(nn.Slot,{scope:t.__scopeRovingFocusGroup,children:w.jsx(mc,{...t,ref:n})})})},"RovingFocusGroup")),mc=c.forwardRef(Ae(function(t,n){const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:l=!1,...d}=t,v=c.useRef(null),h=V(n,v),m=cn(s),[g,b]=wt({prop:a,defaultProp:u??null,onChange:f,caller:At}),[y,x]=c.useState(!1),C=ie(p),S=mo(r),E=c.useRef(!1),[R,D]=c.useState(0);return c.useEffect(()=>{const O=v.current;if(O)return O.addEventListener(Bt,C),()=>O.removeEventListener(Bt,C)},[C]),w.jsx(fc,{scope:r,orientation:o,dir:m,loop:i,currentTabStopId:g,onItemFocus:c.useCallback(O=>b(O),[b]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>D(O=>O+1),[]),onFocusableItemRemove:c.useCallback(()=>D(O=>O-1),[]),children:w.jsx(B.div,{tabIndex:y||R===0?-1:0,"data-orientation":o,...d,ref:h,style:{outline:"none",...t.style},onMouseDown:F(t.onMouseDown,()=>{E.current=!0}),onFocus:F(t.onFocus,O=>{const M=!E.current;if(O.target===O.currentTarget&&M&&!y){const L=new CustomEvent(Bt,cc);if(O.currentTarget.dispatchEvent(L),!L.defaultPrevented){const A=S().filter(_=>_.focusable),I=A.find(_=>_.active),N=A.find(_=>
41_.id===g),k=[I,N,...A].filter(Boolean).map(_=>_.ref.current);bn(k,l)}}E.current=!1}),onBlur:F(t.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),hc="RovingFocusGroupItem",vc=c.forwardRef(Ae(function(t,n){const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,children:a,...u}=t,f=Re(),p=s||f,l=dc(hc,r),d=l.currentTabStopId===p,v=mo(r),{onFocusableItemAdd:h,onFocusableItemRemove:m,currentTabStopId:g}=l,b=sc();return X(()=>{if(!(!b||!o))return h(),()=>m()},[b,o,h,m]),c.useEffect(()=>{if(!(b||!o))return h(),()=>m()},[b,o,h,m]),w.jsx(nn.ItemSlot,{scope:r,id:p,focusable:o,active:i,children:w.jsx(B.span,{tabIndex:d?0:-1,"data-orientation":l.orientation,...u,ref:n,onMouseDown:F(t.onMouseDown,y=>{o?l.onItemFocus(p):y.preventDefault()}),onFocus:F(t.onFocus,()=>l.onItemFocus(p)),onKeyDown:F(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){l.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const x=go(y,l.orientation,l.dir);if(x!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let S=v().filter(E=>E.focusable).map(E=>E.ref.current);if(x==="last")S.reverse();else if(x==="prev"||x==="next"){x==="prev"&&S.reverse();const E=S.indexOf(y.currentTarget);S=l.loop?wo(S,E+1):S.slice(E+1)}setTimeout(()=>bn(S))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:g!=null}):a})})},"RovingFocusGroupItem")),gc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vo(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Ae(vo,"getDirectionAwareKey");function go(e,t,n){const r=vo(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gc[r]}Ae(go,"getFocusIntent");function bn(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Ae(bn,"focusFirst");function wo(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Ae(wo,"wrapArray");var wc=pc,yc=vc,xc=Object.defineProperty,$=(e,t)=>xc(e,"name",{value:t,configurable:!0}),bc=["Enter"," "],Cc=["ArrowDown","PageUp","Home"],yo=["ArrowUp","PageDown","End"],Sc=[...Cc,...yo],Dt="Menu",[rn,Ec,Rc]=sn(Dt),[De,xo]=ve(Dt,[Rc,io,ho]),Cn=io(),bo=ho(),[Pc,Qe]=De(Dt),[Oc,Sn]=De(Dt),Ac=$(e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=Cn(t),[u,f]=c.useState(null),p=c.useRef(!1),l=ie(i),d=cn(o);return c.useEffect(()=>{const v=$(()=>{p.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},"handleKeyDown"),h=$(()=>p.current=!1,"handlePointer");return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),c.useEffect(()=>{if(!n)return;const v=$(()=>l(!1),"handleBlur");return window.addEventListener("blur",v),()=>window.removeEventListener("blur",v)},[n,l]),w.jsx(nc,{...a,children:w.jsx(Pc,{scope:t,open:n,onOpenChange:l,content:u,onContentChange:f,children:w.jsx(Oc,{scope:t,onClose:c.useCallback(()=>l(!1),[l]),isUsingKeyboardRef:p,dir:d,modal:s,children:r})})})},"Menu"),Dc=c.forwardRef($(function(t,n){const{__scopeMenu:r,...o}=t,i=Cn(r);return w.jsx(rc,{...i,...o,ref:n})},"MenuAnchor")),Co="MenuPortal",[Mc,Ic]=De(Co,{forceMount:void 0}),_c=$(e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Qe(Co,t);return w.jsx(Mc,{scope:t,forceMount:n,children:w.jsx(Ze,{present:n||i.open,children:w.jsx(Or,{asChild:!0,container:o,children:r})})})},"MenuPortal"),ye="MenuContent",[Tc,So]=De(ye),Nc=c.forwardRef($(function(t,n){const r=Ic(ye,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,s=Qe(ye,t.__scopeMenu),a=Sn(ye,t.__scopeMenu);return w.jsx(rn.Provider,{scope:t.__scopeMenu,children:w.jsx(Ze,{present:o||s.open,children:w.jsx(rn.Slot,{scope:t.__scopeMenu,children:a.modal?w.jsx(Lc,{...i,ref:n}):w.jsx(Fc,{...i,ref:n})})})})},"MenuContent")),Lc=c.forwardRef($(function(t,n){const r=Qe(ye,t.__scopeMenu),o=c.useRef(null),i=V(n,o);return c.useEffect(()=>{const s=o.current;if(s)return Fr(s)},[]),w.jsx(Eo,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:F(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),Fc=c.forwardRef($(function(t,n){const r=Qe(ye,t.__scopeMenu);return w.jsx(Eo,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}
41,"MenuRootContentNonModal")),kc=We("MenuContent.ScrollLock"),Eo=c.forwardRef($(function(t,n){const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:v,onDismiss:h,disableOutsideScroll:m,...g}=t,b=Qe(ye,r),y=Sn(ye,r),x=Cn(r),C=bo(r),S=Ec(r),[E,R]=c.useState(null),D=c.useRef(null),O=V(n,D,b.onContentChange),M=c.useRef(0),L=c.useRef(""),A=c.useRef(0),I=c.useRef(null),N=c.useRef("right"),W=c.useRef(0),k=m?dn:c.Fragment,_=m?{as:kc,allowPinchZoom:!0}:void 0,T=$(P=>{const ce=L.current+P,ne=S().filter(G=>!G.disabled),we=document.activeElement,He=ne.find(G=>G.ref.current===we)?.textValue,Ve=ne.map(G=>G.textValue),Je=Do(Ve,ce,He),Se=ne.find(G=>G.textValue===Je)?.ref.current;$((function G(_e){L.current=_e,window.clearTimeout(M.current),_e!==""&&(M.current=window.setTimeout(()=>G(""),1e3))}),"updateSearch")(ce),Se&&setTimeout(()=>Se.focus())},"handleTypeaheadSearch");c.useEffect(()=>()=>window.clearTimeout(M.current),[]),yt();const j=c.useCallback(P=>N.current===I.current?.side&&Io(P,I.current?.area),[]);return w.jsx(Tc,{scope:r,searchRef:L,onItemEnter:c.useCallback(P=>{j(P)&&P.preventDefault()},[j]),onItemLeave:c.useCallback(P=>{j(P)||(D.current?.focus(),R(null))},[j]),onTriggerLeave:c.useCallback(P=>{j(P)&&P.preventDefault()},[j]),pointerGraceTimerRef:A,onPointerGraceIntentChange:c.useCallback(P=>{I.current=P},[]),children:w.jsx(k,{..._,children:w.jsx(xr,{asChild:!0,trapped:i,onMountAutoFocus:F(s,P=>{P.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:w.jsx(vr,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:v,onDismiss:h,children:w.jsx(wc,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:E,onCurrentTabStopIdChange:R,onEntryFocus:F(f,P=>{y.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(oc,{role:"menu","aria-orientation":"vertical","data-state":Ro(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...g,ref:O,style:{outline:"none",...g.style},onKeyDown:F(g.onKeyDown,P=>{const ne=P.target.closest("[data-radix-menu-content]")===P.currentTarget,we=P.ctrlKey||P.altKey||P.metaKey,He=P.key.length===1;ne&&(P.key==="Tab"&&P.preventDefault(),!we&&He&&T(P.key));const Ve=D.current;if(P.target!==Ve||!Sc.includes(P.key))return;P.preventDefault();const Se=S().filter(G=>!G.disabled).map(G=>G.ref.current);yo.includes(P.key)&&Se.reverse(),Oo(Se)}),onBlur:F(t.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(M.current),L.current="")}),onPointerMove:F(t.onPointerMove,vt(P=>{const ce=P.target,ne=W.current!==P.clientX;if(P.currentTarget.contains(ce)&&ne){const we=P.clientX>W.current?"right":"left";N.current=we,W.current=P.clientX}}))})})})})})})},"MenuContentImpl")),jc=c.forwardRef($(function(t,n){const{__scopeMenu:r,...o}=t;return w.jsx(B.div,{...o,ref:n})},"MenuLabel")),on="MenuItem",Zn="menu.itemSelect",$c=c.forwardRef($(function(t,n){const{disabled:r=!1,onSelect:o,...i}=t,s=c.useRef(null),a=Sn(on,t.__scopeMenu),u=So(on,t.__scopeMenu),f=V(n,s),p=c.useRef(!1),l=$(()=>{const d=s.current;if(!r&&d){const v=new CustomEvent(Zn,{bubbles:!0,cancelable:!0});d.addEventListener(Zn,h=>o?.(h),{once:!0}),Qn(d,v),v.defaultPrevented?p.current=!1:a.onClose()}},"handleSelect");return w.jsx(Wc,{...i,ref:f,disabled:r,onClick:F(t.onClick,l),onPointerDown:d=>{t.onPointerDown?.(d),p.current=!0},onPointerUp:F(t.onPointerUp,d=>{p.current||d.currentTarget?.click()}),onKeyDown:F(t.onKeyDown,d=>{r||d.target!==d.currentTarget||u.searchRef.current!==""&&d.key===" "||bc.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})},"MenuItem")),Wc=c.forwardRef($(function(t,n){const{__scopeMenu:r,disabled:o=!1,textValue:i,...s}=t,a=So(on,r),u=bo(r),f=c.useRef(null),p=V(n,f),[l,d]=c.useState(!1),[v,h]=c.useState("");return c.useEffect(()=>{const m=f.current;m&&h((m.textContent??"").trim())},[s.children]),w.jsx(rn.ItemSlot,{scope:r,disabled:o,textValue:i??v,children:w.jsx(yc,{asChild:!0,...u,focusable:!o,children:w.jsx(B.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:p,onPointerMove:F(t.onPointerMove,vt(m=>{o?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focu
41s({preventScroll:!0}))})),onPointerLeave:F(t.onPointerLeave,vt(m=>a.onItemLeave(m))),onFocus:F(t.onFocus,()=>d(!0)),onBlur:F(t.onBlur,()=>d(!1))})})})},"MenuItemImpl")),zc="MenuRadioGroup",[Fu,ku]=De(zc,{value:void 0,onValueChange:$(()=>{},"onValueChange")}),Bc="MenuItemIndicator",[ju,$u]=De(Bc,{checked:!1}),Uc=c.forwardRef($(function(t,n){const{__scopeMenu:r,...o}=t;return w.jsx(B.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})},"MenuSeparator")),Hc="MenuSub",[Wu,zu]=De(Hc);function Ro(e){return e?"open":"closed"}$(Ro,"getOpenState");function Po(e){return e==="indeterminate"}$(Po,"isIndeterminate");function Vc(e){return Po(e)?"indeterminate":e?"checked":"unchecked"}$(Vc,"getCheckedState");function Oo(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}$(Oo,"focusFirst");function Ao(e,t){return e.map((n,r)=>e[(t+r)%e.length])}$(Ao,"wrapArray");function Do(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Ao(e,Math.max(i,0));o.length===1&&(s=s.filter(f=>f!==n));const u=s.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}$(Do,"getNextMatch");function Mo(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],f=a.x,p=a.y,l=u.x,d=u.y;p>r!=d>r&&n<(l-f)*(r-p)/(d-p)+f&&(o=!o)}return o}$(Mo,"isPointInPolygon");function Io(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Mo(n,t)}$(Io,"isPointerInGraceArea");function vt(e){return t=>t.pointerType==="mouse"?e(t):void 0}$(vt,"whenMouse");var Kc=Ac,Gc=Dc,Yc=_c,Xc=Nc,qc=jc,Zc=$c,Qc=Uc,Jc=Object.defineProperty,Me=(e,t)=>Jc(e,"name",{value:t,configurable:!0}),En="DropdownMenu",[eu,Bu]=ve(En,[xo]),Ie=xo(),[tu,_o]=eu(En),nu=Me(e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,u=Ie(t),f=c.useRef(null),[p,l]=wt({prop:o,defaultProp:i??!1,onChange:s,caller:En});return w.jsx(tu,{scope:t,triggerId:Re(),triggerRef:f,contentId:Re(),open:p,onOpenChange:l,onOpenToggle:c.useCallback(()=>l(d=>!d),[l]),modal:a,children:w.jsx(Kc,{...u,open:p,onOpenChange:l,dir:r,modal:a,children:n})})},"DropdownMenu"),ru="DropdownMenuTrigger",ou=c.forwardRef(Me(function(t,n){const{__scopeDropdownMenu:r,disabled:o=!1,...i}=t,s=_o(ru,r),a=Ie(r),u=V(n,s.triggerRef);return w.jsx(Gc,{asChild:!0,...a,children: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:F(t.onPointerDown,f=>{!o&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:F(t.onKeyDown,f=>{o||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})},"DropdownMenuTrigger")),iu=Me(e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ie(t);return w.jsx(Yc,{...r,...n})},"DropdownMenuPortal"),su="DropdownMenuContent",au=c.forwardRef(Me(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=_o(su,r),s=Ie(r),a=c.useRef(!1);return w.jsx(Xc,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...o,ref:n,onCloseAutoFocus:F(t.onCloseAutoFocus,u=>{a.current||i.triggerRef.current?.focus(),a.current=!1,u.preventDefault()}),onInteractOutside:F(t.onInteractOutside,u=>{const f=u.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,l=f.button===2||p;(!i.modal||l)&&(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")),cu=c.forwardRef(Me(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Ie(r);return w.jsx(qc,{...i,...o,ref:n})},"DropdownMenuLabel")),uu=c.forwardRef(Me(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Ie(r);return w.jsx(Zc,{...i,...o,ref:n})},"DropdownMenuItem")),lu=c.forwardRef(Me(function(t,n){const{__scopeDropdownMenu:r,...o}=t,i=Ie(r);return w.jsx(Qc,{...i,...o,ref:n})},"DropdownMenuSeparator")),fu=nu,du=ou,pu=iu,mu=au,hu=cu,vu=uu,gu=lu;const at="files.xinquji.colapanda.com/file",wu="https://xinquji.remoteb.com/storage",yu="https://ph-files.imgix.net";function Uu(e,t){return t==="en"&&e.english_name?e.english_name:e.name}function Hu(e,t,n,r){return e?e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")?e:r==="ph"?`${yu}/${e}?auto=format`:(r||"cos")==="r2"?`${wu}/${e}`:t==null?`//${at}/${e}`:t&&n?`//${at}/${e}?imageView2/1/w/${n}/h/${t}`:t?`//${at}/${e}?imageView2/1/w/${t}/h/${t}`:`//${at}/${e}`:""}function Vu({className:e,size:t="default",...n}){return w.jsx(Os,{"data-slot":"avatar","data-size":t,className:ee("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),...n})}function Ku({className:e,...t}){return w.jsx(Ds,{"data-slot":"avatar-image",className:ee("aspect-square size-full rounded-full object-cover",e),...t})}function Gu({className:e,...t}){return w.jsx(Is,{"data-slot":"avatar-fallback",className:ee("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}function Yu({...e}){return w.jsx(ss,{"data-slot":"sheet",...e})}function Xu({...e}){return w.jsx(cs,{"data-slot":"sheet-trigger",...e})}function xu({...e}){return w.jsx(ls,{"data-slot":"sheet-portal",...e})}function bu({className:e,...t}){return w.jsx(fs,{"data-slot":"sheet-overlay",className:ee("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function qu({className:e,children:t,side:n="right",showCloseButton:r=!0,...o}){return w.jsxs(xu,{children:[w.jsx(bu,{}),w.jsxs(ms,{"data-slot":"sheet-content","data-side":n,className:ee("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:sli
41de-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",e),...o,children:[t,r&&w.jsx(Cs,{"data-slot":"sheet-close",asChild:!0,children:w.jsxs(ko,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[w.jsx(jo,{}),w.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function Zu({className:e,...t}){return w.jsx("div",{"data-slot":"sheet-header",className:ee("flex flex-col gap-0.5 p-4",e),...t})}function Qu({className:e,...t}){return w.jsx(ws,{"data-slot":"sheet-title",className:ee("font-heading text-base font-medium text-foreground",e),...t})}function Ju({className:e,...t}){return w.jsx(xs,{"data-slot":"sheet-description",className:ee("text-sm text-muted-foreground",e),...t})}function el({...e}){return w.jsx(fu,{"data-slot":"dropdown-menu",...e})}function tl({...e}){return w.jsx(du,{"data-slot":"dropdown-menu-trigger",...e})}function nl({className:e,align:t="start",sideOffset:n=4,...r}){return w.jsx(pu,{children:w.jsx(mu,{"data-slot":"dropdown-menu-content",sideOffset:n,align:t,className:ee("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})}function rl({className:e,inset:t,variant:n="default",...r}){return w.jsx(vu,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:ee("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})}function ol({className:e,inset:t,...n}){return w.jsx(hu,{"data-slot":"dropdown-menu-label","data-inset":t,className:ee("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",e),...n})}function il({className:e,...t}){return w.jsx(gu,{"data-slot":"dropdown-menu-separator",className:ee("-mx-1 my-1 h-px bg-border",e),...t})}export{Ju as $,rc as A,cs as B,oc as C,el as D,Lu as E,xr as F,X as G,Vr as H,yc as I,Iu as J,Vu as K,Du as L,Ku as M,Gu as N,ol as O,Ze as P,il as Q,dn as R,_u as S,Mu as T,Yu as U,Xu as V,qu as W,Zu as X,Qu as Y,sn as Z,ie as _,tl as a,nl as b,rl as c,ve as d,io as e,F as f,Or as g,Fr as h,vr as i,wt as j,nc as k,Re as l,ho as m,cn as n,wc as o,Tu as p,ms as q,ws as r,Hu as s,Uu as t,yt as u,xs as v,Cs as w,ls as x,fs as y,ss 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.