1import{iF as Wt,iG as qe,r as c,hX as U,iH as ct,iI as ft,h$ as Te,iJ as qt,iK as ht,i0 as H,id as Me,gB as Y,i3 as Oe,hZ as g,ik as G,iL as ne,iM as Yt,iN as jt,iO as Xt,is as pe,iP as Ie,i5 as ge,ii as Gt,ie as vt,il as ve,hY as yt,i7 as pt,iQ as Jt,it as se,i4 as Zt,iR as Qt,iS as Ye,i1 as _t,iT as bt,iU as je,iV as el,iW as tl,iX as Xe,ib as gt,iY as ll,im as il,ip as $t,iZ as nl,ir as ce,iy as mt,i_ as xt,iw as rl,iD as ol,i$ as sl}from"./main-BI9HT0KU.js";import{$ as al}from"./RSPContexts-By3PrYlY.js";try{let i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new i.Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="a20703e8-d74f-4c7c-84a8-881e478f8df7",i._sentryDebugIdIdentifier="sentry-dbid-a20703e8-d74f-4c7c-84a8-881e478f8df7")}catch{}class ul{get currentNode(){return this._currentNode}set currentNode(e){if(!qe(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const t=[];let l=e,n=e;for(this._currentNode=e;l&&l!==this.root;)if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=l,s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});t.push(s),s.currentNode=n,this._currentSetFor.add(s),l=n=o.host}else l=l.parentNode;const r=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(r),r.currentNode=n,this._currentSetFor.add(r),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return qe(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let t=this._walkerStack[0].lastChild();return t&&(this.currentNode=t),t}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter=="function"?n=this.filter(e):!((t=this.filter)===null||t===void 0)&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let l=this.nextNode();return l&&(this.currentNode=l),l}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null;return null}const t=e.previousNode();if(t){if(t.shadowRoot){var l;let r;if(typeof this.filter=="function"?r=this.filter(t):!((l=this.filter)===null||l===void 0)&&l.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let o=this.lastChild();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,l,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const a=o.shadowRoot;if(a){const u=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(o);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=n??null,this.whatToShow=l??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,l,this._acceptNode));const r=t.shadowRoot;if(r){const o=this._doc.createTreeWalker(r,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function dl(i,e,t,l){return Wt()?new ul(i,e,t,l):i.createTreeWalker(e,t,l)}function Ge(i,e){const t=c.useRef(!0),l=c.useRef(null);U(()=>(t.current=!0,()=>{t.current=!1}),[]),U(()=>{t.current?t.current=!1:(!l.current||e.some((n,r)=>!Object.is(n,l[r])))&&i(),l.current=e},e)}function ue(i,e){if(!i)return!1;let t=window.getComputedStyle(i),l=/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY);return l&&e&&(l=i.scrollHeight!==i.clientHeight||i.scrollWidth!==i.clientWidth),l}function cl(i,e){let t=i;for(ue(t,e)&&(t=t.parentElement);t&&!ue(t,e);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function fl(i,e){const t=[];for(;i&&i!==document.documentElement;)ue(i,e)&&t.push(i),i=i.parentElement;return t}function re(i){return ct()?i.metaKey:i.ctrlKey}const hl=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Mi(i){return i instanceof HTMLInputElement&&!hl.has(i.type)||i instanceof HTMLTextAreaElement||i instanceof HTMLElement&&i.isContentEditable}let vl=0;const Ee=new Map;function yl(i){let[e,t]=c.useState();return U(()=>
1{if(!i)return;let l=Ee.get(i);if(l)t(l.element.id);else{let n=`react-aria-description-${vl++}`;t(n);let r=document.createElement("div");r.id=n,r.style.display="none",r.textContent=i,document.body.appendChild(r),l={refCount:0,element:r},Ee.set(i,l)}return l.refCount++,()=>{l&&--l.refCount===0&&(l.element.remove(),Ee.delete(i))}},[i]),{"aria-describedby":i?e:void 0}}function St(i,e){let t=Je(i,e,"left"),l=Je(i,e,"top"),n=e.offsetWidth,r=e.offsetHeight,o=i.scrollLeft,s=i.scrollTop,{borderTopWidth:a,borderLeftWidth:u,scrollPaddingTop:h,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:b}=getComputedStyle(i),{scrollMarginTop:p,scrollMarginRight:K,scrollMarginBottom:$,scrollMarginLeft:S}=getComputedStyle(e),m=o+parseInt(u,10),k=s+parseInt(a,10),E=m+i.clientWidth,I=k+i.clientHeight,C=parseInt(h,10)||0,T=parseInt(f,10)||0,D=parseInt(d,10)||0,A=parseInt(b,10)||0,V=parseInt(p,10)||0,L=parseInt($,10)||0,B=parseInt(K,10)||0,M=parseInt(S,10)||0,W=t-M,O=t+n+B,q=l-V,y=l+r+L,w=o+parseInt(u,10)+A,N=E-D,v=s+parseInt(a,10)+C,F=I-T;(W>w||O<N)&&(W<=o+A?o=W-parseInt(u,10)-A:O>E-D&&(o+=O-E+D)),(q>v||y<F)&&(q<=k+C?s=q-parseInt(a,10)-C:y>I-T&&(s+=y-I+T)),i.scrollTo({left:o,top:s})}function Je(i,e,t){const l=t==="left"?"offsetLeft":"offsetTop";let n=0;for(;e.offsetParent&&(n+=e[l],e.offsetParent!==i);){if(e.offsetParent.contains(i)){n-=i[l];break}e=e.offsetParent}return n}function Ze(i,e){if(i&&document.contains(i)){let o=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(o).overflow==="hidden")&&!ft()){var t;let{left:a,top:u}=i.getBoundingClientRect();i==null||(t=i.scrollIntoView)===null||t===void 0||t.call(i,{block:"nearest"});let{left:h,top:d}=i.getBoundingClientRect();if(Math.abs(a-h)>1||Math.abs(u-d)>1){var l,n,r;e==null||(n=e.containingElement)===null||n===void 0||(l=n.scrollIntoView)===null||l===void 0||l.call(n,{block:"center",inline:"center"}),(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"nearest"})}}else{let a=fl(i);for(let u of a)St(u,i)}}}function pl(i,e){let{collection:t,onLoadMore:l,scrollOffset:n=1}=i,r=c.useRef(null),o=Te(s=>{for(let a of s)a.isIntersecting&&l&&l()});U(()=>(e.current&&(r.current=new IntersectionObserver(o,{root:cl(e?.current),rootMargin:`0px ${100*n}% ${100*n}% ${100*n}%`}),r.current.observe(e.current)),()=>{r.current&&r.current.disconnect()}),[t,o,e,n])}function bl(i){const e=c.version.split(".");return parseInt(e[0],10)>=19?i:i?"true":void 0}const gl="react-aria-clear-focus",$l="react-aria-focus",ml=500;function xl(i){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:n,threshold:r=ml,accessibilityDescription:o}=i;const s=c.useRef(void 0);let{addGlobalListener:a,removeGlobalListener:u}=qt(),{pressProps:h}=ht({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(t&&t({...f,type:"longpressstart"}),s.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),H(f.target).activeElement!==f.target&&Me(f.target),n&&n({...f,type:"longpress"}),s.current=void 0},r),f.pointerType==="touch")){let b=p=>{p.preventDefault()};a(f.target,"contextmenu",b,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(f){s.current&&clearTimeout(s.current),l&&(f.pointerType==="mouse"||f.pointerType==="touch")&&l({...f,type:"longpressend"})}}),d=yl(n&&!e?o:void 0);return{longPressProps:Y(h,d)}}let De=new Map;function Kt(i){let{locale:e}=Oe(),t=e+(i?Object.entries(i).sort((n,r)=>n[0]<r[0]?-1:1).join():"");if(De.has(t))return De.get(t);let l=new Intl.Collator(e,i);return De.set(t,l),l}const Qe=g.createContext(null),Fe="react-aria-focus-scope-restore";let P=null;function Sl(i){let{children:e,contain:t,restoreFocus:l,autoFocus:n}=i,r=c.useRef(null),o=c.useRef(null),s=c.useRef([]),{parentNode:a}=c.useContext(Qe)||{},u=c.useMemo(()=>new Le({scopeRef:s}),[s]);U(()=>{let f=a||R.root;if(R.getTreeNode(f.scopeRef)&&P&&!be(P,f.scopeRef)){let b=R.getTreeNode(P);b&&(f=b)}f.addChild(u),R.addNode(u)},[u,a]),U(()=>{let f=R.getTreeNode(s);f&&(f.contain=!!t)},[t]),U(()=>{var f;let b=(f=r.current)===null||f===void 0?void 0:f.nextSibling,p=[],K=$=>$.stopPropagation();for(;b&&b!==o.current;)p.push(b),b.addEventListener(Fe,K),b=b.nextSibling;return s.current=p,()=>{for(let $ of p)$.removeEventListener(Fe,K)}},[e]),El(s,l,t),Cl(s,t),Dl(s,l,t),kl(s,n),c.useEffect(()=>{const f=G(H(s.current?s.current[0]:void 0));let b=null;if(j(f,s.current)){for(let p of R.traverse())p.scopeRef&&j(f,p.scopeRef.current)&&(b=p);b===R.getTreeNode(s)&&(P=b.scopeRef)}},[s]),U(()=>()=>{var f,b,p;let K=(p=(b=R.getTreeNode(s))===null||b===void 0||(f=b.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&p!==void 0?p:null;(s===P||be(s,P))&&(!K||R.getTreeNode(K))&&(P=K),R.removeTreeNode(s)},[s]);let h=c.useMemo(()=>Kl(s),[]),d=c.useMemo(()=>({focusManager:h,parentNode:u}),[u,h]);return g.createElement(Qe.Provider,{value:d},g.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:r}),e,g.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Kl(i){return{focusNext(e={}){let t=i.current,{from:l,tabbable:n,wrap:r,accept:o}=e;var s;let a=l||G(H((s=t[0])!==null&&s!==void 0?s:void 0)),u=t[0].previousElementSibling,h=ie(t),d=Q(h,{tabbable:n,accept:o},t);d.currentNode=j(a,t)?a:u;let f=d.nextNode();return!f&&r&&(d.currentNode=u,f=d.nextNode()),f&&Z(f,!0),f},focusPrevious(e={}){let t=i.current,{from:l,tabbable:n,wrap:r,accept:o}=e;var s;let a=l||G(H((s=t[0])!==null&&s!==void 0?s:void 0)),u=t[t.length-1].nextElementSibling,h=ie(t),d=Q(h,{tabbable:n,accept:o},t);d.currentNode=j(a,t)?a:u;let f=d.previousNode();return!f&&r&&(d.currentNode=u,f=d.previousNode()),f&&Z(f,!0),f},focusFirst(e={}){let t=i.current,{tabbable:l,accept:n}=e,r=ie(t),o=Q(r,{tabbable:l,accept:n},t);o.currentNode=t[0].previousElementSibling;let s=o.nextNode();return s&&Z(s,!0),s},focusLast(e={}){let t=i.current,{tabbable:l,accept:n}=e,r=ie(t),o=Q(r,{tabbable:l,accept:n},t);o.currentNode=t[t.length-1].nextElementSibling;let s=o.previousNode();return s&&Z(s,!0),s}}}function ie(i){return i[0].parentElement}function ae(i){let e=R.getTreeNode(P);for(;e&&e.scopeRef!==i;){if(e.contain)return!1;e=e.parent}return!0}function wl(i){if(i.checked)return!0;let e=[];
1if(!i.form)e=[...H(i).querySelectorAll(`input[type="radio"][name="${CSS.escape(i.name)}"]`)].filter(r=>!r.form);else{var t,l;let r=(l=i.form)===null||l===void 0||(t=l.elements)===null||t===void 0?void 0:t.namedItem(i.name);e=[...r??[]]}return e?!e.some(r=>r.checked):!1}function Cl(i,e){let t=c.useRef(void 0),l=c.useRef(void 0);U(()=>{let n=i.current;if(!e){l.current&&(cancelAnimationFrame(l.current),l.current=void 0);return}const r=H(n?n[0]:void 0);let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!ae(i)||u.isComposing)return;let h=G(r),d=i.current;if(!d||!j(h,d))return;let f=ie(d),b=Q(f,{tabbable:!0},d);if(!h)return;b.currentNode=h;let p=u.shiftKey?b.previousNode():b.nextNode();p||(b.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,p=u.shiftKey?b.previousNode():b.nextNode()),u.preventDefault(),p&&Z(p,!0)},s=u=>{(!P||be(P,i))&&j(ne(u),i.current)?(P=i,t.current=ne(u)):ae(i)&&!ee(ne(u),i)?t.current?t.current.focus():P&&P.current&&Re(P.current):ae(i)&&(t.current=ne(u))},a=u=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{let h=Ie(),d=(h==="virtual"||h===null)&&Yt()&&ft(),f=G(r);if(!d&&f&&ae(i)&&!ee(f,i)){P=i;let p=ne(u);if(p&&p.isConnected){var b;t.current=p,(b=t.current)===null||b===void 0||b.focus()}else P.current&&Re(P.current)}})};return r.addEventListener("keydown",o,!1),r.addEventListener("focusin",s,!1),n?.forEach(u=>u.addEventListener("focusin",s,!1)),n?.forEach(u=>u.addEventListener("focusout",a,!1)),()=>{r.removeEventListener("keydown",o,!1),r.removeEventListener("focusin",s,!1),n?.forEach(u=>u.removeEventListener("focusin",s,!1)),n?.forEach(u=>u.removeEventListener("focusout",a,!1))}},[i,e]),U(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[l])}function wt(i){return ee(i)}function j(i,e){return!i||!e?!1:e.some(t=>t.contains(i))}function ee(i,e=null){if(i instanceof Element&&i.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:t}of R.traverse(R.getTreeNode(e)))if(t&&j(i,t.current))return!0;return!1}function Ii(i){return ee(i,P)}function be(i,e){var t;let l=(t=R.getTreeNode(e))===null||t===void 0?void 0:t.parent;for(;l;){if(l.scopeRef===i)return!0;l=l.parent}return!1}function Z(i,e=!1){if(i!=null&&!e)try{pe(i)}catch{}else if(i!=null)try{i.focus()}catch{}}function Ct(i,e=!0){let t=i[0].previousElementSibling,l=ie(i),n=Q(l,{tabbable:e},i);n.currentNode=t;let r=n.nextNode();return e&&!r&&(l=ie(i),n=Q(l,{tabbable:!1},i),n.currentNode=t,r=n.nextNode()),r}function Re(i,e=!0){Z(Ct(i,e))}function kl(i,e){const t=g.useRef(e);c.useEffect(()=>{if(t.current){P=i;const l=H(i.current?i.current[0]:void 0);!j(G(l),P.current)&&i.current&&Re(i.current)}t.current=!1},[i])}function El(i,e,t){U(()=>{if(e||t)return;let l=i.current;const n=H(l?l[0]:void 0);let r=o=>{let s=ne(o);j(s,i.current)?P=i:wt(s)||(P=null)};return n.addEventListener("focusin",r,!1),l?.forEach(o=>o.addEventListener("focusin",r,!1)),()=>{n.removeEventListener("focusin",r,!1),l?.forEach(o=>o.removeEventListener("focusin",r,!1))}},[i,e,t])}function _e(i){let e=R.getTreeNode(P);for(;e&&e.scopeRef!==i;){if(e.nodeToRestore)return!1;e=e.parent}return e?.scopeRef===i}function Dl(i,e,t){const l=c.useRef(typeof document<"u"?G(H(i.current?i.current[0]:void 0)):null);U(()=>{let n=i.current;const r=H(n?n[0]:void 0);if(!e||t)return;let o=()=>{(!P||be(P,i))&&j(G(r),i.current)&&(P=i)};return r.addEventListener("focusin",o,!1),n?.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{r.removeEventListener("focusin",o,!1),n?.forEach(s=>s.removeEventListener("focusin",o,!1))}},[i,t]),U(()=>{const n=H(i.current?i.current[0]:void 0);if(!e)return;let r=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!ae(i)||o.isComposing)return;let s=n.activeElement;if(!ee(s,i)||!_e(i))return;let a=R.getTreeNode(i);if(!a)return;let u=a.nodeToRestore,h=Q(n.body,{tabbable:!0});h.currentNode=s;let d=o.shiftKey?h.previousNode():h.nextNode();if((!u||!u.isConnected||u===n.body)&&(u=void 0,a.nodeToRestore=void 0),(!d||!ee(d,i))&&u){h.currentNode=u;do d=o.shiftKey?h.previousNode():h.nextNode();while(ee(d,i));o.preventDefault(),o.stopPropagation(),d?Z(d,!0):wt(u)?Z(u,!0):s.blur()}};return t||n.addEventListener("keydown",r,!0),()=>{t||n.removeEventListener("keydown",r,!0)}},[i,e,t]),U(()=>{const n=H(i.current?i.current[0]:void 0);if(!e)return;let r=R.getTreeNode(i);if(r){var o;return r.nodeToRestore=(o=l.current)!==null&&o!==void 0?o:void 0,()=>{let s=R.getTreeNode(i);if(!s)return;let a=s.nodeToRestore,u=G(n);
1if(e&&a&&(u&&ee(u,i)||u===n.body&&_e(i))){let h=R.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let d=h.getTreeNode(i);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){et(d.nodeToRestore);return}d=d.parent}for(d=h.getTreeNode(i);d;){if(d.scopeRef&&d.scopeRef.current&&R.getTreeNode(d.scopeRef)){let f=Ct(d.scopeRef.current,!0);et(f);return}d=d.parent}}})}}}},[i,e])}function et(i){i.dispatchEvent(new CustomEvent(Fe,{bubbles:!0,cancelable:!0}))&&Z(i)}function Q(i,e,t){let l=e?.tabbable?jt:Xt,n=i?.nodeType===Node.ELEMENT_NODE?i:null,r=H(n),o=dl(r,i||r,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var a;return!(e==null||(a=e.from)===null||a===void 0)&&a.contains(s)||e?.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!wl(s)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:l(s)&&(!t||j(s,t))&&(!e?.accept||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e?.from&&(o.currentNode=e.from),o}class Ve{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,l){let n=this.fastMap.get(t??null);if(!n)return;let r=new Le({scopeRef:e});n.addChild(r),r.parent=n,this.fastMap.set(e,r),l&&(r.nodeToRestore=l)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let l=t.parent;for(let r of this.traverse())r!==t&&t.nodeToRestore&&r.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&j(r.nodeToRestore,t.scopeRef.current)&&(r.nodeToRestore=t.nodeToRestore);let n=t.children;l&&(l.removeChild(t),n.size>0&&n.forEach(r=>l&&l.addChild(r))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new Ve;var l;for(let n of this.traverse())t.addTreeNode(n.scopeRef,(l=(e=n.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&l!==void 0?l:null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new Le({scopeRef:null}),this.fastMap.set(null,this.root)}}class Le{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let R=new Ve;function kt(i){let e=Pl(H(i));e!==i&&(e&&Nl(e,i),i&&Et(i,e))}function Nl(i,e){i.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Et(i,e){i.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),i.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Pl(i){let e=G(i),t=e?.getAttribute("aria-activedescendant");return t&&i.getElementById(t)||e}const ze=new WeakMap;function Tl(i){return typeof i=="string"?i.replace(/\s*/g,""):""+i}function Ml(i,e){let t=ze.get(i);if(!t)throw new Error("Unknown list");return`${t.id}-option-${Tl(e)}`}function Ae(i){return Gt()?i.altKey:i.ctrlKey}function ye(i,e){var t,l;let n=`[data-key="${CSS.escape(String(e))}"]`,r=(t=i.current)===null||t===void 0?void 0:t.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),(l=i.current)===null||l===void 0?void 0:l.querySelector(n)}const Dt=new WeakMap;function Il(i){let e=ge();return Dt.set(i,e),e}function Fl(i){return Dt.get(i)}const Rl=1e3;function Ll(i){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=i,n=c.useRef({search:"",timeout:void 0}).current,r=o=>{let s=Al(o.key);if(!(!s||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target)||n.search.length===0&&s===" ")){if(s===" "&&n.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),n.search+=s,e.getKeyForSearch!=null){let a=e.getKeyForSearch(n.search,t.focusedKey);a==null&&(a=e.getKeyForSearch(n.search)),a!=null&&(t.setFocusedKey(a),l&&l(a))}clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},Rl)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?r:void 0}}}function Al(i){return i.length===1||!/^[A-Z]/i.test(i)?i:""}function Bl(i){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:n=!1,shouldFocusWrap:r=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:a="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:b,scrollRef:p=l,linkBehavior:K="action"}=i,{direction:$}=Oe(),S=vt(),m=y=>{var w;if(y.altKey&&y.key==="Tab"&&y.preventDefault(),!(!((w=l.current)===null||w===void 0)&&w.contains(y.target)))return;const N=(x,te)=>{if(x!=null){if(e.isLink(x)&&K==="selection"&&u&&!Ae(y)){yt.flushSync(()=>{e.setFocusedKey(x,te)});let le=ye(l,x),We=e.getItemProps(x);le&&S.open(le,y,We.href,We.routerOptions);return}if(e.setFocusedKey(x,te),e.isLink(x)&&K==="override")return;
1y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(x):u&&!Ae(y)&&e.replaceSelection(x)}};switch(y.key){case"ArrowDown":if(t.getKeyBelow){var v,F,z;let x=e.focusedKey!=null?(v=t.getKeyBelow)===null||v===void 0?void 0:v.call(t,e.focusedKey):(F=t.getFirstKey)===null||F===void 0?void 0:F.call(t);x==null&&r&&(x=(z=t.getFirstKey)===null||z===void 0?void 0:z.call(t,e.focusedKey)),x!=null&&(y.preventDefault(),N(x))}break;case"ArrowUp":if(t.getKeyAbove){var J,_,me;let x=e.focusedKey!=null?(J=t.getKeyAbove)===null||J===void 0?void 0:J.call(t,e.focusedKey):(_=t.getLastKey)===null||_===void 0?void 0:_.call(t);x==null&&r&&(x=(me=t.getLastKey)===null||me===void 0?void 0:me.call(t,e.focusedKey)),x!=null&&(y.preventDefault(),N(x))}break;case"ArrowLeft":if(t.getKeyLeftOf){var xe,Se,Ke;let x=e.focusedKey!=null?(xe=t.getKeyLeftOf)===null||xe===void 0?void 0:xe.call(t,e.focusedKey):null;x==null&&r&&(x=$==="rtl"?(Se=t.getFirstKey)===null||Se===void 0?void 0:Se.call(t,e.focusedKey):(Ke=t.getLastKey)===null||Ke===void 0?void 0:Ke.call(t,e.focusedKey)),x!=null&&(y.preventDefault(),N(x,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var we,Ce,ke;let x=e.focusedKey!=null?(we=t.getKeyRightOf)===null||we===void 0?void 0:we.call(t,e.focusedKey):null;x==null&&r&&(x=$==="rtl"?(Ce=t.getLastKey)===null||Ce===void 0?void 0:Ce.call(t,e.focusedKey):(ke=t.getFirstKey)===null||ke===void 0?void 0:ke.call(t,e.focusedKey)),x!=null&&(y.preventDefault(),N(x,$==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let x=t.getFirstKey(e.focusedKey,re(y));e.setFocusedKey(x),x!=null&&(re(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(x):u&&e.replaceSelection(x))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&y.shiftKey)return;y.preventDefault();let x=t.getLastKey(e.focusedKey,re(y));e.setFocusedKey(x),x!=null&&(re(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(x):u&&e.replaceSelection(x))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let x=t.getKeyPageBelow(e.focusedKey);x!=null&&(y.preventDefault(),N(x))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let x=t.getKeyPageAbove(e.focusedKey);x!=null&&(y.preventDefault(),N(x))}break;case"a":re(y)&&e.selectionMode==="multiple"&&s!==!0&&(y.preventDefault(),e.selectAll());break;case"Escape":a==="clearSelection"&&!o&&e.selectedKeys.size!==0&&(y.stopPropagation(),y.preventDefault(),e.clearSelection());break;case"Tab":if(!f){if(y.shiftKey)l.current.focus();else{let x=Q(l.current,{tabbable:!0}),te,le;do le=x.lastChild(),le&&(te=le);while(le);te&&!te.contains(document.activeElement)&&Me(te)}break}}},k=c.useRef({top:0,left:0});ve(p,"scroll",b?void 0:()=>{var y,w,N,v;k.current={top:(N=(y=p.current)===null||y===void 0?void 0:y.scrollTop)!==null&&N!==void 0?N:0,left:(v=(w=p.current)===null||w===void 0?void 0:w.scrollLeft)!==null&&v!==void 0?v:0}});let E=y=>{if(e.isFocused){y.currentTarget.contains(y.target)||e.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(e.setFocused(!0),e.focusedKey==null){var w,N;let z=_=>{_!=null&&(e.setFocusedKey(_),u&&!e.isSelected(_)&&e.replaceSelection(_))},J=y.relatedTarget;var v,F;J&&y.currentTarget.compareDocumentPosition(J)&Node.DOCUMENT_POSITION_FOLLOWING?z((v=e.lastSelectedKey)!==null&&v!==void 0?v:(w=t.getLastKey)===null||w===void 0?void 0:w.call(t)):z((F=e.firstSelectedKey)!==null&&F!==void 0?F:(N=t.getFirstKey)===null||N===void 0?void 0:N.call(t))}else!b&&p.current&&(p.current.scrollTop=k.current.top,p.current.scrollLeft=k.current.left);if(e.focusedKey!=null&&p.current){let z=ye(l,e.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!d&&Me(z),Ie()==="keyboard"&&Ze(z,{containingElement:l.current}))}}},I=y=>{y.currentTarget.contains(y.relatedTarget)||e.setFocused(!1)},C=c.useRef(!1);ve(l,$l,d?y=>{let{detail:w}=y;y.stopPropagation(),e.setFocused(!0),w?.focusStrategy==="first"&&(C.current=!0)}:void 0);let T=Te(()=>{var y,w;let N=(w=(y=t.getFirstKey)===null||y===void 0?void 0:y.call(t))!==null&&w!==void 0?w:null;if(N==null){let v=G();kt(l.current),Et(v,null),e.collection.size>0&&(C.current=!1)}else e.setFocusedKey(N),C.current=!1});Ge(()=>
1{C.current&&T()},[e.collection,T]);let D=Te(()=>{e.collection.size>0&&(C.current=!1)});Ge(()=>{D()},[e.focusedKey,D]),ve(l,gl,d?y=>{var w;y.stopPropagation(),e.setFocused(!1),!((w=y.detail)===null||w===void 0)&&w.clearFocusKey&&e.setFocusedKey(null)}:void 0);const A=c.useRef(n),V=c.useRef(!1);c.useEffect(()=>{if(A.current){var y,w;let F=null;var N;n==="first"&&(F=(N=(y=t.getFirstKey)===null||y===void 0?void 0:y.call(t))!==null&&N!==void 0?N:null);var v;n==="last"&&(F=(v=(w=t.getLastKey)===null||w===void 0?void 0:w.call(t))!==null&&v!==void 0?v:null);let z=e.selectedKeys;if(z.size){for(let J of z)if(e.canSelectItem(J)){F=J;break}}e.setFocused(!0),e.setFocusedKey(F),F==null&&!d&&l.current&&pe(l.current),e.collection.size>0&&(A.current=!1,V.current=!0)}});let L=c.useRef(e.focusedKey),B=c.useRef(null);c.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==L.current||V.current)&&p.current&&l.current){let y=Ie(),w=ye(l,e.focusedKey);if(!(w instanceof HTMLElement))return;(y==="keyboard"||V.current)&&(B.current&&cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{p.current&&(St(p.current,w),y!=="virtual"&&Ze(w,{containingElement:l.current}))}))}!d&&e.isFocused&&e.focusedKey==null&&L.current!=null&&l.current&&pe(l.current),L.current=e.focusedKey,V.current=!1}),c.useEffect(()=>()=>{B.current&&cancelAnimationFrame(B.current)},[]),ve(l,"react-aria-focus-scope-restore",y=>{y.preventDefault(),e.setFocused(!0)});let M={onKeyDown:m,onFocus:E,onBlur:I,onMouseDown(y){p.current===y.target&&y.preventDefault()}},{typeSelectProps:W}=Ll({keyboardDelegate:t,selectionManager:e});h||(M=Y(W,M));let O;d||(O=e.focusedKey==null?0:-1);let q=Il(e.collection);return{collectionProps:Y(M,{tabIndex:O,"data-collection":q})}}function Ol(i){let{id:e,selectionManager:t,key:l,ref:n,shouldSelectOnPressUp:r,shouldUseVirtualFocus:o,focus:s,isDisabled:a,onAction:u,allowsDifferentPressOrigin:h,linkBehavior:d="action"}=i,f=vt();e=ge(e);let b=v=>{if(v.pointerType==="keyboard"&&Ae(v))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(d==="selection"&&n.current){let F=t.getItemProps(l);f.open(n.current,v,F.href,F.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(l)&&!t.disallowEmptySelection?t.toggleSelection(l):t.replaceSelection(l):v&&v.shiftKey?t.extendSelection(l):t.selectionBehavior==="toggle"||v&&(re(v)||v.pointerType==="touch"||v.pointerType==="virtual")?t.toggleSelection(l):t.replaceSelection(l)}};c.useEffect(()=>{l===t.focusedKey&&t.isFocused&&(o?kt(n.current):s?s():document.activeElement!==n.current&&n.current&&pe(n.current))},[n,l,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),a=a||t.isDisabled(l);let p={};!o&&!a?p={tabIndex:l===t.focusedKey?0:-1,onFocus(v){v.target===n.current&&t.setFocusedKey(l)}}:a&&(p.onMouseDown=v=>{v.preventDefault()});let K=t.isLink(l)&&d==="override",$=u&&i.UNSTABLE_itemBehavior==="action",S=t.isLink(l)&&d!=="selection"&&d!=="none",m=!a&&t.canSelectItem(l)&&!K&&!$,k=(u||S)&&!a,E=k&&(t.selectionBehavior==="replace"?!m:!m||t.isEmpty),I=k&&m&&t.selectionBehavior==="replace",C=E||I,T=c.useRef(null),D=C&&m,A=c.useRef(!1),V=c.useRef(!1),L=t.getItemProps(l),B=v=>{if(u){var F;u(),(F=n.current)===null||F===void 0||F.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}S&&n.current&&f.open(n.current,v,L.href,L.routerOptions)},M={ref:n};if(r?(M.onPressStart=v=>{T.current=v.pointerType,A.current=D,v.pointerType==="keyboard"&&(!C||lt())&&b(v)},h?(M.onPressUp=E?void 0:v=>{v.pointerType==="mouse"&&m&&b(v)},M.onPress=E?B:v=>{v.pointerType!=="keyboard"&&v.pointerType!=="mouse"&&m&&b(v)}):M.onPress=v=>{if(E||I&&v.pointerType!=="mouse"){if(v.pointerType==="keyboard"&&!tt())return;B(v)}else v.pointerType!=="keyboard"&&m&&b(v)}):(M.onPressStart=v=>{T.current=v.pointerType,A.current=D,V.current=E,m&&(v.pointerType==="mouse"&&!E||v.pointerType==="keyboard"&&(!k||lt()))&&b(v)},M.onPress=v=>{(v.pointerType==="touch"||v.pointerType==="pen"||v.pointerType==="virtual"||v.pointerType==="keyboard"&&C&&tt()||v.pointerType==="mouse"&&V.current)&&(C?B(v):m&&b(v))}),p["data-collection"]=Fl(t.collection),p["data-key"]=l,M.preventFocusOnPress=o,o&&(M=Y(M,{onPressStart(v){v.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(v){v.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}})),L)for(let v of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])L[v]&&(M[v]=pt(M[v],L[v]));let{pressProps:W,isPressed:O}=ht(M),q=I?v=>{T.current==="mouse"&&(v.stopPropagation(),v.preventDefault(),B(v))}:void 0,{longPressProps:y}=xl({isDisabled:!D,onLongPress(v){v.pointerType==="touch"&&(b(v),t.setSelectionBehavior("toggle"))}}),w=v=>{T.current==="touch"&&A.current&&v.preventDefault()},N=d!=="none"&&t.isLink(l)?v=>{Jt.isOpening||v.preventDefault()}:void 0;return{itemProps:Y(p,m||E||o&&!a?W:{},D?y:{},{onDoubleClick:q,onDragStartCapture:w,onClick:N,id:e},o?{onMouseDown:v=>v.preventDefault()}:void 0),isPressed:O,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focu
1sedKey===l,isDisabled:a,allowsSelection:m,hasAction:C}}function tt(){let i=window.event;return i?.key==="Enter"}function lt(){let i=window.event;return i?.key===" "||i?.code==="Space"}class it{getItemRect(e){let t=this.ref.current;if(!t)return null;let l=e!=null?ye(this.ref,e):null;if(!l)return null;let n=t.getBoundingClientRect(),r=l.getBoundingClientRect();return{x:r.left-n.left-t.clientLeft+t.scrollLeft,y:r.top-n.top-t.clientTop+t.scrollTop,width:r.width,height:r.height}}getContentSize(){let e=this.ref.current;var t,l;return{width:(t=e?.scrollWidth)!==null&&t!==void 0?t:0,height:(l=e?.scrollHeight)!==null&&l!==void 0?l:0}}getVisibleRect(){let e=this.ref.current;var t,l,n,r;return{x:(t=e?.scrollLeft)!==null&&t!==void 0?t:0,y:(l=e?.scrollTop)!==null&&l!==void 0?l:0,width:(n=e?.clientWidth)!==null&&n!==void 0?n:0,height:(r=e?.clientHeight)!==null&&r!==void 0?r:0}}constructor(e){this.ref=e}}class Nt{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let l=e;for(;l!=null;){let n=this.collection.getItem(l);if(n?.type==="item"&&!this.isDisabled(n))return l;l=t(l)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,l=>this.collection.getKeyAfter(l))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,l=>this.collection.getKeyBefore(l))}findKey(e,t,l){let n=e,r=this.layoutDelegate.getItemRect(n);if(!r||n==null)return null;let o=r;do{if(n=t(n),n==null)break;r=this.layoutDelegate.getItemRect(n)}while(r&&l(o,r)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,l=>this.layoutDelegate[t](l))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,l=>this.getNextColumn(l,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,l=>this.layoutDelegate[t](l))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,l=>this.getNextColumn(l,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!ue(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let r=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>r&&n!=null;)n=this.getKeyAbove(n),l=n==null?null:this.layoutDelegate.getItemRect(n)}else{let r=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>r&&n!=null;)n=this.getKeyAbove(n),l=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!ue(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let r=Math.min(this.layoutDelegate.getContentSize().width,l.y-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.x<r&&n!=null;)n=this.getKeyBelow(n),l=n==null?null:this.layoutDelegate.getItemRect(n)}else{let r=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<r&&n!=null;)n=this.getKeyBelow(n),l=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,n=t||this.getFirstKey();for(;n!=null;){let r=l.getItem(n);if(!r)return null;let o=r.textValue.slice(0,e.length);if(r.textValue&&this.collator.compare(o,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new it(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new it(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Vl(i){let{selectionManager:e,collection:t,disabledKeys:l,ref:n,keyboardDelegate:r,layoutDelegate:o}=i,s=Kt({usage:"search",sensitivity:"base"}),a=e.disabledBehavior,u=c.useMemo(()=>r||new Nt({collection:t,disabledKeys:l,disabledBehavior:a,ref:n,collator:s,layoutDelegate:o}),[r,o,t,l,n,s,a]),{collectionProps:h}=Bl({...i,ref:n,selectionManager:e,keyboardDelegate:u});return{listProps:h}}function zl(i,e,t){let l=se(i,{labelable:!0}),n=i.selectionBehavior||"toggle",r=i.linkBehavior||(n==="replace"?"action":"override");n==="toggle"&&r==="action"&&(r="override");let{listProps:o}=Vl({...i,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:r}),{focusWithinProps:s}=Zt({onFocusWithin:i.onFocus,onBlurWithin:i.onBlur,onFocusWithinChange:i.onFocusChange}),a=ge(i.id);ze.set(e,{id:a,shouldUseVirtualFocus:i.shouldUseVirtualFocus,shouldSelectOnPressUp:i.shouldSelectOnPressUp,shouldFocusOnHover:i.shouldFocusOnHover,isVirtualized:i.isVirtualized,onAction:i.onAction,linkBehavior:r,UNSTABLE_itemBehavior:i.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:h}=Qt({...i,id:a,labelElementType:"span"});return{labelProps:u,listBoxProps:Y(l,s,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Y(h,o)})}}class Ul{build(e,t){return this.context=t,nt(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(g.isValidElement(t)&&t.type===g.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let n=0;for(let r of l)yield*this.getFullNode({value:r,index:n},{renderer:t}),n++}else{let n=[];
1g.Children.forEach(t,o=>{o&&n.push(o)});let r=0;for(let o of n){let s=this.getFullNode({element:o,index:r},{});for(let a of s)r++,yield a}}}getKey(e,t,l,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let r=t.value;if(r!=null){var o;let s=(o=r.key)!==null&&o!==void 0?o:r.id;if(s==null)throw new Error("No key found for item");return s}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,n){if(g.isValidElement(e.element)&&e.element.type===g.Fragment){let $=[];g.Children.forEach(e.element.props.children,m=>{$.push(m)});var r;let S=(r=e.index)!==null&&r!==void 0?r:0;for(const m of $)yield*this.getFullNode({element:m,index:S++},t,l,n);return}let o=e.element;if(!o&&e.value&&t&&t.renderer){let $=this.cache.get(e.value);if($&&(!$.shouldInvalidate||!$.shouldInvalidate(this.context))){$.index=e.index,$.parentKey=n?n.key:null,yield $;return}o=t.renderer(e.value)}if(g.isValidElement(o)){let $=o.type;if(typeof $!="function"&&typeof $.getCollectionNode!="function"){let E=o.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=$.getCollectionNode(o.props,this.context);var s;let m=(s=e.index)!==null&&s!==void 0?s:0,k=S.next();for(;!k.done&&k.value;){let E=k.value;e.index=m;var a;let I=(a=E.key)!==null&&a!==void 0?a:null;I==null&&(I=E.element?null:this.getKey(o,e,t,l));let T=[...this.getFullNode({...E,key:I,index:m,wrapper:Hl(e.wrapper,E.wrapper)},this.getChildState(t,E),l?`${l}${o.key}`:o.key,n)];for(let D of T){var u,h;D.value=(h=(u=E.value)!==null&&u!==void 0?u:e.value)!==null&&h!==void 0?h:null,D.value&&this.cache.set(D.value,D);var d;if(e.type&&D.type!==e.type)throw new Error(`Unsupported type <${Ne(D.type)}> in <${Ne((d=n?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${Ne(e.type)}> is supported.`);m++,yield D}k=S.next(T)}return}if(e.key==null||e.type==null)return;let f=this;var b,p;let K={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(b=e.value)!==null&&b!==void 0?b:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:nt(function*(){if(!e.hasChildNodes||!e.childNodes)return;let $=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${K.key}${S.key}`);let m=f.getFullNode({...S,index:$},f.getChildState(t,S),K.key,K);for(let k of m)$++,yield k}})};yield K}constructor(){this.cache=new WeakMap}}function nt(i){let e=[],t=null;return{*[Symbol.iterator](){for(let l of e)yield l;t||(t=i());for(let l of t)e.push(l),yield l}}}function Hl(i,e){if(i&&e)return t=>i(e(t));if(i)return i;if(e)return e}function Ne(i){return i[0].toUpperCase()+i.slice(1)}function Wl(i,e,t){let l=c.useMemo(()=>new Ul,[]),{children:n,items:r,collection:o}=i;return c.useMemo(()=>{if(o)return o;let a=l.build({children:n,items:r},t);return e(a)},[l,n,r,o,t,e])}function Pt(i,e){return typeof e.getChildren=="function"?e.getChildren(i.key):i.childNodes}function ql(i){return Yl(i)}function Yl(i,e){for(let t of i)return t}function Pe(i,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...rt(i,e),e],n=[...rt(i,t),t],r=l.slice(0,n.length).findIndex((o,s)=>o!==n[s]);return r!==-1?(e=l[r],t=n[r],e.index-t.index):l.findIndex(o=>o===t)>=0?1:(n.findIndex(o=>o===e)>=0,-1)}function rt(i,e){let t=[],l=e;for(;l?.parentKey!=null;)l=i.getItem(l.parentKey),l&&t.unshift(l);return t}const ot=new WeakMap;function jl(i){let e=ot.get(i);if(e!=null)return e;let t=0,l=n=>{for(let r of n)r.type==="section"?l(Pt(r,i)):r.type==="item"&&t++};return l(i),ot.set(i,t),t}function Xl(i,e,t){var l,n;let{key:r}=i,o=ze.get(e);var s;let a=(s=i.isDisabled)!==null&&s!==void 0?s:e.selectionManager.isDisabled(r);var u;let h=(u=i.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(r);var d;let f=(d=i.shouldSelectOnPressUp)!==null&&d!==void 0?d:o?.shouldSelectOnPressUp;var b;let p=(b=i.shouldFocusOnHover)!==null&&b!==void 0?b:o?.shouldFocusOnHover;var K;let $=(K=i.shouldUseVirtualFocus)!==null&&K!==void 0?K:o?.shouldUseVirtualFocus;var S;let m=(S=i.isVirtualized)!==null&&S!==void 0?S:o?.isVirtualized,k=Ye(),E=Ye(),I={role:"option","aria-disabled":a||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?h:void 0};ct()&&_t()||(I["aria-label"]=i["aria-label"],I["aria-labelledby"]=k,I["aria-describedby"]=E);let C=e.collection.getItem(r);if(m){let y=Number(C?.index);I["aria-posinset"]=Number.isNaN(y)?void 0:y+1,I["aria-setsize"]=jl(e.collection)}let T=o?.onAction?()=>{var y;return o==null||(y=o.onAction)===null||y===void 0?void 0:y.call(o,r)}:void 0,D=Ml(e,r),{itemProps:A,isPressed:V,isFocused:L,hasAction:B,allowsSelection:M}=Ol({selectionManager:e.selectionManager,key:r,ref:t,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&p,isVirtualized:m,shouldUseVirtualFocus:$,isDisabled:a,onAction:T||!(C==null||(l=C.props)===null||l===void 0)&&l.onAction?pt(C==null||(n=C.props)===null||n===void 0?void 0:n.onAction,T):void 0,linkBehavior:o?.linkBehavior,UNSTABLE_itemBehavior:o?.UNSTABLE_itemBehavior,id:D}),{hoverProps:W}=bt({isDisabled:a||!p,onHoverStart(){je()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r))}}),O=se(C?.props);delete O.id;let q=el(C?.props);return{optionProps:{...I,...Y(O,A,W,q),id:D},labelProps:{id:k},descriptionProps:{id:E},isFocused:L,isFocusVisible:L&&e.selectionManager.isFocused&&je(),isSelected:h,isDisabled:a,isPressed:V,allowsSelection:M,hasAction:B}}function Gl(i){let{heading:e,"aria-label":t}=i,l=ge();return{itemProps:{role:"presentation"},headingProps:e?{id:l,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?l:void 0}}}class fe{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,l){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}}class Tt extends fe{filter(e,t,l){let[n,r]=Ft(e,t,this.firstChildKey,l),o=this.clone();return o.firstChildKey=n,o.lastChildKey=r,o}}class Jl extends fe{}Jl.type="header";class Mt extends fe{}Mt.type="loader";class It extends Tt{filter(e,t,l){if(l(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}It.type="item";class Zl extends Tt{filter(e,t,l){let n=super.filter(e,t,l);if(n&&n.lastChildKey!==null){let r=e.getItem(n.lastChildKey);if(r&&r.type!=="header")return n}return null}}Zl.type="section";class Ql{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let l=t.get(e),n=l?.firstChildKey!=null?t.get(l.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var l;return(l=t?.key)!==null&&l!==void 0?l:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let l=t.getChildren(e.key);for(let n of l)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,l=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!l}filter(e){let t=new this.constructor,[l,n]=Ft(this,t,this.firstKey,e);return t?.commit(l,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}
1function Ft(i,e,t,l){if(t==null)return[null,null];let n=null,r=null,o=i.getItem(t);for(;o!=null;){let u=o.filter(i,e,l);u!=null&&(u.nextKey=null,r&&(u.prevKey=r.key,r.nextKey=u.key),n==null&&(n=u),e.addNode(u),r=u),o=o.nextKey?i.getItem(o.nextKey):null}if(r&&r.type==="separator"){let u=r.prevKey;e.removeNode(r.key),u?(r=e.getItem(u),r.nextKey=null):r=null}var s,a;return[(s=n?.key)!==null&&s!==void 0?s:null,(a=r?.key)!==null&&a!==void 0?a:null]}class Rt{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class oe extends Rt{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof oe?this.parentNode.level+(((e=this.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,t,l,n,r,o,s,a;let u=this.nextVisibleSibling,h=this.getMutableNode();if(h!=null){h.index=this.index,h.level=this.level;var d;h.parentKey=this.parentNode instanceof oe&&(d=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&d!==void 0?d:null;var f;h.prevKey=(f=(l=this.previousVisibleSibling)===null||l===void 0||(t=l.node)===null||t===void 0?void 0:t.key)!==null&&f!==void 0?f:null;var b;h.nextKey=(b=u==null||(n=u.node)===null||n===void 0?void 0:n.key)!==null&&b!==void 0?b:null,h.hasChildNodes=!!this.firstChild;var p;
1h.firstChildKey=(p=(o=this.firstVisibleChild)===null||o===void 0||(r=o.node)===null||r===void 0?void 0:r.key)!==null&&p!==void 0?p:null;var K;if(h.lastChildKey=(K=(a=this.lastVisibleChild)===null||a===void 0||(s=a.node)===null||s===void 0?void 0:s.key)!==null&&K!==void 0?K:null,(h.colSpan!=null||h.colIndex!=null)&&u){var $,S;let m=(($=h.colIndex)!==null&&$!==void 0?$:h.index)+((S=h.colSpan)!==null&&S!==void 0?S:1);if(u.node!=null&&m!==u.node.colIndex){let k=u.getMutableNode();k.colIndex=m}}}}setProps(e,t,l,n,r){let o,{value:s,textValue:a,id:u,...h}=e;if(this.node==null?(o=new l(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=o):o=this.getMutableNode(),h.ref=t,o.props=h,o.rendered=n,o.render=r,o.value=s,o.textValue=a||(typeof h.children=="string"?h.children:"")||e["aria-label"]||"",u!=null&&u!==o.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(o.colSpan=h.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(t){let l=t==="none";if(e.isHidden!==l){var n,r;(((n=e.parentNode)===null||n===void 0?void 0:n.firstVisibleChild)===e||((r=e.parentNode)===null||r===void 0?void 0:r.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let o=e.previousVisibleSibling,s=e.nextVisibleSibling;o&&e.ownerDocument.markDirty(o),s&&e.ownerDocument.markDirty(s),e.isHidden=l,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class _l extends Rt{get isConnected(){return!0}createElement(e){return new oe(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let l of e)this.addNode(l);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof oe&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof oe?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var e,t,l,n,r,o;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&r!==void 0?r:null,(o=(n=this.lastVisibleChild)===null||n===void 0||(l=n.node)===null||l===void 0?void 0:l.key)!==null&&o!==void 0?o:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function Lt(i){let{children:e,items:t,idScope:l,addIdAndValue:n,dependencies:r=[]}=i,o=c.useMemo(()=>new WeakMap,r);return c.useMemo(()=>{if(t&&typeof e=="function"){let u=[];for(let h of t){let d=o.get(h);if(!d){d=e(h);var s,a;let f=(a=(s=d.props.id)!==null&&s!==void 0?s:h.key)!==null&&a!==void 0?a:h.id;if(f==null)throw new Error("Could not determine key for item");l&&(f=l+":"+f),d=c.cloneElement(d,n?{key:f,id:f,value:h}:{key:f}),o.set(h,d)}u.push(d)}return u}else if(typeof e!="function")return e},[e,t,o,l,n])}const At=c.createContext(!1),de=c.createContext(null);function ei(i){if(c.useContext(de))return i.content;let{collection:t,document:l}=ni(i.createCollection);return g.createElement(g.Fragment,null,g.createElement(tl,null,g.createElement(de.Provider,{value:l},i.content)),g.createElement(ti,{render:i.children,collection:t}))}function ti({collection:i,render:e}){return e(i)}function li(i,e,t){let l=gt(),n=c.useRef(l);n.current=l;let r=c.useCallback(()=>n.current?t():e(),[e,t]);return ll.useSyncExternalStore(i,r)}const ii=typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore:li;function ni(i){let[e]=c.useState(()=>new _l(i?.()||new Ql)),t=c.useCallback(o=>e.subscribe(o),[e]),l=c.useCallback(()=>{let o=e.getCollection();return e.isSSR&&e.resetAfterSSR(),o},[e]),n=c.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:ii(t,l,n),document:e}}const Be=c.createContext(null);function ri(i){var e;return e=class extends fe{},e.type=i,e}function oi(i,e,t,l,n,r){typeof i=="string"&&(i=ri(i));let o=c.useCallback(a=>{a?.setProps(e,t,i,l,r)},[e,t,l,r,i]),s=c.useContext(Be);if(s){let a=s.ownerDocument.nodesByProps.get(e);return a||(a=s.ownerDocument.createElement(i.type),a.setProps(e,t,i,l,r),s.appendChild(a),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,a)),n?g.createElement(Be.Provider,{value:a},n):null}return g.createElement(i.type,{ref:o},n)}function Bt(i,e){let t=({node:n})=>e(n.props,n.props.ref,n),l=c.forwardRef((n,r)=>{let o=c.useContext(Xe);if(!c.useContext(At)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(n,r)}return oi(i,n,r,"children"in n?n.children:null,null,a=>g.createElement(Xe.Provider,{value:o},g.createElement(t,{node:a})))});
1return l.displayName=e.name,l}function si(i){return Lt({...i,addIdAndValue:!0})}const st=c.createContext(null);function ai(i){let e=c.useContext(st),t=(e?.dependencies||[]).concat(i.dependencies),l=i.idScope||e?.idScope,n=si({...i,idScope:l,dependencies:t});return c.useContext(de)&&(n=g.createElement(ui,null,n)),e=c.useMemo(()=>({dependencies:t,idScope:l}),[l,...t]),g.createElement(st.Provider,{value:e},n)}function ui({children:i}){let e=c.useContext(de),t=c.useMemo(()=>g.createElement(de.Provider,{value:null},g.createElement(At.Provider,{value:!0},i)),[i]);return gt()?g.createElement(Be.Provider,{value:e},t):yt.createPortal(t,e)}const di=c.createContext(null),ci={CollectionRoot({collection:i,renderDropIndicator:e}){return at(i,null,e)},CollectionBranch({collection:i,parent:e,renderDropIndicator:t}){return at(i,e,t)}};function at(i,e,t){return Lt({items:e?i.getChildren(e.key):i,dependencies:[t],children(l){let n=l.render(l);return!t||l.type!=="item"?n:g.createElement(g.Fragment,null,t({type:"item",key:l.key,dropPosition:"before"}),n,fi(i,l,t))}})}function fi(i,e,t){let l=e.key,n=i.getKeyAfter(l),r=n!=null?i.getItem(n):null;for(;r!=null&&r.type!=="item";)n=i.getKeyAfter(r.key),r=n!=null?i.getItem(n):null;let o=e.nextKey!=null?i.getItem(e.nextKey):null;for(;o!=null&&o.type!=="item";)o=o.nextKey!=null?i.getItem(o.nextKey):null;let s=[];if(o==null){let a=e;for(;a&&(!r||a.parentKey!==r.parentKey&&r.level<a.level);){let u=t({type:"item",key:a.key,dropPosition:"after"});c.isValidElement(u)&&s.push(c.cloneElement(u,{key:`${a.key}-after`})),a=a.parentKey!=null?i.getItem(a.parentKey):null}}return s}const Ue=c.createContext(ci);class ut{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var l;return t&&(l=t.prevKey)!==null&&l!==void 0?l:null}getKeyAfter(e){let t=this.keyMap.get(e);var l;return t&&(l=t.nextKey)!==null&&l!==void 0?l:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let a of s.childNodes)t(a)};for(let s of e)t(s);let l=null,n=0,r=0;for(let[s,a]of this.keyMap)l?(l.nextKey=s,a.prevKey=l.key):(this.firstKey=s,a.prevKey=void 0),a.type==="item"&&(a.index=n++),(a.type==="section"||a.type==="item")&&r++,l=a,l.nextKey=void 0;this._size=r;var o;this.lastKey=(o=l?.key)!==null&&o!==void 0?o:null}}class X extends Set{constructor(e,t,l){super(e),e instanceof X?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function hi(i,e){if(i.size!==e.size)return!1;for(let t of i)if(!e.has(t))return!1;return!0}function vi(i){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:n="toggle",disabledBehavior:r="all"}=i,o=c.useRef(!1),[,s]=c.useState(!1),a=c.useRef(null),u=c.useRef(null),[,h]=c.useState(null),d=c.useMemo(()=>dt(i.selectedKeys),[i.selectedKeys]),f=c.useMemo(()=>dt(i.defaultSelectedKeys,new X),[i.defaultSelectedKeys]),[b,p]=il(d,f,i.onSelectionChange),K=c.useMemo(()=>i.disabledKeys?new Set(i.disabledKeys):new Set,[i.disabledKeys]),[$,S]=c.useState(n);n==="replace"&&$==="toggle"&&typeof b=="object"&&b.size===0&&S("replace");let m=c.useRef(n);return c.useEffect(()=>{n!==m.current&&(S(n),m.current=n)},[n]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:$,setSelectionBehavior:S,get isFocused(){return o.current},setFocused(k){o.current=k,s(k)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(k,E="first"){a.current=k,u.current=E,h(k)},selectedKeys:b,setSelectedKeys(k){(l||!hi(k,b))&&p(k)},disabledKeys:K,disabledBehavior:r}}function dt(i,e){return i?i==="all"?"all":new X(i):e}class He{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;
1if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&Pe(this.collection,n,e)<0)&&(e=n)}var t;return(t=e?.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&Pe(this.collection,n,e)>0)&&(e=n)}var t;return(t=e?.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new X([t],t,t);else{let o=this.state.selectedKeys;var n;let s=(n=o.anchorKey)!==null&&n!==void 0?n:t;l=new X(o,s,t);var r;for(let a of this.getKeyRange(s,(r=o.currentKey)!==null&&r!==void 0?r:t))l.delete(a);for(let a of this.getKeyRange(t,s))this.canSelectItem(a)&&l.add(a)}this.state.setSelectedKeys(l)}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?Pe(this.collection,l,n)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(!((l=this.layoutDelegate)===null||l===void 0)&&l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let o=this.collection.getItem(r);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new X(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new X([t],t,t):new X;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new X;for(let l of e){let n=this.getKey(l);if(n!=null&&(t.add(n),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;l!=null;){if(this.canSelectItem(l)){var n;let o=this.collection.getItem(l);o?.type==="item"&&e.push(l);var r;o?.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&t((r=(n=ql(Pt(o,this.collection)))===null||n===void 0?void 0:n.key)!==null&&r!==void 0?r:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new X)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||!(l==null||(t=l.props)===null||t===void 0)&&t.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,l;return!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}withCollection(e){return new He(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){this.collection=e,this.state=t;var n;this.allowsCellSelection=(n=l?.allowsCellSelection)!==null&&n!==void 0?n:!1,this._isSelectAll=null,this.layoutDelegate=l?.layoutDelegate||null}}function yi(i){let{filter:e,layoutDelegate:t}=i,l=vi(i),n=c.useMemo(()=>i.disabledKeys?new Set(i.disabledKeys):new Set,[i.disabledKeys]),r=c.useCallback(u=>e?new ut(e(u)):new ut(u),[e]),o=c.useMemo(()=>({suppressTextValueWarning:i.suppressTextValueWarning}),[i.suppressTextValueWarning]),s=Wl(i,r,o),a=c.useMemo(()=>new He(s,l,{layoutDelegate:t}),[s,l,t]);return Ot(s,a),{collection:s,disabledKeys:n,selectionManager:a}}function pi(i,e){let t=c.useMemo(()=>e?i.collection.filter(e):i.collection,[i.collection,e]),l=i.selectionManager.withCollection(t);return Ot(t,l),{collection:t,selectionManager:l,disabledKeys:i.disabledKeys}}function Ot(i,e){const t=c.useRef(null);c.useEffect(()=>{if(e.focusedKey!=null&&!i.getItem(e.focusedKey)&&t.current){const h=t.current.getItem(e.focusedKey),d=[...t.current.getKeys()].map(S=>{const m=t.current.getItem(S);return m?.type==="item"?m:null}).filter(S=>S!==null),f=[...i.getKeys()].map(S=>{const m=i.getItem(S);return m?.type==="item"?m:null}).filter(S=>S!==null);var l,n;const b=((l=d?.length)!==null&&l!==void 0?l:0)-((n=f?.length)!==null&&n!==void 0?n:0);var r,o,s;let p=Math.min(b>1?Math.max(((r=h?.index)!==null&&r!==void 0?r:0)-b+1,0):(o=h?.index)!==null&&o!==void 0?o:0,((s=f?.length)!==null&&s!==void 0?s:0)-1),K=null,$=!1;for(;p>=0;){if(!e.isDisabled(f[p].key)){K=f[p];break}if(p<f.length-1&&!$)p++;else{$=!0;var a,u;p>((a=h?.index)!==null&&a!==void 0?a:0)&&(p=(u=h?.index)!==null&&u!==void 0?u:0),p--}}e.setFocusedKey(K?K.key:null)}t.current=i},[i,e])}const $e=c.createContext({}),Vt=c.createContext(null),bi=c.forwardRef(function(e,t){let{render:l}=c.useContext(Vt);return g.createElement(g.Fragment,null,l(e,t))});function zt(i,e){var t;let l=i?.renderDropIndicator,n=i==null||(t=i.isVirtualDragging)===null||t===void 0?void 0:t.call(i),r=c.useCallback(o=>
1{if(n||e?.isDropTarget(o))return l?l(o):g.createElement(bi,{target:o})},[e?.target,n,l]);return i?.useDropIndicator?r:void 0}function gi(i,e,t){var l,n;let r=i.focusedKey,o=null;if(!(e==null||(l=e.isVirtualDragging)===null||l===void 0)&&l.call(e)&&(t==null||(n=t.target)===null||n===void 0?void 0:n.type)==="item"&&(o=t.target.key,t.target.dropPosition==="after")){let d=t.collection.getKeyAfter(o),f=null;if(d!=null){var s,a;let b=(a=(s=t.collection.getItem(o))===null||s===void 0?void 0:s.level)!==null&&a!==void 0?a:0;for(;d;){let p=t.collection.getItem(d);if(!p)break;if(p.type!=="item"){d=t.collection.getKeyAfter(d);continue}var u;if(((u=p.level)!==null&&u!==void 0?u:0)<=b)break;f=d,d=t.collection.getKeyAfter(d)}}var h;o=(h=d??f)!==null&&h!==void 0?h:o}return c.useMemo(()=>new Set([r,o].filter(d=>d!=null)),[r,o])}const $i=c.createContext({}),mi=c.createContext(null);function xi(i){let e=c.useRef({});return g.createElement(mi.Provider,{value:e},i.children)}const Si=c.createContext({isSelected:!1}),Ki=c.createContext({});class wi extends fe{filter(e,t){let l=t.getItem(this.prevKey);if(l&&l.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}}wi.type="separator";const Ut=c.createContext(null),he=c.createContext(null),Fi=c.forwardRef(function(e,t){[e,t]=$t(e,t,Ut);let l=c.useContext(he);return l?g.createElement(Ht,{state:l,props:e,listBoxRef:t}):g.createElement(ei,{content:g.createElement(ai,e)},n=>g.createElement(Ci,{props:e,listBoxRef:t,collection:n}))});function Ci({props:i,listBoxRef:e,collection:t}){i={...i,collection:t,children:null,items:null};let{layoutDelegate:l}=c.useContext(Ue),n=yi({...i,layoutDelegate:l});return g.createElement(Ht,{state:n,props:i,listBoxRef:e})}function Ht({state:i,props:e,listBoxRef:t}){[e,t]=$t(e,t,al);let{dragAndDropHooks:l,layout:n="stack",orientation:r="vertical",filter:o}=e,s=pi(i,o),{collection:a,selectionManager:u}=s,h=!!l?.useDraggableCollectionState,d=!!l?.useDroppableCollectionState,{direction:f}=Oe(),{disabledBehavior:b,disabledKeys:p}=u,K=Kt({usage:"search",sensitivity:"base"}),{isVirtualized:$,layoutDelegate:S,dropTargetDelegate:m,CollectionRoot:k}=c.useContext(Ue),E=c.useMemo(()=>e.keyboardDelegate||new Nt({collection:a,collator:K,ref:t,disabledKeys:p,disabledBehavior:b,layout:n,orientation:r,direction:f,layoutDelegate:S}),[a,K,t,b,p,r,f,e.keyboardDelegate,n,S]),{listBoxProps:I}=zl({...e,shouldSelectOnPressUp:h||e.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:$},s,t);c.useRef(h),c.useRef(d),c.useEffect(()=>{},[h,d]);let C,T,D,A=!1,V=null,L=c.useRef(null);if(h&&l){C=l.useDraggableCollectionState({collection:a,selectionManager:u,preview:l.renderDragPreview?L:void 0}),l.useDraggableCollection({},C,t);let v=l.DragPreview;V=l.renderDragPreview?g.createElement(v,{ref:L},l.renderDragPreview):null}if(d&&l){T=l.useDroppableCollectionState({collection:a,selectionManager:u});let v=l.dropTargetDelegate||m||new l.ListDropTargetDelegate(a,t,{orientation:r,layout:n,direction:f});D=l.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:v},T,t),A=T.isDropTarget({type:"root"})}let{focusProps:B,isFocused:M,isFocusVisible:W}=nl(),O=s.collection.size===0,q={isDropTarget:A,isEmpty:O,isFocused:M,isFocusVisible:W,layout:e.layout||"stack",state:s},y=ce({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:q}),w=null;O&&e.renderEmptyState&&(w=g.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(q)));let N=se(e,{global:!0});return g.createElement(Sl,null,g.createElement("div",{...Y(N,y,I,B,D?.collectionProps),ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":A||void 0,"data-empty":O||void 0,"data-focused":M||void 0,"data-focus-visible":W||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},g.createElement(mt,{values:[[Ut,e],[he,s],[$e,{dragAndDropHooks:l,dragState:C,dropState:T}],[Ki,{elementType:"div"}],[Vt,{render:Ei}],[di,{name:"ListBoxSection",render:ki}]]},g.createElement(xi,null,g.createElement(k,{collection:a,scrollRef:t,persistedKeys:gi(u,l,T),renderDropIndicator:zt(l,T)}))),w,V))}function ki(i,e,t,l="react-aria-ListBoxSection"){let n=c.useContext(he),{dragAndDropHooks:r,dropState:o}=c.useContext($e),{CollectionBranch:s}=c.useContext(Ue),[a,u]=rl();var h;let{headingProps:d,groupProps:f}=Gl({heading:u,"aria-label":(h=i["aria-label"])!==null&&h!==void 0?h:void 0}),b=ce({defaultClassName:l,className:i.className,style:i.style,values:{}}),p=se(i,{global:!0});return delete p.id,g.createElement("section",{...Y(p,b,f),ref:e},g.createElement($i.Provider,{value:{...d,ref:a}},g.createElement(s,{collection:n.collection,parent:t,renderDropIndicator:zt(r,o)})))}const Ri=Bt(It,function(e,t,l){let n=xt(t),r=c.useContext(he),{dragAndDropHooks:o,dragState:s,dropState:a}=c.useContext($e),{optionProps:u,labelProps:h,descriptionProps:d,...f}=Xl({key:l.key,"aria-label":e?.["aria-label"]},r,n),{hoverProps:b,isHovered:p}=bt({isDisabled:!f.allowsSelection&&!f.hasAction,onHoverStart:l.props.onHoverStart,onHoverChange:l.props.onHoverChange,onHoverEnd:l.props.onHoverEnd}),K=null;s&&o&&(K=o.useDraggableItem({key:l.key}
1,s));let $=null;a&&o&&($=o.useDroppableItem({target:{type:"item",key:l.key,dropPosition:"on"}},a,n));let S=s&&s.isDragging(l.key),m=ce({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...f,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:S,isDropTarget:$?.isDropTarget}});c.useEffect(()=>{l.textValue},[l.textValue]);let k=e.href?"a":"div",E=se(e,{global:!0});return delete E.id,delete E.onClick,g.createElement(k,{...Y(E,m,u,b,K?.dragProps,$?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":S||void 0,"data-drop-target":$?.isDropTarget||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},g.createElement(mt,{values:[[ol,{slots:{[sl]:h,label:h,description:d}}],[Si,{isSelected:f.isSelected}]]},m.children))});function Ei(i,e){e=xt(e);let{dragAndDropHooks:t,dropState:l}=c.useContext($e),{dropIndicatorProps:n,isHidden:r,isDropTarget:o}=t.useDropIndicator(i,l,e);return r?null:g.createElement(Ni,{...i,dropIndicatorProps:n,isDropTarget:o,ref:e})}function Di(i,e){let{dropIndicatorProps:t,isDropTarget:l,...n}=i,r=ce({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:l}});return g.createElement("div",{...t,...r,role:"option",ref:e,"data-drop-target":l||void 0})}const Ni=c.forwardRef(Di);Bt(Mt,function(e,t,l){let n=c.useContext(he),{isLoading:r,onLoadMore:o,scrollOffset:s,...a}=e,u=c.useRef(null),h=c.useMemo(()=>({onLoadMore:o,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[o,s,n?.collection]);pl(h,u);let d=ce({...a,id:void 0,children:l.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),f={tabIndex:-1};return g.createElement(g.Fragment,null,g.createElement("div",{style:{position:"relative",width:0,height:0},inert:bl(!0)},g.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),r&&d.children&&g.createElement("div",{...Y(se(e,{global:!0}),f),...d,role:"option",ref:t},d.children))});export{Ri as $,Fi as a,Kt as b,Ii as c,Mi as d,cl as e,ue as f,Sl as g,xl as h,ze as i,Nt as j,Bl as k,Pt as l,jl as m,Et as n,Ml as o,yi as p,ut as q,Ut as r,ei as s,he as t,$l as u,kt as v,gl as w,Nl as x,re as y,Pl as z}; 2//# sourceMappingURL=ListBox-Bmns-TZo.js.map
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.