eidotter 0.19.3 → 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/dist/index.umd.js CHANGED
@@ -1,15 +1,4 @@
1
- (function(O,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(O=typeof globalThis<"u"?globalThis:O||self,p(O.eidotter={},O.jsxRuntime,O.React,O.ReactDOM))})(this,(function(O,p,a,dt){"use strict";const ds=a.createContext(null);a.createContext(null),a.createContext(null),a.createContext(null),a.createContext(null);const cs=a.createContext({});a.createContext(null);const us=a.createContext(null),R=typeof document<"u"?a.useLayoutEffect:()=>{};function fs(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)});R(()=>{r.current=e,i.current&&o.current()});let l=a.useCallback(s=>{i.current=s(r.current),o.current()},[o]);return[e,l]}const Dt={prefix:String(Math.round(Math.random()*1e10)),current:0},Sr=a.createContext(Dt),hs=a.createContext(!1);let ps=!!(typeof window<"u"&&window.document&&window.document.createElement),pn=new WeakMap;function ms(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 vs(t){let e=a.useContext(Sr);e===Dt&&!ps&&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=ms(!!t),r=e===Dt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function gs(t){let e=a.useId(),[n]=a.useState(Be()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Dt.prefix}`;return t||`${r}-${e}`}const bs=typeof a.useId=="function"?gs:vs;function ys(){return!1}function xs(){return!0}function ws(t){return()=>{}}function Be(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(ws,ys,xs):a.useContext(hs)}let Es=!!(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=bs(e),o=a.useRef(null);if(ct&&ct.register(o,i),Es){const l=Re.get(i);l&&!l.includes(r)?l.push(r):Re.set(i,[r])}return R(()=>{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 Cs(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]=fs(e),i=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return R(i,[e,i,...t]),n}function ut(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Y=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:Y(t).defaultView||window;function Ps(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function ks(t){return Ps(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Ns=!1;function Te(){return Ns}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:ks(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 Ts{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 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 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(){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 Ts(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=Lr(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Lr(t[o],null)})}}}function Lr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Fr(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=Fr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ds(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Fr(t))&&(r&&(r+=" "),r+=e);return r}function G(...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]=Ds(o,l):i==="id"&&o&&l?e.id=Cs(o,l):i==="ref"&&o&&l?e.ref=et(o,l):e[i]=l!==void 0?l:o}}return e}const Ms=new Set(["id"]),Is=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ks=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_s=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"]),Ss=/^(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)&&(Ms.has(d)||n&&Is.has(d)||r&&Ks.has(d)||i&&_s.has(d)||o&&(Or.has(d)||d.endsWith("Capture")&&Or.has(d.slice(0,-7)))||l!=null&&l.has(d)||Ss.test(d))&&(s[d]=t[d]);return s}function De(t){if($s())t.focus({preventScroll:!0});else{let e=Ls(t);t.focus(),Fs(e)}}let Mt=null;function $s(){if(Mt==null){Mt=!1;try{document.createElement("div").focus({get preventScroll(){return Mt=!0,!0}})}catch{}}return Mt}function Ls(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 Fs(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function It(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 Me(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const He=Me(function(){return gn(/^Mac/i)}),Os=Me(function(){return gn(/^iPhone/i)}),Ar=Me(function(){return gn(/^iPad/i)||He()&&navigator.maxTouchPoints>1}),Ue=Me(function(){return Os()||Ar()}),As=Me(function(){return He()||Ue()}),zs=Me(function(){return It(/AppleWebKit/i)&&!bn()}),bn=Me(function(){return It(/Chrome/i)}),yn=Me(function(){return It(/Android/i)}),Vs=Me(function(){return It(/Firefox/i)}),Bs=a.createContext({isNative:!0,open:Us,useHref:t=>t});function xn(){return a.useContext(Bs)}function Ie(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}=e;Vs()&&(!((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=zs()&&He()&&!Ar()&&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});Ie.isOpening=n,De(t),t.dispatchEvent(c),Ie.isOpening=!1}Ie.isOpening=!1;function Hs(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 Us(t,e){Hs(t,n=>Ie(n,e))}function Ws(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 Se=new Map,wn=new Set;function zr(){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=Se.get(i);o||(o=new Set,Se.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=Se.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Se.delete(i)),Se.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"?zr():document.addEventListener("DOMContentLoaded",zr));function js(){for(const[t]of Se)"isConnected"in t&&!t.isConnected&&Se.delete(t)}function Vr(t){requestAnimationFrame(()=>{js(),Se.size===0?t():wn.add(t)})}function Kt(){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 _t(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 $e(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 Gs=(En=a.useInsertionEffect)!==null&&En!==void 0?En:R;function ye(t){const e=a.useRef(null);return Gs(()=>{e.current=t},[t]),a.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Br(t,e){const n=a.useRef(!0),r=a.useRef(null);R(()=>(n.current=!0,()=>{n.current=!1}),[]),R(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Hr(t,e){R(()=>{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 Ur(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 Wr(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 Zs(){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 Ys=0;const Pn=new Map;function Xs(t){let[e,n]=a.useState();return R(()=>{if(!t)return;let r=Pn.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Ys++}`;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 St(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,y=t===f?0:d.left,g=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,H=parseInt(u.scrollPaddingLeft,10)||0,F=parseInt(u.scrollPaddingRight,10)||0,P=parseInt(u.borderTopWidth,10)||0,I=parseInt(u.borderBottomWidth,10)||0,z=parseInt(u.borderLeftWidth,10)||0,ee=parseInt(u.borderRightWidth,10)||0,ne=s.top-w,q=s.bottom+x,T=s.left-E,V=s.right+C,j=t===f?0:z+ee,Z=t===f?0:P+I,Q=t.offsetWidth-t.clientWidth-j,re=t.offsetHeight-t.clientHeight-Z,h=m+P+k,M=v-I-N-re,b=y+z+H,D=g-ee-F;u.direction==="rtl"&&!Ue()?b+=Q:D-=Q;let S=ne<h||q>M,L=T<b||V>D;if(S&&r==="start")o+=ne-h;else if(S&&r==="center")o+=(ne+q)/2-(h+M)/2;else if(S&&r==="end")o+=q-M;else if(S&&r==="nearest"){let X=ne-h,ae=q-M;o+=Math.abs(X)<=Math.abs(ae)?X:ae}if(L&&i==="start")l+=T-b;else if(L&&i==="center")l+=(T+V)/2-(b+D)/2;else if(L&&i==="end")l+=V-D;else if(L&&i==="nearest"){let X=T-b,ae=V-D;l+=Math.abs(X)<=Math.abs(ae)?X:ae}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function jr(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=Wr(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?Wr(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 Js(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 Gr(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 qr(t){const e=a.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Qs="react-aria-clear-focus",Rs="react-aria-focus";function Tn(t,e=!0){let[n,r]=a.useState(!0),i=n&&e;return R(()=>{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 Dn(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){R(()=>{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 ea=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ta(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 na(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 Mn(t,e){return ea?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&ta(t)&&na(t,e)&&(!t.parentElement||Mn(t.parentElement,t))}const In=["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"],ra=In.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";In.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ia=In.join(':not([hidden]):not([tabindex="-1"]),');function Yr(t){return t.matches(ra)&&Mn(t)&&!Jr(t)}function Xr(t){return t.matches(ia)&&Mn(t)&&!Jr(t)}function Jr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var Kn;const oa=typeof document<"u"?(Kn=a.useInsertionEffect)!==null&&Kn!==void 0?Kn: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;oa(()=>{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 _n=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 $t(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||_n;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=$t(n,t.slot)||{},{ref:i,...o}=r,l=$e(a.useMemo(()=>et(e,i),[e,i])),s=G(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 la(t=!0){let[e,n]=a.useState(t),r=a.useRef(!1),i=a.useCallback(o=>{r.current=!0,n(!!o)},[]);return R(()=>{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 sa(t,e,n){let{render:r,...i}=e,o=a.useRef(null),l=a.useMemo(()=>et(n,o),[n,o]);R(()=>{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 Qr={},ue=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Qr[e];return n||(n=a.forwardRef(sa.bind(null,e)),Qr[e]=n),n}}),Rr=7e3;let Ee=null;function ei(t,e="assertive",n=Rr){Ee?Ee.announce(t,e,n):(Ee=new aa,(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 aa{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=Rr){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 da=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ca=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ua(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 da.has(n.script)}let e=t.split("-")[0];return ca.has(e)}const ti=Symbol.for("react-aria.i18n.locale");function ni(){let t=typeof window<"u"&&window[ti]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:ua(t)?"rtl":"ltr"}}let Sn=ni(),vt=new Set;function ri(){Sn=ni();for(let t of vt)t(Sn)}function fa(){let t=Be(),[e,n]=a.useState(Sn);return a.useEffect(()=>(vt.size===0&&window.addEventListener("languagechange",ri),vt.add(n),()=>{vt.delete(n),vt.size===0&&window.removeEventListener("languagechange",ri)}),[]),t?{locale:typeof window<"u"&&window[ti]||"en-US",direction:"ltr"}:e}const ha=a.createContext(null);function $n(){let t=fa();return a.useContext(ha)||t}const pa=Symbol.for("react-aria.i18n.locale"),ma=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=va(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[pa];if(nt===void 0){let i=window[ma];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 va(t,e,n="en-US"){if(e[t])return e[t];let r=ga(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function ga(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ii=new Map,oi=new Map;class ba{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=ii.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ii.set(o,l));let s=l.select(e);return i=n[s]||n.other,typeof i=="function"?i():i}number(e){let n=oi.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),oi.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 li=new WeakMap;function ya(t){let e=li.get(t);return e||(e=new Ft(t),li.set(t,e)),e}function xa(t,e){return e&&Ft.getGlobalDictionaryForPackage(e)||ya(t)}function wa(t,e){let{locale:n}=$n(),r=xa(t,e);return a.useMemo(()=>new ba(n,r),[n,r])}function Ea(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ca(t,e,n){Ea(t,e),e.set(t,n)}function Ln(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function si(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function ai(t){let e=a.useRef({isFocused:!1,observer:null});return R(()=>{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=Ln(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 Ot=!1;function di(t){for(;t&&!Yr(t);)t=t.parentElement;let e=de(t),n=e.document.activeElement;if(!n||n===t)return;Ot=!0;let r=!1,i=u=>{(K(u)===n||r)&&u.stopImmediatePropagation()},o=u=>{(K(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,De(n),d()))},l=u=>{(K(u)===t||r)&&u.stopImmediatePropagation()},s=u=>{(K(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,De(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),Ot=!1,r=!1},c=requestAnimationFrame(d);return d}let rt="default",Fn="",At=new WeakMap;function ci(t){if(Ue()){if(rt==="default"){const e=Y(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";At.set(t,t.style[e]),t.style[e]="none"}}function On(t){if(Ue()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{Vr(()=>{if(rt==="restoring"){const e=Y(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Fn||""),Fn="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&At.has(t)){let e=At.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),At.delete(t)}}const An=a.createContext({register:()=>{}});An.displayName="PressResponderContext";function Pa(t,e){return e.get?e.get.call(t):e.value}function ui(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function ka(t,e){var n=ui(t,e,"get");return Pa(t,n)}function Na(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 fi(t,e,n){var r=ui(t,e,"set");return Na(t,r,n),n}function Ta(t){let e=a.useContext(An);if(e){let{register:n,ref:r,...i}=e;t=G(i,t),n()}return Hr(e,t.ref),t}var zt=new WeakMap;class Vt{continuePropagation(){fi(this,zt,!1)}get shouldStopPropagation(){return ka(this,zt)}constructor(e,n,r,i){Ca(this,zt,{writable:!0,value:void 0}),fi(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 hi=Symbol("linkClicked"),pi="react-aria-pressable-style",mi="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}=Ta(t),[y,g]=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}=Kt(),k=a.useCallback((h,M)=>{let b=w.current;if(s||b.didFirePressStart)return!1;let D=!0;if(b.isTriggeringEvent=!0,r){let S=new Vt("pressstart",M,h);r(S),D=S.shouldStopPropagation}return n&&n(!0),b.isTriggeringEvent=!1,b.didFirePressStart=!0,g(!0),D},[s,r,n]),N=a.useCallback((h,M,b=!0)=>{let D=w.current;if(!D.didFirePressStart)return!1;D.didFirePressStart=!1,D.isTriggeringEvent=!0;let S=!0;if(i){let L=new Vt("pressend",M,h);i(L),S=L.shouldStopPropagation}if(n&&n(!1),g(!1),e&&b&&!s){let L=new Vt("press",M,h);e(L),S&&(S=L.shouldStopPropagation)}return D.isTriggeringEvent=!1,S},[s,i,n,e]),H=ye(N),F=a.useCallback((h,M)=>{let b=w.current;if(s)return!1;if(o){b.isTriggeringEvent=!0;let D=new Vt("pressup",M,h);return o(D),b.isTriggeringEvent=!1,D.shouldStopPropagation}return!0},[s,o]),P=ye(F),I=a.useCallback(h=>{let M=w.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&N(We(M.target,h),M.pointerType,!1),M.isPressed=!1,Q(null),M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,E(),f||On(M.target);for(let b of M.disposables)b();M.disposables=[]}},[f,E,N]),z=ye(I),ee=a.useCallback(h=>{u&&I(h)},[u,I]),ne=a.useCallback(h=>{s||l==null||l(h)},[s,l]),q=a.useCallback((h,M)=>{if(!s&&l){let b=new MouseEvent("click",h);si(b,M),l(Ln(b))}},[s,l]),T=ye(q),[V,j]=a.useState(!1);R(()=>{let h=w.current;if(V){let M=L=>{var X;if(h.isPressed&&h.target&&Vn(L,h.target)){var ae;bi(K(L),L.key)&&L.preventDefault();let J=K(L),fe=U(h.target,J);H(We(h.target,L),"keyboard",fe),fe&&T(L,h.target),E(),L.key!=="Enter"&&zn(h.target)&&U(h.target,J)&&!L[hi]&&(L[hi]=!0,Ie(h.target,L,!1)),h.isPressed=!1,j(!1),(ae=h.metaKeyEvents)===null||ae===void 0||ae.delete(L.key)}else if(L.key==="Meta"&&(!((X=h.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let J=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let fe of J.values())(B=h.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",fe))}},b=h.target,S=ut(L=>{b&&Vn(L,b)&&!L.repeat&&U(b,K(L))&&h.target&&P(We(h.target,L),"keyboard")},M);return x(Y(h.target),"keyup",S,!0),()=>{C(Y(h.target),"keyup",S,!0)}}},[V,x,E,C]);let[Z,Q]=a.useState(null);R(()=>{let h=w.current;if(Z==="pointer"){let M=D=>{if(D.pointerId===h.activePointerId&&h.isPressed&&D.button===0&&h.target){if(U(h.target,K(D))&&h.pointerType!=null){let S=!1,L=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(S?z(D):(De(h.target),h.target.click()))},80);D.currentTarget&&x(D.currentTarget,"click",()=>S=!0,!0),h.disposables.push(()=>clearTimeout(L))}else z(D);h.isOverTarget=!1}},b=D=>{z(D)};return x(Y(h.target),"pointerup",M,!1),x(Y(h.target),"pointercancel",b,!1),()=>{C(Y(h.target),"pointerup",M,!1),C(Y(h.target),"pointercancel",b,!1)}}else if(Z==="mouse"&&process.env.NODE_ENV==="test"){let M=b=>{if(b.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&U(h.target,b.target)&&h.pointerType!=null||z(b),h.isOverTarget=!1}};return x(Y(h.target),"mouseup",M,!1),()=>{C(Y(h.target),"mouseup",M,!1)}}else if(Z==="touch"&&process.env.NODE_ENV==="test"){let M=b=>{h.isPressed&&U(K(b),h.target)&&z({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return x(de(h.target),"scroll",M,!0),()=>{C(de(h.target),"scroll",M,!0)}}},[Z,x,C]);let re=a.useMemo(()=>{let h=w.current,M={onKeyDown(b){if(Vn(b.nativeEvent,b.currentTarget)&&U(b.currentTarget,K(b))){var D;bi(K(b),b.key)&&b.preventDefault();let S=!0;!h.isPressed&&!b.repeat&&(h.target=b.currentTarget,h.isPressed=!0,j(!0),h.pointerType="keyboard",S=k(b,"keyboard")),S&&b.stopPropagation(),b.metaKey&&He()&&((D=h.metaKeyEvents)===null||D===void 0||D.set(b.key,b.nativeEvent))}else b.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(b){if(!(b&&!U(b.currentTarget,K(b)))&&b&&b.button===0&&!h.isTriggeringEvent&&!Ie.isOpening){let D=!0;if(s&&b.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||Nn(b.nativeEvent))){let S=k(b,"virtual"),L=F(b,"virtual"),X=N(b,"virtual");ne(b),D=S&&L&&X}else if(h.isPressed&&h.pointerType!=="keyboard"){let S=h.pointerType||b.nativeEvent.pointerType||"virtual",L=F(We(b.currentTarget,b),S),X=N(We(b.currentTarget,b),S,!0);D=L&&X,h.isOverTarget=!1,ne(b),I(b)}h.ignoreEmulatedMouseEvents=!1,D&&b.stopPropagation()}}};return typeof PointerEvent<"u"?(M.onPointerDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(Js(b.nativeEvent)){h.pointerType="virtual";return}h.pointerType=b.pointerType;let D=!0;if(!h.isPressed){h.isPressed=!0,Q("pointer"),h.isOverTarget=!0,h.activePointerId=b.pointerId,h.target=b.currentTarget,f||ci(h.target),D=k(b,h.pointerType);let S=K(b);"releasePointerCapture"in S&&("hasPointerCapture"in S?S.hasPointerCapture(b.pointerId)&&S.releasePointerCapture(b.pointerId):S.releasePointerCapture(b.pointerId))}D&&b.stopPropagation()},M.onMouseDown=b=>{if(U(b.currentTarget,K(b))&&b.button===0){if(c){let D=di(b.target);D&&h.disposables.push(D)}b.stopPropagation()}},M.onPointerUp=b=>{!U(b.currentTarget,K(b))||h.pointerType==="virtual"||b.button===0&&!h.isPressed&&F(b,h.pointerType||b.pointerType)},M.onPointerEnter=b=>{b.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,k(We(h.target,b),h.pointerType))},M.onPointerLeave=b=>{b.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,N(We(h.target,b),h.pointerType,!1),ee(b))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}):process.env.NODE_ENV==="test"&&(M.onMouseDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(h.ignoreEmulatedMouseEvents){b.stopPropagation();return}if(h.isPressed=!0,Q("mouse"),h.isOverTarget=!0,h.target=b.currentTarget,h.pointerType=Nn(b.nativeEvent)?"virtual":"mouse",dt.flushSync(()=>k(b,h.pointerType))&&b.stopPropagation(),c){let S=di(b.target);S&&h.disposables.push(S)}},M.onMouseEnter=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,D=k(b,h.pointerType)),D&&b.stopPropagation()},M.onMouseLeave=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,D=N(b,h.pointerType,!1),ee(b)),D&&b.stopPropagation()},M.onMouseUp=b=>{U(b.currentTarget,K(b))&&!h.ignoreEmulatedMouseEvents&&b.button===0&&!h.isPressed&&F(b,h.pointerType||"mouse")},M.onTouchStart=b=>{if(!U(b.currentTarget,K(b)))return;let D=Da(b.nativeEvent);if(!D)return;h.activePointerId=D.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,Q("touch"),h.target=b.currentTarget,h.pointerType="touch",f||ci(h.target),k(Le(h.target,b),h.pointerType)&&b.stopPropagation()},M.onTouchMove=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,S=k(Le(h.target,b),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S=N(Le(h.target,b),h.pointerType,!1),ee(Le(h.target,b))),S&&b.stopPropagation()},M.onTouchEnd=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)&&h.pointerType!=null?(F(Le(h.target,b),h.pointerType),S=N(Le(h.target,b),h.pointerType),q(b.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(S=N(Le(h.target,b),h.pointerType,!1)),S&&b.stopPropagation(),h.isPressed=!1,Q(null),h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&On(h.target),E()},M.onTouchCancel=b=>{U(b.currentTarget,K(b))&&(b.stopPropagation(),h.isPressed&&I(Le(h.target,b)))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}),M},[s,c,E,f,I,ee,N,k,F,ne,q]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const h=Y(m.current);if(!h||!h.head||h.getElementById(pi))return;const M=h.createElement("style");M.id=pi,M.textContent=`
2
- @layer {
3
- [${mi}] {
4
- touch-action: pan-x pan-y pinch-zoom;
5
- }
6
- }
7
- `.trim(),h.head.prepend(M)},[m]),a.useEffect(()=>{let h=w.current;return()=>{var M;f||On((M=h.target)!==null&&M!==void 0?M:void 0);for(let b of h.disposables)b();h.disposables=[]}},[f]),{isPressed:d||y,pressProps:G(v,re,{[mi]:!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&&!yi(i,n)||i instanceof de(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&zn(i))&&n!=="Enter")}function Da(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 Le(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 Ma(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 Ia(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function gi(t,e){let n=e.getBoundingClientRect(),r=Ma(t);return Ia(n,r)}function Ka(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!zn(t)}function bi(t,e){return t instanceof HTMLInputElement?!yi(t,e):Ka(t)}const _a=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":_a.has(t.type)}let je=null;const Bn=new Set;let gt=new Map,Ge=!1,Hn=!1;const Sa={Tab:!0,Escape:!0};function Bt(t,e){for(let n of Bn)n(t,e)}function $a(t){return!(t.metaKey||!He()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ht(t){Ge=!0,!Ie.isOpening&&$a(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 xi(t){!Ie.isOpening&&Nn(t)&&(Ge=!0,je="virtual")}function wi(t){K(t)===window||K(t)===document||Ot||!t.isTrusted||(!Ge&&!Hn&&(je="virtual",Bt("virtual",t)),Ge=!1,Hn=!1)}function Ei(){Ot||(Ge=!1,Hn=!0)}function Un(t){if(typeof window>"u"||typeof document>"u"||gt.get(de(t)))return;const e=de(t),n=Y(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",xi,!0),e.addEventListener("focus",wi,!0),e.addEventListener("blur",Ei,!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",()=>{Ci(t)},{once:!0}),gt.set(e,{focus:r})}const Ci=(t,e)=>{const n=de(t),r=Y(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",xi,!0),n.removeEventListener("focus",wi,!0),n.removeEventListener("blur",Ei,!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 La(t){const e=Y(t);let n;return e.readyState!=="loading"?Un(t):(n=()=>{Un(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ci(t,n)}typeof document<"u"&&La();function Wn(){return je!=="pointer"}function Ut(){return je}function Fa(t){je=t,Bt(t,null)}const Oa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Aa(t,e,n){let r=Y(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&&!Oa.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(t&&e==="keyboard"&&n instanceof d&&!Sa[n.key])}function za(t,e,n){Un(),a.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,o)=>{Aa(!!(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=Y(t);if(Ut()==="virtual"){let n=ie(e);Vr(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&De(t)})}else De(t)}function Pi(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=ai(o),s=a.useCallback(d=>{let c=K(d);const u=Y(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 ki(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 Va(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:ki(t.onKeyDown),onKeyUp:ki(t.onKeyUp)}}}let jn=a.createContext(null);function Ba(t){let e=a.useContext(jn)||{};Hr(e,t);let{ref:n,...r}=e;return r}function Wt(t,e){let{focusProps:n}=Pi(t),{keyboardProps:r}=Va(t),i=G(n,r),o=Ba(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:G({...i,tabIndex:d},l)}}function Ha({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(An.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}=Kt(),d=a.useCallback(f=>{U(f.currentTarget,K(f))&&o.current.isFocusWithin&&!U(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(f),i&&i(!1))},[n,i,o,s]),c=ai(d),u=a.useCallback(f=>{if(!U(f.currentTarget,K(f)))return;let m=K(f);const v=Y(m),y=ie(v);if(!o.current.isFocusWithin&&y===m){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let g=f.currentTarget;l(v,"focus",w=>{let x=K(w);if(o.current.isFocusWithin&&!U(g,x)){let E=new v.defaultView.FocusEvent("blur",{relatedTarget:x});si(E,g);let C=Ln(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 Ni(t){t.pointerType==="touch"&&qn()}function Ua(){if(!(typeof document>"u"))return Gt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ni):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qn)),Gt++,()=>{Gt--,!(Gt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ni):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(Ua,[]);let{addGlobalListener:d,removeAllGlobalListeners:c}=Kt(),{hoverProps:u,triggerHoverEnd:f}=a.useMemo(()=>{let m=(g,w)=>{if(s.pointerType=w,i||w==="touch"||s.isHovered||!U(g.currentTarget,K(g)))return;s.isHovered=!0;let x=g.currentTarget;s.target=x,d(Y(K(g)),"pointerover",E=>{s.isHovered&&s.target&&!U(s.target,K(E))&&v(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:x,pointerType:w}),n&&n(!0),l(!0)},v=(g,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))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=g=>{jt&&g.pointerType==="mouse"||m(g,g.pointerType)},y.onPointerLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=g=>{!s.ignoreEmulatedMouseEvents&&!jt&&m(g,"mouse"),s.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,"mouse")}),{hoverProps:y,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 Wa(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=Y(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||!U(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ja=500;function Ga(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ja,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:d,removeGlobalListener:c}=Kt(),{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})),Y(m.target).activeElement!==m.target&&De(m.target),i&&i({...m,type:"longpress"}),s.current=void 0},o),m.pointerType==="touch")){let v=y=>{y.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=Xs(i&&!e?l:void 0);return{longPressProps:G(u,f)}}const Ti=a.createContext(null),Zn="react-aria-focus-scope-restore";let te=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(Ti)||{},c=a.useMemo(()=>new Jn({scopeRef:s}),[s]);R(()=>{let m=d||oe.root;if(oe.getTreeNode(m.scopeRef)&&te&&!Zt(te,m.scopeRef)){let v=oe.getTreeNode(te);v&&(m=v)}m.addChild(c),oe.addNode(c)},[c,d]),R(()=>{let m=oe.getTreeNode(s);m&&(m.contain=!!n)},[n]),R(()=>{var m;let v=(m=o.current)===null||m===void 0?void 0:m.nextSibling,y=[],g=w=>w.stopPropagation();for(;v&&v!==l.current;)y.push(v),v.addEventListener(Zn,g),v=v.nextSibling;return s.current=y,()=>{for(let w of y)w.removeEventListener(Zn,g)}},[e]),ed(s,r,n),Ja(s,n),td(s,r,n),Ra(s,i),a.useEffect(()=>{const m=ie(Y(s.current?s.current[0]:void 0));let v=null;if(ge(m,s.current)){for(let y of oe.traverse())y.scopeRef&&ge(m,y.scopeRef.current)&&(v=y);v===oe.getTreeNode(s)&&(te=v.scopeRef)}},[s]),R(()=>()=>{var m,v,y;let g=(y=(v=oe.getTreeNode(s))===null||v===void 0||(m=v.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(s===te||Zt(s,te))&&(!g||oe.getTreeNode(g))&&(te=g),oe.removeTreeNode(s)},[s]);let u=a.useMemo(()=>Za(s),[]),f=a.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return a.createElement(Ti.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 Za(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[0].previousElementSibling,u=Ze(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&&Ke(m,!0),m},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[n.length-1].nextElementSibling,u=Ze(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&&Ke(m,!0),m},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Ke(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Ke(s,!0),s}}}function Ze(t){return t[0].parentElement}function yt(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Ya(t){if(!t.form)return Array.from(Y(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 Xa(t){if(t.checked)return!0;const e=Ya(t);return e.length>0&&!e.some(n=>n.checked)}function Ja(t,e){let n=a.useRef(void 0),r=a.useRef(void 0);R(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Y(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=Ze(f),v=Ce(m,{tabbable:!0},f);if(!u)return;v.currentNode=u;let y=c.shiftKey?v.previousNode():v.nextNode();y||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),y&&Ke(y,!0)},s=c=>{(!te||Zt(te,t))&&ge(K(c),t.current)?(te=t,n.current=K(c)):yt(t)&&!Fe(K(c),t)?n.current?n.current.focus():te&&te.current&&Yn(te.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)){te=t;let y=K(c);if(y&&y.isConnected){var v;n.current=y,(v=n.current)===null||v===void 0||v.focus()}else te.current&&Yn(te.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]),R(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Di(t){return Fe(t)}function ge(t,e){return!t||!e?!1:e.some(n=>U(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 Qa(t){return Fe(t,te)}function Zt(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 Ke(t,e=!1){if(t!=null&&!e)try{qe(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Mi(t,e=!0){let n=t[0].previousElementSibling,r=Ze(t),i=Ce(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ze(t),i=Ce(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Yn(t,e=!0){Ke(Mi(t,e))}function Ra(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){te=t;const r=Y(t.current?t.current[0]:void 0);!ge(ie(r),te.current)&&t.current&&Yn(t.current)}n.current=!1},[t])}function ed(t,e,n){R(()=>{if(e||n)return;let r=t.current;const i=Y(r?r[0]:void 0);let o=l=>{let s=K(l);ge(s,t.current)?te=t:Di(s)||(te=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(te);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function td(t,e,n){const r=a.useRef(typeof document<"u"?ie(Y(t.current?t.current[0]:void 0)):null);R(()=>{let i=t.current;const o=Y(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!te||Zt(te,t))&&ge(ie(o),t.current)&&(te=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]),R(()=>{const i=Y(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?Ke(f,!0):Di(c)?Ke(c,!0):s.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),R(()=>{const i=Y(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=Mi(f.scopeRef.current,!0);Ki(m);return}f=f.parent}}})}}}},[t,e])}function Ki(t){t.dispatchEvent(new CustomEvent(Zn,{bubbles:!0,cancelable:!0}))&&Ke(t)}function Ce(t,e,n){let r=e!=null&&e.tabbable?Xr:Yr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=Y(i),l=$r(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return U(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!Xa(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 Ye(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]);za(v=>{i.current.isFocusVisible=v,c()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=Pi({isDisabled:r,onFocusChange:u}),{focusWithinProps:m}=Gn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?m:f}}function nd(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=a.useState(!1);return R(()=>{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 _i(t){let e=id(Y(t));e!==t&&(e&&rd(e,t),t&&Si(t,e))}function rd(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 id(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Pe=[];function od(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 g=Pe.indexOf(e);g>=0&&Pe.splice(g,1)}},[i,e]);let c=()=>{Pe[Pe.length-1]===e&&n&&n()},u=g=>{const w=Pe[Pe.length-1];d.current=w,(!s||s(K(g)))&&w===e&&(g.stopPropagation(),g.preventDefault())},f=g=>{(!s||s(K(g)))&&(Pe[Pe.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d.current===e&&c()),d.current=void 0},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),c())};Wa({ref:e,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=Gn({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||Qa(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),y=g=>{K(g)===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...v},underlayProps:{onPointerDown:y}}}const xt=typeof document<"u"&&window.visualViewport;let Yt=0,Qn;function ld(t={}){let{isDisabled:e}=t;R(()=>{if(!e)return Yt++,Yt===1&&(Ue()?Qn=ad():Qn=sd()),()=>{Yt--,Yt===0&&Qn()}},[e])}function sd(){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 ad(){let t=Xt(document.documentElement,"overflow","hidden"),e,n=!1,r=c=>{let u=K(c);e=ft(u)?u:Ur(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?Li(t):xt.addEventListener("resize",()=>Li(t),{once:!0})}function Li(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Ur(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 dd=a.createContext({});function cd(){var t;return(t=a.useContext(dd))!==null&&t!==void 0?t:{}}var Fi={};Fi={dismiss:"تجاهل"};var Oi={};Oi={dismiss:"Отхвърляне"};var Ai={};Ai={dismiss:"Odstranit"};var zi={};zi={dismiss:"Luk"};var Vi={};Vi={dismiss:"Schließen"};var Bi={};Bi={dismiss:"Απόρριψη"};var Hi={};Hi={dismiss:"Dismiss"};var Ui={};Ui={dismiss:"Descartar"};var Wi={};Wi={dismiss:"Lõpeta"};var ji={};ji={dismiss:"Hylkää"};var Gi={};Gi={dismiss:"Rejeter"};var qi={};qi={dismiss:"התעלם"};var Zi={};Zi={dismiss:"Odbaci"};var Yi={};Yi={dismiss:"Elutasítás"};var Xi={};Xi={dismiss:"Ignora"};var Ji={};Ji={dismiss:"閉じる"};var Qi={};Qi={dismiss:"무시"};var Ri={};Ri={dismiss:"Atmesti"};var eo={};eo={dismiss:"Nerādīt"};var to={};to={dismiss:"Lukk"};var no={};no={dismiss:"Negeren"};var ro={};ro={dismiss:"Zignoruj"};var io={};io={dismiss:"Descartar"};var oo={};oo={dismiss:"Dispensar"};var lo={};lo={dismiss:"Revocare"};var so={};so={dismiss:"Пропустить"};var ao={};ao={dismiss:"Zrušiť"};var co={};co={dismiss:"Opusti"};var uo={};uo={dismiss:"Odbaci"};var fo={};fo={dismiss:"Avvisa"};var ho={};ho={dismiss:"Kapat"};var po={};po={dismiss:"Скасувати"};var mo={};mo={dismiss:"取消"};var vo={};vo={dismiss:"關閉"};var go={};go={"ar-AE":Fi,"bg-BG":Oi,"cs-CZ":Ai,"da-DK":zi,"de-DE":Vi,"el-GR":Bi,"en-US":Hi,"es-ES":Ui,"et-EE":Wi,"fi-FI":ji,"fr-FR":Gi,"he-IL":qi,"hr-HR":Zi,"hu-HU":Yi,"it-IT":Xi,"ja-JP":Ji,"ko-KR":Qi,"lt-LT":Ri,"lv-LV":eo,"nb-NO":to,"nl-NL":no,"pl-PL":ro,"pt-BR":io,"pt-PT":oo,"ro-RO":lo,"ru-RU":so,"sk-SK":ao,"sl-SI":co,"sr-SP":uo,"sv-SE":fo,"tr-TR":ho,"uk-UA":po,"zh-CN":mo,"zh-TW":vo};const bo={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 ud(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?{...bo,...e}:bo,[r]);return{visuallyHiddenProps:{...o,style:l}}}function er(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=ud(t);return a.createElement(n,G(o,l),e)}function fd(t){return t&&t.__esModule?t.default:t}function hd(t){let{onDismiss:e,...n}=t,r=wa(fd(go),"@react-aria/overlays"),i=_t(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 pd=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let wt=new WeakMap,be=[];function md(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)&&pd,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 H of s)if(U(N,H))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=$r(Y(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 y=new MutationObserver(x=>{for(let E of x)if(E.type==="childList"){if(E.target.isConnected&&![...s,...d].some(C=>U(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){y.disconnect();break}}}});y.observe(o,{childList:!0,subtree:!0});let g=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=>U(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){y.disconnect();break}}}});E.observe(x,{childList:!0,subtree:!0}),g.add(E)}let w={visibleNodes:s,hiddenNodes:d,observe(){y.observe(o,{childList:!0,subtree:!0})},disconnect(){y.disconnect()}};return be.push(w),()=>{if(y.disconnect(),Te())for(let x of g)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 yo=a.createContext(null);function vd(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}=cd();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(yo.Provider,{value:l},a.createElement(Ha,null,d)),dt.createPortal(d,n)}function xo(){let t=a.useContext(yo),e=t==null?void 0:t.setContain;R(()=>{e==null||e(!0)},[e])}function gd(t,e,n){let{overlayProps:r,underlayProps:i}=od({...t,isOpen:e.isOpen,onClose:e.close},n);return ld({isDisabled:!e.isOpen}),xo(),a.useEffect(()=>{if(e.isOpen&&n.current)return md([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:G(r),underlayProps:i}}function bd(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=_t({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:d}}function yd(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=bd(t),s=mn([!!e,!!n,r,i]),d=mn([!!e,!!n,r,i]);return l=G(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 As()?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 wo=new WeakMap;function xd(t){let e=Ne();return wo.set(t,e),e}function wd(t){return wo.get(t)}const Ed=1e3;function Cd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=a.useRef({search:"",timeout:void 0}).current,o=l=>{let s=Pd(l.key);if(!(!s||l.ctrlKey||l.metaKey||!U(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=""},Ed)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Pd(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function kd(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:y="action"}=t,{direction:g}=$n(),w=xn(),x=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current||!U(r.current,K(T)))return;const V=(B,J)=>{if(B!=null){if(e.isLink(B)&&y==="selection"&&c&&!tr(T)){dt.flushSync(()=>{e.setFocusedKey(B,J)});let fe=nr(r,B),ke=e.getItemProps(B);fe&&w.open(fe,T,ke.href,ke.routerOptions);return}if(e.setFocusedKey(B,J),e.isLink(B)&&y==="override")return;T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&!tr(T)&&e.replaceSelection(B)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var j,Z,Q;let B=e.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,e.focusedKey):(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n);B==null&&o&&(B=(Q=n.getFirstKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowUp":if(n.getKeyAbove){var re,h,M;let B=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(h=n.getLastKey)===null||h===void 0?void 0:h.call(n);B==null&&o&&(B=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowLeft":if(n.getKeyLeftOf){var b,D,S;let B=e.focusedKey!=null?(b=n.getKeyLeftOf)===null||b===void 0?void 0:b.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n,e.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var L,X,ae;let B=e.focusedKey!=null?(L=n.getKeyRightOf)===null||L===void 0?void 0:L.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(X=n.getLastKey)===null||X===void 0?void 0:X.call(n,e.focusedKey):(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getFirstKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getLastKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let B=n.getKeyPageBelow(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let B=n.getKeyPageAbove(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"a":tt(T)&&e.selectionMode==="multiple"&&s!==!0&&(T.preventDefault(),e.selectAll());break;case"Escape":d==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(T.shiftKey)r.current.focus();else{let B=Ce(r.current,{tabbable:!0}),J,fe;do fe=B.lastChild(),fe&&(J=fe);while(fe);let ke=ie();J&&(!vn(J)||ke&&!Xr(ke))&&De(J)}break}}},E=a.useRef({top:0,left:0});St(v,"scroll",()=>{var T,V,j,Z;E.current={top:(j=(T=v.current)===null||T===void 0?void 0:T.scrollTop)!==null&&j!==void 0?j:0,left:(Z=(V=v.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&Z!==void 0?Z:0}});let C=T=>{if(e.isFocused){U(T.currentTarget,K(T))||e.setFocused(!1);return}if(U(T.currentTarget,K(T))){if(e.setFocused(!0),e.focusedKey==null){var V,j;let re=M=>{M!=null&&(e.setFocusedKey(M),c&&!e.isSelected(M)&&e.replaceSelection(M))},h=T.relatedTarget;var Z,Q;h&&T.currentTarget.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?re((Z=e.lastSelectedKey)!==null&&Z!==void 0?Z:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):re((Q=e.firstSelectedKey)!==null&&Q!==void 0?Q:(j=n.getFirstKey)===null||j===void 0?void 0:j.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&&De(re),Ut()==="keyboard"&&jr(re,{containingElement:r.current}))}}},k=T=>{U(T.currentTarget,T.relatedTarget)||e.setFocused(!1)},N=a.useRef(!1);St(r,Rs,f?T=>{let{detail:V}=T;T.stopPropagation(),e.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(N.current=!0)}:void 0),Br(()=>{if(N.current){var T,V;let j=(V=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&V!==void 0?V:null;if(j==null){let Z=ie();_i(r.current),Si(Z,null),e.collection.size>0&&(N.current=!1)}else e.setFocusedKey(j),N.current=!1}},[e.collection]),Br(()=>{e.collection.size>0&&(N.current=!1)},[e.focusedKey]),St(r,Qs,f?T=>{var V;T.stopPropagation(),e.setFocused(!1),!((V=T.detail)===null||V===void 0)&&V.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=a.useRef(i),F=a.useRef(!1);a.useEffect(()=>{if(H.current){var T,V;let Q=null;var j;i==="first"&&(Q=(j=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&j!==void 0?j:null);var Z;i==="last"&&(Q=(Z=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&Z!==void 0?Z:null);let re=e.selectedKeys;if(re.size){for(let h of re)if(e.canSelectItem(h)){Q=h;break}}e.setFocused(!0),e.setFocusedKey(Q),Q==null&&!f&&r.current&&qe(r.current),e.collection.size>0&&(H.current=!1,F.current=!0)}});let P=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||F.current)&&v.current&&r.current){let T=Ut(),V=nr(r,e.focusedKey);if(!(V instanceof HTMLElement))return;(T==="keyboard"||F.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{v.current&&(kn(v.current,V),T!=="virtual"&&jr(V,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&P.current!=null&&r.current&&qe(r.current),P.current=e.focusedKey,F.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),St(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),e.setFocused(!0)});let z={onKeyDown:x,onFocus:C,onBlur:k,onMouseDown(T){v.current===K(T)&&T.preventDefault()}},{typeSelectProps:ee}=Cd({keyboardDelegate:n,selectionManager:e});u||(z=G(ee,z));let ne;f||(ne=e.focusedKey==null?0:-1);let q=xd(e.collection);return{collectionProps:G(z,{tabIndex:ne,"data-collection":q})}}function Nd(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=h=>{if(h.pointerType==="keyboard"&&tr(h))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let M=n.getItemProps(r);m.open(i.current,h,M.href,M.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):h&&h.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||h&&(tt(h)||h.pointerType==="touch"||h.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?_i(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 y={};!l&&!d?y={tabIndex:r===n.focusedKey?0:-1,onFocus(h){K(h)===i.current&&n.setFocusedKey(r)}}:d&&(y.onMouseDown=h=>{h.preventDefault()}),a.useEffect(()=>{d&&n.focusedKey===r&&n.setFocusedKey(null)},[n,d,r]);let g=n.isLink(r)&&f==="override",w=c&&t.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&f!=="selection"&&f!=="none",E=!d&&n.canSelectItem(r)&&!g&&!w,C=(c||x)&&!d,k=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),N=C&&E&&n.selectionBehavior==="replace",H=k||N,F=a.useRef(null),P=H&&E,I=a.useRef(!1),z=a.useRef(!1),ee=n.getItemProps(r),ne=h=>{if(c){var M;c(),(M=i.current)===null||M===void 0||M.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&m.open(i.current,h,ee.href,ee.routerOptions)},q={ref:i};if(o?(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,h.pointerType==="keyboard"&&(!H||Co(h.key))&&v(h)},u?(q.onPressUp=k?void 0:h=>{h.pointerType==="mouse"&&E&&v(h)},q.onPress=k?ne:h=>{h.pointerType!=="keyboard"&&h.pointerType!=="mouse"&&E&&v(h)}):q.onPress=h=>{if(k||N&&h.pointerType!=="mouse"){if(h.pointerType==="keyboard"&&!Eo(h.key))return;ne(h)}else h.pointerType!=="keyboard"&&E&&v(h)}):(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,z.current=k,E&&(h.pointerType==="mouse"&&!k||h.pointerType==="keyboard"&&(!C||Co(h.key)))&&v(h)},q.onPress=h=>{(h.pointerType==="touch"||h.pointerType==="pen"||h.pointerType==="virtual"||h.pointerType==="keyboard"&&H&&Eo(h.key)||h.pointerType==="mouse"&&z.current)&&(H?ne(h):E&&v(h))}),y["data-collection"]=wd(n.collection),y["data-key"]=r,q.preventFocusOnPress=l,l&&(q=G(q,{onPressStart(h){h.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(h){h.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ee)for(let h of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ee[h]&&(q[h]=ut(q[h],ee[h]));let{pressProps:T,isPressed:V}=it(q),j=N?h=>{F.current==="mouse"&&(h.stopPropagation(),h.preventDefault(),ne(h))}:void 0,{longPressProps:Z}=Ga({isDisabled:!P,onLongPress(h){h.pointerType==="touch"&&(v(h),n.setSelectionBehavior("toggle"))}}),Q=h=>{F.current==="touch"&&I.current&&h.preventDefault()},re=f!=="none"&&n.isLink(r)?h=>{Ie.isOpening||h.preventDefault()}:void 0;return{itemProps:G(y,E||k||l&&!d?T:{},P?Z:{},{onDoubleClick:j,onDragStartCapture:Q,onClick:re,id:e},l?{onMouseDown:h=>h.preventDefault()}:void 0),isPressed:V,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:d,allowsSelection:E,hasAction:H}}function Eo(t){return t==="Enter"}function Co(t){return t===" "}class Td{build(e,n){return this.context=n,Po(()=>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 F=[...this.getFullNode({...k,key:N,index:E,wrapper:Dd(e.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${l.key}`:l.key,i)];for(let P of F){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(F)}return}if(e.key==null||e.type==null)return;let m=this;var v,y;let g={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:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Po(function*(){if(!e.hasChildNodes||!e.childNodes)return;let w=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${g.key}${x.key}`);let E=m.getFullNode({...x,index:w},m.getChildState(n,x),g.key,g);for(let C of E)w++,yield C}})};yield g}constructor(){this.cache=new WeakMap}}function Po(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 Dd(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 Md(t,e,n){let r=a.useMemo(()=>new Td,[]),{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 Id(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Kd(t){return _d(t)}function _d(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=[...ko(t,e),e],i=[...ko(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 ko(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 No={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},To={...No,customError:!0,valid:!1},ot={isInvalid:!1,validationDetails:No,validationErrors:[]},Sd=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 $d(t)}function $d(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:To}:null,c=a.useMemo(()=>{if(!l||i==null)return null;let z=Ld(l,i);return Do(z)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=a.useContext(Sd),f=a.useMemo(()=>r?Array.isArray(r)?r.flatMap(z=>lr(u[z])):lr(u[r]):[],[u,r]),[m,v]=a.useState(u),[y,g]=a.useState(!1);u!==m&&(v(u),g(!1));let w=a.useMemo(()=>Do(y?[]:f),[y,f]),x=a.useRef(ot),[E,C]=a.useState(ot),k=a.useRef(ot),N=()=>{if(!H)return;F(!1);let z=c||o||x.current;sr(z,k.current)||(k.current=z,C(z))},[H,F]=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(z){s==="aria"&&!sr(E,z)?C(z):x.current=z},resetValidation(){let z=ot;sr(z,k.current)||(k.current=z,C(z)),s==="native"&&F(!1),g(!0)},commitValidation(){s==="native"&&F(!0),g(!0)}}}function lr(t){return t?Array.isArray(t)?t:[t]:[]}function Ld(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:To}: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 Mo(t,e,n){let{validationBehavior:r,focus:i}=t;R(()=>{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(Od(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&&Ad(f)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),Fa("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 Fd(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 Od(t){return{isInvalid:!t.validity.valid,validationDetails:Fd(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Ad(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 zd(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:y}=f.displayValidation,{labelProps:g,fieldProps:w,descriptionProps:x,errorMessageProps:E}=yd({...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 H;return Gr(e,(H=t.defaultValue)!==null&&H!==void 0?H:N,c),Mo(t,f,e),{labelProps:g,inputProps:G(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:F=>c(K(F).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:y}}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 Vd extends Et{}Vd.type="header";class Bd extends Et{}Bd.type="loader";class Hd extends Io{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}Hd.type="item";class Ud 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}}Ud.type="section";class Wd{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 _o{*[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 _o{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 y;u.firstChildKey=(y=(l=this.firstVisibleChild)===null||l===void 0||(o=l.node)===null||o===void 0?void 0:o.key)!==null&&y!==void 0?y:null;var g;if(u.lastChildKey=(g=(d=this.lastVisibleChild)===null||d===void 0||(s=d.node)===null||s===void 0?void 0:s.key)!==null&&g!==void 0?g: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 jd extends _o{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 Gd(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 $o;function qd(){if($o)return dr;$o=1;var t=a;function e(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function s(f,m){var v=m(),y=r({inst:{value:v,getSnapshot:m}}),g=y[0].inst,w=y[1];return o(function(){g.value=v,g.getSnapshot=m,d(g)&&w({inst:g})},[f,v,m]),i(function(){return d(g)&&w({inst:g}),f(function(){d(g)&&w({inst:g})})},[f]),l(v),v}function d(f){var m=f.getSnapshot;f=f.value;try{var v=m();return!n(f,v)}catch{return!0}}function c(f,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return dr.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,dr}var cr={};/**
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 Lo;function Zd(){return Lo||(Lo=1,process.env.NODE_ENV!=="production"&&(function(){function t(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}function e(v,y){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 g=y();if(!f){var w=y();o(g,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=l({inst:{value:g,getSnapshot:y}});var x=w[0].inst,E=w[1];return d(function(){x.value=g,x.getSnapshot=y,n(x)&&E({inst:x})},[v,g,y]),s(function(){return n(x)&&E({inst:x}),v(function(){n(x)&&E({inst:x})})},[v]),c(g),g}function n(v){var y=v.getSnapshot;v=v.value;try{var g=y();return!o(v,g)}catch{return!0}}function r(v,y){return y()}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 Fo;function Yd(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Qt.exports=qd():Qt.exports=Zd()),Qt.exports}var Xd=Yd();const Oo=a.createContext(!1),Pt=a.createContext(null);function Jd(t){if(a.useContext(Pt))return t.content;let{collection:n,document:r}=tc(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(Gd,null,a.createElement(Pt.Provider,{value:r},t.content)),a.createElement(Qd,{render:t.children,collection:n}))}function Qd({collection:t,render:e}){return e(t)}function Rd(t,e,n){let r=Be(),i=a.useRef(r);i.current=r;let o=a.useCallback(()=>i.current?n():e(),[e,n]);return Xd.useSyncExternalStore(t,o)}const ec=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Rd;function tc(t){let[e]=a.useState(()=>new jd((t==null?void 0:t())||new Wd)),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:ec(n,r,i),document:e}}const ur=a.createContext(null);function nc(t){var e;return e=class extends Et{},e.type=t,e}function rc(t,e,n,r,i,o){typeof t=="string"&&(t=nc(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 ic(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 rc(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 oc(t){return So({...t,addIdAndValue:!0})}const Ao=a.createContext(null);function lc(t){let e=a.useContext(Ao),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=oc({...t,idScope:i,dependencies:n});return a.useContext(Pt)&&(o=a.createElement(sc,null,o)),e=a.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),a.createElement(Ao.Provider,{value:e},o)}function sc({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 zo={CollectionRoot({collection:t,renderDropIndicator:e}){return Vo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Vo(t,e,n)}};function Vo(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,ac(t,r,n))}})}function ac(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 Bo=a.createContext(zo);function dc(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function cc(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:y,type:g="button"}=t,w;n==="button"?w={type:g,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"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y: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=G(C,x,ce(t,{labelable:!0}));return{isPressed:E,buttonProps:G(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 Ho(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:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E}=t,C=q=>{q.stopPropagation(),e.setSelected(K(q).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:H,isPressed:F}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E,isDisabled:r}),{pressProps:P,isPressed:I}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPressUp:x,onClick:E,onPress(q){var T;w==null||w(q),e.toggle(),(T=n.current)===null||T===void 0||T.focus()},isDisabled:r||i}),{focusableProps:z}=Wt(t,n),ee=G(H,z),ne=ce(t,{labelable:!0});return Gr(n,e.defaultSelected,e.setSelected),{labelProps:G(P,{onClick:q=>q.preventDefault()}),inputProps:G(ne,{"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",...ee}),isSelected:e.isSelected,isPressed:F||I,isDisabled:r,isReadOnly:i,isInvalid:m||f==="invalid"}}function Uo(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}=Ho({...t,isInvalid:i},e,n);Mo(t,r,n);let{isIndeterminate:v,isRequired:y,validationBehavior:g="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:G(s,w,a.useMemo(()=>({onMouseDown:x=>x.preventDefault()}),[])),inputProps:{...d,checked:c,"aria-required":y&&g==="aria"||void 0,required:y&&g==="native"},isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m,isInvalid:i,validationErrors:o,validationDetails:l}}const uc=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 fc(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}=uc.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,y=d==="native"?e.displayValidation:v;var g;let w=Uo({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||o,isRequired:(g=t.isRequired)!==null&&g!==void 0?g:e.isRequired,validationBehavior:d,[Jt]:{realtimeValidation:v,displayValidation:y,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 hc(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]),xo(),{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 pc(t,e,n){let{labelProps:r,inputProps:i,isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}=Ho(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:o},isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}}const Wo=new WeakMap;function Rt(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=Wo.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 mc(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}=Nd({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),m=Rt(e,r,"tab"),v=Rt(e,r,"tabpanel"),{tabIndex:y}=u,g=e.collection.getItem(r),w=ce(g==null?void 0:g.props,{labelable:!0});delete w.id;let x=Ws(g==null?void 0:g.props),{focusableProps:E}=Wt({...g==null?void 0:g.props,isDisabled:c},n);return{tabProps:G(w,E,x,u,{id:m,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?v:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:d,isDisabled:c,isPressed:f}}function vc(t,e,n){let r=nd(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=_t({...t,id:o,"aria-labelledby":Rt(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:G(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class gc{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 bc(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:s}=e,{direction:d}=$n(),c=a.useMemo(()=>new gc(o,d,r,s),[o,s,r,d]),{collectionProps:u}=kd({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ne();Wo.set(e,f);let m=_t({...t,id:f});return{tabListProps:{...G(u,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const jo=a.createContext({}),yc=Ct(function(e,n){[e,n]=xe(e,n,jo);let{elementType:r="label",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Label",...i,ref:n})}),xc=a.createContext(null),Go=a.createContext({}),le=Ct(function(e,n){[e,n]=xe(e,n,Go);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=cc(e,n);o=Ec(o,i);let{focusProps:s,isFocused:d,isFocusVisible:c}=Ye(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"}),y=Ne(o.id),g=Ne(),w=o["aria-labelledby"];i&&(w?w=`${w} ${g}`:o["aria-label"]&&(w=`${y} ${g}`));let x=a.useRef(i);a.useEffect(()=>{let C={"aria-labelledby":w||y};(!x.current&&d&&i||x.current&&d&&!i)&&ei(C,"assertive"),x.current=i},[i,d,w,y]);let E=ce(e,{global:!0});return delete E.onClick,a.createElement(ue.button,{...G(E,v,o,s,u),type:o.type==="submit"&&i?"button":o.type,id:y,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(xc.Provider,{value:{id:g}},v.children))}),wc=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ec(t,e){if(e){for(const n in t)n.startsWith("on")&&!wc.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const qo=a.createContext({}),Zo=a.forwardRef(function(e,n){[e,n]=xe(e,n,qo);let{elementType:r="span",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Text",...i,ref:n})});class Yo{*[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 Cc(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Pc(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(()=>Xo(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Xo(t.defaultSelectedKeys,new we),[t.defaultSelectedKeys]),[v,y]=pt(f,m,t.onSelectionChange),g=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||!Cc(C,v))&&y(C)},disabledKeys:g,disabledBehavior:o}}function Xo(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=Kd(Id(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 kc(t){let{filter:e,layoutDelegate:n}=t,r=Pc(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=a.useCallback(c=>e?new Yo(e(c)):new Yo(c),[e]),l=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=Md(t,o,l),d=a.useMemo(()=>new hr(s,r,{layoutDelegate:n}),[s,r,n]);return Nc(s,d),{collection:s,disabledKeys:i,selectionManager:d}}function Nc(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 y=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),g=null,w=!1;for(;y>=0;){if(!e.isDisabled(m[y].key)){g=m[y];break}if(y<m.length-1&&!w)y++;else{w=!0;var d,c;y>((d=u==null?void 0:u.index)!==null&&d!==void 0?d:0)&&(y=(c=u==null?void 0:u.index)!==null&&c!==void 0?c:0),y--}}e.setFocusedKey(g?g.key:null)}n.current=t},[t,e])}function Tc(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}=kc({...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 Dc(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 Mc(t){var e,n;let r=Tc({...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:Jo(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=Jo(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 Jo(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 Ic=a.createContext(null),Qo=a.createContext(null),Kc=a.createContext(null),_c=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,ds);let{validationBehavior:o}=$t(Qo)||{};var l,s;let d=(s=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&s!==void 0?s:"native",c=a.useContext(Kc),u=$e(a.useMemo(()=>et(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:f,inputProps:m,isSelected:v,isDisabled:y,isReadOnly:g,isPressed:w,isInvalid:x}=c?fc({...Lt(e),value:e.value,children:typeof e.children=="function"?!0:e.children},c,u):Uo({...Lt(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:d},fr(e),u),{isFocused:E,isFocusVisible:C,focusProps:k}=Ye(),N=y||g,{hoverProps:H,isHovered:F}=bt({...e,isDisabled:N}),P=me({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:w,isHovered:F,isFocused:E,isFocusVisible:C,isDisabled:y,isReadOnly:g,isInvalid:x,isRequired:e.isRequired||!1}}),I=ce(e,{global:!0});return delete I.id,delete I.onClick,a.createElement(ue.label,{...G(I,f,H,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":F||void 0,"data-focused":E||void 0,"data-focus-visible":C||void 0,"data-disabled":y||void 0,"data-readonly":g||void 0,"data-invalid":x||void 0,"data-required":e.isRequired||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(m,k),ref:u})),P.children)}),Sc=a.createContext({}),Ro=a.createContext({});let $c=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Lc=Ct(function(e,n){[e,n]=xe(e,n,Ro);let{hoverProps:r,isHovered:i}=bt({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:s}=Ye({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,{...G($c(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})}),Fc=a.createContext(null);function Oc(t){let e=a.useRef({});return a.createElement(Fc.Provider,{value:e},t.children)}const Ac=a.createContext({isSelected:!1}),zc=a.createContext(null),en=a.createContext(null),Vc=a.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=xe(e,n,zc);let{dialogProps:i,titleProps:o}=hc({...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,{...G(d,s,i),render:e.render,ref:n,slot:e.slot||void 0},a.createElement(mt,{values:[[cs,{slots:{[_n]:{},title:{...o,level:2}}}],[Go,{slots:{[_n]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))}),Bc=a.createContext(null),pr=a.createContext(null),Hc=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 g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),w=Object.keys(e).filter(x=>g.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(tl,{...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,...y}=e;return a.createElement(el,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v},a.createElement(tl,{...y,modalRef:n},c))});function Uc(t,e){[t,e]=xe(t,e,Bc);let n=a.useContext(en),r=Dc(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=$e(e),l=a.useRef(null),s=Dn(o,i.isOpen),d=Dn(l,i.isOpen),c=s||d||t.isExiting||!1,u=Be();return!i.isOpen&&!c||u?null:a.createElement(Wc,{...t,state:i,isExiting:c,overlayRef:o,modalRef:l})}const el=a.forwardRef(Uc);function Wc({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=gd(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=Zs(),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(vd,{isExiting:e.isExiting,portalContainer:t},a.createElement(ue.div,{...G(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 tl(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=$e(l),d=Tn(s),c=me({...t,defaultClassName:"react-aria-Modal",values:{isEntering:d,isExiting:r,state:o}});return a.createElement(ue.div,{...G(ce(t,{global:!0}),e),...c,ref:s,"data-entering":d||void 0,"data-exiting":r||void 0},i&&a.createElement(hd,{onDismiss:o.close}),c.children)}const jc=a.createContext(null),Gc=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,jc);let o=$e(et(r,e.inputRef!==void 0?e.inputRef:null)),l=fr(e),{labelProps:s,inputProps:d,isSelected:c,isDisabled:u,isReadOnly:f,isPressed:m}=pc({...Lt(e),children:typeof e.children=="function"?!0:e.children},l,o),{isFocused:v,isFocusVisible:y,focusProps:g}=Ye(),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:y,isDisabled:u,isReadOnly:f,state:l}}),k=ce(e,{global:!0});return delete k.id,delete k.onClick,a.createElement(ue.label,{...G(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":y||void 0,"data-disabled":u||void 0,"data-readonly":f||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(d,g),ref:o})),C.children)}),tn=a.createContext(null),Xe=a.createContext(null),qc=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(Jd,{content:r},o=>a.createElement(Zc,{props:e,collection:o,tabsRef:n}))});function Zc({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Mc({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:s}=Ye({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,{...G(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 Yc=a.forwardRef(function(e,n){return a.useContext(Xe)?a.createElement(Xc,{props:e,forwardedRef:n}):a.createElement(lc,e)});function Xc({props:t,forwardedRef:e}){let n=a.useContext(Xe),{CollectionRoot:r}=a.useContext(Bo),{orientation:i="horizontal",keyboardActivation:o="automatic"}=$t(tn),l=$e(e),{tabListProps:s}=bc({...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,{...G(c,d,s),ref:l,"data-orientation":i||void 0},a.createElement(Oc,null,a.createElement(r,{collection:n.collection,persistedKeys:dc(n.selectionManager.focusedKey)})))}class nl extends Et{}nl.type="item";const Jc=ic(nl,(t,e,n)=>{let r=a.useContext(Xe),i=$e(e),{tabProps:o,isSelected:l,isDisabled:s,isPressed:d}=mc({key:n.key,...t},r,i),{focusProps:c,isFocused:u,isFocusVisible:f}=Ye(),{hoverProps:m,isHovered:v}=bt({isDisabled:s,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=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}}),g=n.props.href?ue.a:ue.div,w=ce(t,{global:!0});return delete w.id,delete w.onClick,a.createElement(g,{...G(w,y,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(Ac.Provider,{value:{isSelected:l}},y.children))}),Qc=Ct(function(e,n){const r=a.useContext(Xe);let i=$e(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=Dn(i,o);return!o&&!e.shouldForceMount&&!d?null:a.createElement(Rc,{...e,tabPanelRef:i,isInitiallySelected:l||!1,isExiting:d})});function Rc(t){let e=a.useContext(Xe),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:o,...l}=t,{tabPanelProps:s}=vc(t,e,r),{focusProps:d,isFocused:c,isFocusVisible:u}=Ye(),f=e.selectedKey===t.id,m=Tn(r)&&!i,v=me({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:u,isInert:qr(!f),isEntering:m,isExiting:o,state:e}}),y=ce(l,{global:!0});delete y.id;let g=f?G(y,s,d,v):G(y,v);return a.createElement(ue.div,{...g,ref:r,"data-focused":c||void 0,"data-focus-visible":u||void 0,inert:qr(!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(Bo.Provider,{value:zo},v.children)))}const eu=a.createContext({}),tu=a.createContext(null),nu=Ct(function(e,n){[e,n]=xe(e,n,tu);let{validationBehavior:r}=$t(Qo)||{};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,us);let[d,c]=la(!e["aria-label"]&&!e["aria-labelledby"]),[u,f]=a.useState("input"),{labelProps:m,inputProps:v,descriptionProps:y,errorMessageProps:g,...w}=zd({...Lt(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:[[jo,{...m,ref:d}],[Ro,{...v,ref:x}],[eu,{...v,ref:x}],[Sc,{role:"presentation",isInvalid:w.isInvalid,isDisabled:e.isDisabled||!1}],[qo,{slots:{description:y,errorMessage:g}}],[Ic,w]]},E.children))}),ru=(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},iu=(t,e)=>({classGroupId:t,validator:e}),rl=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),nn="-",il=[],ou="arbitrary..",lu=t=>{const e=au(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return su(l);const s=l.split(nn),d=s[0]===""&&s.length>1?1:0;return ol(s,d,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const d=r[l],c=n[l];return d?c?ru(c,d):d:c||il}return n[l]||il}}},ol=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const c=ol(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}},su=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?ou+r:void 0})(),au=t=>{const{theme:e,classGroups:n}=t;return du(n,e)},du=(t,e)=>{const n=rl();for(const r in t){const i=t[r];mr(i,n,r,e)}return n},mr=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];cu(l,e,n,r)}},cu=(t,e,n,r)=>{if(typeof t=="string"){uu(t,e,n);return}if(typeof t=="function"){fu(t,e,n,r);return}hu(t,e,n,r)},uu=(t,e,n)=>{const r=t===""?e:ll(e,t);r.classGroupId=n},fu=(t,e,n,r)=>{if(pu(t)){mr(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(iu(n,t))},hu=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[s,d]=i[l];mr(d,ll(e,s),n,r)}},ll=(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=rl(),n.nextPart.set(l,s)),n=s}return n},pu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,mu=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)}}},vr="!",sl=":",vu=[],al=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gu=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 g=0;g<u;g++){const w=i[g];if(l===0&&s===0){if(w===sl){o.push(i.slice(d,g)),d=g+1;continue}if(w==="/"){c=g;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(vr)?(m=f.slice(0,-1),v=!0):f.startsWith(vr)&&(m=f.slice(1),v=!0);const y=c&&c>d?c-d:void 0;return al(o,v,m,y)};if(e){const i=e+sl,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):al(vu,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},bu=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}},yu=t=>({cache:mu(t.cacheSize),parseClassName:gu(t),sortModifiers:bu(t),...lu(t)}),xu=/\s+/,wu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=e,l=[],s=t.trim().split(xu);let d="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:f,modifiers:m,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}=n(u);if(f){d=u+(d.length>0?" "+d:d);continue}let w=!!g,x=r(w?y.substring(0,g):y);if(!x){if(!w){d=u+(d.length>0?" "+d:d);continue}if(x=r(y),!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+vr:E,k=C+x;if(l.indexOf(k)>-1)continue;l.push(k);const N=i(x,w);for(let H=0;H<N.length;++H){const F=N[H];l.push(C+F)}d=u+(d.length>0?" "+d:d)}return d},Eu=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=dl(n))&&(i&&(i+=" "),i+=r);return i},dl=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=dl(t[r]))&&(n&&(n+=" "),n+=e);return n},Cu=(t,...e)=>{let n,r,i,o;const l=d=>{const c=e.reduce((u,f)=>f(u),t());return n=yu(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=wu(d,n);return i(d,u),u};return o=l,(...d)=>o(Eu(...d))},Pu=[],se=t=>{const e=n=>n[t]||Pu;return e.isThemeGetter=!0,e},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ku=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tu=/\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$/,Du=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=t=>ku.test(t),W=t=>!!t&&!Number.isNaN(Number(t)),Ae=t=>!!t&&Number.isInteger(Number(t)),gr=t=>t.endsWith("%")&&W(t.slice(0,-1)),_e=t=>Nu.test(t),fl=()=>!0,Ku=t=>Tu.test(t)&&!Du.test(t),br=()=>!1,_u=t=>Mu.test(t),Su=t=>Iu.test(t),$u=t=>!_(t)&&!$(t),Lu=t=>ze(t,bl,br),_=t=>cl.test(t),Je=t=>ze(t,yl,Ku),hl=t=>ze(t,Uu,W),Fu=t=>ze(t,wl,fl),Ou=t=>ze(t,xl,br),pl=t=>ze(t,vl,br),Au=t=>ze(t,gl,Su),rn=t=>ze(t,El,_u),$=t=>ul.test(t),kt=t=>Qe(t,yl),zu=t=>Qe(t,xl),ml=t=>Qe(t,vl),Vu=t=>Qe(t,bl),Bu=t=>Qe(t,gl),on=t=>Qe(t,El,!0),Hu=t=>Qe(t,wl,!0),ze=(t,e,n)=>{const r=cl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Qe=(t,e,n=!1)=>{const r=ul.exec(t);return r?r[1]?e(r[1]):n:!1},vl=t=>t==="position"||t==="percentage",gl=t=>t==="image"||t==="url",bl=t=>t==="length"||t==="size"||t==="bg-size",yl=t=>t==="length",Uu=t=>t==="number",xl=t=>t==="family-name",wl=t=>t==="number"||t==="weight",El=t=>t==="shadow",Wu=Cu(()=>{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"),y=se("blur"),g=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(),$,_],H=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[$,_,d],I=()=>[Oe,"full","auto",...P()],z=()=>[Ae,"none","subgrid",$,_],ee=()=>["auto",{span:["full",Ae,$,_]},Ae,$,_],ne=()=>[Ae,"auto",$,_],q=()=>["auto","min","max","fr",$,_],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],Z=()=>[Oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[Oe,"screen","full","dvw","lvw","svw","min","max","fit",...P()],re=()=>[Oe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],h=()=>[t,$,_],M=()=>[...k(),ml,pl,{position:[$,_]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Vu,Lu,{size:[$,_]}],S=()=>[gr,kt,Je],L=()=>["","none","full",c,$,_],X=()=>["",W,kt,Je],ae=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[W,gr,ml,pl],fe=()=>["","none",y,$,_],ke=()=>["none",W,$,_],fn=()=>["none",W,$,_],_r=()=>[W,$,_],hn=()=>[Oe,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[fl],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[$u],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",W],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oe,_,$,w]}],container:["container"],columns:[{columns:[W,_,$,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:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],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:[Ae,"auto",$,_]}],basis:[{basis:[Oe,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Oe,"auto","initial","none",_]}],grow:[{grow:["",W,$,_]}],shrink:[{shrink:["",W,$,_]}],order:[{order:[Ae,"first","last","none",$,_]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],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:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[s,"screen",...Z()]}],"min-w":[{"min-w":[s,"screen","none",...Z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,kt,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Hu,Fu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,_]}],"font-family":[{font:[zu,Ou,e]}],"font-features":[{"font-features":[_]}],"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,$,_]}],"line-clamp":[{"line-clamp":[W,"none",$,hl]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",$,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",$,Je]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[W,"auto",$,_]}],"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",$,_]}],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",$,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,$,_],radial:["",$,_],conic:[Ae,$,_]},Bu,Au]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,$,_]}],"outline-w":[{outline:["",W,kt,Je]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",u,on,rn]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",f,on,rn]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[W,Je]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",m,on,rn]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[W,$,_]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[$,_]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"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":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,_]}],filter:[{filter:["","none",$,_]}],blur:[{blur:fe()}],brightness:[{brightness:[W,$,_]}],contrast:[{contrast:[W,$,_]}],"drop-shadow":[{"drop-shadow":["","none",v,on,rn]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",W,$,_]}],"hue-rotate":[{"hue-rotate":[W,$,_]}],invert:[{invert:["",W,$,_]}],saturate:[{saturate:[W,$,_]}],sepia:[{sepia:["",W,$,_]}],"backdrop-filter":[{"backdrop-filter":["","none",$,_]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[W,$,_]}],"backdrop-contrast":[{"backdrop-contrast":[W,$,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,$,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,$,_]}],"backdrop-invert":[{"backdrop-invert":["",W,$,_]}],"backdrop-opacity":[{"backdrop-opacity":[W,$,_]}],"backdrop-saturate":[{"backdrop-saturate":[W,$,_]}],"backdrop-sepia":[{"backdrop-sepia":["",W,$,_]}],"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",$,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",$,_]}],ease:[{ease:["linear","initial",x,$,_]}],delay:[{delay:[W,$,_]}],animate:[{animate:["none",E,$,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,$,_]}],"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:_r()}],"skew-x":[{"skew-x":_r()}],"skew-y":[{"skew-y":_r()}],transform:[{transform:[$,_,"","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:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"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",$,_]}],"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",$,_]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[W,kt,Je,hl]}],stroke:[{stroke:["none",...h()]}],"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 Wu(t.filter(Boolean))}const ju=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"})),Gu=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"})),qu=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"})),Cl=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"})),Zu={Info:ju,Warning:Gu,Error:qu,Done:Cl,Check:Cl,Close:t=>p.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:p.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"}))},Yu={L:56,S:24},pe=({name:t,size:e="L",className:n="",onClick:r,color:i,role:o,"aria-label":l})=>{const s=Zu[t];if(!s)return null;const d=Yu[e];return p.jsx("span",{className:A("icon",o&&"icon--button",n),onClick:r,role:o,"aria-label":l||`${t} icon`,style:i?{color:i}:void 0,children:p.jsx(s,{width:d,height:d,className:"icon__svg"})})};function yr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function xr(t,e){const[n,r]=a.useState(!1),i=a.useRef(!1),o=a.useCallback(()=>{if(!(i.current||!e)){if(yr()){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 Xu={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},Ju={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function Qu(t,e){return t||Xu[e||"info"]||"default"}function Ru(t){return t==="full-width"?"full-width":"floating"}const Pl=a.forwardRef(({color:t,size:e="floating",type:n,title:r,children:i,actions:o,onClose:l,onClickHere:s,className:d},c)=>{const u=Qu(t,n),f=Ru(e),{isClosing:m,triggerClose:v,handleAnimationEnd:y}=xr("alert-exit",l),g=[...o||[],...s?[{label:"Click here",onClick:s}]:[]];return p.jsxs("div",{ref:c,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--${u}`,f==="floating"&&"max-w-[1216px]",f==="full-width"&&"eidotter-alert--full-width max-w-none",m&&"eidotter-alert--closing",d),onAnimationEnd:y,role:"alert","data-color":u,"data-size":f,children:[p.jsx("div",{className:"eidotter-alert__icon",children:p.jsx(pe,{name:Ju[u]||"Info",size:"S","aria-label":`${u} alert`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",l&&"pr-6"),children:[(r||i)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[r&&p.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&p.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),g.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:g.map((w,x)=>p.jsxs(le,{className:"eidotter-alert__action",onPress:w.onClick,children:[w.label,w.icon]},x))})]}),l&&p.jsx(le,{className:"eidotter-alert__close",onPress:v,"aria-label":"Close alert",children:p.jsx(pe,{name:"Close",size:"S"})})]})});Pl.displayName="Alert";const kl=({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 p.jsxs("div",{className:A("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:[p.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:[p.jsx("div",{className:"flex-1 text-base leading-6",children:t}),p.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:p.jsx(pe,{name:l?"Chevron Up":"Chevron Down",size:"S"})})]}),p.jsx("div",{className:"eidotter-section__content",inert:l?void 0:!0,children:e})]})},ef=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=a.useState(e),i=(o,l)=>{r(l?o:-1)};return p.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((o,l)=>p.jsx(kl,{title:o.title,defaultExpanded:l===e,onToggle:s=>i(l,s),children:o.content},l))})},Nl={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"},Tl={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 p.jsxs(le,{ref:m,type:n,isDisabled:v,isPending:i||void 0,onPress:y=>{if(l)l(y);else if(s){const g={type:"press",target:y.target,currentTarget:y.target,preventDefault:()=>{},stopPropagation:()=>{}};s(g)}},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",Nl[e]||Nl.md,Tl[t]||Tl.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&&p.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),p.jsx("span",{className:A("inline-flex items-center justify-center",i&&"opacity-70"),children:o})]})});ln.displayName="Button";const Dl={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"},Ml=a.forwardRef(({title:t,children:e,footer:n,variant:r="default",className:i,...o},l)=>p.jsxs("div",{ref:l,className:A("border-2 border-solid border-dos-border-default","font-dos text-cga-amber","eidotter-card",Dl[r]||Dl.default,i),...o,children:[t&&p.jsx("div",{className:"eidotter-card__header px-3 py-2 border-b border-dos-text-disabled bg-cga-amber-dim",children:p.jsx("span",{className:"text-dos-text-secondary text-dos-text-md uppercase",children:t})}),p.jsx("div",{className:"p-3",children:e}),n&&p.jsx("div",{className:"eidotter-card__footer px-3 py-2 border-t border-dos-text-disabled bg-dos-bg-secondary",children:n})]}));Ml.displayName="Card";const Il=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)=>p.jsx(_c,{ref:m,isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:o,name:s,value:d,"aria-label":u||i,className:A("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:y})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-checkbox__box",v&&"eidotter-checkbox__box--checked",y&&"eidotter-checkbox__box--indeterminate"),children:y?"[-]":v?"[X]":"[ ]"}),i&&p.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}));Il.displayName="Checkbox";const tf=({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 p.jsxs("div",{className:`command-prompt ${o?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[p.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),p.jsxs("div",{className:"command-prompt__input-wrapper",children:[p.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}),p.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},sn="█",an="░",wr="▓",nf="▒",Kl={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},_l={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function rf(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?wr:"")+(i>=2?nf:"");return{filled:sn.repeat(t),transition:l,empty:an.repeat(o)}}return{filled:sn.repeat(t),transition:"",empty:an.repeat(r)}}const Er=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},y)=>{const g=Math.min(80,Math.max(3,Math.floor(l))),w=Math.min(100,Math.max(0,t/e*100)),x=Math.round(w/100*g),E=A("inline-flex items-center gap-2 font-dos","eidotter-progress",Kl[i]||Kl.md,_l[r]||_l.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=A("eidotter-progress__track",k&&"eidotter-progress__track--borderless");if(n){const I=an.repeat(g);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:I}),p.jsxs("span",{className:"eidotter-progress__scanner",children:[wr,sn,wr]})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const H=sn.repeat(g),F=an.repeat(g),{transition:P}=rf(x,g,o);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:F}),p.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(w)},children:H}),P&&p.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(w)},children:P})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(w),"%"]})]})});Er.displayName="Progress";const Sl={default:"eidotter-input--default",error:"eidotter-input--error"},$l=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 p.jsxs(nu,{isDisabled:i,isInvalid:u,isRequired:s,className:A("eidotter-text-field","flex flex-col gap-1",o),children:[e&&p.jsx(yc,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),p.jsx(Lc,{ref:c,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",Sl[t]||Sl.default,i&&"eidotter-input--disabled"),onChange:l,...d}),n&&!u&&p.jsx(Zo,{slot:"description",className:"text-cga-brown font-dos text-xs",children:n}),r&&u&&p.jsx(Zo,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});$l.displayName="Input";const of=({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 g={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()},H=()=>{C(!E),c==null||c()},F=()=>{u==null||u()},P=()=>{x("active"),f==null||f()},I=z=>{z.altKey&&z.key==="F4"&&l&&(z.preventDefault(),F())};return w==="minimized"?p.jsx(le,{className:`terminal terminal--minimized ${m}`.trim(),onPress:P,"aria-label":`Restore ${e} window`,children:p.jsxs("div",{className:"terminal__taskbar-item",children:[p.jsx(pe,{name:"App",size:"S"}),p.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):p.jsxs("div",{ref:k,className:`terminal terminal--${g} terminal--${w} ${E?"terminal--maximized":""} ${m}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:P,onKeyDown:I,children:[p.jsxs("div",{className:"terminal__title-bar",children:[p.jsxs("div",{className:"terminal__title",children:[p.jsx(pe,{name:"App",size:"S","aria-hidden":"true"}),p.jsx("span",{className:"terminal__title-text",children:e})]}),(i||o||l)&&p.jsxs("div",{className:"terminal__controls",children:[i&&p.jsx(le,{className:"terminal__control terminal__control--minimize",onPress:N,"aria-label":"Minimize window",children:p.jsx(pe,{name:"Cancel",size:"S"})}),o&&p.jsx(le,{className:"terminal__control terminal__control--maximize",onPress:H,"aria-label":E?"Restore window":"Maximize window",children:p.jsx(pe,{name:E?"Fullscreen":"Add",size:"S"})}),l&&p.jsx(le,{className:"terminal__control terminal__control--close",onPress:F,"aria-label":"Close window",children:p.jsx(pe,{name:"Close",size:"S"})})]})]}),p.jsx("div",{className:"terminal__content",role:"main",children:s||p.jsx("div",{className:"terminal__default-content",children:p.jsxs("div",{className:"terminal__prompt",children:[p.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),p.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&p.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},Ll={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},lf={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Fl=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)??""),y=o??l,g=a.useCallback(C=>{const k=String(C),N=r??f.current;f.current=k,v(k),y==null||y(k,N)},[r,y]);return a.useLayoutEffect(()=>{const C=u.current;if(!C||e!=="underline")return;const k=()=>{const H=C.querySelector('[aria-selected="true"]');H&&(C.style.setProperty("--indicator-left",`${H.offsetLeft}px`),C.style.setProperty("--indicator-width",`${H.offsetWidth}px`))};k();const N=new ResizeObserver(k);return N.observe(C),()=>N.disconnect()},[r,m,e]),p.jsxs(qc,{ref:c,selectedKey:r,defaultSelectedKey:i??((E=t[0])==null?void 0:E.id),onSelectionChange:g,className:A("eidotter-tabs",lf[e],Ll[n]||Ll.md,s),children:[p.jsxs("div",{ref:u,className:"relative",children:[p.jsx(Yc,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":d["aria-label"],children:t.map(C=>p.jsx(Jc,{id:C.id,isDisabled:C.disabled,className:({isSelected:k,isDisabled:N})=>A("eidotter-tabs__tab",k&&"eidotter-tabs__tab--active",N&&"eidotter-tabs__tab--disabled"),children:C.label},C.id))}),e==="underline"&&p.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(C=>p.jsx(Qc,{id:C.id,className:"hidden"},C.id))]})});Fl.displayName="Tabs";const Ol={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"},Al={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)=>p.jsxs("span",{ref:l,className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",Ol[e]||Ol.md,Al[t]||Al.default,i),"data-variant":t,...o,children:[n&&p.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),p.jsx("span",{className:"eidotter-badge__content",children:r})]}));st.displayName="Badge";const zl=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)=>p.jsx(Gc,{ref:m,isSelected:t,defaultSelected:e,onChange:n??r,isDisabled:i,name:d,value:c,className:A("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})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-switch__track",v&&"eidotter-switch__track--checked",l==="slim"&&"eidotter-switch__track--slim",o==="sm"&&"eidotter-switch__track--sm"),children:p.jsx("span",{className:"eidotter-switch__thumb"})}),s&&p.jsx("span",{className:"text-[var(--color-cga-amber)]",children:s})]})}));zl.displayName="Switch";const dn="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",Vl=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:o})=>{const l=(s,d)=>{const c=p.jsxs(p.Fragment,{children:[n&&d&&p.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),p.jsx("span",{children:s.label})]});return s.onClick?p.jsx(le,{className:A(dn,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onPress:s.onClick,children:c}):s.href?i?p.jsx(i,{href:s.href,className:dn,children:c}):p.jsx("a",{href:s.href,className:dn,children:c}):p.jsx("span",{className:dn,children:c})};return p.jsx("nav",{"aria-label":"Breadcrumb",className:A("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",o),children:p.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 p.jsxs("li",{className:"flex items-center gap-2",children:[l(s,c),u&&p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${s.href??s.label}-${d}`)}),t.length>0&&p.jsx("li",{className:"flex items-center gap-2",children:p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),p.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:p.jsx("span",{className:"text-cga-amber",children:e})})]})})},sf=({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())},y=E=>{E.animationName!=="retro-power-on"&&E.animationName!=="retro-power-off"||v()},g=E=>{E.propertyName==="opacity"&&(f!=="powering-on"&&f!=="powering-off"||v())},w={"--retro-intensity":o},x=f!=="off";return p.jsx("div",{className:A("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:y,onTransitionEnd:g,children:x&&p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{className:"eidotter-retro-effects__scanlines"}),e&&p.jsx("div",{className:"eidotter-retro-effects__glow"}),n&&p.jsx("div",{className:"eidotter-retro-effects__flicker"}),r&&p.jsx("div",{className:"eidotter-retro-effects__bloom"})]})})},af={sm:"small",md:"medium",lg:"large",small:"small",medium:"medium",large:"large"},df={circle:"eidotter-timeline-node--circle",square:"eidotter-timeline-node--square",diamond:"eidotter-timeline-node--diamond"},cf={default:"eidotter-timeline-node--default",primary:"eidotter-timeline-node--primary",secondary:"eidotter-timeline-node--secondary",accent:"eidotter-timeline-node--accent"},uf={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=af[o]??"medium",f=()=>{s&&s()},m=v=>{s&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())};return p.jsxs("div",{ref:c,className:A("inline-flex items-center gap-2 font-dos","eidotter-timeline-node",df[t],cf[e],`eidotter-timeline-node--${u}`,uf[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"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--left",children:r}),r&&i==="top"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--top",children:r}),p.jsx("span",{className:"eidotter-timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--right",children:r}),r&&i==="bottom"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--bottom",children:r})]})});Ve.displayName="TimelineNode";const Nt=["year","month","day","hour"];function ff({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,y=a.useRef(r),g=a.useRef(f),w=a.useRef(u),x=a.useRef(l),E=a.useRef(n);a.useEffect(()=>{y.current=r,g.current=f,w.current=u,x.current=l,E.current=n});const C=a.useCallback(F=>{var P;y.current&&o(F),(P=E.current)==null||P.call(E,F)},[]),k=a.useCallback((F,P)=>{if(!y.current||!g.current)return;const I=Nt[w.current+1];I!==void 0&&(s(z=>[...z,{periodStart:F,label:P}]),C(I))},[C]),N=a.useCallback(()=>{if(!y.current||x.current.length===0)return;const F=Nt[w.current-1];F!==void 0&&(s(P=>P.slice(0,-1)),C(F))},[C]),H=a.useCallback(()=>{y.current&&(s([]),C("year"))},[C]);return{zoomLevel:c,canZoomIn:f,canZoomOut:m,breadcrumbs:l,currentPeriod:v,isDrillDownEnabled:r,drillDown:k,drillUp:N,reset:H}}function hf({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(y=>{var g;d.current||i(y),(g=c.current)==null||g.call(c,y)},[]),f=a.useCallback(y=>{u(y)},[u]),m=a.useCallback(()=>{u(null)},[u]),v=a.useCallback(y=>{var g;d.current?(g=c.current)==null||g.call(c,s.current===y?null:y):i(w=>{var E;const x=w===y?null:y;return(E=c.current)==null||E.call(c,x),x})},[]);return{selectedEntryId:l,select:f,deselect:m,toggle:v}}const pf=["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 cn(t){return new Date(t).getUTCFullYear()}function Pr(t){return new Date(t).getUTCMonth()}function Bl(t){return new Date(t).getUTCDate()}function mf(t){return new Date(t).getUTCHours()}function vf(t){return String(t)}function gf(t,e){return`${pf[e]} ${t}`}function bf(t,e,n){return`${Cr[e]} ${n}`}function yf(t,e,n,r){const i=r>=12?"pm":"am",o=r===0?12:r>12?r-12:r;return`${Cr[e]} ${n}, ${o}${i}`}function xf(t){const e=new Date(t),n=Cr[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 wf(t){return new Date(Date.UTC(t,0,1)).toISOString()}function Ef(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function Cf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function Pf(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 kf(t){return String(cn(t.date))}function Nf(t){const e=cn(t.date),n=Pr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function Tf(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function Df(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date),i=mf(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Hl(t){return{year:parseInt(t)}}function Ul(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function Wl(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function jl(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const Mf={year:4,month:7,day:10};function If(t,e,n){if(e===null||n==="hour")return t;const r=Mf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(o=>o.periodStart.slice(0,r)===i)}function Kf(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,kf,i=>{const{year:o}=Hl(i);return vf(o)},i=>{const{year:o}=Hl(i);return wf(o)},n);case"month":return un(r,Nf,i=>{const{year:o,month:l}=Ul(i);return gf(o,l)},i=>{const{year:o,month:l}=Ul(i);return Ef(o,l)},n);case"day":return un(r,Tf,i=>{const{year:o,month:l,day:s}=Wl(i);return bf(o,l,s)},i=>{const{year:o,month:l,day:s}=Wl(i);return Cf(o,l,s)},n);case"hour":return un(r,Df,i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return yf(o,l,s,d)},i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return Pf(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 p.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[p.jsx(ln,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),d?p.jsx(Vl,{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"}):p.jsx(le,{className:"timeline-zoom-controls__level",onPress:o,"aria-label":`Current zoom: ${t}. Click to reset.`,children:p.jsx(st,{variant:"accent",size:"medium",children:t.toUpperCase()})}),p.jsx(ln,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},kr=({children:t})=>p.jsxs("div",{className:"timeline-axis",children:[p.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),p.jsx("div",{className:"timeline-axis__content",children:t})]}),Gl=a.memo(({buckets:t,onBucketClick:e})=>p.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>p.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?p.jsxs(le,{className:"timeline-view__bucket-button",onPress:()=>e(n),children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Gl.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 p.jsxs("div",{className:A("eidotter-timeline-card",e&&"eidotter-timeline-card--selected",n&&"eidotter-timeline-card--expanded"),children:[p.jsxs(le,{className:"eidotter-timeline-card__trigger",onPress:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[p.jsxs("div",{className:"eidotter-timeline-card__header",children:[t.type&&p.jsx("span",{className:"eidotter-timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&p.jsx("span",{className:"eidotter-timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),p.jsx("p",{className:"eidotter-timeline-card__title",children:t.title}),!n&&l&&(()=>{const d=String(t.content);return p.jsxs("p",{className:"eidotter-timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),o]}),s&&p.jsx("div",{className:"eidotter-timeline-card__body",children:p.jsx("div",{className:"eidotter-timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&p.jsx("div",{className:"eidotter-timeline-card__footer",children:i})]})});Tt.displayName="TimelineEntryCard";const ql=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>p.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),p.jsx("div",{className:"timeline-view__content",children:i.entries.map(o=>p.jsx(Tt,{entry:o,isSelected:e===o.id,isExpanded:e===o.id,onSelect:n},o.id))})]},i.periodStart))}));ql.displayName="MonthView";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"},Nr=({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:y,handleAnimationEnd:g}=xr("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(),y()))},x=()=>{l||y()},E=r?{"--tag-color":"var("+r+")"}:void 0;return p.jsxs("span",{className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Zl[n]||Zl.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:g,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":l||void 0,"data-variant":e,...m?{role:"button",tabIndex:0}:{},...f,children:[p.jsx("span",{className:"eidotter-tag__content",children:t}),o&&p.jsx(le,{className:"eidotter-tag__close","aria-label":"Remove "+(typeof t=="string"?t:"tag"),excludeFromTabOrder:!0,onPress:x,isDisabled:l,children:"[x]"})]})},Yl={tight:"gap-1",normal:"gap-2",loose:"gap-3"},Tr=({children:t,gap:e="normal",wrap:n=!0,className:r,"aria-label":i,...o})=>p.jsx("div",{className:A("flex",n?"flex-wrap":"flex-nowrap",Yl[e]||Yl.normal,r),role:"group","aria-label":i,...o,children:t}),Xl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsx(Tt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}):void 0},i.id))})]},r.periodStart))}));Xl.displayName="DayView";const Jl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsxs(Tt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:p.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}),i.type&&p.jsx(st,{variant:"default",size:"small",children:i.type})]}),children:[p.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:xf(i.date)}),p.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));Jl.displayName="HourView";const Sf=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return p.jsx(Gl,{buckets:e,onBucketClick:i});case"month":return p.jsx(ql,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return p.jsx(Xl,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return p.jsx(Jl,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},$f=({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 M;const m=e==="static",v=a.useRef(null),y=a.useRef(null),[g,w]=a.useState(""),{zoomLevel:x,canZoomIn:E,canZoomOut:C,breadcrumbs:k,currentPeriod:N,isDrillDownEnabled:H,drillDown:F,drillUp:P,reset:I}=ff({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:z,toggle:ee,deselect:ne}=hf({selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s}),q=a.useMemo(()=>Kf(t,x,d),[t,x,d]),T=k.length>0?["year","month","day","hour"][k.length-1]:null,V=a.useMemo(()=>N&&T?If(q,N,T):q,[q,N,T]);a.useEffect(()=>{if(m||!c)return;const b=v.current;if(!b)return;let D=null;const S=L=>{!L.ctrlKey&&!L.metaKey||(L.preventDefault(),D===null&&(D=requestAnimationFrame(()=>{L.deltaY>0&&P(),D=null})))};return b.addEventListener("wheel",S,{passive:!1}),()=>{b.removeEventListener("wheel",S),D!==null&&cancelAnimationFrame(D)}},[m,c,H,E,P]),a.useEffect(()=>{if(m||!u)return;const b=D=>{var L;if(!((L=v.current)!=null&&L.contains(document.activeElement))&&document.activeElement!==v.current)return;const S=D.ctrlKey||D.metaKey;S&&D.key==="-"?(D.preventDefault(),P()):S&&D.key==="0"?(D.preventDefault(),I(),w("Showing all years")):D.key==="Escape"&&(D.preventDefault(),ne())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[m,u,P,I,ne]);const j=a.useCallback(b=>{E&&(F(b.periodStart,b.label),w(`Showing ${x==="year"?"months":x==="month"?"days":"hours"} in ${b.label}`))},[E,F,x]),Z=a.useRef(k.length);a.useEffect(()=>{var b;if(k.length!==Z.current){Z.current=k.length;const D=(b=y.current)==null?void 0:b.querySelector('.eidotter-timeline-card__trigger, .timeline-view__bucket-button, .eidotter-timeline-node[role="button"]');D&&requestAnimationFrame(()=>D.focus())}},[k.length]);const Q=a.useMemo(()=>m?[...t].sort((b,D)=>{const S=b.date.localeCompare(D.date);return d==="desc"?-S:S}):t,[m,t,d]),re=a.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),h=b=>{try{return re.format(new Date(b))}catch{return b}};return p.jsxs("div",{ref:v,...f,className:A("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:[p.jsx("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:g}),!m&&p.jsx(_f,{zoomLevel:x,canZoomIn:E,canZoomOut:C,onZoomIn:()=>{},onZoomOut:P,onReset:I,breadcrumbs:H?k:[],onBreadcrumbClick:b=>{const D=k.length-1-b;for(let S=0;S<D;S++)P()}}),p.jsx("div",{ref:y,children:t.length===0?p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsx("p",{children:"C:\\TIMELINE> No entries found."}),p.jsx("p",{children:"_"})]}):m?p.jsx(kr,{children:p.jsx("div",{className:"eidotter-timeline-container__static",role:"list","aria-label":"Timeline",children:Q.map(b=>p.jsxs("div",{className:"eidotter-timeline-container__static-entry",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:h(b.date),labelPosition:"right"})}),p.jsx(Tt,{entry:b,isSelected:!1,isExpanded:!0})]},b.id))})}):V.length===0&&N?p.jsx(kr,{children:p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((M=k[k.length-1])==null?void 0:M.label)??"this period","."]}),p.jsx("p",{children:"_"})]})}):p.jsx(kr,{children:p.jsx(Sf,{zoomLevel:x,buckets:V,selectedEntryId:z,onEntrySelect:ee,onBucketClick:j})})})]})},Ql=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 p.jsx(el,{isOpen:t,onOpenChange:u,isDismissable:!0,className:({isEntering:f,isExiting:m})=>A("eidotter-modal-overlay",f&&"eidotter-modal-overlay--entering",m&&"eidotter-modal-overlay--exiting"),children:p.jsx(Hc,{className:({isEntering:f,isExiting:m})=>A("eidotter-modal",f&&"eidotter-modal--entering",m&&"eidotter-modal--exiting"),children:p.jsxs(Vc,{ref:s,"aria-label":r,className:A("eidotter-modal__container outline-none",l),children:[p.jsxs("header",{className:"eidotter-modal__header",children:[p.jsx("h2",{className:"eidotter-modal__title",children:r}),p.jsx(le,{className:"eidotter-modal__close",onPress:()=>u(!1),"aria-label":"Close modal",children:p.jsx(pe,{name:"Close",size:"S"})})]}),p.jsx("div",{className:"eidotter-modal__body",children:i}),o&&p.jsx("footer",{className:"eidotter-modal__footer",children:o})]})})})});Ql.displayName="Modal";const Lf="░▒▓█│┤┐└┴┬├─┼",Ff=4;function Dr(t,e){const{speed:n=40,characters:r=Lf,enabled:i=!0,delay:o=0}=e??{},[l,s]=a.useState(()=>{if(!i||yr())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||yr()){s(t),c(!1);return}let f=0,m=0,v=0,y=o;c(!0);const g=w=>{v||(v=w);const x=w-v;if(y>0){y-=x,v=w,u.current=requestAnimationFrame(g);return}if(x>=n){if(v=w,m++,m>=Ff&&(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(g)};return u.current=requestAnimationFrame(g),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,o]),{text:l,isScrambling:d}}const Rl={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"}},Of={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Af={up:"▲",down:"▼",neutral:"►"},zf={up:"increasing",down:"decreasing",neutral:"unchanged"},es=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=Rl[i]||Rl.md;return p.jsxs("div",{ref:d,className:A("flex flex-col font-dos","eidotter-stat",f.root,l),...s,children:[p.jsx("span",{className:A("text-cga-amber uppercase tracking-wider leading-tight",f.label),children:t}),p.jsx("span",{className:A("text-dos-text-accent font-bold leading-none tabular-nums",f.value),children:u}),n&&p.jsxs("span",{className:A("inline-flex items-center gap-1 leading-none",Of[n],f.trend),"aria-label":`Trend: ${zf[n]}${r?`, ${r}`:""}`,children:[p.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Af[n]}),r&&p.jsx("span",{className:"tabular-nums",children:r})]})]})});es.displayName="Stat";const ts={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"},Vf=({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,y=v?e:u,g=t.filter(P=>!P.disabled).map(P=>P.id),w=y.length===0,x=a.useCallback(P=>{v||f(P),s==null||s(P)},[v,s]),E=a.useCallback(P=>{if(r==="single"){const I=y.includes(P)?[]:[P];x(I)}else{const I=y.includes(P)?y.filter(z=>z!==P):[...y,P];x(I)}},[r,y,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(),z=I.indexOf(P.target);if(z===-1)return;let ee=null;switch(P.key){case"ArrowLeft":case"ArrowUp":P.preventDefault(),ee=z>0?z-1:I.length-1;break;case"ArrowRight":case"ArrowDown":P.preventDefault(),ee=z<I.length-1?z+1:0;break;case"Home":P.preventDefault(),ee=0;break;case"End":P.preventDefault(),ee=I.length-1;break}ee!==null&&I[ee].focus()},[k]),F=i&&w?"__all__":y.length>0?y[0]:i?"__all__":g[0]||null;return p.jsxs("div",{ref:m,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",ts[l]||ts.md,d),role:"toolbar",onKeyDown:N,...c,children:[i&&p.jsx(le,{className:A("eidotter-filter-bar__item","eidotter-filter-bar__item--all",w&&"eidotter-filter-bar__item--active"),"aria-pressed":w,excludeFromTabOrder:F!=="__all__",onPress:C,children:p.jsx("span",{className:"eidotter-filter-bar__label",children:o})}),t.map(P=>{const I=y.includes(P.id),z=I&&P.color?{"--filter-bar-item-color":`var(${P.color})`}:void 0;return p.jsxs(le,{className:A("eidotter-filter-bar__item",I&&"eidotter-filter-bar__item--active",P.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":I,excludeFromTabOrder:F!==P.id,isDisabled:P.disabled,onPress:()=>E(P.id),style:z,children:[p.jsx("span",{className:"eidotter-filter-bar__label",children:P.label}),P.count!==void 0&&p.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${P.count} items`,children:P.count})]},P.id)})]})},Mr=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Bf=({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(),y=a.useRef(null),g=r!==void 0,w=g?r:d;w&&(m.current=!0);const x=()=>{const C=!w;g||c(C),i==null||i(C)},E=C=>{var k;C.key==="Escape"&&w&&(C.stopPropagation(),x(),(k=y.current)==null||k.focus())};return p.jsxs("span",{className:A("eidotter-inline-expand",w&&"eidotter-inline-expand--expanded",l),onKeyDown:E,...s,children:[p.jsxs(le,{ref:y,className:"eidotter-inline-expand__trigger","aria-expanded":w,"aria-controls":v,onPress:x,children:[t,p.jsx("span",{className:"eidotter-inline-expand__indicator","aria-hidden":"true",children:w?"[-]":"[+]"})]}),p.jsxs("span",{id:v,className:"eidotter-inline-expand__content",role:"region",inert:!w,children:[p.jsx("span",{className:"eidotter-inline-expand__inner",children:e}),o.length>0&&p.jsx("span",{className:"eidotter-inline-expand__sources",role:"list",children:o.map(C=>p.jsx("span",{className:"eidotter-inline-expand__source-item",role:"listitem",children:p.jsxs("a",{href:Mr(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&&Mr(C.favicon)&&!u.has(C.url)?p.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))}):p.jsx("span",{className:"eidotter-inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),p.jsx("span",{className:"eidotter-inline-expand__source-title",children:C.title})]})},C.url))})]})]})},Hf={horizontal:"h-px w-full",vertical:"w-px h-full"},Uf=({orientation:t="horizontal",className:e})=>p.jsx("div",{role:"separator","aria-orientation":t,className:A("shrink-0 bg-dos-border-default","eidotter-separator",Hf[t],e)}),ns=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 p.jsx("span",{ref:l,className:A("eidotter-text-scramble",d&&"eidotter-text-scramble--scrambling",i),...o,children:s})});ns.displayName="TextScramble";const rs={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 p.jsx("nav",{className:A("eidotter-nav eidotter-nav--desktop",rs[n],i),"aria-label":"Main navigation",children:p.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(l=>p.jsx("li",{className:"eidotter-nav__desktop-item",children:p.jsx(o,{href:l.href,className:A("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]),p.jsxs("div",{className:A("eidotter-nav eidotter-nav--mobile",rs[n],i),children:[p.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&&p.jsx("div",{className:"eidotter-nav__overlay",onClick:c,"aria-hidden":"true"}),p.jsxs("nav",{id:"eidotter-mobile-nav-panel",className:A("eidotter-nav__panel",o&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[p.jsx("div",{className:"eidotter-nav__panel-header",children:p.jsx("button",{onClick:c,className:"eidotter-nav__close","aria-label":"Close menu",children:p.jsx(pe,{name:"Close",size:"S"})})}),p.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>p.jsx("li",{className:"eidotter-nav__item",children:p.jsx(s,{href:u.href,className:A("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:c,children:u.label})},u.href))})]})]})},Wf=t=>p.jsxs(p.Fragment,{children:[p.jsx(Kr,{...t}),p.jsx(Ir,{...t})]}),jf={user:"eidotter-chat-message--user",assistant:"eidotter-chat-message--assistant",system:"eidotter-chat-message--system"},is=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:o,...l})=>{const s=t==="user"?r:t==="assistant"?i:"";return p.jsxs("div",{className:A("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",jf[t],n&&"eidotter-chat-message--streaming",o),...l,children:[s&&p.jsx("span",{className:"shrink-0 select-none","aria-hidden":"true",children:s}),p.jsx("span",{className:"min-w-0",children:e}),n&&p.jsx("span",{className:"eidotter-chat-message__cursor","aria-hidden":"true",children:"█"})]})},os=({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=A("flex-1 overflow-y-auto font-dos p-2 min-h-0","eidotter-chat-history",i);return t.length===0?p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsx("div",{className:"flex items-center justify-center h-full min-h-16",children:p.jsx("span",{className:"text-cga-brown font-dos text-dos-text-md",children:"Awaiting input..."})})}):p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsxs("div",{className:"flex flex-col",children:[t.map((d,c)=>{const u=e&&d.role==="assistant"&&c===t.length-1;return p.jsx(is,{role:d.role,content:d.content,isStreaming:u,userPrefix:n,assistantPrefix:r},d.id)}),p.jsx("div",{ref:l})]})})},ls=({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 p.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:u,...o,children:[p.jsx("span",{className:"text-cga-amber mr-2 mt-0.5 whitespace-nowrap select-none","aria-hidden":"true",children:e}),p.jsxs("div",{className:"flex items-start flex-1 min-w-0",children:[p.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"}),p.jsx("span",{className:"eidotter-chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},Gf=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:o,placeholder:l,disabled:s=!1,className:d,...c})=>p.jsxs("div",{className:A("flex flex-col h-full min-h-0",d),...c,children:[p.jsx(os,{className:"flex-1 min-h-0",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:o}),p.jsx(ls,{className:"shrink-0",onSend:e,prompt:r,placeholder:l,disabled:s})]}),ss=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],qf=({copyright:t,links:e,children:n,className:r,...i})=>{const o=e??ss;return p.jsxs("footer",{className:A("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[p.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&p.jsx("div",{className:"mb-3",children:n}),o.length>0&&p.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:o.map((l,s)=>p.jsxs(a.Fragment,{children:[s>0&&p.jsx("span",{className:"text-cga-brown select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),p.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&&p.jsxs("p",{className:"text-cga-brown m-0",children:["© ",t]})]})},Zf={retro:"eidotter-header--retro",modern:"eidotter-header--modern"},as=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 p.jsxs("header",{ref:u,className:A("flex items-center justify-between px-4 py-3 font-dos","eidotter-header",Zf[i],o&&"sticky top-0 z-50",d),...c,children:[p.jsx(f,{href:e,className:A("no-underline text-base font-bold tracking-wide","eidotter-header__branding"),children:s||t}),p.jsx(Ir,{items:n,activeHref:r,variant:i,linkComponent:l}),p.jsx(Kr,{items:n,activeHref:r,variant:i,linkComponent:l})]})});as.displayName="Header";const Yf={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},Xf=({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:y}=xr("notification-exit",i);a.useEffect(()=>{if(c==null||!i)return;const x=setTimeout(()=>v(),c);return()=>clearTimeout(x)},[c,i,v]);const g=u&&!o,w=s!=null;return p.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}`,m&&"eidotter-notification--closing",f),onAnimationEnd:y,role:t==="error"?"alert":"status","data-type":t,children:[l&&p.jsx("div",{className:"eidotter-notification__image",children:l}),p.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[o&&p.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:o}),g&&p.jsx("div",{className:"eidotter-notification__icon",children:p.jsx(pe,{name:Yf[t]||"Info",size:"S","aria-label":`${t} notification`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",i&&!g&&!o&&"pr-8"),children:[(e||n)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("div",{className:"eidotter-notification__title font-dos leading-[140%]",children:e}),n&&p.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),w&&p.jsxs("div",{className:"flex flex-col gap-1",children:[p.jsx(Er,{value:s,max:100,size:"sm",fullWidth:!0,showLabel:!1}),d&&p.jsx("div",{className:"eidotter-notification__text font-dos text-dos-text-xs",children:d})]}),r&&r.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:r.map((x,E)=>p.jsxs(le,{className:"eidotter-notification__action",onPress:x.onClick,children:[x.label,x.icon]},E))})]}),i&&p.jsx(le,{className:"eidotter-notification__close",onPress:v,"aria-label":"Close notification",children:p.jsx(pe,{name:"Close",size:"S"})})]})]})},Jf={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"}};function Qf(t){return at[t]}function Rf(t){return Object.entries(at).filter(([,e])=>e.origin===t).map(([e])=>e)}function eh(t){return Object.entries(at).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function th(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 nh(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 rh="0.19.1";O.AccordionFill=ef,O.Alert=Pl,O.Badge=st,O.Breadcrumb=Vl,O.Button=ln,O.Card=Ml,O.ChatContainer=Gf,O.ChatHistory=os,O.ChatInput=ls,O.ChatMessage=is,O.Checkbox=Il,O.CommandPrompt=tf,O.DesktopNav=Ir,O.FilterBar=Vf,O.Footer=qf,O.Header=as,O.Icon=pe,O.InlineExpand=Bf,O.Input=$l,O.MobileNav=Kr,O.Modal=Ql,O.Nav=Wf,O.Notification=Xf,O.Progress=Er,O.RetroEffects=sf,O.Section=kl,O.Separator=Uf,O.Stat=es,O.Switch=zl,O.Tabs=Fl,O.Tag=Nr,O.TagGroup=Tr,O.Terminal=of,O.TextScramble=ns,O.TimelineContainer=$f,O.TimelineNode=Ve,O.ZOOM_LEVELS=Nt,O.componentRegistry=at,O.defaultLegalLinks=ss,O.getComponentMeta=Qf,O.getComponentsByConsumer=eh,O.getComponentsByOrigin=Rf,O.getVariantConsumerMap=nh,O.getVariantsUsedBy=th,O.isSafeUrl=Mr,O.projects=Jf,O.useTextScramble=Dr,O.version=rh,Object.defineProperty(O,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"})}));