eidotter 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -195
- package/dist/components/Brand/components/BrandLockup.d.ts +20 -0
- package/dist/components/Brand/components/Logo.d.ts +25 -0
- package/dist/components/Brand/components/Wordmark.d.ts +16 -0
- package/dist/components/Brand/components/index.d.ts +6 -0
- package/dist/components/Brand/index.d.ts +1 -0
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +6972 -7039
- package/dist/index.umd.js +14 -14
- package/package.json +7 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
(function(V,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(V=typeof globalThis<"u"?globalThis:V||self,h(V.eidotter={},V.jsxRuntime,V.React,V.ReactDOM))})(this,(function(V,h,a,dt){"use strict";const ps=a.createContext(null);a.createContext(null),a.createContext(null),a.createContext(null),a.createContext(null);const ms=a.createContext({});a.createContext(null);const vs=a.createContext(null),te=typeof document<"u"?a.useLayoutEffect:()=>{};function gs(t){let[e,n]=a.useState(t),r=a.useRef(e),i=a.useRef(null),o=a.useRef(()=>{if(!i.current)return;let s=i.current.next();if(s.done){i.current=null;return}r.current===s.value?o.current():n(s.value)});te(()=>{r.current=e,i.current&&o.current()});let l=a.useCallback(s=>{i.current=s(r.current),o.current()},[o]);return[e,l]}const Mt={prefix:String(Math.round(Math.random()*1e10)),current:0},Sr=a.createContext(Mt),bs=a.createContext(!1);let ys=!!(typeof window<"u"&&window.document&&window.document.createElement),pn=new WeakMap;function xs(t=!1){let e=a.useContext(Sr),n=a.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=pn.get(o);l==null?pn.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,pn.delete(o))}n.current=++e.current}return n.current}function ws(t){let e=a.useContext(Sr);e===Mt&&!ys&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=xs(!!t),r=e===Mt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function Es(t){let e=a.useId(),[n]=a.useState(Be()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Mt.prefix}`;return t||`${r}-${e}`}const Cs=typeof a.useId=="function"?Es:ws;function Ps(){return!1}function ks(){return!0}function Ns(t){return()=>{}}function Be(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Ns,Ps,ks):a.useContext(bs)}let Ts=!!(typeof window<"u"&&window.document&&window.document.createElement),Re=new Map,ct;typeof FinalizationRegistry<"u"&&(ct=new FinalizationRegistry(t=>{Re.delete(t)}));function Ne(t){let[e,n]=a.useState(t),r=a.useRef(null),i=Cs(e),o=a.useRef(null);if(ct&&ct.register(o,i),Ts){const l=Re.get(i);l&&!l.includes(r)?l.push(r):Re.set(i,[r])}return te(()=>{let l=i;return()=>{ct&&ct.unregister(o),Re.delete(l)}},[i]),a.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function Ms(t,e){if(t===e)return t;let n=Re.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Re.get(e);return r?(r.forEach(i=>i.current=t),t):e}function mn(t=[]){let e=Ne(),[n,r]=gs(e),i=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return te(i,[e,i,...t]),n}function ut(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const J=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},de=t=>t&&"window"in t&&t.window===t?t:J(t).defaultView||window;function Ds(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function _s(t){return Ds(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Is=!1;function Te(){return Is}function W(t,e){if(!Te())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:_s(n)?n=n.host:n=n.parentNode}return!1}const ie=(t=document)=>{var e;if(!Te())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function K(t){if(Te()&&t.target instanceof Element&&t.target.shadowRoot){var e,n;if("composedPath"in t)return(e=t.composedPath()[0])!==null&&e!==void 0?e:null;if("composedPath"in t.nativeEvent)return(n=t.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return t.target}function vn(t){if(!t)return!1;let e=t.getRootNode(),n=de(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}class Ks{get currentNode(){return this._currentNode}set currentNode(e){if(!W(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return W(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}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 i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const d=l.shadowRoot;if(d){const c=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(l);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function $r(t,e,n,r){return Te()?new Ks(t,e,n,r):t.createTreeWalker(e,n,r)}function et(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=Fr(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Fr(t[o],null)})}}}function Fr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ar(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ar(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ls(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ar(t))&&(r&&(r+=" "),r+=e);return r}function Y(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=ut(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Ls(o,l):i==="id"&&o&&l?e.id=Ms(o,l):i==="ref"&&o&&l?e.ref=et(o,l):e[i]=l!==void 0?l:o}}return e}const Ss=new Set(["id"]),$s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Fs=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),As=new Set(["dir","lang","hidden","inert","translate"]),Or=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Os=/^(data-.*)$/;function ce(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,s={};for(const d in t)Object.prototype.hasOwnProperty.call(t,d)&&(Ss.has(d)||n&&$s.has(d)||r&&Fs.has(d)||i&&As.has(d)||o&&(Or.has(d)||d.endsWith("Capture")&&Or.has(d.slice(0,-7)))||l!=null&&l.has(d)||Os.test(d))&&(s[d]=t[d]);return s}function Me(t){if(zs())t.focus({preventScroll:!0});else{let e=Vs(t);t.focus(),Bs(e)}}let Dt=null;function zs(){if(Dt==null){Dt=!1;try{document.createElement("div").focus({get preventScroll(){return Dt=!0,!0}})}catch{}}return Dt}function Vs(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Bs(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function _t(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function gn(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function De(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const He=De(function(){return gn(/^Mac/i)}),Hs=De(function(){return gn(/^iPhone/i)}),zr=De(function(){return gn(/^iPad/i)||He()&&navigator.maxTouchPoints>1}),Ue=De(function(){return Hs()||zr()}),Us=De(function(){return He()||Ue()}),Ws=De(function(){return _t(/AppleWebKit/i)&&!bn()}),bn=De(function(){return _t(/Chrome/i)}),yn=De(function(){return _t(/Android/i)}),js=De(function(){return _t(/Firefox/i)}),Gs=a.createContext({isNative:!0,open:Ys,useHref:t=>t});function xn(){return a.useContext(Gs)}function _e(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}=e;js()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(He()?o=!0:l=!0);let c=Ws()&&He()&&!zr()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d,detail:1,bubbles:!0,cancelable:!0});_e.isOpening=n,Me(t),t.dispatchEvent(c),_e.isOpening=!1}_e.isOpening=!1;function qs(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function Ys(t,e){qs(t,n=>_e(n,e))}function Zs(t){let e=xn();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Le=new Map,wn=new Set;function Vr(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=K(r);if(!t(r)||!i)return;let o=Le.get(i);o||(o=new Set,Le.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=K(r);if(!t(r)||!i)return;let o=Le.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Le.delete(i)),Le.size===0)){for(let l of wn)l();wn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Vr():document.addEventListener("DOMContentLoaded",Vr));function Xs(){for(const[t]of Le)"isConnected"in t&&!t.isConnected&&Le.delete(t)}function Br(t){requestAnimationFrame(()=>{Xs(),Le.size===0?t():wn.add(t)})}function It(){let t=a.useRef(new Map),e=a.useCallback((i,o,l,s)=>{let d=s!=null&&s.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:d,options:s}),i.addEventListener(o,d,s)},[]),n=a.useCallback((i,o,l,s)=>{var d;let c=((d=t.current.get(l))===null||d===void 0?void 0:d.fn)||l;i.removeEventListener(o,c,s),t.current.delete(l)},[]),r=a.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return a.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function Kt(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Ne(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function Se(t){const e=a.useRef(null),n=a.useRef(void 0),r=a.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}var En;const Js=(En=a.useInsertionEffect)!==null&&En!==void 0?En:te;function ye(t){const e=a.useRef(null);return Js(()=>{e.current=t},[t]),a.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Hr(t,e){const n=a.useRef(!0),r=a.useRef(null);te(()=>(n.current=!0,()=>{n.current=!1}),[]),te(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Ur(t,e){te(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ft(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function Wr(t,e){let n=t;for(ft(n,e)&&(n=n.parentElement);n&&!ft(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function jr(t,e){let n=[],r=document.scrollingElement||document.documentElement;do ft(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function tt(t){return He()?t.metaKey:t.ctrlKey}const Qs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ht(t){return t instanceof HTMLInputElement&&!Qs.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let he=typeof document<"u"&&window.visualViewport;function Rs(){let t=Be(),[e,n]=a.useState(()=>t?{width:0,height:0}:Cn());return a.useEffect(()=>{let r=s=>{n(d=>s.width===d.width&&s.height===d.height?d:s)},i=()=>{he&&he.scale>1||r(Cn())},o,l=s=>{he&&he.scale>1||ht(K(s))&&(o=requestAnimationFrame(()=>{let d=ie();(!d||!ht(d))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(Cn()),Ue()&&window.addEventListener("blur",l,!0),he?he.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),Ue()&&window.removeEventListener("blur",l,!0),he?he.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function Cn(){return{width:he?he.width*he.scale:document.documentElement.clientWidth,height:he?he.height*he.scale:document.documentElement.clientHeight}}let ea=0;const Pn=new Map;function ta(t){let[e,n]=a.useState();return te(()=>{if(!t)return;let r=Pn.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${ea++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Pn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Pn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Lt(t,e,n,r){let i=ye(n),o=n==null;a.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function kn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),d=t.getBoundingClientRect(),c=window.getComputedStyle(e),u=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,m=t===f?0:d.top,v=t===f?t.clientHeight:d.bottom,g=t===f?0:d.left,b=t===f?t.clientWidth:d.right,w=parseInt(c.scrollMarginTop,10)||0,x=parseInt(c.scrollMarginBottom,10)||0,E=parseInt(c.scrollMarginLeft,10)||0,C=parseInt(c.scrollMarginRight,10)||0,k=parseInt(u.scrollPaddingTop,10)||0,N=parseInt(u.scrollPaddingBottom,10)||0,U=parseInt(u.scrollPaddingLeft,10)||0,O=parseInt(u.scrollPaddingRight,10)||0,P=parseInt(u.borderTopWidth,10)||0,I=parseInt(u.borderBottomWidth,10)||0,T=parseInt(u.borderLeftWidth,10)||0,L=parseInt(u.borderRightWidth,10)||0,q=s.top-w,Z=s.bottom+x,M=s.left-E,B=s.right+C,G=t===f?0:T+L,X=t===f?0:P+I,ee=t.offsetWidth-t.clientWidth-G,re=t.offsetHeight-t.clientHeight-X,p=m+P+k,_=v-I-N-re,y=g+T+U,D=b-L-O;u.direction==="rtl"&&!Ue()?y+=ee:D-=ee;let $=q<p||Z>_,A=M<y||B>D;if($&&r==="start")o+=q-p;else if($&&r==="center")o+=(q+Z)/2-(p+_)/2;else if($&&r==="end")o+=Z-_;else if($&&r==="nearest"){let Q=q-p,ae=Z-_;o+=Math.abs(Q)<=Math.abs(ae)?Q:ae}if(A&&i==="start")l+=M-y;else if(A&&i==="center")l+=(M+B)/2-(y+D)/2;else if(A&&i==="end")l+=B-D;else if(A&&i==="nearest"){let Q=M-y,ae=B-D;l+=Math.abs(Q)<=Math.abs(ae)?Q:ae}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function Gr(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(l).overflow==="hidden")&&!bn()){var r;let{left:d,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:u,top:f}=t.getBoundingClientRect();if(Math.abs(d-u)>1||Math.abs(c-f)>1){var i,o;n==null||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}else{let{left:d,top:c}=t.getBoundingClientRect(),u=jr(t,!0);for(let v of u)kn(v,t);let{left:f,top:m}=t.getBoundingClientRect();if(Math.abs(d-f)>1||Math.abs(c-m)>1){u=n?jr(n,!0):[];for(let v of u)kn(v,n,{block:"center",inline:"center"})}}}}function Nn(t){return t.pointerType===""&&t.isTrusted?!0:yn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function na(t){return!yn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function qr(t,e,n){let r=ye(()=>{n&&n(e)});a.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t])}function Yr(t){const e=a.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const ra="react-aria-clear-focus",ia="react-aria-focus";function Tn(t,e=!0){let[n,r]=a.useState(!0),i=n&&e;return te(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Zr(t,i,a.useCallback(()=>r(!1),[])),i}function Mn(t,e){let[n,r]=a.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Zr(t,i,a.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Zr(t,e,n){te(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||dt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const oa=typeof Element<"u"&&"checkVisibility"in Element.prototype;function la(t){const e=de(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:s}=o(t);i=l!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function sa(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Dn(t,e){return oa?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&la(t)&&sa(t,e)&&(!t.parentElement||Dn(t.parentElement,t))}const _n=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],aa=_n.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";_n.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const da=_n.join(':not([hidden]):not([tabindex="-1"]),');function Xr(t){return t.matches(aa)&&Dn(t)&&!Qr(t)}function Jr(t){return t.matches(da)&&Dn(t)&&!Qr(t)}function Qr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var In;const ca=typeof document<"u"?(In=a.useInsertionEffect)!==null&&In!==void 0?In:a.useLayoutEffect:()=>{};function pt(t,e,n){let[r,i]=a.useState(t||e),o=a.useRef(r),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let d=s?t:r;ca(()=>{o.current=d});let[,c]=a.useReducer(()=>({}),{}),u=a.useCallback((f,...m)=>{let v=typeof f=="function"?f(o.current):f;Object.is(o.current,v)||(o.current=v,i(v),c(),n==null||n(v,...m))},[n]);return[d,u]}const Kn=Symbol("default");function mt({values:t,children:e}){for(let[n,r]of t)e=a.createElement(n.Provider,{value:r},e);return e}function me(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:s,render:d}=t;return a.useMemo(()=>{let c,u,f;return typeof e=="function"?c=e({...s,defaultClassName:i}):c=e,typeof n=="function"?u=n({...s,defaultStyle:l||{}}):u=n,typeof r=="function"?f=r({...s,defaultChildren:o}):r==null?f=o:f=r,{className:c??i,style:u||l?{...l,...u}:void 0,children:f??o,"data-rac":"",render:d?m=>d(m,s):void 0}},[e,n,r,i,o,l,s,d])}function St(t,e){let n=a.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||Kn;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function xe(t,e,n){let r=St(n,t.slot)||{},{ref:i,...o}=r,l=Se(a.useMemo(()=>et(e,i),[e,i])),s=Y(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?s.style=d=>{let c=typeof o.style=="function"?o.style(d):o.style,u={...d.defaultStyle,...c},f=typeof t.style=="function"?t.style({...d,defaultStyle:u}):t.style;return{...u,...f}}:s.style={...o.style,...t.style}),[s,l]}function ua(t=!0){let[e,n]=a.useState(t),r=a.useRef(!1),i=a.useCallback(o=>{r.current=!0,n(!!o)},[]);return te(()=>{r.current||n(!1)},[]),[i,e]}function $t(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function fa(t,e,n){let{render:r,...i}=e,o=a.useRef(null),l=a.useMemo(()=>et(n,o),[n,o]);te(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let s={...i,ref:l};return r?r(s,void 0):a.createElement(t,s)}const Rr={},ue=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Rr[e];return n||(n=a.forwardRef(fa.bind(null,e)),Rr[e]=n),n}}),ei=7e3;let Ee=null;function ti(t,e="assertive",n=ei){Ee?Ee.announce(t,e,n):(Ee=new ha,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ee.announce(t,e,n):setTimeout(()=>{Ee!=null&&Ee.isAttached()&&(Ee==null||Ee.announce(t,e,n))},100))}class ha{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=ei){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const pa=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ma=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function va(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return pa.has(n.script)}let e=t.split("-")[0];return ma.has(e)}const ni=Symbol.for("react-aria.i18n.locale");function ri(){let t=typeof window<"u"&&window[ni]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:va(t)?"rtl":"ltr"}}let Ln=ri(),vt=new Set;function ii(){Ln=ri();for(let t of vt)t(Ln)}function ga(){let t=Be(),[e,n]=a.useState(Ln);return a.useEffect(()=>(vt.size===0&&window.addEventListener("languagechange",ii),vt.add(n),()=>{vt.delete(n),vt.size===0&&window.removeEventListener("languagechange",ii)}),[]),t?{locale:typeof window<"u"&&window[ni]||"en-US",direction:"ltr"}:e}const ba=a.createContext(null);function Sn(){let t=ga();return a.useContext(ba)||t}const ya=Symbol.for("react-aria.i18n.locale"),xa=Symbol.for("react-aria.i18n.strings");let nt;class Ft{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=wa(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[ya];if(nt===void 0){let i=window[xa];if(!i)return null;nt={};for(let o in i)nt[o]=new Ft({[n]:i[o]},n)}let r=nt==null?void 0:nt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function wa(t,e,n="en-US"){if(e[t])return e[t];let r=Ea(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function Ea(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const oi=new Map,li=new Map;class Ca{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=oi.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),oi.set(o,l));let s=l.select(e);return i=n[s]||n.other,typeof i=="function"?i():i}number(e){let n=li.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),li.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const si=new WeakMap;function Pa(t){let e=si.get(t);return e||(e=new Ft(t),si.set(t,e)),e}function ka(t,e){return e&&Ft.getGlobalDictionaryForPackage(e)||Pa(t)}function Na(t,e){let{locale:n}=Sn(),r=ka(t,e);return a.useMemo(()=>new Ca(n,r),[n,r])}function Ta(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ma(t,e,n){Ta(t,e),e.set(t,n)}function $n(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ai(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function di(t){let e=a.useRef({isFocused:!1,observer:null});return te(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{let r=K(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let s=$n(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=i===ie()?null:ie();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let At=!1;function ci(t){for(;t&&!Xr(t);)t=t.parentElement;let e=de(t),n=e.document.activeElement;if(!n||n===t)return;At=!0;let r=!1,i=u=>{(K(u)===n||r)&&u.stopImmediatePropagation()},o=u=>{(K(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,Me(n),d()))},l=u=>{(K(u)===t||r)&&u.stopImmediatePropagation()},s=u=>{(K(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,Me(n),d()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let d=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),At=!1,r=!1},c=requestAnimationFrame(d);return d}let rt="default",Fn="",Ot=new WeakMap;function ui(t){if(Ue()){if(rt==="default"){const e=J(t);Fn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";Ot.set(t,t.style[e]),t.style[e]="none"}}function An(t){if(Ue()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{Br(()=>{if(rt==="restoring"){const e=J(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Fn||""),Fn="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Ot.has(t)){let e=Ot.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Ot.delete(t)}}const On=a.createContext({register:()=>{}});On.displayName="PressResponderContext";function Da(t,e){return e.get?e.get.call(t):e.value}function fi(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function _a(t,e){var n=fi(t,e,"get");return Da(t,n)}function Ia(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function hi(t,e,n){var r=fi(t,e,"set");return Ia(t,r,n),n}function Ka(t){let e=a.useContext(On);if(e){let{register:n,ref:r,...i}=e;t=Y(i,t),n()}return Ur(e,t.ref),t}var zt=new WeakMap;class Vt{continuePropagation(){hi(this,zt,!1)}get shouldStopPropagation(){return _a(this,zt)}constructor(e,n,r,i){Ma(this,zt,{writable:!0,value:void 0}),hi(this,zt,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let d,c=0,u,f=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,f=r.clientY),s&&(u!=null&&f!=null?(d=u-s.left,c=f-s.top):(d=s.width/2,c=s.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=d,this.y=c,this.key=r.key}}const pi=Symbol("linkClicked"),mi="react-aria-pressable-style",vi="data-react-aria-pressable";function it(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:s,isPressed:d,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:m,...v}=Ka(t),[g,b]=a.useState(!1),w=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:E,removeGlobalListener:C}=It(),k=a.useCallback((p,_)=>{let y=w.current;if(s||y.didFirePressStart)return!1;let D=!0;if(y.isTriggeringEvent=!0,r){let $=new Vt("pressstart",_,p);r($),D=$.shouldStopPropagation}return n&&n(!0),y.isTriggeringEvent=!1,y.didFirePressStart=!0,b(!0),D},[s,r,n]),N=a.useCallback((p,_,y=!0)=>{let D=w.current;if(!D.didFirePressStart)return!1;D.didFirePressStart=!1,D.isTriggeringEvent=!0;let $=!0;if(i){let A=new Vt("pressend",_,p);i(A),$=A.shouldStopPropagation}if(n&&n(!1),b(!1),e&&y&&!s){let A=new Vt("press",_,p);e(A),$&&($=A.shouldStopPropagation)}return D.isTriggeringEvent=!1,$},[s,i,n,e]),U=ye(N),O=a.useCallback((p,_)=>{let y=w.current;if(s)return!1;if(o){y.isTriggeringEvent=!0;let D=new Vt("pressup",_,p);return o(D),y.isTriggeringEvent=!1,D.shouldStopPropagation}return!0},[s,o]),P=ye(O),I=a.useCallback(p=>{let _=w.current;if(_.isPressed&&_.target){_.didFirePressStart&&_.pointerType!=null&&N(We(_.target,p),_.pointerType,!1),_.isPressed=!1,ee(null),_.isOverTarget=!1,_.activePointerId=null,_.pointerType=null,E(),f||An(_.target);for(let y of _.disposables)y();_.disposables=[]}},[f,E,N]),T=ye(I),L=a.useCallback(p=>{u&&I(p)},[u,I]),q=a.useCallback(p=>{s||l==null||l(p)},[s,l]),Z=a.useCallback((p,_)=>{if(!s&&l){let y=new MouseEvent("click",p);ai(y,_),l($n(y))}},[s,l]),M=ye(Z),[B,G]=a.useState(!1);te(()=>{let p=w.current;if(B){let _=A=>{var Q;if(p.isPressed&&p.target&&Vn(A,p.target)){var ae;yi(K(A),A.key)&&A.preventDefault();let R=K(A),fe=W(p.target,R);U(We(p.target,A),"keyboard",fe),fe&&M(A,p.target),E(),A.key!=="Enter"&&zn(p.target)&&W(p.target,R)&&!A[pi]&&(A[pi]=!0,_e(p.target,A,!1)),p.isPressed=!1,G(!1),(ae=p.metaKeyEvents)===null||ae===void 0||ae.delete(A.key)}else if(A.key==="Meta"&&(!((Q=p.metaKeyEvents)===null||Q===void 0)&&Q.size)){var H;let R=p.metaKeyEvents;p.metaKeyEvents=void 0;for(let fe of R.values())(H=p.target)===null||H===void 0||H.dispatchEvent(new KeyboardEvent("keyup",fe))}},y=p.target,$=ut(A=>{y&&Vn(A,y)&&!A.repeat&&W(y,K(A))&&p.target&&P(We(p.target,A),"keyboard")},_);return x(J(p.target),"keyup",$,!0),()=>{C(J(p.target),"keyup",$,!0)}}},[B,x,E,C]);let[X,ee]=a.useState(null);te(()=>{let p=w.current;if(X==="pointer"){let _=D=>{if(D.pointerId===p.activePointerId&&p.isPressed&&D.button===0&&p.target){if(W(p.target,K(D))&&p.pointerType!=null){let $=!1,A=setTimeout(()=>{p.isPressed&&p.target instanceof HTMLElement&&($?T(D):(Me(p.target),p.target.click()))},80);D.currentTarget&&x(D.currentTarget,"click",()=>$=!0,!0),p.disposables.push(()=>clearTimeout(A))}else T(D);p.isOverTarget=!1}},y=D=>{T(D)};return x(J(p.target),"pointerup",_,!1),x(J(p.target),"pointercancel",y,!1),()=>{C(J(p.target),"pointerup",_,!1),C(J(p.target),"pointercancel",y,!1)}}else if(X==="mouse"&&process.env.NODE_ENV==="test"){let _=y=>{if(y.button===0){if(p.ignoreEmulatedMouseEvents){p.ignoreEmulatedMouseEvents=!1;return}p.target&&W(p.target,y.target)&&p.pointerType!=null||T(y),p.isOverTarget=!1}};return x(J(p.target),"mouseup",_,!1),()=>{C(J(p.target),"mouseup",_,!1)}}else if(X==="touch"&&process.env.NODE_ENV==="test"){let _=y=>{p.isPressed&&W(K(y),p.target)&&T({currentTarget:p.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return x(de(p.target),"scroll",_,!0),()=>{C(de(p.target),"scroll",_,!0)}}},[X,x,C]);let re=a.useMemo(()=>{let p=w.current,_={onKeyDown(y){if(Vn(y.nativeEvent,y.currentTarget)&&W(y.currentTarget,K(y))){var D;yi(K(y),y.key)&&y.preventDefault();let $=!0;!p.isPressed&&!y.repeat&&(p.target=y.currentTarget,p.isPressed=!0,G(!0),p.pointerType="keyboard",$=k(y,"keyboard")),$&&y.stopPropagation(),y.metaKey&&He()&&((D=p.metaKeyEvents)===null||D===void 0||D.set(y.key,y.nativeEvent))}else y.key==="Meta"&&(p.metaKeyEvents=new Map)},onClick(y){if(!(y&&!W(y.currentTarget,K(y)))&&y&&y.button===0&&!p.isTriggeringEvent&&!_e.isOpening){let D=!0;if(s&&y.preventDefault(),!p.ignoreEmulatedMouseEvents&&!p.isPressed&&(p.pointerType==="virtual"||Nn(y.nativeEvent))){let $=k(y,"virtual"),A=O(y,"virtual"),Q=N(y,"virtual");q(y),D=$&&A&&Q}else if(p.isPressed&&p.pointerType!=="keyboard"){let $=p.pointerType||y.nativeEvent.pointerType||"virtual",A=O(We(y.currentTarget,y),$),Q=N(We(y.currentTarget,y),$,!0);D=A&&Q,p.isOverTarget=!1,q(y),I(y)}p.ignoreEmulatedMouseEvents=!1,D&&y.stopPropagation()}}};return typeof PointerEvent<"u"?(_.onPointerDown=y=>{if(y.button!==0||!W(y.currentTarget,K(y)))return;if(na(y.nativeEvent)){p.pointerType="virtual";return}p.pointerType=y.pointerType;let D=!0;if(!p.isPressed){p.isPressed=!0,ee("pointer"),p.isOverTarget=!0,p.activePointerId=y.pointerId,p.target=y.currentTarget,f||ui(p.target),D=k(y,p.pointerType);let $=K(y);"releasePointerCapture"in $&&("hasPointerCapture"in $?$.hasPointerCapture(y.pointerId)&&$.releasePointerCapture(y.pointerId):$.releasePointerCapture(y.pointerId))}D&&y.stopPropagation()},_.onMouseDown=y=>{if(W(y.currentTarget,K(y))&&y.button===0){if(c){let D=ci(y.target);D&&p.disposables.push(D)}y.stopPropagation()}},_.onPointerUp=y=>{!W(y.currentTarget,K(y))||p.pointerType==="virtual"||y.button===0&&!p.isPressed&&O(y,p.pointerType||y.pointerType)},_.onPointerEnter=y=>{y.pointerId===p.activePointerId&&p.target&&!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,k(We(p.target,y),p.pointerType))},_.onPointerLeave=y=>{y.pointerId===p.activePointerId&&p.target&&p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,N(We(p.target,y),p.pointerType,!1),L(y))},_.onDragStart=y=>{W(y.currentTarget,K(y))&&I(y)}):process.env.NODE_ENV==="test"&&(_.onMouseDown=y=>{if(y.button!==0||!W(y.currentTarget,K(y)))return;if(p.ignoreEmulatedMouseEvents){y.stopPropagation();return}if(p.isPressed=!0,ee("mouse"),p.isOverTarget=!0,p.target=y.currentTarget,p.pointerType=Nn(y.nativeEvent)?"virtual":"mouse",dt.flushSync(()=>k(y,p.pointerType))&&y.stopPropagation(),c){let $=ci(y.target);$&&p.disposables.push($)}},_.onMouseEnter=y=>{if(!W(y.currentTarget,K(y)))return;let D=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!0,D=k(y,p.pointerType)),D&&y.stopPropagation()},_.onMouseLeave=y=>{if(!W(y.currentTarget,K(y)))return;let D=!0;p.isPressed&&!p.ignoreEmulatedMouseEvents&&p.pointerType!=null&&(p.isOverTarget=!1,D=N(y,p.pointerType,!1),L(y)),D&&y.stopPropagation()},_.onMouseUp=y=>{W(y.currentTarget,K(y))&&!p.ignoreEmulatedMouseEvents&&y.button===0&&!p.isPressed&&O(y,p.pointerType||"mouse")},_.onTouchStart=y=>{if(!W(y.currentTarget,K(y)))return;let D=La(y.nativeEvent);if(!D)return;p.activePointerId=D.identifier,p.ignoreEmulatedMouseEvents=!0,p.isOverTarget=!0,p.isPressed=!0,ee("touch"),p.target=y.currentTarget,p.pointerType="touch",f||ui(p.target),k($e(p.target,y),p.pointerType)&&y.stopPropagation()},_.onTouchMove=y=>{if(!W(y.currentTarget,K(y)))return;if(!p.isPressed){y.stopPropagation();return}let D=gi(y.nativeEvent,p.activePointerId),$=!0;D&&bi(D,y.currentTarget)?!p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!0,$=k($e(p.target,y),p.pointerType)):p.isOverTarget&&p.pointerType!=null&&(p.isOverTarget=!1,$=N($e(p.target,y),p.pointerType,!1),L($e(p.target,y))),$&&y.stopPropagation()},_.onTouchEnd=y=>{if(!W(y.currentTarget,K(y)))return;if(!p.isPressed){y.stopPropagation();return}let D=gi(y.nativeEvent,p.activePointerId),$=!0;D&&bi(D,y.currentTarget)&&p.pointerType!=null?(O($e(p.target,y),p.pointerType),$=N($e(p.target,y),p.pointerType),Z(y.nativeEvent,p.target)):p.isOverTarget&&p.pointerType!=null&&($=N($e(p.target,y),p.pointerType,!1)),$&&y.stopPropagation(),p.isPressed=!1,ee(null),p.activePointerId=null,p.isOverTarget=!1,p.ignoreEmulatedMouseEvents=!0,p.target&&!f&&An(p.target),E()},_.onTouchCancel=y=>{W(y.currentTarget,K(y))&&(y.stopPropagation(),p.isPressed&&I($e(p.target,y)))},_.onDragStart=y=>{W(y.currentTarget,K(y))&&I(y)}),_},[s,c,E,f,I,L,N,k,O,q,Z]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const p=J(m.current);if(!p||!p.head||p.getElementById(mi))return;const _=p.createElement("style");_.id=mi,_.textContent=`
|
|
2
|
-
@layer {
|
|
3
|
-
[${vi}] {
|
|
4
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
`.trim(),p.head.prepend(_)},[m]),a.useEffect(()=>{let p=w.current;return()=>{var _;f||An((_=p.target)!==null&&_!==void 0?_:void 0);for(let y of p.disposables)y();p.disposables=[]}},[f]),{isPressed:d||g,pressProps:Y(v,re,{[vi]:!0})}}function zn(t){return t.tagName==="A"&&t.hasAttribute("href")}function Vn(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof de(i).HTMLInputElement&&!xi(i,n)||i instanceof de(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&zn(i))&&n!=="Enter")}function La(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function gi(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function $e(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function We(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function Sa(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function $a(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function bi(t,e){let n=e.getBoundingClientRect(),r=Sa(t);return $a(n,r)}function Fa(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!zn(t)}function yi(t,e){return t instanceof HTMLInputElement?!xi(t,e):Fa(t)}const Aa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Aa.has(t.type)}let je=null;const Bn=new Set;let gt=new Map,Ge=!1,Hn=!1;const Oa={Tab:!0,Escape:!0};function Bt(t,e){for(let n of Bn)n(t,e)}function za(t){return!(t.metaKey||!He()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ht(t){Ge=!0,!_e.isOpening&&za(t)&&(je="keyboard",Bt("keyboard",t))}function ve(t){je="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Ge=!0,Bt("pointer",t))}function wi(t){!_e.isOpening&&Nn(t)&&(Ge=!0,je="virtual")}function Ei(t){K(t)===window||K(t)===document||At||!t.isTrusted||(!Ge&&!Hn&&(je="virtual",Bt("virtual",t)),Ge=!1,Hn=!1)}function Ci(){At||(Ge=!1,Hn=!0)}function Un(t){if(typeof window>"u"||typeof document>"u"||gt.get(de(t)))return;const e=de(t),n=J(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ge=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ht,!0),n.addEventListener("keyup",Ht,!0),n.addEventListener("click",wi,!0),e.addEventListener("focus",Ei,!0),e.addEventListener("blur",Ci,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ve,!0),n.addEventListener("pointermove",ve,!0),n.addEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ve,!0),n.addEventListener("mousemove",ve,!0),n.addEventListener("mouseup",ve,!0)),e.addEventListener("beforeunload",()=>{Pi(t)},{once:!0}),gt.set(e,{focus:r})}const Pi=(t,e)=>{const n=de(t),r=J(t);e&&r.removeEventListener("DOMContentLoaded",e),gt.has(n)&&(n.HTMLElement.prototype.focus=gt.get(n).focus,r.removeEventListener("keydown",Ht,!0),r.removeEventListener("keyup",Ht,!0),r.removeEventListener("click",wi,!0),n.removeEventListener("focus",Ei,!0),n.removeEventListener("blur",Ci,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ve,!0),r.removeEventListener("pointermove",ve,!0),r.removeEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ve,!0),r.removeEventListener("mousemove",ve,!0),r.removeEventListener("mouseup",ve,!0)),gt.delete(n))};function Va(t){const e=J(t);let n;return e.readyState!=="loading"?Un(t):(n=()=>{Un(t)},e.addEventListener("DOMContentLoaded",n)),()=>Pi(t,n)}typeof document<"u"&&Va();function Wn(){return je!=="pointer"}function Ut(){return je}function Ba(t){je=t,Bt(t,null)}const Ha=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ua(t,e,n){let r=J(n?K(n):void 0),i=n?K(n):void 0;const o=typeof window<"u"?de(i).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?de(i).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?de(i).HTMLElement:HTMLElement,d=typeof window<"u"?de(i).KeyboardEvent:KeyboardEvent;let c=ie(r);return t=t||c instanceof o&&!Ha.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(t&&e==="keyboard"&&n instanceof d&&!Oa[n.key])}function Wa(t,e,n){Un(),a.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,o)=>{Ua(!!(n!=null&&n.isTextInput),i,o)&&t(Wn())};return Bn.add(r),()=>{Bn.delete(r)}},e)}function qe(t){if(!t.isConnected)return;const e=J(t);if(Ut()==="virtual"){let n=ie(e);Br(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&Me(t)})}else Me(t)}function ki(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=a.useCallback(d=>{if(K(d)===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),l=di(o),s=a.useCallback(d=>{let c=K(d);const u=J(c),f=u?ie(u):ie();c===d.currentTarget&&c===f&&(n&&n(d),i&&i(!0),l(d))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?s:void 0,onBlur:!e&&(r||i)?o:void 0}}}function Ni(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function ja(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ni(t.onKeyDown),onKeyUp:Ni(t.onKeyUp)}}}let jn=a.createContext(null);function Ga(t){let e=a.useContext(jn)||{};Ur(e,t);let{ref:n,...r}=e;return r}function Wt(t,e){let{focusProps:n}=ki(t),{keyboardProps:r}=ja(t),i=Y(n,r),o=Ga(e),l=t.isDisabled?{}:o,s=a.useRef(t.autoFocus);a.useEffect(()=>{s.current&&e.current&&qe(e.current),s.current=!1},[e]);let d=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(d=void 0),{focusableProps:Y({...i,tabIndex:d},l)}}function qa({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(On.Provider,{value:e},t)}function Gn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=It(),d=a.useCallback(f=>{W(f.currentTarget,K(f))&&o.current.isFocusWithin&&!W(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(f),i&&i(!1))},[n,i,o,s]),c=di(d),u=a.useCallback(f=>{if(!W(f.currentTarget,K(f)))return;let m=K(f);const v=J(m),g=ie(v);if(!o.current.isFocusWithin&&g===m){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let b=f.currentTarget;l(v,"focus",w=>{let x=K(w);if(o.current.isFocusWithin&&!W(b,x)){let E=new v.defaultView.FocusEvent("blur",{relatedTarget:x});ai(E,b);let C=$n(E);d(C)}},{capture:!0})}},[r,i,c,l,d]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:d}}}let jt=!1,Gt=0;function qn(){jt=!0,setTimeout(()=>{jt=!1},50)}function Ti(t){t.pointerType==="touch"&&qn()}function Ya(){if(!(typeof document>"u"))return Gt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ti):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qn)),Gt++,()=>{Gt--,!(Gt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ti):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",qn))}}function bt(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Ya,[]);let{addGlobalListener:d,removeAllGlobalListeners:c}=It(),{hoverProps:u,triggerHoverEnd:f}=a.useMemo(()=>{let m=(b,w)=>{if(s.pointerType=w,i||w==="touch"||s.isHovered||!W(b.currentTarget,K(b)))return;s.isHovered=!0;let x=b.currentTarget;s.target=x,d(J(K(b)),"pointerover",E=>{s.isHovered&&s.target&&!W(s.target,K(E))&&v(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:x,pointerType:w}),n&&n(!0),l(!0)},v=(b,w)=>{let x=s.target;s.pointerType="",s.target=null,!(w==="touch"||!s.isHovered||!x)&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:x,pointerType:w}),n&&n(!1),l(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=b=>{jt&&b.pointerType==="mouse"||m(b,b.pointerType)},g.onPointerLeave=b=>{!i&&W(b.currentTarget,K(b))&&v(b,b.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=b=>{!s.ignoreEmulatedMouseEvents&&!jt&&m(b,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=b=>{!i&&W(b.currentTarget,K(b))&&v(b,"mouse")}),{hoverProps:g,triggerHoverEnd:v}},[e,n,r,i,s,d,c]);return a.useEffect(()=>{i&&f({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}function Za(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ye(d=>{n&&qt(d,e)&&(i&&i(d),o.current.isPointerDown=!0)}),s=ye(d=>{n&&n(d)});a.useEffect(()=>{let d=o.current;if(r)return;const c=e.current,u=J(c);if(typeof PointerEvent<"u"){let f=m=>{d.isPointerDown&&qt(m,e)&&s(m),d.isPointerDown=!1};return u.addEventListener("pointerdown",l,!0),u.addEventListener("click",f,!0),()=>{u.removeEventListener("pointerdown",l,!0),u.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1},m=v=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1};return u.addEventListener("mousedown",l,!0),u.addEventListener("mouseup",f,!0),u.addEventListener("touchstart",l,!0),u.addEventListener("touchend",m,!0),()=>{u.removeEventListener("mousedown",l,!0),u.removeEventListener("mouseup",f,!0),u.removeEventListener("touchstart",l,!0),u.removeEventListener("touchend",m,!0)}}},[e,r])}function qt(t,e){if(t.button>0)return!1;let n=K(t);if(n){const r=n.ownerDocument;if(!r||!W(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const Xa=500;function Ja(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Xa,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:d,removeGlobalListener:c}=It(),{pressProps:u}=it({isDisabled:e,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),s.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),J(m.target).activeElement!==m.target&&Me(m.target),i&&i({...m,type:"longpress"}),s.current=void 0},o),m.pointerType==="touch")){let v=g=>{g.preventDefault()};d(m.target,"contextmenu",v,{once:!0}),d(window,"pointerup",()=>{setTimeout(()=>{c(m.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(m){s.current&&clearTimeout(s.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),f=ta(i&&!e?l:void 0);return{longPressProps:Y(u,f)}}const Mi=a.createContext(null),Yn="react-aria-focus-scope-restore";let ne=null;function Qa(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:d}=a.useContext(Mi)||{},c=a.useMemo(()=>new Jn({scopeRef:s}),[s]);te(()=>{let m=d||oe.root;if(oe.getTreeNode(m.scopeRef)&&ne&&!Yt(ne,m.scopeRef)){let v=oe.getTreeNode(ne);v&&(m=v)}m.addChild(c),oe.addNode(c)},[c,d]),te(()=>{let m=oe.getTreeNode(s);m&&(m.contain=!!n)},[n]),te(()=>{var m;let v=(m=o.current)===null||m===void 0?void 0:m.nextSibling,g=[],b=w=>w.stopPropagation();for(;v&&v!==l.current;)g.push(v),v.addEventListener(Yn,b),v=v.nextSibling;return s.current=g,()=>{for(let w of g)w.removeEventListener(Yn,b)}},[e]),od(s,r,n),nd(s,n),ld(s,r,n),id(s,i),a.useEffect(()=>{const m=ie(J(s.current?s.current[0]:void 0));let v=null;if(ge(m,s.current)){for(let g of oe.traverse())g.scopeRef&&ge(m,g.scopeRef.current)&&(v=g);v===oe.getTreeNode(s)&&(ne=v.scopeRef)}},[s]),te(()=>()=>{var m,v,g;let b=(g=(v=oe.getTreeNode(s))===null||v===void 0||(m=v.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&g!==void 0?g:null;(s===ne||Yt(s,ne))&&(!b||oe.getTreeNode(b))&&(ne=b),oe.removeTreeNode(s)},[s]);let u=a.useMemo(()=>Ra(s),[]),f=a.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return a.createElement(Mi.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Ra(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(J((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[0].previousElementSibling,u=Ye(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ge(d,n)?d:c;let m=f.nextNode();return!m&&o&&(f.currentNode=c,m=f.nextNode()),m&&Ie(m,!0),m},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(J((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[n.length-1].nextElementSibling,u=Ye(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ge(d,n)?d:c;let m=f.previousNode();return!m&&o&&(f.currentNode=c,m=f.previousNode()),m&&Ie(m,!0),m},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ye(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Ie(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ye(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Ie(s,!0),s}}}function Ye(t){return t[0].parentElement}function yt(t){let e=oe.getTreeNode(ne);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function ed(t){if(!t.form)return Array.from(J(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=de(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function td(t){if(t.checked)return!0;const e=ed(t);return e.length>0&&!e.some(n=>n.checked)}function nd(t,e){let n=a.useRef(void 0),r=a.useRef(void 0);te(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=J(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!yt(t)||c.isComposing)return;let u=ie(o),f=t.current;if(!f||!ge(u,f))return;let m=Ye(f),v=Ce(m,{tabbable:!0},f);if(!u)return;v.currentNode=u;let g=c.shiftKey?v.previousNode():v.nextNode();g||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,g=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),g&&Ie(g,!0)},s=c=>{(!ne||Yt(ne,t))&&ge(K(c),t.current)?(ne=t,n.current=K(c)):yt(t)&&!Fe(K(c),t)?n.current?n.current.focus():ne&&ne.current&&Zn(ne.current):yt(t)&&(n.current=K(c))},d=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Ut(),f=(u==="virtual"||u===null)&&yn()&&bn(),m=ie(o);if(!f&&m&&yt(t)&&!Fe(m,t)){ne=t;let g=K(c);if(g&&g.isConnected){var v;n.current=g,(v=n.current)===null||v===void 0||v.focus()}else ne.current&&Zn(ne.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",s,!1),i==null||i.forEach(c=>c.addEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",d,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",s,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",d,!1))}},[t,e]),te(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Di(t){return Fe(t)}function ge(t,e){return!t||!e?!1:e.some(n=>W(n,t))}function Fe(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of oe.traverse(oe.getTreeNode(e)))if(n&&ge(t,n.current))return!0;return!1}function rd(t){return Fe(t,ne)}function Yt(t,e){var n;let r=(n=oe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Ie(t,e=!1){if(t!=null&&!e)try{qe(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function _i(t,e=!0){let n=t[0].previousElementSibling,r=Ye(t),i=Ce(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ye(t),i=Ce(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Zn(t,e=!0){Ie(_i(t,e))}function id(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){ne=t;const r=J(t.current?t.current[0]:void 0);!ge(ie(r),ne.current)&&t.current&&Zn(t.current)}n.current=!1},[t])}function od(t,e,n){te(()=>{if(e||n)return;let r=t.current;const i=J(r?r[0]:void 0);let o=l=>{let s=K(l);ge(s,t.current)?ne=t:Di(s)||(ne=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ii(t){let e=oe.getTreeNode(ne);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function ld(t,e,n){const r=a.useRef(typeof document<"u"?ie(J(t.current?t.current[0]:void 0)):null);te(()=>{let i=t.current;const o=J(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!ne||Yt(ne,t))&&ge(ie(o),t.current)&&(ne=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,n]),te(()=>{const i=J(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!yt(t)||l.isComposing)return;let s=i.activeElement;if(!Fe(s,t)||!Ii(t))return;let d=oe.getTreeNode(t);if(!d)return;let c=d.nodeToRestore,u=Ce(i.body,{tabbable:!0});u.currentNode=s;let f=l.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,d.nodeToRestore=void 0),(!f||!Fe(f,t))&&c){u.currentNode=c;do f=l.shiftKey?u.previousNode():u.nextNode();while(Fe(f,t));l.preventDefault(),l.stopPropagation(),f?Ie(f,!0):Di(c)?Ie(c,!0):s.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),te(()=>{const i=J(t.current?t.current[0]:void 0);if(!e)return;let o=oe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=oe.getTreeNode(t);if(!s)return;let d=s.nodeToRestore,c=ie(i);if(e&&d&&(c&&Fe(c,t)||c===i.body&&Ii(t))){let u=oe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=u.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Ki(f.nodeToRestore);return}f=f.parent}for(f=u.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&oe.getTreeNode(f.scopeRef)){let m=_i(f.scopeRef.current,!0);Ki(m);return}f=f.parent}}})}}}},[t,e])}function Ki(t){t.dispatchEvent(new CustomEvent(Yn,{bubbles:!0,cancelable:!0}))&&Ie(t)}function Ce(t,e,n){let r=e!=null&&e.tabbable?Jr:Xr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=J(i),l=$r(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return W(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!td(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ge(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Xn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Jn({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ge(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Xn;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Jn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Jn{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 oe=new Xn;function Ze(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=a.useRef({isFocused:!1,isFocusVisible:e||Wn()}),[o,l]=a.useState(!1),[s,d]=a.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=a.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),u=a.useCallback(v=>{i.current.isFocused=v,i.current.isFocusVisible=Wn(),l(v),c()},[c]);Wa(v=>{i.current.isFocusVisible=v,c()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=ki({isDisabled:r,onFocusChange:u}),{focusWithinProps:m}=Gn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?m:f}}function sd(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=a.useState(!1);return te(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let s=Ce(t.current,{tabbable:!0});i(!!s.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Li(t){let e=dd(J(t));e!==t&&(e&&ad(e,t),t&&Si(t,e))}function ad(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Si(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function dd(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Pe=[];function cd(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,d=a.useRef(void 0);a.useEffect(()=>{if(i&&!Pe.includes(e))return Pe.push(e),()=>{let b=Pe.indexOf(e);b>=0&&Pe.splice(b,1)}},[i,e]);let c=()=>{Pe[Pe.length-1]===e&&n&&n()},u=b=>{const w=Pe[Pe.length-1];d.current=w,(!s||s(K(b)))&&w===e&&(b.stopPropagation(),b.preventDefault())},f=b=>{(!s||s(K(b)))&&(Pe[Pe.length-1]===e&&(b.stopPropagation(),b.preventDefault()),d.current===e&&c()),d.current=void 0},m=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),c())};Za({ref:e,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=Gn({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||rd(b.relatedTarget)||(!s||s(b.relatedTarget))&&(n==null||n())}}),g=b=>{K(b)===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:m,...v},underlayProps:{onPointerDown:g}}}const xt=typeof document<"u"&&window.visualViewport;let Zt=0,Qn;function ud(t={}){let{isDisabled:e}=t;te(()=>{if(!e)return Zt++,Zt===1&&(Ue()?Qn=hd():Qn=fd()),()=>{Zt--,Zt===0&&Qn()}},[e])}function fd(){let t=window.innerWidth-document.documentElement.clientWidth;return ut(t>0&&("scrollbarGutter"in document.documentElement.style?Xt(document.documentElement,"scrollbarGutter","stable"):Xt(document.documentElement,"paddingRight",`${t}px`)),Xt(document.documentElement,"overflow","hidden"))}function hd(){let t=Xt(document.documentElement,"overflow","hidden"),e,n=!1,r=c=>{let u=K(c);e=ft(u)?u:Wr(u,!0),n=!1;let f=u.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(u,!0)&&(n=!0),c.composedPath().some(m=>m instanceof HTMLInputElement&&m.type==="range")&&(n=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(n=!0)},i=document.createElement("style");i.textContent=`
|
|
8
|
-
@layer {
|
|
9
|
-
* {
|
|
10
|
-
overscroll-behavior: contain;
|
|
11
|
-
}
|
|
12
|
-
}`.trim(),document.head.prepend(i);let o=c=>{if(!(c.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},l=c=>{let u=K(c),f=c.relatedTarget;if(f&&ht(f))f.focus({preventScroll:!0}),$i(f,ht(u));else if(!f){var m;let v=(m=u.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");v==null||v.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let u=ie(),f=u!=null&&ht(u);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&$i(this,f)};let d=ut(Rn(document,"touchstart",r,{passive:!1,capture:!0}),Rn(document,"touchmove",o,{passive:!1,capture:!0}),Rn(document,"blur",l,!0));return()=>{t(),d(),i.remove(),HTMLElement.prototype.focus=s}}function Xt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Rn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function $i(t,e){e||!xt?Fi(t):xt.addEventListener("resize",()=>Fi(t),{once:!0})}function Fi(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Wr(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;xt&&(l=Math.min(l,xt.offsetTop+xt.height));let s=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const pd=a.createContext({});function md(){var t;return(t=a.useContext(pd))!==null&&t!==void 0?t:{}}var Ai={};Ai={dismiss:"تجاهل"};var Oi={};Oi={dismiss:"Отхвърляне"};var zi={};zi={dismiss:"Odstranit"};var Vi={};Vi={dismiss:"Luk"};var Bi={};Bi={dismiss:"Schließen"};var Hi={};Hi={dismiss:"Απόρριψη"};var Ui={};Ui={dismiss:"Dismiss"};var Wi={};Wi={dismiss:"Descartar"};var ji={};ji={dismiss:"Lõpeta"};var Gi={};Gi={dismiss:"Hylkää"};var qi={};qi={dismiss:"Rejeter"};var Yi={};Yi={dismiss:"התעלם"};var Zi={};Zi={dismiss:"Odbaci"};var Xi={};Xi={dismiss:"Elutasítás"};var Ji={};Ji={dismiss:"Ignora"};var Qi={};Qi={dismiss:"閉じる"};var Ri={};Ri={dismiss:"무시"};var eo={};eo={dismiss:"Atmesti"};var to={};to={dismiss:"Nerādīt"};var no={};no={dismiss:"Lukk"};var ro={};ro={dismiss:"Negeren"};var io={};io={dismiss:"Zignoruj"};var oo={};oo={dismiss:"Descartar"};var lo={};lo={dismiss:"Dispensar"};var so={};so={dismiss:"Revocare"};var ao={};ao={dismiss:"Пропустить"};var co={};co={dismiss:"Zrušiť"};var uo={};uo={dismiss:"Opusti"};var fo={};fo={dismiss:"Odbaci"};var ho={};ho={dismiss:"Avvisa"};var po={};po={dismiss:"Kapat"};var mo={};mo={dismiss:"Скасувати"};var vo={};vo={dismiss:"取消"};var go={};go={dismiss:"關閉"};var bo={};bo={"ar-AE":Ai,"bg-BG":Oi,"cs-CZ":zi,"da-DK":Vi,"de-DE":Bi,"el-GR":Hi,"en-US":Ui,"es-ES":Wi,"et-EE":ji,"fi-FI":Gi,"fr-FR":qi,"he-IL":Yi,"hr-HR":Zi,"hu-HU":Xi,"it-IT":Ji,"ja-JP":Qi,"ko-KR":Ri,"lt-LT":eo,"lv-LV":to,"nb-NO":no,"nl-NL":ro,"pl-PL":io,"pt-BR":oo,"pt-PT":lo,"ro-RO":so,"ru-RU":ao,"sk-SK":co,"sl-SI":uo,"sr-SP":fo,"sv-SE":ho,"tr-TR":po,"uk-UA":mo,"zh-CN":vo,"zh-TW":go};const yo={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function vd(t={}){let{style:e,isFocusable:n}=t,[r,i]=a.useState(!1),{focusWithinProps:o}=Gn({isDisabled:!n,onFocusWithinChange:s=>i(s)}),l=a.useMemo(()=>r?e:e?{...yo,...e}:yo,[r]);return{visuallyHiddenProps:{...o,style:l}}}function er(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=vd(t);return a.createElement(n,Y(o,l),e)}function gd(t){return t&&t.__esModule?t.default:t}function bd(t){let{onDismiss:e,...n}=t,r=Na(gd(bo),"@react-aria/overlays"),i=Kt(n,r.format("dismiss")),o=()=>{e&&e()};return a.createElement(er,null,a.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const yd=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let wt=new WeakMap,be=[];function xd(t,e){let n=de(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let o=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,l=(r==null?void 0:r.shouldUseInert)&&yd,s=new Set(t),d=new Set,c=x=>l&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",u=(x,E)=>{l&&x instanceof n.HTMLElement?x.inert=E:E?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},f=new Set;if(Te())for(let x of t){let E=x;for(;E&&E!==o;){let C=E.getRootNode();"shadowRoot"in C&&f.add(C.shadowRoot),E=C.parentNode}}let m=x=>{for(let N of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(N);let E=N=>{if(d.has(N)||s.has(N)||N.parentElement&&d.has(N.parentElement)&&N.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let U of s)if(W(N,U))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=$r(J(x),x,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),k=E(x);if(k===NodeFilter.FILTER_ACCEPT&&v(x),k!==NodeFilter.FILTER_REJECT){let N=C.nextNode();for(;N!=null;)v(N),N=C.nextNode()}},v=x=>{var E;let C=(E=wt.get(x))!==null&&E!==void 0?E:0;c(x)&&C===0||(C===0&&u(x,!0),d.add(x),wt.set(x,C+1))};be.length&&be[be.length-1].disconnect(),m(o);let g=new MutationObserver(x=>{for(let E of x)if(E.type==="childList"){if(E.target.isConnected&&![...s,...d].some(C=>W(C,E.target)))for(let C of E.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?s.add(C):C instanceof Element&&m(C);if(Te()){for(let C of f)if(!C.isConnected){g.disconnect();break}}}});g.observe(o,{childList:!0,subtree:!0});let b=new Set;if(Te())for(let x of f){let E=new MutationObserver(C=>{for(let k of C)if(k.type==="childList"){if(k.target.isConnected&&![...s,...d].some(N=>W(N,k.target)))for(let N of k.addedNodes)(N instanceof HTMLElement||N instanceof SVGElement)&&(N.dataset.liveAnnouncer==="true"||N.dataset.reactAriaTopLayer==="true")?s.add(N):N instanceof Element&&m(N);if(Te()){for(let N of f)if(!N.isConnected){g.disconnect();break}}}});E.observe(x,{childList:!0,subtree:!0}),b.add(E)}let w={visibleNodes:s,hiddenNodes:d,observe(){g.observe(o,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return be.push(w),()=>{if(g.disconnect(),Te())for(let x of b)x.disconnect();for(let x of d){let E=wt.get(x);E!=null&&(E===1?(u(x,!1),wt.delete(x)):wt.set(x,E-1))}w===be[be.length-1]?(be.pop(),be.length&&be[be.length-1].observe()):be.splice(be.indexOf(w),1)}}const xo=a.createContext(null);function wd(t){let e=Be(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=a.useState(!1),l=a.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:s}=md();if(!t.portalContainer&&s&&(n=s()),!n)return null;let d=t.children;return t.disableFocusManagement||(d=a.createElement(Qa,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},d)),d=a.createElement(xo.Provider,{value:l},a.createElement(qa,null,d)),dt.createPortal(d,n)}function wo(){let t=a.useContext(xo),e=t==null?void 0:t.setContain;te(()=>{e==null||e(!0)},[e])}function Ed(t,e,n){let{overlayProps:r,underlayProps:i}=cd({...t,isOpen:e.isOpen,onClose:e.close},n);return ud({isDisabled:!e.isOpen}),wo(),a.useEffect(()=>{if(e.isOpen&&n.current)return xd([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:Y(r),underlayProps:i}}function Cd(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Ne(e);let l=Ne(),s={};n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=Kt({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:d}}function Pd(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=Cd(t),s=mn([!!e,!!n,r,i]),d=mn([!!e,!!n,r,i]);return l=Y(l,{"aria-describedby":[s,d,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:d}}}function tr(t){return Us()?t.altKey:t.ctrlKey}function nr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const Eo=new WeakMap;function kd(t){let e=Ne();return Eo.set(t,e),e}function Nd(t){return Eo.get(t)}const Td=1e3;function Md(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=a.useRef({search:"",timeout:void 0}).current,o=l=>{let s=Dd(l.key);if(!(!s||l.ctrlKey||l.metaKey||!W(l.currentTarget,K(l))||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=s,e.getKeyForSearch!=null){let d=e.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=e.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Td)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Dd(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function _d(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:v=r,linkBehavior:g="action"}=t,{direction:b}=Sn(),w=xn(),x=M=>{if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!r.current||!W(r.current,K(M)))return;const B=(H,R)=>{if(H!=null){if(e.isLink(H)&&g==="selection"&&c&&!tr(M)){dt.flushSync(()=>{e.setFocusedKey(H,R)});let fe=nr(r,H),ke=e.getItemProps(H);fe&&w.open(fe,M,ke.href,ke.routerOptions);return}if(e.setFocusedKey(H,R),e.isLink(H)&&g==="override")return;M.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(H):c&&!tr(M)&&e.replaceSelection(H)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var G,X,ee;let H=e.focusedKey!=null?(G=n.getKeyBelow)===null||G===void 0?void 0:G.call(n,e.focusedKey):(X=n.getFirstKey)===null||X===void 0?void 0:X.call(n);H==null&&o&&(H=(ee=n.getFirstKey)===null||ee===void 0?void 0:ee.call(n,e.focusedKey)),H!=null&&(M.preventDefault(),B(H))}break;case"ArrowUp":if(n.getKeyAbove){var re,p,_;let H=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(p=n.getLastKey)===null||p===void 0?void 0:p.call(n);H==null&&o&&(H=(_=n.getLastKey)===null||_===void 0?void 0:_.call(n,e.focusedKey)),H!=null&&(M.preventDefault(),B(H))}break;case"ArrowLeft":if(n.getKeyLeftOf){var y,D,$;let H=e.focusedKey!=null?(y=n.getKeyLeftOf)===null||y===void 0?void 0:y.call(n,e.focusedKey):null;H==null&&o&&(H=b==="rtl"?(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n,e.focusedKey):($=n.getLastKey)===null||$===void 0?void 0:$.call(n,e.focusedKey)),H!=null&&(M.preventDefault(),B(H,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var A,Q,ae;let H=e.focusedKey!=null?(A=n.getKeyRightOf)===null||A===void 0?void 0:A.call(n,e.focusedKey):null;H==null&&o&&(H=b==="rtl"?(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey):(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,e.focusedKey)),H!=null&&(M.preventDefault(),B(H,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&M.shiftKey)return;M.preventDefault();let H=n.getFirstKey(e.focusedKey,tt(M));e.setFocusedKey(H),H!=null&&(tt(M)&&M.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(H):c&&e.replaceSelection(H))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&M.shiftKey)return;M.preventDefault();let H=n.getLastKey(e.focusedKey,tt(M));e.setFocusedKey(H),H!=null&&(tt(M)&&M.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(H):c&&e.replaceSelection(H))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let H=n.getKeyPageBelow(e.focusedKey);H!=null&&(M.preventDefault(),B(H))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let H=n.getKeyPageAbove(e.focusedKey);H!=null&&(M.preventDefault(),B(H))}break;case"a":tt(M)&&e.selectionMode==="multiple"&&s!==!0&&(M.preventDefault(),e.selectAll());break;case"Escape":d==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(M.stopPropagation(),M.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(M.shiftKey)r.current.focus();else{let H=Ce(r.current,{tabbable:!0}),R,fe;do fe=H.lastChild(),fe&&(R=fe);while(fe);let ke=ie();R&&(!vn(R)||ke&&!Jr(ke))&&Me(R)}break}}},E=a.useRef({top:0,left:0});Lt(v,"scroll",()=>{var M,B,G,X;E.current={top:(G=(M=v.current)===null||M===void 0?void 0:M.scrollTop)!==null&&G!==void 0?G:0,left:(X=(B=v.current)===null||B===void 0?void 0:B.scrollLeft)!==null&&X!==void 0?X:0}});let C=M=>{if(e.isFocused){W(M.currentTarget,K(M))||e.setFocused(!1);return}if(W(M.currentTarget,K(M))){if(e.setFocused(!0),e.focusedKey==null){var B,G;let re=_=>{_!=null&&(e.setFocusedKey(_),c&&!e.isSelected(_)&&e.replaceSelection(_))},p=M.relatedTarget;var X,ee;p&&M.currentTarget.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING?re((X=e.lastSelectedKey)!==null&&X!==void 0?X:(B=n.getLastKey)===null||B===void 0?void 0:B.call(n)):re((ee=e.firstSelectedKey)!==null&&ee!==void 0?ee:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else v.current&&(v.current.scrollTop=E.current.top,v.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&v.current){let re=nr(r,e.focusedKey);re instanceof HTMLElement&&(!vn(re)&&!f&&Me(re),Ut()==="keyboard"&&Gr(re,{containingElement:r.current}))}}},k=M=>{W(M.currentTarget,M.relatedTarget)||e.setFocused(!1)},N=a.useRef(!1);Lt(r,ia,f?M=>{let{detail:B}=M;M.stopPropagation(),e.setFocused(!0),(B==null?void 0:B.focusStrategy)==="first"&&(N.current=!0)}:void 0),Hr(()=>{if(N.current){var M,B;let G=(B=(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n))!==null&&B!==void 0?B:null;if(G==null){let X=ie();Li(r.current),Si(X,null),e.collection.size>0&&(N.current=!1)}else e.setFocusedKey(G),N.current=!1}},[e.collection]),Hr(()=>{e.collection.size>0&&(N.current=!1)},[e.focusedKey]),Lt(r,ra,f?M=>{var B;M.stopPropagation(),e.setFocused(!1),!((B=M.detail)===null||B===void 0)&&B.clearFocusKey&&e.setFocusedKey(null)}:void 0);const U=a.useRef(i),O=a.useRef(!1);a.useEffect(()=>{if(U.current){var M,B;let ee=null;var G;i==="first"&&(ee=(G=(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n))!==null&&G!==void 0?G:null);var X;i==="last"&&(ee=(X=(B=n.getLastKey)===null||B===void 0?void 0:B.call(n))!==null&&X!==void 0?X:null);let re=e.selectedKeys;if(re.size){for(let p of re)if(e.canSelectItem(p)){ee=p;break}}e.setFocused(!0),e.setFocusedKey(ee),ee==null&&!f&&r.current&&qe(r.current),e.collection.size>0&&(U.current=!1,O.current=!0)}});let P=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||O.current)&&v.current&&r.current){let M=Ut(),B=nr(r,e.focusedKey);if(!(B instanceof HTMLElement))return;(M==="keyboard"||O.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{v.current&&(kn(v.current,B),M!=="virtual"&&Gr(B,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&P.current!=null&&r.current&&qe(r.current),P.current=e.focusedKey,O.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),Lt(r,"react-aria-focus-scope-restore",M=>{M.preventDefault(),e.setFocused(!0)});let T={onKeyDown:x,onFocus:C,onBlur:k,onMouseDown(M){v.current===K(M)&&M.preventDefault()}},{typeSelectProps:L}=Md({keyboardDelegate:n,selectionManager:e});u||(T=Y(L,T));let q;f||(q=e.focusedKey==null?0:-1);let Z=kd(e.collection);return{collectionProps:Y(T,{tabIndex:q,"data-collection":Z})}}function Id(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:s,isDisabled:d,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:f="action"}=t,m=xn();e=Ne(e);let v=p=>{if(p.pointerType==="keyboard"&&tr(p))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let _=n.getItemProps(r);m.open(i.current,p,_.href,_.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):p&&p.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||p&&(tt(p)||p.pointerType==="touch"||p.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Li(i.current):s?s():ie()!==i.current&&i.current&&qe(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),d=d||n.isDisabled(r);let g={};!l&&!d?g={tabIndex:r===n.focusedKey?0:-1,onFocus(p){K(p)===i.current&&n.setFocusedKey(r)}}:d&&(g.onMouseDown=p=>{p.preventDefault()}),a.useEffect(()=>{d&&n.focusedKey===r&&n.setFocusedKey(null)},[n,d,r]);let b=n.isLink(r)&&f==="override",w=c&&t.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&f!=="selection"&&f!=="none",E=!d&&n.canSelectItem(r)&&!b&&!w,C=(c||x)&&!d,k=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),N=C&&E&&n.selectionBehavior==="replace",U=k||N,O=a.useRef(null),P=U&&E,I=a.useRef(!1),T=a.useRef(!1),L=n.getItemProps(r),q=p=>{if(c){var _;c(),(_=i.current)===null||_===void 0||_.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&m.open(i.current,p,L.href,L.routerOptions)},Z={ref:i};if(o?(Z.onPressStart=p=>{O.current=p.pointerType,I.current=P,p.pointerType==="keyboard"&&(!U||Po(p.key))&&v(p)},u?(Z.onPressUp=k?void 0:p=>{p.pointerType==="mouse"&&E&&v(p)},Z.onPress=k?q:p=>{p.pointerType!=="keyboard"&&p.pointerType!=="mouse"&&E&&v(p)}):Z.onPress=p=>{if(k||N&&p.pointerType!=="mouse"){if(p.pointerType==="keyboard"&&!Co(p.key))return;q(p)}else p.pointerType!=="keyboard"&&E&&v(p)}):(Z.onPressStart=p=>{O.current=p.pointerType,I.current=P,T.current=k,E&&(p.pointerType==="mouse"&&!k||p.pointerType==="keyboard"&&(!C||Po(p.key)))&&v(p)},Z.onPress=p=>{(p.pointerType==="touch"||p.pointerType==="pen"||p.pointerType==="virtual"||p.pointerType==="keyboard"&&U&&Co(p.key)||p.pointerType==="mouse"&&T.current)&&(U?q(p):E&&v(p))}),g["data-collection"]=Nd(n.collection),g["data-key"]=r,Z.preventFocusOnPress=l,l&&(Z=Y(Z,{onPressStart(p){p.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(p){p.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),L)for(let p of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])L[p]&&(Z[p]=ut(Z[p],L[p]));let{pressProps:M,isPressed:B}=it(Z),G=N?p=>{O.current==="mouse"&&(p.stopPropagation(),p.preventDefault(),q(p))}:void 0,{longPressProps:X}=Ja({isDisabled:!P,onLongPress(p){p.pointerType==="touch"&&(v(p),n.setSelectionBehavior("toggle"))}}),ee=p=>{O.current==="touch"&&I.current&&p.preventDefault()},re=f!=="none"&&n.isLink(r)?p=>{_e.isOpening||p.preventDefault()}:void 0;return{itemProps:Y(g,E||k||l&&!d?M:{},P?X:{},{onDoubleClick:G,onDragStartCapture:ee,onClick:re,id:e},l?{onMouseDown:p=>p.preventDefault()}:void 0),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:d,allowsSelection:E,hasAction:U}}function Co(t){return t==="Enter"}function Po(t){return t===" "}class Kd{build(e,n){return this.context=n,ko(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(a.isValidElement(n)&&n.type===a.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];a.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let s=this.getFullNode({element:l,index:o},{});for(let d of s)o++,yield d}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let s=(l=o.key)!==null&&l!==void 0?l:o.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let w=[];a.Children.forEach(e.element.props.children,E=>{w.push(E)});var o;let x=(o=e.index)!==null&&o!==void 0?o:0;for(const E of w)yield*this.getFullNode({element:E,index:x++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let w=this.cache.get(e.value);if(w&&(!w.shouldInvalidate||!w.shouldInvalidate(this.context))){w.index=e.index,w.parentKey=i?i.key:null,yield w;return}l=n.renderer(e.value)}if(a.isValidElement(l)){let w=l.type;if(typeof w!="function"&&typeof w.getCollectionNode!="function"){let k=l.type;throw new Error(`Unknown element <${k}> in collection.`)}let x=w.getCollectionNode(l.props,this.context);var s;let E=(s=e.index)!==null&&s!==void 0?s:0,C=x.next();for(;!C.done&&C.value;){let k=C.value;e.index=E;var d;let N=(d=k.key)!==null&&d!==void 0?d:null;N==null&&(N=k.element?null:this.getKey(l,e,n,r));let O=[...this.getFullNode({...k,key:N,index:E,wrapper:Ld(e.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${l.key}`:l.key,i)];for(let P of O){var c,u;P.value=(u=(c=k.value)!==null&&c!==void 0?c:e.value)!==null&&u!==void 0?u:null,P.value&&this.cache.set(P.value,P);var f;if(e.type&&P.type!==e.type)throw new Error(`Unsupported type <${rr(P.type)}> in <${rr((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${rr(e.type)}> is supported.`);E++,yield P}C=x.next(O)}return}if(e.key==null||e.type==null)return;let m=this;var v,g;let b={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:ko(function*(){if(!e.hasChildNodes||!e.childNodes)return;let w=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${b.key}${x.key}`);let E=m.getFullNode({...x,index:w},m.getChildState(n,x),b.key,b);for(let C of E)w++,yield C}})};yield b}constructor(){this.cache=new WeakMap}}function ko(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function Ld(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function rr(t){return t[0].toUpperCase()+t.slice(1)}function Sd(t,e,n){let r=a.useMemo(()=>new Kd,[]),{children:i,items:o,collection:l}=t;return a.useMemo(()=>{if(l)return l;let d=r.build({children:i,items:o},n);return e(d)},[r,i,o,l,n,e])}function $d(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Fd(t){return Ad(t)}function Ad(t,e){for(let n of t)return n}function ir(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...No(t,e),e],i=[...No(t,n),n],o=r.slice(0,i.length).findIndex((l,s)=>l!==i[s]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function No(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const To={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Mo={...To,customError:!0,valid:!1},ot={isInvalid:!1,validationDetails:To,validationErrors:[]},Od=a.createContext({}),Jt="__formValidationState"+Date.now();function or(t){if(t[Jt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Jt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return zd(t)}function zd(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:s="aria"}=t;n&&(e||(e=n==="invalid"));let d=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Mo}:null,c=a.useMemo(()=>{if(!l||i==null)return null;let T=Vd(l,i);return Do(T)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=a.useContext(Od),f=a.useMemo(()=>r?Array.isArray(r)?r.flatMap(T=>lr(u[T])):lr(u[r]):[],[u,r]),[m,v]=a.useState(u),[g,b]=a.useState(!1);u!==m&&(v(u),b(!1));let w=a.useMemo(()=>Do(g?[]:f),[g,f]),x=a.useRef(ot),[E,C]=a.useState(ot),k=a.useRef(ot),N=()=>{if(!U)return;O(!1);let T=c||o||x.current;sr(T,k.current)||(k.current=T,C(T))},[U,O]=a.useState(!1);return a.useEffect(N),{realtimeValidation:d||w||c||o||ot,displayValidation:s==="native"?d||w||E:d||w||c||o||E,updateValidation(T){s==="aria"&&!sr(E,T)?C(T):x.current=T},resetValidation(){let T=ot;sr(T,k.current)||(k.current=T,C(T)),s==="native"&&O(!1),b(!0)},commitValidation(){s==="native"&&O(!0),b(!0)}}}function lr(t){return t?Array.isArray(t)?t:[t]:[]}function Vd(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return lr(n)}return[]}function Do(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Mo}:null}function sr(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function _o(t,e,n){let{validationBehavior:r,focus:i}=t;te(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let c=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Hd(n.current))}});let o=a.useRef(!1),l=ye(()=>{o.current||e.resetValidation()}),s=ye(c=>{var u;e.displayValidation.isInvalid||e.commitValidation();let f=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&n&&f&&Ud(f)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),Ba("keyboard")}c.preventDefault()}),d=ye(()=>{e.commitValidation()});a.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let u=c.form,f=u==null?void 0:u.reset;return u&&(u.reset=()=>{o.current=!window.event||window.event.type==="message"&&K(window.event)instanceof MessagePort,f==null||f.call(u),o.current=!1}),c.addEventListener("invalid",s),c.addEventListener("change",d),u==null||u.addEventListener("reset",l),()=>{c.removeEventListener("invalid",s),c.removeEventListener("change",d),u==null||u.removeEventListener("reset",l),u&&(u.reset=f)}},[n,r])}function Bd(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Hd(t){return{isInvalid:!t.validity.valid,validationDetails:Bd(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Ud(t){for(let n=0;n<t.elements.length;n++){var e;let r=t.elements[n];if(((e=r.validity)===null||e===void 0?void 0:e.valid)===!1)return r}return null}function Wd(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:s="aria"}=t,[d,c]=pt(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=Wt(t,e),f=or({...t,value:d}),{isInvalid:m,validationErrors:v,validationDetails:g}=f.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:x,errorMessageProps:E}=Pd({...t,isInvalid:m,errorMessage:t.errorMessage||v}),C=ce(t,{labelable:!0});const k={type:l,pattern:t.pattern};let[N]=a.useState(d);var U;return qr(e,(U=t.defaultValue)!==null&&U!==void 0?U:N,c),_o(t,f,e),{labelProps:b,inputProps:Y(C,n==="input"?k:void 0,{disabled:r,readOnly:o,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:d,onChange:O=>c(K(O).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(a.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...u,...w}),descriptionProps:x,errorMessageProps:E,isInvalid:m,validationErrors:v,validationDetails:g}}class Et{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,n,r){let i=this.clone();return n.addDescendants(i,e),i}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 Io extends Et{filter(e,n,r){let[i,o]=Ko(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}class jd extends Et{}jd.type="header";class Gd extends Et{}Gd.type="loader";class qd extends Io{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}qd.type="item";class Yd extends Io{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}}Yd.type="section";class Zd{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 n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}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,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=Ko(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Ko(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let c=l.filter(t,e,r);c!=null&&(c.nextKey=null,o&&(c.prevKey=o.key,o.nextKey=c.key),i==null&&(i=c),e.addNode(c),o=c),l=l.nextKey?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let c=o.prevKey;e.removeNode(o.key),c?(o=e.getItem(c),o.nextKey=null):o=null}var s,d;return[(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null,(d=o==null?void 0:o.key)!==null&&d!==void 0?d:null]}class Lo{*[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,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.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 lt extends Lo{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof lt?this.parentNode.level+(((e=this.parentNode.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,n,r,i,o,l,s,d;let c=this.nextVisibleSibling,u=this.getMutableNode();if(u!=null){u.index=this.index,u.level=this.level;var f;u.parentKey=this.parentNode instanceof lt&&(f=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&f!==void 0?f:null;var m;u.prevKey=(m=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&m!==void 0?m:null;var v;u.nextKey=(v=c==null||(i=c.node)===null||i===void 0?void 0:i.key)!==null&&v!==void 0?v:null,u.hasChildNodes=!!this.firstChild;var g;u.firstChildKey=(g=(l=this.firstVisibleChild)===null||l===void 0||(o=l.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null;var b;if(u.lastChildKey=(b=(d=this.lastVisibleChild)===null||d===void 0||(s=d.node)===null||s===void 0?void 0:s.key)!==null&&b!==void 0?b:null,(u.colSpan!=null||u.colIndex!=null)&&c){var w,x;let E=((w=u.colIndex)!==null&&w!==void 0?w:u.index)+((x=u.colSpan)!==null&&x!==void 0?x:1);if(c.node!=null&&E!==c.node.colIndex){let C=c.getMutableNode();C.colIndex=E}}}}setProps(e,n,r,i,o){let l,{value:s,textValue:d,id:c,...u}=e;if(this.node==null?(l=new r(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=n,l.props=u,l.rendered=i,l.render=o,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=d||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",c!=null&&c!==l.key)throw new Error("Cannot change the id of an item");u.colSpan!=null&&(l.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class Xd extends Lo{get isConnected(){return!0}createElement(e){return new lt(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 n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof lt&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof lt?(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,n,r,i,o,l;this.nextCollection.commit((o=(n=this.firstVisibleChild)===null||n===void 0||(e=n.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(l=(i=this.lastVisibleChild)===null||i===void 0||(r=i.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l: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,this.isSSR||(this.collection=this.collection.clone());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 So(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=a.useMemo(()=>new WeakMap,o);return a.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let u of n){let f=l.get(u);if(!f){f=e(u);var s,d;let m=(d=(s=f.props.id)!==null&&s!==void 0?s:u.key)!==null&&d!==void 0?d:u.id;if(m==null)throw new Error("Could not determine key for item");r!=null&&(m=r+":"+m),f=a.cloneElement(f,i?{key:m,id:m,value:u}:{key:m}),l.set(u,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,i])}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const ar=a.createContext(!1);function Jd(t){if(a.useContext(ar))return a.createElement(a.Fragment,null,t.children);let n=a.createElement(ar.Provider,{value:!0},t.children);return a.createElement("template",null,n)}function Ct(t){let e=(n,r)=>a.useContext(ar)?null:t(n,r);return e.displayName=t.displayName||t.name,a.forwardRef(e)}var Qt={exports:{}},dr={};/**
|
|
1
|
+
(function(I,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],c):(I=typeof globalThis<"u"?globalThis:I||self,c(I.eidotter={},I.jsxRuntime,I.React,I.ReactDOM))})(this,(function(I,c,a,Fe){"use strict";var Tl=I=>{throw TypeError(I)};var _l=(I,c,a)=>c.has(I)||Tl("Cannot "+a);var Kl=(I,c,a)=>(_l(I,c,"read from private field"),a?a.call(I):c.get(I)),Il=(I,c,a)=>c.has(I)?Tl("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(I):c.set(I,a),Br=(I,c,a,Fe)=>(_l(I,c,"write to private field"),Fe?Fe.call(I,a):c.set(I,a),a);var ut;function ft(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const J=typeof document<"u"?a.useLayoutEffect:()=>{},Dt={prefix:String(Math.round(Math.random()*1e10)),current:0},Hr=a.createContext(Dt),Dl=a.createContext(!1);let Ml=!!(typeof window<"u"&&window.document&&window.document.createElement),mn=new WeakMap;function Ll(t=!1){var r,i;let e=a.useContext(Hr),n=a.useRef(null);if(n.current===null&&!t){let s=(i=(r=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:r.ReactCurrentOwner)==null?void 0:i.current;if(s){let o=mn.get(s);o==null?mn.set(s,{id:e.current,state:s.memoizedState}):s.memoizedState!==o.state&&(e.current=o.id,mn.delete(s))}n.current=++e.current}return n.current}function Fl(t){let e=a.useContext(Hr);e===Dt&&!Ml&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Ll(!!t),r=e===Dt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function Ol(t){let e=a.useId(),[n]=a.useState(Re()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Dt.prefix}`;return t||`${r}-${e}`}const $l=typeof a.useId=="function"?Ol:Fl;function Al(){return!1}function zl(){return!0}function Vl(t){return()=>{}}function Re(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Vl,Al,zl):a.useContext(Dl)}function Bl(t){let[e,n]=a.useState(t),r=a.useRef(e),i=a.useRef(null),s=a.useRef(()=>{if(!i.current)return;let l=i.current.next();if(l.done){i.current=null;return}r.current===l.value?s.current():n(l.value)});J(()=>{r.current=e,i.current&&s.current()});let o=a.useCallback(l=>{i.current=l(r.current),s.current()},[s]);return[e,o]}let Hl=!!(typeof window<"u"&&window.document&&window.document.createElement),tt=new Map,ht;typeof FinalizationRegistry<"u"&&(ht=new FinalizationRegistry(t=>{tt.delete(t)}));function Pe(t){let[e,n]=a.useState(t),r=a.useRef(null),i=$l(e),s=a.useRef(null);if(ht&&ht.register(s,i),Hl){const o=tt.get(i);o&&!o.includes(r)?o.push(r):tt.set(i,[r])}return J(()=>{let o=i;return()=>{ht&&ht.unregister(s),tt.delete(o)}},[i]),a.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function Nl(t,e){if(t===e)return t;let n=tt.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=tt.get(e);return r?(r.forEach(i=>i.current=t),t):e}function bn(t=[]){let e=Pe(),[n,r]=Bl(e),i=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return J(i,[e,i,...t]),n}function nt(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const s=Nr(i,e);return n||(n=typeof s=="function"),s});if(n)return()=>{r.forEach((i,s)=>{typeof i=="function"?i():Nr(t[s],null)})}}}function Nr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Rr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Rr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Rl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Rr(t))&&(r&&(r+=" "),r+=e);return r}function Y(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let s=e[i],o=r[i];typeof s=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=ft(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?e[i]=Rl(s,o):i==="id"&&s&&o?e.id=Nl(s,o):i==="ref"&&s&&o?e.ref=nt(s,o):e[i]=o!==void 0?o:s}}return e}function Oe(t){const e=a.useRef(null),n=a.useRef(void 0),r=a.useCallback(i=>{if(typeof t=="function"){const s=t,o=s(i);return()=>{typeof o=="function"?o():s(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}const gn=Symbol("default");function pt({values:t,children:e}){for(let[n,r]of t)e=a.createElement(n.Provider,{value:r},e);return e}function pe(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:s,defaultStyle:o,values:l,render:d}=t;return a.useMemo(()=>{let u,f,h;return typeof e=="function"?u=e({...l,defaultClassName:i}):u=e,typeof n=="function"?f=n({...l,defaultStyle:o||{}}):f=n,typeof r=="function"?h=r({...l,defaultChildren:s}):r==null?h=s:h=r,{className:u??i,style:f||o?{...o,...f}:void 0,children:h??s,"data-rac":"",render:d?p=>d(p,l):void 0}},[e,n,r,i,s,o,l,d])}function Mt(t,e){let n=a.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||gn;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(o=>`"${o}"`)),s=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${s} Valid slot names are ${i}.`)}return n.slots[r]}return n}function xe(t,e,n){let r=Mt(n,t.slot)||{},{ref:i,...s}=r,o=Oe(a.useMemo(()=>nt(e,i),[e,i])),l=Y(s,t);return"style"in s&&s.style&&"style"in t&&t.style&&(typeof s.style=="function"||typeof t.style=="function"?l.style=d=>{let u=typeof s.style=="function"?s.style(d):s.style,f={...d.defaultStyle,...u},h=typeof t.style=="function"?t.style({...d,defaultStyle:f}):t.style;return{...f,...h}}:l.style={...s.style,...t.style}),[l,o]}function Ul(t=!0){let[e,n]=a.useState(t),r=a.useRef(!1),i=a.useCallback(s=>{r.current=!0,n(!!s)},[]);return J(()=>{r.current||n(!1)},[]),[i,e]}function Lt(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function jl(t,e,n){let{render:r,...i}=e,s=a.useRef(null),o=a.useMemo(()=>nt(n,s),[n,s]);J(()=>{process.env.NODE_ENV!=="production"&&r&&(s.current?s.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${s.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let l={...i,ref:o};return r?r(l,void 0):a.createElement(t,l)}const Ur={},de=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Ur[e];return n||(n=a.forwardRef(jl.bind(null,e)),Ur[e]=n),n}}),Gl="react-aria-clear-focus",ql="react-aria-focus",X=t=>(t==null?void 0:t.ownerDocument)??document,ce=t=>t&&"window"in t&&t.window===t?t:X(t).defaultView||window;function Yl(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function Zl(t){return Yl(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Xl=!1;function Te(){return Xl}function U(t,e){if(!Te())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Zl(n)?n=n.host:n=n.parentNode}return!1}const te=(t=document)=>{var n;if(!Te())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&((n=e.shadowRoot)!=null&&n.activeElement);)e=e.shadowRoot.activeElement;return e};function M(t){if(Te()&&t.target instanceof Element&&t.target.shadowRoot){if("composedPath"in t)return t.composedPath()[0]??null;if("composedPath"in t.nativeEvent)return t.nativeEvent.composedPath()[0]??null}return t.target}function vn(t){if(!t)return!1;let e=t.getRootNode(),n=ce(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}function jr(t){let e=Wl(X(t));e!==t&&(e&&Ql(e,t),t&&Gr(t,e))}function Ql(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Gr(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Wl(t){let e=te(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}function _e(t){if(Jl())t.focus({preventScroll:!0});else{let e=ea(t);t.focus(),ta(e)}}let Ft=null;function Jl(){if(Ft==null){Ft=!1;try{document.createElement("div").focus({get preventScroll(){return Ft=!0,!0}})}catch{}}return Ft}function ea(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function ta(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}const na=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ra(t){const e=ce(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:s}=t.ownerDocument.defaultView;let{display:o,visibility:l}=s(t);i=o!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function ia(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function yn(t,e){return na?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&ra(t)&&ia(t,e)&&(!t.parentElement||yn(t.parentElement,t))}const xn=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],sa=xn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const oa=xn.join(':not([hidden]):not([tabindex="-1"]),');function qr(t,e){return t.matches(sa)&&!Zr(t)&&((e==null?void 0:e.skipVisibilityCheck)||yn(t))}function Yr(t){return t.matches(oa)&&yn(t)&&!Zr(t)}function Zr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}function wn(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Xr(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Qr(t){let e=a.useRef({isFocused:!1,observer:null});return J(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{let r=M(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,s=o=>{if(e.current.isFocused=!1,i.disabled){let l=wn(o);t==null||t(l)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{var o;if(e.current.isFocused&&i.disabled){(o=e.current.observer)==null||o.disconnect();let l=i===te()?null:te();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Ot=!1;function Wr(t){for(;t&&!qr(t,{skipVisibilityCheck:!0});)t=t.parentElement;let e=ce(t),n=e.document.activeElement;if(!n||n===t)return;Ot=!0;let r=!1,i=f=>{(M(f)===n||r)&&f.stopImmediatePropagation()},s=f=>{(M(f)===n||r)&&(f.stopImmediatePropagation(),!t&&!r&&(r=!0,_e(n),d()))},o=f=>{(M(f)===t||r)&&f.stopImmediatePropagation()},l=f=>{(M(f)===t||r)&&(f.stopImmediatePropagation(),r||(r=!0,_e(n),d()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",s,!0),e.addEventListener("focusin",l,!0),e.addEventListener("focus",o,!0);let d=()=>{cancelAnimationFrame(u),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",s,!0),e.removeEventListener("focusin",l,!0),e.removeEventListener("focus",o,!0),Ot=!1,r=!1},u=requestAnimationFrame(d);return d}function $t(t){var n;if(typeof window>"u"||window.navigator==null)return!1;let e=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(e)&&e.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function En(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)==null?void 0:e.platform)||window.navigator.platform):!1}function Ke(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const Ue=Ke(function(){return En(/^Mac/i)}),la=Ke(function(){return En(/^iPhone/i)}),Jr=Ke(function(){return En(/^iPad/i)||Ue()&&navigator.maxTouchPoints>1}),je=Ke(function(){return la()||Jr()}),aa=Ke(function(){return Ue()||je()}),da=Ke(function(){return $t(/AppleWebKit/i)&&!ei()}),ei=Ke(function(){return $t(/Chrome/i)}),Sn=Ke(function(){return $t(/Android/i)}),ca=Ke(function(){return $t(/Firefox/i)});function Cn(t){return t.pointerType===""&&t.isTrusted?!0:Sn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function ua(t){return!Sn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}const fa=a.createContext({isNative:!0,open:pa,useHref:t=>t});function kn(){return a.useContext(fa)}function Ie(t,e,n=!0){var d,u;let{metaKey:r,ctrlKey:i,altKey:s,shiftKey:o}=e;ca()&&((u=(d=window.event)==null?void 0:d.type)!=null&&u.startsWith("key"))&&t.target==="_blank"&&(Ue()?r=!0:i=!0);let l=da()&&Ue()&&!Jr()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:s,shiftKey:o}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:s,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});Ie.isOpening=n,_e(t),t.dispatchEvent(l),Ie.isOpening=!1}Ie.isOpening=!1;function ha(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function pa(t,e){ha(t,n=>Ie(n,e))}function ma(t){const n=kn().useHref((t==null?void 0:t.href)??"");return{href:t!=null&&t.href?n:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Ge=null;const Pn=new Set;let mt=new Map,qe=!1,Tn=!1;const ba={Tab:!0,Escape:!0};function At(t,e){for(let n of Pn)n(t,e)}function ga(t){return!(t.metaKey||!Ue()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function zt(t){qe=!0,!Ie.isOpening&&ga(t)&&(Ge="keyboard",At("keyboard",t))}function me(t){Ge="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(qe=!0,At("pointer",t))}function ti(t){!Ie.isOpening&&Cn(t)&&(qe=!0,Ge="virtual")}function ni(t){let e=ce(M(t)),n=X(M(t));M(t)===e||M(t)===n||Ot||!t.isTrusted||(!qe&&!Tn&&(Ge="virtual",At("virtual",t)),qe=!1,Tn=!1)}function ri(){Ot||(qe=!1,Tn=!0)}function _n(t){if(typeof window>"u"||typeof document>"u")return;const e=ce(t),n=X(t);if(mt.get(e))return;let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){qe=!0,r.apply(this,arguments)},n.addEventListener("keydown",zt,!0),n.addEventListener("keyup",zt,!0),n.addEventListener("click",ti,!0),e.addEventListener("focus",ni,!0),e.addEventListener("blur",ri,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",me,!0),n.addEventListener("pointermove",me,!0),n.addEventListener("pointerup",me,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",me,!0),n.addEventListener("mousemove",me,!0),n.addEventListener("mouseup",me,!0)),e.addEventListener("beforeunload",()=>{ii(t)},{once:!0}),mt.set(e,{focus:r})}const ii=(t,e)=>{const n=ce(t),r=X(t);e&&r.removeEventListener("DOMContentLoaded",e),mt.has(n)&&(n.HTMLElement.prototype.focus=mt.get(n).focus,r.removeEventListener("keydown",zt,!0),r.removeEventListener("keyup",zt,!0),r.removeEventListener("click",ti,!0),n.removeEventListener("focus",ni,!0),n.removeEventListener("blur",ri,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",me,!0),r.removeEventListener("pointermove",me,!0),r.removeEventListener("pointerup",me,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",me,!0),r.removeEventListener("mousemove",me,!0),r.removeEventListener("mouseup",me,!0)),mt.delete(n))};function va(t){const e=X(t);let n;return e.readyState!=="loading"?_n(t):(n=()=>{_n(t)},e.addEventListener("DOMContentLoaded",n)),()=>ii(t,n)}typeof document<"u"&&va();function Kn(){return Ge!=="pointer"}function Vt(){return Ge}function ya(t){Ge=t,At(t,null)}const xa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wa(t,e,n){let r=n?M(n):void 0,i=X(r),s=ce(r);const o=typeof s<"u"?s.HTMLInputElement:HTMLInputElement,l=typeof s<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,d=typeof s<"u"?s.HTMLElement:HTMLElement,u=typeof s<"u"?s.KeyboardEvent:KeyboardEvent;let f=te(i);return t=t||f instanceof o&&!xa.has(f.type)||f instanceof l||f instanceof d&&f.isContentEditable,!(t&&e==="keyboard"&&n instanceof u&&!ba[n.key])}function Ea(t,e,n){_n(),a.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,s)=>{wa(!!(n!=null&&n.isTextInput),i,s)&&t(Kn())};return Pn.add(r),()=>{Pn.delete(r)}},e)}function rt(t){return Ue()?t.metaKey:t.ctrlKey}const Sa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bt(t){return t instanceof HTMLInputElement&&!Sa.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const Ca=a.useInsertionEffect??J;function Ee(t){const e=a.useRef(null);return Ca(()=>{e.current=t},[t]),a.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Bt(t,e,n,r){let i=Ee(n),s=n==null;a.useEffect(()=>{if(s||!t.current)return;let o=t.current;return o.addEventListener(e,i,r),()=>{o.removeEventListener(e,i,r)}},[t,e,r,s])}function Ht(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Pe(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}const ka=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Pa=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ta(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return ka.has(n.script)}let e=t.split("-")[0];return Pa.has(e)}const si=Symbol.for("react-aria.i18n.locale");function oi(){let t=typeof window<"u"&&window[si]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:Ta(t)?"rtl":"ltr"}}let In=oi(),gt=new Set;function li(){In=oi();for(let t of gt)t(In)}function _a(){let t=Re(),[e,n]=a.useState(In);return a.useEffect(()=>(gt.size===0&&window.addEventListener("languagechange",li),gt.add(n),()=>{gt.delete(n),gt.size===0&&window.removeEventListener("languagechange",li)}),[]),t?{locale:typeof window<"u"&&window[si]||"en-US",direction:"ltr"}:e}const Ka=a.createContext(null);function Dn(){let t=_a();return a.useContext(Ka)||t}const Ia=Symbol.for("react-aria.i18n.locale"),Da=Symbol.for("react-aria.i18n.strings");let it;class Nt{constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=Ma(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[Ia];if(it===void 0){let i=window[Da];if(!i)return null;it={};for(let s in i)it[s]=new Nt({[n]:i[s]},n)}let r=it==null?void 0:it[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}function Ma(t,e,n="en-US"){if(e[t])return e[t];let r=La(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function La(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ai=new Map,di=new Map;class Fa{constructor(e,n){this.locale=e,this.strings=n}format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,o=ai.get(s);o||(o=new Intl.PluralRules(this.locale,{type:r}),ai.set(s,o));let l=o.select(e);return i=n[l]||n.other,typeof i=="function"?i():i}number(e){let n=di.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),di.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}}const ci=new WeakMap;function Oa(t){let e=ci.get(t);return e||(e=new Nt(t),ci.set(t,e)),e}function $a(t,e){return e&&Nt.getGlobalDictionaryForPackage(e)||Oa(t)}function Aa(t,e){let{locale:n}=Dn(),r=$a(t,e);return a.useMemo(()=>new Fa(n,r),[n,r])}const za=typeof document<"u"?a.useInsertionEffect??a.useLayoutEffect:()=>{};function vt(t,e,n){let[r,i]=a.useState(t||e),s=a.useRef(r),o=a.useRef(t!==void 0),l=t!==void 0;a.useEffect(()=>{let h=o.current;h!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let d=l?t:r;za(()=>{s.current=d});let[,u]=a.useReducer(()=>({}),{}),f=a.useCallback((h,...p)=>{let b=typeof h=="function"?h(s.current):h;Object.is(s.current,b)||(s.current=b,i(b),u(),n==null||n(b,...p))},[n]);return[d,f]}const Va=a.createContext(null);class yt{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}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,n,r){let i=this.clone();return n.addDescendants(i,e),i}}class ui extends yt{filter(e,n,r){let[i,s]=bi(e,n,this.firstChildKey,r),o=this.clone();return o.firstChildKey=i,o.lastChildKey=s,o}}const Or=class Or extends yt{};Or.type="header";let fi=Or;const $r=class $r extends yt{};$r.type="loader";let hi=$r;const Ar=class Ar extends ui{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}};Ar.type="item";let pi=Ar;const zr=class zr extends ui{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let s=e.getItem(i.lastChildKey);if(s&&s.type!=="header")return i}return null}};zr.type="section";let mi=zr;class Ba{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 n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return(n==null?void 0:n.key)??null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);return(e==null?void 0:e.key)??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}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,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=bi(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function bi(t,e,n,r){if(n==null)return[null,null];let i=null,s=null,o=t.getItem(n);for(;o!=null;){let l=o.filter(t,e,r);l!=null&&(l.nextKey=null,s&&(l.prevKey=s.key,s.nextKey=l.key),i==null&&(i=l),e.addNode(l),s=l),o=o.nextKey?t.getItem(o.nextKey):null}if(s&&s.type==="separator"){let l=s.prevKey;e.removeNode(s.key),l?(s=e.getItem(l),s.nextKey=null):s=null}return[(i==null?void 0:i.key)??null,(s==null?void 0:s.key)??null]}class gi{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[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?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,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.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}}class st extends gi{constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof st?this.parentNode.level+(((e=this.parentNode.node)==null?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 r,i,s,o,l,d,u,f;let e=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof st?((r=this.parentNode.node)==null?void 0:r.key)??null:null,n.prevKey=((s=(i=this.previousVisibleSibling)==null?void 0:i.node)==null?void 0:s.key)??null,n.nextKey=((o=e==null?void 0:e.node)==null?void 0:o.key)??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=((d=(l=this.firstVisibleChild)==null?void 0:l.node)==null?void 0:d.key)??null,n.lastChildKey=((f=(u=this.lastVisibleChild)==null?void 0:u.node)==null?void 0:f.key)??null,(n.colSpan!=null||n.colIndex!=null)&&e)){let h=(n.colIndex??n.index)+(n.colSpan??1);if(e.node!=null&&h!==e.node.colIndex){let p=e.getMutableNode();p.colIndex=h}}}setProps(e,n,r,i,s){let o,{value:l,textValue:d,id:u,...f}=e;if(this.node==null?(o=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=o):o=this.getMutableNode(),f.ref=n,o.props=f,o.rendered=i,o.render=s,o.value=l,e["aria-label"]&&(o["aria-label"]=e["aria-label"]),o.textValue=d||(typeof f.children=="string"?f.children:"")||e["aria-label"]||"",u!=null&&u!==o.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(o.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){var i,s;let r=n==="none";if(e.isHidden!==r){(((i=e.parentNode)==null?void 0:i.firstVisibleChild)===e||((s=e.parentNode)==null?void 0:s.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let o=e.previousVisibleSibling,l=e.nextVisibleSibling;o&&e.ownerDocument.markDirty(o),l&&e.ownerDocument.markDirty(l),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class Ha extends gi{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}get isConnected(){return!0}createElement(e){return new st(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 n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){var e,n,r,i;for(let s of this.dirtyNodes)s instanceof st&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof st?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);this.nextCollection&&(this.nextCollection.commit(((n=(e=this.firstVisibleChild)==null?void 0:e.node)==null?void 0:n.key)??null,((i=(r=this.lastVisibleChild)==null?void 0:r.node)==null?void 0:i.key)??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,this.isSSR||(this.collection=this.collection.clone());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)}}function vi(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:s=[]}=t,o=a.useMemo(()=>new WeakMap,s);return a.useMemo(()=>{if(n&&typeof e=="function"){let l=[];for(let d of n){let u=o.get(d);if(!u){u=e(d);let f=u.props.id??d.key??d.id;if(f==null)throw new Error("Could not determine key for item");r!=null&&u.props.id==null&&(f=r+":"+f),u=a.cloneElement(u,i?{key:f,id:f,value:d}:{key:f}),o.set(d,u)}l.push(u)}return l}else if(typeof e!="function")return e},[e,n,o,r,i])}let $e=new Map,Mn=new Set;function yi(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=M(r);if(!t(r)||!i)return;let s=$e.get(i);s||(s=new Set,$e.set(i,s),i.addEventListener("transitioncancel",n,{once:!0})),s.add(r.propertyName)},n=r=>{let i=M(r);if(!t(r)||!i)return;let s=$e.get(i);if(s&&(s.delete(r.propertyName),s.size===0&&(i.removeEventListener("transitioncancel",n),$e.delete(i)),$e.size===0)){for(let o of Mn)o();Mn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?yi():document.addEventListener("DOMContentLoaded",yi));function Na(){for(const[t]of $e)"isConnected"in t&&!t.isConnected&&$e.delete(t)}function xi(t){requestAnimationFrame(()=>{Na(),$e.size===0?t():Mn.add(t)})}function Ye(t){if(!t.isConnected)return;const e=X(t);if(Vt()==="virtual"){let n=te(e);xi(()=>{const r=te(e);(r===n||r===e.body)&&t.isConnected&&_e(t)})}else _e(t)}function wi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const s=a.useCallback(d=>{if(M(d)===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),o=Qr(s),l=a.useCallback(d=>{let u=M(d);const f=X(u),h=f?te(f):te();u===d.currentTarget&&u===h&&(n&&n(d),i&&i(!0),o(d))},[i,n,o]);return{focusProps:{onFocus:!e&&(n||i||r)?l:void 0,onBlur:!e&&(r||i)?s:void 0}}}function Ei(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function Ra(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:Ei(t.onKeyDown),onKeyUp:Ei(t.onKeyUp)}}}function Si(t,e){J(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}let Ln=a.createContext(null);function Ua(t){let e=a.useContext(Ln)||{};Si(e,t);let{ref:n,...r}=e;return r}function Rt(t,e){let{focusProps:n}=wi(t),{keyboardProps:r}=Ra(t),i=Y(n,r),s=Ua(e),o=t.isDisabled?{}:s,l=a.useRef(t.autoFocus);a.useEffect(()=>{l.current&&e.current&&Ye(e.current),l.current=!1},[e]);let d=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(d=void 0),{focusableProps:Y({...i,tabIndex:d},o)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const Fn=a.createContext(!1);function ja(t){if(a.useContext(Fn))return a.createElement(a.Fragment,null,t.children);let n=a.createElement(Fn.Provider,{value:!0},t.children);return a.createElement("template",null,n)}function xt(t){let e=(n,r)=>a.useContext(Fn)?null:t(n,r);return e.displayName=t.displayName||t.name,a.forwardRef(e)}var Ut={exports:{}},On={};/**
|
|
13
2
|
* @license React
|
|
14
3
|
* use-sync-external-store-shim.production.js
|
|
15
4
|
*
|
|
@@ -17,7 +6,7 @@
|
|
|
17
6
|
*
|
|
18
7
|
* This source code is licensed under the MIT license found in the
|
|
19
8
|
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var
|
|
9
|
+
*/var Ci;function Ga(){if(Ci)return On;Ci=1;var t=a;function e(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,s=t.useLayoutEffect,o=t.useDebugValue;function l(h,p){var b=p(),g=r({inst:{value:b,getSnapshot:p}}),y=g[0].inst,v=g[1];return s(function(){y.value=b,y.getSnapshot=p,d(y)&&v({inst:y})},[h,b,p]),i(function(){return d(y)&&v({inst:y}),h(function(){d(y)&&v({inst:y})})},[h]),o(b),b}function d(h){var p=h.getSnapshot;h=h.value;try{var b=p();return!n(h,b)}catch{return!0}}function u(h,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return On.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:f,On}var $n={};/**
|
|
21
10
|
* @license React
|
|
22
11
|
* use-sync-external-store-shim.development.js
|
|
23
12
|
*
|
|
@@ -25,4 +14,15 @@
|
|
|
25
14
|
*
|
|
26
15
|
* This source code is licensed under the MIT license found in the
|
|
27
16
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var Fo;function Rd(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&(function(){function t(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function e(v,g){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=g();if(!f){var w=g();o(b,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=l({inst:{value:b,getSnapshot:g}});var x=w[0].inst,E=w[1];return d(function(){x.value=b,x.getSnapshot=g,n(x)&&E({inst:x})},[v,b,g]),s(function(){return n(x)&&E({inst:x}),v(function(){n(x)&&E({inst:x})})},[v]),c(b),b}function n(v){var g=v.getSnapshot;v=v.value;try{var b=g();return!o(v,b)}catch{return!0}}function r(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=a,o=typeof Object.is=="function"?Object.is:t,l=i.useState,s=i.useEffect,d=i.useLayoutEffect,c=i.useDebugValue,u=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;cr.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cr}var Ao;function ec(){return Ao||(Ao=1,process.env.NODE_ENV==="production"?Qt.exports=Qd():Qt.exports=Rd()),Qt.exports}var tc=ec();const Oo=a.createContext(!1),Pt=a.createContext(null);function nc(t){if(a.useContext(Pt))return t.content;let{collection:n,document:r}=lc(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(Jd,null,a.createElement(Pt.Provider,{value:r},t.content)),a.createElement(rc,{render:t.children,collection:n}))}function rc({collection:t,render:e}){return e(t)}function ic(t,e,n){let r=Be(),i=a.useRef(r);i.current=r;let o=a.useCallback(()=>i.current?n():e(),[e,n]);return tc.useSyncExternalStore(t,o)}const oc=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:ic;function lc(t){let[e]=a.useState(()=>new Xd((t==null?void 0:t())||new Zd)),n=a.useCallback(l=>e.subscribe(l),[e]),r=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:oc(n,r,i),document:e}}const ur=a.createContext(null);function sc(t){var e;return e=class extends Et{},e.type=t,e}function ac(t,e,n,r,i,o){typeof t=="string"&&(t=sc(t));let l=a.useCallback(d=>{d==null||d.setProps(e,n,t,r,o)},[e,n,r,o,t]),s=a.useContext(ur);if(s){let d=s.ownerDocument.nodesByProps.get(e);return d||(d=s.ownerDocument.createElement(t.type),d.setProps(e,n,t,r,o),s.appendChild(d),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,d)),i?a.createElement(ur.Provider,{value:d},i):null}return a.createElement(t.type,{ref:l},i)}function dc(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=a.forwardRef((i,o)=>{let l=a.useContext(jn);if(!a.useContext(Oo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return ac(t,i,o,"children"in i?i.children:null,null,d=>a.createElement(jn.Provider,{value:l},a.createElement(n,{node:d})))});return r.displayName=e.name,r}function cc(t){return So({...t,addIdAndValue:!0})}const zo=a.createContext(null);function uc(t){let e=a.useContext(zo),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies);var r;let i=(r=t.idScope)!==null&&r!==void 0?r:e==null?void 0:e.idScope,o=cc({...t,idScope:i,dependencies:n});return a.useContext(Pt)&&(o=a.createElement(fc,null,o)),e=a.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),a.createElement(zo.Provider,{value:e},o)}function fc({children:t}){let e=a.useContext(Pt),n=a.useMemo(()=>a.createElement(Pt.Provider,{value:null},a.createElement(Oo.Provider,{value:!0},t)),[t]);return Be()?a.createElement(ur.Provider,{value:e},n):dt.createPortal(n,e)}const Vo={CollectionRoot({collection:t,renderDropIndicator:e}){return Bo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Bo(t,e,n)}};function Bo(t,e,n){return So({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return a.createElement(a.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:a.createElement(a.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,hc(t,r,n))}})}function hc(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let d=e;for(;(d==null?void 0:d.type)==="item"&&(!o||d.parentKey!==o.parentKey&&o.level<d.level);){let c=n({type:"item",key:d.key,dropPosition:"after"});a.isValidElement(c)&&s.push(a.cloneElement(c,{key:`${d.key}-after`})),d=d.parentKey!=null?t.getItem(d.parentKey):null}}return s}const Ho=a.createContext(Vo);function pc(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function mc(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:f,href:m,target:v,rel:g,type:b="button"}=t,w;n==="button"?w={type:b,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:w={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?v:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:x,isPressed:E}=it({onPressStart:o,onPressEnd:l,onPressChange:d,onPress:i,onPressUp:s,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:C}=Wt(t,e);u&&(C.tabIndex=r?-1:C.tabIndex);let k=Y(C,x,ce(t,{labelable:!0}));return{isPressed:E,buttonProps:Y(w,k,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function Uo(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:o,name:l,form:s,children:d,"aria-label":c,"aria-labelledby":u,validationState:f="valid",isInvalid:m,onPressStart:v,onPressEnd:g,onPressChange:b,onPress:w,onPressUp:x,onClick:E}=t,C=Z=>{Z.stopPropagation(),e.setSelected(K(Z).checked)},k=d!=null,N=c!=null||u!=null;!k&&!N&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:U,isPressed:O}=it({onPressStart:v,onPressEnd:g,onPressChange:b,onPress:w,onPressUp:x,onClick:E,isDisabled:r}),{pressProps:P,isPressed:I}=it({onPressStart:v,onPressEnd:g,onPressChange:b,onPressUp:x,onClick:E,onPress(Z){var M;w==null||w(Z),e.toggle(),(M=n.current)===null||M===void 0||M.focus()},isDisabled:r||i}),{focusableProps:T}=Wt(t,n),L=Y(U,T),q=ce(t,{labelable:!0});return qr(n,e.defaultSelected,e.setSelected),{labelProps:Y(P,{onClick:Z=>Z.preventDefault()}),inputProps:Y(q,{"aria-invalid":m||f==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:C,disabled:r,...o==null?{}:{value:o},name:l,form:s,type:"checkbox",...L}),isSelected:e.isSelected,isPressed:O||I,isDisabled:r,isReadOnly:i,isInvalid:m||f==="invalid"}}function Wo(t,e,n){let r=or({...t,value:e.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:d,isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m}=Uo({...t,isInvalid:i},e,n);_o(t,r,n);let{isIndeterminate:v,isRequired:g,validationBehavior:b="aria"}=t;a.useEffect(()=>{n.current&&(n.current.indeterminate=!!v)});let{pressProps:w}=it({isDisabled:f||m,onPress(){let{[Jt]:x}=t,{commitValidation:E}=x||r;E()}});return{labelProps:Y(s,w,a.useMemo(()=>({onMouseDown:x=>x.preventDefault()}),[])),inputProps:{...d,checked:c,"aria-required":g&&b==="aria"||void 0,required:g&&b==="native"},isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m,isInvalid:i,validationErrors:o,validationDetails:l}}const vc=new WeakMap;function fr(t={}){let{isReadOnly:e}=t,[n,r]=pt(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=a.useState(n);function o(d){e||r(d)}function l(){e||r(!n)}var s;return{isSelected:n,defaultSelected:(s=t.defaultSelected)!==null&&s!==void 0?s:i,setSelected:o,toggle:l}}function gc(t,e,n){const r=fr({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(x){x?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(x)}});let{name:i,form:o,descriptionId:l,errorMessageId:s,validationBehavior:d}=vc.get(e);var c;d=(c=t.validationBehavior)!==null&&c!==void 0?c:d;let{realtimeValidation:u}=or({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),f=a.useRef(ot),m=()=>{e.setInvalid(t.value,u.isInvalid?u:f.current)};a.useEffect(m);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:u,g=d==="native"?e.displayValidation:v;var b;let w=Wo({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||o,isRequired:(b=t.isRequired)!==null&&b!==void 0?b:e.isRequired,validationBehavior:d,[Jt]:{realtimeValidation:v,displayValidation:g,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(x){f.current=x,m()}}},r,n);return{...w,inputProps:{...w.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}function bc(t,e){let{role:n="dialog"}=t,r=mn();r=t["aria-label"]?void 0:r;let i=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!vn(e.current)){qe(e.current);let o=setTimeout(()=>{(ie()===e.current||ie()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),qe(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),wo(),{dialogProps:{...ce(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function yc(t,e,n){let{labelProps:r,inputProps:i,isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}=Uo(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:o},isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}}const jo=new WeakMap;function Rt(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=jo.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function xc(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:s}=e,d=r===s,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:f}=Id({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),m=Rt(e,r,"tab"),v=Rt(e,r,"tabpanel"),{tabIndex:g}=u,b=e.collection.getItem(r),w=ce(b==null?void 0:b.props,{labelable:!0});delete w.id;let x=Zs(b==null?void 0:b.props),{focusableProps:E}=Wt({...b==null?void 0:b.props,isDisabled:c},n);return{tabProps:Y(w,E,x,u,{id:m,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?v:void 0,tabIndex:c?void 0:g,role:"tab"}),isSelected:d,isDisabled:c,isPressed:f}}function wc(t,e,n){let r=sd(n)?void 0:0;var i;const o=Rt(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=Kt({...t,id:o,"aria-labelledby":Rt(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:Y(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class Ec{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function Cc(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:s}=e,{direction:d}=Sn(),c=a.useMemo(()=>new Ec(o,d,r,s),[o,s,r,d]),{collectionProps:u}=_d({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ne();jo.set(e,f);let m=Kt({...t,id:f});return{tabListProps:{...Y(u,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const Go=a.createContext({}),Pc=Ct(function(e,n){[e,n]=xe(e,n,Go);let{elementType:r="label",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Label",...i,ref:n})}),kc=a.createContext(null),qo=a.createContext({}),le=Ct(function(e,n){[e,n]=xe(e,n,qo);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=mc(e,n);o=Tc(o,i);let{focusProps:s,isFocused:d,isFocusVisible:c}=Ze(e),{hoverProps:u,isHovered:f}=bt({...e,isDisabled:e.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:d,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=me({...e,values:m,defaultClassName:"react-aria-Button"}),g=Ne(o.id),b=Ne(),w=o["aria-labelledby"];i&&(w?w=`${w} ${b}`:o["aria-label"]&&(w=`${g} ${b}`));let x=a.useRef(i);a.useEffect(()=>{let C={"aria-labelledby":w||g};(!x.current&&d&&i||x.current&&d&&!i)&&ti(C,"assertive"),x.current=i},[i,d,w,g]);let E=ce(e,{global:!0});return delete E.onClick,a.createElement(ue.button,{...Y(E,v,o,s,u),type:o.type==="submit"&&i?"button":o.type,id:g,ref:n,"aria-labelledby":w,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":d||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},a.createElement(kc.Provider,{value:{id:b}},v.children))}),Nc=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Tc(t,e){if(e){for(const n in t)n.startsWith("on")&&!Nc.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const Yo=a.createContext({}),Zo=a.forwardRef(function(e,n){[e,n]=xe(e,n,Yo);let{elementType:r="span",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Text",...i,ref:n})});class Xo{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let d of s.childNodes)n(d)};for(let s of e)n(s);let r=null,i=0,o=0;for(let[s,d]of this.keyMap)r?(r.nextKey=s,d.prevKey=r.key):(this.firstKey=s,d.prevKey=void 0),d.type==="item"&&(d.index=i++),(d.type==="section"||d.type==="item")&&o++,r=d,r.nextKey=void 0;this._size=o;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class we extends Set{constructor(e,n,r){super(e),e instanceof we?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Mc(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Dc(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),d=a.useRef(null),c=a.useRef(null),[,u]=a.useState(null),f=a.useMemo(()=>Jo(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Jo(t.defaultSelectedKeys,new we),[t.defaultSelectedKeys]),[v,g]=pt(f,m,t.onSelectionChange),b=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[w,x]=a.useState(i);i==="replace"&&w==="toggle"&&typeof v=="object"&&v.size===0&&x("replace");let E=a.useRef(i);return a.useEffect(()=>{i!==E.current&&(x(i),E.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return l.current},setFocused(C){l.current=C,s(C)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(C,k="first"){d.current=C,c.current=k,u(C)},selectedKeys:v,setSelectedKeys(C){(r||!Mc(C,v))&&g(C)},disabledKeys:b,disabledBehavior:o}}function Jo(t,e){return t?t==="all"?"all":new we(t):e}class hr{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,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}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 n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}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;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n: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 n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new we([n],n,n);else{let l=this.state.selectedKeys;var i;let s=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new we(l,s,n);var o;for(let d of this.getKeyRange(s,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(d);for(let d of this.getKeyRange(n,s))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?ir(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new we(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new we([n],n,n):new we;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new we;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Fd($d(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(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 we)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new hr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function _c(t){let{filter:e,layoutDelegate:n}=t,r=Dc(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=a.useCallback(c=>e?new Xo(e(c)):new Xo(c),[e]),l=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=Sd(t,o,l),d=a.useMemo(()=>new hr(s,r,{layoutDelegate:n}),[s,r,n]);return Ic(s,d),{collection:s,disabledKeys:i,selectionManager:d}}function Ic(t,e){const n=a.useRef(null);a.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(x=>{const E=n.current.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null),m=[...t.getKeys()].map(x=>{const E=t.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=m==null?void 0:m.length)!==null&&i!==void 0?i:0);var o,l,s;let g=Math.min(v>1?Math.max(((o=u==null?void 0:u.index)!==null&&o!==void 0?o:0)-v+1,0):(l=u==null?void 0:u.index)!==null&&l!==void 0?l:0,((s=m==null?void 0:m.length)!==null&&s!==void 0?s:0)-1),b=null,w=!1;for(;g>=0;){if(!e.isDisabled(m[g].key)){b=m[g];break}if(g<m.length-1&&!w)g++;else{w=!0;var d,c;g>((d=u==null?void 0:u.index)!==null&&d!==void 0?d:0)&&(g=(c=u==null?void 0:u.index)!==null&&c!==void 0?c:0),g--}}e.setFocusedKey(b?b.key:null)}n.current=t},[t,e])}function Kc(t){var e;let[n,r]=pt(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=a.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:s}=_c({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var u;let f=(u=c.values().next().value)!==null&&u!==void 0?u:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),d=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:d}}function Lc(t){let[e,n]=pt(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=a.useCallback(()=>{n(!0)},[n]),i=a.useCallback(()=>{n(!1)},[n]),o=a.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Sc(t){var e,n;let r=Kc({...t,onSelectionChange:t.onSelectionChange?d=>{var c;d!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,d))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Qo(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,s=a.useRef(l);return a.useEffect(()=>{let d=l;t.selectedKey==null&&(i.isEmpty||d==null||!o.getItem(d))&&(d=Qo(o,r.disabledKeys),d!=null&&i.setSelectedKeys([d])),(d!=null&&i.focusedKey==null||!i.isFocused&&d!==s.current)&&i.setFocusedKey(d),s.current=d}),{...r,isDisabled:t.isDisabled||!1}}function Qo(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const $c=a.createContext(null),Ro=a.createContext(null),Fc=a.createContext(null),Ac=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,ps);let{validationBehavior:o}=St(Ro)||{};var l,s;let d=(s=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&s!==void 0?s:"native",c=a.useContext(Fc),u=Se(a.useMemo(()=>et(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:f,inputProps:m,isSelected:v,isDisabled:g,isReadOnly:b,isPressed:w,isInvalid:x}=c?gc({...$t(e),value:e.value,children:typeof e.children=="function"?!0:e.children},c,u):Wo({...$t(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:d},fr(e),u),{isFocused:E,isFocusVisible:C,focusProps:k}=Ze(),N=g||b,{hoverProps:U,isHovered:O}=bt({...e,isDisabled:N}),P=me({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:w,isHovered:O,isFocused:E,isFocusVisible:C,isDisabled:g,isReadOnly:b,isInvalid:x,isRequired:e.isRequired||!1}}),I=ce(e,{global:!0});return delete I.id,delete I.onClick,a.createElement(ue.label,{...Y(I,f,U,P),ref:n,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":w||void 0,"data-hovered":O||void 0,"data-focused":E||void 0,"data-focus-visible":C||void 0,"data-disabled":g||void 0,"data-readonly":b||void 0,"data-invalid":x||void 0,"data-required":e.isRequired||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...Y(m,k),ref:u})),P.children)}),Oc=a.createContext({}),el=a.createContext({});let zc=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Vc=Ct(function(e,n){[e,n]=xe(e,n,el);let{hoverProps:r,isHovered:i}=bt({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:s}=Ze({isTextInput:!0,autoFocus:e.autoFocus}),d=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=me({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:d},defaultClassName:"react-aria-Input"});return a.createElement(ue.input,{...Y(zc(e),s,r),...c,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":d||void 0})}),Bc=a.createContext(null);function Hc(t){let e=a.useRef({});return a.createElement(Bc.Provider,{value:e},t.children)}const Uc=a.createContext({isSelected:!1}),Wc=a.createContext(null),en=a.createContext(null),tl=a.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=xe(e,n,Wc);let{dialogProps:i,titleProps:o}=bc({...e,"aria-labelledby":r},n),l=a.useContext(en);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=me({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),d=ce(e,{global:!0});return a.createElement(ue.section,{...Y(d,s,i),render:e.render,ref:n,slot:e.slot||void 0},a.createElement(mt,{values:[[ms,{slots:{[Kn]:{},title:{...o,level:2}}}],[qo,{slots:{[Kn]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))}),jc=a.createContext(null),pr=a.createContext(null),nl=a.forwardRef(function(e,n){if(a.useContext(pr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const b=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),w=Object.keys(e).filter(x=>b.has(x));console.warn(`This modal is already wrapped in a ModalOverlay, props [${w.join(", ")}] should be placed on the ModalOverlay instead.`)}return a.createElement(rl,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,children:c,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v,...g}=e;return a.createElement(mr,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v},a.createElement(rl,{...g,modalRef:n},c))});function Gc(t,e){[t,e]=xe(t,e,jc);let n=a.useContext(en),r=Lc(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=Se(e),l=a.useRef(null),s=Mn(o,i.isOpen),d=Mn(l,i.isOpen),c=s||d||t.isExiting||!1,u=Be();return!i.isOpen&&!c||u?null:a.createElement(qc,{...t,state:i,isExiting:c,overlayRef:o,modalRef:l})}const mr=a.forwardRef(Gc);function qc({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=Ed(e,r,n),l=Tn(e.overlayRef)||e.isEntering||!1,s=me({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),d=Rs(),c;if(typeof document<"u"){let f=ft(document.body)?document.body:document.scrollingElement||document.documentElement,m=f.getBoundingClientRect().height%1;c=f.scrollHeight-m}let u={...s.style,"--visual-viewport-height":d.height+"px","--page-height":c!==void 0?c+"px":void 0};return a.createElement(wd,{isExiting:e.isExiting,portalContainer:t},a.createElement(ue.div,{...Y(ce(e,{global:!0}),o),...s,style:u,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},a.createElement(mt,{values:[[pr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[en,r]]},s.children)))}function rl(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=a.useContext(pr),o=a.useContext(en),l=a.useMemo(()=>et(t.modalRef,n),[t.modalRef,n]),s=Se(l),d=Tn(s),c=me({...t,defaultClassName:"react-aria-Modal",values:{isEntering:d,isExiting:r,state:o}});return a.createElement(ue.div,{...Y(ce(t,{global:!0}),e),...c,ref:s,"data-entering":d||void 0,"data-exiting":r||void 0},i&&a.createElement(bd,{onDismiss:o.close}),c.children)}const Yc=a.createContext(null),Zc=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,Yc);let o=Se(et(r,e.inputRef!==void 0?e.inputRef:null)),l=fr(e),{labelProps:s,inputProps:d,isSelected:c,isDisabled:u,isReadOnly:f,isPressed:m}=yc({...$t(e),children:typeof e.children=="function"?!0:e.children},l,o),{isFocused:v,isFocusVisible:g,focusProps:b}=Ze(),w=e.isDisabled||e.isReadOnly,{hoverProps:x,isHovered:E}=bt({...e,isDisabled:w}),C=me({...e,defaultClassName:"react-aria-Switch",values:{isSelected:c,isPressed:m,isHovered:E,isFocused:v,isFocusVisible:g,isDisabled:u,isReadOnly:f,state:l}}),k=ce(e,{global:!0});return delete k.id,delete k.onClick,a.createElement(ue.label,{...Y(k,s,x,C),ref:n,slot:e.slot||void 0,"data-selected":c||void 0,"data-pressed":m||void 0,"data-hovered":E||void 0,"data-focused":v||void 0,"data-focus-visible":g||void 0,"data-disabled":u||void 0,"data-readonly":f||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...Y(d,b),ref:o})),C.children)}),tn=a.createContext(null),Xe=a.createContext(null),Xc=a.forwardRef(function(e,n){[e,n]=xe(e,n,tn);let{children:r,orientation:i="horizontal"}=e;return r=a.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),a.createElement(nc,{content:r},o=>a.createElement(Jc,{props:e,collection:o,tabsRef:n}))});function Jc({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Sc({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:s}=Ze({within:!0}),d=a.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:s}),[r,l,s]),c=me({...t,defaultClassName:"react-aria-Tabs",values:d}),u=ce(t,{global:!0});return a.createElement(ue.div,{...Y(u,c,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},a.createElement(mt,{values:[[tn,t],[Xe,i]]},c.children))}const Qc=a.forwardRef(function(e,n){return a.useContext(Xe)?a.createElement(Rc,{props:e,forwardedRef:n}):a.createElement(uc,e)});function Rc({props:t,forwardedRef:e}){let n=a.useContext(Xe),{CollectionRoot:r}=a.useContext(Ho),{orientation:i="horizontal",keyboardActivation:o="automatic"}=St(tn),l=Se(e),{tabListProps:s}=Cc({...t,orientation:i,keyboardActivation:o},n,l),d=me({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=ce(t,{global:!0});return delete c.id,a.createElement(ue.div,{...Y(c,d,s),ref:l,"data-orientation":i||void 0},a.createElement(Hc,null,a.createElement(r,{collection:n.collection,persistedKeys:pc(n.selectionManager.focusedKey)})))}class il extends Et{}il.type="item";const eu=dc(il,(t,e,n)=>{let r=a.useContext(Xe),i=Se(e),{tabProps:o,isSelected:l,isDisabled:s,isPressed:d}=xc({key:n.key,...t},r,i),{focusProps:c,isFocused:u,isFocusVisible:f}=Ze(),{hoverProps:m,isHovered:v}=bt({isDisabled:s,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),g=me({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:s,isFocused:u,isFocusVisible:f,isPressed:d,isHovered:v}}),b=n.props.href?ue.a:ue.div,w=ce(t,{global:!0});return delete w.id,delete w.onClick,a.createElement(b,{...Y(w,g,o,c,m),ref:i,"data-selected":l||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":d||void 0,"data-hovered":v||void 0},a.createElement(Uc.Provider,{value:{isSelected:l}},g.children))}),tu=Ct(function(e,n){const r=a.useContext(Xe);let i=Se(n),o=r.selectedKey===e.id,[l,s]=a.useState(r.selectedKey!=null?o:null);l==null&&r.selectedKey!=null?s(o):!o&&l&&s(!1);let d=Mn(i,o);return!o&&!e.shouldForceMount&&!d?null:a.createElement(nu,{...e,tabPanelRef:i,isInitiallySelected:l||!1,isExiting:d})});function nu(t){let e=a.useContext(Xe),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:o,...l}=t,{tabPanelProps:s}=wc(t,e,r),{focusProps:d,isFocused:c,isFocusVisible:u}=Ze(),f=e.selectedKey===t.id,m=Tn(r)&&!i,v=me({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:u,isInert:Yr(!f),isEntering:m,isExiting:o,state:e}}),g=ce(l,{global:!0});delete g.id;let b=f?Y(g,s,d,v):Y(g,v);return a.createElement(ue.div,{...b,ref:r,"data-focused":c||void 0,"data-focus-visible":u||void 0,inert:Yr(!f||t.inert),"data-inert":f?void 0:"true","data-entering":m||void 0,"data-exiting":o||void 0},a.createElement(mt,{values:[[tn,null],[Xe,null]]},a.createElement(Ho.Provider,{value:Vo},v.children)))}const ru=a.createContext({}),iu=a.createContext(null),ou=Ct(function(e,n){[e,n]=xe(e,n,iu);let{validationBehavior:r}=St(Ro)||{};var i,o;let l=(o=(i=e.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",s=a.useRef(null);[e,s]=xe(e,s,vs);let[d,c]=ua(!e["aria-label"]&&!e["aria-labelledby"]),[u,f]=a.useState("input"),{labelProps:m,inputProps:v,descriptionProps:g,errorMessageProps:b,...w}=Wd({...$t(e),inputElementType:u,label:c,validationBehavior:l},s),x=a.useCallback(k=>{s.current=k,k&&f(k instanceof HTMLTextAreaElement?"textarea":"input")},[s]),E=me({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:w.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),C=ce(e,{global:!0});return delete C.id,a.createElement(ue.div,{...C,...E,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(mt,{values:[[Go,{...m,ref:d}],[el,{...v,ref:x}],[ru,{...v,ref:x}],[Oc,{role:"presentation",isInvalid:w.isInvalid,isDisabled:e.isDisabled||!1}],[Yo,{slots:{description:g,errorMessage:b}}],[$c,w]]},E.children))}),lu=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},su=(t,e)=>({classGroupId:t,validator:e}),ol=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),nn="-",ll=[],au="arbitrary..",du=t=>{const e=uu(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return cu(l);const s=l.split(nn),d=s[0]===""&&s.length>1?1:0;return sl(s,d,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const d=r[l],c=n[l];return d?c?lu(c,d):d:c||ll}return n[l]||ll}}},sl=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const c=sl(t,e+1,o);if(c)return c}const l=n.validators;if(l===null)return;const s=e===0?t.join(nn):t.slice(e).join(nn),d=l.length;for(let c=0;c<d;c++){const u=l[c];if(u.validator(s))return u.classGroupId}},cu=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?au+r:void 0})(),uu=t=>{const{theme:e,classGroups:n}=t;return fu(n,e)},fu=(t,e)=>{const n=ol();for(const r in t){const i=t[r];vr(i,n,r,e)}return n},vr=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];hu(l,e,n,r)}},hu=(t,e,n,r)=>{if(typeof t=="string"){pu(t,e,n);return}if(typeof t=="function"){mu(t,e,n,r);return}vu(t,e,n,r)},pu=(t,e,n)=>{const r=t===""?e:al(e,t);r.classGroupId=n},mu=(t,e,n,r)=>{if(gu(t)){vr(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(su(n,t))},vu=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[s,d]=i[l];vr(d,al(e,s),n,r)}},al=(t,e)=>{let n=t;const r=e.split(nn),i=r.length;for(let o=0;o<i;o++){const l=r[o];let s=n.nextPart.get(l);s||(s=ol(),n.nextPart.set(l,s)),n=s}return n},gu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,bu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},gr="!",dl=":",yu=[],cl=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),xu=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,s=0,d=0,c;const u=i.length;for(let b=0;b<u;b++){const w=i[b];if(l===0&&s===0){if(w===dl){o.push(i.slice(d,b)),d=b+1;continue}if(w==="/"){c=b;continue}}w==="["?l++:w==="]"?l--:w==="("?s++:w===")"&&s--}const f=o.length===0?i:i.slice(d);let m=f,v=!1;f.endsWith(gr)?(m=f.slice(0,-1),v=!0):f.startsWith(gr)&&(m=f.slice(1),v=!0);const g=c&&c>d?c-d:void 0;return cl(o,v,m,g)};if(e){const i=e+dl,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):cl(yu,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},wu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],s=l[0]==="[",d=e.has(l);s||d?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},Eu=t=>({cache:bu(t.cacheSize),parseClassName:xu(t),sortModifiers:wu(t),...du(t)}),Cu=/\s+/,Pu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=e,l=[],s=t.trim().split(Cu);let d="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:f,modifiers:m,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:b}=n(u);if(f){d=u+(d.length>0?" "+d:d);continue}let w=!!b,x=r(w?g.substring(0,b):g);if(!x){if(!w){d=u+(d.length>0?" "+d:d);continue}if(x=r(g),!x){d=u+(d.length>0?" "+d:d);continue}w=!1}const E=m.length===0?"":m.length===1?m[0]:o(m).join(":"),C=v?E+gr:E,k=C+x;if(l.indexOf(k)>-1)continue;l.push(k);const N=i(x,w);for(let U=0;U<N.length;++U){const O=N[U];l.push(C+O)}d=u+(d.length>0?" "+d:d)}return d},ku=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=ul(n))&&(i&&(i+=" "),i+=r);return i},ul=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=ul(t[r]))&&(n&&(n+=" "),n+=e);return n},Nu=(t,...e)=>{let n,r,i,o;const l=d=>{const c=e.reduce((u,f)=>f(u),t());return n=Eu(c),r=n.cache.get,i=n.cache.set,o=s,s(d)},s=d=>{const c=r(d);if(c)return c;const u=Pu(d,n);return i(d,u),u};return o=l,(...d)=>o(ku(...d))},Tu=[],se=t=>{const e=n=>n[t]||Tu;return e.isThemeGetter=!0,e},fl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Du=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_u=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ku=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=t=>Mu.test(t),j=t=>!!t&&!Number.isNaN(Number(t)),Oe=t=>!!t&&Number.isInteger(Number(t)),br=t=>t.endsWith("%")&&j(t.slice(0,-1)),Ke=t=>Du.test(t),pl=()=>!0,Su=t=>_u.test(t)&&!Iu.test(t),yr=()=>!1,$u=t=>Ku.test(t),Fu=t=>Lu.test(t),Au=t=>!S(t)&&!F(t),Ou=t=>ze(t,xl,yr),S=t=>fl.test(t),Je=t=>ze(t,wl,Su),ml=t=>ze(t,Gu,j),zu=t=>ze(t,Cl,pl),Vu=t=>ze(t,El,yr),vl=t=>ze(t,bl,yr),Bu=t=>ze(t,yl,Fu),rn=t=>ze(t,Pl,$u),F=t=>hl.test(t),kt=t=>Qe(t,wl),Hu=t=>Qe(t,El),gl=t=>Qe(t,bl),Uu=t=>Qe(t,xl),Wu=t=>Qe(t,yl),on=t=>Qe(t,Pl,!0),ju=t=>Qe(t,Cl,!0),ze=(t,e,n)=>{const r=fl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Qe=(t,e,n=!1)=>{const r=hl.exec(t);return r?r[1]?e(r[1]):n:!1},bl=t=>t==="position"||t==="percentage",yl=t=>t==="image"||t==="url",xl=t=>t==="length"||t==="size"||t==="bg-size",wl=t=>t==="length",Gu=t=>t==="number",El=t=>t==="family-name",Cl=t=>t==="number"||t==="weight",Pl=t=>t==="shadow",qu=Nu(()=>{const t=se("color"),e=se("font"),n=se("text"),r=se("font-weight"),i=se("tracking"),o=se("leading"),l=se("breakpoint"),s=se("container"),d=se("spacing"),c=se("radius"),u=se("shadow"),f=se("inset-shadow"),m=se("text-shadow"),v=se("drop-shadow"),g=se("blur"),b=se("perspective"),w=se("aspect"),x=se("ease"),E=se("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...k(),F,S],U=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],P=()=>[F,S,d],I=()=>[Ae,"full","auto",...P()],T=()=>[Oe,"none","subgrid",F,S],L=()=>["auto",{span:["full",Oe,F,S]},Oe,F,S],q=()=>[Oe,"auto",F,S],Z=()=>["auto","min","max","fr",F,S],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...P()],X=()=>[Ae,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],ee=()=>[Ae,"screen","full","dvw","lvw","svw","min","max","fit",...P()],re=()=>[Ae,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],p=()=>[t,F,S],_=()=>[...k(),gl,vl,{position:[F,S]}],y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Uu,Ou,{size:[F,S]}],$=()=>[br,kt,Je],A=()=>["","none","full",c,F,S],Q=()=>["",j,kt,Je],ae=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[j,br,gl,vl],fe=()=>["","none",g,F,S],ke=()=>["none",j,F,S],fn=()=>["none",j,F,S],Lr=()=>[j,F,S],hn=()=>[Ae,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ke],breakpoint:[Ke],color:[pl],container:[Ke],"drop-shadow":[Ke],ease:["in","out","in-out"],font:[Au],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ke],shadow:[Ke],spacing:["px",j],text:[Ke],"text-shadow":[Ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ae,S,F,w]}],container:["container"],columns:[{columns:[j,S,F,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Oe,"auto",F,S]}],basis:[{basis:[Ae,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[j,Ae,"auto","initial","none",S]}],grow:[{grow:["",j,F,S]}],shrink:[{shrink:["",j,F,S]}],order:[{order:[Oe,"first","last","none",F,S]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[s,"screen",...X()]}],"min-w":[{"min-w":[s,"screen","none",...X()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,kt,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ju,zu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",br,S]}],"font-family":[{font:[Hu,Vu,e]}],"font-features":[{"font-features":[S]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,F,S]}],"line-clamp":[{"line-clamp":[j,"none",F,ml]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",F,S]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[j,"from-font","auto",F,Je]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[j,"auto",F,S]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,S]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:y()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oe,F,S],radial:["",F,S],conic:[Oe,F,S]},Wu,Bu]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[j,F,S]}],"outline-w":[{outline:["",j,kt,Je]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",u,on,rn]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",f,on,rn]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[j,Je]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",m,on,rn]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[j,F,S]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[F,S]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:y()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,S]}],filter:[{filter:["","none",F,S]}],blur:[{blur:fe()}],brightness:[{brightness:[j,F,S]}],contrast:[{contrast:[j,F,S]}],"drop-shadow":[{"drop-shadow":["","none",v,on,rn]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",j,F,S]}],"hue-rotate":[{"hue-rotate":[j,F,S]}],invert:[{invert:["",j,F,S]}],saturate:[{saturate:[j,F,S]}],sepia:[{sepia:["",j,F,S]}],"backdrop-filter":[{"backdrop-filter":["","none",F,S]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[j,F,S]}],"backdrop-contrast":[{"backdrop-contrast":[j,F,S]}],"backdrop-grayscale":[{"backdrop-grayscale":["",j,F,S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,F,S]}],"backdrop-invert":[{"backdrop-invert":["",j,F,S]}],"backdrop-opacity":[{"backdrop-opacity":[j,F,S]}],"backdrop-saturate":[{"backdrop-saturate":[j,F,S]}],"backdrop-sepia":[{"backdrop-sepia":["",j,F,S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,S]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[j,"initial",F,S]}],ease:[{ease:["linear","initial",x,F,S]}],delay:[{delay:[j,F,S]}],animate:[{animate:["none",E,F,S]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,F,S]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:fn()}],"scale-x":[{"scale-x":fn()}],"scale-y":[{"scale-y":fn()}],"scale-z":[{"scale-z":fn()}],"scale-3d":["scale-3d"],skew:[{skew:Lr()}],"skew-x":[{"skew-x":Lr()}],"skew-y":[{"skew-y":Lr()}],transform:[{transform:[F,S,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:hn()}],"translate-x":[{"translate-x":hn()}],"translate-y":[{"translate-y":hn()}],"translate-z":[{"translate-z":hn()}],"translate-none":["translate-none"],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,S]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F,S]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[j,kt,Je,ml]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function z(...t){return qu(t.filter(Boolean))}const Yu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z"})),Zu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z"})),Xu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM20 4h2v16h-2zM2 4h2v16H2zm9 2h2v8h-2zm0 10h2v2h-2z"})),kl=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z"})),Ju={Info:Yu,Warning:Zu,Error:Xu,Done:kl,Check:kl,Close:t=>h.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:h.jsx("path",{d:"M5 5h2v2H5zM7 7h2v2H7zM9 9h2v2H9zM11 11h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM17 17h2v2h-2zM17 5h2v2h-2zM15 7h2v2h-2zM13 9h2v2h-2zM9 13h2v2H9zM7 15h2v2H7zM5 17h2v2H5z"})}),"Chevron Up":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 8h-2v2h2V8Zm-2 2H9v2h2v-2Zm4 0h-2v2h2v-2Zm-6 2H7v2h2v-2Zm8 0h-2v2h2v-2ZM7 14H5v2h2v-2Zm12 0h-2v2h2v-2Z"})),"Chevron Down":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 16h-2v-2h2v2Zm-2-2H9v-2h2v2Zm4 0h-2v-2h2v2Zm-6-2H7v-2h2v2Zm8 0h-2v-2h2v2ZM7 10H5V8h2v2Zm12 0h-2V8h2v2Z"})),App:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 6h16v2H4zm0 12h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM5 5h2v2H5zm3 0h2v2H8z"})),Cancel:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 11h16v2H4z"})),Fullscreen:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 13h16v-2H4zm7-8h2V3h-2zM9 7h4V5H9zm4 0h2V5h-2zm2 2h2V7h-2zM7 9h8V7H7zm4 10h2v2h-2zm-2-2h4v2H9zm4 0h2v2h-2zm2-2h2v2h-2zm-8 0h8v2H7z"})),Add:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 11h7v2h-7v7h-2v-7H4v-2h7V4h2v7Z"}))},Qu={L:56,S:24},pe=({name:t,size:e="L",className:n="",onClick:r,color:i,role:o,"aria-label":l})=>{const s=Ju[t];if(!s)return null;const d=Qu[e];return h.jsx("span",{className:z("icon",o&&"icon--button",n),onClick:r,role:o,"aria-label":l||`${t} icon`,style:i?{color:i}:void 0,children:h.jsx(s,{width:d,height:d,className:"icon__svg"})})};function xr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function wr(t,e){const[n,r]=a.useState(!1),i=a.useRef(!1),o=a.useCallback(()=>{if(!(i.current||!e)){if(xr()){e();return}i.current=!0,r(!0)}},[e]),l=a.useCallback(s=>{s.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:o,handleAnimationEnd:l}}const Ru={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},ef={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function tf(t,e){return t||Ru[e||"info"]||"default"}function nf(t){return t==="full-width"?"full-width":"floating"}const Nl=a.forwardRef(({color:t,size:e="floating",type:n,title:r,children:i,actions:o,onClose:l,onClickHere:s,className:d},c)=>{const u=tf(t,n),f=nf(e),{isClosing:m,triggerClose:v,handleAnimationEnd:g}=wr("alert-exit",l),b=[...o||[],...s?[{label:"Click here",onClick:s}]:[]];return h.jsxs("div",{ref:c,className:z("relative w-full flex flex-col gap-4 p-4","font-dos text-dos-text-sm","border border-dos-border-default rounded-dos-base","eidotter-alert",`eidotter-alert--${u}`,f==="floating"&&"max-w-[1216px]",f==="full-width"&&"eidotter-alert--full-width max-w-none",m&&"eidotter-alert--closing",d),onAnimationEnd:g,role:"alert","data-color":u,"data-size":f,children:[h.jsx("div",{className:"eidotter-alert__icon",children:h.jsx(pe,{name:ef[u]||"Info",size:"S","aria-label":`${u} alert`})}),h.jsxs("div",{className:z("flex-1 flex flex-col gap-3 min-w-0",l&&"pr-6"),children:[(r||i)&&h.jsxs("div",{className:"flex flex-col gap-1",children:[r&&h.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&h.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),b.length>0&&h.jsx("div",{className:"flex flex-row gap-3",children:b.map((w,x)=>h.jsxs(le,{className:"eidotter-alert__action",onPress:w.onClick,children:[w.label,w.icon]},x))})]}),l&&h.jsx(le,{className:"eidotter-alert__close",onPress:v,"aria-label":"Close alert",children:h.jsx(pe,{name:"Close",size:"S"})})]})});Nl.displayName="Alert";const Tl=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:o})=>{const[l,s]=a.useState(n);a.useEffect(()=>{s(n)},[n]);const d=()=>{const c=!l;s(c),o==null||o(c)};return h.jsxs("div",{className:z("w-full border border-dos-border-default text-cga-amber font-dos","eidotter-section",l&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[h.jsxs(le,{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onPress:d,"aria-expanded":l,children:[h.jsx("div",{className:"flex-1 text-base leading-6",children:t}),h.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:h.jsx(pe,{name:l?"Chevron Up":"Chevron Down",size:"S"})})]}),h.jsx("div",{className:"eidotter-section__content",inert:l?void 0:!0,children:e})]})},rf=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=a.useState(e),i=(o,l)=>{r(l?o:-1)};return h.jsx("div",{className:z("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((o,l)=>h.jsx(Tl,{title:o.title,defaultExpanded:l===e,onToggle:s=>i(l,s),children:o.content},l))})},Ml={xs:"text-dos-text-xs px-2 py-1 min-h-6 gap-1",sm:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",md:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",lg:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2",xl:"text-dos-text-xl px-5 py-3 min-h-11 gap-2",small:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",medium:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",large:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2"},Dl={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},ln=a.forwardRef(({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:o,onPress:l,onClick:s,className:d,fullWidth:c=!1,iconOnly:u=!1,...f},m)=>{const v=r||i;return h.jsxs(le,{ref:m,type:n,isDisabled:v,isPending:i||void 0,onPress:g=>{if(l)l(g);else if(s){const b={type:"press",target:g.target,currentTarget:g.target,preventDefault:()=>{},stopPropagation:()=>{}};s(b)}},className:z("inline-flex items-center justify-center relative","border-2 border-solid","font-dos leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",Ml[e]||Ml.md,Dl[t]||Dl.primary,v&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",c&&"w-full",u&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",d),"data-loading":i||void 0,"data-variant":t,...f,children:[i&&h.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),h.jsx("span",{className:z("inline-flex items-center justify-center",i&&"opacity-70"),children:o})]})});ln.displayName="Button";const _l={default:"eidotter-card--default",elevated:"eidotter-card--elevated",bordered:"eidotter-card--bordered",glow:"eidotter-card--glow",interactive:"eidotter-card--interactive",minimal:"eidotter-card--minimal",callout:"eidotter-card--callout"},Il=a.forwardRef(({title:t,children:e,footer:n,variant:r="default",className:i,...o},l)=>h.jsxs("div",{ref:l,className:z("border-2 border-solid border-dos-border-default","font-dos text-cga-amber","eidotter-card",_l[r]||_l.default,i),...o,children:[t&&h.jsx("div",{className:"eidotter-card__header px-3 py-2 border-b border-dos-text-disabled bg-cga-amber-dim",children:h.jsx("span",{className:"text-dos-text-secondary text-dos-text-md uppercase",children:t})}),h.jsx("div",{className:"p-3",children:e}),n&&h.jsx("div",{className:"eidotter-card__footer px-3 py-2 border-t border-dos-text-disabled bg-dos-bg-secondary",children:n})]}));Il.displayName="Card";const Kl=a.forwardRef(({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:o=!1,size:l="md",name:s,value:d,className:c,"aria-label":u,...f},m)=>h.jsx(Ac,{ref:m,isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:o,name:s,value:d,"aria-label":u||i,className:z("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",l==="sm"?"text-dos-text-xs":"text-dos-text-sm","eidotter-checkbox",o&&"opacity-60 cursor-not-allowed",c),"data-size":l,...f,children:({isSelected:v,isIndeterminate:g})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:z("eidotter-checkbox__box",v&&"eidotter-checkbox__box--checked",g&&"eidotter-checkbox__box--indeterminate"),children:g?"[-]":v?"[X]":"[ ]"}),i&&h.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}));Kl.displayName="Checkbox";const of=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:o=!1})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useEffect(()=>{n&&d.current&&d.current.focus()},[n]);const c=f=>{f.key==="Enter"&&l.trim()&&!o&&(e(l.trim()),s(""))},u=()=>{!o&&d.current&&d.current.focus()};return h.jsxs("div",{className:`command-prompt ${o?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[h.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),h.jsxs("div",{className:"command-prompt__input-wrapper",children:[h.jsx("input",{ref:d,className:"command-prompt__input",value:l,onChange:f=>s(f.target.value),onKeyDown:c,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:o,"aria-label":"Command input",size:l.length||1}),h.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},sn="█",an="░",Er="▓",lf="▒",Ll={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},Sl={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function sf(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),o=r-i,l=(i>=1?Er:"")+(i>=2?lf:"");return{filled:sn.repeat(t),transition:l,empty:an.repeat(o)}}return{filled:sn.repeat(t),transition:"",empty:an.repeat(r)}}const Cr=a.forwardRef(({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:o="block",blocks:l=20,showLabel:s=!1,fullWidth:d=!1,glow:c=!1,valueText:u,className:f,"aria-label":m,...v},g)=>{const b=Math.min(80,Math.max(3,Math.floor(l))),w=Math.min(100,Math.max(0,t/e*100)),x=Math.round(w/100*b),E=z("inline-flex items-center gap-2 font-dos","eidotter-progress",Ll[i]||Ll.md,Sl[r]||Sl.default,c&&"eidotter-progress--glow",d&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",o==="bordered"&&"eidotter-progress--bordered",f),C={"aria-label":m||`Progress: ${n?"loading":`${Math.round(w)}%`}`};n||(C["aria-valuenow"]=t,C["aria-valuemin"]=0,C["aria-valuemax"]=e),u&&(C["aria-valuetext"]=u);const k=o==="bordered",N=z("eidotter-progress__track",k&&"eidotter-progress__track--borderless");if(n){const I=an.repeat(b);return h.jsxs("div",{ref:g,className:E,role:"progressbar",...C,...v,children:[h.jsxs("span",{className:N,children:[k&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:I}),h.jsxs("span",{className:"eidotter-progress__scanner",children:[Er,sn,Er]})]}),k&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&h.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const U=sn.repeat(b),O=an.repeat(b),{transition:P}=sf(x,b,o);return h.jsxs("div",{ref:g,className:E,role:"progressbar",...C,...v,children:[h.jsxs("span",{className:N,children:[k&&h.jsx("span",{className:"eidotter-progress__bracket",children:"["}),h.jsxs("span",{className:"eidotter-progress__bar",children:[h.jsx("span",{className:"eidotter-progress__empty",children:O}),h.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(w)},children:U}),P&&h.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(w)},children:P})]}),k&&h.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&h.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(w),"%"]})]})});Cr.displayName="Progress";const $l={default:"eidotter-input--default",error:"eidotter-input--error"},Fl=a.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:o,onChange:l,isRequired:s,...d},c)=>{const u=t==="error";return h.jsxs(ou,{isDisabled:i,isInvalid:u,isRequired:s,className:z("eidotter-text-field","flex flex-col gap-1",o),children:[e&&h.jsx(Pc,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),h.jsx(Vc,{ref:c,className:z("w-full bg-transparent text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",$l[t]||$l.default,i&&"eidotter-input--disabled"),onChange:l,...d}),n&&!u&&h.jsx(Zo,{slot:"description",className:"text-dos-text-muted font-dos text-xs",children:n}),r&&u&&h.jsx(Zo,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});Fl.displayName="Input";const af=({size:t="md",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:o=!1,closeable:l=!1,children:s,onMinimize:d,onMaximize:c,onClose:u,onFocus:f,className:m="",autoFocus:v=!1})=>{const b={sm:"small",md:"medium",lg:"large"}[t]??t,[w,x]=a.useState(n),[E,C]=a.useState(!1),k=a.useRef(null);a.useEffect(()=>{v&&k.current&&k.current.focus()},[v]);const N=()=>{x("minimized"),d==null||d()},U=()=>{C(!E),c==null||c()},O=()=>{u==null||u()},P=()=>{x("active"),f==null||f()},I=T=>{T.altKey&&T.key==="F4"&&l&&(T.preventDefault(),O())};return w==="minimized"?h.jsx(le,{className:`terminal terminal--minimized ${m}`.trim(),onPress:P,"aria-label":`Restore ${e} window`,children:h.jsxs("div",{className:"terminal__taskbar-item",children:[h.jsx(pe,{name:"App",size:"S"}),h.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):h.jsxs("div",{ref:k,className:`terminal terminal--${b} terminal--${w} ${E?"terminal--maximized":""} ${m}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:P,onKeyDown:I,children:[h.jsxs("div",{className:"terminal__title-bar",children:[h.jsxs("div",{className:"terminal__title",children:[h.jsx(pe,{name:"App",size:"S","aria-hidden":"true"}),h.jsx("span",{className:"terminal__title-text",children:e})]}),(i||o||l)&&h.jsxs("div",{className:"terminal__controls",children:[i&&h.jsx(le,{className:"terminal__control terminal__control--minimize",onPress:N,"aria-label":"Minimize window",children:h.jsx(pe,{name:"Cancel",size:"S"})}),o&&h.jsx(le,{className:"terminal__control terminal__control--maximize",onPress:U,"aria-label":E?"Restore window":"Maximize window",children:h.jsx(pe,{name:E?"Fullscreen":"Add",size:"S"})}),l&&h.jsx(le,{className:"terminal__control terminal__control--close",onPress:O,"aria-label":"Close window",children:h.jsx(pe,{name:"Close",size:"S"})})]})]}),h.jsx("div",{className:"terminal__content",role:"main",children:s||h.jsx("div",{className:"terminal__default-content",children:h.jsxs("div",{className:"terminal__prompt",children:[h.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),h.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&h.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},Al={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},df={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Ol=a.forwardRef(({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onSelectionChange:o,onTabChange:l,className:s,...d},c)=>{var w,x,E;const u=a.useRef(null),f=a.useRef(r??i??((w=t[0])==null?void 0:w.id)??""),[m,v]=a.useState(r??i??((x=t[0])==null?void 0:x.id)??""),g=o??l,b=a.useCallback(C=>{const k=String(C),N=r??f.current;f.current=k,v(k),g==null||g(k,N)},[r,g]);return a.useLayoutEffect(()=>{const C=u.current;if(!C||e!=="underline")return;const k=()=>{const U=C.querySelector('[aria-selected="true"]');U&&(C.style.setProperty("--indicator-left",`${U.offsetLeft}px`),C.style.setProperty("--indicator-width",`${U.offsetWidth}px`))};k();const N=new ResizeObserver(k);return N.observe(C),()=>N.disconnect()},[r,m,e]),h.jsxs(Xc,{ref:c,selectedKey:r,defaultSelectedKey:i??((E=t[0])==null?void 0:E.id),onSelectionChange:b,className:z("eidotter-tabs",df[e],Al[n]||Al.md,s),children:[h.jsxs("div",{ref:u,className:"relative",children:[h.jsx(Qc,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":d["aria-label"],children:t.map(C=>h.jsx(eu,{id:C.id,isDisabled:C.disabled,className:({isSelected:k,isDisabled:N})=>z("eidotter-tabs__tab",k&&"eidotter-tabs__tab--active",N&&"eidotter-tabs__tab--disabled"),children:C.label},C.id))}),e==="underline"&&h.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(C=>h.jsx(tu,{id:C.id,className:"hidden"},C.id))]})});Ol.displayName="Tabs";const zl={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Vl={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},st=a.forwardRef(({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...o},l)=>h.jsxs("span",{ref:l,className:z("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",zl[e]||zl.md,Vl[t]||Vl.default,i),"data-variant":t,...o,children:[n&&h.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),h.jsx("span",{className:"eidotter-badge__content",children:r})]}));st.displayName="Badge";const Bl=a.forwardRef(({checked:t,defaultChecked:e=!1,onChange:n,onCheckedChange:r,disabled:i=!1,size:o="md",type:l="default",label:s,name:d,value:c,className:u,...f},m)=>h.jsx(Zc,{ref:m,isSelected:t,defaultSelected:e,onChange:n??r,isDisabled:i,name:d,value:c,className:z("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",i&&"opacity-50 cursor-not-allowed",u),"data-size":o,"data-type":l,...f,children:({isSelected:v})=>h.jsxs(h.Fragment,{children:[h.jsx("span",{className:z("eidotter-switch__track",v&&"eidotter-switch__track--checked",l==="slim"&&"eidotter-switch__track--slim",o==="sm"&&"eidotter-switch__track--sm"),children:h.jsx("span",{className:"eidotter-switch__thumb"})}),s&&h.jsx("span",{className:"text-[var(--color-cga-amber)]",children:s})]})}));Bl.displayName="Switch";const dn="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",Hl=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:o})=>{const l=(s,d)=>{const c=h.jsxs(h.Fragment,{children:[n&&d&&h.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),h.jsx("span",{children:s.label})]});return s.onClick?h.jsx(le,{className:z(dn,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onPress:s.onClick,children:c}):s.href?i?h.jsx(i,{href:s.href,className:dn,children:c}):h.jsx("a",{href:s.href,className:dn,children:c}):h.jsx("span",{className:dn,children:c})};return h.jsx("nav",{"aria-label":"Breadcrumb",className:z("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",o),children:h.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((s,d)=>{const c=d===t.length-1,u=d<t.length-1;return h.jsxs("li",{className:"flex items-center gap-2",children:[l(s,c),u&&h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${s.href??s.label}-${d}`)}),t.length>0&&h.jsx("li",{className:"flex items-center gap-2",children:h.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),h.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:h.jsx("span",{className:"text-cga-amber",children:e})})]})})},cf=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:o=1,className:l,onPowerStateChange:s,onPowerOn:d,onPowerOff:c})=>{const u=a.useRef(i),[f,m]=a.useState(i?"on":"off");a.useEffect(()=>{const E=u.current;if(u.current=i,E!==i){const C=i?"powering-on":"powering-off";m(C),s==null||s(C)}},[i,s]);const v=()=>{f==="powering-on"?(m("on"),s==null||s("on"),d==null||d()):f==="powering-off"&&(m("off"),s==null||s("off"),c==null||c())},g=E=>{E.animationName!=="retro-power-on"&&E.animationName!=="retro-power-off"||v()},b=E=>{E.propertyName==="opacity"&&(f!=="powering-on"&&f!=="powering-off"||v())},w={"--retro-intensity":o},x=f!=="off";return h.jsx("div",{className:z("fixed inset-0 pointer-events-none z-[9999]","eidotter-retro-effects",f==="powering-off"&&"eidotter-retro-effects--powering-off",f==="powering-on"&&"eidotter-retro-effects--powering-on",f==="off"&&"eidotter-retro-effects--off",l),style:w,"aria-hidden":"true",onAnimationEnd:g,onTransitionEnd:b,children:x&&h.jsxs(h.Fragment,{children:[t&&h.jsx("div",{className:"eidotter-retro-effects__scanlines"}),e&&h.jsx("div",{className:"eidotter-retro-effects__glow"}),n&&h.jsx("div",{className:"eidotter-retro-effects__flicker"}),r&&h.jsx("div",{className:"eidotter-retro-effects__bloom"})]})})},uf={sm:"small",md:"medium",lg:"large",small:"small",medium:"medium",large:"large"},ff={circle:"eidotter-timeline-node--circle",square:"eidotter-timeline-node--square",diamond:"eidotter-timeline-node--diamond"},hf={default:"eidotter-timeline-node--default",primary:"eidotter-timeline-node--primary",secondary:"eidotter-timeline-node--secondary",accent:"eidotter-timeline-node--accent"},pf={left:"eidotter-timeline-node--label-left",right:"eidotter-timeline-node--label-right",top:"eidotter-timeline-node--label-top",bottom:"eidotter-timeline-node--label-bottom"},Ve=a.forwardRef(({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:o="md",className:l,onClick:s,...d},c)=>{const u=uf[o]??"medium",f=()=>{s&&s()},m=v=>{s&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())};return h.jsxs("div",{ref:c,className:z("inline-flex items-center gap-2 font-dos","eidotter-timeline-node",ff[t],hf[e],`eidotter-timeline-node--${u}`,pf[i],n&&"eidotter-timeline-node--active",s&&"eidotter-timeline-node--interactive",l),onClick:f,onKeyDown:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-pressed":s?n:void 0,...d,children:[r&&i==="left"&&h.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--left",children:r}),r&&i==="top"&&h.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--top",children:r}),h.jsx("span",{className:"eidotter-timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&h.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--right",children:r}),r&&i==="bottom"&&h.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--bottom",children:r})]})});Ve.displayName="TimelineNode";const Nt=["year","month","day","hour"];function mf({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,o]=a.useState(e),[l,s]=a.useState([]),d=a.useRef(r);a.useEffect(()=>{d.current&&!r&&s([]),d.current=r},[r]);const c=t??i,u=Nt.indexOf(c),f=u<Nt.length-1,m=u>0,v=l.length>0?l[l.length-1].periodStart:null,g=a.useRef(r),b=a.useRef(f),w=a.useRef(u),x=a.useRef(l),E=a.useRef(n);a.useEffect(()=>{g.current=r,b.current=f,w.current=u,x.current=l,E.current=n});const C=a.useCallback(O=>{var P;g.current&&o(O),(P=E.current)==null||P.call(E,O)},[]),k=a.useCallback((O,P)=>{if(!g.current||!b.current)return;const I=Nt[w.current+1];I!==void 0&&(s(T=>[...T,{periodStart:O,label:P}]),C(I))},[C]),N=a.useCallback(()=>{if(!g.current||x.current.length===0)return;const O=Nt[w.current-1];O!==void 0&&(s(P=>P.slice(0,-1)),C(O))},[C]),U=a.useCallback(()=>{g.current&&(s([]),C("year"))},[C]);return{zoomLevel:c,canZoomIn:f,canZoomOut:m,breadcrumbs:l,currentPeriod:v,isDrillDownEnabled:r,drillDown:k,drillUp:N,reset:U}}function vf({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=a.useState(e),o=t!==void 0,l=t!==void 0?t:r,s=a.useRef(l),d=a.useRef(o),c=a.useRef(n);a.useEffect(()=>{s.current=l,d.current=o,c.current=n});const u=a.useCallback(g=>{var b;d.current||i(g),(b=c.current)==null||b.call(c,g)},[]),f=a.useCallback(g=>{u(g)},[u]),m=a.useCallback(()=>{u(null)},[u]),v=a.useCallback(g=>{var b;d.current?(b=c.current)==null||b.call(c,s.current===g?null:g):i(w=>{var E;const x=w===g?null:g;return(E=c.current)==null||E.call(c,x),x})},[]);return{selectedEntryId:l,select:f,deselect:m,toggle:v}}const gf=["January","February","March","April","May","June","July","August","September","October","November","December"],Pr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cn(t){return new Date(t).getUTCFullYear()}function kr(t){return new Date(t).getUTCMonth()}function Ul(t){return new Date(t).getUTCDate()}function bf(t){return new Date(t).getUTCHours()}function yf(t){return String(t)}function xf(t,e){return`${gf[e]} ${t}`}function wf(t,e,n){return`${Pr[e]} ${n}`}function Ef(t,e,n,r){const i=r>=12?"pm":"am",o=r===0?12:r>12?r-12:r;return`${Pr[e]} ${n}, ${o}${i}`}function Cf(t){const e=new Date(t),n=Pr[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),o=e.getUTCHours(),l=e.getUTCMinutes(),s=o>=12?"pm":"am",d=o===0?12:o>12?o-12:o,c=l>0?`:${String(l).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${d}${c}${s}`}function Pf(t){return new Date(Date.UTC(t,0,1)).toISOString()}function kf(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function Nf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function Tf(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function un(t,e,n,r,i){const o=new Map,l=[];for(const s of t){const d=e(s),c=o.get(d);c?c.push(s):(o.set(d,[s]),l.push(d))}l.sort((s,d)=>i==="asc"?s.localeCompare(d):d.localeCompare(s));for(const[,s]of o)s.sort((d,c)=>{const u=d.date.localeCompare(c.date);return i==="asc"?u:-u});return l.map(s=>({label:n(s),periodStart:r(s),entries:o.get(s)??[]}))}function Mf(t){return String(cn(t.date))}function Df(t){const e=cn(t.date),n=kr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function _f(t){const e=cn(t.date),n=kr(t.date),r=Ul(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function If(t){const e=cn(t.date),n=kr(t.date),r=Ul(t.date),i=bf(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Wl(t){return{year:parseInt(t)}}function jl(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function Gl(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function ql(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const Kf={year:4,month:7,day:10};function Lf(t,e,n){if(e===null||n==="hour")return t;const r=Kf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(o=>o.periodStart.slice(0,r)===i)}function Sf(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return un(r,Mf,i=>{const{year:o}=Wl(i);return yf(o)},i=>{const{year:o}=Wl(i);return Pf(o)},n);case"month":return un(r,Df,i=>{const{year:o,month:l}=jl(i);return xf(o,l)},i=>{const{year:o,month:l}=jl(i);return kf(o,l)},n);case"day":return un(r,_f,i=>{const{year:o,month:l,day:s}=Gl(i);return wf(o,l,s)},i=>{const{year:o,month:l,day:s}=Gl(i);return Nf(o,l,s)},n);case"hour":return un(r,If,i=>{const{year:o,month:l,day:s,hour:d}=ql(i);return Ef(o,l,s,d)},i=>{const{year:o,month:l,day:s,hour:d}=ql(i);return Tf(o,l,s,d)},n)}}const $f=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:o,breadcrumbs:l=[],onBreadcrumbClick:s})=>{const d=l.length>0;return h.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[h.jsx(ln,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),d?h.jsx(Hl,{trail:[{label:"ALL",onClick:o},...l.slice(0,-1).map((c,u)=>({label:c.label,onClick:()=>s==null?void 0:s(u)}))],currentLabel:l[l.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):h.jsx(le,{className:"timeline-zoom-controls__level",onPress:o,"aria-label":`Current zoom: ${t}. Click to reset.`,children:h.jsx(st,{variant:"accent",size:"medium",children:t.toUpperCase()})}),h.jsx(ln,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},Nr=({children:t})=>h.jsxs("div",{className:"timeline-axis",children:[h.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),h.jsx("div",{className:"timeline-axis__content",children:t})]}),Yl=a.memo(({buckets:t,onBucketClick:e})=>h.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>h.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?h.jsxs(le,{className:"timeline-view__bucket-button",onPress:()=>e(n),children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:h.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Yl.displayName="YearView";const Tt=a.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:o})=>{const l=typeof t.content=="string",s=t.content!=null;return h.jsxs("div",{className:z("eidotter-timeline-card",e&&"eidotter-timeline-card--selected",n&&"eidotter-timeline-card--expanded"),children:[h.jsxs(le,{className:"eidotter-timeline-card__trigger",onPress:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[h.jsxs("div",{className:"eidotter-timeline-card__header",children:[t.type&&h.jsx("span",{className:"eidotter-timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&h.jsx("span",{className:"eidotter-timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),h.jsx("p",{className:"eidotter-timeline-card__title",children:t.title}),!n&&l&&(()=>{const d=String(t.content);return h.jsxs("p",{className:"eidotter-timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),o]}),s&&h.jsx("div",{className:"eidotter-timeline-card__body",children:h.jsx("div",{className:"eidotter-timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&h.jsx("div",{className:"eidotter-timeline-card__footer",children:i})]})});Tt.displayName="TimelineEntryCard";const Zl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>h.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),h.jsx("div",{className:"timeline-view__content",children:i.entries.map(o=>h.jsx(Tt,{entry:o,isSelected:e===o.id,isExpanded:e===o.id,onSelect:n},o.id))})]},i.periodStart))}));Zl.displayName="MonthView";const Xl={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Tr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:o=!1,disabled:l=!1,onClick:s,onClose:d,className:c,"aria-label":u,...f})=>{const m=!!s&&!l,{isClosing:v,triggerClose:g,handleAnimationEnd:b}=wr("tag-exit",d),w=C=>{l||((C.key==="Enter"||C.key===" ")&&s&&(C.preventDefault(),s(C)),(C.key==="Delete"||C.key==="Backspace")&&o&&d&&(C.preventDefault(),g()))},x=()=>{l||g()},E=r?{"--tag-color":"var("+r+")"}:void 0;return h.jsxs("span",{className:z("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Xl[n]||Xl.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",l&&"opacity-50 cursor-not-allowed",v&&"eidotter-tag--closing",m&&"cursor-pointer",c),style:E,onClick:m?C=>!l&&(s==null?void 0:s(C)):void 0,onKeyDown:w,onAnimationEnd:b,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":l||void 0,"data-variant":e,...m?{role:"button",tabIndex:0}:{},...f,children:[h.jsx("span",{className:"eidotter-tag__content",children:t}),o&&h.jsx(le,{className:"eidotter-tag__close","aria-label":"Remove "+(typeof t=="string"?t:"tag"),excludeFromTabOrder:!0,onPress:x,isDisabled:l,children:"[x]"})]})},Jl={tight:"gap-1",normal:"gap-2",loose:"gap-3"},Mr=({children:t,gap:e="normal",wrap:n=!0,className:r,"aria-label":i,...o})=>h.jsx("div",{className:z("flex",n?"flex-wrap":"flex-nowrap",Jl[e]||Jl.normal,r),role:"group","aria-label":i,...o,children:t}),Ql=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsx(Tt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?h.jsx(Mr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>h.jsx(Tr,{size:"small",variant:"outlined",children:o},o))}):void 0},i.id))})]},r.periodStart))}));Ql.displayName="DayView";const Rl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>h.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>h.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),h.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>h.jsxs(Tt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:h.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&h.jsx(Mr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>h.jsx(Tr,{size:"small",variant:"outlined",children:o},o))}),i.type&&h.jsx(st,{variant:"default",size:"small",children:i.type})]}),children:[h.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:Cf(i.date)}),h.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));Rl.displayName="HourView";const Ff=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return h.jsx(Yl,{buckets:e,onBucketClick:i});case"month":return h.jsx(Zl,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return h.jsx(Ql,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return h.jsx(Rl,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},Af=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s,sortOrder:d="desc",scrollToZoom:c=!0,keyboardShortcuts:u=!0,...f})=>{var _;const m=e==="static",v=a.useRef(null),g=a.useRef(null),[b,w]=a.useState(""),{zoomLevel:x,canZoomIn:E,canZoomOut:C,breadcrumbs:k,currentPeriod:N,isDrillDownEnabled:U,drillDown:O,drillUp:P,reset:I}=mf({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:T,toggle:L,deselect:q}=vf({selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s}),Z=a.useMemo(()=>Sf(t,x,d),[t,x,d]),M=k.length>0?["year","month","day","hour"][k.length-1]:null,B=a.useMemo(()=>N&&M?Lf(Z,N,M):Z,[Z,N,M]);a.useEffect(()=>{if(m||!c)return;const y=v.current;if(!y)return;let D=null;const $=A=>{!A.ctrlKey&&!A.metaKey||(A.preventDefault(),D===null&&(D=requestAnimationFrame(()=>{A.deltaY>0&&P(),D=null})))};return y.addEventListener("wheel",$,{passive:!1}),()=>{y.removeEventListener("wheel",$),D!==null&&cancelAnimationFrame(D)}},[m,c,U,E,P]),a.useEffect(()=>{if(m||!u)return;const y=D=>{var A;if(!((A=v.current)!=null&&A.contains(document.activeElement))&&document.activeElement!==v.current)return;const $=D.ctrlKey||D.metaKey;$&&D.key==="-"?(D.preventDefault(),P()):$&&D.key==="0"?(D.preventDefault(),I(),w("Showing all years")):D.key==="Escape"&&(D.preventDefault(),q())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[m,u,P,I,q]);const G=a.useCallback(y=>{E&&(O(y.periodStart,y.label),w(`Showing ${x==="year"?"months":x==="month"?"days":"hours"} in ${y.label}`))},[E,O,x]),X=a.useRef(k.length);a.useEffect(()=>{var y;if(k.length!==X.current){X.current=k.length;const D=(y=g.current)==null?void 0:y.querySelector('.eidotter-timeline-card__trigger, .timeline-view__bucket-button, .eidotter-timeline-node[role="button"]');D&&requestAnimationFrame(()=>D.focus())}},[k.length]);const ee=a.useMemo(()=>m?[...t].sort((y,D)=>{const $=y.date.localeCompare(D.date);return d==="desc"?-$:$}):t,[m,t,d]),re=a.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),p=y=>{try{return re.format(new Date(y))}catch{return y}};return h.jsxs("div",{ref:v,...f,className:z("font-dos text-cga-amber bg-dos-bg-primary p-4 min-h-[200px]","eidotter-timeline-container",m&&"eidotter-timeline-container--static",f.className),role:"region","aria-label":f["aria-label"]??"Timeline",tabIndex:m?void 0:0,children:[h.jsx("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:b}),!m&&h.jsx($f,{zoomLevel:x,canZoomIn:E,canZoomOut:C,onZoomIn:()=>{},onZoomOut:P,onReset:I,breadcrumbs:U?k:[],onBreadcrumbClick:y=>{const D=k.length-1-y;for(let $=0;$<D;$++)P()}}),h.jsx("div",{ref:g,children:t.length===0?h.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[h.jsx("p",{children:"C:\\TIMELINE> No entries found."}),h.jsx("p",{children:"_"})]}):m?h.jsx(Nr,{children:h.jsx("div",{className:"eidotter-timeline-container__static",role:"list","aria-label":"Timeline",children:ee.map(y=>h.jsxs("div",{className:"eidotter-timeline-container__static-entry",role:"listitem",children:[h.jsx("div",{className:"timeline-view__node",children:h.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:p(y.date),labelPosition:"right"})}),h.jsx(Tt,{entry:y,isSelected:!1,isExpanded:!0})]},y.id))})}):B.length===0&&N?h.jsx(Nr,{children:h.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[h.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((_=k[k.length-1])==null?void 0:_.label)??"this period","."]}),h.jsx("p",{children:"_"})]})}):h.jsx(Nr,{children:h.jsx(Ff,{zoomLevel:x,buckets:B,selectedEntryId:T,onEntrySelect:L,onBucketClick:G})})})]})},es=a.forwardRef(({isOpen:t,onOpenChange:e,onClose:n,title:r,children:i,footer:o,className:l},s)=>{const d=a.useRef(t),c=a.useRef(!1);a.useEffect(()=>{t!==d.current&&(d.current=t,c.current||(e==null||e(t),t||n==null||n()),c.current=!1)},[t,e,n]);const u=f=>{c.current=!0,e==null||e(f),f||n==null||n()};return h.jsx(mr,{isOpen:t,onOpenChange:u,isDismissable:!0,className:({isEntering:f,isExiting:m})=>z("eidotter-modal-overlay",f&&"eidotter-modal-overlay--entering",m&&"eidotter-modal-overlay--exiting"),children:h.jsx(nl,{className:({isEntering:f,isExiting:m})=>z("eidotter-modal",f&&"eidotter-modal--entering",m&&"eidotter-modal--exiting"),children:h.jsxs(tl,{ref:s,"aria-label":r,className:z("eidotter-modal__container outline-none",l),children:[h.jsxs("header",{className:"eidotter-modal__header",children:[h.jsx("h2",{className:"eidotter-modal__title",children:r}),h.jsx(le,{className:"eidotter-modal__close",onPress:()=>u(!1),"aria-label":"Close modal",children:h.jsx(pe,{name:"Close",size:"S"})})]}),h.jsx("div",{className:"eidotter-modal__body",children:i}),o&&h.jsx("footer",{className:"eidotter-modal__footer",children:o})]})})})});es.displayName="Modal";const Of="░▒▓█│┤┐└┴┬├─┼",zf=4;function Dr(t,e){const{speed:n=40,characters:r=Of,enabled:i=!0,delay:o=0}=e??{},[l,s]=a.useState(()=>{if(!i||xr())return t;let f="";for(let m=0;m<t.length;m++)t[m]===" "?f+=" ":f+=r[Math.floor(Math.random()*r.length)];return f}),[d,c]=a.useState(!1),u=a.useRef(0);return a.useEffect(()=>{if(!i||xr()){s(t),c(!1);return}let f=0,m=0,v=0,g=o;c(!0);const b=w=>{v||(v=w);const x=w-v;if(g>0){g-=x,v=w,u.current=requestAnimationFrame(b);return}if(x>=n){if(v=w,m++,m>=zf&&(f++,m=0),f>=t.length){s(t),c(!1);return}let E="";for(let C=0;C<t.length;C++)C<f?E+=t[C]:t[C]===" "?E+=" ":E+=r[Math.floor(Math.random()*r.length)];s(E)}u.current=requestAnimationFrame(b)};return u.current=requestAnimationFrame(b),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,o]),{text:l,isScrambling:d}}const ts={sm:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},md:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},lg:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"},small:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},medium:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},large:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"}},Vf={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Bf={up:"▲",down:"▼",neutral:"►"},Hf={up:"increasing",down:"decreasing",neutral:"unchanged"},ns=a.forwardRef(({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:o=!1,className:l,...s},d)=>{const{text:c}=Dr(String(e),{speed:30,enabled:o}),u=o?c:String(e),f=ts[i]||ts.md;return h.jsxs("div",{ref:d,className:z("flex flex-col font-dos","eidotter-stat",f.root,l),...s,children:[h.jsx("span",{className:z("text-cga-amber uppercase tracking-wider leading-tight",f.label),children:t}),h.jsx("span",{className:z("text-dos-text-accent font-bold leading-none tabular-nums",f.value),children:u}),n&&h.jsxs("span",{className:z("inline-flex items-center gap-1 leading-none",Vf[n],f.trend),"aria-label":`Trend: ${Hf[n]}${r?`, ${r}`:""}`,children:[h.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Bf[n]}),r&&h.jsx("span",{className:"tabular-nums",children:r})]})]})});ns.displayName="Stat";const rs={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Uf=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:o="All",size:l="md",onChange:s,className:d,...c})=>{const[u,f]=a.useState(n),m=a.useRef(null),v=e!==void 0,g=v?e:u,b=t.filter(P=>!P.disabled).map(P=>P.id),w=g.length===0,x=a.useCallback(P=>{v||f(P),s==null||s(P)},[v,s]),E=a.useCallback(P=>{if(r==="single"){const I=g.includes(P)?[]:[P];x(I)}else{const I=g.includes(P)?g.filter(T=>T!==P):[...g,P];x(I)}},[r,g,x]),C=a.useCallback(()=>{x([])},[x]),k=a.useCallback(()=>m.current?Array.from(m.current.querySelectorAll("button:not([disabled])")):[],[]),N=a.useCallback(P=>{const I=k(),T=I.indexOf(P.target);if(T===-1)return;let L=null;switch(P.key){case"ArrowLeft":case"ArrowUp":P.preventDefault(),L=T>0?T-1:I.length-1;break;case"ArrowRight":case"ArrowDown":P.preventDefault(),L=T<I.length-1?T+1:0;break;case"Home":P.preventDefault(),L=0;break;case"End":P.preventDefault(),L=I.length-1;break}L!==null&&I[L].focus()},[k]),O=i&&w?"__all__":g.length>0?g[0]:i?"__all__":b[0]||null;return h.jsxs("div",{ref:m,className:z("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",rs[l]||rs.md,d),role:"toolbar",onKeyDown:N,...c,children:[i&&h.jsx(le,{className:z("eidotter-filter-bar__item","eidotter-filter-bar__item--all",w&&"eidotter-filter-bar__item--active"),"aria-pressed":w,excludeFromTabOrder:O!=="__all__",onPress:C,children:h.jsx("span",{className:"eidotter-filter-bar__label",children:o})}),t.map(P=>{const I=g.includes(P.id),T=I&&P.color?{"--filter-bar-item-color":`var(${P.color})`}:void 0;return h.jsxs(le,{className:z("eidotter-filter-bar__item",I&&"eidotter-filter-bar__item--active",P.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":I,excludeFromTabOrder:O!==P.id,isDisabled:P.disabled,onPress:()=>E(P.id),style:T,children:[h.jsx("span",{className:"eidotter-filter-bar__label",children:P.label}),P.count!==void 0&&h.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${P.count} items`,children:P.count})]},P.id)})]})},_r=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Wf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:o=[],className:l,...s})=>{const[d,c]=a.useState(n),[u,f]=a.useState(new Set),m=a.useRef(n),v=a.useId(),g=a.useRef(null),b=r!==void 0,w=b?r:d;w&&(m.current=!0);const x=()=>{const C=!w;b||c(C),i==null||i(C)},E=C=>{var k;C.key==="Escape"&&w&&(C.stopPropagation(),x(),(k=g.current)==null||k.focus())};return h.jsxs("span",{className:z("eidotter-inline-expand",w&&"eidotter-inline-expand--expanded",l),onKeyDown:E,...s,children:[h.jsxs(le,{ref:g,className:"eidotter-inline-expand__trigger","aria-expanded":w,"aria-controls":v,onPress:x,children:[t,h.jsx("span",{className:"eidotter-inline-expand__indicator","aria-hidden":"true",children:w?"[-]":"[+]"})]}),h.jsxs("span",{id:v,className:"eidotter-inline-expand__content",role:"region",inert:!w,children:[h.jsx("span",{className:"eidotter-inline-expand__inner",children:e}),o.length>0&&h.jsx("span",{className:"eidotter-inline-expand__sources",role:"list",children:o.map(C=>h.jsx("span",{className:"eidotter-inline-expand__source-item",role:"listitem",children:h.jsxs("a",{href:_r(C.url)?C.url:void 0,className:"eidotter-inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${C.title} (opens external website)`,children:[m.current&&C.favicon&&_r(C.favicon)&&!u.has(C.url)?h.jsx("img",{className:"eidotter-inline-expand__source-favicon",src:C.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>f(k=>new Set(k).add(C.url))}):h.jsx("span",{className:"eidotter-inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),h.jsx("span",{className:"eidotter-inline-expand__source-title",children:C.title})]})},C.url))})]})]})},jf={horizontal:"h-px w-full",vertical:"w-px h-full"},Gf=({orientation:t="horizontal",className:e})=>h.jsx("div",{role:"separator","aria-orientation":t,className:z("shrink-0 bg-dos-border-default","eidotter-separator",jf[t],e)}),is=a.forwardRef(({children:t,speed:e,characters:n,delay:r,className:i,...o},l)=>{const{text:s,isScrambling:d}=Dr(t,{speed:e,characters:n,delay:r});return h.jsx("span",{ref:l,className:z("eidotter-text-scramble",d&&"eidotter-text-scramble--scrambling",i),...o,children:s})});is.displayName="TextScramble";const os={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},Ir=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const o=r||"a";return h.jsx("nav",{className:z("eidotter-nav eidotter-nav--desktop",os[n],i),"aria-label":"Main navigation",children:h.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(l=>h.jsx("li",{className:"eidotter-nav__desktop-item",children:h.jsx(o,{href:l.href,className:z("eidotter-nav__link",e===l.href&&"eidotter-nav__link--active"),children:l.label})},l.href))})})},Kr=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[o,l]=a.useState(!1),s=r||"a",d=a.useCallback(()=>l(u=>!u),[]),c=a.useCallback(()=>l(!1),[]);return a.useEffect(()=>{if(!o)return;const u=f=>{f.key==="Escape"&&c()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o,c]),h.jsxs("div",{className:z("eidotter-nav eidotter-nav--mobile",os[n],i),children:[h.jsx("button",{onClick:d,className:"eidotter-nav__menu-trigger","aria-label":o?"Close menu":"Open menu","aria-expanded":o,"aria-controls":"eidotter-mobile-nav-panel",children:"MENU"}),o&&h.jsx("div",{className:"eidotter-nav__overlay",onClick:c,"aria-hidden":"true"}),h.jsxs("nav",{id:"eidotter-mobile-nav-panel",className:z("eidotter-nav__panel",o&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[h.jsx("div",{className:"eidotter-nav__panel-header",children:h.jsx("button",{onClick:c,className:"eidotter-nav__close","aria-label":"Close menu",children:h.jsx(pe,{name:"Close",size:"S"})})}),h.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>h.jsx("li",{className:"eidotter-nav__item",children:h.jsx(s,{href:u.href,className:z("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:c,children:u.label})},u.href))})]})]})},qf=t=>h.jsxs(h.Fragment,{children:[h.jsx(Kr,{...t}),h.jsx(Ir,{...t})]}),Yf={user:"eidotter-chat-message--user",assistant:"eidotter-chat-message--assistant",system:"eidotter-chat-message--system"},ls=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:o,...l})=>{const s=t==="user"?r:t==="assistant"?i:"";return h.jsxs("div",{className:z("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",Yf[t],n&&"eidotter-chat-message--streaming",o),...l,children:[s&&h.jsx("span",{className:"shrink-0 select-none","aria-hidden":"true",children:s}),h.jsx("span",{className:"min-w-0",children:e}),n&&h.jsx("span",{className:"eidotter-chat-message__cursor","aria-hidden":"true",children:"█"})]})},ss=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i,...o})=>{const l=a.useRef(null);a.useEffect(()=>{var d,c;(c=(d=l.current)==null?void 0:d.scrollIntoView)==null||c.call(d,{behavior:"smooth"})},[t.length,e]);const s=z("flex-1 overflow-y-auto font-dos p-2 min-h-0","eidotter-chat-history",i);return t.length===0?h.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:h.jsx("div",{className:"flex items-center justify-center h-full min-h-16",children:h.jsx("span",{className:"text-dos-text-muted font-dos text-dos-text-md",children:"Awaiting input..."})})}):h.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:h.jsxs("div",{className:"flex flex-col",children:[t.map((d,c)=>{const u=e&&d.role==="assistant"&&c===t.length-1;return h.jsx(ls,{role:d.role,content:d.content,isStreaming:u,userPrefix:n,assistantPrefix:r},d.id)}),h.jsx("div",{ref:l})]})})},as=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i,...o})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useLayoutEffect(()=>{const f=d.current;f&&(f.style.height="auto",f.style.height=`${f.scrollHeight}px`)},[l]);const c=f=>{if(f.key==="Enter"&&!f.shiftKey&&!r){f.preventDefault();const m=l.trim();m&&(t(m),s(""))}},u=()=>{!r&&d.current&&d.current.focus()};return h.jsxs("div",{className:z("flex items-start font-dos text-dos-text-md p-2 cursor-text","text-cga-amber","eidotter-chat-input",r&&"eidotter-chat-input--disabled",i),onClick:u,...o,children:[h.jsx("span",{className:"text-cga-amber mr-2 mt-0.5 whitespace-nowrap select-none","aria-hidden":"true",children:e}),h.jsxs("div",{className:"flex items-start flex-1 min-w-0",children:[h.jsx("textarea",{ref:d,className:"eidotter-chat-input__textarea",value:l,onChange:f=>s(f.target.value),onKeyDown:c,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),h.jsx("span",{className:"eidotter-chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},Zf=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:o,placeholder:l,disabled:s=!1,className:d,...c})=>h.jsxs("div",{className:z("flex flex-col h-full min-h-0",d),...c,children:[h.jsx(ss,{className:"flex-1 min-h-0",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:o}),h.jsx(as,{className:"shrink-0",onSend:e,prompt:r,placeholder:l,disabled:s})]}),ds=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],Xf=({copyright:t,links:e,children:n,className:r,...i})=>{const o=e??ds;return h.jsxs("footer",{className:z("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[h.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&h.jsx("div",{className:"mb-3",children:n}),o.length>0&&h.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:o.map((l,s)=>h.jsxs(a.Fragment,{children:[s>0&&h.jsx("span",{className:"text-dos-text-muted select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),h.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:l.href,...l.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:l.label})]},l.href))}),t&&h.jsxs("p",{className:"text-dos-text-muted m-0",children:["© ",t]})]})},Jf={retro:"eidotter-header--retro",modern:"eidotter-header--modern"},cs=a.forwardRef(({brandName:t,brandHref:e="/",items:n,activeHref:r,variant:i="retro",sticky:o=!0,linkComponent:l,children:s,className:d,...c},u)=>{const f=l??"a";return h.jsxs("header",{ref:u,className:z("flex items-center justify-between px-4 py-3 font-dos","eidotter-header",Jf[i],o&&"sticky top-0 z-50",d),...c,children:[h.jsx(f,{href:e,className:z("no-underline text-base font-bold tracking-wide","eidotter-header__branding"),children:s||t}),h.jsx(Ir,{items:n,activeHref:r,variant:i,linkComponent:l}),h.jsx(Kr,{items:n,activeHref:r,variant:i,linkComponent:l})]})});cs.displayName="Header";const Qf={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},Rf=({type:t="primary",title:e,children:n,actions:r,onClose:i,avatar:o,image:l,progress:s,progressLabel:d,duration:c,showIcon:u=!0,className:f})=>{const{isClosing:m,triggerClose:v,handleAnimationEnd:g}=wr("notification-exit",i);a.useEffect(()=>{if(c==null||!i)return;const x=setTimeout(()=>v(),c);return()=>clearTimeout(x)},[c,i,v]);const b=u&&!o,w=s!=null;return h.jsxs("div",{className:z("w-full max-w-[400px]","font-dos text-dos-text-sm","border border-dos-border-default rounded-dos-base","eidotter-notification",`eidotter-notification--${t}`,m&&"eidotter-notification--closing",f),onAnimationEnd:g,role:t==="error"?"alert":"status","data-type":t,children:[l&&h.jsx("div",{className:"eidotter-notification__image",children:l}),h.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[o&&h.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:o}),b&&h.jsx("div",{className:"eidotter-notification__icon",children:h.jsx(pe,{name:Qf[t]||"Info",size:"S","aria-label":`${t} notification`})}),h.jsxs("div",{className:z("flex-1 flex flex-col gap-3 min-w-0",i&&!b&&!o&&"pr-8"),children:[(e||n)&&h.jsxs("div",{className:"flex flex-col gap-1",children:[e&&h.jsx("div",{className:"eidotter-notification__title font-dos leading-[140%]",children:e}),n&&h.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),w&&h.jsxs("div",{className:"flex flex-col gap-1",children:[h.jsx(Cr,{value:s,max:100,size:"sm",fullWidth:!0,showLabel:!1}),d&&h.jsx("div",{className:"eidotter-notification__text font-dos text-dos-text-xs",children:d})]}),r&&r.length>0&&h.jsx("div",{className:"flex flex-row gap-3",children:r.map((x,E)=>h.jsxs(le,{className:"eidotter-notification__action",onPress:x.onClick,children:[x.label,x.icon]},E))})]}),i&&h.jsx(le,{className:"eidotter-notification__close",onPress:v,"aria-label":"Close notification",children:h.jsx(pe,{name:"Close",size:"S"})})]})]})};function eh(t){const e=t.trim();if(e===""||/^[#?/]/.test(e))return e;const n=/^([a-z][a-z0-9+\-.]*):/i.exec(e);if(!n)return e;const r=n[1].toLowerCase();return["http","https","mailto","tel","ftp","sms"].includes(r)?e:"#"}function th(t,e){if(e.length===0)return t;const n=new Set((t??"").split(/\s+/).map(r=>r.trim().toLowerCase()).filter(Boolean));for(const r of e)n.add(r.toLowerCase());return Array.from(n).join(" ")}const us=a.forwardRef(({children:t,href:e,showGlyph:n=!0,external:r=!1,className:i,target:o,rel:l,...s},d)=>{const c=eh(e),u=o??(r?"_blank":void 0),f=u==="_blank",m=f?th(l,["noopener","noreferrer"]):l,v=r&&f?"↗":"▸";return h.jsxs("a",{ref:d,href:c,target:u,rel:m,className:z("eidotter-ilink",r&&"eidotter-ilink--external",i),...s,children:[h.jsx("span",{className:"eidotter-ilink__label",children:t}),n&&h.jsx("span",{className:"eidotter-ilink__glyph","aria-hidden":"true",children:v})]})});us.displayName="InlineLink";const fs=a.forwardRef(({title:t,resolution:e,subject:n,caption:r,pins:i=[],animated:o=!0,"aria-label":l,className:s},d)=>{const c=a.useId(),u=r?c:void 0;return h.jsxs("figure",{ref:d,className:z("eidotter-dos-figure",o&&"eidotter-dos-figure--animated",s),role:"img","aria-label":l,"aria-describedby":u,children:[t&&h.jsx("div",{className:"eidotter-dos-figure__title","aria-hidden":"true",children:h.jsx("span",{children:t})}),h.jsxs("div",{className:"eidotter-dos-figure__frame",children:[h.jsx("div",{className:"eidotter-dos-figure__subject",children:n}),i.length>0&&h.jsx("ul",{className:"eidotter-dos-figure__pins",role:"list",children:i.map((f,m)=>{const v=Number.isFinite(f.x)?Math.max(0,Math.min(100,f.x)):0,g=Number.isFinite(f.y)?Math.max(0,Math.min(100,f.y)):0;return h.jsxs("li",{className:"eidotter-dos-figure__pin",style:{left:`${v}%`,top:`${g}%`},children:[h.jsx("span",{className:"eidotter-dos-figure__pin-dot","aria-hidden":"true"}),h.jsx("span",{className:"eidotter-dos-figure__pin-label",children:f.label})]},`${v}-${g}-${m}`)})}),h.jsx("span",{className:"eidotter-dos-figure__scanline","aria-hidden":"true"}),e&&h.jsx("span",{className:"eidotter-dos-figure__resolution","aria-hidden":"true",children:e})]}),r&&h.jsx("figcaption",{id:c,className:"eidotter-dos-figure__caption",children:r})]})});fs.displayName="DosFigure";const nh=h.jsx(h.Fragment,{children:"↑/↓ NAVIGATE · ↵ OPEN · ESC CLOSE"});function rh(t){const e=t.toLowerCase().split("+").map(l=>l.trim()),n=e[e.length-1],r=e.includes("mod"),i=e.includes("shift"),o=e.includes("alt");return l=>{if(l.key.toLowerCase()!==n)return!1;const s=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);return!(!(r?s?l.metaKey:l.ctrlKey:!(l.metaKey||l.ctrlKey))||i!==l.shiftKey||o!==l.altKey)}}function ih(t,e){if(!e)return 0;const n=e.toLowerCase(),r=t.label.toLowerCase(),i=(t.keywords||[]).map(o=>o.toLowerCase());return r.startsWith(n)?100:i.some(o=>o.startsWith(n))?80:r.includes(n)?50:i.some(o=>o.includes(n))?30:(t.type||"").toLowerCase().includes(n)?10:-1}const hs=a.forwardRef(({open:t,onOpenChange:e,items:n,placeholder:r="SEARCH · TYPE · ▸",hotkey:i="mod+k",emptyMessage:o="NO MATCHES",footerHint:l=nh,renderItem:s,maxResults:d=20,className:c,"aria-label":u="Command palette"},f)=>{const m=a.useId(),v=`${m}-listbox`,[g,b]=a.useState(""),[w,x]=a.useState(0),E=a.useRef(null),C=a.useRef(null),k=a.useRef(!1),N=a.useMemo(()=>g.trim()?n.map(L=>({item:L,score:ih(L,g.trim())})).filter(L=>L.score>=0).sort((L,q)=>q.score-L.score).slice(0,d).map(L=>L.item):n.slice(0,d),[n,g,d]);a.useEffect(()=>{t&&(b(""),x(0))},[t]),a.useEffect(()=>{x(0)},[g]),a.useEffect(()=>{x(T=>Math.min(T,Math.max(0,N.length-1)))},[N.length]),a.useEffect(()=>{if(t){const T=window.setTimeout(()=>{var L;return(L=E.current)==null?void 0:L.focus()},10);return()=>window.clearTimeout(T)}},[t]);const U=a.useRef(t),O=a.useRef(e);a.useEffect(()=>{U.current=t},[t]),a.useEffect(()=>{O.current=e},[e]),a.useEffect(()=>{if(i===!1)return;const T=rh(i),L=q=>{T(q)&&(q.preventDefault(),O.current(!U.current))};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[i]),a.useEffect(()=>{var L;if(!t||N.length===0)return;const T=(L=C.current)==null?void 0:L.querySelector(`[data-index="${w}"]`);if(T&&typeof T.scrollIntoView=="function"){k.current=!0,T.scrollIntoView({block:"nearest"});const q=window.setTimeout(()=>{k.current=!1},0);return()=>window.clearTimeout(q)}},[w,N,t]);const P=a.useCallback(T=>{var L;(L=T.onSelect)==null||L.call(T,T),e(!1)},[e]),I=T=>{if(T.key==="ArrowDown")T.preventDefault(),x(L=>Math.min(L+1,Math.max(0,N.length-1)));else if(T.key==="ArrowUp")T.preventDefault(),x(L=>Math.max(0,L-1));else if(T.key==="Enter"){const L=N[w];L&&(T.preventDefault(),P(L))}};return h.jsx(mr,{isOpen:t,onOpenChange:e,isDismissable:!0,className:({isEntering:T,isExiting:L})=>z("eidotter-cmdpal-overlay",T&&"eidotter-cmdpal-overlay--entering",L&&"eidotter-cmdpal-overlay--exiting"),children:h.jsx(nl,{className:({isEntering:T,isExiting:L})=>z("eidotter-cmdpal",T&&"eidotter-cmdpal--entering",L&&"eidotter-cmdpal--exiting"),children:h.jsxs(tl,{"aria-label":u,className:z("eidotter-cmdpal__container outline-none",c),ref:f,children:[h.jsxs("div",{className:"eidotter-cmdpal__head","aria-hidden":"true",children:[h.jsx("span",{children:"▸ JUMP TO"}),h.jsx("span",{className:"eidotter-cmdpal__blink",children:"_"})]}),h.jsx("input",{ref:E,type:"text",role:"combobox","aria-controls":v,"aria-expanded":!0,"aria-autocomplete":"list","aria-activedescendant":N[w]?`${m}-item-${N[w].id}`:void 0,className:"eidotter-cmdpal__input",value:g,placeholder:r,onChange:T=>b(T.target.value),onKeyDown:I}),h.jsxs("ul",{ref:C,id:v,role:"listbox","aria-label":u,className:"eidotter-cmdpal__results",children:[N.length===0&&h.jsx("li",{className:"eidotter-cmdpal__empty",role:"presentation",children:o}),N.map((T,L)=>{const q=L===w;return h.jsx("li",{id:`${m}-item-${T.id}`,role:"option","aria-selected":q,"data-index":L,className:z("eidotter-cmdpal__item",q&&"eidotter-cmdpal__item--selected"),onMouseMove:()=>{k.current||x(L)},onClick:()=>P(T),children:s?s(T,q):h.jsxs(h.Fragment,{children:[h.jsxs("span",{className:"eidotter-cmdpal__item-label",children:[h.jsx("span",{className:"eidotter-cmdpal__item-caret","aria-hidden":"true",children:q?"▸":" "}),T.label]}),T.hint!==void 0&&h.jsx("span",{className:"eidotter-cmdpal__item-hint",children:T.hint})]})},T.id)})]}),l&&h.jsx("div",{className:"eidotter-cmdpal__footer","aria-hidden":"true",children:l})]})})})});hs.displayName="CmdPalette";const oh={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},at={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Header:{origin:"eidotter",consumers:[],originNote:"Sticky site header composing branding link + Nav — retro/modern variants"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"},InlineLink:{origin:"rizomorf",consumers:["rizomorf"],since:"0.20.0",originNote:"In-flow navigational anchor — dotted amber underline, phosphor-invert hover, trailing `▸` / `↗`. Distinct from InlineExpand (destination vs disclosure). Closes rizomorf parity gap #03.",platforms:{react:{path:"src/components/InlineLink",status:"canonical"}},changelog:[{version:"0.20.0",type:"added",description:'Initial InlineLink — internal + external variants, tabnabbing guard when consumer passes target="_blank"'}]},DosFigure:{origin:"eidotter",consumers:["rizomorf"],since:"0.20.0",originNote:"Demoscene-style painted-screen placeholder (Sierra / LucasArts title-card aesthetic). Amber chrome, 6s scanline sweep, optional annotation pins. Closes rizomorf parity gap #02.",platforms:{react:{path:"src/components/DosFigure",status:"canonical"}},changelog:[{version:"0.20.0",type:"added",description:"Initial DosFigure — scanline sweep, phosphor flicker, pin pulse; all animations compositor-only and reduced-motion safe"}]},CmdPalette:{origin:"eidotter",consumers:[],since:"0.20.0",originNote:"⌘K / Ctrl+K command palette overlay. Built on React Aria ModalOverlay/Modal/Dialog (same primitives as Modal). Generic items + scored search + keyboard navigation.",platforms:{react:{path:"src/components/CmdPalette",status:"canonical"}},changelog:[{version:"0.20.0",type:"added",description:"Initial CmdPalette — generic items with keywords, mod+k global hotkey, custom renderItem, useId() per-instance DOM ids, selected-clamp on items mutation"}]}};function lh(t){return at[t]}function sh(t){return Object.entries(at).filter(([,e])=>e.origin===t).map(([e])=>e)}function ah(t){return Object.entries(at).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function dh(t,e){const n=at[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function ch(t){const e=at[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const uh="0.20.0";V.AccordionFill=rf,V.Alert=Nl,V.Badge=st,V.Breadcrumb=Hl,V.Button=ln,V.Card=Il,V.ChatContainer=Zf,V.ChatHistory=ss,V.ChatInput=as,V.ChatMessage=ls,V.Checkbox=Kl,V.CmdPalette=hs,V.CommandPrompt=of,V.DesktopNav=Ir,V.DosFigure=fs,V.FilterBar=Uf,V.Footer=Xf,V.Header=cs,V.Icon=pe,V.InlineExpand=Wf,V.InlineLink=us,V.Input=Fl,V.MobileNav=Kr,V.Modal=es,V.Nav=qf,V.Notification=Rf,V.Progress=Cr,V.RetroEffects=cf,V.Section=Tl,V.Separator=Gf,V.Stat=ns,V.Switch=Bl,V.Tabs=Ol,V.Tag=Tr,V.TagGroup=Mr,V.Terminal=af,V.TextScramble=is,V.TimelineContainer=Af,V.TimelineNode=Ve,V.ZOOM_LEVELS=Nt,V.componentRegistry=at,V.defaultLegalLinks=ds,V.getComponentMeta=lh,V.getComponentsByConsumer=ah,V.getComponentsByOrigin=sh,V.getVariantConsumerMap=ch,V.getVariantsUsedBy=dh,V.isSafeUrl=_r,V.projects=oh,V.useTextScramble=Dr,V.version=uh,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})}));
|
|
17
|
+
*/var ki;function qa(){return ki||(ki=1,process.env.NODE_ENV!=="production"&&(function(){function t(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}function e(b,g){f||i.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!h){var v=g();s(y,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}v=o({inst:{value:y,getSnapshot:g}});var w=v[0].inst,C=v[1];return d(function(){w.value=y,w.getSnapshot=g,n(w)&&C({inst:w})},[b,y,g]),l(function(){return n(w)&&C({inst:w}),b(function(){n(w)&&C({inst:w})})},[b]),u(y),y}function n(b){var g=b.getSnapshot;b=b.value;try{var y=g();return!s(b,y)}catch{return!0}}function r(b,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=a,s=typeof Object.is=="function"?Object.is:t,o=i.useState,l=i.useEffect,d=i.useLayoutEffect,u=i.useDebugValue,f=!1,h=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;$n.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),$n}var Pi;function Ya(){return Pi||(Pi=1,process.env.NODE_ENV==="production"?Ut.exports=Ga():Ut.exports=qa()),Ut.exports}var Za=Ya();const Ti=a.createContext(!1),wt=a.createContext(null);function Xa(t){if(a.useContext(wt))return t.content;let{collection:n,document:r}=ed(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(ja,null,a.createElement(wt.Provider,{value:r},t.content)),a.createElement(Qa,{render:t.children,collection:n}))}function Qa({collection:t,render:e}){return e(t)}function Wa(t,e,n){let r=Re(),i=a.useRef(r);i.current=r;let s=a.useCallback(()=>i.current?n():e(),[e,n]);return Za.useSyncExternalStore(t,s)}const Ja=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Wa;function ed(t){let[e]=a.useState(()=>new Ha((t==null?void 0:t())||new Ba)),n=a.useCallback(o=>e.subscribe(o),[e]),r=a.useCallback(()=>{let o=e.getCollection();return e.isSSR&&e.resetAfterSSR(),o},[e]),i=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:Ja(n,r,i),document:e}}const An=a.createContext(null);function td(t){var n;return n=class extends yt{},n.type=t,n}function nd(t,e,n,r,i,s){typeof t=="string"&&(t=td(t));let o=a.useCallback(d=>{d==null||d.setProps(e,n,t,r,s)},[e,n,r,s,t]),l=a.useContext(An);if(l){let d=l.ownerDocument.nodesByProps.get(e);return d||(d=l.ownerDocument.createElement(t.type),d.setProps(e,n,t,r,s),l.appendChild(d),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(e,d)),i?a.createElement(An.Provider,{value:d},i):null}return a.createElement(t.type,{ref:o},i)}function rd(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=a.forwardRef((i,s)=>{let o=a.useContext(Ln);if(!a.useContext(Ti)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,s)}return nd(t,i,s,"children"in i?i.children:null,null,d=>a.createElement(Ln.Provider,{value:o},a.createElement(n,{node:d})))});return r.displayName=e.name,r}function id(t){return vi({...t,addIdAndValue:!0})}const _i=a.createContext(null);function sd(t){let e=a.useContext(_i),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),r=t.idScope??(e==null?void 0:e.idScope),i=id({...t,idScope:r,dependencies:n});return a.useContext(wt)&&(i=a.createElement(od,null,i)),e=a.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),a.createElement(_i.Provider,{value:e},i)}function od({children:t}){let e=a.useContext(wt),n=a.useMemo(()=>a.createElement(wt.Provider,{value:null},a.createElement(Ti.Provider,{value:!0},t)),[t]);return Re()?a.createElement(An.Provider,{value:e},n):Fe.createPortal(n,e)}const Ki={CollectionRoot({collection:t,renderDropIndicator:e}){return Ii(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Ii(t,e,n)}};function Ii(t,e,n){return vi({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return a.createElement(a.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:a.createElement(a.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,ld(t,r,n))}})}function ld(t,e,n){let r=e.key,i=t.getKeyAfter(r),s=i!=null?t.getItem(i):null;for(;s!=null&&s.type!=="item";)i=t.getKeyAfter(s.key),s=i!=null?t.getItem(i):null;let o=e.nextKey!=null?t.getItem(e.nextKey):null;for(;o!=null&&o.type!=="item";)o=o.nextKey!=null?t.getItem(o.nextKey):null;let l=[];if(o==null){let d=e;for(;(d==null?void 0:d.type)==="item"&&(!s||d.parentKey!==s.parentKey&&s.level<d.level);){let u=n({type:"item",key:d.key,dropPosition:"after"});a.isValidElement(u)&&l.push(a.cloneElement(u,{key:`${d.key}-after`})),d=d.parentKey!=null?t.getItem(d.parentKey):null}}return l}const Di=a.createContext(Ki);function ad(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}const dd=new Set(["id"]),cd=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ud=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fd=new Set(["dir","lang","hidden","inert","translate"]),Mi=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),hd=/^(data-.*)$/;function ae(t,e={}){let{labelable:n,isLink:r,global:i,events:s=i,propNames:o}=e,l={};for(const d in t)Object.prototype.hasOwnProperty.call(t,d)&&(dd.has(d)||n&&cd.has(d)||r&&ud.has(d)||i&&fd.has(d)||s&&(Mi.has(d)||d.endsWith("Capture")&&Mi.has(d.slice(0,-7)))||o!=null&&o.has(d)||hd.test(d))&&(l[d]=t[d]);return l}let ot="default",zn="",jt=new WeakMap;function Li(t){if(je()){if(ot==="default"){const e=X(t);zn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}ot="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";jt.set(t,t.style[e]),t.style[e]="none"}}function Vn(t){if(je()){if(ot!=="disabled")return;ot="restoring",setTimeout(()=>{xi(()=>{if(ot==="restoring"){const e=X(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=zn||""),zn="",ot="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&jt.has(t)){let e=jt.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),jt.delete(t)}}function Fi(t){let e=t==null?void 0:t.defaultView;return(e==null?void 0:e.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let Bn=new WeakMap;function Oi(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return Fi(e);if(Bn.has(e))return Bn.get(e);let n=e.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof ce(n).HTMLMetaElement&&(n.nonce||n.content)||Fi(e)||void 0;return r!==void 0&&Bn.set(e,r),r}const Hn=a.createContext({register:()=>{}});Hn.displayName="PressResponderContext";function Gt(){let t=a.useRef(new Map),e=a.useCallback((i,s,o,l)=>{let d=l!=null&&l.once?(...u)=>{t.current.delete(o),o(...u)}:o;t.current.set(o,{type:s,eventTarget:i,fn:d,options:l}),i.addEventListener(s,d,l)},[]),n=a.useCallback((i,s,o,l)=>{var u;let d=((u=t.current.get(o))==null?void 0:u.fn)||o;i.removeEventListener(s,d,l),t.current.delete(o)},[]),r=a.useCallback(()=>{t.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return a.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function pd(t){let e=a.useContext(Hn);if(e){let{register:n,ref:r,...i}=e;t=Y(i,t),n()}return Si(e,t.ref),t}class qt{constructor(e,n,r,i){Il(this,ut);Br(this,ut,!0);let s=(i==null?void 0:i.target)??r.currentTarget;const o=s==null?void 0:s.getBoundingClientRect();let l,d=0,u,f=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,f=r.clientY),o&&(u!=null&&f!=null?(l=u-o.left,d=f-o.top):(l=o.width/2,d=o.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d,this.key=r.key}continuePropagation(){Br(this,ut,!1)}get shouldStopPropagation(){return Kl(this,ut)}}ut=new WeakMap;const $i=Symbol("linkClicked"),Ai="react-aria-pressable-style",zi="data-react-aria-pressable";function lt(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:o,isDisabled:l,isPressed:d,preventFocusOnPress:u,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:h,ref:p,...b}=pd(t),[g,y]=a.useState(!1),v=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:w,removeAllGlobalListeners:C}=Gt(),S=a.useCallback((m,_)=>{let V=v.current;if(l||V.didFirePressStart)return!1;let T=!0;if(V.isTriggeringEvent=!0,r){let j=new qt("pressstart",_,m);r(j),T=j.shouldStopPropagation}return n&&n(!0),V.isTriggeringEvent=!1,V.didFirePressStart=!0,y(!0),T},[l,r,n]),P=a.useCallback((m,_,V=!0)=>{let T=v.current;if(!T.didFirePressStart)return!1;T.didFirePressStart=!1,T.isTriggeringEvent=!0;let j=!0;if(i){let E=new qt("pressend",_,m);i(E),j=E.shouldStopPropagation}if(n&&n(!1),y(!1),e&&V&&!l){let E=new qt("press",_,m);e(E),j&&(j=E.shouldStopPropagation)}return T.isTriggeringEvent=!1,j},[l,i,n,e]),D=Ee(P),N=a.useCallback((m,_)=>{let V=v.current;if(l)return!1;if(s){V.isTriggeringEvent=!0;let T=new qt("pressup",_,m);return s(T),V.isTriggeringEvent=!1,T.shouldStopPropagation}return!0},[l,s]),z=Ee(N),k=a.useCallback(m=>{let _=v.current;if(_.isPressed&&_.target){_.didFirePressStart&&_.pointerType!=null&&P(Ze(_.target,m),_.pointerType,!1),_.isPressed=!1,_.isOverTarget=!1,_.activePointerId=null,_.pointerType=null,C(),h||Vn(_.target);for(let V of _.disposables)V();_.disposables=[]}},[h,C,P]),L=Ee(k),K=a.useCallback(m=>{f&&k(m)},[f,k]),O=a.useCallback(m=>{l||o==null||o(m)},[l,o]),q=a.useCallback((m,_)=>{if(!l&&o){let V=new MouseEvent("click",m);Xr(V,_),o(wn(V))}},[l,o]),Z=a.useMemo(()=>{let m=v.current,_={onKeyDown(T){var j;if(Rn(T.nativeEvent,T.currentTarget)&&U(T.currentTarget,M(T))){Hi(M(T),T.key)&&T.preventDefault();let E=!0;!m.isPressed&&!T.repeat&&(m.target=T.currentTarget,m.isPressed=!0,m.pointerType="keyboard",E=S(T,"keyboard"));let x=T.currentTarget,B=R=>{Rn(R,x)&&!R.repeat&&U(x,M(R))&&m.target&&z(Ze(m.target,R),"keyboard")};w(X(T.currentTarget),"keyup",ft(B,V),!0),E&&T.stopPropagation(),T.metaKey&&Ue()&&((j=m.metaKeyEvents)==null||j.set(T.key,T.nativeEvent))}else T.key==="Meta"&&(m.metaKeyEvents=new Map)},onClick(T){if(!(T&&!U(T.currentTarget,M(T)))&&T&&T.button===0&&!m.isTriggeringEvent&&!Ie.isOpening){let j=!0;if(l&&T.preventDefault(),!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||Cn(T.nativeEvent))){let E=S(T,"virtual"),x=z(T,"virtual"),B=D(T,"virtual");O(T),j=E&&x&&B}else if(m.isPressed&&m.pointerType!=="keyboard"){let E=m.pointerType||T.nativeEvent.pointerType||"virtual",x=z(Ze(T.currentTarget,T),E),B=D(Ze(T.currentTarget,T),E,!0);j=x&&B,m.isOverTarget=!1,O(T),L(T)}m.ignoreEmulatedMouseEvents=!1,j&&T.stopPropagation()}}},V=T=>{var j,E,x;if(m.isPressed&&m.target&&Rn(T,m.target)){Hi(M(T),T.key)&&T.preventDefault();let B=M(T),R=U(m.target,B);D(Ze(m.target,T),"keyboard",R),R&&q(T,m.target),C(),T.key!=="Enter"&&Nn(m.target)&&U(m.target,B)&&!T[$i]&&(T[$i]=!0,Ie(m.target,T,!1)),m.isPressed=!1,(j=m.metaKeyEvents)==null||j.delete(T.key)}else if(T.key==="Meta"&&((E=m.metaKeyEvents)!=null&&E.size)){let B=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let R of B.values())(x=m.target)==null||x.dispatchEvent(new KeyboardEvent("keyup",R))}};if(typeof PointerEvent<"u"){_.onPointerDown=E=>{if(E.button!==0||!U(E.currentTarget,M(E)))return;if(ua(E.nativeEvent)){m.pointerType="virtual";return}m.pointerType=E.pointerType;let x=!0;if(!m.isPressed){m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=E.pointerId,m.target=E.currentTarget,h||Li(m.target),x=S(E,m.pointerType);let B=M(E);"releasePointerCapture"in B&&("hasPointerCapture"in B?B.hasPointerCapture(E.pointerId)&&B.releasePointerCapture(E.pointerId):B.releasePointerCapture(E.pointerId)),w(X(E.currentTarget),"pointerup",T,!1),w(X(E.currentTarget),"pointercancel",j,!1)}x&&E.stopPropagation()},_.onMouseDown=E=>{if(U(E.currentTarget,M(E))&&E.button===0){if(u){let x=Wr(E.target);x&&m.disposables.push(x)}E.stopPropagation()}},_.onPointerUp=E=>{!U(E.currentTarget,M(E))||m.pointerType==="virtual"||E.button===0&&!m.isPressed&&z(E,m.pointerType||E.pointerType)},_.onPointerEnter=E=>{E.pointerId===m.activePointerId&&m.target&&!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,S(Ze(m.target,E),m.pointerType))},_.onPointerLeave=E=>{E.pointerId===m.activePointerId&&m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,D(Ze(m.target,E),m.pointerType,!1),K(E))};let T=E=>{if(E.pointerId===m.activePointerId&&m.isPressed&&E.button===0&&m.target){if(U(m.target,M(E))&&m.pointerType!=null){let x=!1,B=setTimeout(()=>{m.isPressed&&m.target instanceof HTMLElement&&(x?L(E):(_e(m.target),m.target.click()))},80);w(E.currentTarget,"click",()=>x=!0,!0),m.disposables.push(()=>clearTimeout(B))}else L(E);m.isOverTarget=!1}},j=E=>{L(E)};_.onDragStart=E=>{U(E.currentTarget,M(E))&&L(E)}}else if(process.env.NODE_ENV==="test"){_.onMouseDown=E=>{if(E.button!==0||!U(E.currentTarget,M(E)))return;if(m.ignoreEmulatedMouseEvents){E.stopPropagation();return}if(m.isPressed=!0,m.isOverTarget=!0,m.target=E.currentTarget,m.pointerType=Cn(E.nativeEvent)?"virtual":"mouse",Fe.flushSync(()=>S(E,m.pointerType))&&E.stopPropagation(),u){let B=Wr(E.target);B&&m.disposables.push(B)}w(X(E.currentTarget),"mouseup",T,!1)},_.onMouseEnter=E=>{if(!U(E.currentTarget,M(E)))return;let x=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,x=S(E,m.pointerType)),x&&E.stopPropagation()},_.onMouseLeave=E=>{if(!U(E.currentTarget,M(E)))return;let x=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,x=D(E,m.pointerType,!1),K(E)),x&&E.stopPropagation()},_.onMouseUp=E=>{U(E.currentTarget,M(E))&&!m.ignoreEmulatedMouseEvents&&E.button===0&&!m.isPressed&&z(E,m.pointerType||"mouse")};let T=E=>{if(E.button===0){if(m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&U(m.target,M(E))&&m.pointerType!=null||L(E),m.isOverTarget=!1}};_.onTouchStart=E=>{if(!U(E.currentTarget,M(E)))return;let x=md(E.nativeEvent);if(!x)return;m.activePointerId=x.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=E.currentTarget,m.pointerType="touch",h||Li(m.target),S(Ae(m.target,E),m.pointerType)&&E.stopPropagation(),w(ce(E.currentTarget),"scroll",j,!0)},_.onTouchMove=E=>{if(!U(E.currentTarget,M(E)))return;if(!m.isPressed){E.stopPropagation();return}let x=Vi(E.nativeEvent,m.activePointerId),B=!0;x&&Bi(x,E.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,B=S(Ae(m.target,E),m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,B=D(Ae(m.target,E),m.pointerType,!1),K(Ae(m.target,E))),B&&E.stopPropagation()},_.onTouchEnd=E=>{if(!U(E.currentTarget,M(E)))return;if(!m.isPressed){E.stopPropagation();return}let x=Vi(E.nativeEvent,m.activePointerId),B=!0;x&&Bi(x,E.currentTarget)&&m.pointerType!=null?(z(Ae(m.target,E),m.pointerType),B=D(Ae(m.target,E),m.pointerType),q(E.nativeEvent,m.target)):m.isOverTarget&&m.pointerType!=null&&(B=D(Ae(m.target,E),m.pointerType,!1)),B&&E.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!h&&Vn(m.target),C()},_.onTouchCancel=E=>{U(E.currentTarget,M(E))&&(E.stopPropagation(),m.isPressed&&L(Ae(m.target,E)))};let j=E=>{m.isPressed&&U(M(E),m.target)&&L({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};_.onDragStart=E=>{U(E.currentTarget,M(E))&&L(E)}}return _},[w,l,u,C,h,K,S,O,q]);return a.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const m=X(p.current);if(!m||!m.head||m.getElementById(Ai))return;const _=m.createElement("style");_.id=Ai;let V=Oi(m);V&&(_.nonce=V),_.textContent=`
|
|
18
|
+
@layer {
|
|
19
|
+
[${zi}] {
|
|
20
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`.trim(),m.head.prepend(_)},[p]),a.useEffect(()=>{let m=v.current;return()=>{h||Vn(m.target??void 0);for(let _ of m.disposables)_();m.disposables=[]}},[h]),{isPressed:d||g,pressProps:Y(b,Z,{[zi]:!0})}}function Nn(t){return t.tagName==="A"&&t.hasAttribute("href")}function Rn(t,e){const{key:n,code:r}=t,i=e,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ce(i).HTMLInputElement&&!Ni(i,n)||i instanceof ce(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&Nn(i))&&n!=="Enter")}function md(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function Vi(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function Ae(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function Ze(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function bd(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function gd(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function Bi(t,e){let n=e.getBoundingClientRect(),r=bd(t);return gd(n,r)}function vd(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Nn(t)}function Hi(t,e){return t instanceof HTMLInputElement?!Ni(t,e):vd(t)}const yd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ni(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":yd.has(t.type)}function Un(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,s=a.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:l}=Gt(),d=a.useCallback(h=>{U(h.currentTarget,M(h))&&s.current.isFocusWithin&&!U(h.currentTarget,h.relatedTarget)&&(s.current.isFocusWithin=!1,l(),n&&n(h),i&&i(!1))},[n,i,s,l]),u=Qr(d),f=a.useCallback(h=>{if(!U(h.currentTarget,M(h)))return;let p=M(h);const b=X(p),g=te(b);if(!s.current.isFocusWithin&&g===p){r&&r(h),i&&i(!0),s.current.isFocusWithin=!0,u(h);let y=h.currentTarget;o(b,"focus",v=>{let w=M(v);if(s.current.isFocusWithin&&!U(y,w)){let C=new b.defaultView.FocusEvent("blur",{relatedTarget:w});Xr(C,y);let S=wn(C);d(S)}},{capture:!0})}},[r,i,u,o,d]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:d}}}function Xe(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=a.useRef({isFocused:!1,isFocusVisible:e||Kn()}),[s,o]=a.useState(!1),[l,d]=a.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=a.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),f=a.useCallback(b=>{i.current.isFocused=b,i.current.isFocusVisible=Kn(),o(b),u()},[u]);Ea(b=>{i.current.isFocusVisible=b,u()},[n,s],{enabled:s,isTextInput:n});let{focusProps:h}=wi({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=Un({isDisabled:!r,onFocusWithinChange:f});return{isFocused:s,isFocusVisible:l,focusProps:r?p:h}}let Yt=!1,Zt=0;function jn(){Yt=!0,setTimeout(()=>{Yt=!1},500)}function Ri(t){t.pointerType==="touch"&&jn()}function xd(){let t=X(null);if(!(typeof t>"u"))return Zt===0&&(typeof PointerEvent<"u"?t.addEventListener("pointerup",Ri):process.env.NODE_ENV==="test"&&t.addEventListener("touchend",jn)),Zt++,()=>{Zt--,!(Zt>0)&&(typeof PointerEvent<"u"?t.removeEventListener("pointerup",Ri):process.env.NODE_ENV==="test"&&t.removeEventListener("touchend",jn))}}function Et(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[s,o]=a.useState(!1),l=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(xd,[]);let{addGlobalListener:d,removeAllGlobalListeners:u}=Gt(),{hoverProps:f,triggerHoverEnd:h}=a.useMemo(()=>{let p=(y,v)=>{if(l.pointerType=v,i||v==="touch"||l.isHovered||!U(y.currentTarget,M(y)))return;l.isHovered=!0;let w=y.currentTarget;l.target=w,d(X(M(y)),"pointerover",C=>{l.isHovered&&l.target&&!U(l.target,M(C))&&b(C,C.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:w,pointerType:v}),n&&n(!0),o(!0)},b=(y,v)=>{let w=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!w)&&(l.isHovered=!1,u(),r&&r({type:"hoverend",target:w,pointerType:v}),n&&n(!1),o(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=y=>{Yt&&y.pointerType==="mouse"||p(y,y.pointerType)},g.onPointerLeave=y=>{!i&&U(y.currentTarget,M(y))&&b(y,y.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=y=>{!l.ignoreEmulatedMouseEvents&&!Yt&&p(y,"mouse"),l.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=y=>{!i&&U(y.currentTarget,M(y))&&b(y,"mouse")}),{hoverProps:g,triggerHoverEnd:b}},[e,n,r,i,l,d,u]);return a.useEffect(()=>{i&&h({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:f,isHovered:s}}const Ui=a.createContext({}),wd=xt(function(e,n){[e,n]=xe(e,n,Ui);let{elementType:r="label",...i}=e,s=de[r];return a.createElement(s,{className:"react-aria-Label",...i,ref:n})});function Ed(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=t;e=Pe(e);let o=Pe(),l={};n?(r=r?`${o} ${r}`:o,l={id:o,htmlFor:s==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=Ht({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:l,fieldProps:d}}const Sd=a.createContext(null),ji=7e3;let Se=null;function Gi(t,e="assertive",n=ji){Se?Se.announce(t,e,n):(Se=new Cd,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Se.announce(t,e,n):setTimeout(()=>{Se!=null&&Se.isAttached()&&(Se==null||Se.announce(t,e,n))},100))}class Cd{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){var e;return(e=this.node)==null?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=ji){var s,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,n==="assertive"?(s=this.assertiveLog)==null||s.appendChild(i):(o=this.politeLog)==null||o.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function kd(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:o,onPressUp:l,onPressChange:d,preventFocusOnPress:u,allowFocusWhenDisabled:f,onClick:h,href:p,target:b,rel:g,type:y="button"}=t,v;n==="button"?v={type:y,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?b:void 0,type:n==="input"?y:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:w,isPressed:C}=lt({onPressStart:s,onPressEnd:o,onPressChange:d,onPress:i,onPressUp:l,onClick:h,isDisabled:r,preventFocusOnPress:u,ref:e}),{focusableProps:S}=Rt(t,e);f&&(S.tabIndex=r?-1:S.tabIndex);let P=Y(S,w,ae(t,{labelable:!0}));return{isPressed:C,buttonProps:Y(v,P,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}const qi=a.createContext({}),oe=xt(function(e,n){[e,n]=xe(e,n,qi);let r=e,{isPending:i}=r,{buttonProps:s,isPressed:o}=kd(e,n);s=Td(s,i);let{focusProps:l,isFocused:d,isFocusVisible:u}=Xe(e),{hoverProps:f,isHovered:h}=Et({...e,isDisabled:e.isDisabled||i}),p={isHovered:h,isPressed:(r.isPressed||o)&&!i,isFocused:d,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:i??!1},b=pe({...e,values:p,defaultClassName:"react-aria-Button"}),g=Pe(s.id),y=Pe(),v=s["aria-labelledby"];i&&(v?v=`${v} ${y}`:s["aria-label"]&&(v=`${g} ${y}`));let w=a.useRef(i);a.useEffect(()=>{let S={"aria-labelledby":v||g};(!w.current&&d&&i||w.current&&d&&!i)&&Gi(S,"assertive"),w.current=i},[i,d,v,g]);let C=ae(e,{global:!0});return delete C.onClick,a.createElement(de.button,{...Y(C,b,s,l,f),type:s.type==="submit"&&i?"button":s.type,id:g,ref:n,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":s["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":h||void 0,"data-focused":d||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},a.createElement(Sd.Provider,{value:{id:y}},b.children))}),Pd=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Td(t,e){if(e){for(const n in t)n.startsWith("on")&&!Pd.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const _d=a.createContext({}),Yi=a.createContext({}),Zi=a.forwardRef(function(e,n){[e,n]=xe(e,n,Yi);let{elementType:r="span",...i}=e,s=de[r];return a.createElement(s,{className:"react-aria-Text",...i,ref:n})});function St(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function Xi(t,e){let n=t;for(St(n,e)&&(n=n.parentElement);n&&!St(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Qi(t,e){let n=[],r=document.scrollingElement||document.documentElement;do St(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function Gn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let s=t.scrollTop,o=t.scrollLeft,l=e.getBoundingClientRect(),d=t.getBoundingClientRect(),u=window.getComputedStyle(e),f=window.getComputedStyle(t),h=document.scrollingElement||document.documentElement,p=t===h?0:d.top,b=t===h?t.clientHeight:d.bottom,g=t===h?0:d.left,y=t===h?t.clientWidth:d.right,v=parseInt(u.scrollMarginTop,10)||0,w=parseInt(u.scrollMarginBottom,10)||0,C=parseInt(u.scrollMarginLeft,10)||0,S=parseInt(u.scrollMarginRight,10)||0,P=parseInt(f.scrollPaddingTop,10)||0,D=parseInt(f.scrollPaddingBottom,10)||0,N=parseInt(f.scrollPaddingLeft,10)||0,z=parseInt(f.scrollPaddingRight,10)||0,k=parseInt(f.borderTopWidth,10)||0,L=parseInt(f.borderBottomWidth,10)||0,K=parseInt(f.borderLeftWidth,10)||0,O=parseInt(f.borderRightWidth,10)||0,q=l.top-v,Z=l.bottom+w,m=l.left-C,_=l.right+S,V=t===h?0:K+O,T=t===h?0:k+L,j=t.offsetWidth-t.clientWidth-V,E=t.offsetHeight-t.clientHeight-T,x=p+k+P,B=b-L-D-E,R=g+K+N,Q=y-O-z;f.direction==="rtl"&&!je()?R+=j:Q-=j;let re=q<x||Z>B,W=m<R||_>Q;if(re&&r==="start")s+=q-x;else if(re&&r==="center")s+=(q+Z)/2-(x+B)/2;else if(re&&r==="end")s+=Z-B;else if(re&&r==="nearest"){let ne=q-x,he=Z-B;s+=Math.abs(ne)<=Math.abs(he)?ne:he}if(W&&i==="start")o+=m-R;else if(W&&i==="center")o+=(m+_)/2-(R+Q)/2;else if(W&&i==="end")o+=_-Q;else if(W&&i==="nearest"){let ne=m-R,he=_-Q;o+=Math.abs(ne)<=Math.abs(he)?ne:he}if(process.env.NODE_ENV==="test"){t.scrollLeft=o,t.scrollTop=s;return}t.scrollTo({left:o,top:s})}function Wi(t,e={}){var r,i,s;let{containingElement:n}=e;if(t&&t.isConnected){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let{left:d,top:u}=t.getBoundingClientRect(),f=Qi(t,!0);for(let b of f)Gn(b,t);let{left:h,top:p}=t.getBoundingClientRect();if(Math.abs(d-h)>1||Math.abs(u-p)>1){f=n?Qi(n,!0):[];for(let b of f)Gn(b,n,{block:"center",inline:"center"})}}else{let{left:d,top:u}=t.getBoundingClientRect();(r=t==null?void 0:t.scrollIntoView)==null||r.call(t,{block:"nearest"});let{left:f,top:h}=t.getBoundingClientRect();(Math.abs(d-f)>1||Math.abs(u-h)>1)&&((i=n==null?void 0:n.scrollIntoView)==null||i.call(n,{block:"center",inline:"center"}),(s=t.scrollIntoView)==null||s.call(t,{block:"nearest"}))}}}let Kd=0;const qn=new Map;function Id(t){let[e,n]=a.useState();return J(()=>{if(!t)return;let r=qn.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Kd++}`;n(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=t,document.body.appendChild(s),r={refCount:0,element:s},qn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),qn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}const Ji={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Dd(t={}){let{style:e,isFocusable:n}=t,[r,i]=a.useState(!1),{focusWithinProps:s}=Un({isDisabled:!n,onFocusWithinChange:l=>i(l)}),o=a.useMemo(()=>r?e:e?{...Ji,...e}:Ji,[r]);return{visuallyHiddenProps:{...s,style:o}}}function Yn(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...s}=t,{visuallyHiddenProps:o}=Dd(t);return a.createElement(n,Y(s,o),e)}const Md=a.createContext(null),es={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ts={...es,customError:!0,valid:!1},at={isInvalid:!1,validationDetails:es,validationErrors:[]},Ld=a.createContext({}),Xt="__reactAriaFormValidationState";function Zn(t){if(t[Xt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=t[Xt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return Fd(t)}function Fd(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:s,validate:o,validationBehavior:l="aria"}=t;n&&(e||(e=n==="invalid"));let d=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:ts}:null,u=a.useMemo(()=>{if(!o||i==null)return null;let K=Od(o,i);return ns(K)},[o,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let f=a.useContext(Ld),h=a.useMemo(()=>r?Array.isArray(r)?r.flatMap(K=>Xn(f[K])):Xn(f[r]):[],[f,r]),[p,b]=a.useState(f),[g,y]=a.useState(!1);f!==p&&(b(f),y(!1));let v=a.useMemo(()=>ns(g?[]:h),[g,h]),w=a.useRef(at),[C,S]=a.useState(at),P=a.useRef(at),D=()=>{if(!N)return;z(!1);let K=u||s||w.current;Qn(K,P.current)||(P.current=K,S(K))},[N,z]=a.useState(!1);return a.useEffect(D),{realtimeValidation:d||v||u||s||at,displayValidation:l==="native"?d||v||C:d||v||u||s||C,updateValidation(K){l==="aria"&&!Qn(C,K)?S(K):w.current=K},resetValidation(){let K=at;Qn(K,P.current)||(P.current=K,S(K)),l==="native"&&z(!1),y(!0)},commitValidation(){l==="native"&&z(!0),y(!0)}}}function Xn(t){return t?Array.isArray(t)?t:[t]:[]}function Od(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Xn(n)}return[]}function ns(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:ts}:null}function Qn(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}const rs=a.createContext(null),$d=new WeakMap;function Ad(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:s,fieldProps:o}=Ed(t),l=bn([!!e,!!n,r,i]),d=bn([!!e,!!n,r,i]);return o=Y(o,{"aria-describedby":[l,d,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:o,descriptionProps:{id:l},errorMessageProps:{id:d}}}function is(t,e,n){let r=Ee(i=>{n&&!i.defaultPrevented&&n(e)});a.useEffect(()=>{var s;let i=(s=t==null?void 0:t.current)==null?void 0:s.form;return i==null||i.addEventListener("reset",r),()=>{i==null||i.removeEventListener("reset",r)}},[t])}function ss(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:s,name:o,form:l,children:d,"aria-label":u,"aria-labelledby":f,validationState:h="valid",isInvalid:p,onPressStart:b,onPressEnd:g,onPressChange:y,onPress:v,onPressUp:w,onClick:C}=t,S=Z=>{Z.stopPropagation(),e.setSelected(M(Z).checked)},P=d!=null,D=u!=null||f!=null;!P&&!D&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:N,isPressed:z}=lt({onPressStart:b,onPressEnd:g,onPressChange:y,onPress:v,onPressUp:w,onClick:C,isDisabled:r}),{pressProps:k,isPressed:L}=lt({onPressStart:b,onPressEnd:g,onPressChange:y,onPressUp:w,onClick:C,onPress(Z){var m;v==null||v(Z),e.toggle(),(m=n.current)==null||m.focus()},isDisabled:r||i}),{focusableProps:K}=Rt(t,n),O=Y(N,K),q=ae(t,{labelable:!0});return is(n,e.defaultSelected,e.setSelected),{labelProps:Y(k,{onClick:Z=>Z.preventDefault()}),inputProps:Y(q,{"aria-invalid":p||h==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:S,disabled:r,...s==null?{}:{value:s},name:o,form:l,type:"checkbox",...O}),isSelected:e.isSelected,isPressed:z||L,isDisabled:r,isReadOnly:i,isInvalid:p||h==="invalid"}}function os(t,e,n){let{validationBehavior:r,focus:i}=t;J(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let u=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(u),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Vd(n.current))}});let s=a.useRef(!1),o=Ee(()=>{s.current||e.resetValidation()}),l=Ee(u=>{var h,p;e.displayValidation.isInvalid||e.commitValidation();let f=(h=n==null?void 0:n.current)==null?void 0:h.form;!u.defaultPrevented&&n&&f&&Bd(f)===n.current&&(i?i():(p=n.current)==null||p.focus(),ya("keyboard")),u.preventDefault()}),d=Ee(()=>{e.commitValidation()});a.useEffect(()=>{let u=n==null?void 0:n.current;if(!u)return;let f=u.form,h=f==null?void 0:f.reset;return f&&(f.reset=()=>{s.current=!window.event||window.event.type==="message"&&M(window.event)instanceof MessagePort,h==null||h.call(f),s.current=!1}),u.addEventListener("invalid",l),u.addEventListener("change",d),f==null||f.addEventListener("reset",o),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",d),f==null||f.removeEventListener("reset",o),f&&(f.reset=h)}},[n,r])}function zd(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Vd(t){return{isInvalid:!t.validity.valid,validationDetails:zd(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Bd(t){var e;for(let n=0;n<t.elements.length;n++){let r=t.elements[n];if(((e=r.validity)==null?void 0:e.valid)===!1)return r}return null}function ls(t,e,n){let r=Zn({...t,value:e.isSelected}),{isInvalid:i,validationErrors:s,validationDetails:o}=r.displayValidation,{labelProps:l,inputProps:d,isSelected:u,isPressed:f,isDisabled:h,isReadOnly:p}=ss({...t,isInvalid:i},e,n);os(t,r,n);let{isIndeterminate:b,isRequired:g,validationBehavior:y="aria"}=t;a.useEffect(()=>{n.current&&(n.current.indeterminate=!!b)});let{pressProps:v}=lt({isDisabled:h||p,onPress(){let{[Xt]:w}=t,{commitValidation:C}=w||r;C()}});return{labelProps:Y(l,v,a.useMemo(()=>({onMouseDown:w=>w.preventDefault()}),[])),inputProps:{...d,checked:u,"aria-required":g&&y==="aria"||void 0,required:g&&y==="native"},isSelected:u,isPressed:f,isDisabled:h,isReadOnly:p,isInvalid:i,validationErrors:s,validationDetails:o}}function Wn(t={}){let{isReadOnly:e}=t,[n,r]=vt(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=a.useState(n);function s(l){e||r(l)}function o(){e||r(!n)}return{isSelected:n,defaultSelected:t.defaultSelected??i,setSelected:s,toggle:o}}function Hd(t,e,n){const r=Wn({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(y){y?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(y)}});let{name:i,form:s,descriptionId:o,errorMessageId:l,validationBehavior:d}=$d.get(e);d=t.validationBehavior??d;let{realtimeValidation:u}=Zn({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),f=a.useRef(at),h=()=>{e.setInvalid(t.value,u.isInvalid?u:f.current)};a.useEffect(h);let p=e.realtimeValidation.isInvalid?e.realtimeValidation:u,b=d==="native"?e.displayValidation:p,g=ls({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||s,isRequired:t.isRequired??e.isRequired,validationBehavior:d,[Xt]:{realtimeValidation:p,displayValidation:b,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(y){f.current=y,h()}}},r,n);return{...g,inputProps:{...g.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?l:null,o].filter(Boolean).join(" ")||void 0}}}const Nd=a.createContext(null),Rd=a.createContext(null),Ud=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,Nd);let{validationBehavior:s}=Mt(rs)||{},o=e.validationBehavior??s??"native",l=a.useContext(Rd),d=Oe(a.useMemo(()=>nt(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:u,inputProps:f,isSelected:h,isDisabled:p,isReadOnly:b,isPressed:g,isInvalid:y}=l?Hd({...Lt(e),value:e.value,children:typeof e.children=="function"?!0:e.children},l,d):ls({...Lt(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:o},Wn(e),d),{isFocused:v,isFocusVisible:w,focusProps:C}=Xe(),S=p||b,{hoverProps:P,isHovered:D}=Et({...e,isDisabled:S}),N=pe({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:h,isIndeterminate:e.isIndeterminate||!1,isPressed:g,isHovered:D,isFocused:v,isFocusVisible:w,isDisabled:p,isReadOnly:b,isInvalid:y,isRequired:e.isRequired||!1}}),z=ae(e,{global:!0});return delete z.id,delete z.onClick,a.createElement(de.label,{...Y(z,u,P,N),ref:n,slot:e.slot||void 0,"data-selected":h||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":g||void 0,"data-hovered":D||void 0,"data-focused":v||void 0,"data-focus-visible":w||void 0,"data-disabled":p||void 0,"data-readonly":b||void 0,"data-invalid":y||void 0,"data-required":e.isRequired||void 0},a.createElement(Yn,{elementType:"span"},a.createElement("input",{...Y(f,C),ref:d})),N.children)}),jd=a.createContext({}),as=a.createContext({});let Gd=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const qd=xt(function(e,n){[e,n]=xe(e,n,as);let{hoverProps:r,isHovered:i}=Et({...e,isDisabled:e.disabled}),{isFocused:s,isFocusVisible:o,focusProps:l}=Xe({isTextInput:!0,autoFocus:e.autoFocus}),d=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",u=pe({...e,values:{isHovered:i,isFocused:s,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:d},defaultClassName:"react-aria-Input"});return a.createElement(de.input,{...Y(Gd(e),l,r),...u,ref:n,"data-focused":s||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":o||void 0,"data-invalid":d||void 0})});function Yd(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:o="text",validationBehavior:l="aria"}=t,[d,u]=vt(t.value,t.defaultValue||"",t.onChange),{focusableProps:f}=Rt(t,e),h=Zn({...t,value:d}),{isInvalid:p,validationErrors:b,validationDetails:g}=h.displayValidation,{labelProps:y,fieldProps:v,descriptionProps:w,errorMessageProps:C}=Ad({...t,isInvalid:p,errorMessage:t.errorMessage||b}),S=ae(t,{labelable:!0});const P={type:o,pattern:t.pattern};let[D]=a.useState(d);return is(e,t.defaultValue??D,u),os(t,h,e),{labelProps:y,inputProps:Y(S,n==="input"?P:void 0,{disabled:r,readOnly:s,required:i&&l==="native","aria-required":i&&l==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:d,onChange:N=>u(M(N).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(a.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...f,...v}),descriptionProps:w,errorMessageProps:C,isInvalid:p,validationErrors:b,validationDetails:g}}const Zd=a.createContext(null);function Xd(t){let e=a.useRef({});return a.createElement(Zd.Provider,{value:e},t.children)}const Qd=a.createContext({isSelected:!1});class Wd{constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{var l;if(o.nodeType===Node.ELEMENT_NODE){const d=o.shadowRoot;if(d){const u=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(o);if((l=this.filter)!=null&&l.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const o=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}get currentNode(){return this._currentNode}set currentNode(e){if(!U(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(l),l.currentNode=i,this._currentSetFor.add(l),r=i=o.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return U(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){var n;const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(e):(n=this.filter)!=null&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let s=this.nextNode();return s&&(this.currentNode=s),s}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){var r;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 i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){let s;if(typeof this.filter=="function"?s=this.filter(n):(r=this.filter)!=null&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function ds(t,e,n,r){return Te()?new Wd(t,e,n,r):t.createTreeWalker(e,n,r)}const cs=a.createContext(null),Jn="react-aria-focus-scope-restore";let ee=null;function Jd(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,s=a.useRef(null),o=a.useRef(null),l=a.useRef([]),{parentNode:d}=a.useContext(cs)||{},u=a.useMemo(()=>new nr({scopeRef:l}),[l]);J(()=>{let p=d||se.root;if(se.getTreeNode(p.scopeRef)&&ee&&!Qt(ee,p.scopeRef)){let b=se.getTreeNode(ee);b&&(p=b)}p.addChild(u),se.addNode(u)},[u,d]),J(()=>{let p=se.getTreeNode(l);p&&(p.contain=!!n)},[n]),J(()=>{var y;let p=(y=s.current)==null?void 0:y.nextSibling,b=[],g=v=>v.stopPropagation();for(;p&&p!==o.current;)b.push(p),p.addEventListener(Jn,g),p=p.nextSibling;return l.current=b,()=>{for(let v of b)v.removeEventListener(Jn,g)}},[e]),oc(l,r,n),rc(l,n),lc(l,r,n),sc(l,i),a.useEffect(()=>{const p=te(X(l.current?l.current[0]:void 0));let b=null;if(be(p,l.current)){for(let g of se.traverse())g.scopeRef&&be(p,g.scopeRef.current)&&(b=g);b===se.getTreeNode(l)&&(ee=b.scopeRef)}},[l]),J(()=>()=>{var b,g;let p=((g=(b=se.getTreeNode(l))==null?void 0:b.parent)==null?void 0:g.scopeRef)??null;(l===ee||Qt(l,ee))&&(!p||se.getTreeNode(p))&&(ee=p),se.removeTreeNode(l)},[l]);let f=a.useMemo(()=>ec(l),[]),h=a.useMemo(()=>({focusManager:f,parentNode:u}),[u,f]);return a.createElement(cs.Provider,{value:h},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function ec(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:s,accept:o}=e,l=r||te(X(n[0]??void 0)),d=n[0].previousElementSibling,u=Qe(n),f=Ce(u,{tabbable:i,accept:o},n);f.currentNode=be(l,n)?l:d;let h=f.nextNode();return!h&&s&&(f.currentNode=d,h=f.nextNode()),h&&De(h,!0),h},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:s,accept:o}=e,l=r||te(X(n[0]??void 0)),d=n[n.length-1].nextElementSibling,u=Qe(n),f=Ce(u,{tabbable:i,accept:o},n);f.currentNode=be(l,n)?l:d;let h=f.previousNode();return!h&&s&&(f.currentNode=d,h=f.previousNode()),h&&De(h,!0),h},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,s=Qe(n),o=Ce(s,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let l=o.nextNode();return l&&De(l,!0),l},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,s=Qe(n),o=Ce(s,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let l=o.previousNode();return l&&De(l,!0),l}}}function Qe(t){return t[0].parentElement}function Ct(t){let e=se.getTreeNode(ee);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function tc(t){if(!t.form)return Array.from(X(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=ce(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function nc(t){if(t.checked)return!0;const e=tc(t);return e.length>0&&!e.some(n=>n.checked)}function rc(t,e){let n=a.useRef(void 0),r=a.useRef(void 0);J(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=X(i?i[0]:void 0);let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Ct(t)||u.isComposing)return;let f=te(s),h=t.current;if(!h||!be(f,h))return;let p=Qe(h),b=Ce(p,{tabbable:!0},h);if(!f)return;b.currentNode=f;let g=u.shiftKey?b.previousNode():b.nextNode();g||(b.currentNode=u.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,g=u.shiftKey?b.previousNode():b.nextNode()),u.preventDefault(),g&&(De(g,!0),g instanceof ce(g).HTMLInputElement&&g.select())},l=u=>{(!ee||Qt(ee,t))&&be(M(u),t.current)?(ee=t,n.current=M(u)):Ct(t)&&!ze(M(u),t)?n.current?n.current.focus():ee&&ee.current&&er(ee.current):Ct(t)&&(n.current=M(u))},d=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{var b;let f=Vt(),h=(f==="virtual"||f===null)&&Sn()&&ei(),p=te(s);if(!h&&p&&Ct(t)&&!ze(p,t)){ee=t;let g=M(u);g&&g.isConnected?(n.current=g,(b=n.current)==null||b.focus()):ee.current&&er(ee.current)}})};return s.addEventListener("keydown",o,!1),s.addEventListener("focusin",l,!1),i==null||i.forEach(u=>u.addEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",d,!1)),()=>{s.removeEventListener("keydown",o,!1),s.removeEventListener("focusin",l,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",d,!1))}},[t,e]),J(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function us(t){return ze(t)}function be(t,e){return!t||!e?!1:e.some(n=>U(n,t))}function ze(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of se.traverse(se.getTreeNode(e)))if(n&&be(t,n.current))return!0;return!1}function ic(t){return ze(t,ee)}function Qt(t,e){var r;let n=(r=se.getTreeNode(e))==null?void 0:r.parent;for(;n;){if(n.scopeRef===t)return!0;n=n.parent}return!1}function De(t,e=!1){if(t!=null&&!e)try{Ye(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function fs(t,e=!0){let n=t[0].previousElementSibling,r=Qe(t),i=Ce(r,{tabbable:e},t);i.currentNode=n;let s=i.nextNode();return e&&!s&&(r=Qe(t),i=Ce(r,{tabbable:!1},t),i.currentNode=n,s=i.nextNode()),s}function er(t,e=!0){De(fs(t,e))}function sc(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){ee=t;const r=X(t.current?t.current[0]:void 0);!be(te(r),ee.current)&&t.current&&er(t.current)}n.current=!1},[t])}function oc(t,e,n){J(()=>{if(e||n)return;let r=t.current;const i=X(r?r[0]:void 0);let s=o=>{let l=M(o);be(l,t.current)?ee=t:us(l)||(ee=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",s,!1))}},[t,e,n])}function hs(t){let e=se.getTreeNode(ee);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function lc(t,e,n){const r=a.useRef(typeof document<"u"?te(X(t.current?t.current[0]:void 0)):null);J(()=>{let i=t.current;const s=X(i?i[0]:void 0);if(!e||n)return;let o=()=>{(!ee||Qt(ee,t))&&be(te(s),t.current)&&(ee=t)};return s.addEventListener("focusin",o,!1),i==null||i.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{s.removeEventListener("focusin",o,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,n]),J(()=>{const i=X(t.current?t.current[0]:void 0);if(!e)return;let s=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!Ct(t)||o.isComposing)return;let l=i.activeElement;if(!ze(l,t)||!hs(t))return;let d=se.getTreeNode(t);if(!d)return;let u=d.nodeToRestore,f=Ce(i.body,{tabbable:!0});f.currentNode=l;let h=o.shiftKey?f.previousNode():f.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,d.nodeToRestore=void 0),(!h||!ze(h,t))&&u){f.currentNode=u;do h=o.shiftKey?f.previousNode():f.nextNode();while(ze(h,t));o.preventDefault(),o.stopPropagation(),h?De(h,!0):us(u)?De(u,!0):l.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[t,e,n]),J(()=>{const i=X(t.current?t.current[0]:void 0);if(!e)return;let s=se.getTreeNode(t);if(s)return s.nodeToRestore=r.current??void 0,()=>{let o=se.getTreeNode(t);if(!o)return;let l=o.nodeToRestore,d=te(i);if(e&&l&&(d&&ze(d,t)||d===i.body&&hs(t))){let u=se.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=u.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){ps(f.nodeToRestore);return}f=f.parent}for(f=u.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&se.getTreeNode(f.scopeRef)){let h=fs(f.scopeRef.current,!0);ps(h);return}f=f.parent}}})}}},[t,e])}function ps(t){t.dispatchEvent(new CustomEvent(Jn,{bubbles:!0,cancelable:!0}))&&De(t)}function Ce(t,e,n){let r=e!=null&&e.tabbable?Yr:qr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,s=X(i),o=ds(s,t||s,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return U(e==null?void 0:e.from,l)||e!=null&&e.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!nc(l)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:r(l)&&(!n||be(l,n))&&(!(e!=null&&e.accept)||e.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(o.currentNode=e.from),o}class tr{constructor(){this.fastMap=new Map,this.root=new nr({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let s=new nr({scopeRef:e});i.addChild(s),s.parent=i,this.fastMap.set(e,s),r&&(s.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&be(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var n;let e=new tr;for(let r of this.traverse())e.addTreeNode(r.scopeRef,((n=r.parent)==null?void 0:n.scopeRef)??null,r.nodeToRestore);return e}}class nr{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let se=new tr;function rr(t){return aa()?t.altKey:t.ctrlKey}function ir(t,e){var i,s;let n=`[data-key="${CSS.escape(String(e))}"]`,r=(i=t.current)==null?void 0:i.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),(s=t.current)==null?void 0:s.querySelector(n)}const ms=new WeakMap;function ac(t){let e=Pe();return ms.set(t,e),e}function dc(t){return ms.get(t)}const cc=1e3;function uc(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=a.useRef({search:"",timeout:void 0}).current,s=o=>{let l=fc(o.key);if(!(!l||o.ctrlKey||o.metaKey||!U(o.currentTarget,M(o))||i.search.length===0&&l===" ")){if(l===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=l,e.getKeyForSearch!=null){let d=e.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=e.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},cc)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?s:void 0}}}function fc(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function bs(t,e){const n=a.useRef(!0),r=a.useRef(null);J(()=>(n.current=!0,()=>{n.current=!1}),[]),J(()=>{n.current?n.current=!1:(!r.current||e.some((i,s)=>!Object.is(i,r[s])))&&t(),r.current=e},e)}function hc(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:l=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:h,allowsTabNavigation:p=!1,scrollRef:b=r,linkBehavior:g="action"}=t,{direction:y}=Dn(),v=kn(),w=m=>{var V,T,j,E,x,B,R,Q,re,W,ne,he,It,ie;if(m.altKey&&m.key==="Tab"&&m.preventDefault(),!r.current||!U(r.current,M(m)))return;const _=(H,ve)=>{if(H!=null){if(e.isLink(H)&&g==="selection"&&u&&!rr(m)){Fe.flushSync(()=>{e.setFocusedKey(H,ve)});let ye=ir(r,H),Le=e.getItemProps(H);ye&&v.open(ye,m,Le.href,Le.routerOptions);return}if(e.setFocusedKey(H,ve),e.isLink(H)&&g==="override")return;m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(H):u&&!rr(m)&&e.replaceSelection(H)}};switch(m.key){case"ArrowDown":if(n.getKeyBelow){let H=e.focusedKey!=null?(V=n.getKeyBelow)==null?void 0:V.call(n,e.focusedKey):(T=n.getFirstKey)==null?void 0:T.call(n);H==null&&s&&(H=(j=n.getFirstKey)==null?void 0:j.call(n,e.focusedKey)),H!=null&&(m.preventDefault(),_(H))}break;case"ArrowUp":if(n.getKeyAbove){let H=e.focusedKey!=null?(E=n.getKeyAbove)==null?void 0:E.call(n,e.focusedKey):(x=n.getLastKey)==null?void 0:x.call(n);H==null&&s&&(H=(B=n.getLastKey)==null?void 0:B.call(n,e.focusedKey)),H!=null&&(m.preventDefault(),_(H))}break;case"ArrowLeft":if(n.getKeyLeftOf){let H=e.focusedKey!=null?(R=n.getKeyLeftOf)==null?void 0:R.call(n,e.focusedKey):(Q=n.getFirstKey)==null?void 0:Q.call(n);H==null&&s&&(H=y==="rtl"?(re=n.getFirstKey)==null?void 0:re.call(n,e.focusedKey):(W=n.getLastKey)==null?void 0:W.call(n,e.focusedKey)),H!=null&&(m.preventDefault(),_(H,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){let H=e.focusedKey!=null?(ne=n.getKeyRightOf)==null?void 0:ne.call(n,e.focusedKey):(he=n.getFirstKey)==null?void 0:he.call(n);H==null&&s&&(H=y==="rtl"?(It=n.getLastKey)==null?void 0:It.call(n,e.focusedKey):(ie=n.getFirstKey)==null?void 0:ie.call(n,e.focusedKey)),H!=null&&(m.preventDefault(),_(H,y==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&m.shiftKey)return;m.preventDefault();let H=n.getFirstKey(e.focusedKey,rt(m));e.setFocusedKey(H),H!=null&&(rt(m)&&m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(H):u&&e.replaceSelection(H))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&m.shiftKey)return;m.preventDefault();let H=n.getLastKey(e.focusedKey,rt(m));e.setFocusedKey(H),H!=null&&(rt(m)&&m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(H):u&&e.replaceSelection(H))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let H=n.getKeyPageBelow(e.focusedKey);H!=null&&(m.preventDefault(),_(H))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let H=n.getKeyPageAbove(e.focusedKey);H!=null&&(m.preventDefault(),_(H))}break;case"a":rt(m)&&e.selectionMode==="multiple"&&l!==!0&&(m.preventDefault(),e.selectAll());break;case"Escape":d==="clearSelection"&&!o&&e.selectedKeys.size!==0&&(m.stopPropagation(),m.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(m.shiftKey)r.current.focus();else{let H=Ce(r.current,{tabbable:!0}),ve,ye;do ye=H.lastChild(),ye&&(ve=ye);while(ye);let Le=te();ve&&(!vn(ve)||Le&&!Yr(Le))&&_e(ve)}break}}},C=a.useRef({top:0,left:0});Bt(b,"scroll",()=>{var m,_;C.current={top:((m=b.current)==null?void 0:m.scrollTop)??0,left:((_=b.current)==null?void 0:_.scrollLeft)??0}});let S=m=>{var _,V;if(e.isFocused){U(m.currentTarget,M(m))||e.setFocused(!1);return}if(U(m.currentTarget,M(m))){if(e.setFocused(!0),e.focusedKey==null){let T=E=>{E!=null&&(e.setFocusedKey(E),u&&!e.isSelected(E)&&e.replaceSelection(E))},j=m.relatedTarget;j&&m.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?T(e.lastSelectedKey??((_=n.getLastKey)==null?void 0:_.call(n))):T(e.firstSelectedKey??((V=n.getFirstKey)==null?void 0:V.call(n)))}else b.current&&(b.current.scrollTop=C.current.top,b.current.scrollLeft=C.current.left);if(e.focusedKey!=null&&b.current){let T=ir(r,e.focusedKey);T instanceof HTMLElement&&(!vn(T)&&!h&&_e(T),Vt()==="keyboard"&&Wi(T,{containingElement:r.current}))}}},P=m=>{U(m.currentTarget,m.relatedTarget)||e.setFocused(!1)},D=a.useRef(!1);Bt(r,ql,h?m=>{let{detail:_}=m;m.stopPropagation(),e.setFocused(!0),(_==null?void 0:_.focusStrategy)==="first"&&(D.current=!0)}:void 0),bs(()=>{var m;if(D.current){let _=((m=n.getFirstKey)==null?void 0:m.call(n))??null;if(_==null){let V=te();jr(r.current),Gr(V,null),e.collection.size>0&&(D.current=!1)}else e.setFocusedKey(_),D.current=!1}},[e.collection]),bs(()=>{e.collection.size>0&&(D.current=!1)},[e.focusedKey]),Bt(r,Gl,h?m=>{var _;m.stopPropagation(),e.setFocused(!1),(_=m.detail)!=null&&_.clearFocusKey&&e.setFocusedKey(null)}:void 0);const N=a.useRef(i),z=a.useRef(!1);a.useEffect(()=>{var m,_;if(N.current){let V=null;i==="first"&&(V=((m=n.getFirstKey)==null?void 0:m.call(n))??null),i==="last"&&(V=((_=n.getLastKey)==null?void 0:_.call(n))??null);let T=e.selectedKeys;if(T.size){for(let j of T)if(e.canSelectItem(j)){V=j;break}}e.setFocused(!0),e.setFocusedKey(V),V==null&&!h&&r.current&&Ye(r.current),e.collection.size>0&&(N.current=!1,z.current=!0)}});let k=a.useRef(e.focusedKey),L=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==k.current||z.current)&&b.current&&r.current){let m=Vt(),_=ir(r,e.focusedKey);if(!(_ instanceof HTMLElement))return;(m==="keyboard"||z.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{b.current&&(Gn(b.current,_),m!=="virtual"&&Wi(_,{containingElement:r.current}))}))}!h&&e.isFocused&&e.focusedKey==null&&k.current!=null&&r.current&&Ye(r.current),k.current=e.focusedKey,z.current=!1}),a.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),Bt(r,"react-aria-focus-scope-restore",m=>{m.preventDefault(),e.setFocused(!0)});let K={onKeyDown:w,onFocus:S,onBlur:P,onMouseDown(m){b.current===M(m)&&m.preventDefault()}},{typeSelectProps:O}=uc({keyboardDelegate:n,selectionManager:e});f||(K=Y(O,K));let q;h||(q=e.focusedKey==null?0:-1);let Z=ac(e.collection);return{collectionProps:Y(K,{tabIndex:q,"data-collection":Z})}}const pc=500;function mc(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=pc,accessibilityDescription:o}=t;const l=a.useRef(void 0);let{addGlobalListener:d,removeGlobalListener:u}=Gt(),{pressProps:f}=lt({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),X(p.target).activeElement!==p.target&&_e(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},s),p.pointerType==="touch")){let b=y=>{y.preventDefault()},g=ce(p.target);d(p.target,"contextmenu",b,{once:!0}),d(g,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),h=Id(i&&!e?o:void 0);return{longPressProps:Y(f,h)}}function bc(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:o,focus:l,isDisabled:d,onAction:u,allowsDifferentPressOrigin:f,linkBehavior:h="action"}=t,p=kn();e=Pe(e);let b=x=>{if(x.pointerType==="keyboard"&&rr(x))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let B=n.getItemProps(r);p.open(i.current,x,B.href,B.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):x&&x.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||x&&(rt(x)||x.pointerType==="touch"||x.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?jr(i.current):l?l():te()!==i.current&&i.current&&Ye(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),d=d||n.isDisabled(r);let g={};!o&&!d?g={tabIndex:r===n.focusedKey?0:-1,onFocus(x){M(x)===i.current&&n.setFocusedKey(r)}}:d&&(g.onMouseDown=x=>{x.preventDefault()}),a.useEffect(()=>{d&&n.focusedKey===r&&n.setFocusedKey(null)},[n,d,r]);let y=n.isLink(r)&&h==="override",v=u&&t.UNSTABLE_itemBehavior==="action",w=n.isLink(r)&&h!=="selection"&&h!=="none",C=!d&&n.canSelectItem(r)&&!y&&!v,S=(u||w)&&!d,P=S&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),D=S&&C&&n.selectionBehavior==="replace",N=P||D,z=a.useRef(null),k=N&&C,L=a.useRef(!1),K=a.useRef(!1),O=n.getItemProps(r),q=x=>{var B;u&&(u(),(B=i.current)==null||B.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),w&&i.current&&p.open(i.current,x,O.href,O.routerOptions)},Z={ref:i};if(s?(Z.onPressStart=x=>{z.current=x.pointerType,L.current=k,x.pointerType==="keyboard"&&(!N||vs(x.key))&&b(x)},f?(Z.onPressUp=P?void 0:x=>{x.pointerType==="mouse"&&C&&b(x)},Z.onPress=P?q:x=>{x.pointerType!=="keyboard"&&x.pointerType!=="mouse"&&C&&b(x)}):Z.onPress=x=>{if(P||D&&x.pointerType!=="mouse"){if(x.pointerType==="keyboard"&&!gs(x.key))return;q(x)}else x.pointerType!=="keyboard"&&C&&b(x)}):(Z.onPressStart=x=>{z.current=x.pointerType,L.current=k,K.current=P,C&&(x.pointerType==="mouse"&&!P||x.pointerType==="keyboard"&&(!S||vs(x.key)))&&b(x)},Z.onPress=x=>{(x.pointerType==="touch"||x.pointerType==="pen"||x.pointerType==="virtual"||x.pointerType==="keyboard"&&N&&gs(x.key)||x.pointerType==="mouse"&&K.current)&&(N?q(x):C&&b(x))}),g["data-collection"]=dc(n.collection),g["data-key"]=r,Z.preventFocusOnPress=o,o&&(Z=Y(Z,{onPressStart(x){x.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(x){x.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let x of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[x]&&(Z[x]=ft(Z[x],O[x]));let{pressProps:m,isPressed:_}=lt(Z),V=D?x=>{z.current==="mouse"&&(x.stopPropagation(),x.preventDefault(),q(x))}:void 0,{longPressProps:T}=mc({isDisabled:!k,onLongPress(x){x.pointerType==="touch"&&(b(x),n.setSelectionBehavior("toggle"))}}),j=x=>{z.current==="touch"&&L.current&&x.preventDefault()},E=h!=="none"&&n.isLink(r)?x=>{Ie.isOpening||x.preventDefault()}:void 0;return{itemProps:Y(g,C||P||o&&!d?m:{},k?T:{},{onDoubleClick:V,onDragStartCapture:j,onClick:E,id:e},o?{onMouseDown:x=>x.preventDefault()}:void 0),isPressed:_,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:d,allowsSelection:C,hasAction:N}}function gs(t){return t==="Enter"}function vs(t){return t===" "}function gc(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function vc(t){return yc(t)}function yc(t,e){for(let n of t)return n}function sr(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ys(t,e),e],i=[...ys(t,n),n],s=r.slice(0,i.length).findIndex((o,l)=>o!==i[l]);return s!==-1?(e=r[s],n=i[s],e.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===e)>=0,-1)}function ys(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}function xs(t){const e=a.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}class ws{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let l of o.childNodes)n(l)};for(let o of e)n(o);let r=null,i=0,s=0;for(let[o,l]of this.keyMap)r?(r.nextKey=o,l.prevKey=r.key):(this.firstKey=o,l.prevKey=void 0),l.type==="item"&&(l.index=i++),(l.type==="section"||l.type==="item")&&s++,r=l,r.nextKey=void 0;this._size=s,this.lastKey=(r==null?void 0:r.key)??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey??null:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}}class we extends Set{constructor(e,n,r){super(e),e instanceof we?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function xc(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function wc(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=t,o=a.useRef(!1),[,l]=a.useState(!1),d=a.useRef(null),u=a.useRef(null),[,f]=a.useState(null),h=a.useMemo(()=>Es(t.selectedKeys),[t.selectedKeys]),p=a.useMemo(()=>Es(t.defaultSelectedKeys,new we),[t.defaultSelectedKeys]),[b,g]=vt(h,p,t.onSelectionChange),y=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[v,w]=a.useState(i);i==="replace"&&v==="toggle"&&typeof b=="object"&&b.size===0&&w("replace");let C=a.useRef(i);return a.useEffect(()=>{i!==C.current&&(w(i),C.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:w,get isFocused(){return o.current},setFocused(S){o.current=S,l(S)},get focusedKey(){return d.current},get childFocusStrategy(){return u.current},setFocusedKey(S,P="first"){d.current=S,u.current=P,f(S)},selectedKeys:b,setSelectedKeys(S){(r||!xc(S,b))&&g(S)},disabledKeys:y,disabledBehavior:s}}function Es(t,e){return t?t==="all"?"all":new we(t):e}class or{constructor(e,n,r){this.collection=e,this.state=n,this.allowsCellSelection=(r==null?void 0:r.allowsCellSelection)??!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null,this.fullCollection=(r==null?void 0:r.fullCollection)||null}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,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}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 n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}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;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&sr(this.collection,r,e)<0)&&(e=r)}return(e==null?void 0:e.key)??null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&sr(this.collection,r,e)>0)&&(e=r)}return(e==null?void 0:e.key)??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 n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new we([n],n,n);else{let i=this.state.selectedKeys,s=i.anchorKey??n;r=new we(i,s,n);for(let o of this.getKeyRange(s,i.currentKey??n))r.delete(o);for(let o of this.getKeyRange(n,s))this.canSelectItem(o)&&r.add(o)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?sr(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var s;if((s=this.layoutDelegate)!=null&&s.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let r=[],i=e;for(;i!=null;){let o=this.collection.getItem(i);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new we(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new we([n],n,n):new we;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new we;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=this.fullCollection??this.collection,n=[],r=i=>{var s;for(;i!=null;){if(this.canSelectItemIn(i,e)){let o=e.getItem(i);(o==null?void 0:o.type)==="item"&&n.push(i),o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r(((s=vc(gc(o,e)))==null?void 0:s.key)??null)}i=e.getKeyAfter(i)}};return r(e.getFirstKey()),n}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 we)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,n){var i;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=n.getItem(e);return!(!r||(i=r==null?void 0:r.props)!=null&&i.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!((r=(n=this.collection.getItem(e))==null?void 0:n.props)!=null&&r.isDisabled))}isLink(e){var n,r;return!!((r=(n=this.collection.getItem(e))==null?void 0:n.props)!=null&&r.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))==null?void 0:n.props}withCollection(e){return new or(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class Ec{build(e,n){return this.context=n,Ss(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(a.isValidElement(n)&&n.type===a.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];a.Children.forEach(n,o=>{o&&i.push(o)});let s=0;for(let o of i){let l=this.getFullNode({element:o,index:s},{});for(let d of l)s++,yield d}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let s=n.value;if(s!=null){let o=s.key??s.id;if(o==null)throw new Error("No key found for item");return o}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let d=[];a.Children.forEach(e.element.props.children,f=>{d.push(f)});let u=e.index??0;for(const f of d)yield*this.getFullNode({element:f,index:u++},n,r,i);return}let s=e.element;if(!s&&e.value&&n&&n.renderer){let d=this.cache.get(e.value);if(d&&(!d.shouldInvalidate||!d.shouldInvalidate(this.context))){d.index=e.index,d.parentKey=i?i.key:null,yield d;return}s=n.renderer(e.value)}if(a.isValidElement(s)){let d=s.type;if(typeof d!="function"&&typeof d.getCollectionNode!="function"){let p=s.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=d.getCollectionNode(s.props,this.context),f=e.index??0,h=u.next();for(;!h.done&&h.value;){let p=h.value;e.index=f;let b=p.key??null;b==null&&(b=p.element?null:this.getKey(s,e,n,r));let y=[...this.getFullNode({...p,key:b,index:f,wrapper:Sc(e.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${s.key}`:s.key,i)];for(let v of y){if(v.value=p.value??e.value??null,v.value&&this.cache.set(v.value,v),e.type&&v.type!==e.type)throw new Error(`Unsupported type <${lr(v.type)}> in <${lr((i==null?void 0:i.type)??"unknown parent type")}>. Only <${lr(e.type)}> is supported.`);f++,yield v}h=u.next(y)}return}if(e.key==null||e.type==null)return;let o=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value??null,level:((i==null?void 0:i.level)??0)+((i==null?void 0:i.type)==="item"?1:0),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Ss(function*(){if(!e.hasChildNodes||!e.childNodes)return;let d=0;for(let u of e.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`);let f=o.getFullNode({...u,index:d},o.getChildState(n,u),l.key,l);for(let h of f)d++,yield h}})};yield l}constructor(){this.cache=new WeakMap}}function Ss(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function Sc(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function lr(t){return t[0].toUpperCase()+t.slice(1)}function Cc(t,e,n){let r=a.useMemo(()=>new Ec,[]),{children:i,items:s,collection:o}=t;return a.useMemo(()=>{if(o)return o;let d=r.build({children:i,items:s},n);return e(d)},[r,i,s,o,n,e])}function kc(t){let{filter:e,layoutDelegate:n}=t,r=wc(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),s=a.useCallback(u=>e?new ws(e(u)):new ws(u),[e]),o=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),l=Cc(t,s,o),d=a.useMemo(()=>new or(l,r,{layoutDelegate:n}),[l,r,n]);return Pc(l,d),{collection:l,disabledKeys:i,selectionManager:d}}function Pc(t,e){const n=a.useRef(null);a.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){let r=n.current.getKeyAfter(e.focusedKey),i=null;for(;r!=null;){let s=t.getItem(r);if(s&&s.type==="item"&&!e.isDisabled(r)){i=r;break}r=n.current.getKeyAfter(r)}if(i==null)for(r=n.current.getKeyBefore(e.focusedKey);r!=null;){let s=t.getItem(r);if(s&&s.type==="item"&&!e.isDisabled(r)){i=r;break}r=n.current.getKeyBefore(r)}e.setFocusedKey(i)}n.current=t},[t,e])}const Tc=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function Cs(t){return t.dataset.liveAnnouncer==="true"||t.dataset.reactAriaTopLayer!==void 0}let kt=new WeakMap,ge=[];function _c(t,e){let n=ce(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e,i=(r==null?void 0:r.root)??document.body,s=(r==null?void 0:r.shouldUseInert)&&Tc,o=new Set(t),l=new Set,d=v=>s&&v instanceof n.HTMLElement?v.inert:v.getAttribute("aria-hidden")==="true",u=(v,w)=>{s&&v instanceof n.HTMLElement?v.inert=w:w?v.setAttribute("aria-hidden","true"):(v.removeAttribute("aria-hidden"),v instanceof n.HTMLElement&&(v.inert=!1))},f=new Set;if(Te())for(let v of t){let w=v;for(;w&&w!==i;){let C=w.getRootNode();"shadowRoot"in C&&f.add(C.shadowRoot),w=C.parentNode}}let h=v=>{for(let P of v.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(P);let w=P=>{if(l.has(P)||o.has(P)||P.parentElement&&l.has(P.parentElement)&&P.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let D of o)if(U(P,D))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=ds(X(v),v,NodeFilter.SHOW_ELEMENT,{acceptNode:w}),S=w(v);if(S===NodeFilter.FILTER_ACCEPT&&p(v),S!==NodeFilter.FILTER_REJECT){let P=C.nextNode();for(;P!=null;)p(P),P=C.nextNode()}},p=v=>{let w=kt.get(v)??0;d(v)&&w===0||(w===0&&u(v,!0),l.add(v),kt.set(v,w+1))};ge.length&&ge[ge.length-1].disconnect(),h(i);let b=new MutationObserver(v=>{for(let w of v)if(w.type==="childList"){if(w.target.isConnected&&![...o,...l].some(C=>U(C,w.target)))for(let C of w.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&Cs(C)?o.add(C):C instanceof Element&&h(C);if(Te()){for(let C of f)if(!C.isConnected){b.disconnect();break}}}});b.observe(i,{childList:!0,subtree:!0});let g=new Set;if(Te())for(let v of f){let w=new MutationObserver(C=>{for(let S of C)if(S.type==="childList"){if(S.target.isConnected&&![...o,...l].some(P=>U(P,S.target)))for(let P of S.addedNodes)(P instanceof HTMLElement||P instanceof SVGElement)&&Cs(P)?o.add(P):P instanceof Element&&h(P);if(Te()){for(let P of f)if(!P.isConnected){b.disconnect();break}}}});w.observe(v,{childList:!0,subtree:!0}),g.add(w)}let y={visibleNodes:o,hiddenNodes:l,observe(){b.observe(i,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return ge.push(y),()=>{if(b.disconnect(),Te())for(let v of g)v.disconnect();for(let v of l){let w=kt.get(v);w!=null&&(w===1?(u(v,!1),kt.delete(v)):kt.set(v,w-1))}y===ge[ge.length-1]?(ge.pop(),ge.length&&ge[ge.length-1].observe()):ge.splice(ge.indexOf(y),1)}}function Kc(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,s=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Ee(d=>{n&&Wt(d,e)&&(i&&i(d),s.current.isPointerDown=!0)}),l=Ee(d=>{n&&n(d)});a.useEffect(()=>{let d=s.current;if(r)return;const u=e.current,f=X(u);if(typeof PointerEvent<"u"){let h=p=>{d.isPointerDown&&Wt(p,e)&&l(p),d.isPointerDown=!1};return f.addEventListener("pointerdown",o,!0),f.addEventListener("click",h,!0),()=>{f.removeEventListener("pointerdown",o,!0),f.removeEventListener("click",h,!0)}}else if(process.env.NODE_ENV==="test"){let h=b=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&Wt(b,e)&&l(b),d.isPointerDown=!1},p=b=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&Wt(b,e)&&l(b),d.isPointerDown=!1};return f.addEventListener("mousedown",o,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",o,!0),f.addEventListener("touchend",p,!0),()=>{f.removeEventListener("mousedown",o,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",o,!0),f.removeEventListener("touchend",p,!0)}}},[e,r])}function Wt(t,e){if(t.button>0)return!1;let n=M(t);if(n){const r=n.ownerDocument;if(!r||!U(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ke=[];function Ic(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=t,d=a.useRef(void 0);a.useEffect(()=>{if(i&&!ke.includes(e))return ke.push(e),()=>{let g=ke.indexOf(e);g>=0&&ke.splice(g,1)}},[i,e]);let u=()=>{ke[ke.length-1]===e&&n&&n()},f=g=>{const y=ke[ke.length-1];d.current=y,(!l||l(M(g)))&&y===e&&g.stopPropagation()},h=g=>{(!l||l(M(g)))&&(ke[ke.length-1]===e&&g.stopPropagation(),d.current===e&&u()),d.current=void 0},p=g=>{g.key==="Escape"&&!o&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),u())};Kc({ref:e,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:f});let{focusWithinProps:b}=Un({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||ic(g.relatedTarget)||(!l||l(g.relatedTarget))&&(n==null||n())}});return{overlayProps:{onKeyDown:p,...b},underlayProps:{}}}const Pt=typeof document<"u"&&window.visualViewport;let Jt=0,ar;function Dc(t={}){let{isDisabled:e}=t;J(()=>{if(!e)return Jt++,Jt===1&&(je()?ar=Lc():ar=Mc()),()=>{Jt--,Jt===0&&ar()}},[e])}function Mc(){let t=window.innerWidth-document.documentElement.clientWidth;return ft(t>0&&("scrollbarGutter"in document.documentElement.style?en(document.documentElement,"scrollbarGutter","stable"):en(document.documentElement,"paddingRight",`${t}px`)),en(document.documentElement,"overflow","hidden"))}function Lc(){let t=en(document.documentElement,"overflow","hidden"),e,n=!1,r=f=>{let h=M(f);e=St(h)?h:Xi(h,!0),n=!1;let p=h.ownerDocument.defaultView.getSelection();p&&!p.isCollapsed&&p.containsNode(h,!0)&&(n=!0),f.composedPath().some(b=>b instanceof HTMLInputElement&&b.type==="range")&&(n=!0),"selectionStart"in h&&"selectionEnd"in h&&h.selectionStart<h.selectionEnd&&h.ownerDocument.activeElement===h&&(n=!0)},i=document.createElement("style"),s=Oi();s&&(i.nonce=s),i.textContent=`
|
|
24
|
+
@layer {
|
|
25
|
+
* {
|
|
26
|
+
overscroll-behavior: contain;
|
|
27
|
+
}
|
|
28
|
+
}`.trim(),document.head.prepend(i);let o=f=>{if(!(f.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&f.preventDefault()}},l=f=>{var b;let h=M(f),p=f.relatedTarget;if(p&&bt(p))p.focus({preventScroll:!0}),ks(p,bt(h));else if(!p){let g=(b=h.parentElement)==null?void 0:b.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},d=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(f){let h=te(),p=h!=null&&bt(h);d.call(this,{...f,preventScroll:!0}),(!f||!f.preventScroll)&&ks(this,p)};let u=ft(dr(document,"touchstart",r,{passive:!1,capture:!0}),dr(document,"touchmove",o,{passive:!1,capture:!0}),dr(document,"blur",l,!0));return()=>{t(),u(),i.remove(),HTMLElement.prototype.focus=d}}function en(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function dr(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function ks(t,e){e||!Pt?Ps(t):Pt.addEventListener("resize",()=>Ps(t),{once:!0})}function Ps(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Xi(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),s=n.getBoundingClientRect();if(s.top<i.top||s.bottom>i.top+n.clientHeight){let o=i.bottom;Pt&&(o=Math.min(o,Pt.offsetTop+Pt.height));let l=s.top-i.top-((o-i.top)/2-s.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+l)),behavior:"smooth"})}}n=r.parentElement}}var Ts={};Ts={dismiss:"تجاهل"};var _s={};_s={dismiss:"Отхвърляне"};var Ks={};Ks={dismiss:"Odstranit"};var Is={};Is={dismiss:"Luk"};var Ds={};Ds={dismiss:"Schließen"};var Ms={};Ms={dismiss:"Απόρριψη"};var Ls={};Ls={dismiss:"Dismiss"};var Fs={};Fs={dismiss:"Descartar"};var Os={};Os={dismiss:"Lõpeta"};var $s={};$s={dismiss:"Hylkää"};var As={};As={dismiss:"Rejeter"};var zs={};zs={dismiss:"התעלם"};var Vs={};Vs={dismiss:"Odbaci"};var Bs={};Bs={dismiss:"Elutasítás"};var Hs={};Hs={dismiss:"Ignora"};var Ns={};Ns={dismiss:"閉じる"};var Rs={};Rs={dismiss:"무시"};var Us={};Us={dismiss:"Atmesti"};var js={};js={dismiss:"Nerādīt"};var Gs={};Gs={dismiss:"Lukk"};var qs={};qs={dismiss:"Negeren"};var Ys={};Ys={dismiss:"Zignoruj"};var Zs={};Zs={dismiss:"Descartar"};var Xs={};Xs={dismiss:"Dispensar"};var Qs={};Qs={dismiss:"Revocare"};var Ws={};Ws={dismiss:"Пропустить"};var Js={};Js={dismiss:"Zrušiť"};var eo={};eo={dismiss:"Opusti"};var to={};to={dismiss:"Odbaci"};var no={};no={dismiss:"Avvisa"};var ro={};ro={dismiss:"Kapat"};var io={};io={dismiss:"Скасувати"};var so={};so={dismiss:"取消"};var oo={};oo={dismiss:"關閉"};var lo={};lo={"ar-AE":Ts,"bg-BG":_s,"cs-CZ":Ks,"da-DK":Is,"de-DE":Ds,"el-GR":Ms,"en-US":Ls,"es-ES":Fs,"et-EE":Os,"fi-FI":$s,"fr-FR":As,"he-IL":zs,"hr-HR":Vs,"hu-HU":Bs,"it-IT":Hs,"ja-JP":Ns,"ko-KR":Rs,"lt-LT":Us,"lv-LV":js,"nb-NO":Gs,"nl-NL":qs,"pl-PL":Ys,"pt-BR":Zs,"pt-PT":Xs,"ro-RO":Qs,"ru-RU":Ws,"sk-SK":Js,"sl-SI":eo,"sr-SP":to,"sv-SE":no,"tr-TR":ro,"uk-UA":io,"zh-CN":so,"zh-TW":oo};function Fc(t){return t&&t.__esModule?t.default:t}function Oc(t){let{onDismiss:e,...n}=t,r=Aa(Fc(lo),"@react-aria/overlays"),i=Ht(n,r.format("dismiss")),s=()=>{e&&e()};return a.createElement(Yn,null,a.createElement("button",{...i,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}function $c({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(Hn.Provider,{value:e},t)}const Ac=a.createContext({});function zc(){return a.useContext(Ac)??{}}const ao=a.createContext(null);function Vc(t){let e=Re(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,s]=a.useState(!1),o=a.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:l}=zc();if(!t.portalContainer&&l&&(n=l()),!n)return null;let d=t.children;return t.disableFocusManagement||(d=a.createElement(Jd,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},d)),d=a.createElement(ao.Provider,{value:o},a.createElement($c,null,d)),Fe.createPortal(d,n)}function co(){let t=a.useContext(ao),e=t==null?void 0:t.setContain;J(()=>{e==null||e(!0)},[e])}function Bc(t){let[e,n]=vt(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=a.useCallback(()=>{n(!0)},[n]),i=a.useCallback(()=>{n(!1)},[n]),s=a.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:s}}function cr(t,e=!0){let[n,r]=a.useState(!0),i=n&&e;return J(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let s of t.current.getAnimations())s instanceof CSSTransition&&s.cancel()},[t,i]),uo(t,i,a.useCallback(()=>r(!1),[])),i}function ur(t,e){let[n,r]=a.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return uo(t,i,a.useCallback(()=>{r(s=>s==="exiting"?"closed":s)},[])),i}function uo(t,e,n){J(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.allSettled(r.map(s=>s.finished)).then(()=>{i||Fe.flushSync(()=>{n()})}),()=>{i=!0}}},[t,e,n])}function Hc(t,e){let{role:n="dialog"}=t,r=bn();r=t["aria-label"]?void 0:r;let i=a.useRef(!1);a.useEffect(()=>{if(e.current&&!vn(e.current)){Ye(e.current);let o=setTimeout(()=>{(te()===e.current||te()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),Ye(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),co();let s=a.useRef(!1);return a.useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!s.current&&e.current){let o=e.current,l=o.hasAttribute("aria-label"),d=o.hasAttribute("aria-labelledby");!l&&!d&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),s.current=!0)}}),{dialogProps:{...ae(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}const Nc=a.createContext(null),tn=a.createContext(null),fo=a.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=xe(e,n,Nc);let{dialogProps:i,titleProps:s}=Hc({...e,"aria-labelledby":r},n),o=a.useContext(tn);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let l=pe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(o==null?void 0:o.close)||(()=>{})}}),d=ae(e,{global:!0});return a.createElement(de.section,{...Y(d,l,i),render:e.render,ref:n,slot:e.slot||void 0},a.createElement(pt,{values:[[_d,{slots:{[gn]:{},title:{...s,level:2}}}],[qi,{slots:{[gn]:{},close:{onPress:()=>o==null?void 0:o.close()}}}]]},l.children))});function Rc(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=a.useState(!1);return J(()=>{if(t!=null&&t.current&&!n){let s=()=>{if(t.current){let l=Ce(t.current,{tabbable:!0});i(!!l.nextNode())}};s();let o=new MutationObserver(s);return o.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:r}function Uc(t,e,n){let{overlayProps:r,underlayProps:i}=Ic({...t,isOpen:e.isOpen,onClose:e.close},n);return Dc({isDisabled:!e.isOpen}),co(),a.useEffect(()=>{if(e.isOpen&&n.current)return _c([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:Y(r),underlayProps:i}}let ue=typeof document<"u"&&window.visualViewport;function jc(){let t=Re(),[e,n]=a.useState(()=>t?{width:0,height:0}:fr());return a.useEffect(()=>{let r=l=>{n(d=>l.width===d.width&&l.height===d.height?d:l)},i=()=>{ue&&ue.scale>1||r(fr())},s,o=l=>{ue&&ue.scale>1||bt(M(l))&&(s=requestAnimationFrame(()=>{let d=te();(!d||!bt(d))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(fr()),je()&&window.addEventListener("blur",o,!0),ue?ue.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(s),je()&&window.removeEventListener("blur",o,!0),ue?ue.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function fr(){return{width:ue?Math.min(ue.width*ue.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:ue?ue.height*ue.scale:document.documentElement.clientHeight}}const Gc=a.createContext(null),hr=a.createContext(null),ho=a.forwardRef(function(e,n){if(a.useContext(hr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const y=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),v=Object.keys(e).filter(w=>y.has(w));console.warn(`This modal is already wrapped in a ModalOverlay, props [${v.join(", ")}] should be placed on the ModalOverlay instead.`)}return a.createElement(po,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:s,isOpen:o,defaultOpen:l,onOpenChange:d,children:u,isEntering:f,isExiting:h,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:b,...g}=e;return a.createElement(pr,{isDismissable:i,isKeyboardDismissDisabled:s,isOpen:o,defaultOpen:l,onOpenChange:d,isEntering:f,isExiting:h,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:b},a.createElement(po,{...g,modalRef:n},u))});function qc(t,e){[t,e]=xe(t,e,Gc);let n=a.useContext(tn),r=Bc(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let s=Oe(e),o=a.useRef(null),l=ur(s,i.isOpen),d=ur(o,i.isOpen),u=l||d||t.isExiting||!1,f=Re();return!i.isOpen&&!u||f?null:a.createElement(Yc,{...t,state:i,isExiting:u,overlayRef:s,modalRef:o})}const pr=a.forwardRef(qc);function Yc({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:s}=Uc(e,r,n),o=cr(e.overlayRef)||e.isEntering||!1,l=pe({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:o,isExiting:e.isExiting,state:r}}),d=jc(),u,f;if(typeof document<"u"){let p=St(document.body)?document.body:document.scrollingElement||document.documentElement,b=p.getBoundingClientRect().width%1,g=p.getBoundingClientRect().height%1;u=p.scrollWidth-b,f=p.scrollHeight-g}let h={...l.style,"--visual-viewport-width":d.width+"px","--visual-viewport-height":d.height+"px","--page-width":u!==void 0?u+"px":void 0,"--page-height":f!==void 0?f+"px":void 0};return a.createElement(Vc,{isExiting:e.isExiting,portalContainer:t},a.createElement(de.div,{...Y(ae(e,{global:!0}),s),...l,style:h,ref:e.overlayRef,"data-entering":o||void 0,"data-exiting":e.isExiting||void 0},a.createElement(pt,{values:[[hr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[tn,r]]},l.children)))}function po(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=a.useContext(hr),s=a.useContext(tn),o=a.useMemo(()=>nt(t.modalRef,n),[t.modalRef,n]),l=Oe(o),d=cr(l),u=pe({...t,defaultClassName:"react-aria-Modal",values:{isEntering:d,isExiting:r,state:s}});return a.createElement(de.div,{...Y(ae(t,{global:!0}),e),...u,ref:l,"data-entering":d||void 0,"data-exiting":r||void 0},i&&a.createElement(Oc,{onDismiss:s.close}),u.children)}function Zc(t,e,n){let{labelProps:r,inputProps:i,isSelected:s,isPressed:o,isDisabled:l,isReadOnly:d}=ss(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:s},isSelected:s,isPressed:o,isDisabled:l,isReadOnly:d}}const Xc=a.createContext(null),Qc=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,Xc);let s=Oe(nt(r,e.inputRef!==void 0?e.inputRef:null)),o=Wn(e),{labelProps:l,inputProps:d,isSelected:u,isDisabled:f,isReadOnly:h,isPressed:p}=Zc({...Lt(e),children:typeof e.children=="function"?!0:e.children},o,s),{isFocused:b,isFocusVisible:g,focusProps:y}=Xe(),v=e.isDisabled||e.isReadOnly,{hoverProps:w,isHovered:C}=Et({...e,isDisabled:v}),S=pe({...e,defaultClassName:"react-aria-Switch",values:{isSelected:u,isPressed:p,isHovered:C,isFocused:b,isFocusVisible:g,isDisabled:f,isReadOnly:h,state:o}}),P=ae(e,{global:!0});return delete P.id,delete P.onClick,a.createElement(de.label,{...Y(P,l,w,S),ref:n,slot:e.slot||void 0,"data-selected":u||void 0,"data-pressed":p||void 0,"data-hovered":C||void 0,"data-focused":b||void 0,"data-focus-visible":g||void 0,"data-disabled":f||void 0,"data-readonly":h||void 0},a.createElement(Yn,{elementType:"span"},a.createElement("input",{...Y(d,y),ref:s})),S.children)}),mo=new WeakMap;function nn(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=mo.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function Wc(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:s}=t,{selectionManager:o,selectedKey:l}=e,d=r===l,u=i||e.isDisabled||e.selectionManager.isDisabled(r),f=e.collection.getItem(r),{itemProps:h,isPressed:p}=bc({selectionManager:o,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:s??(f==null?void 0:f.props.href)!=null,linkBehavior:"selection"}),b=nn(e,r,"tab"),g=nn(e,r,"tabpanel"),{tabIndex:y}=h,v=ae(f==null?void 0:f.props,{labelable:!0});delete v.id;let w=ma(f==null?void 0:f.props),{focusableProps:C}=Rt({...f==null?void 0:f.props,isDisabled:u},n);return{tabProps:Y(v,C,w,h,{id:b,"aria-selected":d,"aria-disabled":u||void 0,"aria-controls":d?g:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:d,isDisabled:u,isPressed:p}}function Jc(t,e,n){let r=Rc(n)?void 0:0;const i=nn(e,t.id??(e==null?void 0:e.selectedKey),"tabpanel"),s=Ht({...t,id:i,"aria-labelledby":nn(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:Y(s,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class eu{constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!((r=(n=this.collection.getItem(e))==null?void 0:n.props)!=null&&r.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}}function tu(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:s,selectionManager:o,disabledKeys:l}=e,{direction:d}=Dn(),u=a.useMemo(()=>new eu(s,d,r,l),[s,l,r,d]),{collectionProps:f}=hc({ref:n,selectionManager:o,keyboardDelegate:u,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),h=Pe();mo.set(e,h);let p=Ht({...t,id:h});return{tabListProps:{...Y(f,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function nu(t){let[e,n]=vt(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),r=a.useMemo(()=>e!=null?[e]:[],[e]),{collection:i,disabledKeys:s,selectionManager:o}=kc({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:d=>{if(d==="all")return;let u=d.values().next().value??null;u===e&&t.onSelectionChange&&t.onSelectionChange(u),n(u)}}),l=e!=null?i.getItem(e):null;return{collection:i,disabledKeys:s,selectionManager:o,selectedKey:e,setSelectedKey:n,selectedItem:l}}function ru(t){let e=nu({...t,onSelectionChange:t.onSelectionChange?o=>{var l;o!=null&&((l=t.onSelectionChange)==null||l.call(t,o))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??bo(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=e,s=a.useRef(i);return a.useEffect(()=>{let o=i;t.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=bo(r,e.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==s.current)&&n.setFocusedKey(o),s.current=o}),{...e,isDisabled:t.isDisabled||!1}}function bo(t,e){var r,i,s,o;let n=null;if(t){for(n=t.getFirstKey();n!=null&&(e.has(n)||(i=(r=t.getItem(n))==null?void 0:r.props)!=null&&i.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||(o=(s=t.getItem(n))==null?void 0:s.props)!=null&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const rn=a.createContext(null),We=a.createContext(null),iu=a.forwardRef(function(e,n){[e,n]=xe(e,n,rn);let{children:r,orientation:i="horizontal"}=e;return r=a.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),a.createElement(Xa,{content:r},s=>a.createElement(su,{props:e,collection:s,tabsRef:n}))});function su({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=ru({...t,collection:n,children:void 0}),{focusProps:s,isFocused:o,isFocusVisible:l}=Xe({within:!0}),d=a.useMemo(()=>({orientation:r,isFocusWithin:o,isFocusVisible:l}),[r,o,l]),u=pe({...t,defaultClassName:"react-aria-Tabs",values:d}),f=ae(t,{global:!0});return a.createElement(de.div,{...Y(f,u,s),ref:e,slot:t.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":l||void 0,"data-disabled":i.isDisabled||void 0},a.createElement(pt,{values:[[rn,t],[We,i]]},u.children))}const ou=a.forwardRef(function(e,n){return a.useContext(We)?a.createElement(lu,{props:e,forwardedRef:n}):a.createElement(sd,e)});function lu({props:t,forwardedRef:e}){let n=a.useContext(We),{CollectionRoot:r}=a.useContext(Di),{orientation:i="horizontal",keyboardActivation:s="automatic"}=Mt(rn),o=Oe(e),{tabListProps:l}=tu({...t,orientation:i,keyboardActivation:s},n,o),d=pe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),u=ae(t,{global:!0});return delete u.id,a.createElement(de.div,{...Y(u,d,l),ref:o,"data-orientation":i||void 0},a.createElement(Xd,null,a.createElement(r,{collection:n.collection,persistedKeys:ad(n.selectionManager.focusedKey)})))}const Vr=class Vr extends yt{};Vr.type="item";let mr=Vr;const au=rd(mr,(t,e,n)=>{let r=a.useContext(We),i=Oe(e),{tabProps:s,isSelected:o,isDisabled:l,isPressed:d}=Wc({key:n.key,...t},r,i),{focusProps:u,isFocused:f,isFocusVisible:h}=Xe(),{hoverProps:p,isHovered:b}=Et({isDisabled:l,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),g=pe({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:l,isFocused:f,isFocusVisible:h,isPressed:d,isHovered:b}}),y=n.props.href?de.a:de.div,v=ae(t,{global:!0});return delete v.id,delete v.onClick,a.createElement(y,{...Y(v,g,s,u,p),ref:i,"data-selected":o||void 0,"data-disabled":l||void 0,"data-focused":f||void 0,"data-focus-visible":h||void 0,"data-pressed":d||void 0,"data-hovered":b||void 0},a.createElement(Qd.Provider,{value:{isSelected:o}},g.children))}),du=xt(function(e,n){const r=a.useContext(We);let i=Oe(n),s=r.selectedKey===e.id,[o,l]=a.useState(r.selectedKey!=null?s:null);o==null&&r.selectedKey!=null?l(s):!s&&o&&l(!1);let d=ur(i,s);return!s&&!e.shouldForceMount&&!d?null:a.createElement(cu,{...e,tabPanelRef:i,isInitiallySelected:o||!1,isExiting:d})});function cu(t){let e=a.useContext(We),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:s,...o}=t,{tabPanelProps:l}=Jc(t,e,r),{focusProps:d,isFocused:u,isFocusVisible:f}=Xe(),h=e.selectedKey===t.id,p=cr(r)&&!i,b=pe({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:u,isFocusVisible:f,isInert:xs(!h),isEntering:p,isExiting:s,state:e}}),g=ae(o,{global:!0});delete g.id;let y=h?Y(g,l,d,b):Y(g,b);return a.createElement(de.div,{...y,ref:r,"data-focused":u||void 0,"data-focus-visible":f||void 0,inert:xs(!h||t.inert),"data-inert":h?void 0:"true","data-entering":p||void 0,"data-exiting":s||void 0},a.createElement(pt,{values:[[rn,null],[We,null]]},a.createElement(Di.Provider,{value:Ki},b.children)))}const uu=a.createContext({}),fu=a.createContext(null),hu=xt(function(e,n){[e,n]=xe(e,n,fu);let{validationBehavior:r}=Mt(rs)||{},i=e.validationBehavior??r??"native",s=a.useRef(null);[e,s]=xe(e,s,Va);let[o,l]=Ul(!e["aria-label"]&&!e["aria-labelledby"]),[d,u]=a.useState("input"),{labelProps:f,inputProps:h,descriptionProps:p,errorMessageProps:b,...g}=Yd({...Lt(e),inputElementType:d,label:l,validationBehavior:i},s),y=a.useCallback(C=>{s.current=C,C&&u(C instanceof HTMLTextAreaElement?"textarea":"input")},[s]),v=pe({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:g.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),w=ae(e,{global:!0});return delete w.id,a.createElement(de.div,{...w,...v,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":g.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(pt,{values:[[Ui,{...f,ref:o}],[as,{...h,ref:y}],[uu,{...h,ref:y}],[jd,{role:"presentation",isInvalid:g.isInvalid,isDisabled:e.isDisabled||!1}],[Yi,{slots:{description:p,errorMessage:b}}],[Md,g]]},v.children))}),pu=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},mu=(t,e)=>({classGroupId:t,validator:e}),go=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),sn="-",vo=[],bu="arbitrary..",gu=t=>{const e=yu(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return vu(o);const l=o.split(sn),d=l[0]===""&&l.length>1?1:0;return yo(l,d,e)},getConflictingClassGroupIds:(o,l)=>{if(l){const d=r[o],u=n[o];return d?u?pu(u,d):d:u||vo}return n[o]||vo}}},yo=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],s=n.nextPart.get(i);if(s){const u=yo(t,e+1,s);if(u)return u}const o=n.validators;if(o===null)return;const l=e===0?t.join(sn):t.slice(e).join(sn),d=o.length;for(let u=0;u<d;u++){const f=o[u];if(f.validator(l))return f.classGroupId}},vu=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?bu+r:void 0})(),yu=t=>{const{theme:e,classGroups:n}=t;return xu(n,e)},xu=(t,e)=>{const n=go();for(const r in t){const i=t[r];br(i,n,r,e)}return n},br=(t,e,n,r)=>{const i=t.length;for(let s=0;s<i;s++){const o=t[s];wu(o,e,n,r)}},wu=(t,e,n,r)=>{if(typeof t=="string"){Eu(t,e,n);return}if(typeof t=="function"){Su(t,e,n,r);return}Cu(t,e,n,r)},Eu=(t,e,n)=>{const r=t===""?e:xo(e,t);r.classGroupId=n},Su=(t,e,n,r)=>{if(ku(t)){br(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(mu(n,t))},Cu=(t,e,n,r)=>{const i=Object.entries(t),s=i.length;for(let o=0;o<s;o++){const[l,d]=i[o];br(d,xo(e,l),n,r)}},xo=(t,e)=>{let n=t;const r=e.split(sn),i=r.length;for(let s=0;s<i;s++){const o=r[s];let l=n.nextPart.get(o);l||(l=go(),n.nextPart.set(o,l)),n=l}return n},ku=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Pu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(s,o)=>{n[s]=o,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(s){let o=n[s];if(o!==void 0)return o;if((o=r[s])!==void 0)return i(s,o),o},set(s,o){s in n?n[s]=o:i(s,o)}}},gr="!",wo=":",Tu=[],Eo=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),_u=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const s=[];let o=0,l=0,d=0,u;const f=i.length;for(let y=0;y<f;y++){const v=i[y];if(o===0&&l===0){if(v===wo){s.push(i.slice(d,y)),d=y+1;continue}if(v==="/"){u=y;continue}}v==="["?o++:v==="]"?o--:v==="("?l++:v===")"&&l--}const h=s.length===0?i:i.slice(d);let p=h,b=!1;h.endsWith(gr)?(p=h.slice(0,-1),b=!0):h.startsWith(gr)&&(p=h.slice(1),b=!0);const g=u&&u>d?u-d:void 0;return Eo(s,b,p,g)};if(e){const i=e+wo,s=r;r=o=>o.startsWith(i)?s(o.slice(i.length)):Eo(Tu,!1,o,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},Ku=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const o=n[s],l=o[0]==="[",d=e.has(o);l||d?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Iu=t=>({cache:Pu(t.cacheSize),parseClassName:_u(t),sortModifiers:Ku(t),...gu(t)}),Du=/\s+/,Mu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=e,o=[],l=t.trim().split(Du);let d="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:h,modifiers:p,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}=n(f);if(h){d=f+(d.length>0?" "+d:d);continue}let v=!!y,w=r(v?g.substring(0,y):g);if(!w){if(!v){d=f+(d.length>0?" "+d:d);continue}if(w=r(g),!w){d=f+(d.length>0?" "+d:d);continue}v=!1}const C=p.length===0?"":p.length===1?p[0]:s(p).join(":"),S=b?C+gr:C,P=S+w;if(o.indexOf(P)>-1)continue;o.push(P);const D=i(w,v);for(let N=0;N<D.length;++N){const z=D[N];o.push(S+z)}d=f+(d.length>0?" "+d:d)}return d},Lu=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=So(n))&&(i&&(i+=" "),i+=r);return i},So=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=So(t[r]))&&(n&&(n+=" "),n+=e);return n},Fu=(t,...e)=>{let n,r,i,s;const o=d=>{const u=e.reduce((f,h)=>h(f),t());return n=Iu(u),r=n.cache.get,i=n.cache.set,s=l,l(d)},l=d=>{const u=r(d);if(u)return u;const f=Mu(d,n);return i(d,f),f};return s=o,(...d)=>s(Lu(...d))},Ou=[],le=t=>{const e=n=>n[t]||Ou;return e.isThemeGetter=!0,e},Co=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ko=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$u=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Au=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Bu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=t=>$u.test(t),G=t=>!!t&&!Number.isNaN(Number(t)),Be=t=>!!t&&Number.isInteger(Number(t)),vr=t=>t.endsWith("%")&&G(t.slice(0,-1)),Me=t=>Au.test(t),Po=()=>!0,Nu=t=>zu.test(t)&&!Vu.test(t),yr=()=>!1,Ru=t=>Bu.test(t),Uu=t=>Hu.test(t),ju=t=>!F(t)&&!$(t),Gu=t=>He(t,Mo,yr),F=t=>Co.test(t),Je=t=>He(t,Lo,Nu),To=t=>He(t,ef,G),qu=t=>He(t,Oo,Po),Yu=t=>He(t,Fo,yr),_o=t=>He(t,Io,yr),Zu=t=>He(t,Do,Uu),on=t=>He(t,$o,Ru),$=t=>ko.test(t),Tt=t=>et(t,Lo),Xu=t=>et(t,Fo),Ko=t=>et(t,Io),Qu=t=>et(t,Mo),Wu=t=>et(t,Do),ln=t=>et(t,$o,!0),Ju=t=>et(t,Oo,!0),He=(t,e,n)=>{const r=Co.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},et=(t,e,n=!1)=>{const r=ko.exec(t);return r?r[1]?e(r[1]):n:!1},Io=t=>t==="position"||t==="percentage",Do=t=>t==="image"||t==="url",Mo=t=>t==="length"||t==="size"||t==="bg-size",Lo=t=>t==="length",ef=t=>t==="number",Fo=t=>t==="family-name",Oo=t=>t==="number"||t==="weight",$o=t=>t==="shadow",tf=Fu(()=>{const t=le("color"),e=le("font"),n=le("text"),r=le("font-weight"),i=le("tracking"),s=le("leading"),o=le("breakpoint"),l=le("container"),d=le("spacing"),u=le("radius"),f=le("shadow"),h=le("inset-shadow"),p=le("text-shadow"),b=le("drop-shadow"),g=le("blur"),y=le("perspective"),v=le("aspect"),w=le("ease"),C=le("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...P(),$,F],N=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],k=()=>[$,F,d],L=()=>[Ve,"full","auto",...k()],K=()=>[Be,"none","subgrid",$,F],O=()=>["auto",{span:["full",Be,$,F]},Be,$,F],q=()=>[Be,"auto",$,F],Z=()=>["auto","min","max","fr",$,F],m=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...k()],T=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],j=()=>[Ve,"screen","full","dvw","lvw","svw","min","max","fit",...k()],E=()=>[Ve,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],x=()=>[t,$,F],B=()=>[...P(),Ko,_o,{position:[$,F]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",Qu,Gu,{size:[$,F]}],re=()=>[vr,Tt,Je],W=()=>["","none","full",u,$,F],ne=()=>["",G,Tt,Je],he=()=>["solid","dashed","dotted","double"],It=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[G,vr,Ko,_o],H=()=>["","none",g,$,F],ve=()=>["none",G,$,F],ye=()=>["none",G,$,F],Le=()=>[G,$,F],pn=()=>[Ve,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[Po],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[ju],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",G],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,F,$,v]}],container:["container"],columns:[{columns:[G,F,$,l]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Be,"auto",$,F]}],basis:[{basis:[Ve,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,Ve,"auto","initial","none",F]}],grow:[{grow:["",G,$,F]}],shrink:[{shrink:["",G,$,F]}],order:[{order:[Be,"first","last","none",$,F]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...m(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...m()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":m()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],"inline-size":[{inline:["auto",...j()]}],"min-inline-size":[{"min-inline":["auto",...j()]}],"max-inline-size":[{"max-inline":["none",...j()]}],"block-size":[{block:["auto",...E()]}],"min-block-size":[{"min-block":["auto",...E()]}],"max-block-size":[{"max-block":["none",...E()]}],w:[{w:[l,"screen",...T()]}],"min-w":[{"min-w":[l,"screen","none",...T()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,Tt,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ju,qu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,F]}],"font-family":[{font:[Xu,Yu,e]}],"font-features":[{"font-features":[F]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,$,F]}],"line-clamp":[{"line-clamp":[G,"none",$,To]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",$,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",$,Je]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[G,"auto",$,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Be,$,F],radial:["",$,F],conic:[Be,$,F]},Wu,Zu]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,$,F]}],"outline-w":[{outline:["",G,Tt,Je]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",f,ln,on]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",h,ln,on]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[G,Je]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",p,ln,on]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[G,$,F]}],"mix-blend":[{"mix-blend":[...It(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":It()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[$,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,F]}],filter:[{filter:["","none",$,F]}],blur:[{blur:H()}],brightness:[{brightness:[G,$,F]}],contrast:[{contrast:[G,$,F]}],"drop-shadow":[{"drop-shadow":["","none",b,ln,on]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",G,$,F]}],"hue-rotate":[{"hue-rotate":[G,$,F]}],invert:[{invert:["",G,$,F]}],saturate:[{saturate:[G,$,F]}],sepia:[{sepia:["",G,$,F]}],"backdrop-filter":[{"backdrop-filter":["","none",$,F]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[G,$,F]}],"backdrop-contrast":[{"backdrop-contrast":[G,$,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,$,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,$,F]}],"backdrop-invert":[{"backdrop-invert":["",G,$,F]}],"backdrop-opacity":[{"backdrop-opacity":[G,$,F]}],"backdrop-saturate":[{"backdrop-saturate":[G,$,F]}],"backdrop-sepia":[{"backdrop-sepia":["",G,$,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",$,F]}],ease:[{ease:["linear","initial",w,$,F]}],delay:[{delay:[G,$,F]}],animate:[{animate:["none",C,$,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,$,F]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[$,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pn()}],"translate-x":[{"translate-x":pn()}],"translate-y":[{"translate-y":pn()}],"translate-z":[{"translate-z":pn()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,F]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[G,Tt,Je,To]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function A(...t){return tf(t.filter(Boolean))}const nf=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z"})),rf=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z"})),sf=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM20 4h2v16h-2zM2 4h2v16H2zm9 2h2v8h-2zm0 10h2v2h-2z"})),Ao=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z"})),of={Info:nf,Warning:rf,Error:sf,Done:Ao,Check:Ao,Close:t=>c.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:c.jsx("path",{d:"M5 5h2v2H5zM7 7h2v2H7zM9 9h2v2H9zM11 11h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM17 17h2v2h-2zM17 5h2v2h-2zM15 7h2v2h-2zM13 9h2v2h-2zM9 13h2v2H9zM7 15h2v2H7zM5 17h2v2H5z"})}),"Chevron Up":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 8h-2v2h2V8Zm-2 2H9v2h2v-2Zm4 0h-2v2h2v-2Zm-6 2H7v2h2v-2Zm8 0h-2v2h2v-2ZM7 14H5v2h2v-2Zm12 0h-2v2h2v-2Z"})),"Chevron Down":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 16h-2v-2h2v2Zm-2-2H9v-2h2v2Zm4 0h-2v-2h2v2Zm-6-2H7v-2h2v2Zm8 0h-2v-2h2v2ZM7 10H5V8h2v2Zm12 0h-2V8h2v2Z"})),App:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 6h16v2H4zm0 12h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM5 5h2v2H5zm3 0h2v2H8z"})),Cancel:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 11h16v2H4z"})),Fullscreen:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 13h16v-2H4zm7-8h2V3h-2zM9 7h4V5H9zm4 0h2V5h-2zm2 2h2V7h-2zM7 9h8V7H7zm4 10h2v2h-2zm-2-2h4v2H9zm4 0h2v2h-2zm2-2h2v2h-2zm-8 0h8v2H7z"})),Add:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 11h7v2h-7v7h-2v-7H4v-2h7V4h2v7Z"}))},lf={L:56,S:24},fe=({name:t,size:e="L",className:n="",onClick:r,color:i,role:s,"aria-label":o})=>{const l=of[t];if(!l)return null;const d=lf[e];return c.jsx("span",{className:A("icon",s&&"icon--button",n),onClick:r,role:s,"aria-label":o||`${t} icon`,style:i?{color:i}:void 0,children:c.jsx(l,{width:d,height:d,className:"icon__svg"})})};function xr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function wr(t,e){const[n,r]=a.useState(!1),i=a.useRef(!1),s=a.useCallback(()=>{if(!(i.current||!e)){if(xr()){e();return}i.current=!0,r(!0)}},[e]),o=a.useCallback(l=>{l.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:s,handleAnimationEnd:o}}const af={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},df={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function cf(t,e){return t||af[e||"info"]||"default"}function uf(t){return t==="full-width"?"full-width":"floating"}const zo=a.forwardRef(({color:t,size:e="floating",type:n,title:r,children:i,actions:s,onClose:o,onClickHere:l,className:d},u)=>{const f=cf(t,n),h=uf(e),{isClosing:p,triggerClose:b,handleAnimationEnd:g}=wr("alert-exit",o),y=[...s||[],...l?[{label:"Click here",onClick:l}]:[]];return c.jsxs("div",{ref:u,className:A("relative w-full flex flex-col gap-4 p-4","font-dos text-dos-text-sm","border border-dos-border-default rounded-dos-base","eidotter-alert",`eidotter-alert--${f}`,h==="floating"&&"max-w-[1216px]",h==="full-width"&&"eidotter-alert--full-width max-w-none",p&&"eidotter-alert--closing",d),onAnimationEnd:g,role:"alert","data-color":f,"data-size":h,children:[c.jsx("div",{className:"eidotter-alert__icon",children:c.jsx(fe,{name:df[f]||"Info",size:"S","aria-label":`${f} alert`})}),c.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",o&&"pr-6"),children:[(r||i)&&c.jsxs("div",{className:"flex flex-col gap-1",children:[r&&c.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&c.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),y.length>0&&c.jsx("div",{className:"flex flex-row gap-3",children:y.map((v,w)=>c.jsxs(oe,{className:"eidotter-alert__action",onPress:v.onClick,children:[v.label,v.icon]},w))})]}),o&&c.jsx(oe,{className:"eidotter-alert__close",onPress:b,"aria-label":"Close alert",children:c.jsx(fe,{name:"Close",size:"S"})})]})});zo.displayName="Alert";const Vo=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:s})=>{const[o,l]=a.useState(n);a.useEffect(()=>{l(n)},[n]);const d=()=>{const u=!o;l(u),s==null||s(u)};return c.jsxs("div",{className:A("w-full border border-dos-border-default text-cga-amber font-dos","eidotter-section",o&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[c.jsxs(oe,{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onPress:d,"aria-expanded":o,children:[c.jsx("div",{className:"flex-1 text-base leading-6",children:t}),c.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:c.jsx(fe,{name:o?"Chevron Up":"Chevron Down",size:"S"})})]}),c.jsx("div",{className:"eidotter-section__content",inert:o?void 0:!0,children:e})]})},ff=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=a.useState(e),i=(s,o)=>{r(o?s:-1)};return c.jsx("div",{className:A("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((s,o)=>c.jsx(Vo,{title:s.title,defaultExpanded:o===e,onToggle:l=>i(o,l),children:s.content},o))})},Bo={xs:"text-dos-text-xs px-2 py-1 min-h-6 gap-1",sm:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",md:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",lg:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2",xl:"text-dos-text-xl px-5 py-3 min-h-11 gap-2",small:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",medium:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",large:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2"},Ho={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},an=a.forwardRef(({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:s,onPress:o,onClick:l,className:d,fullWidth:u=!1,iconOnly:f=!1,...h},p)=>{const b=r||i;return c.jsxs(oe,{ref:p,type:n,isDisabled:b,isPending:i||void 0,onPress:g=>{if(o)o(g);else if(l){const y={type:"press",target:g.target,currentTarget:g.target,preventDefault:()=>{},stopPropagation:()=>{}};l(y)}},className:A("inline-flex items-center justify-center relative","border-2 border-solid","font-dos leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",Bo[e]||Bo.md,Ho[t]||Ho.primary,b&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",u&&"w-full",f&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",d),"data-loading":i||void 0,"data-variant":t,...h,children:[i&&c.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),c.jsx("span",{className:A("inline-flex items-center justify-center",i&&"opacity-70"),children:s})]})});an.displayName="Button";const No={default:"eidotter-card--default",elevated:"eidotter-card--elevated",bordered:"eidotter-card--bordered",glow:"eidotter-card--glow",interactive:"eidotter-card--interactive",minimal:"eidotter-card--minimal",callout:"eidotter-card--callout"},Ro=a.forwardRef(({title:t,children:e,footer:n,variant:r="default",className:i,...s},o)=>c.jsxs("div",{ref:o,className:A("border-2 border-solid border-dos-border-default","font-dos text-cga-amber","eidotter-card",No[r]||No.default,i),...s,children:[t&&c.jsx("div",{className:"eidotter-card__header px-3 py-2 border-b border-dos-text-disabled bg-cga-amber-dim",children:c.jsx("span",{className:"text-dos-text-secondary text-dos-text-md uppercase",children:t})}),c.jsx("div",{className:"p-3",children:e}),n&&c.jsx("div",{className:"eidotter-card__footer px-3 py-2 border-t border-dos-text-disabled bg-dos-bg-secondary",children:n})]}));Ro.displayName="Card";const Uo=a.forwardRef(({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:s=!1,size:o="md",name:l,value:d,className:u,"aria-label":f,...h},p)=>c.jsx(Ud,{ref:p,isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:s,name:l,value:d,"aria-label":f||i,className:A("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",o==="sm"?"text-dos-text-xs":"text-dos-text-sm","eidotter-checkbox",s&&"opacity-60 cursor-not-allowed",u),"data-size":o,...h,children:({isSelected:b,isIndeterminate:g})=>c.jsxs(c.Fragment,{children:[c.jsx("span",{className:A("eidotter-checkbox__box",b&&"eidotter-checkbox__box--checked",g&&"eidotter-checkbox__box--indeterminate"),children:g?"[-]":b?"[X]":"[ ]"}),i&&c.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}));Uo.displayName="Checkbox";const hf=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:s=!1})=>{const[o,l]=a.useState(""),d=a.useRef(null);a.useEffect(()=>{n&&d.current&&d.current.focus()},[n]);const u=h=>{h.key==="Enter"&&o.trim()&&!s&&(e(o.trim()),l(""))},f=()=>{!s&&d.current&&d.current.focus()};return c.jsxs("div",{className:`command-prompt ${s?"command-prompt--disabled":""} ${r}`.trim(),onClick:f,role:"textbox","aria-label":"Command prompt",children:[c.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),c.jsxs("div",{className:"command-prompt__input-wrapper",children:[c.jsx("input",{ref:d,className:"command-prompt__input",value:o,onChange:h=>l(h.target.value),onKeyDown:u,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:s,"aria-label":"Command input",size:o.length||1}),c.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},dn="█",cn="░",Er="▓",pf="▒",jo={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},Go={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function mf(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),s=r-i,o=(i>=1?Er:"")+(i>=2?pf:"");return{filled:dn.repeat(t),transition:o,empty:cn.repeat(s)}}return{filled:dn.repeat(t),transition:"",empty:cn.repeat(r)}}const Sr=a.forwardRef(({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:s="block",blocks:o=20,showLabel:l=!1,fullWidth:d=!1,glow:u=!1,valueText:f,className:h,"aria-label":p,...b},g)=>{const y=Math.min(80,Math.max(3,Math.floor(o))),v=Math.min(100,Math.max(0,t/e*100)),w=Math.round(v/100*y),C=A("inline-flex items-center gap-2 font-dos","eidotter-progress",jo[i]||jo.md,Go[r]||Go.default,u&&"eidotter-progress--glow",d&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",s==="bordered"&&"eidotter-progress--bordered",h),S={"aria-label":p||`Progress: ${n?"loading":`${Math.round(v)}%`}`};n||(S["aria-valuenow"]=t,S["aria-valuemin"]=0,S["aria-valuemax"]=e),f&&(S["aria-valuetext"]=f);const P=s==="bordered",D=A("eidotter-progress__track",P&&"eidotter-progress__track--borderless");if(n){const L=cn.repeat(y);return c.jsxs("div",{ref:g,className:C,role:"progressbar",...S,...b,children:[c.jsxs("span",{className:D,children:[P&&c.jsx("span",{className:"eidotter-progress__bracket",children:"["}),c.jsxs("span",{className:"eidotter-progress__bar",children:[c.jsx("span",{className:"eidotter-progress__empty",children:L}),c.jsxs("span",{className:"eidotter-progress__scanner",children:[Er,dn,Er]})]}),P&&c.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),l&&c.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const N=dn.repeat(y),z=cn.repeat(y),{transition:k}=mf(w,y,s);return c.jsxs("div",{ref:g,className:C,role:"progressbar",...S,...b,children:[c.jsxs("span",{className:D,children:[P&&c.jsx("span",{className:"eidotter-progress__bracket",children:"["}),c.jsxs("span",{className:"eidotter-progress__bar",children:[c.jsx("span",{className:"eidotter-progress__empty",children:z}),c.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(v)},children:N}),k&&c.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(v)},children:k})]}),P&&c.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),l&&c.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(v),"%"]})]})});Sr.displayName="Progress";const qo={default:"eidotter-input--default",error:"eidotter-input--error"},Yo=a.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:s,onChange:o,isRequired:l,...d},u)=>{const f=t==="error";return c.jsxs(hu,{isDisabled:i,isInvalid:f,isRequired:l,className:A("eidotter-text-field","flex flex-col gap-1",s),children:[e&&c.jsx(wd,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),c.jsx(qd,{ref:u,className:A("w-full bg-transparent text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",qo[t]||qo.default,i&&"eidotter-input--disabled"),onChange:o,...d}),n&&!f&&c.jsx(Zi,{slot:"description",className:"text-dos-text-muted font-dos text-xs",children:n}),r&&f&&c.jsx(Zi,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});Yo.displayName="Input";const bf=({size:t="md",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:s=!1,closeable:o=!1,children:l,onMinimize:d,onMaximize:u,onClose:f,onFocus:h,className:p="",autoFocus:b=!1})=>{const y={sm:"small",md:"medium",lg:"large"}[t]??t,[v,w]=a.useState(n),[C,S]=a.useState(!1),P=a.useRef(null);a.useEffect(()=>{b&&P.current&&P.current.focus()},[b]);const D=()=>{w("minimized"),d==null||d()},N=()=>{S(!C),u==null||u()},z=()=>{f==null||f()},k=()=>{w("active"),h==null||h()},L=K=>{K.altKey&&K.key==="F4"&&o&&(K.preventDefault(),z())};return v==="minimized"?c.jsx(oe,{className:`terminal terminal--minimized ${p}`.trim(),onPress:k,"aria-label":`Restore ${e} window`,children:c.jsxs("div",{className:"terminal__taskbar-item",children:[c.jsx(fe,{name:"App",size:"S"}),c.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):c.jsxs("div",{ref:P,className:`terminal terminal--${y} terminal--${v} ${C?"terminal--maximized":""} ${p}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:k,onKeyDown:L,children:[c.jsxs("div",{className:"terminal__title-bar",children:[c.jsxs("div",{className:"terminal__title",children:[c.jsx(fe,{name:"App",size:"S","aria-hidden":"true"}),c.jsx("span",{className:"terminal__title-text",children:e})]}),(i||s||o)&&c.jsxs("div",{className:"terminal__controls",children:[i&&c.jsx(oe,{className:"terminal__control terminal__control--minimize",onPress:D,"aria-label":"Minimize window",children:c.jsx(fe,{name:"Cancel",size:"S"})}),s&&c.jsx(oe,{className:"terminal__control terminal__control--maximize",onPress:N,"aria-label":C?"Restore window":"Maximize window",children:c.jsx(fe,{name:C?"Fullscreen":"Add",size:"S"})}),o&&c.jsx(oe,{className:"terminal__control terminal__control--close",onPress:z,"aria-label":"Close window",children:c.jsx(fe,{name:"Close",size:"S"})})]})]}),c.jsx("div",{className:"terminal__content",role:"main",children:l||c.jsx("div",{className:"terminal__default-content",children:c.jsxs("div",{className:"terminal__prompt",children:[c.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),c.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&c.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},Zo={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},gf={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Xo=a.forwardRef(({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onSelectionChange:s,onTabChange:o,className:l,...d},u)=>{var v,w,C;const f=a.useRef(null),h=a.useRef(r??i??((v=t[0])==null?void 0:v.id)??""),[p,b]=a.useState(r??i??((w=t[0])==null?void 0:w.id)??""),g=s??o,y=a.useCallback(S=>{const P=String(S),D=r??h.current;h.current=P,b(P),g==null||g(P,D)},[r,g]);return a.useLayoutEffect(()=>{const S=f.current;if(!S||e!=="underline")return;const P=()=>{const N=S.querySelector('[aria-selected="true"]');N&&(S.style.setProperty("--indicator-left",`${N.offsetLeft}px`),S.style.setProperty("--indicator-width",`${N.offsetWidth}px`))};P();const D=new ResizeObserver(P);return D.observe(S),()=>D.disconnect()},[r,p,e]),c.jsxs(iu,{ref:u,selectedKey:r,defaultSelectedKey:i??((C=t[0])==null?void 0:C.id),onSelectionChange:y,className:A("eidotter-tabs",gf[e],Zo[n]||Zo.md,l),children:[c.jsxs("div",{ref:f,className:"relative",children:[c.jsx(ou,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":d["aria-label"],children:t.map(S=>c.jsx(au,{id:S.id,isDisabled:S.disabled,className:({isSelected:P,isDisabled:D})=>A("eidotter-tabs__tab",P&&"eidotter-tabs__tab--active",D&&"eidotter-tabs__tab--disabled"),children:S.label},S.id))}),e==="underline"&&c.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(S=>c.jsx(du,{id:S.id,className:"hidden"},S.id))]})});Xo.displayName="Tabs";const Qo={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Wo={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},dt=a.forwardRef(({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...s},o)=>c.jsxs("span",{ref:o,className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",Qo[e]||Qo.md,Wo[t]||Wo.default,i),"data-variant":t,...s,children:[n&&c.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),c.jsx("span",{className:"eidotter-badge__content",children:r})]}));dt.displayName="Badge";const Jo=a.forwardRef(({checked:t,defaultChecked:e=!1,onChange:n,onCheckedChange:r,disabled:i=!1,size:s="md",type:o="default",label:l,name:d,value:u,className:f,...h},p)=>c.jsx(Qc,{ref:p,isSelected:t,defaultSelected:e,onChange:n??r,isDisabled:i,name:d,value:u,className:A("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",i&&"opacity-50 cursor-not-allowed",f),"data-size":s,"data-type":o,...h,children:({isSelected:b})=>c.jsxs(c.Fragment,{children:[c.jsx("span",{className:A("eidotter-switch__track",b&&"eidotter-switch__track--checked",o==="slim"&&"eidotter-switch__track--slim",s==="sm"&&"eidotter-switch__track--sm"),children:c.jsx("span",{className:"eidotter-switch__thumb"})}),l&&c.jsx("span",{className:"text-[var(--color-cga-amber)]",children:l})]})}));Jo.displayName="Switch";const un="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",el=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:s})=>{const o=(l,d)=>{const u=c.jsxs(c.Fragment,{children:[n&&d&&c.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),c.jsx("span",{children:l.label})]});return l.onClick?c.jsx(oe,{className:A(un,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onPress:l.onClick,children:u}):l.href?i?c.jsx(i,{href:l.href,className:un,children:u}):c.jsx("a",{href:l.href,className:un,children:u}):c.jsx("span",{className:un,children:u})};return c.jsx("nav",{"aria-label":"Breadcrumb",className:A("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",s),children:c.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((l,d)=>{const u=d===t.length-1,f=d<t.length-1;return c.jsxs("li",{className:"flex items-center gap-2",children:[o(l,u),f&&c.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${l.href??l.label}-${d}`)}),t.length>0&&c.jsx("li",{className:"flex items-center gap-2",children:c.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),c.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:c.jsx("span",{className:"text-cga-amber",children:e})})]})})},vf=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:s=1,className:o,onPowerStateChange:l,onPowerOn:d,onPowerOff:u})=>{const f=a.useRef(i),[h,p]=a.useState(i?"on":"off");a.useEffect(()=>{const C=f.current;if(f.current=i,C!==i){const S=i?"powering-on":"powering-off";p(S),l==null||l(S)}},[i,l]);const b=()=>{h==="powering-on"?(p("on"),l==null||l("on"),d==null||d()):h==="powering-off"&&(p("off"),l==null||l("off"),u==null||u())},g=C=>{C.animationName!=="retro-power-on"&&C.animationName!=="retro-power-off"||b()},y=C=>{C.propertyName==="opacity"&&(h!=="powering-on"&&h!=="powering-off"||b())},v={"--retro-intensity":s},w=h!=="off";return c.jsx("div",{className:A("fixed inset-0 pointer-events-none z-[9999]","eidotter-retro-effects",h==="powering-off"&&"eidotter-retro-effects--powering-off",h==="powering-on"&&"eidotter-retro-effects--powering-on",h==="off"&&"eidotter-retro-effects--off",o),style:v,"aria-hidden":"true",onAnimationEnd:g,onTransitionEnd:y,children:w&&c.jsxs(c.Fragment,{children:[t&&c.jsx("div",{className:"eidotter-retro-effects__scanlines"}),e&&c.jsx("div",{className:"eidotter-retro-effects__glow"}),n&&c.jsx("div",{className:"eidotter-retro-effects__flicker"}),r&&c.jsx("div",{className:"eidotter-retro-effects__bloom"})]})})},yf={sm:"small",md:"medium",lg:"large",small:"small",medium:"medium",large:"large"},xf={circle:"eidotter-timeline-node--circle",square:"eidotter-timeline-node--square",diamond:"eidotter-timeline-node--diamond"},wf={default:"eidotter-timeline-node--default",primary:"eidotter-timeline-node--primary",secondary:"eidotter-timeline-node--secondary",accent:"eidotter-timeline-node--accent"},Ef={left:"eidotter-timeline-node--label-left",right:"eidotter-timeline-node--label-right",top:"eidotter-timeline-node--label-top",bottom:"eidotter-timeline-node--label-bottom"},Ne=a.forwardRef(({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:s="md",className:o,onClick:l,...d},u)=>{const f=yf[s]??"medium",h=()=>{l&&l()},p=b=>{l&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),l())};return c.jsxs("div",{ref:u,className:A("inline-flex items-center gap-2 font-dos","eidotter-timeline-node",xf[t],wf[e],`eidotter-timeline-node--${f}`,Ef[i],n&&"eidotter-timeline-node--active",l&&"eidotter-timeline-node--interactive",o),onClick:h,onKeyDown:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-pressed":l?n:void 0,...d,children:[r&&i==="left"&&c.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--left",children:r}),r&&i==="top"&&c.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--top",children:r}),c.jsx("span",{className:"eidotter-timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&c.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--right",children:r}),r&&i==="bottom"&&c.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--bottom",children:r})]})});Ne.displayName="TimelineNode";const _t=["year","month","day","hour"];function Sf({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,s]=a.useState(e),[o,l]=a.useState([]),d=a.useRef(r);a.useEffect(()=>{d.current&&!r&&l([]),d.current=r},[r]);const u=t??i,f=_t.indexOf(u),h=f<_t.length-1,p=f>0,b=o.length>0?o[o.length-1].periodStart:null,g=a.useRef(r),y=a.useRef(h),v=a.useRef(f),w=a.useRef(o),C=a.useRef(n);a.useEffect(()=>{g.current=r,y.current=h,v.current=f,w.current=o,C.current=n});const S=a.useCallback(z=>{var k;g.current&&s(z),(k=C.current)==null||k.call(C,z)},[]),P=a.useCallback((z,k)=>{if(!g.current||!y.current)return;const L=_t[v.current+1];L!==void 0&&(l(K=>[...K,{periodStart:z,label:k}]),S(L))},[S]),D=a.useCallback(()=>{if(!g.current||w.current.length===0)return;const z=_t[v.current-1];z!==void 0&&(l(k=>k.slice(0,-1)),S(z))},[S]),N=a.useCallback(()=>{g.current&&(l([]),S("year"))},[S]);return{zoomLevel:u,canZoomIn:h,canZoomOut:p,breadcrumbs:o,currentPeriod:b,isDrillDownEnabled:r,drillDown:P,drillUp:D,reset:N}}function Cf({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=a.useState(e),s=t!==void 0,o=t!==void 0?t:r,l=a.useRef(o),d=a.useRef(s),u=a.useRef(n);a.useEffect(()=>{l.current=o,d.current=s,u.current=n});const f=a.useCallback(g=>{var y;d.current||i(g),(y=u.current)==null||y.call(u,g)},[]),h=a.useCallback(g=>{f(g)},[f]),p=a.useCallback(()=>{f(null)},[f]),b=a.useCallback(g=>{var y;d.current?(y=u.current)==null||y.call(u,l.current===g?null:g):i(v=>{var C;const w=v===g?null:g;return(C=u.current)==null||C.call(u,w),w})},[]);return{selectedEntryId:o,select:h,deselect:p,toggle:b}}const kf=["January","February","March","April","May","June","July","August","September","October","November","December"],Cr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fn(t){return new Date(t).getUTCFullYear()}function kr(t){return new Date(t).getUTCMonth()}function tl(t){return new Date(t).getUTCDate()}function Pf(t){return new Date(t).getUTCHours()}function Tf(t){return String(t)}function _f(t,e){return`${kf[e]} ${t}`}function Kf(t,e,n){return`${Cr[e]} ${n}`}function If(t,e,n,r){const i=r>=12?"pm":"am",s=r===0?12:r>12?r-12:r;return`${Cr[e]} ${n}, ${s}${i}`}function Df(t){const e=new Date(t),n=Cr[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),s=e.getUTCHours(),o=e.getUTCMinutes(),l=s>=12?"pm":"am",d=s===0?12:s>12?s-12:s,u=o>0?`:${String(o).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${d}${u}${l}`}function Mf(t){return new Date(Date.UTC(t,0,1)).toISOString()}function Lf(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function Ff(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function Of(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function hn(t,e,n,r,i){const s=new Map,o=[];for(const l of t){const d=e(l),u=s.get(d);u?u.push(l):(s.set(d,[l]),o.push(d))}o.sort((l,d)=>i==="asc"?l.localeCompare(d):d.localeCompare(l));for(const[,l]of s)l.sort((d,u)=>{const f=d.date.localeCompare(u.date);return i==="asc"?f:-f});return o.map(l=>({label:n(l),periodStart:r(l),entries:s.get(l)??[]}))}function $f(t){return String(fn(t.date))}function Af(t){const e=fn(t.date),n=kr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function zf(t){const e=fn(t.date),n=kr(t.date),r=tl(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function Vf(t){const e=fn(t.date),n=kr(t.date),r=tl(t.date),i=Pf(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function nl(t){return{year:parseInt(t)}}function rl(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function il(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function sl(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const Bf={year:4,month:7,day:10};function Hf(t,e,n){if(e===null||n==="hour")return t;const r=Bf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(s=>s.periodStart.slice(0,r)===i)}function Nf(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return hn(r,$f,i=>{const{year:s}=nl(i);return Tf(s)},i=>{const{year:s}=nl(i);return Mf(s)},n);case"month":return hn(r,Af,i=>{const{year:s,month:o}=rl(i);return _f(s,o)},i=>{const{year:s,month:o}=rl(i);return Lf(s,o)},n);case"day":return hn(r,zf,i=>{const{year:s,month:o,day:l}=il(i);return Kf(s,o,l)},i=>{const{year:s,month:o,day:l}=il(i);return Ff(s,o,l)},n);case"hour":return hn(r,Vf,i=>{const{year:s,month:o,day:l,hour:d}=sl(i);return If(s,o,l,d)},i=>{const{year:s,month:o,day:l,hour:d}=sl(i);return Of(s,o,l,d)},n)}}const Rf=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:s,breadcrumbs:o=[],onBreadcrumbClick:l})=>{const d=o.length>0;return c.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[c.jsx(an,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),d?c.jsx(el,{trail:[{label:"ALL",onClick:s},...o.slice(0,-1).map((u,f)=>({label:u.label,onClick:()=>l==null?void 0:l(f)}))],currentLabel:o[o.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):c.jsx(oe,{className:"timeline-zoom-controls__level",onPress:s,"aria-label":`Current zoom: ${t}. Click to reset.`,children:c.jsx(dt,{variant:"accent",size:"medium",children:t.toUpperCase()})}),c.jsx(an,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},Pr=({children:t})=>c.jsxs("div",{className:"timeline-axis",children:[c.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),c.jsx("div",{className:"timeline-axis__content",children:t})]}),ol=a.memo(({buckets:t,onBucketClick:e})=>c.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>c.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?c.jsxs(oe,{className:"timeline-view__bucket-button",onPress:()=>e(n),children:[c.jsx("div",{className:"timeline-view__node",children:c.jsx(Ne,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),c.jsx("div",{className:"timeline-view__content",children:c.jsxs(dt,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"timeline-view__node",children:c.jsx(Ne,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),c.jsx("div",{className:"timeline-view__content",children:c.jsxs(dt,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));ol.displayName="YearView";const Kt=a.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:s})=>{const o=typeof t.content=="string",l=t.content!=null;return c.jsxs("div",{className:A("eidotter-timeline-card",e&&"eidotter-timeline-card--selected",n&&"eidotter-timeline-card--expanded"),children:[c.jsxs(oe,{className:"eidotter-timeline-card__trigger",onPress:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[c.jsxs("div",{className:"eidotter-timeline-card__header",children:[t.type&&c.jsx("span",{className:"eidotter-timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&c.jsx("span",{className:"eidotter-timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),c.jsx("p",{className:"eidotter-timeline-card__title",children:t.title}),!n&&o&&(()=>{const d=String(t.content);return c.jsxs("p",{className:"eidotter-timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),s]}),l&&c.jsx("div",{className:"eidotter-timeline-card__body",children:c.jsx("div",{className:"eidotter-timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&c.jsx("div",{className:"eidotter-timeline-card__footer",children:i})]})});Kt.displayName="TimelineEntryCard";const ll=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>c.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>c.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[c.jsx("div",{className:"timeline-view__node",children:c.jsx(Ne,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),c.jsx("div",{className:"timeline-view__content",children:i.entries.map(s=>c.jsx(Kt,{entry:s,isSelected:e===s.id,isExpanded:e===s.id,onSelect:n},s.id))})]},i.periodStart))}));ll.displayName="MonthView";const al={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Tr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:s=!1,disabled:o=!1,onClick:l,onClose:d,className:u,"aria-label":f,...h})=>{const p=!!l&&!o,{isClosing:b,triggerClose:g,handleAnimationEnd:y}=wr("tag-exit",d),v=S=>{o||((S.key==="Enter"||S.key===" ")&&l&&(S.preventDefault(),l(S)),(S.key==="Delete"||S.key==="Backspace")&&s&&d&&(S.preventDefault(),g()))},w=()=>{o||g()},C=r?{"--tag-color":"var("+r+")"}:void 0;return c.jsxs("span",{className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",al[n]||al.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",o&&"opacity-50 cursor-not-allowed",b&&"eidotter-tag--closing",p&&"cursor-pointer",u),style:C,onClick:p?S=>!o&&(l==null?void 0:l(S)):void 0,onKeyDown:v,onAnimationEnd:y,"aria-label":f,"aria-selected":i||void 0,"aria-disabled":o||void 0,"data-variant":e,...p?{role:"button",tabIndex:0}:{},...h,children:[c.jsx("span",{className:"eidotter-tag__content",children:t}),s&&c.jsx(oe,{className:"eidotter-tag__close","aria-label":"Remove "+(typeof t=="string"?t:"tag"),excludeFromTabOrder:!0,onPress:w,isDisabled:o,children:"[x]"})]})},dl={tight:"gap-1",normal:"gap-2",loose:"gap-3"},_r=({children:t,gap:e="normal",wrap:n=!0,className:r,"aria-label":i,...s})=>c.jsx("div",{className:A("flex",n?"flex-wrap":"flex-nowrap",dl[e]||dl.normal,r),role:"group","aria-label":i,...s,children:t}),cl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>c.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>c.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[c.jsx("div",{className:"timeline-view__node",children:c.jsx(Ne,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),c.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>c.jsx(Kt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?c.jsx(_r,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(s=>c.jsx(Tr,{size:"small",variant:"outlined",children:s},s))}):void 0},i.id))})]},r.periodStart))}));cl.displayName="DayView";const ul=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>c.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>c.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[c.jsx("div",{className:"timeline-view__node",children:c.jsx(Ne,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),c.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>c.jsxs(Kt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:c.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&c.jsx(_r,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(s=>c.jsx(Tr,{size:"small",variant:"outlined",children:s},s))}),i.type&&c.jsx(dt,{variant:"default",size:"small",children:i.type})]}),children:[c.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:Df(i.date)}),c.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));ul.displayName="HourView";const Uf=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return c.jsx(ol,{buckets:e,onBucketClick:i});case"month":return c.jsx(ll,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return c.jsx(cl,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return c.jsx(ul,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},jf=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:s,defaultSelectedEntryId:o,onSelectEntry:l,sortOrder:d="desc",scrollToZoom:u=!0,keyboardShortcuts:f=!0,...h})=>{var B;const p=e==="static",b=a.useRef(null),g=a.useRef(null),[y,v]=a.useState(""),{zoomLevel:w,canZoomIn:C,canZoomOut:S,breadcrumbs:P,currentPeriod:D,isDrillDownEnabled:N,drillDown:z,drillUp:k,reset:L}=Sf({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:K,toggle:O,deselect:q}=Cf({selectedEntryId:s,defaultSelectedEntryId:o,onSelectEntry:l}),Z=a.useMemo(()=>Nf(t,w,d),[t,w,d]),m=P.length>0?["year","month","day","hour"][P.length-1]:null,_=a.useMemo(()=>D&&m?Hf(Z,D,m):Z,[Z,D,m]);a.useEffect(()=>{if(p||!u)return;const R=b.current;if(!R)return;let Q=null;const re=W=>{!W.ctrlKey&&!W.metaKey||(W.preventDefault(),Q===null&&(Q=requestAnimationFrame(()=>{W.deltaY>0&&k(),Q=null})))};return R.addEventListener("wheel",re,{passive:!1}),()=>{R.removeEventListener("wheel",re),Q!==null&&cancelAnimationFrame(Q)}},[p,u,N,C,k]),a.useEffect(()=>{if(p||!f)return;const R=Q=>{var W;if(!((W=b.current)!=null&&W.contains(document.activeElement))&&document.activeElement!==b.current)return;const re=Q.ctrlKey||Q.metaKey;re&&Q.key==="-"?(Q.preventDefault(),k()):re&&Q.key==="0"?(Q.preventDefault(),L(),v("Showing all years")):Q.key==="Escape"&&(Q.preventDefault(),q())};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[p,f,k,L,q]);const V=a.useCallback(R=>{C&&(z(R.periodStart,R.label),v(`Showing ${w==="year"?"months":w==="month"?"days":"hours"} in ${R.label}`))},[C,z,w]),T=a.useRef(P.length);a.useEffect(()=>{var R;if(P.length!==T.current){T.current=P.length;const Q=(R=g.current)==null?void 0:R.querySelector('.eidotter-timeline-card__trigger, .timeline-view__bucket-button, .eidotter-timeline-node[role="button"]');Q&&requestAnimationFrame(()=>Q.focus())}},[P.length]);const j=a.useMemo(()=>p?[...t].sort((R,Q)=>{const re=R.date.localeCompare(Q.date);return d==="desc"?-re:re}):t,[p,t,d]),E=a.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),x=R=>{try{return E.format(new Date(R))}catch{return R}};return c.jsxs("div",{ref:b,...h,className:A("font-dos text-cga-amber bg-dos-bg-primary p-4 min-h-[200px]","eidotter-timeline-container",p&&"eidotter-timeline-container--static",h.className),role:"region","aria-label":h["aria-label"]??"Timeline",tabIndex:p?void 0:0,children:[c.jsx("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:y}),!p&&c.jsx(Rf,{zoomLevel:w,canZoomIn:C,canZoomOut:S,onZoomIn:()=>{},onZoomOut:k,onReset:L,breadcrumbs:N?P:[],onBreadcrumbClick:R=>{const Q=P.length-1-R;for(let re=0;re<Q;re++)k()}}),c.jsx("div",{ref:g,children:t.length===0?c.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[c.jsx("p",{children:"C:\\TIMELINE> No entries found."}),c.jsx("p",{children:"_"})]}):p?c.jsx(Pr,{children:c.jsx("div",{className:"eidotter-timeline-container__static",role:"list","aria-label":"Timeline",children:j.map(R=>c.jsxs("div",{className:"eidotter-timeline-container__static-entry",role:"listitem",children:[c.jsx("div",{className:"timeline-view__node",children:c.jsx(Ne,{shape:"circle",size:"medium",variant:"default",label:x(R.date),labelPosition:"right"})}),c.jsx(Kt,{entry:R,isSelected:!1,isExpanded:!0})]},R.id))})}):_.length===0&&D?c.jsx(Pr,{children:c.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[c.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((B=P[P.length-1])==null?void 0:B.label)??"this period","."]}),c.jsx("p",{children:"_"})]})}):c.jsx(Pr,{children:c.jsx(Uf,{zoomLevel:w,buckets:_,selectedEntryId:K,onEntrySelect:O,onBucketClick:V})})})]})},fl=a.forwardRef(({isOpen:t,onOpenChange:e,onClose:n,title:r,children:i,footer:s,className:o},l)=>{const d=a.useRef(t),u=a.useRef(!1);a.useEffect(()=>{t!==d.current&&(d.current=t,u.current||(e==null||e(t),t||n==null||n()),u.current=!1)},[t,e,n]);const f=h=>{u.current=!0,e==null||e(h),h||n==null||n()};return c.jsx(pr,{isOpen:t,onOpenChange:f,isDismissable:!0,className:({isEntering:h,isExiting:p})=>A("eidotter-modal-overlay",h&&"eidotter-modal-overlay--entering",p&&"eidotter-modal-overlay--exiting"),children:c.jsx(ho,{className:({isEntering:h,isExiting:p})=>A("eidotter-modal",h&&"eidotter-modal--entering",p&&"eidotter-modal--exiting"),children:c.jsxs(fo,{ref:l,"aria-label":r,className:A("eidotter-modal__container outline-none",o),children:[c.jsxs("header",{className:"eidotter-modal__header",children:[c.jsx("h2",{className:"eidotter-modal__title",children:r}),c.jsx(oe,{className:"eidotter-modal__close",onPress:()=>f(!1),"aria-label":"Close modal",children:c.jsx(fe,{name:"Close",size:"S"})})]}),c.jsx("div",{className:"eidotter-modal__body",children:i}),s&&c.jsx("footer",{className:"eidotter-modal__footer",children:s})]})})})});fl.displayName="Modal";const Gf="░▒▓█│┤┐└┴┬├─┼",qf=4;function Kr(t,e){const{speed:n=40,characters:r=Gf,enabled:i=!0,delay:s=0}=e??{},[o,l]=a.useState(()=>{if(!i||xr())return t;let h="";for(let p=0;p<t.length;p++)t[p]===" "?h+=" ":h+=r[Math.floor(Math.random()*r.length)];return h}),[d,u]=a.useState(!1),f=a.useRef(0);return a.useEffect(()=>{if(!i||xr()){l(t),u(!1);return}let h=0,p=0,b=0,g=s;u(!0);const y=v=>{b||(b=v);const w=v-b;if(g>0){g-=w,b=v,f.current=requestAnimationFrame(y);return}if(w>=n){if(b=v,p++,p>=qf&&(h++,p=0),h>=t.length){l(t),u(!1);return}let C="";for(let S=0;S<t.length;S++)S<h?C+=t[S]:t[S]===" "?C+=" ":C+=r[Math.floor(Math.random()*r.length)];l(C)}f.current=requestAnimationFrame(y)};return f.current=requestAnimationFrame(y),()=>{f.current&&cancelAnimationFrame(f.current)}},[t,n,r,i,s]),{text:o,isScrambling:d}}const hl={sm:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},md:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},lg:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"},small:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},medium:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},large:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"}},Yf={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Zf={up:"▲",down:"▼",neutral:"►"},Xf={up:"increasing",down:"decreasing",neutral:"unchanged"},pl=a.forwardRef(({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:s=!1,className:o,...l},d)=>{const{text:u}=Kr(String(e),{speed:30,enabled:s}),f=s?u:String(e),h=hl[i]||hl.md;return c.jsxs("div",{ref:d,className:A("flex flex-col font-dos","eidotter-stat",h.root,o),...l,children:[c.jsx("span",{className:A("text-cga-amber uppercase tracking-wider leading-tight",h.label),children:t}),c.jsx("span",{className:A("text-dos-text-accent font-bold leading-none tabular-nums",h.value),children:f}),n&&c.jsxs("span",{className:A("inline-flex items-center gap-1 leading-none",Yf[n],h.trend),"aria-label":`Trend: ${Xf[n]}${r?`, ${r}`:""}`,children:[c.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Zf[n]}),r&&c.jsx("span",{className:"tabular-nums",children:r})]})]})});pl.displayName="Stat";const ml={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Qf=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:s="All",size:o="md",onChange:l,className:d,...u})=>{const[f,h]=a.useState(n),p=a.useRef(null),b=e!==void 0,g=b?e:f,y=t.filter(k=>!k.disabled).map(k=>k.id),v=g.length===0,w=a.useCallback(k=>{b||h(k),l==null||l(k)},[b,l]),C=a.useCallback(k=>{if(r==="single"){const L=g.includes(k)?[]:[k];w(L)}else{const L=g.includes(k)?g.filter(K=>K!==k):[...g,k];w(L)}},[r,g,w]),S=a.useCallback(()=>{w([])},[w]),P=a.useCallback(()=>p.current?Array.from(p.current.querySelectorAll("button:not([disabled])")):[],[]),D=a.useCallback(k=>{const L=P(),K=L.indexOf(k.target);if(K===-1)return;let O=null;switch(k.key){case"ArrowLeft":case"ArrowUp":k.preventDefault(),O=K>0?K-1:L.length-1;break;case"ArrowRight":case"ArrowDown":k.preventDefault(),O=K<L.length-1?K+1:0;break;case"Home":k.preventDefault(),O=0;break;case"End":k.preventDefault(),O=L.length-1;break}O!==null&&L[O].focus()},[P]),z=i&&v?"__all__":g.length>0?g[0]:i?"__all__":y[0]||null;return c.jsxs("div",{ref:p,className:A("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",ml[o]||ml.md,d),role:"toolbar",onKeyDown:D,...u,children:[i&&c.jsx(oe,{className:A("eidotter-filter-bar__item","eidotter-filter-bar__item--all",v&&"eidotter-filter-bar__item--active"),"aria-pressed":v,excludeFromTabOrder:z!=="__all__",onPress:S,children:c.jsx("span",{className:"eidotter-filter-bar__label",children:s})}),t.map(k=>{const L=g.includes(k.id),K=L&&k.color?{"--filter-bar-item-color":`var(${k.color})`}:void 0;return c.jsxs(oe,{className:A("eidotter-filter-bar__item",L&&"eidotter-filter-bar__item--active",k.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":L,excludeFromTabOrder:z!==k.id,isDisabled:k.disabled,onPress:()=>C(k.id),style:K,children:[c.jsx("span",{className:"eidotter-filter-bar__label",children:k.label}),k.count!==void 0&&c.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${k.count} items`,children:k.count})]},k.id)})]})},Ir=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Wf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:s=[],className:o,...l})=>{const[d,u]=a.useState(n),[f,h]=a.useState(new Set),p=a.useRef(n),b=a.useId(),g=a.useRef(null),y=r!==void 0,v=y?r:d;v&&(p.current=!0);const w=()=>{const S=!v;y||u(S),i==null||i(S)},C=S=>{var P;S.key==="Escape"&&v&&(S.stopPropagation(),w(),(P=g.current)==null||P.focus())};return c.jsxs("span",{className:A("eidotter-inline-expand",v&&"eidotter-inline-expand--expanded",o),onKeyDown:C,...l,children:[c.jsxs(oe,{ref:g,className:"eidotter-inline-expand__trigger","aria-expanded":v,"aria-controls":b,onPress:w,children:[t,c.jsx("span",{className:"eidotter-inline-expand__indicator","aria-hidden":"true",children:v?"[-]":"[+]"})]}),c.jsxs("span",{id:b,className:"eidotter-inline-expand__content",role:"region",inert:!v,children:[c.jsx("span",{className:"eidotter-inline-expand__inner",children:e}),s.length>0&&c.jsx("span",{className:"eidotter-inline-expand__sources",role:"list",children:s.map(S=>c.jsx("span",{className:"eidotter-inline-expand__source-item",role:"listitem",children:c.jsxs("a",{href:Ir(S.url)?S.url:void 0,className:"eidotter-inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${S.title} (opens external website)`,children:[p.current&&S.favicon&&Ir(S.favicon)&&!f.has(S.url)?c.jsx("img",{className:"eidotter-inline-expand__source-favicon",src:S.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>h(P=>new Set(P).add(S.url))}):c.jsx("span",{className:"eidotter-inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),c.jsx("span",{className:"eidotter-inline-expand__source-title",children:S.title})]})},S.url))})]})]})},Jf={horizontal:"h-px w-full",vertical:"w-px h-full"},eh=({orientation:t="horizontal",className:e})=>c.jsx("div",{role:"separator","aria-orientation":t,className:A("shrink-0 bg-dos-border-default","eidotter-separator",Jf[t],e)}),bl=a.forwardRef(({children:t,speed:e,characters:n,delay:r,className:i,...s},o)=>{const{text:l,isScrambling:d}=Kr(t,{speed:e,characters:n,delay:r});return c.jsx("span",{ref:o,className:A("eidotter-text-scramble",d&&"eidotter-text-scramble--scrambling",i),...s,children:l})});bl.displayName="TextScramble";const gl={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},Dr=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const s=r||"a";return c.jsx("nav",{className:A("eidotter-nav eidotter-nav--desktop",gl[n],i),"aria-label":"Main navigation",children:c.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(o=>c.jsx("li",{className:"eidotter-nav__desktop-item",children:c.jsx(s,{href:o.href,className:A("eidotter-nav__link",e===o.href&&"eidotter-nav__link--active"),children:o.label})},o.href))})})},Mr=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[s,o]=a.useState(!1),l=r||"a",d=a.useCallback(()=>o(f=>!f),[]),u=a.useCallback(()=>o(!1),[]);return a.useEffect(()=>{if(!s)return;const f=h=>{h.key==="Escape"&&u()};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[s,u]),c.jsxs("div",{className:A("eidotter-nav eidotter-nav--mobile",gl[n],i),children:[c.jsx("button",{onClick:d,className:"eidotter-nav__menu-trigger","aria-label":s?"Close menu":"Open menu","aria-expanded":s,"aria-controls":"eidotter-mobile-nav-panel",children:"MENU"}),s&&c.jsx("div",{className:"eidotter-nav__overlay",onClick:u,"aria-hidden":"true"}),c.jsxs("nav",{id:"eidotter-mobile-nav-panel",className:A("eidotter-nav__panel",s&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[c.jsx("div",{className:"eidotter-nav__panel-header",children:c.jsx("button",{onClick:u,className:"eidotter-nav__close","aria-label":"Close menu",children:c.jsx(fe,{name:"Close",size:"S"})})}),c.jsx("ul",{className:"eidotter-nav__list",children:t.map(f=>c.jsx("li",{className:"eidotter-nav__item",children:c.jsx(l,{href:f.href,className:A("eidotter-nav__link",e===f.href&&"eidotter-nav__link--active"),onClick:u,children:f.label})},f.href))})]})]})},th=t=>c.jsxs(c.Fragment,{children:[c.jsx(Mr,{...t}),c.jsx(Dr,{...t})]}),nh={user:"eidotter-chat-message--user",assistant:"eidotter-chat-message--assistant",system:"eidotter-chat-message--system"},vl=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:s,...o})=>{const l=t==="user"?r:t==="assistant"?i:"";return c.jsxs("div",{className:A("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",nh[t],n&&"eidotter-chat-message--streaming",s),...o,children:[l&&c.jsx("span",{className:"shrink-0 select-none","aria-hidden":"true",children:l}),c.jsx("span",{className:"min-w-0",children:e}),n&&c.jsx("span",{className:"eidotter-chat-message__cursor","aria-hidden":"true",children:"█"})]})},yl=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i,...s})=>{const o=a.useRef(null);a.useEffect(()=>{var d,u;(u=(d=o.current)==null?void 0:d.scrollIntoView)==null||u.call(d,{behavior:"smooth"})},[t.length,e]);const l=A("flex-1 overflow-y-auto font-dos p-2 min-h-0","eidotter-chat-history",i);return t.length===0?c.jsx("div",{className:l,role:"log","aria-live":"polite",...s,children:c.jsx("div",{className:"flex items-center justify-center h-full min-h-16",children:c.jsx("span",{className:"text-dos-text-muted font-dos text-dos-text-md",children:"Awaiting input..."})})}):c.jsx("div",{className:l,role:"log","aria-live":"polite",...s,children:c.jsxs("div",{className:"flex flex-col",children:[t.map((d,u)=>{const f=e&&d.role==="assistant"&&u===t.length-1;return c.jsx(vl,{role:d.role,content:d.content,isStreaming:f,userPrefix:n,assistantPrefix:r},d.id)}),c.jsx("div",{ref:o})]})})},xl=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i,...s})=>{const[o,l]=a.useState(""),d=a.useRef(null);a.useLayoutEffect(()=>{const h=d.current;h&&(h.style.height="auto",h.style.height=`${h.scrollHeight}px`)},[o]);const u=h=>{if(h.key==="Enter"&&!h.shiftKey&&!r){h.preventDefault();const p=o.trim();p&&(t(p),l(""))}},f=()=>{!r&&d.current&&d.current.focus()};return c.jsxs("div",{className:A("flex items-start font-dos text-dos-text-md p-2 cursor-text","text-cga-amber","eidotter-chat-input",r&&"eidotter-chat-input--disabled",i),onClick:f,...s,children:[c.jsx("span",{className:"text-cga-amber mr-2 mt-0.5 whitespace-nowrap select-none","aria-hidden":"true",children:e}),c.jsxs("div",{className:"flex items-start flex-1 min-w-0",children:[c.jsx("textarea",{ref:d,className:"eidotter-chat-input__textarea",value:o,onChange:h=>l(h.target.value),onKeyDown:u,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),c.jsx("span",{className:"eidotter-chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},rh=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:s,placeholder:o,disabled:l=!1,className:d,...u})=>c.jsxs("div",{className:A("flex flex-col h-full min-h-0",d),...u,children:[c.jsx(yl,{className:"flex-1 min-h-0",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:s}),c.jsx(xl,{className:"shrink-0",onSend:e,prompt:r,placeholder:o,disabled:l})]}),wl=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],ih=({copyright:t,links:e,children:n,className:r,...i})=>{const s=e??wl;return c.jsxs("footer",{className:A("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[c.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&c.jsx("div",{className:"mb-3",children:n}),s.length>0&&c.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:s.map((o,l)=>c.jsxs(a.Fragment,{children:[l>0&&c.jsx("span",{className:"text-dos-text-muted select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),c.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:o.href,...o.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:o.label})]},o.href))}),t&&c.jsxs("p",{className:"text-dos-text-muted m-0",children:["© ",t]})]})},sh={retro:"eidotter-header--retro",modern:"eidotter-header--modern"},El=a.forwardRef(({brandName:t,brandHref:e="/",items:n,activeHref:r,variant:i="retro",sticky:s=!0,linkComponent:o,children:l,className:d,...u},f)=>{const h=o??"a";return c.jsxs("header",{ref:f,className:A("flex items-center justify-between px-4 py-3 font-dos","eidotter-header",sh[i],s&&"sticky top-0 z-50 bg-dos-bg-primary",d),...u,children:[c.jsx(h,{href:e,className:A("no-underline text-base font-bold tracking-wide","eidotter-header__branding"),children:l||t}),c.jsx(Dr,{items:n,activeHref:r,variant:i,linkComponent:o}),c.jsx(Mr,{items:n,activeHref:r,variant:i,linkComponent:o})]})});El.displayName="Header";const oh={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},lh=({type:t="primary",title:e,children:n,actions:r,onClose:i,avatar:s,image:o,progress:l,progressLabel:d,duration:u,showIcon:f=!0,className:h})=>{const{isClosing:p,triggerClose:b,handleAnimationEnd:g}=wr("notification-exit",i);a.useEffect(()=>{if(u==null||!i)return;const w=setTimeout(()=>b(),u);return()=>clearTimeout(w)},[u,i,b]);const y=f&&!s,v=l!=null;return c.jsxs("div",{className:A("w-full max-w-[400px]","font-dos text-dos-text-sm","border border-dos-border-default rounded-dos-base","eidotter-notification",`eidotter-notification--${t}`,p&&"eidotter-notification--closing",h),onAnimationEnd:g,role:t==="error"?"alert":"status","data-type":t,children:[o&&c.jsx("div",{className:"eidotter-notification__image",children:o}),c.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[s&&c.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:s}),y&&c.jsx("div",{className:"eidotter-notification__icon",children:c.jsx(fe,{name:oh[t]||"Info",size:"S","aria-label":`${t} notification`})}),c.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",i&&!y&&!s&&"pr-8"),children:[(e||n)&&c.jsxs("div",{className:"flex flex-col gap-1",children:[e&&c.jsx("div",{className:"eidotter-notification__title font-dos leading-[140%]",children:e}),n&&c.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),v&&c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Sr,{value:l,max:100,size:"sm",fullWidth:!0,showLabel:!1}),d&&c.jsx("div",{className:"eidotter-notification__text font-dos text-dos-text-xs",children:d})]}),r&&r.length>0&&c.jsx("div",{className:"flex flex-row gap-3",children:r.map((w,C)=>c.jsxs(oe,{className:"eidotter-notification__action",onPress:w.onClick,children:[w.label,w.icon]},C))})]}),i&&c.jsx(oe,{className:"eidotter-notification__close",onPress:b,"aria-label":"Close notification",children:c.jsx(fe,{name:"Close",size:"S"})})]})]})};function ah(t){const e=t.trim();if(e===""||/^[#?/]/.test(e))return e;const n=/^([a-z][a-z0-9+\-.]*):/i.exec(e);if(!n)return e;const r=n[1].toLowerCase();return["http","https","mailto","tel","ftp","sms"].includes(r)?e:"#"}function dh(t,e){if(e.length===0)return t;const n=new Set((t??"").split(/\s+/).map(r=>r.trim().toLowerCase()).filter(Boolean));for(const r of e)n.add(r.toLowerCase());return Array.from(n).join(" ")}const Sl=a.forwardRef(({children:t,href:e,showGlyph:n=!0,external:r=!1,className:i,target:s,rel:o,...l},d)=>{const u=ah(e),f=s??(r?"_blank":void 0),h=f==="_blank",p=h?dh(o,["noopener","noreferrer"]):o,b=r&&h?"↗":"▸";return c.jsxs("a",{ref:d,href:u,target:f,rel:p,className:A("eidotter-ilink",r&&"eidotter-ilink--external",i),...l,children:[c.jsx("span",{className:"eidotter-ilink__label",children:t}),n&&c.jsx("span",{className:"eidotter-ilink__glyph","aria-hidden":"true",children:b})]})});Sl.displayName="InlineLink";const Cl=a.forwardRef(({title:t,resolution:e,subject:n,caption:r,pins:i=[],animated:s=!0,"aria-label":o,className:l},d)=>{const u=a.useId(),f=r?u:void 0;return c.jsxs("figure",{ref:d,className:A("eidotter-dos-figure",s&&"eidotter-dos-figure--animated",l),role:"img","aria-label":o,"aria-describedby":f,children:[t&&c.jsx("div",{className:"eidotter-dos-figure__title","aria-hidden":"true",children:c.jsx("span",{children:t})}),c.jsxs("div",{className:"eidotter-dos-figure__frame",children:[c.jsx("div",{className:"eidotter-dos-figure__subject",children:n}),i.length>0&&c.jsx("ul",{className:"eidotter-dos-figure__pins",role:"list",children:i.map((h,p)=>{const b=Number.isFinite(h.x)?Math.max(0,Math.min(100,h.x)):0,g=Number.isFinite(h.y)?Math.max(0,Math.min(100,h.y)):0;return c.jsxs("li",{className:"eidotter-dos-figure__pin",style:{left:`${b}%`,top:`${g}%`},children:[c.jsx("span",{className:"eidotter-dos-figure__pin-dot","aria-hidden":"true"}),c.jsx("span",{className:"eidotter-dos-figure__pin-label",children:h.label})]},`${b}-${g}-${p}`)})}),c.jsx("span",{className:"eidotter-dos-figure__scanline","aria-hidden":"true"}),e&&c.jsx("span",{className:"eidotter-dos-figure__resolution","aria-hidden":"true",children:e})]}),r&&c.jsx("figcaption",{id:u,className:"eidotter-dos-figure__caption",children:r})]})});Cl.displayName="DosFigure";const ch=c.jsx(c.Fragment,{children:"↑/↓ NAVIGATE · ↵ OPEN · ESC CLOSE"});function uh(t){const e=t.toLowerCase().split("+").map(o=>o.trim()),n=e[e.length-1],r=e.includes("mod"),i=e.includes("shift"),s=e.includes("alt");return o=>{if(o.key.toLowerCase()!==n)return!1;const l=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform);return!(!(r?l?o.metaKey:o.ctrlKey:!(o.metaKey||o.ctrlKey))||i!==o.shiftKey||s!==o.altKey)}}function fh(t,e){if(!e)return 0;const n=e.toLowerCase(),r=t.label.toLowerCase(),i=(t.keywords||[]).map(s=>s.toLowerCase());return r.startsWith(n)?100:i.some(s=>s.startsWith(n))?80:r.includes(n)?50:i.some(s=>s.includes(n))?30:(t.type||"").toLowerCase().includes(n)?10:-1}const kl=a.forwardRef(({open:t,onOpenChange:e,items:n,placeholder:r="SEARCH · TYPE · ▸",hotkey:i="mod+k",emptyMessage:s="NO MATCHES",footerHint:o=ch,renderItem:l,maxResults:d=20,className:u,"aria-label":f="Command palette"},h)=>{const p=a.useId(),b=`${p}-listbox`,[g,y]=a.useState(""),[v,w]=a.useState(0),C=a.useRef(null),S=a.useRef(null),P=a.useRef(!1),D=a.useMemo(()=>g.trim()?n.map(O=>({item:O,score:fh(O,g.trim())})).filter(O=>O.score>=0).sort((O,q)=>q.score-O.score).slice(0,d).map(O=>O.item):n.slice(0,d),[n,g,d]);a.useEffect(()=>{t&&(y(""),w(0))},[t]),a.useEffect(()=>{w(0)},[g]),a.useEffect(()=>{w(K=>Math.min(K,Math.max(0,D.length-1)))},[D.length]),a.useEffect(()=>{if(t){const K=window.setTimeout(()=>{var O;return(O=C.current)==null?void 0:O.focus()},10);return()=>window.clearTimeout(K)}},[t]);const N=a.useRef(t),z=a.useRef(e);a.useEffect(()=>{N.current=t},[t]),a.useEffect(()=>{z.current=e},[e]),a.useEffect(()=>{if(i===!1)return;const K=uh(i),O=q=>{K(q)&&(q.preventDefault(),z.current(!N.current))};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[i]),a.useEffect(()=>{var O;if(!t||D.length===0)return;const K=(O=S.current)==null?void 0:O.querySelector(`[data-index="${v}"]`);if(K&&typeof K.scrollIntoView=="function"){P.current=!0,K.scrollIntoView({block:"nearest"});const q=window.setTimeout(()=>{P.current=!1},0);return()=>window.clearTimeout(q)}},[v,D,t]);const k=a.useCallback(K=>{var O;(O=K.onSelect)==null||O.call(K,K),e(!1)},[e]),L=K=>{if(K.key==="ArrowDown")K.preventDefault(),w(O=>Math.min(O+1,Math.max(0,D.length-1)));else if(K.key==="ArrowUp")K.preventDefault(),w(O=>Math.max(0,O-1));else if(K.key==="Enter"){const O=D[v];O&&(K.preventDefault(),k(O))}};return c.jsx(pr,{isOpen:t,onOpenChange:e,isDismissable:!0,className:({isEntering:K,isExiting:O})=>A("eidotter-cmdpal-overlay",K&&"eidotter-cmdpal-overlay--entering",O&&"eidotter-cmdpal-overlay--exiting"),children:c.jsx(ho,{className:({isEntering:K,isExiting:O})=>A("eidotter-cmdpal",K&&"eidotter-cmdpal--entering",O&&"eidotter-cmdpal--exiting"),children:c.jsxs(fo,{"aria-label":f,className:A("eidotter-cmdpal__container outline-none",u),ref:h,children:[c.jsxs("div",{className:"eidotter-cmdpal__head","aria-hidden":"true",children:[c.jsx("span",{children:"▸ JUMP TO"}),c.jsx("span",{className:"eidotter-cmdpal__blink",children:"_"})]}),c.jsx("input",{ref:C,type:"text",role:"combobox","aria-controls":b,"aria-expanded":!0,"aria-autocomplete":"list","aria-activedescendant":D[v]?`${p}-item-${D[v].id}`:void 0,className:"eidotter-cmdpal__input",value:g,placeholder:r,onChange:K=>y(K.target.value),onKeyDown:L}),c.jsxs("ul",{ref:S,id:b,role:"listbox","aria-label":f,className:"eidotter-cmdpal__results",children:[D.length===0&&c.jsx("li",{className:"eidotter-cmdpal__empty",role:"presentation",children:s}),D.map((K,O)=>{const q=O===v;return c.jsx("li",{id:`${p}-item-${K.id}`,role:"option","aria-selected":q,"data-index":O,className:A("eidotter-cmdpal__item",q&&"eidotter-cmdpal__item--selected"),onMouseMove:()=>{P.current||w(O)},onClick:()=>k(K),children:l?l(K,q):c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"eidotter-cmdpal__item-label",children:[c.jsx("span",{className:"eidotter-cmdpal__item-caret","aria-hidden":"true",children:q?"▸":" "}),K.label]}),K.hint!==void 0&&c.jsx("span",{className:"eidotter-cmdpal__item-hint",children:K.hint})]})},K.id)})]}),o&&c.jsx("div",{className:"eidotter-cmdpal__footer","aria-hidden":"true",children:o})]})})})});kl.displayName="CmdPalette";const Lr=a.forwardRef(({size:t=32,glow:e=!0,title:n="eiDotter",className:r,...i},s)=>c.jsxs("svg",{ref:s,width:t,height:t,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:n?"img":void 0,"aria-hidden":n?void 0:!0,className:A("eidotter-logo",e&&"eidotter-logo--glow",r),...i,children:[n?c.jsx("title",{children:n}):null,c.jsx("circle",{cx:"16",cy:"16",r:"11",fill:"#FFB000"}),c.jsx("circle",{cx:"12",cy:"12",r:"3.2",fill:"#FFD97A"}),c.jsx("circle",{cx:"11",cy:"11",r:"1.1",fill:"#FFE8A8"})]}));Lr.displayName="Logo";const Fr=a.forwardRef(({glow:t=!0,className:e,...n},r)=>c.jsxs("span",{ref:r,className:A("eidotter-wordmark font-dos",t&&"eidotter-wordmark--glow",e),"aria-label":"eiDotter",...n,children:[c.jsx("span",{className:"eidotter-wordmark__prefix","aria-hidden":"true",children:"ei"}),c.jsx("span",{className:"eidotter-wordmark__body","aria-hidden":"true",children:"Dotter"})]}));Fr.displayName="Wordmark";const Pl=a.forwardRef(({logoSize:t=32,iconOnly:e=!1,wordmarkOnly:n=!1,glow:r=!0,className:i,...s},o)=>c.jsxs("div",{ref:o,className:A("eidotter-brand-lockup inline-flex items-center gap-3",i),role:"img","aria-label":"eiDotter",...s,children:[!n&&c.jsx(Lr,{size:t,glow:r,title:""}),!e&&c.jsx(Fr,{glow:r,"aria-hidden":"true"})]}));Pl.displayName="BrandLockup";const hh={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},ct={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Header:{origin:"eidotter",consumers:[],originNote:"Sticky site header composing branding link + Nav — retro/modern variants"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"},InlineLink:{origin:"rizomorf",consumers:["rizomorf"],since:"0.20.0",originNote:"In-flow navigational anchor — dotted amber underline, phosphor-invert hover, trailing `▸` / `↗`. Distinct from InlineExpand (destination vs disclosure). Closes rizomorf parity gap #03.",platforms:{react:{path:"src/components/InlineLink",status:"canonical"}},changelog:[{version:"0.20.0",type:"added",description:'Initial InlineLink — internal + external variants, tabnabbing guard when consumer passes target="_blank"'}]},DosFigure:{origin:"eidotter",consumers:["rizomorf"],since:"0.20.0",originNote:"Demoscene-style painted-screen placeholder (Sierra / LucasArts title-card aesthetic). Amber chrome, 6s scanline sweep, optional annotation pins. Closes rizomorf parity gap #02.",platforms:{react:{path:"src/components/DosFigure",status:"canonical"}},changelog:[{version:"0.20.0",type:"added",description:"Initial DosFigure — scanline sweep, phosphor flicker, pin pulse; all animations compositor-only and reduced-motion safe"}]},CmdPalette:{origin:"eidotter",consumers:[],since:"0.20.0",originNote:"⌘K / Ctrl+K command palette overlay. Built on React Aria ModalOverlay/Modal/Dialog (same primitives as Modal). Generic items + scored search + keyboard navigation.",platforms:{react:{path:"src/components/CmdPalette",status:"canonical"}},changelog:[{version:"0.20.0",type:"added",description:"Initial CmdPalette — generic items with keywords, mod+k global hotkey, custom renderItem, useId() per-instance DOM ids, selected-clamp on items mutation"}]}};function ph(t){return ct[t]}function mh(t){return Object.entries(ct).filter(([,e])=>e.origin===t).map(([e])=>e)}function bh(t){return Object.entries(ct).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function gh(t,e){const n=ct[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function vh(t){const e=ct[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const yh="0.20.1";I.AccordionFill=ff,I.Alert=zo,I.Badge=dt,I.BrandLockup=Pl,I.Breadcrumb=el,I.Button=an,I.Card=Ro,I.ChatContainer=rh,I.ChatHistory=yl,I.ChatInput=xl,I.ChatMessage=vl,I.Checkbox=Uo,I.CmdPalette=kl,I.CommandPrompt=hf,I.DesktopNav=Dr,I.DosFigure=Cl,I.FilterBar=Qf,I.Footer=ih,I.Header=El,I.Icon=fe,I.InlineExpand=Wf,I.InlineLink=Sl,I.Input=Yo,I.Logo=Lr,I.MobileNav=Mr,I.Modal=fl,I.Nav=th,I.Notification=lh,I.Progress=Sr,I.RetroEffects=vf,I.Section=Vo,I.Separator=eh,I.Stat=pl,I.Switch=Jo,I.Tabs=Xo,I.Tag=Tr,I.TagGroup=_r,I.Terminal=bf,I.TextScramble=bl,I.TimelineContainer=jf,I.TimelineNode=Ne,I.Wordmark=Fr,I.ZOOM_LEVELS=_t,I.componentRegistry=ct,I.defaultLegalLinks=wl,I.getComponentMeta=ph,I.getComponentsByConsumer=bh,I.getComponentsByOrigin=mh,I.getVariantConsumerMap=vh,I.getVariantsUsedBy=gh,I.isSafeUrl=Ir,I.projects=hh,I.useTextScramble=Kr,I.version=yh,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|