@commercetools/nimbus 0.0.7-rc15 → 0.0.7-rc16
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.cjs +13 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +265 -2
- package/dist/index.js +11403 -8644
- package/dist/index.js.map +1 -1
- package/package.json +8 -7
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@chakra-ui/react"),ee=require("@commercetools/nimbus-tokens"),u=require("react"),C=require("react/jsx-runtime"),Et=require("react-dom"),ue=require("@commercetools/nimbus-icons");function _4(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const fe=_4(u),_l=S.defineRecipe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:U4}=S.createRecipeContext({recipe:_l}),W4=U4("figure");function G4(e,t){return e.split("")[0].toUpperCase()+t.split("")[0].toUpperCase()}const Ul=e=>{const{ref:t,firstName:r,lastName:n,src:i,alt:a,...o}=e,[l,s]=u.useState(!1),[d,f]=u.useState(!1),c=`${r} ${n}`,p={"aria-label":`${c} avatar`,ref:t,...o},m=()=>{s(!0),f(!1)},b=()=>{s(!1),f(!0)},g=!i||!l||d;return C.jsxs(W4,{...p,children:[g?G4(r,n):null,i&&C.jsx(S.Image,{src:i,alt:a||c,onLoad:m,onError:b,display:l&&!d?"block":"none"})]})};Ul.displayName="Avatar";const Te=e=>{const{ref:t,...r}=e;return C.jsx(S.Box,{ref:t,...r})};Te.displayName="Box";const U=typeof document<"u"?u.useLayoutEffect:()=>{};function re(e){const t=u.useRef(null);return U(()=>{t.current=e},[e]),u.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function Z4(e){let[t,r]=u.useState(e),n=u.useRef(null),i=re(()=>{if(!n.current)return;let o=n.current.next();if(o.done){n.current=null;return}t===o.value?i():r(o.value)});U(()=>{n.current&&i()});let a=re(o=>{n.current=o(t),i()});return[t,a]}const Jr={prefix:String(Math.round(Math.random()*1e10)),current:0},Wl=u.createContext(Jr),q4=u.createContext(!1);let Y4=!!(typeof window<"u"&&window.document&&window.document.createElement),On=new WeakMap;function J4(e=!1){let t=u.useContext(Wl),r=u.useRef(null);if(r.current===null&&!e){var n,i;let a=(i=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(n=i.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let o=On.get(a);o==null?On.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,On.delete(a))}r.current=++t.current}return r.current}function X4(e){let t=u.useContext(Wl);t===Jr&&!Y4&&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 r=J4(!!e),n=t===Jr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function Q4(e){let t=u.useId(),[r]=u.useState(dt()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Jr.prefix}`;return e||`${n}-${t}`}const eb=typeof u.useId=="function"?Q4:X4;function tb(){return!1}function rb(){return!0}function nb(e){return()=>{}}function dt(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(nb,tb,rb):u.useContext(q4)}let ib=!!(typeof window<"u"&&window.document&&window.document.createElement),Mt=new Map,ir;typeof FinalizationRegistry<"u"&&(ir=new FinalizationRegistry(e=>{Mt.delete(e)}));function J(e){let[t,r]=u.useState(e),n=u.useRef(null),i=eb(t),a=u.useRef(null);if(ir&&ir.register(a,i),ib){const o=Mt.get(i);o&&!o.includes(n)?o.push(n):Mt.set(i,[n])}return U(()=>{let o=i;return()=>{ir&&ir.unregister(a),Mt.delete(o)}},[i]),u.useEffect(()=>{let o=n.current;return o&&r(o),()=>{o&&(n.current=null)}}),i}function ab(e,t){if(e===t)return e;let r=Mt.get(e);if(r)return r.forEach(i=>i.current=t),t;let n=Mt.get(t);return n?(n.forEach(i=>i.current=e),e):t}function zt(e=[]){let t=J(),[r,n]=Z4(t),i=u.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return U(i,[t,i,...e]),r}function ze(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Z=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ye=e=>e&&"window"in e&&e.window===e?e:Z(e).defaultView||window;function ob(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function lb(e){return ob(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let ub=!1;function gn(){return ub}function Q(e,t){if(!gn())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:lb(r)?r=r.host:r=r.parentNode}return!1}const he=(e=document)=>{var t;if(!gn())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function G(e){return gn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class sb{get currentNode(){return this._currentNode}set currentNode(t){if(!Q(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,i=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=n,l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=i,this._currentSetFor.add(l),n=i=o.host}else n=n.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Q(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let a;if(typeof this.filter=="function"?a=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(a=this.filter.acceptNode(r)),a===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let o=this.lastChild();return o&&(this.currentNode=o),o}return r&&(this.currentNode=r),r}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(t,r,n,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const s=o.shadowRoot;if(s){const d=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var l;if(typeof this.filter=="function")return this.filter(o);if(!((l=this.filter)===null||l===void 0)&&l.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=i??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const a=r.shadowRoot;if(a){const o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function db(e,t,r,n){return gn()?new sb(e,t,r,n):e.createTreeWalker(t,r,n)}function Gl(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Gl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function cb(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Gl(e))&&(n&&(n+=" "),n+=t);return n}function N(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let i in n){let a=t[i],o=n[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=ze(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=cb(a,o):i==="id"&&a&&o?t.id=ab(a,o):t[i]=o!==void 0?o:a}}return t}function zi(...e){return e.length===1&&e[0]?e[0]:t=>{for(let r of e)typeof r=="function"?r(t):r!=null&&(r.current=t)}}const fb=new Set(["id"]),pb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),mb=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),bb=/^(data-.*)$/;function q(e,t={}){let{labelable:r,isLink:n,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(fb.has(o)||r&&pb.has(o)||n&&mb.has(o)||i!=null&&i.has(o)||bb.test(o))&&(a[o]=e[o]);return a}function Le(e){if(hb())e.focus({preventScroll:!0});else{let t=vb(e);e.focus(),gb(t)}}let Rr=null;function hb(){if(Rr==null){Rr=!1;try{document.createElement("div").focus({get preventScroll(){return Rr=!0,!0}})}catch{}}return Rr}function vb(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function gb(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function yn(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ji(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function et(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Xe=et(function(){return ji(/^Mac/i)}),Zl=et(function(){return ji(/^iPhone/i)}),ql=et(function(){return ji(/^iPad/i)||Xe()&&navigator.maxTouchPoints>1}),_t=et(function(){return Zl()||ql()}),yb=et(function(){return Xe()||_t()}),Hi=et(function(){return yn(/AppleWebKit/i)&&!Yl()}),Yl=et(function(){return yn(/Chrome/i)}),$n=et(function(){return yn(/Android/i)}),$b=et(function(){return yn(/Firefox/i)}),xb=u.createContext({isNative:!0,open:Eb,useHref:e=>e});function vr(){return u.useContext(xb)}function Db(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function xt(e,t,r=!0){var n,i;let{metaKey:a,ctrlKey:o,altKey:l,shiftKey:s}=t;$b()&&(!((i=window.event)===null||i===void 0||(n=i.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Xe()?a=!0:o=!0);let d=Hi()&&Xe()&&!ql()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});xt.isOpening=r,Le(e),e.dispatchEvent(d),xt.isOpening=!1}xt.isOpening=!1;function Cb(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Eb(e,t){Cb(e,r=>xt(r,t))}function Jl(e){let t=vr();var r;const n=t.useHref((r=e.href)!==null&&r!==void 0?r:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Xl(e){let t=vr();var r;const n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Tt=new Map,hi=new Set;function bo(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let i=Tt.get(n.target);i||(i=new Set,Tt.set(n.target,i),n.target.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let i=Tt.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",r),Tt.delete(n.target)),Tt.size===0)){for(let a of hi)a();hi.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?bo():document.addEventListener("DOMContentLoaded",bo));function Ql(e){requestAnimationFrame(()=>{Tt.size===0?e():hi.add(e)})}function gr(){let e=u.useRef(new Map),t=u.useCallback((i,a,o,l)=>{let s=l!=null&&l.once?(...d)=>{e.current.delete(o),o(...d)}:o;e.current.set(o,{type:a,eventTarget:i,fn:s,options:l}),i.addEventListener(a,s,l)},[]),r=u.useCallback((i,a,o,l)=>{var s;let d=((s=e.current.get(o))===null||s===void 0?void 0:s.fn)||o;i.removeEventListener(a,d,l),e.current.delete(o)},[]),n=u.useCallback(()=>{e.current.forEach((i,a)=>{r(i.eventTarget,i.type,a,i.options)})},[r]);return u.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function _i(e,t){let{id:r,"aria-label":n,"aria-labelledby":i}=e;return r=J(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":i}}function de(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function Pb(e,t){const r=u.useRef(!0),n=u.useRef(null);u.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),u.useEffect(()=>{let i=n.current;r.current?r.current=!1:(!i||t.some((a,o)=>!Object.is(a,i[o])))&&e(),n.current=t},t)}function ho(e,t){const r=u.useRef(!0),n=u.useRef(null);U(()=>(r.current=!0,()=>{r.current=!1}),[]),U(()=>{r.current?r.current=!1:(!n.current||t.some((i,a)=>!Object.is(i,n[a])))&&e(),n.current=t},t)}function wb(){return typeof window.ResizeObserver<"u"}function vi(e){const{ref:t,box:r,onResize:n}=e;u.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(wb()){const a=new window.ResizeObserver(o=>{o.length&&n()});return a.observe(i,{box:r}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function Ui(e,t){U(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function dr(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function We(e,t){let r=e;for(dr(r,t)&&(r=r.parentElement);r&&!dr(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Sb(e,t){const r=[];for(;e&&e!==document.documentElement;)dr(e,t)&&r.push(e),e=e.parentElement;return r}let kb=0;const zn=new Map;function xn(e){let[t,r]=u.useState();return U(()=>{if(!e)return;let n=zn.get(e);if(n)r(n.element.id);else{let i=`react-aria-description-${kb++}`;r(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},zn.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),zn.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function qe(e,t,r,n){let i=re(r),a=r==null;u.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,n),()=>{o.removeEventListener(t,i,n)}},[e,t,n,a,i])}function eu(e,t){let r=vo(e,t,"left"),n=vo(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:c,scrollPaddingBottom:p,scrollPaddingLeft:m}=getComputedStyle(e),b=o+parseInt(d,10),g=l+parseInt(s,10),y=b+e.clientWidth,$=g+e.clientHeight,E=parseInt(f,10)||0,x=parseInt(p,10)||0,B=parseInt(c,10)||0,w=parseInt(m,10)||0;r<=o+w?o=r-parseInt(d,10)-w:r+i>y-B&&(o+=r+i-y+B),n<=g+E?l=n-parseInt(s,10)-E:n+a>$-x&&(l+=n+a-$+x),e.scrollLeft=o,e.scrollTop=l}function vo(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}function Ge(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let s=Sb(e);for(let d of s)eu(d,e)}else{var r;let{left:s,top:d}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:c}=e.getBoundingClientRect();if(Math.abs(s-f)>1||Math.abs(d-c)>1){var n,i,a;t==null||(i=t.containingElement)===null||i===void 0||(n=i.scrollIntoView)===null||n===void 0||n.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function gi(e){return e.mozInputSource===0&&e.isTrusted?!0:$n()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Bb(e){return!$n()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Tb(e,t){let r=u.useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}function Ut(e,t,r){let n=u.useRef(t),i=re(()=>{r&&r(n.current)});u.useEffect(()=>{var a;let o=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}const Fb="react-aria-clear-focus",Rb="react-aria-focus";function Ft(e){return Xe()?e.metaKey:e.ctrlKey}function tu(e,t=!0){let[r,n]=u.useState(!0),i=r&&t;return U(()=>{if(i&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,i]),nu(e,i,u.useCallback(()=>n(!1),[])),i}function ru(e,t){let[r,n]=u.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let i=r==="exiting";return nu(e,i,u.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),i}function nu(e,t,r){U(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let i=!1;return Promise.all(n.map(a=>a.finished)).then(()=>{i||Et.flushSync(()=>{r()})}).catch(()=>{}),()=>{i=!0}}},[e,t,r])}const Wi=["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"])'],Ab=Wi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Wi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ib=Wi.join(':not([hidden]):not([tabindex="-1"]),');function iu(e){return e.matches(Ab)}function Mb(e){return e.matches(Ib)}function Re(e,t,r){let[n,i]=u.useState(e||t),a=u.useRef(e!==void 0),o=e!==void 0;u.useEffect(()=>{let d=a.current;d!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let l=o?e:n,s=u.useCallback((d,...f)=>{let c=(p,...m)=>{r&&(Object.is(l,p)||r(p,...m)),o||(l=p)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((m,...b)=>{let g=d(o?l:m,...b);return c(g,...f),o?m:g})):(o||i(d),c(d,...f))},[o,l,r]);return[l,s]}function $t(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Ar(e,t){let r=e,n=t.toString(),i=n.indexOf("."),a=i>=0?n.length-i:0;if(a>0){let o=Math.pow(10,a);r=Math.round(r*o)/o}return r}function _e(e,t,r,n){t=Number(t),r=Number(r);let i=(e-(isNaN(t)?0:t))%n,a=Ar(Math.abs(i)*2>=n?e+Math.sign(i)*(n-Math.abs(i)):e-i,n);return isNaN(t)?!isNaN(r)&&a>r&&(a=Math.floor(Ar(r/n,n))*n):a<t?a=t:!isNaN(r)&&a>r&&(a=t+Math.floor(Ar((r-t)/n,n))*n),a=Ar(a,n),a}function Gi(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function au(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ou(e){let t=u.useRef({isFocused:!1,observer:null});U(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=re(n=>{e==null||e(n)});return u.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=n.target,a=o=>{if(t.current.isFocused=!1,i.disabled){let l=Gi(o);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Xr=!1;function go(e){for(;e&&!iu(e);)e=e.parentElement;let t=ye(e),r=t.document.activeElement;if(!r||r===e)return;Xr=!0;let n=!1,i=f=>{(f.target===r||n)&&f.stopImmediatePropagation()},a=f=>{(f.target===r||n)&&(f.stopImmediatePropagation(),!e&&!n&&(n=!0,Le(r),s()))},o=f=>{(f.target===e||n)&&f.stopImmediatePropagation()},l=f=>{(f.target===e||n)&&(f.stopImmediatePropagation(),n||(n=!0,Le(r),s()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",o,!0);let s=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",o,!0),Xr=!1,n=!1},d=requestAnimationFrame(s);return s}let Rt="default",yi="",_r=new WeakMap;function yo(e){if(_t()){if(Rt==="default"){const t=Z(e);yi=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Rt="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";_r.set(e,e.style[t]),e.style[t]="none"}}function jn(e){if(_t()){if(Rt!=="disabled")return;Rt="restoring",setTimeout(()=>{Ql(()=>{if(Rt==="restoring"){const t=Z(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=yi||""),yi="",Rt="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_r.has(e)){let t=_r.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),_r.delete(e)}}const cr=u.createContext({register:()=>{}});cr.displayName="PressResponderContext";function Lb(e,t){return t.get?t.get.call(e):t.value}function lu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Nb(e,t){var r=lu(e,t,"get");return Lb(e,r)}function Kb(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yr(e,t,r){Kb(e,t),t.set(e,r)}function Vb(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function $o(e,t,r){var n=lu(e,t,"set");return Vb(e,n,r),r}function Ob(e){let t=u.useContext(cr);if(t){let{register:r,...n}=t;e=N(n,e),r()}return Ui(t,e.ref),e}var Ir=new WeakMap;class Mr{continuePropagation(){$o(this,Ir,!1)}get shouldStopPropagation(){return Nb(this,Ir)}constructor(t,r,n,i){yr(this,Ir,{writable:!0,value:void 0}),$o(this,Ir,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:n.currentTarget;const l=o==null?void 0:o.getBoundingClientRect();let s,d=0,f,c=null;n.clientX!=null&&n.clientY!=null&&(f=n.clientX,c=n.clientY),l&&(f!=null&&c!=null?(s=f-l.left,d=c-l.top):(s=l.width/2,d=l.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=d}}const xo=Symbol("linkClicked");function je(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:l,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:c,ref:p,...m}=Ob(e),[b,g]=u.useState(!1),y=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:$,removeAllGlobalListeners:E}=gr(),x=re((h,T)=>{let L=y.current;if(l||L.didFirePressStart)return!1;let R=!0;if(L.isTriggeringEvent=!0,n){let H=new Mr("pressstart",T,h);n(H),R=H.shouldStopPropagation}return r&&r(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,g(!0),R}),B=re((h,T,L=!0)=>{let R=y.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let H=!0;if(i){let v=new Mr("pressend",T,h);i(v),H=v.shouldStopPropagation}if(r&&r(!1),g(!1),t&&L&&!l){let v=new Mr("press",T,h);t(v),H&&(H=v.shouldStopPropagation)}return R.isTriggeringEvent=!1,H}),w=re((h,T)=>{let L=y.current;if(l)return!1;if(a){L.isTriggeringEvent=!0;let R=new Mr("pressup",T,h);return a(R),L.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),D=re(h=>{let T=y.current;if(T.isPressed&&T.target){T.didFirePressStart&&T.pointerType!=null&&B(St(T.target,h),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,E(),c||jn(T.target);for(let L of T.disposables)L();T.disposables=[]}}),I=re(h=>{f&&D(h)}),M=re(h=>{o==null||o(h)}),O=re((h,T)=>{if(o){let L=new MouseEvent("click",h);au(L,T),o(Gi(L))}}),F=u.useMemo(()=>{let h=y.current,T={onKeyDown(R){if(Hn(R.nativeEvent,R.currentTarget)&&Q(R.currentTarget,G(R.nativeEvent))){var H;Eo(G(R.nativeEvent),R.key)&&R.preventDefault();let v=!0;if(!h.isPressed&&!R.repeat){h.target=R.currentTarget,h.isPressed=!0,h.pointerType="keyboard",v=x(R,"keyboard");let k=R.currentTarget,P=K=>{Hn(K,k)&&!K.repeat&&Q(k,G(K))&&h.target&&w(St(h.target,K),"keyboard")};$(Z(R.currentTarget),"keyup",ze(P,L),!0)}v&&R.stopPropagation(),R.metaKey&&Xe()&&((H=h.metaKeyEvents)===null||H===void 0||H.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(R){if(!(R&&!Q(R.currentTarget,G(R.nativeEvent)))&&R&&R.button===0&&!h.isTriggeringEvent&&!xt.isOpening){let H=!0;if(l&&R.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||gi(R.nativeEvent))){let v=x(R,"virtual"),k=w(R,"virtual"),P=B(R,"virtual");M(R),H=v&&k&&P}else if(h.isPressed&&h.pointerType!=="keyboard"){let v=h.pointerType||R.nativeEvent.pointerType||"virtual";H=B(St(R.currentTarget,R),v,!0),h.isOverTarget=!1,M(R),D(R)}h.ignoreEmulatedMouseEvents=!1,H&&R.stopPropagation()}}},L=R=>{var H;if(h.isPressed&&h.target&&Hn(R,h.target)){var v;Eo(G(R),R.key)&&R.preventDefault();let P=G(R),K=Q(h.target,G(R));B(St(h.target,R),"keyboard",K),K&&O(R,h.target),E(),R.key!=="Enter"&&Zi(h.target)&&Q(h.target,P)&&!R[xo]&&(R[xo]=!0,xt(h.target,R,!1)),h.isPressed=!1,(v=h.metaKeyEvents)===null||v===void 0||v.delete(R.key)}else if(R.key==="Meta"&&(!((H=h.metaKeyEvents)===null||H===void 0)&&H.size)){var k;let P=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let K of P.values())(k=h.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){T.onPointerDown=v=>{if(v.button!==0||!Q(v.currentTarget,G(v.nativeEvent)))return;if(Bb(v.nativeEvent)){h.pointerType="virtual";return}h.pointerType=v.pointerType;let k=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=v.pointerId,h.target=v.currentTarget,c||yo(h.target),k=x(v,h.pointerType);let P=G(v.nativeEvent);"releasePointerCapture"in P&&P.releasePointerCapture(v.pointerId),$(Z(v.currentTarget),"pointerup",R,!1),$(Z(v.currentTarget),"pointercancel",H,!1)}k&&v.stopPropagation()},T.onMouseDown=v=>{if(Q(v.currentTarget,G(v.nativeEvent))&&v.button===0){if(d){let k=go(v.target);k&&h.disposables.push(k)}v.stopPropagation()}},T.onPointerUp=v=>{!Q(v.currentTarget,G(v.nativeEvent))||h.pointerType==="virtual"||v.button===0&&w(v,h.pointerType||v.pointerType)},T.onPointerEnter=v=>{v.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,x(St(h.target,v),h.pointerType))},T.onPointerLeave=v=>{v.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,B(St(h.target,v),h.pointerType,!1),I(v))};let R=v=>{if(v.pointerId===h.activePointerId&&h.isPressed&&v.button===0&&h.target){if(Q(h.target,G(v))&&h.pointerType!=null){let k=!1,P=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(k?D(v):(Le(h.target),h.target.click()))},80);$(v.currentTarget,"click",()=>k=!0,!0),h.disposables.push(()=>clearTimeout(P))}else D(v);h.isOverTarget=!1}},H=v=>{D(v)};T.onDragStart=v=>{Q(v.currentTarget,G(v.nativeEvent))&&D(v)}}else if(process.env.NODE_ENV==="test"){T.onMouseDown=v=>{if(v.button!==0||!Q(v.currentTarget,G(v.nativeEvent)))return;if(h.ignoreEmulatedMouseEvents){v.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=v.currentTarget,h.pointerType=gi(v.nativeEvent)?"virtual":"mouse",Et.flushSync(()=>x(v,h.pointerType))&&v.stopPropagation(),d){let P=go(v.target);P&&h.disposables.push(P)}$(Z(v.currentTarget),"mouseup",R,!1)},T.onMouseEnter=v=>{if(!Q(v.currentTarget,G(v.nativeEvent)))return;let k=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,k=x(v,h.pointerType)),k&&v.stopPropagation()},T.onMouseLeave=v=>{if(!Q(v.currentTarget,G(v.nativeEvent)))return;let k=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,k=B(v,h.pointerType,!1),I(v)),k&&v.stopPropagation()},T.onMouseUp=v=>{Q(v.currentTarget,G(v.nativeEvent))&&!h.ignoreEmulatedMouseEvents&&v.button===0&&w(v,h.pointerType||"mouse")};let R=v=>{if(v.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&h.target.contains(v.target)&&h.pointerType!=null||D(v),h.isOverTarget=!1}};T.onTouchStart=v=>{if(!Q(v.currentTarget,G(v.nativeEvent)))return;let k=zb(v.nativeEvent);if(!k)return;h.activePointerId=k.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=v.currentTarget,h.pointerType="touch",c||yo(h.target),x(nt(h.target,v),h.pointerType)&&v.stopPropagation(),$(ye(v.currentTarget),"scroll",H,!0)},T.onTouchMove=v=>{if(!Q(v.currentTarget,G(v.nativeEvent)))return;if(!h.isPressed){v.stopPropagation();return}let k=Do(v.nativeEvent,h.activePointerId),P=!0;k&&Co(k,v.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,P=x(nt(h.target,v),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,P=B(nt(h.target,v),h.pointerType,!1),I(nt(h.target,v))),P&&v.stopPropagation()},T.onTouchEnd=v=>{if(!Q(v.currentTarget,G(v.nativeEvent)))return;if(!h.isPressed){v.stopPropagation();return}let k=Do(v.nativeEvent,h.activePointerId),P=!0;k&&Co(k,v.currentTarget)&&h.pointerType!=null?(w(nt(h.target,v),h.pointerType),P=B(nt(h.target,v),h.pointerType),O(v.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(P=B(nt(h.target,v),h.pointerType,!1)),P&&v.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!c&&jn(h.target),E()},T.onTouchCancel=v=>{Q(v.currentTarget,G(v.nativeEvent))&&(v.stopPropagation(),h.isPressed&&D(nt(h.target,v)))};let H=v=>{h.isPressed&&Q(G(v),h.target)&&D({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=v=>{Q(v.currentTarget,G(v.nativeEvent))&&D(v)}}return T},[$,l,d,E,c,D,I,B,x,w,M,O]);return u.useEffect(()=>{let h=p==null?void 0:p.current;h&&h instanceof ye(h).Element&&ye(h).getComputedStyle(h).touchAction==="auto"&&(h.style.touchAction="pan-x pan-y pinch-zoom")},[p]),u.useEffect(()=>{let h=y.current;return()=>{var T;c||jn((T=h.target)!==null&&T!==void 0?T:void 0);for(let L of h.disposables)L();h.disposables=[]}},[c]),{isPressed:s||b,pressProps:N(m,F)}}function Zi(e){return e.tagName==="A"&&e.hasAttribute("href")}function Hn(e,t){const{key:r,code:n}=e,i=t,a=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(i instanceof ye(i).HTMLInputElement&&!uu(i,r)||i instanceof ye(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Zi(i))&&r!=="Enter")}function zb(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Do(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const i=r[n];if(i.identifier===t)return i}return null}function nt(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function St(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function jb(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Hb(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Co(e,t){let r=t.getBoundingClientRect(),n=jb(e);return Hb(r,n)}function _b(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zi(e)}function Eo(e,t){return e instanceof HTMLInputElement?!uu(e,t):_b(e)}const Ub=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function uu(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Ub.has(e.type)}let Qe=null,fr=new Set,ur=new Map,Dt=!1,$i=!1;const Wb={Tab:!0,Escape:!0};function Dn(e,t){for(let r of fr)r(e,t)}function Gb(e){return!(e.metaKey||!Xe()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Qr(e){Dt=!0,Gb(e)&&(Qe="keyboard",Dn("keyboard",e))}function Be(e){Qe="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Dt=!0,Dn("pointer",e))}function su(e){gi(e)&&(Dt=!0,Qe="virtual")}function du(e){e.target===window||e.target===document||Xr||!e.isTrusted||(!Dt&&!$i&&(Qe="virtual",Dn("virtual",e)),Dt=!1,$i=!1)}function cu(){Xr||(Dt=!1,$i=!0)}function en(e){if(typeof window>"u"||ur.get(ye(e)))return;const t=ye(e),r=Z(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Dt=!0,n.apply(this,arguments)},r.addEventListener("keydown",Qr,!0),r.addEventListener("keyup",Qr,!0),r.addEventListener("click",su,!0),t.addEventListener("focus",du,!0),t.addEventListener("blur",cu,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Be,!0),r.addEventListener("pointermove",Be,!0),r.addEventListener("pointerup",Be,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Be,!0),r.addEventListener("mousemove",Be,!0),r.addEventListener("mouseup",Be,!0)),t.addEventListener("beforeunload",()=>{fu(e)},{once:!0}),ur.set(t,{focus:n})}const fu=(e,t)=>{const r=ye(e),n=Z(e);t&&n.removeEventListener("DOMContentLoaded",t),ur.has(r)&&(r.HTMLElement.prototype.focus=ur.get(r).focus,n.removeEventListener("keydown",Qr,!0),n.removeEventListener("keyup",Qr,!0),n.removeEventListener("click",su,!0),r.removeEventListener("focus",du,!0),r.removeEventListener("blur",cu,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Be,!0),n.removeEventListener("pointermove",Be,!0),n.removeEventListener("pointerup",Be,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Be,!0),n.removeEventListener("mousemove",Be,!0),n.removeEventListener("mouseup",Be,!0)),ur.delete(r))};function Zb(e){const t=Z(e);let r;return t.readyState!=="loading"?en(e):(r=()=>{en(e)},t.addEventListener("DOMContentLoaded",r)),()=>fu(e,r)}typeof document<"u"&&Zb();function jt(){return Qe!=="pointer"}function pr(){return Qe}function pu(e){Qe=e,Dn(e,null)}function mu(){en();let[e,t]=u.useState(Qe);return u.useEffect(()=>{let r=()=>{t(Qe)};return fr.add(r),()=>{fr.delete(r)}},[]),dt()?null:e}const qb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yb(e,t,r){let n=Z(r==null?void 0:r.target);const i=typeof window<"u"?ye(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?ye(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?ye(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window<"u"?ye(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof i&&!qb.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof o&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!Wb[r.key])}function Jb(e,t,r){en(),u.useEffect(()=>{let n=(i,a)=>{Yb(!!(r!=null&&r.isTextInput),i,a)&&e(jt())};return fr.add(n),()=>{fr.delete(n)}},t)}function ge(e){const t=Z(e),r=he(t);if(pr()==="virtual"){let n=r;Ql(()=>{he(t)===n&&e.isConnected&&Le(e)})}else Le(e)}function qi(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e;const a=u.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),i&&i(!1),!0},[n,i]),o=ou(a),l=u.useCallback(s=>{const d=Z(s.target),f=d?he(d):he();s.target===s.currentTarget&&f===G(s.nativeEvent)&&(r&&r(s),i&&i(!0),o(s))},[i,r,o]);return{focusProps:{onFocus:!t&&(r||i||n)?l:void 0,onBlur:!t&&(n||i)?a:void 0}}}function Po(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&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."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function Xb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Po(e.onKeyDown),onKeyUp:Po(e.onKeyUp)}}}let tn=u.createContext(null);function Qb(e){let t=u.useContext(tn)||{};Ui(t,e);let{ref:r,...n}=t;return n}const eh=u.forwardRef(function(t,r){let{children:n,...i}=t,a=de(r),o={...i,ref:a};return u.createElement(tn.Provider,{value:o},n)});function ct(e,t){let{focusProps:r}=qi(e),{keyboardProps:n}=Xb(e),i=N(r,n),a=Qb(t),o=e.isDisabled?{}:a,l=u.useRef(e.autoFocus);u.useEffect(()=>{l.current&&t.current&&ge(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:N({...i,tabIndex:s},o)}}const th=u.forwardRef(({children:e,...t},r)=>{let n=u.useRef(!1),i=u.useContext(cr);r=de(r||(i==null?void 0:i.ref));let a=N(i||{},{...t,ref:r,register(){n.current=!0,i&&i.register()}});return Ui(i,r),u.useEffect(()=>{n.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),u.createElement(cr.Provider,{value:a},e)});function rh({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(cr.Provider,{value:t},e)}function ft(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,a=u.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:l}=gr(),s=u.useCallback(c=>{c.currentTarget.contains(c.target)&&a.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(c),i&&i(!1))},[r,i,a,l]),d=ou(s),f=u.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const p=Z(c.target),m=he(p);if(!a.current.isFocusWithin&&m===G(c.nativeEvent)){n&&n(c),i&&i(!0),a.current.isFocusWithin=!0,d(c);let b=c.currentTarget;o(p,"focus",g=>{if(a.current.isFocusWithin&&!Q(b,g.target)){let y=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});au(y,b);let $=Gi(y);s($)}},{capture:!0})}},[n,i,d,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:s}}}let rn=!1,_n=0;function xi(){rn=!0,setTimeout(()=>{rn=!1},50)}function wo(e){e.pointerType==="touch"&&xi()}function nh(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",wo):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",xi),_n++,()=>{_n--,!(_n>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",wo):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",xi))}}function Ae(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[a,o]=u.useState(!1),l=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(nh,[]);let{addGlobalListener:s,removeAllGlobalListeners:d}=gr(),{hoverProps:f,triggerHoverEnd:c}=u.useMemo(()=>{let p=(g,y)=>{if(l.pointerType=y,i||y==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let $=g.currentTarget;l.target=$,s(Z(g.target),"pointerover",E=>{l.isHovered&&l.target&&!Q(l.target,E.target)&&m(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:$,pointerType:y}),r&&r(!0),o(!0)},m=(g,y)=>{let $=l.target;l.pointerType="",l.target=null,!(y==="touch"||!l.isHovered||!$)&&(l.isHovered=!1,d(),n&&n({type:"hoverend",target:$,pointerType:y}),r&&r(!1),o(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=g=>{rn&&g.pointerType==="mouse"||p(g,g.pointerType)},b.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&m(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!rn&&p(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&m(g,"mouse")}),{hoverProps:b,triggerHoverEnd:m}},[t,r,n,i,l,s,d]);return u.useEffect(()=>{i&&c({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:f,isHovered:a}}function ih(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=e,a=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=re(s=>{r&&Lr(s,t)&&(i&&i(s),a.current.isPointerDown=!0)}),l=re(s=>{r&&r(s)});u.useEffect(()=>{let s=a.current;if(n)return;const d=t.current,f=Z(d);if(typeof PointerEvent<"u"){let c=p=>{s.isPointerDown&&Lr(p,t)&&l(p),s.isPointerDown=!1};return f.addEventListener("pointerdown",o,!0),f.addEventListener("pointerup",c,!0),()=>{f.removeEventListener("pointerdown",o,!0),f.removeEventListener("pointerup",c,!0)}}else if(process.env.NODE_ENV==="test"){let c=m=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Lr(m,t)&&l(m),s.isPointerDown=!1},p=m=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Lr(m,t)&&l(m),s.isPointerDown=!1};return f.addEventListener("mousedown",o,!0),f.addEventListener("mouseup",c,!0),f.addEventListener("touchstart",o,!0),f.addEventListener("touchend",p,!0),()=>{f.removeEventListener("mousedown",o,!0),f.removeEventListener("mouseup",c,!0),f.removeEventListener("touchstart",o,!0),f.removeEventListener("touchend",p,!0)}}},[t,n,o,l])}function Lr(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function ah(e,t){let{onScroll:r,isDisabled:n}=e,i=u.useCallback(a=>{a.ctrlKey||(a.preventDefault(),a.stopPropagation(),r&&r({deltaX:a.deltaX,deltaY:a.deltaY}))},[r]);qe(t,"wheel",n?void 0:i)}const oh=500;function bu(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:i,threshold:a=oh,accessibilityDescription:o}=e;const l=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:d}=gr(),{pressProps:f}=je({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Z(p.target).activeElement!==p.target&&Le(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},a),p.pointerType==="touch")){let m=b=>{b.preventDefault()};s(p.target,"contextmenu",m,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{d(p.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),c=xn(i&&!t?o:void 0);return{longPressProps:N(f,c)}}function lh(e,t){let{elementType:r="a",onPress:n,onPressStart:i,onPressEnd:a,onClick:o,isDisabled:l,...s}=e,d={};r!=="a"&&(d={role:"link",tabIndex:l?void 0:0});let{focusableProps:f}=ct(e,t),{pressProps:c,isPressed:p}=je({onPress:n,onPressStart:i,onPressEnd:a,onClick:o,isDisabled:l,ref:t}),m=q(s,{labelable:!0}),b=N(f,c),g=vr(),y=Xl(e);return{isPressed:p,linkProps:N(m,y,{...b,...d,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:$=>{var E;(E=c.onClick)===null||E===void 0||E.call(c,$),!g.isNative&&$.currentTarget instanceof HTMLAnchorElement&&$.currentTarget.href&&!$.isDefaultPrevented()&&Db($.currentTarget,$)&&e.href&&($.preventDefault(),g.open($.currentTarget,$,e.href,e.routerOptions))}})}}const uh=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),sh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function dh(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return uh.has(r.script)}let t=e.split("-")[0];return sh.has(t)}const ch=Symbol.for("react-aria.i18n.locale");function hu(){let e=typeof window<"u"&&window[ch]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:dh(e)?"rtl":"ltr"}}let Di=hu(),ar=new Set;function So(){Di=hu();for(let e of ar)e(Di)}function fh(){let e=dt(),[t,r]=u.useState(Di);return u.useEffect(()=>(ar.size===0&&window.addEventListener("languagechange",So),ar.add(r),()=>{ar.delete(r),ar.size===0&&window.removeEventListener("languagechange",So)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const ph=u.createContext(null);function be(){let e=fh();return u.useContext(ph)||e}const mh=Symbol.for("react-aria.i18n.locale"),bh=Symbol.for("react-aria.i18n.strings");let kt;class Pt{getStringForLocale(t,r){let i=this.getStringsForLocale(r)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${r} locale`);return i}getStringsForLocale(t){let r=this.strings[t];return r||(r=hh(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[mh];if(kt===void 0){let i=window[bh];if(!i)return null;kt={};for(let a in i)kt[a]=new Pt({[r]:i[a]},r)}let n=kt==null?void 0:kt[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function hh(e,t,r="en-US"){if(t[e])return t[e];let n=vh(e);if(t[n])return t[n];for(let i in t)if(i.startsWith(n+"-"))return t[i];return t[r]}function vh(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ko=new Map,Bo=new Map;class vu{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let i=r["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+n,o=ko.get(a);o||(o=new Intl.PluralRules(this.locale,{type:n}),ko.set(a,o));let l=o.select(t);return i=r[l]||r.other,typeof i=="function"?i():i}number(t){let r=Bo.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Bo.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const To=new WeakMap;function gh(e){let t=To.get(e);return t||(t=new Pt(e),To.set(e,t)),t}function gu(e,t){return t&&Pt.getGlobalDictionaryForPackage(t)||gh(e)}function tt(e,t){let{locale:r}=be(),n=gu(e,t);return u.useMemo(()=>new vu(r,n),[r,n])}function Lt(e,t){return e-t*Math.floor(e/t)}const yu=1721426;function gt(e,t,r,n){t=$r(e,t);let i=t-1,a=-2;return r<=2?a=0:at(t)&&(a=-1),yu-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+a+n)}function at(e){return e%4===0&&(e%100!==0||e%400===0)}function $r(e,t){return e==="BC"?1-t:t}function Cn(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const yh={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class we{fromJulianDay(t){let r=t,n=r-yu,i=Math.floor(n/146097),a=Lt(n,146097),o=Math.floor(a/36524),l=Lt(a,36524),s=Math.floor(l/1461),d=Lt(l,1461),f=Math.floor(d/365),c=i*400+o*100+s*4+f+(o!==4&&f!==4?1:0),[p,m]=Cn(c),b=r-gt(p,m,1,1),g=2;r<gt(p,m,3,1)?g=0:at(m)&&(g=1);let y=Math.floor(((b+g)*12+373)/367),$=r-gt(p,m,y,1)+1;return new se(p,m,y,$)}toJulianDay(t){return gt(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return yh[at(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return at(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function $u(e,t){var r,n,i,a;return(a=(i=(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&i!==void 0?i:(n=t.isEqual)===null||n===void 0?void 0:n.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function xu(e){return Ye(Date.now(),e)}function $h(e){return Su(xu(e))}function Du(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Cu(e,t){return Fo(e)-Fo(t)}function Fo(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Un=null;function En(){return Un==null&&(Un=new Intl.DateTimeFormat().resolvedOptions().timeZone),Un}function xh(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Dh(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Ht(e){e=$e(e,new we);let t=$r(e.era,e.year);return Eu(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Eu(e,t,r,n,i,a,o){let l=new Date;return l.setUTCHours(n,i,a,o),l.setUTCFullYear(e,t-1,r),l.getTime()}function Ci(e,t){if(t==="UTC")return 0;if(e>0&&t===En())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:i,hour:a,minute:o,second:l}=Pu(e,t);return Eu(r,n,i,a,o,l,0)-Math.floor(e/1e3)*1e3}const Ro=new Map;function Pu(e,t){let r=Ro.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ro.set(t,r));let n=r.formatToParts(new Date(e)),i={};for(let a of n)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const Ao=864e5;function Ch(e,t,r,n){return(r===n?[r]:[r,n]).filter(a=>Eh(e,t,a))}function Eh(e,t,r){let n=Pu(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Ze(e,t,r="compatible"){let n=st(e);if(t==="UTC")return Ht(n);if(t===En()&&r==="compatible"){n=$e(n,new we);let s=new Date,d=$r(n.era,n.year);return s.setFullYear(d,n.month-1,n.day),s.setHours(n.hour,n.minute,n.second,n.millisecond),s.getTime()}let i=Ht(n),a=Ci(i-Ao,t),o=Ci(i+Ao,t),l=Ch(n,t,i-a,i-o);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function wu(e,t,r="compatible"){return new Date(Ze(e,t,r))}function Ye(e,t){let r=Ci(e,t),n=new Date(e+r),i=n.getUTCFullYear(),a=n.getUTCMonth()+1,o=n.getUTCDate(),l=n.getUTCHours(),s=n.getUTCMinutes(),d=n.getUTCSeconds(),f=n.getUTCMilliseconds();return new br(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,r,l,s,d,f)}function Su(e){return new se(e.calendar,e.era,e.year,e.month,e.day)}function st(e,t){let r=0,n=0,i=0,a=0;if("timeZone"in e)({hour:r,minute:n,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:i,millisecond:a}=t),new nn(e.calendar,e.era,e.year,e.month,e.day,r,n,i,a)}function Io(e){return new wn(e.hour,e.minute,e.second,e.millisecond)}function $e(e,t){if($u(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,Ct(n),n}function ku(e,t,r){if(e instanceof br)return e.timeZone===t?e:wh(e,t);let n=Ze(e,t,r);return Ye(n,t)}function Ph(e){let t=Ht(e)-e.offset;return new Date(t)}function wh(e,t){let r=Ht(e)-e.offset;return $e(Ye(r,t),e.calendar)}const Yt=36e5;function Pn(e,t){let r=e.copy(),n="hour"in r?Ru(r,t):0;Ei(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Pi(r),Bu(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,Sh(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){var a,o;let s=(a=(o=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,r);r.year=i,r.month=s?1:r.calendar.getMonthsInYear(r),r.day=s?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function Ei(e,t){var r,n;!((r=(n=e.calendar).isInverseEra)===null||r===void 0)&&r.call(n,e)&&(t=-t),e.year+=t}function Pi(e){for(;e.month<1;)Ei(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ei(e,1)}function Sh(e){for(;e.day<1;)e.month--,Pi(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Pi(e)}function Bu(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ct(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Bu(e)}function Yi(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Tu(e,t){return Pn(e,Yi(t))}function Ji(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),Ct(r),r}function mr(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Fu(r),r}function kh(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Nr(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Nr(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Nr(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Nr(e.hour,24),t}function Fu(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Nr(e,t){let r=e%t;return r<0&&(r+=t),r}function Ru(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,kh(e)}function Au(e,t){let r=e.copy();return Ru(r,t),r}function Bh(e,t){return Au(e,Yi(t))}function Xi(e,t,r,n){let i=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),s=l.indexOf(e.era);if(s<0)throw new Error("Invalid era: "+e.era);s=Je(s,r,0,l.length-1,n==null?void 0:n.round),i.era=l[s],Ct(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(r=-r),i.year=Je(e.year,r,-1/0,9999,n==null?void 0:n.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Je(e.month,r,1,e.calendar.getMonthsInYear(e),n==null?void 0:n.round);break;case"day":i.day=Je(e.day,r,1,e.calendar.getDaysInMonth(e),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ct(i),i}function Qi(e,t,r,n){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,l=23;if((n==null?void 0:n.hourCycle)===12){let s=a>=12;o=s?12:0,l=s?23:11}i.hour=Je(a,r,o,l,n==null?void 0:n.round);break}case"minute":i.minute=Je(e.minute,r,0,59,n==null?void 0:n.round);break;case"second":i.second=Je(e.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":i.millisecond=Je(e.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return i}function Je(e,t,r,n,i=!1){if(i){e+=Math.sign(t),e<r&&(e=n);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function Iu(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Pn(st(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Ze(i,e.timeZone)}else r=Ht(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let n=Ye(r,e.timeZone);return $e(n,e.calendar)}function Th(e,t){return Iu(e,Yi(t))}function Fh(e,t,r,n){switch(t){case"hour":{let i=0,a=23;if((n==null?void 0:n.hourCycle)===12){let b=e.hour>=12;i=b?12:0,a=b?23:11}let o=st(e),l=$e(mr(o,{hour:i}),new we),s=[Ze(l,e.timeZone,"earlier"),Ze(l,e.timeZone,"later")].filter(b=>Ye(b,e.timeZone).day===l.day)[0],d=$e(mr(o,{hour:a}),new we),f=[Ze(d,e.timeZone,"earlier"),Ze(d,e.timeZone,"later")].filter(b=>Ye(b,e.timeZone).day===d.day).pop(),c=Ht(e)-e.offset,p=Math.floor(c/Yt),m=c%Yt;return c=Je(p,r,Math.floor(s/Yt),Math.floor(f/Yt),n==null?void 0:n.round)*Yt+m,$e(Ye(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Qi(e,t,r,n);case"era":case"year":case"month":case"day":{let i=Xi(st(e),t,r,n),a=Ze(i,e.timeZone);return $e(Ye(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Rh(e,t,r){let n=st(e),i=mr(Ji(n,t),t);if(i.compare(n)===0)return e;let a=Ze(i,e.timeZone,r);return $e(Ye(a,e.timeZone),e.calendar)}function Mu(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Lu(e){let t=$e(e,new we),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Nu(e){return`${Lu(e)}T${Mu(e)}`}function Ah(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),n=e%36e5/6e4;return`${t}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function Ih(e){return`${Nu(e)}${Ah(e.offset)}[${e.timeZone}]`}function ea(e){let t=typeof e[0]=="object"?e.shift():new we,r;if(typeof e[0]=="string")r=e.shift();else{let o=t.getEras();r=o[o.length-1]}let n=e.shift(),i=e.shift(),a=e.shift();return[t,r,n,i,a]}var Mh=new WeakMap;class se{copy(){return this.era?new se(this.calendar,this.era,this.year,this.month,this.day):new se(this.calendar,this.year,this.month,this.day)}add(t){return Pn(this,t)}subtract(t){return Tu(this,t)}set(t){return Ji(this,t)}cycle(t,r,n){return Xi(this,t,r,n)}toDate(t){return wu(this,t)}toString(){return Lu(this)}compare(t){return Du(this,t)}constructor(...t){yr(this,Mh,{writable:!0,value:void 0});let[r,n,i,a,o]=ea(t);this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=o,Ct(this)}}var Lh=new WeakMap;class wn{copy(){return new wn(this.hour,this.minute,this.second,this.millisecond)}add(t){return Au(this,t)}subtract(t){return Bh(this,t)}set(t){return mr(this,t)}cycle(t,r,n){return Qi(this,t,r,n)}toString(){return Mu(this)}compare(t){return Cu(this,t)}constructor(t=0,r=0,n=0,i=0){yr(this,Lh,{writable:!0,value:void 0}),this.hour=t,this.minute=r,this.second=n,this.millisecond=i,Fu(this)}}var Nh=new WeakMap;class nn{copy(){return this.era?new nn(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new nn(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Pn(this,t)}subtract(t){return Tu(this,t)}set(t){return Ji(mr(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return Xi(this,t,r,n);default:return Qi(this,t,r,n)}}toDate(t,r){return wu(this,t,r)}toString(){return Nu(this)}compare(t){let r=Du(this,t);return r===0?Cu(this,st(t)):r}constructor(...t){yr(this,Nh,{writable:!0,value:void 0});let[r,n,i,a,o]=ea(t);this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ct(this)}}var Kh=new WeakMap;class br{copy(){return this.era?new br(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new br(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Iu(this,t)}subtract(t){return Th(this,t)}set(t,r){return Rh(this,t,r)}cycle(t,r,n){return Fh(this,t,r,n)}toDate(){return Ph(this)}toString(){return Ih(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-ku(t,this.timeZone).toDate().getTime()}constructor(...t){yr(this,Kh,{writable:!0,value:void 0});let[r,n,i,a,o]=ea(t),l=t.shift(),s=t.shift();this.calendar=r,this.era=n,this.year=i,this.month=a,this.day=o,this.timeZone=l,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ct(this)}}const Nt=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Vh=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ur=[1867,1911,1925,1988,2018],it=["meiji","taisho","showa","heisei","reiwa"];function Mo(e){const t=Nt.findIndex(([r,n,i])=>e.year<r||e.year===r&&e.month<n||e.year===r&&e.month===n&&e.day<i);return t===-1?Nt.length-1:t===0?0:t-1}function Wn(e){let t=Ur[it.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new se(e.year+t,e.month,e.day)}class Oh extends we{fromJulianDay(t){let r=super.fromJulianDay(t),n=Mo(r);return new se(this,it[n],r.year-Ur[n],r.month,r.day)}toJulianDay(t){return super.toJulianDay(Wn(t))}balanceDate(t){let r=Wn(t),n=Mo(r);it[n]!==t.era&&(t.era=it[n],t.year=r.year-Ur[n]),this.constrainDate(t)}constrainDate(t){let r=it.indexOf(t.era),n=Vh[r];if(n!=null){let[i,a,o]=n,l=i-Ur[r];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&r>=0){let[,i,a]=Nt[r];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return it}getYearsInEra(t){let r=it.indexOf(t.era),n=Nt[r],i=Nt[r+1];if(i==null)return 9999-n[0]+1;let a=i[0]-n[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Wn(t))}getMinimumMonthInYear(t){let r=Lo(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=Lo(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Lo(e){if(e.year===1){let t=it.indexOf(e.era);return Nt[t]}}const Ku=-543;class zh extends we{fromJulianDay(t){let r=super.fromJulianDay(t),n=$r(r.era,r.year);return new se(this,n-Ku,r.month,r.day)}toJulianDay(t){return super.toJulianDay(No(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(No(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function No(e){let[t,r]=Cn(e.year+Ku);return new se(t,r,e.month,e.day)}const an=1911;function Vu(e){return e.era==="minguo"?e.year+an:1-e.year+an}function Ko(e){let t=e-an;return t>0?["minguo",t]:["before_minguo",1-t]}class jh extends we{fromJulianDay(t){let r=super.fromJulianDay(t),n=$r(r.era,r.year),[i,a]=Ko(n);return new se(this,i,a,r.month,r.day)}toJulianDay(t){return super.toJulianDay(Vo(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,n]=Ko(Vu(t));t.era=r,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Vo(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-an}constructor(...t){super(...t),this.identifier="roc"}}function Vo(e){let[t,r]=Cn(Vu(e));return new se(t,r,e.month,e.day)}const Oo=1948320,zo=[0,31,62,93,124,155,186,216,246,276,306,336];class Hh{fromJulianDay(t){let r=t-Oo,n=1+Math.floor((33*r+3)/12053),i=365*(n-1)+Math.floor((8*n+21)/33),a=r-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),l=a-zo[o]+1;return new se(this,n,o+1,l)}toJulianDay(t){let r=Oo-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return r+=zo[t.month-1],r+=t.day,r}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Lt(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Gn=78,jo=80;class _h extends we{fromJulianDay(t){let r=super.fromJulianDay(t),n=r.year-Gn,i=t-gt(r.era,r.year,1,1),a;i<jo?(n--,a=at(r.year-1)?31:30,i+=a+155+90+10):(a=at(r.year)?31:30,i-=jo);let o,l;if(i<a)o=1,l=i+1;else{let s=i-a;s<155?(o=Math.floor(s/31)+2,l=s%31+1):(s-=155,o=Math.floor(s/30)+7,l=s%30+1)}return new se(this,n,o,l)}toJulianDay(t){let r=t.year+Gn,[n,i]=Cn(r),a,o;return at(i)?(a=31,o=gt(n,i,3,21)):(a=30,o=gt(n,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&at(t.year+Gn)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const on=1948440,Ho=1948439,ke=1300,Bt=1600,Uh=460322;function ln(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ou(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),i=Math.min(12,Math.ceil((r-(29+ln(t,n,1,1)))/29.5)+1),a=r-ln(t,n,i,1)+1;return new se(e,n,i,a)}function _o(e){return(14+11*e)%30<11}class ta{fromJulianDay(t){return Ou(this,on,t)}toJulianDay(t){return ln(on,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&_o(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return _o(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Wh extends ta{fromJulianDay(t){return Ou(this,Ho,t)}toJulianDay(t){return ln(Ho,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const Gh="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let wi,Kt;function Wr(e){return Uh+Kt[e-ke]}function or(e,t){let r=e-ke,n=1<<11-(t-1);return(wi[r]&n)===0?29:30}function Uo(e,t){let r=Wr(e);for(let n=1;n<t;n++)r+=or(e,n);return r}function Wo(e){return Kt[e+1-ke]-Kt[e-ke]}class Zh extends ta{fromJulianDay(t){let r=t-on,n=Wr(ke),i=Wr(Bt);if(r<n||r>i)return super.fromJulianDay(t);{let a=ke-1,o=1,l=1;for(;l>0;){a++,l=r-Wr(a)+1;let s=Wo(a);if(l===s){o=12;break}else if(l<s){let d=or(a,o);for(o=1;l>d;)l-=d,o++,d=or(a,o);break}}return new se(this,a,o,r-Uo(a,o)+1)}}toJulianDay(t){return t.year<ke||t.year>Bt?super.toJulianDay(t):on+Uo(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ke||t.year>Bt?super.getDaysInMonth(t):or(t.year,t.month)}getDaysInYear(t){return t.year<ke||t.year>Bt?super.getDaysInYear(t):Wo(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",wi||(wi=new Uint16Array(Uint8Array.from(atob(Gh),t=>t.charCodeAt(0)).buffer)),!Kt){Kt=new Uint32Array(Bt-ke+1);let t=0;for(let r=ke;r<=Bt;r++){Kt[r-ke]=t;for(let n=1;n<=12;n++)t+=or(r,n)}}}}const Go=347997,zu=1080,ju=24*zu,qh=29,Yh=12*zu+793,Jh=qh*ju+Yh;function ht(e){return Lt(e*7+1,19)<7}function Gr(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=t*29+Math.floor(r/25920);return Lt(3*(n+1),7)<3&&(n+=1),n}function Xh(e){let t=Gr(e-1),r=Gr(e);return Gr(e+1)-r===356?2:r-t===382?1:0}function sr(e){return Gr(e)+Xh(e)}function Hu(e){return sr(e+1)-sr(e)}function Qh(e){let t=Hu(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Kr(e,t){if(t>=6&&!ht(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=Qh(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?ht(e)?30:0:30}class ev{fromJulianDay(t){let r=t-Go,n=r*ju/Jh,i=Math.floor((19*n+234)/235)+1,a=sr(i),o=Math.floor(r-a);for(;o<1;)i--,a=sr(i),o=Math.floor(r-a);let l=1,s=0;for(;s<o;)s+=Kr(i,l),l++;l--,s-=Kr(i,l);let d=o-s;return new se(this,i,l,d)}toJulianDay(t){let r=sr(t.year);for(let n=1;n<t.month;n++)r+=Kr(t.year,n);return r+t.day+Go}getDaysInMonth(t){return Kr(t.year,t.month)}getMonthsInYear(t){return ht(t.year)?13:12}getDaysInYear(t){return Hu(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(ht(r.year)&&!ht(t.year)&&r.month>6?t.month--:!ht(r.year)&&ht(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Si=1723856,Zo=1824665,ki=5500;function un(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function ra(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-un(e,r,1,1))/30),i=t+1-un(e,r,n,1);return[r,n,i]}function _u(e){return Math.floor(e%4/3)}function Uu(e,t){return t%13!==0?30:_u(e)+5}class na{fromJulianDay(t){let[r,n,i]=ra(Si,t),a="AM";return r<=0&&(a="AA",r+=ki),new se(this,a,r,n,i)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=ki),un(Si,r,t.month,t.day)}getDaysInMonth(t){return Uu(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+_u(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class tv extends na{fromJulianDay(t){let[r,n,i]=ra(Si,t);return r+=ki,new se(this,"AA",r,n,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class rv extends na{fromJulianDay(t){let[r,n,i]=ra(Zo,t),a="CE";return r<=0&&(a="BCE",r=1-r),new se(this,a,r,n,i)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),un(Zo,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),Uu(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function nv(e){switch(e){case"buddhist":return new zh;case"ethiopic":return new na;case"ethioaa":return new tv;case"coptic":return new rv;case"hebrew":return new ev;case"indian":return new _h;case"islamic-civil":return new ta;case"islamic-tbla":return new Wh;case"islamic-umalqura":return new Zh;case"japanese":return new Oh;case"persian":return new Hh;case"roc":return new jh;case"gregory":default:return new we}}let Zn=new Map;class At{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(t),i=this.formatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return ov()&&(this.resolvedHourCycle||(this.resolvedHourCycle=lv(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,r={}){this.formatter=Wu(t,r),this.options=r}}const iv={true:{ja:"h11"},false:{}};function Wu(e,t={}){if(typeof t.hour12=="boolean"&&av()){t={...t};let i=iv[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let r=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Zn.has(r))return Zn.get(r);let n=new Intl.DateTimeFormat(e,t);return Zn.set(r,n),n}let qn=null;function av(){return qn==null&&(qn=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),qn}let Yn=null;function ov(){return Yn==null&&(Yn=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Yn}function lv(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let r=Wu(e,{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(n===0&&i===23)return"h23";if(n===24&&i===23)return"h24";if(n===0&&i===11)return"h11";if(n===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Vr(e){e=Tb(e??{},uv);let{locale:t}=be();return u.useMemo(()=>new At(t,e),[t,e])}function uv(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r)if(t[i]!==e[i])return!1;return!0}let Jn=new Map,Bi=!1;try{Bi=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let sn=!1;try{sn=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Gu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class dn{format(t){let r="";if(!Bi&&this.options.signDisplay!=null?r=dv(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!sn){var n;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return r;let l=(n=Gu[i])===null||n===void 0?void 0:n[a];r+=l[o]||l.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Bi&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!sn&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=sv(t,r),this.options=r}}function sv(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!sn){var n;let{unit:o,unitDisplay:l="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Gu[o])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(Jn.has(i))return Jn.get(i);let a=new Intl.NumberFormat(e,t);return Jn.set(i,a),a}function dv(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let i=e.format(-r),a=e.format(r),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(r)}}const cv=new RegExp("^.*\\(.*\\).*$"),fv=["latn","arab","hanidec","deva","beng"];class ia{parse(t){return Xn(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return Xn(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return Xn(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const qo=new Map;function Xn(e,t,r){let n=Yo(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let i of fv)if(i!==n.options.numberingSystem){let a=Yo(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(r))return a}}return n}function Yo(e,t){let r=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),n=qo.get(r);return n||(n=new pv(e,t),qo.set(r,n)),n}class pv{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=Jt(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=r.indexOf("-");r=r.replace("-","");let l=r.indexOf(".");l===-1&&(l=r.length),r=r.replace(".",""),l-2===0?r=`0.${r}`:l-2===-1?r=`0.0${r}`:l-2===-2?r="0.00":r=`${r.slice(0,l-2)}.${r.slice(l-2)}`,o>-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){var i,a;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new ia(this.locale,o).parse(new dn(this.locale,o).format(n))}return this.options.currencySign==="accounting"&&cv.test(t)&&(n=-1*n),n}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Jt(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Jt(t," ",this.symbols.group),t=Jt(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Jt(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=bv(t,this.formatter,this.options,r);var n,i;this.options.style==="percent"&&(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Jo=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),mv=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function bv(e,t,r,n){var i,a,o,l;let s=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=s.formatToParts(-10000.111),f=s.formatToParts(10000.111),c=mv.map(F=>s.formatToParts(F));var p;let m=(p=(i=d.find(F=>F.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&p!==void 0?p:"-",b=(a=f.find(F=>F.type==="plusSign"))===null||a===void 0?void 0:a.value;!b&&((n==null?void 0:n.signDisplay)==="exceptZero"||(n==null?void 0:n.signDisplay)==="always")&&(b="+");let y=(o=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||o===void 0?void 0:o.value,$=(l=d.find(F=>F.type==="group"))===null||l===void 0?void 0:l.value,E=d.filter(F=>!Jo.has(F.type)).map(F=>Xo(F.value)),x=c.flatMap(F=>F.filter(h=>!Jo.has(h.type)).map(h=>Xo(h.value))),B=[...new Set([...E,...x])].sort((F,h)=>h.length-F.length),w=B.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${B.join("|")}|[\\p{White_Space}]`,"gu"),D=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),I=new Map(D.map((F,h)=>[F,h])),M=new RegExp(`[${D.join("")}]`,"g");return{minusSign:m,plusSign:b,decimal:y,group:$,literals:w,numeral:M,index:F=>String(I.get(F))}}function Jt(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function Xo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ti(e={}){let{locale:t}=be();return u.useMemo(()=>new dn(t,e),[t,e])}let Qn=new Map;function Sn(e){let{locale:t}=be(),r=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Qn.has(r))return Qn.get(r);let n=new Intl.Collator(t,e);return Qn.set(r,n),n}function hv(e){let t=Sn({usage:"search",...e}),r=u.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),n=u.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=u.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let l=0,s=o.length;for(;l+s<=a.length;l++){let d=a.slice(l,l+s);if(t.compare(o,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:r,endsWith:n,contains:i}),[r,n,i])}function kn(e,t){let{elementType:r="button",isDisabled:n,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:l,onPressChange:s,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:c,href:p,target:m,rel:b,type:g="button"}=e,y;r==="button"?y={type:g,disabled:n}:y={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?m:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?b:void 0};let{pressProps:$,isPressed:E}=je({onPressStart:a,onPressEnd:o,onPressChange:s,onPress:i,onPressUp:l,onClick:c,isDisabled:n,preventFocusOnPress:d,ref:t}),{focusableProps:x}=ct(e,t);f&&(x.tabIndex=n?-1:x.tabIndex);let B=N(x,$,q(e,{labelable:!0}));return{isPressed:E,buttonProps:N(y,B,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function Zu(e,t,r){const{isSelected:n}=t,{isPressed:i,buttonProps:a}=kn({...e,onPress:ze(t.toggle,e.onPress)},r);return{isPressed:i,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:N(a,{"aria-pressed":n})}}function vv(e){const t=ye(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,i=r!=="none"&&n!=="hidden"&&n!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:l}=a(e);i=o!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function gv(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function qu(e,t){return e.nodeName!=="#comment"&&vv(e)&&gv(e,t)&&(!e.parentElement||qu(e.parentElement,e))}const Qo=u.createContext(null),Fi="react-aria-focus-scope-restore";let Y=null;function Yu(e){let{children:t,contain:r,restoreFocus:n,autoFocus:i}=e,a=u.useRef(null),o=u.useRef(null),l=u.useRef([]),{parentNode:s}=u.useContext(Qo)||{},d=u.useMemo(()=>new Ai({scopeRef:l}),[l]);U(()=>{let p=s||le.root;if(le.getTreeNode(p.scopeRef)&&Y&&!cn(Y,p.scopeRef)){let m=le.getTreeNode(Y);m&&(p=m)}p.addChild(d),le.addNode(d)},[d,s]),U(()=>{let p=le.getTreeNode(l);p&&(p.contain=!!r)},[r]),U(()=>{var p;let m=(p=a.current)===null||p===void 0?void 0:p.nextSibling,b=[],g=y=>y.stopPropagation();for(;m&&m!==o.current;)b.push(m),m.addEventListener(Fi,g),m=m.nextSibling;return l.current=b,()=>{for(let y of b)y.removeEventListener(Fi,g)}},[t]),Cv(l,n,r),$v(l,r),Ev(l,n,r),Dv(l,i),u.useEffect(()=>{const p=he(Z(l.current?l.current[0]:void 0));let m=null;if(Fe(p,l.current)){for(let b of le.traverse())b.scopeRef&&Fe(p,b.scopeRef.current)&&(m=b);m===le.getTreeNode(l)&&(Y=m.scopeRef)}},[l]),U(()=>()=>{var p,m,b;let g=(b=(m=le.getTreeNode(l))===null||m===void 0||(p=m.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(l===Y||cn(l,Y))&&(!g||le.getTreeNode(g))&&(Y=g),le.removeTreeNode(l)},[l]);let f=u.useMemo(()=>yv(l),[]),c=u.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return u.createElement(Qo.Provider,{value:c},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function yv(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:o}=t;var l;let s=n||he(Z((l=r[0])!==null&&l!==void 0?l:void 0)),d=r[0].previousElementSibling,f=yt(r),c=pe(f,{tabbable:i,accept:o},r);c.currentNode=Fe(s,r)?s:d;let p=c.nextNode();return!p&&a&&(c.currentNode=d,p=c.nextNode()),p&&De(p,!0),p},focusPrevious(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:o}=t;var l;let s=n||he(Z((l=r[0])!==null&&l!==void 0?l:void 0)),d=r[r.length-1].nextElementSibling,f=yt(r),c=pe(f,{tabbable:i,accept:o},r);c.currentNode=Fe(s,r)?s:d;let p=c.previousNode();return!p&&a&&(c.currentNode=d,p=c.previousNode()),p&&De(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=yt(r),o=pe(a,{tabbable:n,accept:i},r);o.currentNode=r[0].previousElementSibling;let l=o.nextNode();return l&&De(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=yt(r),o=pe(a,{tabbable:n,accept:i},r);o.currentNode=r[r.length-1].nextElementSibling;let l=o.previousNode();return l&&De(l,!0),l}}}function yt(e){return e[0].parentElement}function lr(e){let t=le.getTreeNode(Y);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function $v(e,t){let r=u.useRef(void 0),n=u.useRef(void 0);U(()=>{let i=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const a=Z(i?i[0]:void 0);let o=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!lr(e)||d.isComposing)return;let f=he(a),c=e.current;if(!c||!Fe(f,c))return;let p=yt(c),m=pe(p,{tabbable:!0},c);if(!f)return;m.currentNode=f;let b=d.shiftKey?m.previousNode():m.nextNode();b||(m.currentNode=d.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,b=d.shiftKey?m.previousNode():m.nextNode()),d.preventDefault(),b&&De(b,!0)},l=d=>{(!Y||cn(Y,e))&&Fe(G(d),e.current)?(Y=e,r.current=G(d)):lr(e)&&!ot(G(d),e)?r.current?r.current.focus():Y&&Y.current&&Ri(Y.current):lr(e)&&(r.current=G(d))},s=d=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let f=pr(),c=(f==="virtual"||f===null)&&$n()&&Yl(),p=he(a);if(!c&&p&&lr(e)&&!ot(p,e)){Y=e;let b=G(d);if(b&&b.isConnected){var m;r.current=b,(m=r.current)===null||m===void 0||m.focus()}else Y.current&&Ri(Y.current)}})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",l,!1),i==null||i.forEach(d=>d.addEventListener("focusin",l,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",l,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",l,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",s,!1))}},[e,t]),U(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Ju(e){return ot(e)}function Fe(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function ot(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of le.traverse(le.getTreeNode(t)))if(r&&Fe(e,r.current))return!0;return!1}function xv(e){return ot(e,Y)}function cn(e,t){var r;let n=(r=le.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function De(e,t=!1){if(e!=null&&!t)try{ge(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Xu(e,t=!0){let r=e[0].previousElementSibling,n=yt(e),i=pe(n,{tabbable:t},e);i.currentNode=r;let a=i.nextNode();return t&&!a&&(n=yt(e),i=pe(n,{tabbable:!1},e),i.currentNode=r,a=i.nextNode()),a}function Ri(e,t=!0){De(Xu(e,t))}function Dv(e,t){const r=u.useRef(t);u.useEffect(()=>{if(r.current){Y=e;const n=Z(e.current?e.current[0]:void 0);!Fe(he(n),Y.current)&&e.current&&Ri(e.current)}r.current=!1},[e])}function Cv(e,t,r){U(()=>{if(t||r)return;let n=e.current;const i=Z(n?n[0]:void 0);let a=o=>{let l=G(o);Fe(l,e.current)?Y=e:Ju(l)||(Y=null)};return i.addEventListener("focusin",a,!1),n==null||n.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),n==null||n.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,r])}function el(e){let t=le.getTreeNode(Y);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Ev(e,t,r){const n=u.useRef(typeof document<"u"?he(Z(e.current?e.current[0]:void 0)):null);U(()=>{let i=e.current;const a=Z(i?i[0]:void 0);if(!t||r)return;let o=()=>{(!Y||cn(Y,e))&&Fe(he(a),e.current)&&(Y=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",o,!1))}},[e,r]),U(()=>{const i=Z(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!lr(e)||o.isComposing)return;let l=i.activeElement;if(!ot(l,e)||!el(e))return;let s=le.getTreeNode(e);if(!s)return;let d=s.nodeToRestore,f=pe(i.body,{tabbable:!0});f.currentNode=l;let c=o.shiftKey?f.previousNode():f.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,s.nodeToRestore=void 0),(!c||!ot(c,e))&&d){f.currentNode=d;do c=o.shiftKey?f.previousNode():f.nextNode();while(ot(c,e));o.preventDefault(),o.stopPropagation(),c?De(c,!0):Ju(d)?De(d,!0):l.blur()}};return r||i.addEventListener("keydown",a,!0),()=>{r||i.removeEventListener("keydown",a,!0)}},[e,t,r]),U(()=>{const i=Z(e.current?e.current[0]:void 0);if(!t)return;let a=le.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=n.current)!==null&&o!==void 0?o:void 0,()=>{let l=le.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,d=he(i);if(t&&s&&(d&&ot(d,e)||d===i.body&&el(e))){let f=le.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=f.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){tl(c.nodeToRestore);return}c=c.parent}for(c=f.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&le.getTreeNode(c.scopeRef)){let p=Xu(c.scopeRef.current,!0);tl(p);return}c=c.parent}}})}}}},[e,t])}function tl(e){e.dispatchEvent(new CustomEvent(Fi,{bubbles:!0,cancelable:!0}))&&De(e)}function pe(e,t,r){let n=t!=null&&t.tabbable?Mb:iu,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Z(i),o=db(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)?NodeFilter.FILTER_REJECT:n(l)&&qu(l)&&(!r||Fe(l,r))&&(!(t!=null&&t.accept)||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function aa(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:l=t.accept}=r,s=i||he(Z(n)),d=pe(n,{tabbable:a,accept:l});n.contains(s)&&(d.currentNode=s);let f=d.nextNode();return!f&&o&&(d.currentNode=n,f=d.nextNode()),f&&De(f,!0),f},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:l=t.accept}=r,s=i||he(Z(n)),d=pe(n,{tabbable:a,accept:l});if(n.contains(s))d.currentNode=s;else{let c=ei(d);return c&&De(c,!0),c??null}let f=d.previousNode();if(!f&&o){d.currentNode=n;let c=ei(d);if(!c)return null;f=c}return f&&De(f,!0),f??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,l=pe(n,{tabbable:i,accept:a}).nextNode();return l&&De(l,!0),l},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,o=pe(n,{tabbable:i,accept:a}),l=ei(o);return l&&De(l,!0),l??null}}}function ei(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class oa{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let i=this.fastMap.get(r??null);if(!i)return;let a=new Ai({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Fe(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let i=r.children;n&&(n.removeChild(r),i.size>0&&i.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new oa;var n;for(let i of this.traverse())r.addTreeNode(i.scopeRef,(n=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,i.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Ai({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ai{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let le=new oa;function ve(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,i=u.useRef({isFocused:!1,isFocusVisible:t||jt()}),[a,o]=u.useState(!1),[l,s]=u.useState(()=>i.current.isFocused&&i.current.isFocusVisible),d=u.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),f=u.useCallback(m=>{i.current.isFocused=m,o(m),d()},[d]);Jb(m=>{i.current.isFocusVisible=m,d()},[],{isTextInput:r});let{focusProps:c}=qi({isDisabled:n,onFocusChange:f}),{focusWithinProps:p}=ft({isDisabled:!n,onFocusWithinChange:f});return{isFocused:a,isFocusVisible:l,focusProps:n?p:c}}function Pv(e,t){let r=t==null?void 0:t.isDisabled,[n,i]=u.useState(!1);return U(()=>{if(e!=null&&e.current&&!r){let a=()=>{if(e.current){let l=pe(e.current,{tabbable:!0});i(!!l.nextNode())}};a();let o=new MutationObserver(a);return o.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),r?!1:n}function Qu(e){let t=kv(Z(e));t!==e&&(t&&wv(t,e),e&&Sv(e,t))}function wv(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Sv(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function kv(e){let t=he(e),r=t==null?void 0:t.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}function Bv(e,t){const{"aria-label":r,"aria-labelledby":n,orientation:i="horizontal"}=e;let[a,o]=u.useState(!1);U(()=>{var b;o(!!(t.current&&(!((b=t.current.parentElement)===null||b===void 0)&&b.closest('[role="toolbar"]'))))});const{direction:l}=be(),s=l==="rtl"&&i==="horizontal";let d=aa(t);const f=b=>{if(b.currentTarget.contains(b.target)){if(i==="horizontal"&&b.key==="ArrowRight"||i==="vertical"&&b.key==="ArrowDown")s?d.focusPrevious():d.focusNext();else if(i==="horizontal"&&b.key==="ArrowLeft"||i==="vertical"&&b.key==="ArrowUp")s?d.focusNext():d.focusPrevious();else if(b.key==="Tab"){b.stopPropagation(),c.current=document.activeElement,b.shiftKey?d.focusFirst():d.focusLast();return}else return;b.stopPropagation(),b.preventDefault()}},c=u.useRef(null),p=b=>{!b.currentTarget.contains(b.relatedTarget)&&!c.current&&(c.current=b.target)},m=b=>{var g;if(c.current&&!b.currentTarget.contains(b.relatedTarget)&&(!((g=t.current)===null||g===void 0)&&g.contains(b.target))){var y;(y=c.current)===null||y===void 0||y.focus(),c.current=null}};return{toolbarProps:{...q(e,{labelable:!0}),role:a?"group":"toolbar","aria-orientation":i,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:a?void 0:f,onFocusCapture:a?void 0:m,onBlurCapture:a?void 0:p}}}function Tv(e,t,r){let{isDisabled:n}=e,{toolbarProps:i}=Bv(e,r);return{groupProps:{...i,role:t.selectionMode==="single"?"radiogroup":i.role,"aria-disabled":n}}}function Fv(e,t,r){let n={isSelected:t.selectedKeys.has(e.id),setSelected(s){t.setSelected(e.id,s)},toggle(){t.toggleKey(e.id)}},{isPressed:i,isSelected:a,isDisabled:o,buttonProps:l}=Zu({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},n,r);return t.selectionMode==="single"&&(l.role="radio",l["aria-checked"]=n.isSelected,delete l["aria-pressed"]),{isPressed:i,isSelected:a,isDisabled:o,buttonProps:l}}const es=7e3;let Se=null;function fn(e,t="assertive",r=es){Se?Se.announce(e,t,r):(Se=new Av,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Se.announce(e,t,r):setTimeout(()=>{Se!=null&&Se.isAttached()&&(Se==null||Se.announce(e,t,r))},100))}function Rv(e){Se&&Se.clear(e)}class Av{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=es){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,r==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="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 ts={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},rs={...ts,customError:!0,valid:!1},Xt={isInvalid:!1,validationDetails:ts,validationErrors:[]},Iv=u.createContext({}),pn="__formValidationState"+Date.now();function Wt(e){if(e[pn]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}=e[pn];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}}return Mv(e)}function Mv(e){let{isInvalid:t,validationState:r,name:n,value:i,builtinValidation:a,validate:o,validationBehavior:l="aria"}=e;r&&(t||(t=r==="invalid"));let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:rs}:null,d=u.useMemo(()=>{if(!o||i==null)return null;let F=Lv(o,i);return rl(F)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let f=u.useContext(Iv),c=u.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>Ii(f[F])):Ii(f[n]):[],[f,n]),[p,m]=u.useState(f),[b,g]=u.useState(!1);f!==p&&(m(f),g(!1));let y=u.useMemo(()=>rl(b?[]:c),[b,c]),$=u.useRef(Xt),[E,x]=u.useState(Xt),B=u.useRef(Xt),w=()=>{if(!D)return;I(!1);let F=d||a||$.current;ti(F,B.current)||(B.current=F,x(F))},[D,I]=u.useState(!1);return u.useEffect(w),{realtimeValidation:s||y||d||a||Xt,displayValidation:l==="native"?s||y||E:s||y||d||a||E,updateValidation(F){l==="aria"&&!ti(E,F)?x(F):$.current=F},resetValidation(){let F=Xt;ti(F,B.current)||(B.current=F,x(F)),l==="native"&&I(!1),g(!0)},commitValidation(){l==="native"&&I(!0),g(!0)}}}function Ii(e){return e?Array.isArray(e)?e:[e]:[]}function Lv(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Ii(r)}return[]}function rl(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:rs}:null}function ti(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function xr(e,t,r){let{validationBehavior:n,focus:i}=e;U(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let s=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(s),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Kv(r.current))}});let a=re(()=>{t.resetValidation()}),o=re(s=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=r==null||(d=r.current)===null||d===void 0?void 0:d.form;if(!s.defaultPrevented&&r&&f&&Vv(f)===r.current){var c;i?i():(c=r.current)===null||c===void 0||c.focus(),pu("keyboard")}s.preventDefault()}),l=re(()=>{t.commitValidation()});u.useEffect(()=>{let s=r==null?void 0:r.current;if(!s)return;let d=s.form;return s.addEventListener("invalid",o),s.addEventListener("change",l),d==null||d.addEventListener("reset",a),()=>{s.removeEventListener("invalid",o),s.removeEventListener("change",l),d==null||d.removeEventListener("reset",a)}},[r,o,l,a,n])}function Nv(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Kv(e){return{isInvalid:!e.validity.valid,validationDetails:Nv(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Vv(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function ns(e,t,r){let{isDisabled:n=!1,isReadOnly:i=!1,value:a,name:o,children:l,"aria-label":s,"aria-labelledby":d,validationState:f="valid",isInvalid:c}=e,p=D=>{D.stopPropagation(),t.setSelected(D.target.checked)},m=l!=null,b=s!=null||d!=null;!m&&!b&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=je({isDisabled:n}),{pressProps:$,isPressed:E}=je({onPress(){var D;t.toggle(),(D=r.current)===null||D===void 0||D.focus()},isDisabled:n||i}),{focusableProps:x}=ct(e,r),B=N(g,x),w=q(e,{labelable:!0});return Ut(r,t.isSelected,t.setSelected),{labelProps:N($,{onClick:D=>D.preventDefault()}),inputProps:N(w,{"aria-invalid":c||f==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:p,disabled:n,...a==null?{}:{value:a},name:o,type:"checkbox",...B}),isSelected:t.isSelected,isPressed:y||E,isDisabled:n,isReadOnly:i,isInvalid:c||f==="invalid"}}function Ov(e,t,r){let n=Wt({...e,value:t.isSelected}),{isInvalid:i,validationErrors:a,validationDetails:o}=n.displayValidation,{labelProps:l,inputProps:s,isSelected:d,isPressed:f,isDisabled:c,isReadOnly:p}=ns({...e,isInvalid:i},t,r);xr(e,n,r);let{isIndeterminate:m,isRequired:b,validationBehavior:g="aria"}=e;u.useEffect(()=>{r.current&&(r.current.indeterminate=!!m)});let{pressProps:y}=je({isDisabled:c||p,onPress(){let{[pn]:$}=e,{commitValidation:E}=$||n;E()}});return{labelProps:N(l,y),inputProps:{...s,checked:d,"aria-required":b&&g==="aria"||void 0,required:b&&g==="native"},isSelected:d,isPressed:f,isDisabled:c,isReadOnly:p,isInvalid:i,validationErrors:a,validationDetails:o}}function la(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:a="label"}=e;t=J(t);let o=J(),l={};r?(n=n?`${o} ${n}`:o,l={id:o,htmlFor:a==="label"?t:void 0}):!n&&!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 s=_i({id:t,"aria-label":i,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function Gt(e){let{description:t,errorMessage:r,isInvalid:n,validationState:i}=e,{labelProps:a,fieldProps:o}=la(e),l=zt([!!t,!!r,n,i]),s=zt([!!t,!!r,n,i]);return o=N(o,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:l},errorMessageProps:{id:s}}}function ua(e={}){let{isReadOnly:t}=e,[r,n]=Re(e.isSelected,e.defaultSelected||!1,e.onChange);function i(o){t||n(o)}function a(){t||n(!r)}return{isSelected:r,setSelected:i,toggle:a}}function zv(e){let{selectionMode:t="single",disallowEmptySelection:r,isDisabled:n=!1}=e,[i,a]=Re(u.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),u.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:n,selectedKeys:i,setSelectedKeys:a,toggleKey(o){let l;t==="multiple"?(l=new Set(i),l.has(o)&&(!r||l.size>1)?l.delete(o):l.add(o)):l=new Set(i.has(o)&&!r?[]:[o]),a(l)},setSelected(o,l){l!==i.has(o)&&this.toggleKey(o)}}}function jv(e){let{minValue:t,maxValue:r,step:n,formatOptions:i,value:a,defaultValue:o=NaN,onChange:l,locale:s,isDisabled:d,isReadOnly:f}=e;a===null&&(a=NaN),a!==void 0&&!isNaN(a)&&(n!==void 0&&!isNaN(n)?a=_e(a,t,r,n):a=$t(a,t,r)),isNaN(o)||(n!==void 0&&!isNaN(n)?o=_e(o,t,r,n):o=$t(o,t,r));let[c,p]=Re(a,isNaN(o)?NaN:o,l),[m,b]=u.useState(()=>isNaN(c)?"":new dn(s,i).format(c)),g=u.useMemo(()=>new ia(s,i),[s,i]),y=u.useMemo(()=>g.getNumberingSystem(m),[g,m]),$=u.useMemo(()=>new dn(s,{...i,numberingSystem:y}),[s,i,y]),E=u.useMemo(()=>$.resolvedOptions(),[$]),x=u.useCallback(V=>isNaN(V)||V===null?"":$.format(V),[$]),B=Wt({...e,value:c}),w=n!==void 0&&!isNaN(n)?n:1;E.style==="percent"&&(n===void 0||isNaN(n))&&(w=.01);let[D,I]=u.useState(c),[M,O]=u.useState(s),[F,h]=u.useState(i);(!Object.is(c,D)||s!==M||i!==F)&&(b(x(c)),I(c),O(s),h(i));let T=u.useMemo(()=>g.parse(m),[g,m]),L=()=>{if(!m.length){p(NaN),b(a===void 0?"":x(c));return}if(isNaN(T)){b(x(c));return}let V;n===void 0||isNaN(n)?V=$t(T,t,r):V=_e(T,t,r,n),V=g.parse(x(V)),p(V),b(x(a===void 0?V:c))},R=(V,W=0)=>{let te=T;if(isNaN(te)){let oe=isNaN(W)?0:W;return _e(oe,t,r,w)}else{let oe=_e(te,t,r,w);return V==="+"&&oe>te||V==="-"&&oe<te?oe:_e(ri(V,te,w),t,r,w)}},H=()=>{let V=R("+",t);V===c&&b(x(V)),p(V),B.commitValidation()},v=()=>{let V=R("-",r);V===c&&b(x(V)),p(V),B.commitValidation()},k=()=>{r!=null&&(p(_e(r,t,r,w)),B.commitValidation())},P=()=>{t!=null&&(p(t),B.commitValidation())},K=u.useMemo(()=>!d&&!f&&(isNaN(T)||r===void 0||isNaN(r)||_e(T,t,r,w)>T||ri("+",T,w)<=r),[d,f,t,r,w,T]),A=u.useMemo(()=>!d&&!f&&(isNaN(T)||t===void 0||isNaN(t)||_e(T,t,r,w)<T||ri("-",T,w)>=t),[d,f,t,r,w,T]);return{...B,validate:V=>g.isValidPartialNumber(V,t,r),increment:H,incrementToMax:k,decrement:v,decrementToMin:P,canIncrement:K,canDecrement:A,minValue:t,maxValue:r,numberValue:T,setNumberValue:p,setInputValue:b,inputValue:m,commit:L}}function ri(e,t,r){let n=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){const i=t.toString().split("."),a=r.toString().split("."),o=i[1]&&i[1].length||0,l=a[1]&&a[1].length||0,s=Math.pow(10,Math.max(o,l));t=Math.round(t*s),r=Math.round(r*s),n=e==="+"?t+r:t-r,n/=s}return n}const nl={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 is(e={}){let{style:t,isFocusable:r}=e,[n,i]=u.useState(!1),{focusWithinProps:a}=ft({isDisabled:!r,onFocusWithinChange:l=>i(l)}),o=u.useMemo(()=>n?t:t?{...nl,...t}:nl,[n]);return{visuallyHiddenProps:{...a,style:o}}}function sa(e){let{children:t,elementType:r="div",isFocusable:n,style:i,...a}=e,{visuallyHiddenProps:o}=is(e);return u.createElement(r,N(a,o),t)}function da(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:l="aria"}=e,[s,d]=Re(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=ct(e,t),c=Wt({...e,value:s}),{isInvalid:p,validationErrors:m,validationDetails:b}=c.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:E}=Gt({...e,isInvalid:p,errorMessage:e.errorMessage||m}),x=q(e,{labelable:!0});const B={type:o,pattern:e.pattern};return Ut(t,s,d),xr(e,c,t),u.useEffect(()=>{if(t.current instanceof ye(t.current).HTMLTextAreaElement){let w=t.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:N(x,r==="input"?B:void 0,{disabled:n,readOnly:a,required:i&&l==="native","aria-required":i&&l==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:w=>d(w.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...y}),descriptionProps:$,errorMessageProps:E,isInvalid:p,validationErrors:m,validationDetails:b}}function il(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Hv(e,t,r){let n=re(c=>{let p=r.current;if(!p)return;let m=null;switch(c.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":m=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":m=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":m=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":m=p.value.slice(p.selectionStart);break;default:c.data!=null&&(m=p.value.slice(0,p.selectionStart)+c.data+p.value.slice(p.selectionEnd));break}(m==null||!t.validate(m))&&c.preventDefault()});u.useEffect(()=>{if(!il()||!r.current)return;let c=r.current;return c.addEventListener("beforeinput",n,!1),()=>{c.removeEventListener("beforeinput",n,!1)}},[r,n]);let i=il()?null:c=>{let p=c.target.value.slice(0,c.target.selectionStart)+c.data+c.target.value.slice(c.target.selectionEnd);t.validate(p)||c.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:l,errorMessageProps:s,...d}=da(e,r),f=u.useRef(null);return{inputProps:N(o,{onBeforeInput:i,onCompositionStart(){let{value:c,selectionStart:p,selectionEnd:m}=r.current;f.current={value:c,selectionStart:p,selectionEnd:m}},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:c,selectionStart:p,selectionEnd:m}=f.current;r.current.value=c,r.current.setSelectionRange(p,m),t.setInputValue(c)}}}),labelProps:a,descriptionProps:l,errorMessageProps:s,...d}}var as={};as={Empty:"فارغ"};var os={};os={Empty:"Изпразни"};var ls={};ls={Empty:"Prázdné"};var us={};us={Empty:"Tom"};var ss={};ss={Empty:"Leer"};var ds={};ds={Empty:"Άδειο"};var cs={};cs={Empty:"Empty"};var fs={};fs={Empty:"Vacío"};var ps={};ps={Empty:"Tühjenda"};var ms={};ms={Empty:"Tyhjä"};var bs={};bs={Empty:"Vide"};var hs={};hs={Empty:"ריק"};var vs={};vs={Empty:"Prazno"};var gs={};gs={Empty:"Üres"};var ys={};ys={Empty:"Vuoto"};var $s={};$s={Empty:"空"};var xs={};xs={Empty:"비어 있음"};var Ds={};Ds={Empty:"Tuščias"};var Cs={};Cs={Empty:"Tukšs"};var Es={};Es={Empty:"Tom"};var Ps={};Ps={Empty:"Leeg"};var ws={};ws={Empty:"Pusty"};var Ss={};Ss={Empty:"Vazio"};var ks={};ks={Empty:"Vazio"};var Bs={};Bs={Empty:"Gol"};var Ts={};Ts={Empty:"Не заполнено"};var Fs={};Fs={Empty:"Prázdne"};var Rs={};Rs={Empty:"Prazen"};var As={};As={Empty:"Prazno"};var Is={};Is={Empty:"Tomt"};var Ms={};Ms={Empty:"Boş"};var Ls={};Ls={Empty:"Пусто"};var Ns={};Ns={Empty:"空"};var Ks={};Ks={Empty:"空白"};var Vs={};Vs={"ar-AE":as,"bg-BG":os,"cs-CZ":ls,"da-DK":us,"de-DE":ss,"el-GR":ds,"en-US":cs,"es-ES":fs,"et-EE":ps,"fi-FI":ms,"fr-FR":bs,"he-IL":hs,"hr-HR":vs,"hu-HU":gs,"it-IT":ys,"ja-JP":$s,"ko-KR":xs,"lt-LT":Ds,"lv-LV":Cs,"nb-NO":Es,"nl-NL":Ps,"pl-PL":ws,"pt-BR":Ss,"pt-PT":ks,"ro-RO":Bs,"ru-RU":Ts,"sk-SK":Fs,"sl-SI":Rs,"sr-SP":As,"sv-SE":Is,"tr-TR":Ms,"uk-UA":Ls,"zh-CN":Ns,"zh-TW":Ks};function _v(e){return e&&e.__esModule?e.default:e}function Os(e){const t=u.useRef(void 0);let{value:r,textValue:n,minValue:i,maxValue:a,isDisabled:o,isReadOnly:l,isRequired:s,onIncrement:d,onIncrementPage:f,onDecrement:c,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:b}=e;const g=tt(_v(Vs),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);u.useEffect(()=>()=>y(),[]);let $=h=>{if(!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey||l))switch(h.key){case"PageUp":if(f){h.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(h.preventDefault(),d==null||d());break;case"PageDown":if(p){h.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":c&&(h.preventDefault(),c==null||c());break;case"Home":m&&(h.preventDefault(),m==null||m());break;case"End":b&&(h.preventDefault(),b==null||b());break}},E=u.useRef(!1),x=()=>{E.current=!0},B=()=>{E.current=!1},w=n===""?g.format("Empty"):(n||`${r}`).replace("-","−");u.useEffect(()=>{E.current&&(Rv("assertive"),fn(w,"assertive"))},[w]);const D=re(h=>{y(),d==null||d(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||r===void 0||isNaN(r)||r<a)&&D(60)},h)}),I=re(h=>{y(),c==null||c(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||r===void 0||isNaN(r)||r>i)&&I(60)},h)});let M=h=>{h.preventDefault()},{addGlobalListener:O,removeAllGlobalListeners:F}=gr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":r!==void 0&&!isNaN(r)?r:void 0,"aria-valuetext":w,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":l||void 0,"aria-required":s||void 0,onKeyDown:$,onFocus:x,onBlur:B},incrementButtonProps:{onPressStart:()=>{D(400),O(window,"contextmenu",M)},onPressEnd:()=>{y(),F()},onFocus:x,onBlur:B},decrementButtonProps:{onPressStart:()=>{I(400),O(window,"contextmenu",M)},onPressEnd:()=>{y(),F()},onFocus:x,onBlur:B}}}var zs={};zs={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var js={};js={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var Hs={};Hs={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var _s={};_s={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Us={};Us={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var Ws={};Ws={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Gs={};Gs={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Zs={};Zs={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var qs={};qs={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Ys={};Ys={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Js={};Js={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Xs={};Xs={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var Qs={};Qs={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ed={};ed={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var td={};td={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var rd={};rd={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var nd={};nd={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var id={};id={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var ad={};ad={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var od={};od={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var ld={};ld={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var ud={};ud={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var sd={};sd={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var dd={};dd={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var cd={};cd={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var fd={};fd={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var pd={};pd={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var md={};md={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var bd={};bd={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var hd={};hd={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var vd={};vd={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var gd={};gd={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var yd={};yd={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var $d={};$d={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var xd={};xd={"ar-AE":zs,"bg-BG":js,"cs-CZ":Hs,"da-DK":_s,"de-DE":Us,"el-GR":Ws,"en-US":Gs,"es-ES":Zs,"et-EE":qs,"fi-FI":Ys,"fr-FR":Js,"he-IL":Xs,"hr-HR":Qs,"hu-HU":ed,"it-IT":td,"ja-JP":rd,"ko-KR":nd,"lt-LT":id,"lv-LV":ad,"nb-NO":od,"nl-NL":ld,"pl-PL":ud,"pt-BR":sd,"pt-PT":dd,"ro-RO":cd,"ru-RU":fd,"sk-SK":pd,"sl-SI":md,"sr-SP":bd,"sv-SE":hd,"tr-TR":vd,"uk-UA":gd,"zh-CN":yd,"zh-TW":$d};function Uv(e){return e&&e.__esModule?e.default:e}function Wv(e,t,r){let{id:n,decrementAriaLabel:i,incrementAriaLabel:a,isDisabled:o,isReadOnly:l,isRequired:s,minValue:d,maxValue:f,autoFocus:c,label:p,formatOptions:m,onBlur:b=()=>{},onFocus:g,onFocusChange:y,onKeyDown:$,onKeyUp:E,description:x,errorMessage:B,isWheelDisabled:w,...D}=e,{increment:I,incrementToMax:M,decrement:O,decrementToMin:F,numberValue:h,inputValue:T,commit:L,commitValidation:R}=t;const H=tt(Uv(xd),"@react-aria/numberfield");let v=J(n),{focusProps:k}=qi({onBlur(){L()}}),P=Ti(m),K=u.useMemo(()=>P.resolvedOptions(),[P]),A=Ti({...m,currencySign:void 0}),_=u.useMemo(()=>isNaN(h)?"":A.format(h),[A,h]),{spinButtonProps:V,incrementButtonProps:W,decrementButtonProps:te}=Os({isDisabled:o,isReadOnly:l,isRequired:s,maxValue:f,minValue:d,onIncrement:I,onIncrementToMax:M,onDecrement:O,onDecrementToMin:F,value:h,textValue:_}),[oe,Ke]=u.useState(!1),{focusWithinProps:Ie}=ft({isDisabled:o,onFocusWithinChange:Ke}),z=u.useCallback(Pe=>{Math.abs(Pe.deltaY)<=Math.abs(Pe.deltaX)||(Pe.deltaY>0?I():Pe.deltaY<0&&O())},[O,I]);ah({onScroll:z,isDisabled:w||o||l||!oe},r);var ne;let j=((ne=K.maximumFractionDigits)!==null&&ne!==void 0?ne:0)>0,Ce=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Ee="numeric";Zl()?Ce?Ee="text":j&&(Ee="decimal"):$n()&&(Ce?Ee="numeric":j&&(Ee="decimal"));let Fr=Pe=>{t.validate(Pe)&&t.setInputValue(Pe)},L4=q(e),lo=u.useCallback(Pe=>{Pe.key==="Enter"?(L(),R()):Pe.continuePropagation()},[L,R]),{isInvalid:uo,validationErrors:N4,validationDetails:K4}=t.displayValidation,{labelProps:so,inputProps:V4,descriptionProps:O4,errorMessageProps:z4}=Hv({...D,...L4,name:void 0,label:p,autoFocus:c,isDisabled:o,isReadOnly:l,isRequired:s,validate:void 0,[pn]:t,value:T,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:v,type:"text",inputMode:Ee,onChange:Fr,onBlur:b,onFocus:g,onFocusChange:y,onKeyDown:u.useMemo(()=>ze(lo,$),[lo,$]),onKeyUp:E,description:x,errorMessage:B},t,r);Ut(r,t.numberValue,t.setNumberValue);let co=N(V,k,V4,{role:null,"aria-roledescription":_t()?null:H.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(co["aria-required"]=void 0);let fo=Pe=>{var Vn;document.activeElement!==r.current&&(Pe.pointerType==="mouse"?(Vn=r.current)===null||Vn===void 0||Vn.focus():Pe.target.focus())},Kn=e["aria-label"]||(typeof e.label=="string"?e.label:""),pt;Kn||(pt=e.label!=null?so.id:e["aria-labelledby"]);let po=J(),mo=J(),j4=N(W,{"aria-label":a||H.format("increase",{fieldLabel:Kn}).trim(),id:pt&&!a?po:null,"aria-labelledby":pt&&!a?`${po} ${pt}`:null,"aria-controls":v,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:fo}),H4=N(te,{"aria-label":i||H.format("decrease",{fieldLabel:Kn}).trim(),id:pt&&!i?mo:null,"aria-labelledby":pt&&!i?`${mo} ${pt}`:null,"aria-controls":v,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:fo});return{groupProps:{...Ie,role:"group","aria-disabled":o,"aria-invalid":uo?"true":void 0},labelProps:so,inputProps:co,incrementButtonProps:j4,decrementButtonProps:H4,errorMessageProps:z4,descriptionProps:O4,isInvalid:uo,validationErrors:N4,validationDetails:K4}}const Oe={top:"top",bottom:"top",left:"left",right:"left"},mn={top:"bottom",bottom:"top",left:"right",right:"left"},Gv={top:"left",left:"top"},Mi={top:"height",left:"width"},Dd={width:"totalWidth",height:"totalHeight"},Or={};let me=typeof document<"u"?window.visualViewport:null;function al(e){let t=0,r=0,n=0,i=0,a=0,o=0,l={};var s;let d=((s=me==null?void 0:me.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let b=document.documentElement;n=b.clientWidth,i=b.clientHeight;var f;t=(f=me==null?void 0:me.width)!==null&&f!==void 0?f:n;var c;r=(c=me==null?void 0:me.height)!==null&&c!==void 0?c:i,l.top=b.scrollTop||e.scrollTop,l.left=b.scrollLeft||e.scrollLeft,me&&(a=me.offsetTop,o=me.offsetLeft)}else({width:t,height:r,top:a,left:o}=Vt(e)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,i=r;if(Hi()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){l.top=0,l.left=0;var p;a=(p=me==null?void 0:me.pageTop)!==null&&p!==void 0?p:0;var m;o=(m=me==null?void 0:me.pageLeft)!==null&&m!==void 0?m:0}return{width:t,height:r,totalWidth:n,totalHeight:i,scroll:l,top:a,left:o}}function Zv(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function ol(e,t,r,n,i,a,o){var l;let s=(l=i.scroll[e])!==null&&l!==void 0?l:0,d=n[Mi[e]],f=n.scroll[Oe[e]]+a,c=d+n.scroll[Oe[e]]-a,p=t-s+o[e]-n[Oe[e]],m=t-s+r+o[e]-n[Oe[e]];return p<f?f-p:m>c?Math.max(c-m,f-p):0}function qv(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function ll(e){if(Or[e])return Or[e];let[t,r]=e.split(" "),n=Oe[t]||"right",i=Gv[n];Oe[r]||(r="center");let a=Mi[n],o=Mi[i];return Or[e]={placement:t,crossPlacement:r,axis:n,crossAxis:i,size:a,crossSize:o},Or[e]}function ni(e,t,r,n,i,a,o,l,s,d){let{placement:f,crossPlacement:c,axis:p,crossAxis:m,size:b,crossSize:g}=n,y={};var $;y[m]=($=e[m])!==null&&$!==void 0?$:0;var E,x,B,w;c==="center"?y[m]+=(((E=e[g])!==null&&E!==void 0?E:0)-((x=r[g])!==null&&x!==void 0?x:0))/2:c!==m&&(y[m]+=((B=e[g])!==null&&B!==void 0?B:0)-((w=r[g])!==null&&w!==void 0?w:0)),y[m]+=a;const D=e[m]-r[g]+s+d,I=e[m]+e[g]-s-d;if(y[m]=$t(y[m],D,I),f===p){const M=l?o[b]:t[Dd[b]];y[mn[p]]=Math.floor(M-e[p]+i)}else y[p]=Math.floor(e[p]+e[b]+i);return y}function Yv(e,t,r,n,i,a,o,l){const s=n?r.height:t[Dd.height];var d;let f=e.top!=null?r.top+e.top:r.top+(s-((d=e.bottom)!==null&&d!==void 0?d:0)-o);var c,p,m,b,g,y;let $=l!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-f-(((p=i.top)!==null&&p!==void 0?p:0)+((m=i.bottom)!==null&&m!==void 0?m:0)+a)):Math.max(0,f+o-(t.top+((b=t.scroll.top)!==null&&b!==void 0?b:0))-(((g=i.top)!==null&&g!==void 0?g:0)+((y=i.bottom)!==null&&y!==void 0?y:0)+a));return Math.min(t.height-a*2,$)}function ul(e,t,r,n,i,a){let{placement:o,axis:l,size:s}=a;var d,f;if(o===l)return Math.max(0,r[l]-e[l]-((d=e.scroll[l])!==null&&d!==void 0?d:0)+t[l]-((f=n[l])!==null&&f!==void 0?f:0)-n[mn[l]]-i);var c;return Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-r[l]-r[s]-((c=n[l])!==null&&c!==void 0?c:0)-n[mn[l]]-i)}function Jv(e,t,r,n,i,a,o,l,s,d,f,c,p,m,b,g){let y=ll(e),{size:$,crossAxis:E,crossSize:x,placement:B,crossPlacement:w}=y,D=ni(t,l,r,y,f,c,d,p,b,g),I=f,M=ul(l,d,t,i,a+f,y);if(o&&n[$]>M){let te=ll(`${mn[B]} ${w}`),oe=ni(t,l,r,te,f,c,d,p,b,g);ul(l,d,t,i,a+f,te)>M&&(y=te,D=oe,I=f)}let O="bottom";y.axis==="top"?y.placement==="top"?O="top":y.placement==="bottom"&&(O="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?O="bottom":y.crossPlacement==="bottom"&&(O="top"));let F=ol(E,D[E],r[x],l,s,a,d);D[E]+=F;let h=Yv(D,l,d,p,i,a,r.height,O);m&&m<h&&(h=m),r.height=Math.min(r.height,h),D=ni(t,l,r,y,I,c,d,p,b,g),F=ol(E,D[E],r[x],l,s,a,d),D[E]+=F;let T={},L=t[E]+.5*t[x]-D[E]-i[Oe[E]];const R=b/2+g;var H,v,k,P;const K=Oe[E]==="left"?((H=i.left)!==null&&H!==void 0?H:0)+((v=i.right)!==null&&v!==void 0?v:0):((k=i.top)!==null&&k!==void 0?k:0)+((P=i.bottom)!==null&&P!==void 0?P:0),A=r[x]-K-b/2-g,_=t[E]+b/2-(D[E]+i[Oe[E]]),V=t[E]+t[x]-b/2-(D[E]+i[Oe[E]]),W=$t(L,_,V);return T[E]=$t(W,R,A),{position:D,maxHeight:h,arrowOffsetLeft:T.left,arrowOffsetTop:T.top,placement:y.placement}}function Xv(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:l,offset:s,crossOffset:d,maxHeight:f,arrowSize:c=0,arrowBoundaryOffset:p=0}=e,m=n instanceof HTMLElement?Qv(n):document.documentElement,b=m===document.documentElement;const g=window.getComputedStyle(m).position;let y=!!g&&g!=="static",$=b?Vt(r):sl(r,m);if(!b){let{marginTop:T,marginLeft:L}=window.getComputedStyle(r);$.top+=parseInt(T,10)||0,$.left+=parseInt(L,10)||0}let E=Vt(n),x=qv(n);var B,w;E.width+=((B=x.left)!==null&&B!==void 0?B:0)+((w=x.right)!==null&&w!==void 0?w:0);var D,I;E.height+=((D=x.top)!==null&&D!==void 0?D:0)+((I=x.bottom)!==null&&I!==void 0?I:0);let M=Zv(i),O=al(l),F=al(m),h=l.tagName==="BODY"?Vt(m):sl(m,l);return m.tagName==="HTML"&&l.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),Jv(t,$,E,M,x,a,o,O,F,h,s,d,y,f,c,p)}function Vt(e){let{top:t,left:r,width:n,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:l,clientLeft:s}=document.documentElement;return{top:t+a-l,left:r+o-s,width:n,height:i}}function sl(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:i,left:a,width:o,height:l}=e.getBoundingClientRect();n={top:i,left:a,width:o,height:l}}else{n=Vt(e);let i=Vt(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Qv(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!dl(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!dl(t);)t=t.parentElement;return t||document.documentElement}function dl(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Cd=new WeakMap;function e3(e){let{triggerRef:t,isOpen:r,onClose:n}=e;u.useEffect(()=>{if(!r||n===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let l=n||Cd.get(t.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[r,n,t])}let ie=typeof document<"u"?window.visualViewport:null;function Ed(e){let{direction:t}=be(),{arrowSize:r=0,targetRef:n,overlayRef:i,scrollRef:a=i,placement:o="bottom",containerPadding:l=12,shouldFlip:s=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:c=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,E]=u.useState(null),x=[p,o,i.current,n.current,a.current,l,s,d,f,c,m,t,g,y,r],B=u.useRef(ie==null?void 0:ie.scale);u.useEffect(()=>{m&&(B.current=ie==null?void 0:ie.scale)},[m]);let w=u.useCallback(()=>{if(p===!1||!m||!i.current||!n.current||!d||(ie==null?void 0:ie.scale)!==B.current)return;let F=null;if(a.current&&a.current.contains(document.activeElement)){var h;let P=(h=document.activeElement)===null||h===void 0?void 0:h.getBoundingClientRect(),K=a.current.getBoundingClientRect();var T;if(F={type:"top",offset:((T=P==null?void 0:P.top)!==null&&T!==void 0?T:0)-K.top},F.offset>K.height/2){F.type="bottom";var L;F.offset=((L=P==null?void 0:P.bottom)!==null&&L!==void 0?L:0)-K.bottom}}let R=i.current;if(!g&&i.current){var H;R.style.top="0px",R.style.bottom="";var v;R.style.maxHeight=((v=(H=window.visualViewport)===null||H===void 0?void 0:H.height)!==null&&v!==void 0?v:window.innerHeight)+"px"}let k=Xv({placement:r3(o,t),overlayNode:i.current,targetNode:n.current,scrollNode:a.current||i.current,padding:l,shouldFlip:s,boundaryElement:d,offset:f,crossOffset:c,maxHeight:g,arrowSize:r,arrowBoundaryOffset:y});if(k.position){if(R.style.top="",R.style.bottom="",R.style.left="",R.style.right="",Object.keys(k.position).forEach(P=>R.style[P]=k.position[P]+"px"),R.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",F&&document.activeElement&&a.current){let P=document.activeElement.getBoundingClientRect(),K=a.current.getBoundingClientRect(),A=P[F.type]-K[F.type];a.current.scrollTop+=A-F.offset}E(k)}},x);U(w,x),t3(w),vi({ref:i,onResize:w}),vi({ref:n,onResize:w});let D=u.useRef(!1);U(()=>{let F,h=()=>{D.current=!0,clearTimeout(F),F=setTimeout(()=>{D.current=!1},500),w()},T=()=>{D.current&&h()};return ie==null||ie.addEventListener("resize",h),ie==null||ie.addEventListener("scroll",T),()=>{ie==null||ie.removeEventListener("resize",h),ie==null||ie.removeEventListener("scroll",T)}},[w]);let I=u.useCallback(()=>{D.current||b==null||b()},[b,D]);e3({triggerRef:n,isOpen:m,onClose:b&&I});var M,O;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(M=$==null?void 0:$.maxHeight)!==null&&M!==void 0?M:"100vh"}},placement:(O=$==null?void 0:$.placement)!==null&&O!==void 0?O:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:w}}function t3(e){U(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function r3(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Ve=[];function n3(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=e;u.useEffect(()=>{if(i&&!Ve.includes(t))return Ve.push(t),()=>{let b=Ve.indexOf(t);b>=0&&Ve.splice(b,1)}},[i,t]);let s=()=>{Ve[Ve.length-1]===t&&r&&r()},d=b=>{(!l||l(b.target))&&Ve[Ve.length-1]===t&&(b.stopPropagation(),b.preventDefault())},f=b=>{(!l||l(b.target))&&(Ve[Ve.length-1]===t&&(b.stopPropagation(),b.preventDefault()),s())},c=b=>{b.key==="Escape"&&!o&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),s())};ih({ref:t,onInteractOutside:a&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:p}=ft({isDisabled:!n,onBlurWithin:b=>{!b.relatedTarget||xv(b.relatedTarget)||(!l||l(b.relatedTarget))&&(r==null||r())}}),m=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:c,...p},underlayProps:{onPointerDown:m}}}function Pd(e,t,r){let{type:n}=e,{isOpen:i}=t;u.useEffect(()=>{r&&r.current&&Cd.set(r.current,t.close)});let a;n==="menu"?a=!0:n==="listbox"&&(a="listbox");let o=J();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const ii=typeof document<"u"&&window.visualViewport,i3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let zr=0,ai;function a3(e={}){let{isDisabled:t}=e;U(()=>{if(!t)return zr++,zr===1&&(_t()?ai=l3():ai=o3()),()=>{zr--,zr===0&&ai()}},[t])}function o3(){return ze(It(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),It(document.documentElement,"overflow","hidden"))}function l3(){let e,t,r=d=>{e=We(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=It(e,"overscrollBehavior","contain"))},n=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},a=d=>{let f=d.target;u3(f)&&(l(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",ii&&(ii.height<window.innerHeight?requestAnimationFrame(()=>{cl(f)}):ii.addEventListener("resize",()=>cl(f),{once:!0}))}))},o=null,l=()=>{if(o)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,c=window.pageYOffset;o=ze(Qt(window,"scroll",d),It(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),It(document.documentElement,"overflow","hidden"),It(document.body,"marginTop",`-${c}px`),()=>{window.scrollTo(f,c)}),window.scrollTo(0,0)},s=ze(Qt(document,"touchstart",r,{passive:!1,capture:!0}),Qt(document,"touchmove",n,{passive:!1,capture:!0}),Qt(document,"touchend",i,{passive:!1,capture:!0}),Qt(document,"focus",a,!0));return()=>{t==null||t(),o==null||o(),s()}}function It(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Qt(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function cl(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=We(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let i=n.getBoundingClientRect().top,a=r.getBoundingClientRect().top;a>i+r.clientHeight&&(n.scrollTop+=a-i)}r=n.parentElement}}function u3(e){return e instanceof HTMLInputElement&&!i3.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const s3=u.createContext({});function wd(){var e;return(e=u.useContext(s3))!==null&&e!==void 0?e:{}}const Li=u.createContext(null);function d3(e){let{children:t}=e,r=u.useContext(Li),[n,i]=u.useState(0),a=u.useMemo(()=>({parent:r,modalCount:n,addModal(){i(o=>o+1),r&&r.addModal()},removeModal(){i(o=>o-1),r&&r.removeModal()}}),[r,n]);return u.createElement(Li.Provider,{value:a},t)}function c3(){let e=u.useContext(Li);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function f3(e){let{modalProviderProps:t}=c3();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function p3(e){return u.createElement(d3,null,u.createElement(f3,e))}function m3(e){let t=dt(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:i}=wd();if(!e.portalContainer&&i&&(r=i()),u.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let a=u.createElement(p3,n);return Et.createPortal(a,r)}var Sd={};Sd={dismiss:"تجاهل"};var kd={};kd={dismiss:"Отхвърляне"};var Bd={};Bd={dismiss:"Odstranit"};var Td={};Td={dismiss:"Luk"};var Fd={};Fd={dismiss:"Schließen"};var Rd={};Rd={dismiss:"Απόρριψη"};var Ad={};Ad={dismiss:"Dismiss"};var Id={};Id={dismiss:"Descartar"};var Md={};Md={dismiss:"Lõpeta"};var Ld={};Ld={dismiss:"Hylkää"};var Nd={};Nd={dismiss:"Rejeter"};var Kd={};Kd={dismiss:"התעלם"};var Vd={};Vd={dismiss:"Odbaci"};var Od={};Od={dismiss:"Elutasítás"};var zd={};zd={dismiss:"Ignora"};var jd={};jd={dismiss:"閉じる"};var Hd={};Hd={dismiss:"무시"};var _d={};_d={dismiss:"Atmesti"};var Ud={};Ud={dismiss:"Nerādīt"};var Wd={};Wd={dismiss:"Lukk"};var Gd={};Gd={dismiss:"Negeren"};var Zd={};Zd={dismiss:"Zignoruj"};var qd={};qd={dismiss:"Descartar"};var Yd={};Yd={dismiss:"Dispensar"};var Jd={};Jd={dismiss:"Revocare"};var Xd={};Xd={dismiss:"Пропустить"};var Qd={};Qd={dismiss:"Zrušiť"};var ec={};ec={dismiss:"Opusti"};var tc={};tc={dismiss:"Odbaci"};var rc={};rc={dismiss:"Avvisa"};var nc={};nc={dismiss:"Kapat"};var ic={};ic={dismiss:"Скасувати"};var ac={};ac={dismiss:"取消"};var oc={};oc={dismiss:"關閉"};var lc={};lc={"ar-AE":Sd,"bg-BG":kd,"cs-CZ":Bd,"da-DK":Td,"de-DE":Fd,"el-GR":Rd,"en-US":Ad,"es-ES":Id,"et-EE":Md,"fi-FI":Ld,"fr-FR":Nd,"he-IL":Kd,"hr-HR":Vd,"hu-HU":Od,"it-IT":zd,"ja-JP":jd,"ko-KR":Hd,"lt-LT":_d,"lv-LV":Ud,"nb-NO":Wd,"nl-NL":Gd,"pl-PL":Zd,"pt-BR":qd,"pt-PT":Yd,"ro-RO":Jd,"ru-RU":Xd,"sk-SK":Qd,"sl-SI":ec,"sr-SP":tc,"sv-SE":rc,"tr-TR":nc,"uk-UA":ic,"zh-CN":ac,"zh-TW":oc};function b3(e){return e&&e.__esModule?e.default:e}function fl(e){let{onDismiss:t,...r}=e,n=tt(b3(lc),"@react-aria/overlays"),i=_i(r,n.format("dismiss")),a=()=>{t&&t()};return u.createElement(sa,null,u.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}let er=new WeakMap,xe=[];function h3(e,t=document.body){let r=new Set(e),n=new Set,i=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(p);let d=p=>{if(r.has(p)||p.parentElement&&n.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of r)if(p.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),c=d(s);if(c===NodeFilter.FILTER_ACCEPT&&a(s),c!==NodeFilter.FILTER_REJECT){let p=f.nextNode();for(;p!=null;)a(p),p=f.nextNode()}},a=s=>{var d;let f=(d=er.get(s))!==null&&d!==void 0?d:0;s.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&s.setAttribute("aria-hidden","true"),n.add(s),er.set(s,f+1))};xe.length&&xe[xe.length-1].disconnect(),i(t);let o=new MutationObserver(s=>{for(let d of s)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...r,...n].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(r.delete(f),n.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?r.add(f):f instanceof Element&&i(f)}});o.observe(t,{childList:!0,subtree:!0});let l={visibleNodes:r,hiddenNodes:n,observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return xe.push(l),()=>{o.disconnect();for(let s of n){let d=er.get(s);d!=null&&(d===1?(s.removeAttribute("aria-hidden"),er.delete(s)):er.set(s,d-1))}l===xe[xe.length-1]?(xe.pop(),xe.length&&xe[xe.length-1].observe()):xe.splice(xe.indexOf(l),1)}}function v3(e){let t=xe[xe.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function g3(e,t){let{triggerRef:r,popoverRef:n,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l,...s}=e,d=s.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:c}=n3({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l},i??n),{overlayProps:p,arrowProps:m,placement:b}=Ed({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:a&&!d?t.close:null});return a3({isDisabled:a||!t.isOpen}),U(()=>{if(t.isOpen&&n.current){var g,y;return a?v3((g=i==null?void 0:i.current)!==null&&g!==void 0?g:n.current):h3([(y=i==null?void 0:i.current)!==null&&y!==void 0?y:n.current])}},[a,t.isOpen,n,i]),{popoverProps:N(f,p),arrowProps:m,underlayProps:c,placement:b}}const uc=u.createContext(null);function pl(e){let t=dt(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[i,a]=u.useState(!1),o=u.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:l}=wd();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(Yu,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!n},s)),s=u.createElement(uc.Provider,{value:o},u.createElement(rh,null,s)),Et.createPortal(s,r)}function y3(){let e=u.useContext(uc),t=e==null?void 0:e.setContain;U(()=>{t==null||t(!0)},[t])}const ca=new WeakMap;function $3(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function x3(e,t){let r=ca.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${$3(t)}`}function Ni(e){return yb()?e.altKey:e.ctrlKey}function Zr(e,t){var r,n;let i=`[data-key="${CSS.escape(String(t))}"]`,a=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return a&&(i=`[data-collection="${CSS.escape(a)}"]${i}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(i)}const sc=new WeakMap;function D3(e){let t=J();return sc.set(e,t),t}function C3(e){return sc.get(e)}const E3=1e3;function dc(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,i=u.useRef({search:"",timeout:void 0}).current,a=o=>{let l=P3(o.key);if(!(!l||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(l===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(i.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(i.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},E3)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function P3(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function w3(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:c,allowsTabNavigation:p=!1,isVirtualized:m,scrollRef:b=n,linkBehavior:g="action"}=e,{direction:y}=be(),$=vr(),E=v=>{var k;if(v.altKey&&v.key==="Tab"&&v.preventDefault(),!(!((k=n.current)===null||k===void 0)&&k.contains(v.target)))return;const P=(j,Ce)=>{if(j!=null){if(t.isLink(j)&&g==="selection"&&d&&!Ni(v)){Et.flushSync(()=>{t.setFocusedKey(j,Ce)});let Ee=Zr(n,j),Fr=t.getItemProps(j);Ee&&$.open(Ee,v,Fr.href,Fr.routerOptions);return}if(t.setFocusedKey(j,Ce),t.isLink(j)&&g==="override")return;v.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):d&&!Ni(v)&&t.replaceSelection(j)}};switch(v.key){case"ArrowDown":if(r.getKeyBelow){var K,A,_;let j=t.focusedKey!=null?(K=r.getKeyBelow)===null||K===void 0?void 0:K.call(r,t.focusedKey):(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r);j==null&&a&&(j=(_=r.getFirstKey)===null||_===void 0?void 0:_.call(r,t.focusedKey)),j!=null&&(v.preventDefault(),P(j))}break;case"ArrowUp":if(r.getKeyAbove){var V,W,te;let j=t.focusedKey!=null?(V=r.getKeyAbove)===null||V===void 0?void 0:V.call(r,t.focusedKey):(W=r.getLastKey)===null||W===void 0?void 0:W.call(r);j==null&&a&&(j=(te=r.getLastKey)===null||te===void 0?void 0:te.call(r,t.focusedKey)),j!=null&&(v.preventDefault(),P(j))}break;case"ArrowLeft":if(r.getKeyLeftOf){var oe,Ke,Ie;let j=t.focusedKey!=null?(oe=r.getKeyLeftOf)===null||oe===void 0?void 0:oe.call(r,t.focusedKey):null;j==null&&a&&(j=y==="rtl"?(Ke=r.getFirstKey)===null||Ke===void 0?void 0:Ke.call(r,t.focusedKey):(Ie=r.getLastKey)===null||Ie===void 0?void 0:Ie.call(r,t.focusedKey)),j!=null&&(v.preventDefault(),P(j,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var z,X,ne;let j=t.focusedKey!=null?(z=r.getKeyRightOf)===null||z===void 0?void 0:z.call(r,t.focusedKey):null;j==null&&a&&(j=y==="rtl"?(X=r.getLastKey)===null||X===void 0?void 0:X.call(r,t.focusedKey):(ne=r.getFirstKey)===null||ne===void 0?void 0:ne.call(r,t.focusedKey)),j!=null&&(v.preventDefault(),P(j,y==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&v.shiftKey)return;v.preventDefault();let j=r.getFirstKey(t.focusedKey,Ft(v));t.setFocusedKey(j),j!=null&&(Ft(v)&&v.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):d&&t.replaceSelection(j))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&v.shiftKey)return;v.preventDefault();let j=r.getLastKey(t.focusedKey,Ft(v));t.setFocusedKey(j),j!=null&&(Ft(v)&&v.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):d&&t.replaceSelection(j))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let j=r.getKeyPageBelow(t.focusedKey);j!=null&&(v.preventDefault(),P(j))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let j=r.getKeyPageAbove(t.focusedKey);j!=null&&(v.preventDefault(),P(j))}break;case"a":Ft(v)&&t.selectionMode==="multiple"&&l!==!0&&(v.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!o&&t.selectedKeys.size!==0&&(v.stopPropagation(),v.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(v.shiftKey)n.current.focus();else{let j=pe(n.current,{tabbable:!0}),Ce,Ee;do Ee=j.lastChild(),Ee&&(Ce=Ee);while(Ee);Ce&&!Ce.contains(document.activeElement)&&Le(Ce)}break}}},x=u.useRef({top:0,left:0});qe(b,"scroll",m?void 0:()=>{var v,k,P,K;x.current={top:(P=(v=b.current)===null||v===void 0?void 0:v.scrollTop)!==null&&P!==void 0?P:0,left:(K=(k=b.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&K!==void 0?K:0}});let B=v=>{if(t.isFocused){v.currentTarget.contains(v.target)||t.setFocused(!1);return}if(v.currentTarget.contains(v.target)){if(t.setFocused(!0),t.focusedKey==null){var k,P;let _=W=>{W!=null&&(t.setFocusedKey(W),d&&!t.isSelected(W)&&t.replaceSelection(W))},V=v.relatedTarget;var K,A;V&&v.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?_((K=t.lastSelectedKey)!==null&&K!==void 0?K:(k=r.getLastKey)===null||k===void 0?void 0:k.call(r)):_((A=t.firstSelectedKey)!==null&&A!==void 0?A:(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))}else!m&&b.current&&(b.current.scrollTop=x.current.top,b.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&b.current){let _=Zr(n,t.focusedKey);_ instanceof HTMLElement&&(!_.contains(document.activeElement)&&!c&&Le(_),pr()==="keyboard"&&Ge(_,{containingElement:n.current}))}}},w=v=>{v.currentTarget.contains(v.relatedTarget)||t.setFocused(!1)},D=u.useRef(!1);qe(n,Rb,c?v=>{let{detail:k}=v;v.stopPropagation(),t.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(D.current=!0)}:void 0);let I=re(()=>{var v,k;let P=(k=(v=r.getFirstKey)===null||v===void 0?void 0:v.call(r))!==null&&k!==void 0?k:null;P==null?(Qu(n.current),t.collection.size>0&&(D.current=!1)):(t.setFocusedKey(P),D.current=!1)});ho(()=>{D.current&&I()},[t.collection,I]);let M=re(()=>{t.collection.size>0&&(D.current=!1)});ho(()=>{M()},[t.focusedKey,M]),qe(n,Fb,c?v=>{var k;v.stopPropagation(),t.setFocused(!1),!((k=v.detail)===null||k===void 0)&&k.clearFocusKey&&t.setFocusedKey(null)}:void 0);const O=u.useRef(i),F=u.useRef(!1);u.useEffect(()=>{if(O.current){var v,k;let A=null;var P;i==="first"&&(A=(P=(v=r.getFirstKey)===null||v===void 0?void 0:v.call(r))!==null&&P!==void 0?P:null);var K;i==="last"&&(A=(K=(k=r.getLastKey)===null||k===void 0?void 0:k.call(r))!==null&&K!==void 0?K:null);let _=t.selectedKeys;if(_.size){for(let V of _)if(t.canSelectItem(V)){A=V;break}}t.setFocused(!0),t.setFocusedKey(A),A==null&&!c&&n.current&&ge(n.current),t.collection.size>0&&(O.current=!1,F.current=!0)}});let h=u.useRef(t.focusedKey);u.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==h.current||F.current)&&b.current&&n.current){let v=pr(),k=Zr(n,t.focusedKey);if(!(k instanceof HTMLElement))return;(v==="keyboard"||F.current)&&(eu(b.current,k),v!=="virtual"&&Ge(k,{containingElement:n.current}))}!c&&t.isFocused&&t.focusedKey==null&&h.current!=null&&n.current&&ge(n.current),h.current=t.focusedKey,F.current=!1}),qe(n,"react-aria-focus-scope-restore",v=>{v.preventDefault(),t.setFocused(!0)});let T={onKeyDown:E,onFocus:B,onBlur:w,onMouseDown(v){b.current===v.target&&v.preventDefault()}},{typeSelectProps:L}=dc({keyboardDelegate:r,selectionManager:t});f||(T=N(L,T));let R;c||(R=t.focusedKey==null?0:-1);let H=D3(t.collection);return{collectionProps:N(T,{tabIndex:R,"data-collection":H})}}function cc(e){let{id:t,selectionManager:r,key:n,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:l,isDisabled:s,onAction:d,allowsDifferentPressOrigin:f,linkBehavior:c="action"}=e,p=vr();t=J(t);let m=P=>{if(P.pointerType==="keyboard"&&Ni(P))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(c==="selection"&&i.current){let K=r.getItemProps(n);p.open(i.current,P,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(c==="override"||c==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):P&&P.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||P&&(Ft(P)||P.pointerType==="touch"||P.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};u.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(o?Qu(i.current):l?l():document.activeElement!==i.current&&i.current&&ge(i.current))},[i,n,r.focusedKey,r.childFocusStrategy,r.isFocused,o]),s=s||r.isDisabled(n);let b={};!o&&!s?b={tabIndex:n===r.focusedKey?0:-1,onFocus(P){P.target===i.current&&r.setFocusedKey(n)}}:s&&(b.onMouseDown=P=>{P.preventDefault()});let g=r.isLink(n)&&c==="override",y=r.isLink(n)&&c!=="selection"&&c!=="none",$=!s&&r.canSelectItem(n)&&!g,E=(d||y)&&!s,x=E&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),B=E&&$&&r.selectionBehavior==="replace",w=x||B,D=u.useRef(null),I=w&&$,M=u.useRef(!1),O=u.useRef(!1),F=P=>{if(d&&d(),y&&i.current){let K=r.getItemProps(n);p.open(i.current,P,K.href,K.routerOptions)}},h={ref:i};a?(h.onPressStart=P=>{D.current=P.pointerType,M.current=I,P.pointerType==="keyboard"&&(!w||bl())&&m(P)},f?(h.onPressUp=x?void 0:P=>{P.pointerType==="mouse"&&$&&m(P)},h.onPress=x?F:P=>{P.pointerType!=="keyboard"&&P.pointerType!=="mouse"&&$&&m(P)}):h.onPress=P=>{if(x||B&&P.pointerType!=="mouse"){if(P.pointerType==="keyboard"&&!ml())return;F(P)}else P.pointerType!=="keyboard"&&$&&m(P)}):(h.onPressStart=P=>{D.current=P.pointerType,M.current=I,O.current=x,$&&(P.pointerType==="mouse"&&!x||P.pointerType==="keyboard"&&(!E||bl()))&&m(P)},h.onPress=P=>{(P.pointerType==="touch"||P.pointerType==="pen"||P.pointerType==="virtual"||P.pointerType==="keyboard"&&w&&ml()||P.pointerType==="mouse"&&O.current)&&(w?F(P):$&&m(P))}),b["data-collection"]=C3(r.collection),b["data-key"]=n,h.preventFocusOnPress=o,o&&(h=N(h,{onPressStart(P){P.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(P){P.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}}));let{pressProps:T,isPressed:L}=je(h),R=B?P=>{D.current==="mouse"&&(P.stopPropagation(),P.preventDefault(),F(P))}:void 0,{longPressProps:H}=bu({isDisabled:!I,onLongPress(P){P.pointerType==="touch"&&(m(P),r.setSelectionBehavior("toggle"))}}),v=P=>{D.current==="touch"&&M.current&&P.preventDefault()},k=r.isLink(n)?P=>{xt.isOpening||P.preventDefault()}:void 0;return{itemProps:N(b,$||x||o?T:{},I?H:{},{onDoubleClick:R,onDragStartCapture:v,onClick:k,id:t},o?{onMouseDown:P=>P.preventDefault()}:void 0),isPressed:L,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:$,hasAction:w}}function ml(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function bl(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class hl{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?Zr(this.ref,t):null;if(!n)return null;let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();return{x:a.left-i.left+r.scrollLeft,y:a.top-i.top+r.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t==null?void 0:t.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t==null?void 0:t.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,i,a;return{x:(r=t==null?void 0:t.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t==null?void 0:t.scrollTop)!==null&&n!==void 0?n:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.offsetHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class Bn{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let i=this.collection.getItem(n);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let o=a;do{if(i=r(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&n(o,a)&&i!=null);return i}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!dr(r))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>a&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>a&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!dr(r))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<a&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<a&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,i=r||this.getFirstKey();for(;i!=null;){let a=n.getItem(i);if(!a)return null;let o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new hl(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new hl(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function fc(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,l=Sn({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,d=u.useMemo(()=>a||new Bn({collection:r,disabledKeys:n,disabledBehavior:s,ref:i,collator:l,layoutDelegate:o}),[a,o,r,n,i,l,s]),{collectionProps:f}=w3({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function S3(e,t,r){let n=q(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=fc({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:l}=ft({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=J(e.id);ca.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:d,fieldProps:f}=la({...e,id:s,labelElementType:"span"});return{labelProps:d,listBoxProps:N(n,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...N(f,o)})}}class k3{build(t,r){return this.context=r,vl(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(u.isValidElement(r)&&r.type===u.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of n)yield*this.getFullNode({value:a,index:i},{renderer:r}),i++}else{let i=[];u.Children.forEach(r,o=>{o&&i.push(o)});let a=0;for(let o of i){let l=this.getFullNode({element:o,index:a},{});for(let s of l)a++,yield s}}}getKey(t,r,n,i){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${i}${r.key}`;let a=r.value;if(a!=null){var o;let l=(o=a.key)!==null&&o!==void 0?o:a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,i){if(u.isValidElement(t.element)&&t.element.type===u.Fragment){let y=[];u.Children.forEach(t.element.props.children,E=>{y.push(E)});var a;let $=(a=t.index)!==null&&a!==void 0?a:0;for(const E of y)yield*this.getFullNode({element:E,index:$++},r,n,i);return}let o=t.element;if(!o&&t.value&&r&&r.renderer){let y=this.cache.get(t.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=t.index,y.parentKey=i?i.key:null,yield y;return}o=r.renderer(t.value)}if(u.isValidElement(o)){let y=o.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let B=o.type;throw new Error(`Unknown element <${B}> in collection.`)}let $=y.getCollectionNode(o.props,this.context);var l;let E=(l=t.index)!==null&&l!==void 0?l:0,x=$.next();for(;!x.done&&x.value;){let B=x.value;t.index=E;var s;let w=(s=B.key)!==null&&s!==void 0?s:null;w==null&&(w=B.element?null:this.getKey(o,t,r,n));let I=[...this.getFullNode({...B,key:w,index:E,wrapper:B3(t.wrapper,B.wrapper)},this.getChildState(r,B),n?`${n}${o.key}`:o.key,i)];for(let M of I){var d,f;M.value=(f=(d=B.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${oi(M.type)}> in <${oi((c=i==null?void 0:i.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${oi(t.type)}> is supported.`);E++,yield M}x=$.next(I)}return}if(t.key==null||t.type==null)return;let p=this;var m,b;let g={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(m=t.value)!==null&&m!==void 0?m:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(b=t.textValue)!==null&&b!==void 0?b:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:vl(function*(){if(!t.hasChildNodes||!t.childNodes)return;let y=0;for(let $ of t.childNodes()){$.key!=null&&($.key=`${g.key}${$.key}`);let E=p.getFullNode({...$,index:y},p.getChildState(r,$),g.key,g);for(let x of E)y++,yield x}})};yield g}constructor(){this.cache=new WeakMap}}function vl(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function B3(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function oi(e){return e[0].toUpperCase()+e.slice(1)}function T3(e,t,r){let n=u.useMemo(()=>new k3,[]),{children:i,items:a,collection:o}=e;return u.useMemo(()=>{if(o)return o;let s=n.build({children:i,items:a},r);return t(s)},[n,i,a,o,r,t])}function pc(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function F3(e){return R3(e)}function R3(e,t){for(let r of e)return r}function A3(e){let t;for(let r of e)t=r;return t}function li(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...gl(e,t),t],i=[...gl(e,r),r],a=n.slice(0,i.length).findIndex((o,l)=>o!==i[l]);return a!==-1?(t=n[a],r=i[a],t.index-r.index):n.findIndex(o=>o===r)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function gl(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const yl=new WeakMap;function I3(e){let t=yl.get(e);if(t!=null)return t;let r=0,n=i=>{for(let a of i)a.type==="section"?n(pc(a,e)):r++};return n(e),yl.set(e,r),r}function M3(e,t,r){var n,i;let{key:a}=e,o=ca.get(t);var l;let s=(l=e.isDisabled)!==null&&l!==void 0?l:t.selectionManager.isDisabled(a);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(a);var c;let p=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:o==null?void 0:o.shouldSelectOnPressUp;var m;let b=(m=e.shouldFocusOnHover)!==null&&m!==void 0?m:o==null?void 0:o.shouldFocusOnHover;var g;let y=(g=e.shouldUseVirtualFocus)!==null&&g!==void 0?g:o==null?void 0:o.shouldUseVirtualFocus;var $;let E=($=e.isVirtualized)!==null&&$!==void 0?$:o==null?void 0:o.isVirtualized,x=zt(),B=zt(),w={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Xe()&&Hi()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=x,w["aria-describedby"]=B);let D=t.collection.getItem(a);if(E){let k=Number(D==null?void 0:D.index);w["aria-posinset"]=Number.isNaN(k)?void 0:k+1,w["aria-setsize"]=I3(t.collection)}let I=o!=null&&o.onAction?()=>{var k;return o==null||(k=o.onAction)===null||k===void 0?void 0:k.call(o,a)}:void 0,M=x3(t,a),{itemProps:O,isPressed:F,isFocused:h,hasAction:T,allowsSelection:L}=cc({selectionManager:t.selectionManager,key:a,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&b,isVirtualized:E,shouldUseVirtualFocus:y,isDisabled:s,onAction:I||!(D==null||(n=D.props)===null||n===void 0)&&n.onAction?ze(D==null||(i=D.props)===null||i===void 0?void 0:i.onAction,I):void 0,linkBehavior:o==null?void 0:o.linkBehavior,id:M}),{hoverProps:R}=Ae({isDisabled:s||!b,onHoverStart(){jt()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),H=q(D==null?void 0:D.props);delete H.id;let v=Xl(D==null?void 0:D.props);return{optionProps:{...w,...N(H,O,R,v),id:M},labelProps:{id:x},descriptionProps:{id:B},isFocused:h,isFocusVisible:h&&t.selectionManager.isFocused&&jt(),isSelected:f,isDisabled:s,isPressed:F,allowsSelection:L,hasAction:T}}function L3(e){let{heading:t,"aria-label":r}=e,n=J();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var mc={};mc={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var bc={};bc={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var hc={};hc={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var vc={};vc={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var gc={};gc={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var yc={};yc={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var $c={};$c={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var xc={};xc={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Dc={};Dc={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Cc={};Cc={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Ec={};Ec={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Pc={};Pc={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var wc={};wc={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Sc={};Sc={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var kc={};kc={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Bc={};Bc={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Tc={};Tc={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Fc={};Fc={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Rc={};Rc={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Ac={};Ac={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Ic={};Ic={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Mc={};Mc={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Lc={};Lc={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Nc={};Nc={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Kc={};Kc={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Vc={};Vc={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Oc={};Oc={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var zc={};zc={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var jc={};jc={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Hc={};Hc={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var _c={};_c={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Uc={};Uc={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Wc={};Wc={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Gc={};Gc={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Zc={};Zc={"ar-AE":mc,"bg-BG":bc,"cs-CZ":hc,"da-DK":vc,"de-DE":gc,"el-GR":yc,"en-US":$c,"es-ES":xc,"et-EE":Dc,"fi-FI":Cc,"fr-FR":Ec,"he-IL":Pc,"hr-HR":wc,"hu-HU":Sc,"it-IT":kc,"ja-JP":Bc,"ko-KR":Tc,"lt-LT":Fc,"lv-LV":Rc,"nb-NO":Ac,"nl-NL":Ic,"pl-PL":Mc,"pt-BR":Lc,"pt-PT":Nc,"ro-RO":Kc,"ru-RU":Vc,"sk-SK":Oc,"sl-SI":zc,"sr-SP":jc,"sv-SE":Hc,"tr-TR":_c,"uk-UA":Uc,"zh-CN":Wc,"zh-TW":Gc};function N3(e){return e&&e.__esModule?e.default:e}function K3(e,t,r){let{type:n="menu",isDisabled:i,trigger:a="press"}=e,o=J(),{triggerProps:l,overlayProps:s}=Pd({type:n},t,r),d=m=>{if(!i&&!(a==="longPress"&&!m.altKey)&&r&&r.current)switch(m.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation()}},f=tt(N3(Zc),"@react-aria/menu"),{longPressProps:c}=bu({isDisabled:i||a!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!i&&(Le(m.target),t.open(m.pointerType==="virtual"?"first":null))},onPress(m){m.pointerType==="touch"&&!i&&(Le(m.target),t.toggle())}};return delete l.onPress,{menuTriggerProps:{...l,...a==="press"?p:c,id:o,onKeyDown:d},menuProps:{...s,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var qc={};qc={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Yc={};Yc={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Jc={};Jc={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Xc={};Xc={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Qc={};Qc={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var ef={};ef={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var tf={};tf={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var rf={};rf={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var nf={};nf={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var af={};af={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var of={};of={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var lf={};lf={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var uf={};uf={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var sf={};sf={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var df={};df={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var cf={};cf={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var ff={};ff={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var pf={};pf={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var mf={};mf={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var bf={};bf={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var hf={};hf={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var vf={};vf={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var gf={};gf={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var yf={};yf={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var $f={};$f={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var xf={};xf={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var Df={};Df={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var Cf={};Cf={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var Ef={};Ef={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var Pf={};Pf={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var wf={};wf={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var Sf={};Sf={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var kf={};kf={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Bf={};Bf={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var fa={};fa={"ar-AE":qc,"bg-BG":Yc,"cs-CZ":Jc,"da-DK":Xc,"de-DE":Qc,"el-GR":ef,"en-US":tf,"es-ES":rf,"et-EE":nf,"fi-FI":af,"fr-FR":of,"he-IL":lf,"hr-HR":uf,"hu-HU":sf,"it-IT":df,"ja-JP":cf,"ko-KR":ff,"lt-LT":pf,"lv-LV":mf,"nb-NO":bf,"nl-NL":hf,"pl-PL":vf,"pt-BR":gf,"pt-PT":yf,"ro-RO":$f,"ru-RU":xf,"sk-SK":Df,"sl-SI":Cf,"sr-SP":Ef,"sv-SE":Pf,"tr-TR":wf,"uk-UA":Sf,"zh-CN":kf,"zh-TW":Bf};function V3(e,t,r){let{direction:n}=be(),i=u.useMemo(()=>aa(t),[t]),a=s=>{if(s.currentTarget.contains(s.target)&&(s.altKey&&(s.key==="ArrowDown"||s.key==="ArrowUp")&&"setOpen"in e&&(s.preventDefault(),s.stopPropagation(),e.setOpen(!0)),!r))switch(s.key){case"ArrowLeft":if(s.preventDefault(),s.stopPropagation(),n==="rtl"){if(t.current){let d=s.target,f=$l(t.current,d.getBoundingClientRect().left,-1);f&&f.focus()}}else i.focusPrevious();break;case"ArrowRight":if(s.preventDefault(),s.stopPropagation(),n==="rtl"){if(t.current){let d=s.target,f=$l(t.current,d.getBoundingClientRect().left,1);f&&f.focus()}}else i.focusNext();break}},o=()=>{var s;if(!t.current)return;let d=(s=window.event)===null||s===void 0?void 0:s.target,f=pe(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let c;do c=f.lastChild(),c&&(d=c);while(c)}for(;d!=null&&d.hasAttribute("data-placeholder");){let c=f.previousNode();if(c&&c.hasAttribute("data-placeholder"))d=c;else break}d&&d.focus()},{pressProps:l}=je({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(s){s.pointerType==="mouse"&&o()},onPress(s){s.pointerType!=="mouse"&&o()}});return N(l,{onKeyDown:a})}function $l(e,t,r){let n=pe(e,{tabbable:!0}),i=n.nextNode(),a=null,o=1/0;for(;i;){let s=i.getBoundingClientRect().left-t,d=Math.abs(s);Math.sign(s)===r&&d<o&&(a=i,o=d),i=n.nextNode()}return a}function O3(e){return e&&e.__esModule?e.default:e}const Tf=new WeakMap,ui="__role_"+Date.now(),z3="__focusManager_"+Date.now();function Ff(e,t,r){var n;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:l,fieldProps:s,descriptionProps:d,errorMessageProps:f}=Gt({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),c=u.useRef(null),{focusWithinProps:p}=ft({...e,onFocusWithin(F){var h;c.current=t.value,(h=e.onFocus)===null||h===void 0||h.call(e,F)},onBlurWithin:F=>{var h;t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),(h=e.onBlur)===null||h===void 0||h.call(e,F)},onFocusWithinChange:e.onFocusChange}),m=tt(O3(fa),"@react-aria/datepicker"),b=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",y=t.value?m.format(b,{[g]:t.formatValue({month:"long"})}):"",$=xn(y),E=e[ui]==="presentation"?s["aria-describedby"]:[$["aria-describedby"],s["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[z3],B=u.useMemo(()=>x||aa(r),[x,r]),w=V3(t,r,e[ui]==="presentation");Tf.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:E,focusManager:B});let D=u.useRef(e.autoFocus),I;e[ui]==="presentation"?I={role:"presentation"}:I=N(s,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":E}),u.useEffect(()=>{D.current&&B.focusFirst(),D.current=!1},[B]),Ut(e.inputRef,t.value,t.setValue),xr({...e,focus(){B.focusFirst()}},t,e.inputRef);let M={type:"hidden",name:e.name,value:((n=t.value)===null||n===void 0?void 0:n.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(M.type="text",M.hidden=!0,M.required=e.isRequired,M.onChange=()=>{});let O=q(e);return{labelProps:{...l,onClick:()=>{B.focusFirst()}},fieldProps:N(O,I,w,p,{onKeyDown(F){e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){e.onKeyUp&&e.onKeyUp(F)},style:{unicodeBidi:"isolate"}}),inputProps:M,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:a,validationDetails:o}}function j3(e,t,r){var n;let i=Ff(e,t,r);return i.inputProps.value=((n=t.timeValue)===null||n===void 0?void 0:n.toString())||"",i}function H3(e){return e&&e.__esModule?e.default:e}function _3(){let{locale:e}=be(),t=gu(H3(fa),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new U3(e,t)}},[e,t])}class U3{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,r){this.locale=t,this.dictionary=r}}function W3(e,t,r){let n=u.useRef(""),{locale:i,direction:a}=be(),o=_3(),{ariaLabel:l,ariaLabelledBy:s,ariaDescribedBy:d,focusManager:f}=Tf.get(t),c=e.isPlaceholder?"":e.text,p=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Vr({month:"long",timeZone:p.timeZone}),b=Vr({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if(e.type==="month"&&!e.isPlaceholder){let A=m.format(t.dateValue);c=A!==c?`${c} – ${A}`:A}else e.type==="hour"&&!e.isPlaceholder&&(c=b.format(t.dateValue));let{spinButtonProps:g}=Os({value:e.value,textValue:c,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{n.current="",t.increment(e.type)},onDecrement:()=>{n.current="",t.decrement(e.type)},onIncrementPage:()=>{n.current="",t.incrementPage(e.type)},onDecrementPage:()=>{n.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{n.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{n.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),y=u.useMemo(()=>new ia(i,{maximumFractionDigits:0}),[i]),$=()=>{if(e.text===e.placeholder&&f.focusPrevious(),y.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let A=e.text.slice(0,-1),_=y.parse(A);A=_===0?"":A,A.length===0||_===0?t.clearSegment(e.type):t.setSegment(e.type,_),n.current=A}else e.type==="dayPeriod"&&t.clearSegment(e.type)},E=A=>{if(A.key==="a"&&(Xe()?A.metaKey:A.ctrlKey)&&A.preventDefault(),!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey))switch(A.key){case"Backspace":case"Delete":A.preventDefault(),A.stopPropagation(),$();break}},{startsWith:x}=hv({sensitivity:"base"}),B=Vr({hour:"numeric",hour12:!0}),w=u.useMemo(()=>{let A=new Date;return A.setHours(0),B.formatToParts(A).find(_=>_.type==="dayPeriod").value},[B]),D=u.useMemo(()=>{let A=new Date;return A.setHours(12),B.formatToParts(A).find(_=>_.type==="dayPeriod").value},[B]),I=Vr({year:"numeric",era:"narrow",timeZone:"UTC"}),M=u.useMemo(()=>{if(e.type!=="era")return[];let A=$e(new se(1,1,1),t.calendar),_=t.calendar.getEras().map(W=>{let te=A.set({year:1,month:1,day:1,era:W}).toDate("UTC"),Ke=I.formatToParts(te).find(Ie=>Ie.type==="era").value;return{era:W,formatted:Ke}}),V=G3(_.map(W=>W.formatted));if(V)for(let W of _)W.formatted=W.formatted.slice(V);return _},[I,t.calendar,e.type]),O=A=>{if(t.isDisabled||t.isReadOnly)return;let _=n.current+A;switch(e.type){case"dayPeriod":if(x(w,A))t.setSegment("dayPeriod",0);else if(x(D,A))t.setSegment("dayPeriod",12);else break;f.focusNext();break;case"era":{let V=M.find(W=>x(W.formatted,A));V&&(t.setSegment("era",V.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!y.isValidPartialNumber(_))return;let V=y.parse(_),W=V,te=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&(W=y.parse(A));break;case"h12":te=!1,V>12&&(W=y.parse(A));break}e.value!==void 0&&e.value>=12&&V>1&&(V+=12)}else e.maxValue!==void 0&&V>e.maxValue&&(W=y.parse(A));if(isNaN(V))return;let oe=W!==0||te;oe&&t.setSegment(e.type,W),e.maxValue!==void 0&&(+(V+"0")>e.maxValue||_.length>=String(e.maxValue).length)?(n.current="",oe&&f.focusNext()):n.current=_;break}}},F=()=>{n.current="",r.current&&Ge(r.current,{containingElement:We(r.current)});let A=window.getSelection();A==null||A.collapse(r.current)},h=u.useRef(typeof document<"u"?document:null);qe(h,"selectionchange",()=>{var A;let _=window.getSelection();_!=null&&_.anchorNode&&(!((A=r.current)===null||A===void 0)&&A.contains(_==null?void 0:_.anchorNode))&&_.collapse(r.current)});let T=u.useRef("");qe(r,"beforeinput",A=>{if(r.current)switch(A.preventDefault(),A.inputType){case"deleteContentBackward":case"deleteContentForward":y.isValidPartialNumber(e.text)&&!t.isReadOnly&&$();break;case"insertCompositionText":T.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:A.data!=null&&O(A.data);break}}),qe(r,"input",A=>{let{inputType:_,data:V}=A;switch(_){case"insertCompositionText":r.current&&(r.current.textContent=T.current),V!=null&&(x(w,V)||x(D,V))&&O(V);break}}),U(()=>{let A=r.current;return()=>{document.activeElement===A&&(f.focusPrevious()||f.focusNext())}},[r,f]);let L=_t()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=u.useMemo(()=>t.segments.find(A=>A.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(d=void 0);let H=J(),v=!t.isDisabled&&!t.isReadOnly&&e.isEditable,k=e.type==="literal"?"":o.of(e.type),P=_i({"aria-label":`${k}${l?`, ${l}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let K={caretColor:"transparent"};if(a==="rtl"){K.unicodeBidi="embed";let A=p[e.type];(A==="numeric"||A==="2-digit")&&(K.direction="ltr")}return{segmentProps:N(g,P,{id:H,...L,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:v,suppressContentEditableWarning:v,spellCheck:v?"false":void 0,autoCorrect:v?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:v?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!v?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:E,onFocus:F,style:K,onPointerDown(A){A.stopPropagation()},onMouseDown(A){A.stopPropagation()}})}}function G3(e){e.sort();let t=e[0],r=e[e.length-1];for(let n=0;n<t.length;n++)if(t[n]!==r[n])return n;return 0}function Z3(e,t){let{role:r="dialog"}=e,n=zt();n=e["aria-label"]?void 0:n;let i=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ge(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),ge(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),y3(),{dialogProps:{...q(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:n}}}function q3(e,t,r){let{isDisabled:n}=e,i=J(),a=J(),l=!dt()&&"onbeforematch"in document.body,s=u.useRef(null),d=u.useCallback(()=>{s.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found")}),Et.flushSync(()=>{t.toggle()})},[r,t]);return qe(r,"beforematch",l?d:null),U(()=>{s.current&&cancelAnimationFrame(s.current),l&&r.current&&!n&&(t.isExpanded?r.current.removeAttribute("hidden"):r.current.setAttribute("hidden","until-found"))},[n,r,t.isExpanded,l]),u.useEffect(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[]),{buttonProps:{id:i,"aria-expanded":t.isExpanded,"aria-controls":a,onPress:f=>{!n&&f.pointerType!=="keyboard"&&t.toggle()},isDisabled:n,onPressStart(f){f.pointerType==="keyboard"&&!n&&t.toggle()}},panelProps:{id:a,role:"group","aria-labelledby":i,"aria-hidden":!t.isExpanded,hidden:l?!0:!t.isExpanded}}}const pa=new WeakMap;function xl(e,t){var r;let{id:n}=(r=pa.get(e))!==null&&r!==void 0?r:{};if(!n)throw new Error("Unknown list");return`${n}-${Y3(t)}`}function Y3(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var Rf={};Rf={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var Af={};Af={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var If={};If={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var Mf={};Mf={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var Lf={};Lf={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var Nf={};Nf={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var Kf={};Kf={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var Vf={};Vf={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var Of={};Of={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var zf={};zf={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var jf={};jf={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var Hf={};Hf={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var _f={};_f={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var Uf={};Uf={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var Wf={};Wf={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var Gf={};Gf={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var Zf={};Zf={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var qf={};qf={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var Yf={};Yf={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var Jf={};Jf={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var Xf={};Xf={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var Qf={};Qf={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var e0={};e0={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var t0={};t0={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var r0={};r0={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var n0={};n0={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var i0={};i0={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var a0={};a0={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var o0={};o0={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var l0={};l0={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var u0={};u0={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var s0={};s0={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var d0={};d0={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var c0={};c0={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var ma={};ma={"ar-AE":Rf,"bg-BG":Af,"cs-CZ":If,"da-DK":Mf,"de-DE":Lf,"el-GR":Nf,"en-US":Kf,"es-ES":Vf,"et-EE":Of,"fi-FI":zf,"fr-FR":jf,"he-IL":Hf,"hr-HR":_f,"hu-HU":Uf,"it-IT":Wf,"ja-JP":Gf,"ko-KR":Zf,"lt-LT":qf,"lv-LV":Yf,"nb-NO":Jf,"nl-NL":Xf,"pl-PL":Qf,"pt-BR":e0,"pt-PT":t0,"ro-RO":r0,"ru-RU":n0,"sk-SK":i0,"sl-SI":a0,"sr-SP":o0,"sv-SE":l0,"tr-TR":u0,"uk-UA":s0,"zh-CN":d0,"zh-TW":c0};function J3(e){return e&&e.__esModule?e.default:e}function X3(e,t){let{getRowText:r=l=>{var s,d,f,c;return(c=(s=(d=t.collection).getTextValue)===null||s===void 0?void 0:s.call(d,l))!==null&&c!==void 0?c:(f=t.collection.getItem(l))===null||f===void 0?void 0:f.textValue}}=e,n=tt(J3(ma),"@react-aria/grid"),i=t.selectionManager.rawSelection,a=u.useRef(i),o=re(()=>{var l;if(!t.selectionManager.isFocused||i===a.current){a.current=i;return}let s=Dl(i,a.current),d=Dl(a.current,i),f=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&f){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let p=r(t.selectionManager.selectedKeys.keys().next().value);p&&c.push(n.format("selectedItem",{item:p}))}}else if(s.size===1&&d.size===0){let p=r(s.keys().next().value);p&&c.push(n.format("selectedItem",{item:p}))}else if(d.size===1&&s.size===0&&t.collection.getItem(d.keys().next().value)){let p=r(d.keys().next().value);p&&c.push(n.format("deselectedItem",{item:p}))}t.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||a.current==="all"||((l=a.current)===null||l===void 0?void 0:l.size)>1)&&c.push(i==="all"?n.format("selectedAll"):n.format("selectedCount",{count:i.size})),c.length>0&&fn(c.join(" ")),a.current=i});Pb(()=>{if(t.selectionManager.isFocused)o();else{let l=requestAnimationFrame(o);return()=>cancelAnimationFrame(l)}},[i,t.selectionManager.isFocused])}function Dl(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let n of e.keys())t.has(n)||r.add(n);return r}function Q3(e){return e&&e.__esModule?e.default:e}function eg(e){let t=tt(Q3(ma),"@react-aria/grid"),r=mu(),n=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,i=u.useMemo(()=>{let o=e.selectionManager.selectionMode,l=e.selectionManager.selectionBehavior,s;return n&&(s=t.format("longPressToSelect")),l==="replace"&&o!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,n]);return xn(i)}function tg(e,t,r){let{isVirtualized:n,keyboardDelegate:i,layoutDelegate:a,onAction:o,disallowTypeAhead:l,linkBehavior:s="action",keyboardNavigationBehavior:d="arrow",escapeKeyBehavior:f="clearSelection"}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:c}=fc({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:r,keyboardDelegate:i,layoutDelegate:a,isVirtualized:n,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:f}),p=J(e.id);pa.set(t,{id:p,onAction:o,linkBehavior:s,keyboardNavigationBehavior:d});let m=eg({selectionManager:t.selectionManager,hasItemActions:!!o}),b=Pv(r,{isDisabled:t.collection.size!==0}),g=q(e,{labelable:!0}),y=N(g,{role:"grid",id:p,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:b?-1:0}:c,m);return n&&(y["aria-rowcount"]=t.collection.size,y["aria-colcount"]=1),X3({},t),{gridProps:y}}const Cl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function rg(e,t,r){var n,i;let{node:a,isVirtualized:o,shouldSelectOnPressUp:l}=e,{direction:s}=be(),{onAction:d,linkBehavior:f,keyboardNavigationBehavior:c}=pa.get(t),p=zt(),m=u.useRef(null),b=()=>{var v;r.current!==null&&(m.current!=null&&a.key!==m.current||!(!((v=r.current)===null||v===void 0)&&v.contains(document.activeElement)))&&ge(r.current)},g={},y=e.hasChildItems,$=t.selectionManager.isLink(a.key);if(a!=null&&"expandedKeys"in t){var E,x,B;let v=(E=(x=t.collection).getChildren)===null||E===void 0?void 0:E.call(x,a.key);y=y||[...v??[]].length>1,d==null&&!$&&t.selectionManager.selectionMode==="none"&&y&&(d=()=>t.toggleKey(a.key));let k=y?t.expandedKeys.has(a.key):void 0,P=1;var w;if(a.level>0&&(a==null?void 0:a.parentKey)!=null){let K=t.collection.getItem(a.parentKey);if(K){var D,I;let A=(D=(I=t.collection).getChildren)===null||D===void 0?void 0:D.call(I,K.key);P=A3(A).index+1}}else P=((w=(B=[...t.collection].filter(K=>K.level===0).at(-1))===null||B===void 0?void 0:B.index)!==null&&w!==void 0?w:0)+1;g={"aria-expanded":k,"aria-level":a.level+1,"aria-posinset":(a==null?void 0:a.index)+1,"aria-setsize":P}}let{itemProps:M,...O}=cc({selectionManager:t.selectionManager,key:a.key,ref:r,isVirtualized:o,shouldSelectOnPressUp:l,onAction:d||!((n=a.props)===null||n===void 0)&&n.onAction?ze((i=a.props)===null||i===void 0?void 0:i.onAction,d?()=>d(a.key):void 0):void 0,focus:b,linkBehavior:f}),F=v=>{if(!v.currentTarget.contains(v.target)||!r.current||!document.activeElement)return;let k=pe(r.current);if(k.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===r.current){if(v.key===Cl.expand[s]&&t.selectionManager.focusedKey===a.key&&y&&!t.expandedKeys.has(a.key)){t.toggleKey(a.key),v.stopPropagation();return}else if(v.key===Cl.collapse[s]&&t.selectionManager.focusedKey===a.key&&y&&t.expandedKeys.has(a.key)){t.toggleKey(a.key),v.stopPropagation();return}}switch(v.key){case"ArrowLeft":if(c==="arrow"){let K=s==="rtl"?k.nextNode():k.previousNode();if(K)v.preventDefault(),v.stopPropagation(),ge(K),Ge(K,{containingElement:We(r.current)});else if(v.preventDefault(),v.stopPropagation(),s==="rtl")ge(r.current),Ge(r.current,{containingElement:We(r.current)});else{k.currentNode=r.current;let A=El(k);A&&(ge(A),Ge(A,{containingElement:We(r.current)}))}}break;case"ArrowRight":if(c==="arrow"){let K=s==="rtl"?k.previousNode():k.nextNode();if(K)v.preventDefault(),v.stopPropagation(),ge(K),Ge(K,{containingElement:We(r.current)});else if(v.preventDefault(),v.stopPropagation(),s==="ltr")ge(r.current),Ge(r.current,{containingElement:We(r.current)});else{k.currentNode=r.current;let A=El(k);A&&(ge(A),Ge(A,{containingElement:We(r.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!v.altKey&&r.current.contains(v.target)){var P;v.stopPropagation(),v.preventDefault(),(P=r.current.parentElement)===null||P===void 0||P.dispatchEvent(new KeyboardEvent(v.nativeEvent.type,v.nativeEvent))}break;case"Tab":if(c==="tab"){let K=pe(r.current,{tabbable:!0});K.currentNode=document.activeElement,(v.shiftKey?K.previousNode():K.nextNode())&&v.stopPropagation()}}},h=v=>{if(m.current=a.key,v.target!==r.current){jt()||t.selectionManager.setFocusedKey(a.key);return}},T=Jl(a.props),L=O.hasAction?T:{},R=N(M,L,{role:"row",onKeyDownCapture:F,onFocus:h,"aria-label":a.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(a.key)?t.selectionManager.isSelected(a.key):void 0,"aria-disabled":t.selectionManager.isDisabled(a.key)||void 0,"aria-labelledby":p&&a.textValue?`${xl(t,a.key)} ${p}`:void 0,id:xl(t,a.key)});o&&(R["aria-rowindex"]=a.index+1);let H={role:"gridcell","aria-colindex":1};return{rowProps:{...N(R,g)},gridCellProps:H,descriptionProps:{id:p},...O}}function El(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function ng(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jr={exports:{}},si={};/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("@chakra-ui/react"),ce=require("@commercetools/nimbus-tokens"),u=require("react"),y=require("react/jsx-runtime"),_t=require("react-dom"),ie=require("@commercetools/nimbus-icons");function nv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const xe=nv(u),Tu=T.defineRecipe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:rv}=T.createRecipeContext({recipe:Tu}),ov=rv("figure");function iv(e,t){return e.split("")[0].toUpperCase()+t.split("")[0].toUpperCase()}const Au=e=>{const{ref:t,firstName:n,lastName:r,src:o,alt:i,...l}=e,[a,s]=u.useState(!1),[d,c]=u.useState(!1),f=`${n} ${r}`,p={"aria-label":`${f} avatar`,ref:t,...l},m=()=>{s(!0),c(!1)},b=()=>{s(!1),c(!0)},v=!o||!a||d;return y.jsxs(ov,{...p,children:[v?iv(n,r):null,o&&y.jsx(T.Image,{src:o,alt:i||f,onLoad:m,onError:b,display:a&&!d?"block":"none"})]})};Au.displayName="Avatar";const we=e=>{const{ref:t,...n}=e;return y.jsx(T.Box,{ref:t,...n})};we.displayName="Box";const Z=typeof document<"u"?u.useLayoutEffect:()=>{};function re(e){const t=u.useRef(null);return Z(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function lv(e){let[t,n]=u.useState(e),r=u.useRef(null),o=re(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}t===l.value?o():n(l.value)});Z(()=>{r.current&&o()});let i=re(l=>{r.current=l(t),o()});return[t,i]}const Pr={prefix:String(Math.round(Math.random()*1e10)),current:0},Fu=u.createContext(Pr),av=u.createContext(!1);let uv=!!(typeof window<"u"&&window.document&&window.document.createElement),$o=new WeakMap;function sv(e=!1){let t=u.useContext(Fu),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=$o.get(i);l==null?$o.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,$o.delete(i))}n.current=++t.current}return n.current}function dv(e){let t=u.useContext(Fu);t===Pr&&!uv&&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=sv(!!e),r=t===Pr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function cv(e){let t=u.useId(),[n]=u.useState(Et()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Pr.prefix}`;return e||`${r}-${t}`}const fv=typeof u.useId=="function"?cv:dv;function pv(){return!1}function mv(){return!0}function bv(e){return()=>{}}function Et(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(bv,pv,mv):u.useContext(av)}let hv=!!(typeof window<"u"&&window.document&&window.document.createElement),Xt=new Map,Pn;typeof FinalizationRegistry<"u"&&(Pn=new FinalizationRegistry(e=>{Xt.delete(e)}));function ue(e){let[t,n]=u.useState(e),r=u.useRef(null),o=fv(t),i=u.useRef(null);if(Pn&&Pn.register(i,o),hv){const l=Xt.get(o);l&&!l.includes(r)?l.push(r):Xt.set(o,[r])}return Z(()=>{let l=o;return()=>{Pn&&Pn.unregister(i),Xt.delete(l)}},[o]),u.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),o}function vv(e,t){if(e===t)return e;let n=Xt.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Xt.get(t);return r?(r.forEach(o=>o.current=e),e):t}function on(e=[]){let t=ue(),[n,r]=lv(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Z(o,[t,o,...e]),n}function Ue(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const X=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fe=e=>e&&"window"in e&&e.window===e?e:X(e).defaultView||window;function $v(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function gv(e){return $v(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let yv=!1;function Hr(){return yv}function de(e,t){if(!Hr())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:gv(n)?n=n.host:n=n.parentNode}return!1}const $e=(e=document)=>{var t;if(!Hr())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function ne(e){return Hr()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class xv{get currentNode(){return this._currentNode}set currentNode(t){if(!de(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=o,this._currentSetFor.add(a),r=o=l.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return de(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===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 o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const s=l.shadowRoot;if(s){const d=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function Cv(e,t,n,r){return Hr()?new xv(e,t,n,r):e.createTreeWalker(t,n,r)}function Ru(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ru(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ru(e))&&(r&&(r+=" "),r+=t);return r}function z(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],l=r[o];typeof i=="function"&&typeof l=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ue(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=Dv(i,l):o==="id"&&i&&l?t.id=vv(i,l):t[o]=l!==void 0?l:i}}return t}function Vn(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=Hl(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():Hl(e[i],null)})}}}function Hl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const Ev=new Set(["id"]),Pv=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wv=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Sv=/^(data-.*)$/;function te(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(Ev.has(l)||n&&Pv.has(l)||r&&wv.has(l)||o!=null&&o.has(l)||Sv.test(l))&&(i[l]=e[l]);return i}function We(e){if(kv())e.focus({preventScroll:!0});else{let t=Bv(e);e.focus(),Tv(t)}}let rr=null;function kv(){if(rr==null){rr=!1;try{document.createElement("div").focus({get preventScroll(){return rr=!0,!0}})}catch{}}return rr}function Bv(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Tv(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function _r(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Ci(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ct(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const ut=ct(function(){return Ci(/^Mac/i)}),Iu=ct(function(){return Ci(/^iPhone/i)}),Mu=ct(function(){return Ci(/^iPad/i)||ut()&&navigator.maxTouchPoints>1}),dn=ct(function(){return Iu()||Mu()}),br=ct(function(){return ut()||dn()}),Di=ct(function(){return _r(/AppleWebKit/i)&&!Lu()}),Lu=ct(function(){return _r(/Chrome/i)}),Ur=ct(function(){return _r(/Android/i)}),Av=ct(function(){return _r(/Firefox/i)}),Fv=u.createContext({isNative:!0,open:Mv,useHref:e=>e});function cn(){return u.useContext(Fv)}function Rv(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function zt(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:a,shiftKey:s}=t;Av()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ut()?i=!0:l=!0);let d=Di()&&ut()&&!Mu()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:a,shiftKey:s,bubbles:!0,cancelable:!0});zt.isOpening=n,We(e),e.dispatchEvent(d),zt.isOpening=!1}zt.isOpening=!1;function Iv(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Mv(e,t){Iv(e,n=>zt(n,t))}function Nu(e){let t=cn();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Ku(e){let t=cn();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let $t=new Map,Zo=new Set;function _l(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=$t.get(r.target);o||(o=new Set,$t.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=$t.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),$t.delete(r.target)),$t.size===0)){for(let i of Zo)i();Zo.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?_l():document.addEventListener("DOMContentLoaded",_l));function Lv(){for(const[e]of $t)"isConnected"in e&&!e.isConnected&&$t.delete(e)}function Vu(e){requestAnimationFrame(()=>{Lv(),$t.size===0?e():Zo.add(e)})}function On(){let e=u.useRef(new Map),t=u.useCallback((o,i,l,a)=>{let s=a!=null&&a.once?(...d)=>{e.current.delete(l),l(...d)}:l;e.current.set(l,{type:i,eventTarget:o,fn:s,options:a}),o.addEventListener(i,s,a)},[]),n=u.useCallback((o,i,l,a)=>{var s;let d=((s=e.current.get(l))===null||s===void 0?void 0:s.fn)||l;o.removeEventListener(i,d,a),e.current.delete(l)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ln(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=ue(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function me(e){const t=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(o=>{if(typeof e=="function"){const i=e,l=i(o);return()=>{typeof l=="function"?l():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}function Ou(e,t){const n=u.useRef(!0),r=u.useRef(null);u.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),u.useEffect(()=>{let o=r.current;n.current?n.current=!1:(!o||t.some((i,l)=>!Object.is(i,o[l])))&&e(),r.current=t},t)}function Ul(e,t){const n=u.useRef(!0),r=u.useRef(null);Z(()=>(n.current=!0,()=>{n.current=!1}),[]),Z(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function Nv(){return typeof window.ResizeObserver<"u"}function An(e){const{ref:t,box:n,onResize:r}=e;u.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(Nv()){const i=new window.ResizeObserver(l=>{l.length&&r()});return i.observe(o,{box:n}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function Ei(e,t){Z(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Fn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Je(e,t){let n=e;for(Fn(n,t)&&(n=n.parentElement);n&&!Fn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Kv(e,t){const n=[];for(;e&&e!==document.documentElement;)Fn(e,t)&&n.push(e),e=e.parentElement;return n}let Vv=0;const go=new Map;function Wr(e){let[t,n]=u.useState();return Z(()=>{if(!e)return;let r=go.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${Vv++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},go.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),go.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function it(e,t,n,r){let o=re(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,i,o])}function zu(e,t){let n=Wl(e,t,"left"),r=Wl(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,a=e.scrollTop,{borderTopWidth:s,borderLeftWidth:d,scrollPaddingTop:c,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:m}=getComputedStyle(e),b=l+parseInt(d,10),v=a+parseInt(s,10),$=b+e.clientWidth,g=v+e.clientHeight,D=parseInt(c,10)||0,w=parseInt(p,10)||0,B=parseInt(f,10)||0,k=parseInt(m,10)||0;n<=l+k?l=n-parseInt(d,10)-k:n+o>$-B&&(l+=n+o-$+B),r<=v+D?a=r-parseInt(s,10)-D:r+i>g-w&&(a+=r+i-g+w),e.scrollLeft=l,e.scrollTop=a}function Wl(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function rt(e,t){if(e&&document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=Kv(e);for(let d of s)zu(d,e)}else{var n;let{left:s,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(d-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Yo(e){return e.mozInputSource===0&&e.isTrusted?!0:Ur()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ov(e){return!Ur()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function zv(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function fn(e,t,n){let r=u.useRef(t),o=re(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let l=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[e,o])}function jv(e,t){let{collection:n,onLoadMore:r,scrollOffset:o=1}=e,i=u.useRef(null),l=re(a=>{for(let s of a)s.isIntersecting&&r&&r()});Z(()=>(t.current&&(i.current=new IntersectionObserver(l,{root:Je(t==null?void 0:t.current),rootMargin:`0px ${100*o}% ${100*o}% ${100*o}%`}),i.current.observe(t.current)),()=>{i.current&&i.current.disconnect()}),[n,l,t,o])}function Hv(e){const t=u.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}const ju="react-aria-clear-focus",Jo="react-aria-focus";function Rt(e){return ut()?e.metaKey:e.ctrlKey}function Hu(e,t=!0){let[n,r]=u.useState(!0),o=n&&t;return Z(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),Uu(e,o,u.useCallback(()=>r(!1),[])),o}function _u(e,t){let[n,r]=u.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let o=n==="exiting";return Uu(e,o,u.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function Uu(e,t,n){Z(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let o=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{o||_t.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[e,t,n])}const Pi=["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"])'],_v=Pi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Pi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Uv=Pi.join(':not([hidden]):not([tabindex="-1"]),');function wi(e){return e.matches(_v)}function Wv(e){return e.matches(Uv)}function Re(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),l=e!==void 0;u.useEffect(()=>{let d=i.current;d!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let a=l?e:r,s=u.useCallback((d,...c)=>{let f=(p,...m)=>{n&&(Object.is(a,p)||n(p,...m)),l||(a=p)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((m,...b)=>{let v=d(l?a:m,...b);return f(v,...c),l?m:v})):(l||o(d),f(d,...c))},[l,a,n]);return[a,s]}function Vt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function or(e,t){let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let l=Math.pow(10,i);n=Math.round(n*l)/l}return n}function tt(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=or(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(or(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(or((n-t)/r,r))*r),i=or(i,r),i}function Si(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Wu(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Gu(e){let t=u.useRef({isFocused:!1,observer:null});Z(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=re(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{if(t.current.isFocused=!1,o.disabled){let a=Si(l);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let wr=!1;function Gl(e){for(;e&&!wi(e);)e=e.parentElement;let t=Fe(e),n=t.document.activeElement;if(!n||n===e)return;wr=!0;let r=!1,o=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},i=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,We(n),s()))},l=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,We(n),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",l,!0);let s=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",l,!0),wr=!1,r=!1},d=requestAnimationFrame(s);return s}let Yt="default",Xo="",hr=new WeakMap;function ql(e){if(dn()){if(Yt==="default"){const t=X(e);Xo=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Yt="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";hr.set(e,e.style[t]),e.style[t]="none"}}function yo(e){if(dn()){if(Yt!=="disabled")return;Yt="restoring",setTimeout(()=>{Vu(()=>{if(Yt==="restoring"){const t=X(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Xo||""),Xo="",Yt="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&hr.has(e)){let t=hr.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),hr.delete(e)}}const Rn=u.createContext({register:()=>{}});Rn.displayName="PressResponderContext";function Gv(e,t){return t.get?t.get.call(e):t.value}function qu(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function qv(e,t){var n=qu(e,t,"get");return Gv(e,n)}function Zv(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zn(e,t,n){Zv(e,t),t.set(e,n)}function Yv(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Zl(e,t,n){var r=qu(e,t,"set");return Yv(e,r,n),n}function Jv(e){let t=u.useContext(Rn);if(t){let{register:n,...r}=t;e=z(r,e),n()}return Ei(t,e.ref),e}var ir=new WeakMap;class lr{continuePropagation(){Zl(this,ir,!1)}get shouldStopPropagation(){return qv(this,ir)}constructor(t,n,r,o){zn(this,ir,{writable:!0,value:void 0}),Zl(this,ir,!0);var i;let l=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:r.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let s,d=0,c,f=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,f=r.clientY),a&&(c!=null&&f!=null?(s=c-a.left,d=f-a.top):(s=a.width/2,d=a.height/2)),this.type=t,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=s,this.y=d}}const Yl=Symbol("linkClicked"),Jl="react-aria-pressable-style",Xl="data-react-aria-pressable";function Ge(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:l,isDisabled:a,isPressed:s,preventFocusOnPress:d,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:f,ref:p,...m}=Jv(e),[b,v]=u.useState(!1),$=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:g,removeAllGlobalListeners:D}=On(),w=re((h,S)=>{let M=$.current;if(a||M.didFirePressStart)return!1;let R=!0;if(M.isTriggeringEvent=!0,r){let H=new lr("pressstart",S,h);r(H),R=H.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,v(!0),R}),B=re((h,S,M=!0)=>{let R=$.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let H=!0;if(o){let x=new lr("pressend",S,h);o(x),H=x.shouldStopPropagation}if(n&&n(!1),v(!1),t&&M&&!a){let x=new lr("press",S,h);t(x),H&&(H=x.shouldStopPropagation)}return R.isTriggeringEvent=!1,H}),k=re((h,S)=>{let M=$.current;if(a)return!1;if(i){M.isTriggeringEvent=!0;let R=new lr("pressup",S,h);return i(R),M.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),P=re(h=>{let S=$.current;if(S.isPressed&&S.target){S.didFirePressStart&&S.pointerType!=null&&B(Tt(S.target,h),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,D(),f||yo(S.target);for(let M of S.disposables)M();S.disposables=[]}}),L=re(h=>{c&&P(h)}),I=re(h=>{l==null||l(h)}),V=re((h,S)=>{if(l){let M=new MouseEvent("click",h);Wu(M,S),l(Si(M))}}),A=u.useMemo(()=>{let h=$.current,S={onKeyDown(R){if(xo(R.nativeEvent,R.currentTarget)&&de(R.currentTarget,ne(R.nativeEvent))){var H;ta(ne(R.nativeEvent),R.key)&&R.preventDefault();let x=!0;if(!h.isPressed&&!R.repeat){h.target=R.currentTarget,h.isPressed=!0,h.pointerType="keyboard",x=w(R,"keyboard");let C=R.currentTarget,E=O=>{xo(O,C)&&!O.repeat&&de(C,ne(O))&&h.target&&k(Tt(h.target,O),"keyboard")};g(X(R.currentTarget),"keyup",Ue(E,M),!0)}x&&R.stopPropagation(),R.metaKey&&ut()&&((H=h.metaKeyEvents)===null||H===void 0||H.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(R){if(!(R&&!de(R.currentTarget,ne(R.nativeEvent)))&&R&&R.button===0&&!h.isTriggeringEvent&&!zt.isOpening){let H=!0;if(a&&R.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||Yo(R.nativeEvent))){let x=w(R,"virtual"),C=k(R,"virtual"),E=B(R,"virtual");I(R),H=x&&C&&E}else if(h.isPressed&&h.pointerType!=="keyboard"){let x=h.pointerType||R.nativeEvent.pointerType||"virtual",C=k(Tt(R.currentTarget,R),x),E=B(Tt(R.currentTarget,R),x,!0);H=C&&E,h.isOverTarget=!1,I(R),P(R)}h.ignoreEmulatedMouseEvents=!1,H&&R.stopPropagation()}}},M=R=>{var H;if(h.isPressed&&h.target&&xo(R,h.target)){var x;ta(ne(R),R.key)&&R.preventDefault();let E=ne(R),O=de(h.target,ne(R));B(Tt(h.target,R),"keyboard",O),O&&V(R,h.target),D(),R.key!=="Enter"&&ki(h.target)&&de(h.target,E)&&!R[Yl]&&(R[Yl]=!0,zt(h.target,R,!1)),h.isPressed=!1,(x=h.metaKeyEvents)===null||x===void 0||x.delete(R.key)}else if(R.key==="Meta"&&(!((H=h.metaKeyEvents)===null||H===void 0)&&H.size)){var C;let E=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let O of E.values())(C=h.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){S.onPointerDown=x=>{if(x.button!==0||!de(x.currentTarget,ne(x.nativeEvent)))return;if(Ov(x.nativeEvent)){h.pointerType="virtual";return}h.pointerType=x.pointerType;let C=!0;if(!h.isPressed){h.isPressed=!0,h.isOverTarget=!0,h.activePointerId=x.pointerId,h.target=x.currentTarget,f||ql(h.target),C=w(x,h.pointerType);let E=ne(x.nativeEvent);"releasePointerCapture"in E&&E.releasePointerCapture(x.pointerId),g(X(x.currentTarget),"pointerup",R,!1),g(X(x.currentTarget),"pointercancel",H,!1)}C&&x.stopPropagation()},S.onMouseDown=x=>{if(de(x.currentTarget,ne(x.nativeEvent))&&x.button===0){if(d){let C=Gl(x.target);C&&h.disposables.push(C)}x.stopPropagation()}},S.onPointerUp=x=>{!de(x.currentTarget,ne(x.nativeEvent))||h.pointerType==="virtual"||x.button===0&&!h.isPressed&&k(x,h.pointerType||x.pointerType)},S.onPointerEnter=x=>{x.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,w(Tt(h.target,x),h.pointerType))},S.onPointerLeave=x=>{x.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,B(Tt(h.target,x),h.pointerType,!1),L(x))};let R=x=>{if(x.pointerId===h.activePointerId&&h.isPressed&&x.button===0&&h.target){if(de(h.target,ne(x))&&h.pointerType!=null){let C=!1,E=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(C?P(x):(We(h.target),h.target.click()))},80);g(x.currentTarget,"click",()=>C=!0,!0),h.disposables.push(()=>clearTimeout(E))}else P(x);h.isOverTarget=!1}},H=x=>{P(x)};S.onDragStart=x=>{de(x.currentTarget,ne(x.nativeEvent))&&P(x)}}else if(process.env.NODE_ENV==="test"){S.onMouseDown=x=>{if(x.button!==0||!de(x.currentTarget,ne(x.nativeEvent)))return;if(h.ignoreEmulatedMouseEvents){x.stopPropagation();return}if(h.isPressed=!0,h.isOverTarget=!0,h.target=x.currentTarget,h.pointerType=Yo(x.nativeEvent)?"virtual":"mouse",_t.flushSync(()=>w(x,h.pointerType))&&x.stopPropagation(),d){let E=Gl(x.target);E&&h.disposables.push(E)}g(X(x.currentTarget),"mouseup",R,!1)},S.onMouseEnter=x=>{if(!de(x.currentTarget,ne(x.nativeEvent)))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,C=w(x,h.pointerType)),C&&x.stopPropagation()},S.onMouseLeave=x=>{if(!de(x.currentTarget,ne(x.nativeEvent)))return;let C=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,C=B(x,h.pointerType,!1),L(x)),C&&x.stopPropagation()},S.onMouseUp=x=>{de(x.currentTarget,ne(x.nativeEvent))&&!h.ignoreEmulatedMouseEvents&&x.button===0&&!h.isPressed&&k(x,h.pointerType||"mouse")};let R=x=>{if(x.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&h.target.contains(x.target)&&h.pointerType!=null||P(x),h.isOverTarget=!1}};S.onTouchStart=x=>{if(!de(x.currentTarget,ne(x.nativeEvent)))return;let C=Xv(x.nativeEvent);if(!C)return;h.activePointerId=C.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,h.target=x.currentTarget,h.pointerType="touch",f||ql(h.target),w(bt(h.target,x),h.pointerType)&&x.stopPropagation(),g(Fe(x.currentTarget),"scroll",H,!0)},S.onTouchMove=x=>{if(!de(x.currentTarget,ne(x.nativeEvent)))return;if(!h.isPressed){x.stopPropagation();return}let C=Ql(x.nativeEvent,h.activePointerId),E=!0;C&&ea(C,x.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,E=w(bt(h.target,x),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,E=B(bt(h.target,x),h.pointerType,!1),L(bt(h.target,x))),E&&x.stopPropagation()},S.onTouchEnd=x=>{if(!de(x.currentTarget,ne(x.nativeEvent)))return;if(!h.isPressed){x.stopPropagation();return}let C=Ql(x.nativeEvent,h.activePointerId),E=!0;C&&ea(C,x.currentTarget)&&h.pointerType!=null?(k(bt(h.target,x),h.pointerType),E=B(bt(h.target,x),h.pointerType),V(x.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(E=B(bt(h.target,x),h.pointerType,!1)),E&&x.stopPropagation(),h.isPressed=!1,h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&yo(h.target),D()},S.onTouchCancel=x=>{de(x.currentTarget,ne(x.nativeEvent))&&(x.stopPropagation(),h.isPressed&&P(bt(h.target,x)))};let H=x=>{h.isPressed&&de(ne(x),h.target)&&P({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};S.onDragStart=x=>{de(x.currentTarget,ne(x.nativeEvent))&&P(x)}}return S},[g,a,d,D,f,P,L,B,w,k,I,V]);return u.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const h=X(p.current);if(!h||!h.head||h.getElementById(Jl))return;const S=h.createElement("style");S.id=Jl,S.textContent=`
|
|
2
|
+
@layer {
|
|
3
|
+
[${Xl}] {
|
|
4
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
`.trim(),h.head.prepend(S)},[p]),u.useEffect(()=>{let h=$.current;return()=>{var S;f||yo((S=h.target)!==null&&S!==void 0?S:void 0);for(let M of h.disposables)M();h.disposables=[]}},[f]),{isPressed:s||b,pressProps:z(m,A,{[Xl]:!0})}}function ki(e){return e.tagName==="A"&&e.hasAttribute("href")}function xo(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Fe(o).HTMLInputElement&&!Zu(o,n)||o instanceof Fe(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&ki(o))&&n!=="Enter")}function Xv(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Ql(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function bt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Tt(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Qv(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function e3(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ea(e,t){let n=t.getBoundingClientRect(),r=Qv(e);return e3(n,r)}function t3(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!ki(e)}function ta(e,t){return e instanceof HTMLInputElement?!Zu(e,t):t3(e)}const n3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zu(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":n3.has(e.type)}let st=null,In=new Set,Bn=new Map,jt=!1,Qo=!1;const r3={Tab:!0,Escape:!0};function Gr(e,t){for(let n of In)n(e,t)}function o3(e){return!(e.metaKey||!ut()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Sr(e){jt=!0,o3(e)&&(st="keyboard",Gr("keyboard",e))}function Oe(e){st="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(jt=!0,Gr("pointer",e))}function Yu(e){Yo(e)&&(jt=!0,st="virtual")}function Ju(e){e.target===window||e.target===document||wr||!e.isTrusted||(!jt&&!Qo&&(st="virtual",Gr("virtual",e)),jt=!1,Qo=!1)}function Xu(){wr||(jt=!1,Qo=!0)}function kr(e){if(typeof window>"u"||typeof document>"u"||Bn.get(Fe(e)))return;const t=Fe(e),n=X(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){jt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Sr,!0),n.addEventListener("keyup",Sr,!0),n.addEventListener("click",Yu,!0),t.addEventListener("focus",Ju,!0),t.addEventListener("blur",Xu,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Oe,!0),n.addEventListener("pointermove",Oe,!0),n.addEventListener("pointerup",Oe,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Oe,!0),n.addEventListener("mousemove",Oe,!0),n.addEventListener("mouseup",Oe,!0)),t.addEventListener("beforeunload",()=>{Qu(e)},{once:!0}),Bn.set(t,{focus:r})}const Qu=(e,t)=>{const n=Fe(e),r=X(e);t&&r.removeEventListener("DOMContentLoaded",t),Bn.has(n)&&(n.HTMLElement.prototype.focus=Bn.get(n).focus,r.removeEventListener("keydown",Sr,!0),r.removeEventListener("keyup",Sr,!0),r.removeEventListener("click",Yu,!0),n.removeEventListener("focus",Ju,!0),n.removeEventListener("blur",Xu,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Oe,!0),r.removeEventListener("pointermove",Oe,!0),r.removeEventListener("pointerup",Oe,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Oe,!0),r.removeEventListener("mousemove",Oe,!0),r.removeEventListener("mouseup",Oe,!0)),Bn.delete(n))};function i3(e){const t=X(e);let n;return t.readyState!=="loading"?kr(e):(n=()=>{kr(e)},t.addEventListener("DOMContentLoaded",n)),()=>Qu(e,n)}typeof document<"u"&&i3();function an(){return st!=="pointer"}function un(){return st}function es(e){st=e,Gr(e,null)}function ts(){kr();let[e,t]=u.useState(st);return u.useEffect(()=>{let n=()=>{t(st)};return In.add(n),()=>{In.delete(n)}},[]),Et()?null:e}const l3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function a3(e,t,n){let r=X(n==null?void 0:n.target);const o=typeof window<"u"?Fe(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Fe(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Fe(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Fe(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!l3.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!r3[n.key])}function u3(e,t,n){kr(),u.useEffect(()=>{let r=(o,i)=>{a3(!!(n!=null&&n.isTextInput),o,i)&&e(an())};return In.add(r),()=>{In.delete(r)}},t)}function ke(e){const t=X(e),n=$e(t);if(un()==="virtual"){let r=n;Vu(()=>{$e(t)===r&&e.isConnected&&We(e)})}else We(e)}function Bi(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),l=Gu(i),a=u.useCallback(s=>{const d=X(s.target),c=d?$e(d):$e();s.target===s.currentTarget&&c===ne(s.nativeEvent)&&(n&&n(s),o&&o(!0),l(s))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function na(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&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."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function s3(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:na(e.onKeyDown),onKeyUp:na(e.onKeyUp)}}}let Br=u.createContext(null);function d3(e){let t=u.useContext(Br)||{};Ei(t,e);let{ref:n,...r}=t;return r}const c3=u.forwardRef(function(t,n){let{children:r,...o}=t,i=me(n),l={...o,ref:i};return u.createElement(Br.Provider,{value:l},r)});function ft(e,t){let{focusProps:n}=Bi(e),{keyboardProps:r}=s3(e),o=z(n,r),i=d3(t),l=e.isDisabled?{}:i,a=u.useRef(e.autoFocus);u.useEffect(()=>{a.current&&t.current&&ke(t.current),a.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:z({...o,tabIndex:s},l)}}const f3=u.forwardRef(({children:e,...t},n)=>{n=me(n);let{pressProps:r}=Ge({...t,ref:n}),{focusableProps:o}=ft(t,n),i=u.Children.only(e);u.useEffect(()=>{if(process.env.NODE_ENV==="production")return;let a=n.current;if(!a||!(a instanceof Fe(a).Element)){console.error("<Pressable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!wi(a)){console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(a.localName!=="button"&&a.localName!=="input"&&a.localName!=="select"&&a.localName!=="textarea"&&a.localName!=="a"&&a.localName!=="area"&&a.localName!=="summary"){let s=a.getAttribute("role");s?s!=="application"&&s!=="button"&&s!=="checkbox"&&s!=="combobox"&&s!=="gridcell"&&s!=="link"&&s!=="menuitem"&&s!=="menuitemcheckbox"&&s!=="menuitemradio"&&s!=="option"&&s!=="radio"&&s!=="searchbox"&&s!=="separator"&&s!=="slider"&&s!=="spinbutton"&&s!=="switch"&&s!=="tab"&&s!=="textbox"&&s!=="treeitem"&&console.warn(`<Pressable> child must have an interactive ARIA role. Got "${s}".`):console.warn("<Pressable> child must have an interactive ARIA role.")}},[n,t.isDisabled]);let l=parseInt(u.version,10)<19?i.ref:i.props.ref;return u.cloneElement(i,{...z(r,o,i.props),ref:Vn(l,n)})}),p3=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(Rn);n=me(n||(o==null?void 0:o.ref));let i=z(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return Ei(o,n),u.useEffect(()=>{r.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(Rn.Provider,{value:i},e)});function Ti({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(Rn.Provider,{value:t},e)}function Pt(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=On(),s=u.useCallback(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(f),o&&o(!1))},[n,o,i,a]),d=Gu(s),c=u.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=X(f.target),m=$e(p);if(!i.current.isFocusWithin&&m===ne(f.nativeEvent)){r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,d(f);let b=f.currentTarget;l(p,"focus",v=>{if(i.current.isFocusWithin&&!de(b,v.target)){let $=new p.defaultView.FocusEvent("blur",{relatedTarget:v.target});Wu($,b);let g=Si($);s(g)}},{capture:!0})}},[r,o,d,l,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}let Tr=!1,Co=0;function ei(){Tr=!0,setTimeout(()=>{Tr=!1},50)}function ra(e){e.pointerType==="touch"&&ei()}function m3(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ra):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",ei),Co++,()=>{Co--,!(Co>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ra):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",ei))}}function je(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=u.useState(!1),a=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(m3,[]);let{addGlobalListener:s,removeAllGlobalListeners:d}=On(),{hoverProps:c,triggerHoverEnd:f}=u.useMemo(()=>{let p=(v,$)=>{if(a.pointerType=$,o||$==="touch"||a.isHovered||!v.currentTarget.contains(v.target))return;a.isHovered=!0;let g=v.currentTarget;a.target=g,s(X(v.target),"pointerover",D=>{a.isHovered&&a.target&&!de(a.target,D.target)&&m(D,D.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:g,pointerType:$}),n&&n(!0),l(!0)},m=(v,$)=>{let g=a.target;a.pointerType="",a.target=null,!($==="touch"||!a.isHovered||!g)&&(a.isHovered=!1,d(),r&&r({type:"hoverend",target:g,pointerType:$}),n&&n(!1),l(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=v=>{Tr&&v.pointerType==="mouse"||p(v,v.pointerType)},b.onPointerLeave=v=>{!o&&v.currentTarget.contains(v.target)&&m(v,v.pointerType)}):process.env.NODE_ENV==="test"&&(b.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=v=>{!a.ignoreEmulatedMouseEvents&&!Tr&&p(v,"mouse"),a.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=v=>{!o&&v.currentTarget.contains(v.target)&&m(v,"mouse")}),{hoverProps:b,triggerHoverEnd:m}},[t,n,r,o,a,s,d]);return u.useEffect(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:c,isHovered:i}}function b3(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=re(s=>{n&&ar(s,t)&&(o&&o(s),i.current.isPointerDown=!0)}),a=re(s=>{n&&n(s)});u.useEffect(()=>{let s=i.current;if(r)return;const d=t.current,c=X(d);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&ar(p,t)&&a(p),s.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=m=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&ar(m,t)&&a(m),s.isPointerDown=!1},p=m=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&ar(m,t)&&a(m),s.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,l,a])}function ar(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function h3(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);it(t,"wheel",r?void 0:o)}const v3=500;function ns(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=v3,accessibilityDescription:l}=e;const a=u.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:d}=On(),{pressProps:c}=Ge({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),X(p.target).activeElement!==p.target&&We(p.target),o&&o({...p,type:"longpress"}),a.current=void 0},i),p.pointerType==="touch")){let m=b=>{b.preventDefault()};s(p.target,"contextmenu",m,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{d(p.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Wr(o&&!t?l:void 0);return{longPressProps:z(c,f)}}function $3(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:a,...s}=e,d={};n!=="a"&&(d={role:"link",tabIndex:a?void 0:0});let{focusableProps:c}=ft(e,t),{pressProps:f,isPressed:p}=Ge({onPress:r,onPressStart:o,onPressEnd:i,onClick:l,isDisabled:a,ref:t}),m=te(s,{labelable:!0}),b=z(c,f),v=cn(),$=Ku(e);return{isPressed:p,linkProps:z(m,$,{...b,...d,"aria-disabled":a||void 0,"aria-current":e["aria-current"],onClick:g=>{var D;(D=f.onClick)===null||D===void 0||D.call(f,g),!v.isNative&&g.currentTarget instanceof HTMLAnchorElement&&g.currentTarget.href&&!g.isDefaultPrevented()&&Rv(g.currentTarget,g)&&e.href&&(g.preventDefault(),v.open(g.currentTarget,g,e.href,e.routerOptions))}})}}const g3=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),y3=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function x3(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return g3.has(n.script)}let t=e.split("-")[0];return y3.has(t)}const C3=Symbol.for("react-aria.i18n.locale");function rs(){let e=typeof window<"u"&&window[C3]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:x3(e)?"rtl":"ltr"}}let ti=rs(),wn=new Set;function oa(){ti=rs();for(let e of wn)e(ti)}function D3(){let e=Et(),[t,n]=u.useState(ti);return u.useEffect(()=>(wn.size===0&&window.addEventListener("languagechange",oa),wn.add(n),()=>{wn.delete(n),wn.size===0&&window.removeEventListener("languagechange",oa)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const E3=u.createContext(null);function Pe(){let e=D3();return u.useContext(E3)||e}const P3=Symbol.for("react-aria.i18n.locale"),w3=Symbol.for("react-aria.i18n.strings");let qt;class Ut{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=S3(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[P3];if(qt===void 0){let o=window[w3];if(!o)return null;qt={};for(let i in o)qt[i]=new Ut({[n]:o[i]},n)}let r=qt==null?void 0:qt[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function S3(e,t,n="en-US"){if(t[e])return t[e];let r=k3(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function k3(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ia=new Map,la=new Map;class os{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=ia.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),ia.set(i,l));let a=l.select(t);return o=n[a]||n.other,typeof o=="function"?o():o}number(t){let n=la.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),la.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const aa=new WeakMap;function B3(e){let t=aa.get(e);return t||(t=new Ut(e),aa.set(e,t)),t}function is(e,t){return t&&Ut.getGlobalDictionaryForPackage(t)||B3(e)}function qe(e,t){let{locale:n}=Pe(),r=is(e,t);return u.useMemo(()=>new os(n,r),[n,r])}function Qt(e,t){return e-t*Math.floor(e/t)}const ls=1721426;function Lt(e,t,n,r){t=jn(e,t);let o=t-1,i=-2;return n<=2?i=0:gt(t)&&(i=-1),ls-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function gt(e){return e%4===0&&(e%100!==0||e%400===0)}function jn(e,t){return e==="BC"?1-t:t}function qr(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const T3={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Le{fromJulianDay(t){let n=t,r=n-ls,o=Math.floor(r/146097),i=Qt(r,146097),l=Math.floor(i/36524),a=Qt(i,36524),s=Math.floor(a/1461),d=Qt(a,1461),c=Math.floor(d/365),f=o*400+l*100+s*4+c+(l!==4&&c!==4?1:0),[p,m]=qr(f),b=n-Lt(p,m,1,1),v=2;n<Lt(p,m,3,1)?v=0:gt(m)&&(v=1);let $=Math.floor(((b+v)*12+373)/367),g=n-Lt(p,m,$,1)+1;return new ge(p,m,$,g)}toJulianDay(t){return Lt(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return T3[gt(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return gt(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function as(e,t){var n,r,o,i;return(i=(o=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&o!==void 0?o:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&i!==void 0?i:e.identifier===t.identifier}function us(e){return lt(Date.now(),e)}function A3(e){return ms(us(e))}function ss(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ds(e,t){return ua(e)-ua(t)}function ua(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Do=null;function Zr(){return Do==null&&(Do=new Intl.DateTimeFormat().resolvedOptions().timeZone),Do}function F3(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function R3(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function sn(e){e=Be(e,new Le);let t=jn(e.era,e.year);return cs(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function cs(e,t,n,r,o,i,l){let a=new Date;return a.setUTCHours(r,o,i,l),a.setUTCFullYear(e,t-1,n),a.getTime()}function ni(e,t){if(t==="UTC")return 0;if(e>0&&t===Zr())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:l,second:a}=fs(e,t);return cs(n,r,o,i,l,a,0)-Math.floor(e/1e3)*1e3}const sa=new Map;function fs(e,t){let n=sa.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),sa.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const da=864e5;function I3(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>M3(e,t,i))}function M3(e,t,n){let r=fs(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function ot(e,t,n="compatible"){let r=Dt(e);if(t==="UTC")return sn(r);if(t===Zr()&&n==="compatible"){r=Be(r,new Le);let s=new Date,d=jn(r.era,r.year);return s.setFullYear(d,r.month-1,r.day),s.setHours(r.hour,r.minute,r.second,r.millisecond),s.getTime()}let o=sn(r),i=ni(o-da,t),l=ni(o+da,t),a=I3(r,t,o-i,o-l);if(a.length===1)return a[0];if(a.length>1)switch(n){case"compatible":case"earlier":return a[0];case"later":return a[a.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-l);case"compatible":case"later":return Math.max(o-i,o-l);case"reject":throw new RangeError("No such absolute time found")}}function ps(e,t,n="compatible"){return new Date(ot(e,t,n))}function lt(e,t){let n=ni(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),a=r.getUTCHours(),s=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new Ln(o<1?"BC":"AD",o<1?-o+1:o,i,l,t,n,a,s,d,c)}function ms(e){return new ge(e.calendar,e.era,e.year,e.month,e.day)}function Dt(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Ar(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function ca(e){return new Jr(e.hour,e.minute,e.second,e.millisecond)}function Be(e,t){if(as(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ht(r),r}function bs(e,t,n){if(e instanceof Ln)return e.timeZone===t?e:N3(e,t);let r=ot(e,t,n);return lt(r,t)}function L3(e){let t=sn(e)-e.offset;return new Date(t)}function N3(e,t){let n=sn(e)-e.offset;return Be(lt(n,t),e.calendar)}const vn=36e5;function Yr(e,t){let n=e.copy(),r="hour"in n?gs(n,t):0;ri(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,oi(n),hs(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,K3(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,l;let s=(i=(l=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(l,n);n.year=o,n.month=s?1:n.calendar.getMonthsInYear(n),n.day=s?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ri(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function oi(e){for(;e.month<1;)ri(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ri(e,1)}function K3(e){for(;e.day<1;)e.month--,oi(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,oi(e)}function hs(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ht(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),hs(e)}function Ai(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function vs(e,t){return Yr(e,Ai(t))}function Fi(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ht(n),n}function Mn(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),$s(n),n}function V3(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ur(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ur(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ur(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ur(e.hour,24),t}function $s(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ur(e,t){let n=e%t;return n<0&&(n+=t),n}function gs(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,V3(e)}function ys(e,t){let n=e.copy();return gs(n,t),n}function O3(e,t){return ys(e,Ai(t))}function Ri(e,t,n,r){let o=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),s=a.indexOf(e.era);if(s<0)throw new Error("Invalid era: "+e.era);s=at(s,n,0,a.length-1,r==null?void 0:r.round),o.era=a[s],Ht(o);break}case"year":var i,l;!((i=(l=o.calendar).isInverseEra)===null||i===void 0)&&i.call(l,o)&&(n=-n),o.year=at(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=at(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=at(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Ht(o),o}function Ii(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,l=0,a=23;if((r==null?void 0:r.hourCycle)===12){let s=i>=12;l=s?12:0,a=s?23:11}o.hour=at(i,n,l,a,r==null?void 0:r.round);break}case"minute":o.minute=at(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=at(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=at(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function at(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function xs(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=Yr(Dt(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=ot(o,e.timeZone)}else n=sn(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=lt(n,e.timeZone);return Be(r,e.calendar)}function z3(e,t){return xs(e,Ai(t))}function j3(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let b=e.hour>=12;o=b?12:0,i=b?23:11}let l=Dt(e),a=Be(Mn(l,{hour:o}),new Le),s=[ot(a,e.timeZone,"earlier"),ot(a,e.timeZone,"later")].filter(b=>lt(b,e.timeZone).day===a.day)[0],d=Be(Mn(l,{hour:i}),new Le),c=[ot(d,e.timeZone,"earlier"),ot(d,e.timeZone,"later")].filter(b=>lt(b,e.timeZone).day===d.day).pop(),f=sn(e)-e.offset,p=Math.floor(f/vn),m=f%vn;return f=at(p,n,Math.floor(s/vn),Math.floor(c/vn),r==null?void 0:r.round)*vn+m,Be(lt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Ii(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Ri(Dt(e),t,n,r),i=ot(o,e.timeZone);return Be(lt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function H3(e,t,n){let r=Dt(e),o=Mn(Fi(r,t),t);if(o.compare(r)===0)return e;let i=ot(o,e.timeZone,n);return Be(lt(i,e.timeZone),e.calendar)}function Cs(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Ds(e){let t=Be(e,new Le),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Es(e){return`${Ds(e)}T${Cs(e)}`}function _3(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function U3(e){return`${Es(e)}${_3(e.offset)}[${e.timeZone}]`}function Mi(e){let t=typeof e[0]=="object"?e.shift():new Le,n;if(typeof e[0]=="string")n=e.shift();else{let l=t.getEras();n=l[l.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var W3=new WeakMap;class ge{copy(){return this.era?new ge(this.calendar,this.era,this.year,this.month,this.day):new ge(this.calendar,this.year,this.month,this.day)}add(t){return Yr(this,t)}subtract(t){return vs(this,t)}set(t){return Fi(this,t)}cycle(t,n,r){return Ri(this,t,n,r)}toDate(t){return ps(this,t)}toString(){return Ds(this)}compare(t){return ss(this,t)}constructor(...t){zn(this,W3,{writable:!0,value:void 0});let[n,r,o,i,l]=Mi(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=l,Ht(this)}}var G3=new WeakMap;class Jr{copy(){return new Jr(this.hour,this.minute,this.second,this.millisecond)}add(t){return ys(this,t)}subtract(t){return O3(this,t)}set(t){return Mn(this,t)}cycle(t,n,r){return Ii(this,t,n,r)}toString(){return Cs(this)}compare(t){return ds(this,t)}constructor(t=0,n=0,r=0,o=0){zn(this,G3,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,$s(this)}}var q3=new WeakMap;class Ar{copy(){return this.era?new Ar(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ar(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Yr(this,t)}subtract(t){return vs(this,t)}set(t){return Fi(Mn(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Ri(this,t,n,r);default:return Ii(this,t,n,r)}}toDate(t,n){return ps(this,t,n)}toString(){return Es(this)}compare(t){let n=ss(this,t);return n===0?ds(this,Dt(t)):n}constructor(...t){zn(this,q3,{writable:!0,value:void 0});let[n,r,o,i,l]=Mi(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ht(this)}}var Z3=new WeakMap;class Ln{copy(){return this.era?new Ln(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ln(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return xs(this,t)}subtract(t){return z3(this,t)}set(t,n){return H3(this,t,n)}cycle(t,n,r){return j3(this,t,n,r)}toDate(){return L3(this)}toString(){return U3(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-bs(t,this.timeZone).toDate().getTime()}constructor(...t){zn(this,Z3,{writable:!0,value:void 0});let[n,r,o,i,l]=Mi(t),a=t.shift(),s=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=l,this.timeZone=a,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ht(this)}}const en=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Y3=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],vr=[1867,1911,1925,1988,2018],ht=["meiji","taisho","showa","heisei","reiwa"];function fa(e){const t=en.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?en.length-1:t===0?0:t-1}function Eo(e){let t=vr[ht.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ge(e.year+t,e.month,e.day)}class J3 extends Le{fromJulianDay(t){let n=super.fromJulianDay(t),r=fa(n);return new ge(this,ht[r],n.year-vr[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Eo(t))}balanceDate(t){let n=Eo(t),r=fa(n);ht[r]!==t.era&&(t.era=ht[r],t.year=n.year-vr[r]),this.constrainDate(t)}constrainDate(t){let n=ht.indexOf(t.era),r=Y3[n];if(r!=null){let[o,i,l]=r,a=o-vr[n];t.year=Math.max(1,Math.min(a,t.year)),t.year===a&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(l,t.day)))}if(t.year===1&&n>=0){let[,o,i]=en[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return ht}getYearsInEra(t){let n=ht.indexOf(t.era),r=en[n],o=en[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(Eo(t))}getMinimumMonthInYear(t){let n=pa(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=pa(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function pa(e){if(e.year===1){let t=ht.indexOf(e.era);return en[t]}}const Ps=-543;class X3 extends Le{fromJulianDay(t){let n=super.fromJulianDay(t),r=jn(n.era,n.year);return new ge(this,r-Ps,n.month,n.day)}toJulianDay(t){return super.toJulianDay(ma(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(ma(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function ma(e){let[t,n]=qr(e.year+Ps);return new ge(t,n,e.month,e.day)}const Fr=1911;function ws(e){return e.era==="minguo"?e.year+Fr:1-e.year+Fr}function ba(e){let t=e-Fr;return t>0?["minguo",t]:["before_minguo",1-t]}class Q3 extends Le{fromJulianDay(t){let n=super.fromJulianDay(t),r=jn(n.era,n.year),[o,i]=ba(r);return new ge(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(ha(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=ba(ws(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(ha(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Fr}constructor(...t){super(...t),this.identifier="roc"}}function ha(e){let[t,n]=qr(ws(e));return new ge(t,n,e.month,e.day)}const va=1948320,$a=[0,31,62,93,124,155,186,216,246,276,306,336];class e${fromJulianDay(t){let n=t-va,r=1+Math.floor((33*n+3)/12053),o=365*(r-1)+Math.floor((8*r+21)/33),i=n-o,l=i<216?Math.floor(i/31):Math.floor((i-6)/30),a=i-$a[l]+1;return new ge(this,r,l+1,a)}toJulianDay(t){let n=va-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=$a[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Qt(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Po=78,ga=80;class t$ extends Le{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Po,o=t-Lt(n.era,n.year,1,1),i;o<ga?(r--,i=gt(n.year-1)?31:30,o+=i+155+90+10):(i=gt(n.year)?31:30,o-=ga);let l,a;if(o<i)l=1,a=o+1;else{let s=o-i;s<155?(l=Math.floor(s/31)+2,a=s%31+1):(s-=155,l=Math.floor(s/30)+7,a=s%30+1)}return new ge(this,r,l,a)}toJulianDay(t){let n=t.year+Po,[r,o]=qr(n),i,l;return gt(o)?(i=31,l=Lt(r,o,3,21)):(i=30,l=Lt(r,o,3,22)),t.month===1?l+t.day-1:(l+=i+Math.min(t.month-2,5)*31,t.month>=8&&(l+=(t.month-7)*30),l+=t.day-1,l)}getDaysInMonth(t){return t.month===1&>(t.year+Po)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Rr=1948440,ya=1948439,Ve=1300,Zt=1600,n$=460322;function Ir(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Ss(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Ir(t,r,1,1)))/29.5)+1),i=n-Ir(t,r,o,1)+1;return new ge(e,r,o,i)}function xa(e){return(14+11*e)%30<11}class Li{fromJulianDay(t){return Ss(this,Rr,t)}toJulianDay(t){return Ir(Rr,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&xa(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return xa(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class r$ extends Li{fromJulianDay(t){return Ss(this,ya,t)}toJulianDay(t){return Ir(ya,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const o$="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let ii,tn;function $r(e){return n$+tn[e-Ve]}function Sn(e,t){let n=e-Ve,r=1<<11-(t-1);return(ii[n]&r)===0?29:30}function Ca(e,t){let n=$r(e);for(let r=1;r<t;r++)n+=Sn(e,r);return n}function Da(e){return tn[e+1-Ve]-tn[e-Ve]}class i$ extends Li{fromJulianDay(t){let n=t-Rr,r=$r(Ve),o=$r(Zt);if(n<r||n>o)return super.fromJulianDay(t);{let i=Ve-1,l=1,a=1;for(;a>0;){i++,a=n-$r(i)+1;let s=Da(i);if(a===s){l=12;break}else if(a<s){let d=Sn(i,l);for(l=1;a>d;)a-=d,l++,d=Sn(i,l);break}}return new ge(this,i,l,n-Ca(i,l)+1)}}toJulianDay(t){return t.year<Ve||t.year>Zt?super.toJulianDay(t):Rr+Ca(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ve||t.year>Zt?super.getDaysInMonth(t):Sn(t.year,t.month)}getDaysInYear(t){return t.year<Ve||t.year>Zt?super.getDaysInYear(t):Da(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",ii||(ii=new Uint16Array(Uint8Array.from(atob(o$),t=>t.charCodeAt(0)).buffer)),!tn){tn=new Uint32Array(Zt-Ve+1);let t=0;for(let n=Ve;n<=Zt;n++){tn[n-Ve]=t;for(let r=1;r<=12;r++)t+=Sn(n,r)}}}}const Ea=347997,ks=1080,Bs=24*ks,l$=29,a$=12*ks+793,u$=l$*Bs+a$;function It(e){return Qt(e*7+1,19)<7}function gr(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Qt(3*(r+1),7)<3&&(r+=1),r}function s$(e){let t=gr(e-1),n=gr(e);return gr(e+1)-n===356?2:n-t===382?1:0}function Tn(e){return gr(e)+s$(e)}function Ts(e){return Tn(e+1)-Tn(e)}function d$(e){let t=Ts(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function sr(e,t){if(t>=6&&!It(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=d$(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?It(e)?30:0:30}class c${fromJulianDay(t){let n=t-Ea,r=n*Bs/u$,o=Math.floor((19*r+234)/235)+1,i=Tn(o),l=Math.floor(n-i);for(;l<1;)o--,i=Tn(o),l=Math.floor(n-i);let a=1,s=0;for(;s<l;)s+=sr(o,a),a++;a--,s-=sr(o,a);let d=l-s;return new ge(this,o,a,d)}toJulianDay(t){let n=Tn(t.year);for(let r=1;r<t.month;r++)n+=sr(t.year,r);return n+t.day+Ea}getDaysInMonth(t){return sr(t.year,t.month)}getMonthsInYear(t){return It(t.year)?13:12}getDaysInYear(t){return Ts(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(It(n.year)&&!It(t.year)&&n.month>6?t.month--:!It(n.year)&&It(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const li=1723856,Pa=1824665,ai=5500;function Mr(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ni(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Mr(e,n,1,1))/30),o=t+1-Mr(e,n,r,1);return[n,r,o]}function As(e){return Math.floor(e%4/3)}function Fs(e,t){return t%13!==0?30:As(e)+5}class Ki{fromJulianDay(t){let[n,r,o]=Ni(li,t),i="AM";return n<=0&&(i="AA",n+=ai),new ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=ai),Mr(li,n,t.month,t.day)}getDaysInMonth(t){return Fs(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+As(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class f$ extends Ki{fromJulianDay(t){let[n,r,o]=Ni(li,t);return n+=ai,new ge(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class p$ extends Ki{fromJulianDay(t){let[n,r,o]=Ni(Pa,t),i="CE";return n<=0&&(i="BCE",n=1-n),new ge(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Mr(Pa,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Fs(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function m$(e){switch(e){case"buddhist":return new X3;case"ethiopic":return new Ki;case"ethioaa":return new f$;case"coptic":return new p$;case"hebrew":return new c$;case"indian":return new t$;case"islamic-civil":return new Li;case"islamic-tbla":return new r$;case"islamic-umalqura":return new i$;case"japanese":return new J3;case"persian":return new e$;case"roc":return new Q3;case"gregory":default:return new Le}}let wo=new Map;class Jt{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return v$()&&(this.resolvedHourCycle||(this.resolvedHourCycle=$$(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=Rs(t,n),this.options=n}}const b$={true:{ja:"h11"},false:{}};function Rs(e,t={}){if(typeof t.hour12=="boolean"&&h$()){t={...t};let o=b$[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(wo.has(n))return wo.get(n);let r=new Intl.DateTimeFormat(e,t);return wo.set(n,r),r}let So=null;function h$(){return So==null&&(So=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),So}let ko=null;function v$(){return ko==null&&(ko=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ko}function $$(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=Rs(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}function dr(e){e=zv(e??{},g$);let{locale:t}=Pe();return u.useMemo(()=>new Jt(t,e),[t,e])}function g$(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}let Bo=new Map,ui=!1;try{ui=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Lr=!1;try{Lr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Is={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Nr{format(t){let n="";if(!ui&&this.options.signDisplay!=null?n=x$(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Lr){var r;let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return n;let a=(r=Is[o])===null||r===void 0?void 0:r[i];n+=a[l]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ui&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Lr&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=y$(t,n),this.options=n}}function y$(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Lr){var r;let{unit:l,unitDisplay:a="short"}=t;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Is[l])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((l,a)=>l[0]<a[0]?-1:1).join():"");if(Bo.has(o))return Bo.get(o);let i=new Intl.NumberFormat(e,t);return Bo.set(o,i),i}function x$(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return e.format(n)}}const C$=new RegExp("^.*\\(.*\\).*$"),D$=["latn","arab","hanidec","deva","beng"];class Vi{parse(t){return To(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return To(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return To(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const wa=new Map;function To(e,t,n){let r=Sa(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of D$)if(o!==r.options.numberingSystem){let i=Sa(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Sa(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=wa.get(n);return r||(r=new E$(e,t),wa.set(n,r)),r}class E${parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=$n(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let l=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,l>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let l={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new Vi(this.locale,l).parse(new Nr(this.locale,l).format(r))}return this.options.currencySign==="accounting"&&C$.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=$n(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=$n(t," ",this.symbols.group),t=$n(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=$n(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=w$(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const ka=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),P$=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function w$(e,t,n,r){var o,i,l,a;let s=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=s.formatToParts(-10000.111),c=s.formatToParts(10000.111),f=P$.map(A=>s.formatToParts(A));var p;let m=(p=(o=d.find(A=>A.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",b=(i=c.find(A=>A.type==="plusSign"))===null||i===void 0?void 0:i.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let $=(l=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(A=>A.type==="decimal"))===null||l===void 0?void 0:l.value,g=(a=d.find(A=>A.type==="group"))===null||a===void 0?void 0:a.value,D=d.filter(A=>!ka.has(A.type)).map(A=>Ba(A.value)),w=f.flatMap(A=>A.filter(h=>!ka.has(h.type)).map(h=>Ba(h.value))),B=[...new Set([...D,...w])].sort((A,h)=>h.length-A.length),k=B.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${B.join("|")}|[\\p{White_Space}]`,"gu"),P=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),L=new Map(P.map((A,h)=>[A,h])),I=new RegExp(`[${P.join("")}]`,"g");return{minusSign:m,plusSign:b,decimal:$,group:g,literals:k,numeral:I,index:A=>String(L.get(A))}}function $n(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ba(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function si(e={}){let{locale:t}=Pe();return u.useMemo(()=>new Nr(t,e),[t,e])}let Ao=new Map;function Xr(e){let{locale:t}=Pe(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Ao.has(n))return Ao.get(n);let r=new Intl.Collator(t,e);return Ao.set(n,r),r}function Oi(e){let t=Xr({usage:"search",...e}),n=u.useCallback((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(0,l.length),l)===0),[t]),r=u.useCallback((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(-l.length),l)===0),[t]),o=u.useCallback((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let a=0,s=l.length;for(;a+s<=i.length;a++){let d=i.slice(a,a+s);if(t.compare(l,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}function Qr(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:l,onPressUp:a,onPressChange:s,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:p,target:m,rel:b,type:v="button"}=e,$;n==="button"?$={type:v,disabled:r}:$={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?m:void 0,type:n==="input"?v:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:g,isPressed:D}=Ge({onPressStart:i,onPressEnd:l,onPressChange:s,onPress:o,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:w}=ft(e,t);c&&(w.tabIndex=r?-1:w.tabIndex);let B=z(w,g,te(e,{labelable:!0}));return{isPressed:D,buttonProps:z($,B,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function Ms(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=Qr({...e,onPress:Ue(t.toggle,e.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:z(i,{"aria-pressed":r})}}function S$(e){const t=Fe(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:a}=i(e);o=l!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function k$(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ls(e,t){return e.nodeName!=="#comment"&&S$(e)&&k$(e,t)&&(!e.parentElement||Ls(e.parentElement,e))}const Ta=u.createContext(null),di="react-aria-focus-scope-restore";let ae=null;function Ns(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),l=u.useRef(null),a=u.useRef([]),{parentNode:s}=u.useContext(Ta)||{},d=u.useMemo(()=>new fi({scopeRef:a}),[a]);Z(()=>{let p=s||ve.root;if(ve.getTreeNode(p.scopeRef)&&ae&&!Kr(ae,p.scopeRef)){let m=ve.getTreeNode(ae);m&&(p=m)}p.addChild(d),ve.addNode(d)},[d,s]),Z(()=>{let p=ve.getTreeNode(a);p&&(p.contain=!!n)},[n]),Z(()=>{var p;let m=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[],v=$=>$.stopPropagation();for(;m&&m!==l.current;)b.push(m),m.addEventListener(di,v),m=m.nextSibling;return a.current=b,()=>{for(let $ of b)$.removeEventListener(di,v)}},[t]),R$(a,r,n),T$(a,n),I$(a,r,n),F$(a,o),u.useEffect(()=>{const p=$e(X(a.current?a.current[0]:void 0));let m=null;if(ze(p,a.current)){for(let b of ve.traverse())b.scopeRef&&ze(p,b.scopeRef.current)&&(m=b);m===ve.getTreeNode(a)&&(ae=m.scopeRef)}},[a]),Z(()=>()=>{var p,m,b;let v=(b=(m=ve.getTreeNode(a))===null||m===void 0||(p=m.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(a===ae||Kr(a,ae))&&(!v||ve.getTreeNode(v))&&(ae=v),ve.removeTreeNode(a)},[a]);let c=u.useMemo(()=>B$(a),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(Ta.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function B$(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t;var a;let s=r||$e(X((a=n[0])!==null&&a!==void 0?a:void 0)),d=n[0].previousElementSibling,c=Nt(n),f=Ce(c,{tabbable:o,accept:l},n);f.currentNode=ze(s,n)?s:d;let p=f.nextNode();return!p&&i&&(f.currentNode=d,p=f.nextNode()),p&&Ae(p,!0),p},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t;var a;let s=r||$e(X((a=n[0])!==null&&a!==void 0?a:void 0)),d=n[n.length-1].nextElementSibling,c=Nt(n),f=Ce(c,{tabbable:o,accept:l},n);f.currentNode=ze(s,n)?s:d;let p=f.previousNode();return!p&&i&&(f.currentNode=d,p=f.previousNode()),p&&Ae(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Nt(n),l=Ce(i,{tabbable:r,accept:o},n);l.currentNode=n[0].previousElementSibling;let a=l.nextNode();return a&&Ae(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Nt(n),l=Ce(i,{tabbable:r,accept:o},n);l.currentNode=n[n.length-1].nextElementSibling;let a=l.previousNode();return a&&Ae(a,!0),a}}}function Nt(e){return e[0].parentElement}function kn(e){let t=ve.getTreeNode(ae);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function T$(e,t){let n=u.useRef(void 0),r=u.useRef(void 0);Z(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=X(o?o[0]:void 0);let l=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!kn(e)||d.isComposing)return;let c=$e(i),f=e.current;if(!f||!ze(c,f))return;let p=Nt(f),m=Ce(p,{tabbable:!0},f);if(!c)return;m.currentNode=c;let b=d.shiftKey?m.previousNode():m.nextNode();b||(m.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?m.previousNode():m.nextNode()),d.preventDefault(),b&&Ae(b,!0)},a=d=>{(!ae||Kr(ae,e))&&ze(ne(d),e.current)?(ae=e,n.current=ne(d)):kn(e)&&!yt(ne(d),e)?n.current?n.current.focus():ae&&ae.current&&ci(ae.current):kn(e)&&(n.current=ne(d))},s=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=un(),f=(c==="virtual"||c===null)&&Ur()&&Lu(),p=$e(i);if(!f&&p&&kn(e)&&!yt(p,e)){ae=e;let b=ne(d);if(b&&b.isConnected){var m;n.current=b,(m=n.current)===null||m===void 0||m.focus()}else ae.current&&ci(ae.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",a,!1),o==null||o.forEach(d=>d.addEventListener("focusin",a,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",a,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",a,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",s,!1))}},[e,t]),Z(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Ks(e){return yt(e)}function ze(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function yt(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ve.traverse(ve.getTreeNode(t)))if(n&&ze(e,n.current))return!0;return!1}function A$(e){return yt(e,ae)}function Kr(e,t){var n;let r=(n=ve.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ae(e,t=!1){if(e!=null&&!t)try{ke(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Vs(e,t=!0){let n=e[0].previousElementSibling,r=Nt(e),o=Ce(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Nt(e),o=Ce(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function ci(e,t=!0){Ae(Vs(e,t))}function F$(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ae=e;const r=X(e.current?e.current[0]:void 0);!ze($e(r),ae.current)&&e.current&&ci(e.current)}n.current=!1},[e])}function R$(e,t,n){Z(()=>{if(t||n)return;let r=e.current;const o=X(r?r[0]:void 0);let i=l=>{let a=ne(l);ze(a,e.current)?ae=e:Ks(a)||(ae=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,n])}function Aa(e){let t=ve.getTreeNode(ae);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function I$(e,t,n){const r=u.useRef(typeof document<"u"?$e(X(e.current?e.current[0]:void 0)):null);Z(()=>{let o=e.current;const i=X(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!ae||Kr(ae,e))&&ze($e(i),e.current)&&(ae=e)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(a=>a.removeEventListener("focusin",l,!1))}},[e,n]),Z(()=>{const o=X(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!kn(e)||l.isComposing)return;let a=o.activeElement;if(!yt(a,e)||!Aa(e))return;let s=ve.getTreeNode(e);if(!s)return;let d=s.nodeToRestore,c=Ce(o.body,{tabbable:!0});c.currentNode=a;let f=l.shiftKey?c.previousNode():c.nextNode();if((!d||!d.isConnected||d===o.body)&&(d=void 0,s.nodeToRestore=void 0),(!f||!yt(f,e))&&d){c.currentNode=d;do f=l.shiftKey?c.previousNode():c.nextNode();while(yt(f,e));l.preventDefault(),l.stopPropagation(),f?Ae(f,!0):Ks(d)?Ae(d,!0):a.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),Z(()=>{const o=X(e.current?e.current[0]:void 0);if(!t)return;let i=ve.getTreeNode(e);if(i){var l;return i.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let a=ve.getTreeNode(e);if(!a)return;let s=a.nodeToRestore,d=$e(o);if(t&&s&&(d&&yt(d,e)||d===o.body&&Aa(e))){let c=ve.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let f=c.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Fa(f.nodeToRestore);return}f=f.parent}for(f=c.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&ve.getTreeNode(f.scopeRef)){let p=Vs(f.scopeRef.current,!0);Fa(p);return}f=f.parent}}})}}}},[e,t])}function Fa(e){e.dispatchEvent(new CustomEvent(di,{bubbles:!0,cancelable:!0}))&&Ae(e)}function Ce(e,t,n){let r=t!=null&&t.tabbable?Wv:wi,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=X(o),l=Cv(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:r(a)&&Ls(a)&&(!n||ze(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(l.currentNode=t.from),l}function zi(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:l=t.wrap,accept:a=t.accept}=n,s=o||$e(X(r)),d=Ce(r,{tabbable:i,accept:a});r.contains(s)&&(d.currentNode=s);let c=d.nextNode();return!c&&l&&(d.currentNode=r,c=d.nextNode()),c&&Ae(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:l=t.wrap,accept:a=t.accept}=n,s=o||$e(X(r)),d=Ce(r,{tabbable:i,accept:a});if(r.contains(s))d.currentNode=s;else{let f=Fo(d);return f&&Ae(f,!0),f??null}let c=d.previousNode();if(!c&&l){d.currentNode=r;let f=Fo(d);if(!f)return null;c=f}return c&&Ae(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Ce(r,{tabbable:o,accept:i}).nextNode();return a&&Ae(a,!0),a},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,l=Ce(r,{tabbable:o,accept:i}),a=Fo(l);return a&&Ae(a,!0),a??null}}}function Fo(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class ji{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new fi({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ze(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new ji;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new fi({scopeRef:null}),this.fastMap.set(null,this.root)}}class fi{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ve=new ji;function Se(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||an()}),[i,l]=u.useState(!1),[a,s]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=u.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=u.useCallback(m=>{o.current.isFocused=m,l(m),d()},[d]);u3(m=>{o.current.isFocusVisible=m,d()},[],{isTextInput:n});let{focusProps:f}=Bi({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Pt({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?p:f}}function M$(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return Z(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let a=Ce(e.current,{tabbable:!0});o(!!a.nextNode())}};i();let l=new MutationObserver(i);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function Hi(e){let t=L$(X(e));t!==e&&(t&&pi(t,e),e&&_i(e,t))}function pi(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function _i(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function L$(e){let t=$e(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function N$(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,l]=u.useState(!1);Z(()=>{var b;l(!!(t.current&&(!((b=t.current.parentElement)===null||b===void 0)&&b.closest('[role="toolbar"]'))))});const{direction:a}=Pe(),s=a==="rtl"&&o==="horizontal";let d=zi(t);const c=b=>{if(b.currentTarget.contains(b.target)){if(o==="horizontal"&&b.key==="ArrowRight"||o==="vertical"&&b.key==="ArrowDown")s?d.focusPrevious():d.focusNext();else if(o==="horizontal"&&b.key==="ArrowLeft"||o==="vertical"&&b.key==="ArrowUp")s?d.focusNext():d.focusPrevious();else if(b.key==="Tab"){b.stopPropagation(),f.current=document.activeElement,b.shiftKey?d.focusFirst():d.focusLast();return}else return;b.stopPropagation(),b.preventDefault()}},f=u.useRef(null),p=b=>{!b.currentTarget.contains(b.relatedTarget)&&!f.current&&(f.current=b.target)},m=b=>{var v;if(f.current&&!b.currentTarget.contains(b.relatedTarget)&&(!((v=t.current)===null||v===void 0)&&v.contains(b.target))){var $;($=f.current)===null||$===void 0||$.focus(),f.current=null}};return{toolbarProps:{...te(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:i?void 0:c,onFocusCapture:i?void 0:m,onBlurCapture:i?void 0:p}}}function K$(e,t,n){let{isDisabled:r}=e,{toolbarProps:o}=N$(e,n);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function V$(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),setSelected(s){t.setSelected(e.id,s)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:l,buttonProps:a}=Ms({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(a.role="radio",a["aria-checked"]=r.isSelected,delete a["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:l,buttonProps:a}}const Os=7e3;let Ke=null;function Ot(e,t="assertive",n=Os){Ke?Ke.announce(e,t,n):(Ke=new z$,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ke.announce(e,t,n):setTimeout(()=>{Ke!=null&&Ke.isAttached()&&(Ke==null||Ke.announce(e,t,n))},100))}function O$(e){Ke&&Ke.clear(e)}class z${isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Os){var o,i;if(!this.node)return;let l=document.createElement("div");typeof t=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",t["aria-labelledby"])):l.textContent=t,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(l):(i=this.politeLog)===null||i===void 0||i.appendChild(l),t!==""&&setTimeout(()=>{l.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="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 zs={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},js={...zs,customError:!0,valid:!1},gn={isInvalid:!1,validationDetails:zs,validationErrors:[]},j$=u.createContext({}),Nn="__formValidationState"+Date.now();function Wt(e){if(e[Nn]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[Nn];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return H$(e)}function H$(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:l,validationBehavior:a="aria"}=e;n&&(t||(t=n==="invalid"));let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:js}:null,d=u.useMemo(()=>{if(!l||o==null)return null;let A=_$(l,o);return Ra(A)},[l,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let c=u.useContext(j$),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(A=>mi(c[A])):mi(c[r]):[],[c,r]),[p,m]=u.useState(c),[b,v]=u.useState(!1);c!==p&&(m(c),v(!1));let $=u.useMemo(()=>Ra(b?[]:f),[b,f]),g=u.useRef(gn),[D,w]=u.useState(gn),B=u.useRef(gn),k=()=>{if(!P)return;L(!1);let A=d||i||g.current;Ro(A,B.current)||(B.current=A,w(A))},[P,L]=u.useState(!1);return u.useEffect(k),{realtimeValidation:s||$||d||i||gn,displayValidation:a==="native"?s||$||D:s||$||d||i||D,updateValidation(A){a==="aria"&&!Ro(D,A)?w(A):g.current=A},resetValidation(){let A=gn;Ro(A,B.current)||(B.current=A,w(A)),a==="native"&&L(!1),v(!0)},commitValidation(){a==="native"&&L(!0),v(!0)}}}function mi(e){return e?Array.isArray(e)?e:[e]:[]}function _$(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return mi(n)}return[]}function Ra(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:js}:null}function Ro(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Hn(e,t,n){let{validationBehavior:r,focus:o}=e;Z(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(W$(n.current))}});let i=re(()=>{t.resetValidation()}),l=re(s=>{var d;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!s.defaultPrevented&&n&&c&&G$(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),es("keyboard")}s.preventDefault()}),a=re(()=>{t.commitValidation()});u.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let d=s.form;return s.addEventListener("invalid",l),s.addEventListener("change",a),d==null||d.addEventListener("reset",i),()=>{s.removeEventListener("invalid",l),s.removeEventListener("change",a),d==null||d.removeEventListener("reset",i)}},[n,l,a,i,r])}function U$(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function W$(e){return{isInvalid:!e.validity.valid,validationDetails:U$(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function G$(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Hs(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:l,children:a,"aria-label":s,"aria-labelledby":d,validationState:c="valid",isInvalid:f}=e,p=P=>{P.stopPropagation(),t.setSelected(P.target.checked)},m=a!=null,b=s!=null||d!=null;!m&&!b&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:v,isPressed:$}=Ge({isDisabled:r}),{pressProps:g,isPressed:D}=Ge({onPress(){var P;t.toggle(),(P=n.current)===null||P===void 0||P.focus()},isDisabled:r||o}),{focusableProps:w}=ft(e,n),B=z(v,w),k=te(e,{labelable:!0});return fn(n,t.isSelected,t.setSelected),{labelProps:z(g,{onClick:P=>P.preventDefault()}),inputProps:z(k,{"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:l,type:"checkbox",...B}),isSelected:t.isSelected,isPressed:$||D,isDisabled:r,isReadOnly:o,isInvalid:f||c==="invalid"}}function q$(e,t,n){let r=Wt({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:l}=r.displayValidation,{labelProps:a,inputProps:s,isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p}=Hs({...e,isInvalid:o},t,n);Hn(e,r,n);let{isIndeterminate:m,isRequired:b,validationBehavior:v="aria"}=e;u.useEffect(()=>{n.current&&(n.current.indeterminate=!!m)});let{pressProps:$}=Ge({isDisabled:f||p,onPress(){let{[Nn]:g}=e,{commitValidation:D}=g||r;D()}});return{labelProps:z(a,$),inputProps:{...s,checked:d,"aria-required":b&&v==="aria"||void 0,required:b&&v==="native"},isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:l}}function Ui(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=ue(t);let l=ue(),a={};n?(r=r?`${l} ${r}`:l,a={id:l,htmlFor:i==="label"?t:void 0}):!r&&!o&&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 s=ln({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:s}}function pn(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:l}=Ui(e),a=on([!!t,!!n,r,o]),s=on([!!t,!!n,r,o]);return l=z(l,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:l,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Wi(e={}){let{isReadOnly:t}=e,[n,r]=Re(e.isSelected,e.defaultSelected||!1,e.onChange);function o(l){t||r(l)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function Z$(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[o,i]=Re(u.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),u.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:o,setSelectedKeys:i,toggleKey(l){let a;t==="multiple"?(a=new Set(o),a.has(l)&&(!n||a.size>1)?a.delete(l):a.add(l)):a=new Set(o.has(l)&&!n?[]:[l]),i(a)},setSelected(l,a){a!==o.has(l)&&this.toggleKey(l)}}}function Y$(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:l=NaN,onChange:a,locale:s,isDisabled:d,isReadOnly:c}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=tt(i,t,n,r):i=Vt(i,t,n)),isNaN(l)||(r!==void 0&&!isNaN(r)?l=tt(l,t,n,r):l=Vt(l,t,n));let[f,p]=Re(i,isNaN(l)?NaN:l,a),[m,b]=u.useState(()=>isNaN(f)?"":new Nr(s,o).format(f)),v=u.useMemo(()=>new Vi(s,o),[s,o]),$=u.useMemo(()=>v.getNumberingSystem(m),[v,m]),g=u.useMemo(()=>new Nr(s,{...o,numberingSystem:$}),[s,o,$]),D=u.useMemo(()=>g.resolvedOptions(),[g]),w=u.useCallback(K=>isNaN(K)||K===null?"":g.format(K),[g]),B=Wt({...e,value:f}),k=r!==void 0&&!isNaN(r)?r:1;D.style==="percent"&&(r===void 0||isNaN(r))&&(k=.01);let[P,L]=u.useState(f),[I,V]=u.useState(s),[A,h]=u.useState(o);(!Object.is(f,P)||s!==I||o!==A)&&(b(w(f)),L(f),V(s),h(o));let S=u.useMemo(()=>v.parse(m),[v,m]),M=()=>{if(!m.length){p(NaN),b(i===void 0?"":w(f));return}if(isNaN(S)){b(w(f));return}let K;r===void 0||isNaN(r)?K=Vt(S,t,n):K=tt(S,t,n,r),K=v.parse(w(K)),p(K),b(w(i===void 0?K:f))},R=(K,W=0)=>{let q=S;if(isNaN(q)){let Q=isNaN(W)?0:W;return tt(Q,t,n,k)}else{let Q=tt(q,t,n,k);return K==="+"&&Q>q||K==="-"&&Q<q?Q:tt(Io(K,q,k),t,n,k)}},H=()=>{let K=R("+",t);K===f&&b(w(K)),p(K),B.commitValidation()},x=()=>{let K=R("-",n);K===f&&b(w(K)),p(K),B.commitValidation()},C=()=>{n!=null&&(p(tt(n,t,n,k)),B.commitValidation())},E=()=>{t!=null&&(p(t),B.commitValidation())},O=u.useMemo(()=>!d&&!c&&(isNaN(S)||n===void 0||isNaN(n)||tt(S,t,n,k)>S||Io("+",S,k)<=n),[d,c,t,n,k,S]),F=u.useMemo(()=>!d&&!c&&(isNaN(S)||t===void 0||isNaN(t)||tt(S,t,n,k)<S||Io("-",S,k)>=t),[d,c,t,n,k,S]);return{...B,validate:K=>v.isValidPartialNumber(K,t,n),increment:H,incrementToMax:C,decrement:x,decrementToMin:E,canIncrement:O,canDecrement:F,minValue:t,maxValue:n,numberValue:S,setNumberValue:p,setInputValue:b,inputValue:m,commit:M}}function Io(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),l=o[1]&&o[1].length||0,a=i[1]&&i[1].length||0,s=Math.pow(10,Math.max(l,a));t=Math.round(t*s),n=Math.round(n*s),r=e==="+"?t+n:t-n,r/=s}return r}const Ia={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 _s(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=Pt({isDisabled:!n,onFocusWithinChange:a=>o(a)}),l=u.useMemo(()=>r?t:t?{...Ia,...t}:Ia,[r]);return{visuallyHiddenProps:{...i,style:l}}}function Gi(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:l}=_s(e);return u.createElement(n,z(i,l),t)}function _n(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:a="aria"}=e,[s,d]=Re(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=ft(e,t),f=Wt({...e,value:s}),{isInvalid:p,validationErrors:m,validationDetails:b}=f.displayValidation,{labelProps:v,fieldProps:$,descriptionProps:g,errorMessageProps:D}=pn({...e,isInvalid:p,errorMessage:e.errorMessage||m}),w=te(e,{labelable:!0});const B={type:l,pattern:e.pattern};return fn(t,s,d),Hn(e,f,t),u.useEffect(()=>{if(t.current instanceof Fe(t.current).HTMLTextAreaElement){let k=t.current;Object.defineProperty(k,"defaultValue",{get:()=>k.value,set:()=>{},configurable:!0})}},[t]),{labelProps:v,inputProps:z(w,n==="input"?B:void 0,{disabled:r,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:k=>d(k.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...$}),descriptionProps:g,errorMessageProps:D,isInvalid:p,validationErrors:m,validationDetails:b}}function Ma(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function J$(e,t,n){let r=re(f=>{let p=n.current;if(!p)return;let m=null;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":m=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":m=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":m=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":m=p.value.slice(p.selectionStart);break;default:f.data!=null&&(m=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(m==null||!t.validate(m))&&f.preventDefault()});u.useEffect(()=>{if(!Ma()||!n.current)return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=Ma()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:l,descriptionProps:a,errorMessageProps:s,...d}=_n(e,n),c=u.useRef(null);return{inputProps:z(l,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:m}=n.current;c.current={value:f,selectionStart:p,selectionEnd:m}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:m}=c.current;n.current.value=f,n.current.setSelectionRange(p,m),t.setInputValue(f)}}}),labelProps:i,descriptionProps:a,errorMessageProps:s,...d}}var Us={};Us={Empty:"فارغ"};var Ws={};Ws={Empty:"Изпразни"};var Gs={};Gs={Empty:"Prázdné"};var qs={};qs={Empty:"Tom"};var Zs={};Zs={Empty:"Leer"};var Ys={};Ys={Empty:"Άδειο"};var Js={};Js={Empty:"Empty"};var Xs={};Xs={Empty:"Vacío"};var Qs={};Qs={Empty:"Tühjenda"};var ed={};ed={Empty:"Tyhjä"};var td={};td={Empty:"Vide"};var nd={};nd={Empty:"ריק"};var rd={};rd={Empty:"Prazno"};var od={};od={Empty:"Üres"};var id={};id={Empty:"Vuoto"};var ld={};ld={Empty:"空"};var ad={};ad={Empty:"비어 있음"};var ud={};ud={Empty:"Tuščias"};var sd={};sd={Empty:"Tukšs"};var dd={};dd={Empty:"Tom"};var cd={};cd={Empty:"Leeg"};var fd={};fd={Empty:"Pusty"};var pd={};pd={Empty:"Vazio"};var md={};md={Empty:"Vazio"};var bd={};bd={Empty:"Gol"};var hd={};hd={Empty:"Не заполнено"};var vd={};vd={Empty:"Prázdne"};var $d={};$d={Empty:"Prazen"};var gd={};gd={Empty:"Prazno"};var yd={};yd={Empty:"Tomt"};var xd={};xd={Empty:"Boş"};var Cd={};Cd={Empty:"Пусто"};var Dd={};Dd={Empty:"空"};var Ed={};Ed={Empty:"空白"};var Pd={};Pd={"ar-AE":Us,"bg-BG":Ws,"cs-CZ":Gs,"da-DK":qs,"de-DE":Zs,"el-GR":Ys,"en-US":Js,"es-ES":Xs,"et-EE":Qs,"fi-FI":ed,"fr-FR":td,"he-IL":nd,"hr-HR":rd,"hu-HU":od,"it-IT":id,"ja-JP":ld,"ko-KR":ad,"lt-LT":ud,"lv-LV":sd,"nb-NO":dd,"nl-NL":cd,"pl-PL":fd,"pt-BR":pd,"pt-PT":md,"ro-RO":bd,"ru-RU":hd,"sk-SK":vd,"sl-SI":$d,"sr-SP":gd,"sv-SE":yd,"tr-TR":xd,"uk-UA":Cd,"zh-CN":Dd,"zh-TW":Ed};function X$(e){return e&&e.__esModule?e.default:e}function wd(e){const t=u.useRef(void 0);let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:l,isReadOnly:a,isRequired:s,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:b}=e;const v=qe(X$(Pd),"@react-aria/spinbutton"),$=()=>clearTimeout(t.current);u.useEffect(()=>()=>$(),[]);let g=h=>{if(!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey||a))switch(h.key){case"PageUp":if(c){h.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":d&&(h.preventDefault(),d==null||d());break;case"PageDown":if(p){h.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(h.preventDefault(),f==null||f());break;case"Home":m&&(h.preventDefault(),m==null||m());break;case"End":b&&(h.preventDefault(),b==null||b());break}},D=u.useRef(!1),w=()=>{D.current=!0},B=()=>{D.current=!1},k=r===""?v.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{D.current&&(O$("assertive"),Ot(k,"assertive"))},[k]);const P=re(h=>{$(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&P(60)},h)}),L=re(h=>{$(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&L(60)},h)});let I=h=>{h.preventDefault()},{addGlobalListener:V,removeAllGlobalListeners:A}=On();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":k,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":l||void 0,"aria-readonly":a||void 0,"aria-required":s||void 0,onKeyDown:g,onFocus:w,onBlur:B},incrementButtonProps:{onPressStart:()=>{P(400),V(window,"contextmenu",I)},onPressEnd:()=>{$(),A()},onFocus:w,onBlur:B},decrementButtonProps:{onPressStart:()=>{L(400),V(window,"contextmenu",I)},onPressEnd:()=>{$(),A()},onFocus:w,onBlur:B}}}var Sd={};Sd={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var kd={};kd={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var Bd={};Bd={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Td={};Td={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Ad={};Ad={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var Fd={};Fd={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Rd={};Rd={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Id={};Id={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Md={};Md={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Ld={};Ld={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Nd={};Nd={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var Kd={};Kd={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var Vd={};Vd={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var Od={};Od={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var zd={};zd={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var jd={};jd={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var Hd={};Hd={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var _d={};_d={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var Ud={};Ud={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Wd={};Wd={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var Gd={};Gd={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var qd={};qd={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Zd={};Zd={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Yd={};Yd={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Jd={};Jd={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Xd={};Xd={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Qd={};Qd={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var ec={};ec={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var tc={};tc={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var nc={};nc={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var rc={};rc={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var oc={};oc={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var ic={};ic={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var lc={};lc={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var ac={};ac={"ar-AE":Sd,"bg-BG":kd,"cs-CZ":Bd,"da-DK":Td,"de-DE":Ad,"el-GR":Fd,"en-US":Rd,"es-ES":Id,"et-EE":Md,"fi-FI":Ld,"fr-FR":Nd,"he-IL":Kd,"hr-HR":Vd,"hu-HU":Od,"it-IT":zd,"ja-JP":jd,"ko-KR":Hd,"lt-LT":_d,"lv-LV":Ud,"nb-NO":Wd,"nl-NL":Gd,"pl-PL":qd,"pt-BR":Zd,"pt-PT":Yd,"ro-RO":Jd,"ru-RU":Xd,"sk-SK":Qd,"sl-SI":ec,"sr-SP":tc,"sv-SE":nc,"tr-TR":rc,"uk-UA":oc,"zh-CN":ic,"zh-TW":lc};function Q$(e){return e&&e.__esModule?e.default:e}function eg(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:l,isReadOnly:a,isRequired:s,minValue:d,maxValue:c,autoFocus:f,label:p,formatOptions:m,onBlur:b=()=>{},onFocus:v,onFocusChange:$,onKeyDown:g,onKeyUp:D,description:w,errorMessage:B,isWheelDisabled:k,...P}=e,{increment:L,incrementToMax:I,decrement:V,decrementToMin:A,numberValue:h,inputValue:S,commit:M,commitValidation:R}=t;const H=qe(Q$(ac),"@react-aria/numberfield");let x=ue(r),{focusProps:C}=Bi({onBlur(){M()}}),E=si(m),O=u.useMemo(()=>E.resolvedOptions(),[E]),F=si({...m,currencySign:void 0}),j=u.useMemo(()=>isNaN(h)?"":F.format(h),[F,h]),{spinButtonProps:K,incrementButtonProps:W,decrementButtonProps:q}=wd({isDisabled:l,isReadOnly:a,isRequired:s,maxValue:c,minValue:d,onIncrement:L,onIncrementToMax:I,onDecrement:V,onDecrementToMin:A,value:h,textValue:j}),[Q,ye]=u.useState(!1),{focusWithinProps:se}=Pt({isDisabled:l,onFocusWithinChange:ye}),_=u.useCallback(Me=>{Math.abs(Me.deltaY)<=Math.abs(Me.deltaX)||(Me.deltaY>0?L():Me.deltaY<0&&V())},[V,L]);h3({onScroll:_,isDisabled:k||l||a||!Q},n);var Y;let U=((Y=O.maximumFractionDigits)!==null&&Y!==void 0?Y:0)>0,N=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,G="numeric";Iu()?N?G="text":U&&(G="decimal"):Ur()&&(N?G="numeric":U&&(G="decimal"));let oe=Me=>{t.validate(Me)&&t.setInputValue(Me)},De=te(e),He=u.useCallback(Me=>{Me.key==="Enter"?(M(),R()):Me.continuePropagation()},[M,R]),{isInvalid:mt,validationErrors:mo,validationDetails:J}=t.displayValidation,{labelProps:le,inputProps:be,descriptionProps:bo,errorMessageProps:Qh}=J$({...P,...De,name:void 0,label:p,autoFocus:f,isDisabled:l,isReadOnly:a,isRequired:s,validate:void 0,[Nn]:t,value:S,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:x,type:"text",inputMode:G,onChange:oe,onBlur:b,onFocus:v,onFocusChange:$,onKeyDown:u.useMemo(()=>Ue(He,g),[He,g]),onKeyUp:D,description:w,errorMessage:B},t,n);fn(n,t.numberValue,t.setNumberValue);let Vl=z(K,C,be,{role:null,"aria-roledescription":dn()?null:H.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Vl["aria-required"]=void 0);let Ol=Me=>{var vo;document.activeElement!==n.current&&(Me.pointerType==="mouse"?(vo=n.current)===null||vo===void 0||vo.focus():Me.target.focus())},ho=e["aria-label"]||(typeof e.label=="string"?e.label:""),Bt;ho||(Bt=e.label!=null?le.id:e["aria-labelledby"]);let zl=ue(),jl=ue(),ev=z(W,{"aria-label":i||H.format("increase",{fieldLabel:ho}).trim(),id:Bt&&!i?zl:null,"aria-labelledby":Bt&&!i?`${zl} ${Bt}`:null,"aria-controls":x,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Ol}),tv=z(q,{"aria-label":o||H.format("decrease",{fieldLabel:ho}).trim(),id:Bt&&!o?jl:null,"aria-labelledby":Bt&&!o?`${jl} ${Bt}`:null,"aria-controls":x,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Ol});return{groupProps:{...se,role:"group","aria-disabled":l,"aria-invalid":mt?"true":void 0},labelProps:le,inputProps:Vl,incrementButtonProps:ev,decrementButtonProps:tv,errorMessageProps:Qh,descriptionProps:bo,isInvalid:mt,validationErrors:mo,validationDetails:J}}var uc={};uc={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var sc={};sc={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var dc={};dc={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var cc={};cc={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var fc={};fc={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var pc={};pc={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var mc={};mc={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var bc={};bc={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var hc={};hc={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var vc={};vc={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var $c={};$c={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var gc={};gc={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var yc={};yc={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var xc={};xc={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Cc={};Cc={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Dc={};Dc={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Ec={};Ec={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Pc={};Pc={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var wc={};wc={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Sc={};Sc={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var kc={};kc={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Bc={};Bc={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Tc={};Tc={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Ac={};Ac={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Fc={};Fc={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Rc={};Rc={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Ic={};Ic={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var Mc={};Mc={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Lc={};Lc={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var Nc={};Nc={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Kc={};Kc={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Vc={};Vc={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Oc={};Oc={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var zc={};zc={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var jc={};jc={"ar-AE":uc,"bg-BG":sc,"cs-CZ":dc,"da-DK":cc,"de-DE":fc,"el-GR":pc,"en-US":mc,"es-ES":bc,"et-EE":hc,"fi-FI":vc,"fr-FR":$c,"he-IL":gc,"hr-HR":yc,"hu-HU":xc,"it-IT":Cc,"ja-JP":Dc,"ko-KR":Ec,"lt-LT":Pc,"lv-LV":wc,"nb-NO":Sc,"nl-NL":kc,"pl-PL":Bc,"pt-BR":Tc,"pt-PT":Ac,"ro-RO":Fc,"ru-RU":Rc,"sk-SK":Ic,"sl-SI":Mc,"sr-SP":Lc,"sv-SE":Nc,"tr-TR":Kc,"uk-UA":Vc,"zh-CN":Oc,"zh-TW":zc};const Xe={top:"top",bottom:"top",left:"left",right:"left"},Vr={top:"bottom",bottom:"top",left:"right",right:"left"},tg={top:"left",left:"top"},bi={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},cr={};let Ee=typeof document<"u"?window.visualViewport:null;function La(e){let t=0,n=0,r=0,o=0,i=0,l=0,a={};var s;let d=((s=Ee==null?void 0:Ee.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,o=b.clientHeight;var c;t=(c=Ee==null?void 0:Ee.width)!==null&&c!==void 0?c:r;var f;n=(f=Ee==null?void 0:Ee.height)!==null&&f!==void 0?f:o,a.top=b.scrollTop||e.scrollTop,a.left=b.scrollLeft||e.scrollLeft,Ee&&(i=Ee.offsetTop,l=Ee.offsetLeft)}else({width:t,height:n,top:i,left:l}=nn(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;if(Di()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){a.top=0,a.left=0;var p;i=(p=Ee==null?void 0:Ee.pageTop)!==null&&p!==void 0?p:0;var m;l=(m=Ee==null?void 0:Ee.pageLeft)!==null&&m!==void 0?m:0}return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:l}}function ng(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Na(e,t,n,r,o,i,l){var a;let s=(a=o.scroll[e])!==null&&a!==void 0?a:0,d=r[bi[e]],c=r.scroll[Xe[e]]+i,f=d+r.scroll[Xe[e]]-i,p=t-s+l[e]-r[Xe[e]],m=t-s+n+l[e]-r[Xe[e]];return p<c?c-p:m>f?Math.max(f-m,c-p):0}function rg(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ka(e){if(cr[e])return cr[e];let[t,n]=e.split(" "),r=Xe[t]||"right",o=tg[r];Xe[n]||(n="center");let i=bi[r],l=bi[o];return cr[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:l},cr[e]}function Mo(e,t,n,r,o,i,l,a,s,d){let{placement:c,crossPlacement:f,axis:p,crossAxis:m,size:b,crossSize:v}=r,$={};var g;$[m]=(g=e[m])!==null&&g!==void 0?g:0;var D,w,B,k;f==="center"?$[m]+=(((D=e[v])!==null&&D!==void 0?D:0)-((w=n[v])!==null&&w!==void 0?w:0))/2:f!==m&&($[m]+=((B=e[v])!==null&&B!==void 0?B:0)-((k=n[v])!==null&&k!==void 0?k:0)),$[m]+=i;const P=e[m]-n[v]+s+d,L=e[m]+e[v]-s-d;if($[m]=Vt($[m],P,L),c===p){const I=a?l[b]:t[Hc[b]];$[Vr[p]]=Math.floor(I-e[p]+o)}else $[p]=Math.floor(e[p]+e[b]+o);return $}function og(e,t,n,r,o,i,l,a){const s=r?n.height:t[Hc.height];var d;let c=e.top!=null?n.top+e.top:n.top+(s-((d=e.bottom)!==null&&d!==void 0?d:0)-l);var f,p,m,b,v,$;let g=a!=="top"?Math.max(0,t.height+t.top+((f=t.scroll.top)!==null&&f!==void 0?f:0)-c-(((p=o.top)!==null&&p!==void 0?p:0)+((m=o.bottom)!==null&&m!==void 0?m:0)+i)):Math.max(0,c+l-(t.top+((b=t.scroll.top)!==null&&b!==void 0?b:0))-(((v=o.top)!==null&&v!==void 0?v:0)+(($=o.bottom)!==null&&$!==void 0?$:0)+i));return Math.min(t.height-i*2,g)}function Va(e,t,n,r,o,i){let{placement:l,axis:a,size:s}=i;var d,c;if(l===a)return Math.max(0,n[a]-e[a]-((d=e.scroll[a])!==null&&d!==void 0?d:0)+t[a]-((c=r[a])!==null&&c!==void 0?c:0)-r[Vr[a]]-o);var f;return Math.max(0,e[s]+e[a]+e.scroll[a]-t[a]-n[a]-n[s]-((f=r[a])!==null&&f!==void 0?f:0)-r[Vr[a]]-o)}function ig(e,t,n,r,o,i,l,a,s,d,c,f,p,m,b,v){let $=Ka(e),{size:g,crossAxis:D,crossSize:w,placement:B,crossPlacement:k}=$,P=Mo(t,a,n,$,c,f,d,p,b,v),L=c,I=Va(a,d,t,o,i+c,$);if(l&&r[g]>I){let q=Ka(`${Vr[B]} ${k}`),Q=Mo(t,a,n,q,c,f,d,p,b,v);Va(a,d,t,o,i+c,q)>I&&($=q,P=Q,L=c)}let V="bottom";$.axis==="top"?$.placement==="top"?V="top":$.placement==="bottom"&&(V="bottom"):$.crossAxis==="top"&&($.crossPlacement==="top"?V="bottom":$.crossPlacement==="bottom"&&(V="top"));let A=Na(D,P[D],n[w],a,s,i,d);P[D]+=A;let h=og(P,a,d,p,o,i,n.height,V);m&&m<h&&(h=m),n.height=Math.min(n.height,h),P=Mo(t,a,n,$,L,f,d,p,b,v),A=Na(D,P[D],n[w],a,s,i,d),P[D]+=A;let S={},M=t[D]+.5*t[w]-P[D]-o[Xe[D]];const R=b/2+v;var H,x,C,E;const O=Xe[D]==="left"?((H=o.left)!==null&&H!==void 0?H:0)+((x=o.right)!==null&&x!==void 0?x:0):((C=o.top)!==null&&C!==void 0?C:0)+((E=o.bottom)!==null&&E!==void 0?E:0),F=n[w]-O-b/2-v,j=t[D]+b/2-(P[D]+o[Xe[D]]),K=t[D]+t[w]-b/2-(P[D]+o[Xe[D]]),W=Vt(M,j,K);return S[D]=Vt(W,R,F),{position:P,maxHeight:h,arrowOffsetLeft:S.left,arrowOffsetTop:S.top,placement:$.placement}}function lg(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:l,boundaryElement:a,offset:s,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,m=r instanceof HTMLElement?ag(r):document.documentElement,b=m===document.documentElement;const v=window.getComputedStyle(m).position;let $=!!v&&v!=="static",g=b?nn(n):Oa(n,m);if(!b){let{marginTop:S,marginLeft:M}=window.getComputedStyle(n);g.top+=parseInt(S,10)||0,g.left+=parseInt(M,10)||0}let D=nn(r),w=rg(r);var B,k;D.width+=((B=w.left)!==null&&B!==void 0?B:0)+((k=w.right)!==null&&k!==void 0?k:0);var P,L;D.height+=((P=w.top)!==null&&P!==void 0?P:0)+((L=w.bottom)!==null&&L!==void 0?L:0);let I=ng(o),V=La(a),A=La(m),h=a.tagName==="BODY"?nn(m):Oa(m,a);return m.tagName==="HTML"&&a.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),ig(t,g,D,I,w,i,l,V,A,h,s,d,$,c,f,p)}function nn(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:l,clientTop:a,clientLeft:s}=document.documentElement;return{top:t+i-a,left:n+l-s,width:r,height:o}}function Oa(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:l,height:a}=e.getBoundingClientRect();r={top:o,left:i,width:l,height:a}}else{r=nn(e);let o=nn(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function ag(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!za(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!za(t);)t=t.parentElement;return t||document.documentElement}function za(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const _c=new WeakMap;function ug(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let l=i.target;if(!t.current||l instanceof Node&&!l.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=r||_c.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let he=typeof document<"u"?window.visualViewport:null;function Uc(e){let{direction:t}=Pe(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:b,maxHeight:v,arrowBoundaryOffset:$=0}=e,[g,D]=u.useState(null),w=[p,l,o.current,r.current,i.current,a,s,d,c,f,m,t,v,$,n],B=u.useRef(he==null?void 0:he.scale);u.useEffect(()=>{m&&(B.current=he==null?void 0:he.scale)},[m]);let k=u.useCallback(()=>{if(p===!1||!m||!o.current||!r.current||!d||(he==null?void 0:he.scale)!==B.current)return;let A=null;if(i.current&&i.current.contains(document.activeElement)){var h;let E=(h=document.activeElement)===null||h===void 0?void 0:h.getBoundingClientRect(),O=i.current.getBoundingClientRect();var S;if(A={type:"top",offset:((S=E==null?void 0:E.top)!==null&&S!==void 0?S:0)-O.top},A.offset>O.height/2){A.type="bottom";var M;A.offset=((M=E==null?void 0:E.bottom)!==null&&M!==void 0?M:0)-O.bottom}}let R=o.current;if(!v&&o.current){var H;R.style.top="0px",R.style.bottom="";var x;R.style.maxHeight=((x=(H=window.visualViewport)===null||H===void 0?void 0:H.height)!==null&&x!==void 0?x:window.innerHeight)+"px"}let C=lg({placement:dg(l,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current||o.current,padding:a,shouldFlip:s,boundaryElement:d,offset:c,crossOffset:f,maxHeight:v,arrowSize:n,arrowBoundaryOffset:$});if(C.position){if(R.style.top="",R.style.bottom="",R.style.left="",R.style.right="",Object.keys(C.position).forEach(E=>R.style[E]=C.position[E]+"px"),R.style.maxHeight=C.maxHeight!=null?C.maxHeight+"px":"",A&&document.activeElement&&i.current){let E=document.activeElement.getBoundingClientRect(),O=i.current.getBoundingClientRect(),F=E[A.type]-O[A.type];i.current.scrollTop+=F-A.offset}D(C)}},w);Z(k,w),sg(k),An({ref:o,onResize:k}),An({ref:r,onResize:k});let P=u.useRef(!1);Z(()=>{let A,h=()=>{P.current=!0,clearTimeout(A),A=setTimeout(()=>{P.current=!1},500),k()},S=()=>{P.current&&h()};return he==null||he.addEventListener("resize",h),he==null||he.addEventListener("scroll",S),()=>{he==null||he.removeEventListener("resize",h),he==null||he.removeEventListener("scroll",S)}},[k]);let L=u.useCallback(()=>{P.current||b==null||b()},[b,P]);ug({triggerRef:r,isOpen:m,onClose:b&&L});var I,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...g==null?void 0:g.position,maxHeight:(I=g==null?void 0:g.maxHeight)!==null&&I!==void 0?I:"100vh"}},placement:(V=g==null?void 0:g.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:g==null?void 0:g.arrowOffsetLeft,top:g==null?void 0:g.arrowOffsetTop}},updatePosition:k}}function sg(e){Z(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function dg(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Ye=[];function cg(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=e;u.useEffect(()=>{if(o&&!Ye.includes(t))return Ye.push(t),()=>{let b=Ye.indexOf(t);b>=0&&Ye.splice(b,1)}},[o,t]);let s=()=>{Ye[Ye.length-1]===t&&n&&n()},d=b=>{(!a||a(b.target))&&Ye[Ye.length-1]===t&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!a||a(b.target))&&(Ye[Ye.length-1]===t&&(b.stopPropagation(),b.preventDefault()),s())},f=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),s())};b3({ref:t,onInteractOutside:i&&o?c:void 0,onInteractOutsideStart:d});let{focusWithinProps:p}=Pt({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||A$(b.relatedTarget)||(!a||a(b.relatedTarget))&&(n==null||n())}}),m=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:m}}}function Wc(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&_c.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let l=ue();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}const Lo=typeof document<"u"&&window.visualViewport,fg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let fr=0,No;function pg(e={}){let{isDisabled:t}=e;Z(()=>{if(!t)return fr++,fr===1&&(dn()?No=bg():No=mg()),()=>{fr--,fr===0&&No()}},[t])}function mg(){let e=window.innerWidth-document.documentElement.clientWidth;return Ue(e>0&&("scrollbarGutter"in document.documentElement.style?Kt(document.documentElement,"scrollbarGutter","stable"):Kt(document.documentElement,"paddingRight",`${e}px`)),Kt(document.documentElement,"overflow","hidden"))}function bg(){let e,t,n=d=>{e=Je(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Kt(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},o=()=>{t&&t()},i=d=>{let c=d.target;hg(c)&&(a(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Lo&&(Lo.height<window.innerHeight?requestAnimationFrame(()=>{ja(c)}):Lo.addEventListener("resize",()=>ja(c),{once:!0}))}))},l=null,a=()=>{if(l)return;let d=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;l=Ue(yn(window,"scroll",d),Kt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Kt(document.documentElement,"overflow","hidden"),Kt(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},s=Ue(yn(document,"touchstart",n,{passive:!1,capture:!0}),yn(document,"touchmove",r,{passive:!1,capture:!0}),yn(document,"touchend",o,{passive:!1,capture:!0}),yn(document,"focus",i,!0));return()=>{t==null||t(),l==null||l(),s()}}function Kt(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function yn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ja(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Je(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let o=r.getBoundingClientRect().top,i=n.getBoundingClientRect().top;i>o+n.clientHeight&&(r.scrollTop+=i-o)}n=r.parentElement}}function hg(e){return e instanceof HTMLInputElement&&!fg.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const vg=u.createContext({});function Gc(){var e;return(e=u.useContext(vg))!==null&&e!==void 0?e:{}}const hi=u.createContext(null);function $g(e){let{children:t}=e,n=u.useContext(hi),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(l=>l+1),n&&n.addModal()},removeModal(){o(l=>l-1),n&&n.removeModal()}}),[n,r]);return u.createElement(hi.Provider,{value:i},t)}function gg(){let e=u.useContext(hi);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function yg(e){let{modalProviderProps:t}=gg();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function xg(e){return u.createElement($g,null,u.createElement(yg,e))}function Cg(e){let t=Et(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=Gc();if(!e.portalContainer&&o&&(n=o()),u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=u.createElement(xg,r);return _t.createPortal(i,n)}var qc={};qc={dismiss:"تجاهل"};var Zc={};Zc={dismiss:"Отхвърляне"};var Yc={};Yc={dismiss:"Odstranit"};var Jc={};Jc={dismiss:"Luk"};var Xc={};Xc={dismiss:"Schließen"};var Qc={};Qc={dismiss:"Απόρριψη"};var ef={};ef={dismiss:"Dismiss"};var tf={};tf={dismiss:"Descartar"};var nf={};nf={dismiss:"Lõpeta"};var rf={};rf={dismiss:"Hylkää"};var of={};of={dismiss:"Rejeter"};var lf={};lf={dismiss:"התעלם"};var af={};af={dismiss:"Odbaci"};var uf={};uf={dismiss:"Elutasítás"};var sf={};sf={dismiss:"Ignora"};var df={};df={dismiss:"閉じる"};var cf={};cf={dismiss:"무시"};var ff={};ff={dismiss:"Atmesti"};var pf={};pf={dismiss:"Nerādīt"};var mf={};mf={dismiss:"Lukk"};var bf={};bf={dismiss:"Negeren"};var hf={};hf={dismiss:"Zignoruj"};var vf={};vf={dismiss:"Descartar"};var $f={};$f={dismiss:"Dispensar"};var gf={};gf={dismiss:"Revocare"};var yf={};yf={dismiss:"Пропустить"};var xf={};xf={dismiss:"Zrušiť"};var Cf={};Cf={dismiss:"Opusti"};var Df={};Df={dismiss:"Odbaci"};var Ef={};Ef={dismiss:"Avvisa"};var Pf={};Pf={dismiss:"Kapat"};var wf={};wf={dismiss:"Скасувати"};var Sf={};Sf={dismiss:"取消"};var kf={};kf={dismiss:"關閉"};var Bf={};Bf={"ar-AE":qc,"bg-BG":Zc,"cs-CZ":Yc,"da-DK":Jc,"de-DE":Xc,"el-GR":Qc,"en-US":ef,"es-ES":tf,"et-EE":nf,"fi-FI":rf,"fr-FR":of,"he-IL":lf,"hr-HR":af,"hu-HU":uf,"it-IT":sf,"ja-JP":df,"ko-KR":cf,"lt-LT":ff,"lv-LV":pf,"nb-NO":mf,"nl-NL":bf,"pl-PL":hf,"pt-BR":vf,"pt-PT":$f,"ro-RO":gf,"ru-RU":yf,"sk-SK":xf,"sl-SI":Cf,"sr-SP":Df,"sv-SE":Ef,"tr-TR":Pf,"uk-UA":wf,"zh-CN":Sf,"zh-TW":kf};function Dg(e){return e&&e.__esModule?e.default:e}function Ha(e){let{onDismiss:t,...n}=e,r=qe(Dg(Bf),"@react-aria/overlays"),o=ln(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(Gi,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let xn=new WeakMap,Te=[];function Tf(e,t=document.body){let n=new Set(e),r=new Set,o=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let d=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(p.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),f=d(s);if(f===NodeFilter.FILTER_ACCEPT&&i(s),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode()}},i=s=>{var d;let c=(d=xn.get(s))!==null&&d!==void 0?d:0;s.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&s.setAttribute("aria-hidden","true"),r.add(s),xn.set(s,c+1))};Te.length&&Te[Te.length-1].disconnect(),o(t);let l=new MutationObserver(s=>{for(let d of s)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(d.target))){for(let c of d.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of d.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});l.observe(t,{childList:!0,subtree:!0});let a={visibleNodes:n,hiddenNodes:r,observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Te.push(a),()=>{l.disconnect();for(let s of r){let d=xn.get(s);d!=null&&(d===1?(s.removeAttribute("aria-hidden"),xn.delete(s)):xn.set(s,d-1))}a===Te[Te.length-1]?(Te.pop(),Te.length&&Te[Te.length-1].observe()):Te.splice(Te.indexOf(a),1)}}function Eg(e){let t=Te[Te.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function Pg(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...s}=e,d=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:f}=cg({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||d,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},o??r),{overlayProps:p,arrowProps:m,placement:b}=Uc({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!d?t.close:null});return pg({isDisabled:i||!t.isOpen}),Z(()=>{if(t.isOpen&&r.current){var v,$;return i?Eg((v=o==null?void 0:o.current)!==null&&v!==void 0?v:r.current):Tf([($=o==null?void 0:o.current)!==null&&$!==void 0?$:r.current])}},[i,t.isOpen,r,o]),{popoverProps:z(c,p),arrowProps:m,underlayProps:f,placement:b}}const Af=u.createContext(null);function _a(e){let t=Et(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),l=u.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:a}=Gc();if(!e.portalContainer&&a&&(n=a()),!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(Ns,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!r},s)),s=u.createElement(Af.Provider,{value:l},u.createElement(Ti,null,s)),_t.createPortal(s,n)}function wg(){let e=u.useContext(Af),t=e==null?void 0:e.setContain;Z(()=>{t==null||t(!0)},[t])}const eo=new WeakMap;function Sg(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Ff(e,t){let n=eo.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Sg(t)}`}function vi(e){return br()?e.altKey:e.ctrlKey}function yr(e,t){var n,r;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(o)}const Rf=new WeakMap;function kg(e){let t=ue();return Rf.set(e,t),t}function Bg(e){return Rf.get(e)}const Tg=1e3;function If(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:void 0}).current,i=l=>{let a=Ag(l.key);if(!(!a||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(a===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=a,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Tg)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function Ag(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Mf(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:a=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:m,scrollRef:b=r,linkBehavior:v="action"}=e,{direction:$}=Pe(),g=cn(),D=C=>{var E;if(C.altKey&&C.key==="Tab"&&C.preventDefault(),!(!((E=r.current)===null||E===void 0)&&E.contains(C.target)))return;const O=(N,G)=>{if(N!=null){if(t.isLink(N)&&v==="selection"&&d&&!vi(C)){_t.flushSync(()=>{t.setFocusedKey(N,G)});let oe=yr(r,N),De=t.getItemProps(N);oe&&g.open(oe,C,De.href,De.routerOptions);return}if(t.setFocusedKey(N,G),t.isLink(N)&&v==="override")return;C.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):d&&!vi(C)&&t.replaceSelection(N)}};switch(C.key){case"ArrowDown":if(n.getKeyBelow){var F,j,K;let N=t.focusedKey!=null?(F=n.getKeyBelow)===null||F===void 0?void 0:F.call(n,t.focusedKey):(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n);N==null&&i&&(N=(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),N!=null&&(C.preventDefault(),O(N))}break;case"ArrowUp":if(n.getKeyAbove){var W,q,Q;let N=t.focusedKey!=null?(W=n.getKeyAbove)===null||W===void 0?void 0:W.call(n,t.focusedKey):(q=n.getLastKey)===null||q===void 0?void 0:q.call(n);N==null&&i&&(N=(Q=n.getLastKey)===null||Q===void 0?void 0:Q.call(n,t.focusedKey)),N!=null&&(C.preventDefault(),O(N))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ye,se,_;let N=t.focusedKey!=null?(ye=n.getKeyLeftOf)===null||ye===void 0?void 0:ye.call(n,t.focusedKey):null;N==null&&i&&(N=$==="rtl"?(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n,t.focusedKey)),N!=null&&(C.preventDefault(),O(N,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var ee,Y,U;let N=t.focusedKey!=null?(ee=n.getKeyRightOf)===null||ee===void 0?void 0:ee.call(n,t.focusedKey):null;N==null&&i&&(N=$==="rtl"?(Y=n.getLastKey)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n,t.focusedKey)),N!=null&&(C.preventDefault(),O(N,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&C.shiftKey)return;C.preventDefault();let N=n.getFirstKey(t.focusedKey,Rt(C));t.setFocusedKey(N),N!=null&&(Rt(C)&&C.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):d&&t.replaceSelection(N))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&C.shiftKey)return;C.preventDefault();let N=n.getLastKey(t.focusedKey,Rt(C));t.setFocusedKey(N),N!=null&&(Rt(C)&&C.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):d&&t.replaceSelection(N))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let N=n.getKeyPageBelow(t.focusedKey);N!=null&&(C.preventDefault(),O(N))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let N=n.getKeyPageAbove(t.focusedKey);N!=null&&(C.preventDefault(),O(N))}break;case"a":Rt(C)&&t.selectionMode==="multiple"&&a!==!0&&(C.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!l&&t.selectedKeys.size!==0&&(C.stopPropagation(),C.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(C.shiftKey)r.current.focus();else{let N=Ce(r.current,{tabbable:!0}),G,oe;do oe=N.lastChild(),oe&&(G=oe);while(oe);G&&!G.contains(document.activeElement)&&We(G)}break}}},w=u.useRef({top:0,left:0});it(b,"scroll",m?void 0:()=>{var C,E,O,F;w.current={top:(O=(C=b.current)===null||C===void 0?void 0:C.scrollTop)!==null&&O!==void 0?O:0,left:(F=(E=b.current)===null||E===void 0?void 0:E.scrollLeft)!==null&&F!==void 0?F:0}});let B=C=>{if(t.isFocused){C.currentTarget.contains(C.target)||t.setFocused(!1);return}if(C.currentTarget.contains(C.target)){if(t.setFocused(!0),t.focusedKey==null){var E,O;let K=q=>{q!=null&&(t.setFocusedKey(q),d&&!t.isSelected(q)&&t.replaceSelection(q))},W=C.relatedTarget;var F,j;W&&C.currentTarget.compareDocumentPosition(W)&Node.DOCUMENT_POSITION_FOLLOWING?K((F=t.lastSelectedKey)!==null&&F!==void 0?F:(E=n.getLastKey)===null||E===void 0?void 0:E.call(n)):K((j=t.firstSelectedKey)!==null&&j!==void 0?j:(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))}else!m&&b.current&&(b.current.scrollTop=w.current.top,b.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&b.current){let K=yr(r,t.focusedKey);K instanceof HTMLElement&&(!K.contains(document.activeElement)&&!f&&We(K),un()==="keyboard"&&rt(K,{containingElement:r.current}))}}},k=C=>{C.currentTarget.contains(C.relatedTarget)||t.setFocused(!1)},P=u.useRef(!1);it(r,Jo,f?C=>{let{detail:E}=C;C.stopPropagation(),t.setFocused(!0),(E==null?void 0:E.focusStrategy)==="first"&&(P.current=!0)}:void 0);let L=re(()=>{var C,E;let O=(E=(C=n.getFirstKey)===null||C===void 0?void 0:C.call(n))!==null&&E!==void 0?E:null;O==null?(Hi(r.current),t.collection.size>0&&(P.current=!1)):(t.setFocusedKey(O),P.current=!1)});Ul(()=>{P.current&&L()},[t.collection,L]);let I=re(()=>{t.collection.size>0&&(P.current=!1)});Ul(()=>{I()},[t.focusedKey,I]),it(r,ju,f?C=>{var E;C.stopPropagation(),t.setFocused(!1),!((E=C.detail)===null||E===void 0)&&E.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=u.useRef(o),A=u.useRef(!1);u.useEffect(()=>{if(V.current){var C,E;let j=null;var O;o==="first"&&(j=(O=(C=n.getFirstKey)===null||C===void 0?void 0:C.call(n))!==null&&O!==void 0?O:null);var F;o==="last"&&(j=(F=(E=n.getLastKey)===null||E===void 0?void 0:E.call(n))!==null&&F!==void 0?F:null);let K=t.selectedKeys;if(K.size){for(let W of K)if(t.canSelectItem(W)){j=W;break}}t.setFocused(!0),t.setFocusedKey(j),j==null&&!f&&r.current&&ke(r.current),t.collection.size>0&&(V.current=!1,A.current=!0)}});let h=u.useRef(t.focusedKey),S=u.useRef(null);u.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==h.current||A.current)&&b.current&&r.current){let C=un(),E=yr(r,t.focusedKey);if(!(E instanceof HTMLElement))return;(C==="keyboard"||A.current)&&(S.current&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{b.current&&(zu(b.current,E),C!=="virtual"&&rt(E,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&h.current!=null&&r.current&&ke(r.current),h.current=t.focusedKey,A.current=!1}),u.useEffect(()=>()=>{S.current&&cancelAnimationFrame(S.current)},[]),it(r,"react-aria-focus-scope-restore",C=>{C.preventDefault(),t.setFocused(!0)});let M={onKeyDown:D,onFocus:B,onBlur:k,onMouseDown(C){b.current===C.target&&C.preventDefault()}},{typeSelectProps:R}=If({keyboardDelegate:n,selectionManager:t});c||(M=z(R,M));let H;f||(H=t.focusedKey==null?0:-1);let x=kg(t.collection);return{collectionProps:z(M,{tabIndex:H,"data-collection":x})}}function Lf(e){let{id:t,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:l,focus:a,isDisabled:s,onAction:d,allowsDifferentPressOrigin:c,linkBehavior:f="action"}=e,p=cn();t=ue(t);let m=E=>{if(E.pointerType==="keyboard"&&vi(E))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&o.current){let O=n.getItemProps(r);p.open(o.current,E,O.href,O.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):E&&E.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||E&&(Rt(E)||E.pointerType==="touch"||E.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};u.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?Hi(o.current):a?a():document.activeElement!==o.current&&o.current&&ke(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),s=s||n.isDisabled(r);let b={};!l&&!s?b={tabIndex:r===n.focusedKey?0:-1,onFocus(E){E.target===o.current&&n.setFocusedKey(r)}}:s&&(b.onMouseDown=E=>{E.preventDefault()});let v=n.isLink(r)&&f==="override",$=n.isLink(r)&&f!=="selection"&&f!=="none",g=!s&&n.canSelectItem(r)&&!v,D=(d||$)&&!s,w=D&&(n.selectionBehavior==="replace"?!g:!g||n.isEmpty),B=D&&g&&n.selectionBehavior==="replace",k=w||B,P=u.useRef(null),L=k&&g,I=u.useRef(!1),V=u.useRef(!1),A=E=>{if(d&&d(),$&&o.current){let O=n.getItemProps(r);p.open(o.current,E,O.href,O.routerOptions)}},h={ref:o};i?(h.onPressStart=E=>{P.current=E.pointerType,I.current=L,E.pointerType==="keyboard"&&(!k||Wa())&&m(E)},c?(h.onPressUp=w?void 0:E=>{E.pointerType==="mouse"&&g&&m(E)},h.onPress=w?A:E=>{E.pointerType!=="keyboard"&&E.pointerType!=="mouse"&&g&&m(E)}):h.onPress=E=>{if(w||B&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!Ua())return;A(E)}else E.pointerType!=="keyboard"&&g&&m(E)}):(h.onPressStart=E=>{P.current=E.pointerType,I.current=L,V.current=w,g&&(E.pointerType==="mouse"&&!w||E.pointerType==="keyboard"&&(!D||Wa()))&&m(E)},h.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&k&&Ua()||E.pointerType==="mouse"&&V.current)&&(k?A(E):g&&m(E))}),b["data-collection"]=Bg(n.collection),b["data-key"]=r,h.preventFocusOnPress=l,l&&(h=z(h,{onPressStart(E){E.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(E){E.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:S,isPressed:M}=Ge(h),R=B?E=>{P.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),A(E))}:void 0,{longPressProps:H}=ns({isDisabled:!L,onLongPress(E){E.pointerType==="touch"&&(m(E),n.setSelectionBehavior("toggle"))}}),x=E=>{P.current==="touch"&&I.current&&E.preventDefault()},C=n.isLink(r)?E=>{zt.isOpening||E.preventDefault()}:void 0;return{itemProps:z(b,g||w||l&&!s?S:{},L?H:{},{onDoubleClick:R,onDragStartCapture:x,onClick:C,id:t},l?{onMouseDown:E=>E.preventDefault()}:void 0),isPressed:M,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:s,allowsSelection:g,hasAction:k}}function Ua(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Wa(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Ga{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?yr(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left+n.scrollLeft,y:i.top-o.top+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,o,i;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(o=t==null?void 0:t.offsetWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.offsetHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class Un{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let l=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(l,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Fn(n))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Fn(n))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let l=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(l,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Ga(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ga(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Nf(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:l}=e,a=Xr({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,d=u.useMemo(()=>i||new Un({collection:n,disabledKeys:r,disabledBehavior:s,ref:o,collator:a,layoutDelegate:l}),[i,l,n,r,o,a,s]),{collectionProps:c}=Mf({...e,ref:o,selectionManager:t,keyboardDelegate:d});return{listProps:c}}function Fg(e,t,n){let r=te(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Nf({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=Pt({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=ue(e.id);eo.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:d,fieldProps:c}=Ui({...e,id:s,labelElementType:"span"});return{labelProps:d,listBoxProps:z(r,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...z(c,l)})}}class Rg{build(t,n){return this.context=n,qa(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(u.isValidElement(n)&&n.type===u.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 o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];u.Children.forEach(n,l=>{l&&o.push(l)});let i=0;for(let l of o){let a=this.getFullNode({element:l,index:i},{});for(let s of a)i++,yield s}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let a=(l=i.key)!==null&&l!==void 0?l:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(u.isValidElement(t.element)&&t.element.type===u.Fragment){let $=[];u.Children.forEach(t.element.props.children,D=>{$.push(D)});var i;let g=(i=t.index)!==null&&i!==void 0?i:0;for(const D of $)yield*this.getFullNode({element:D,index:g++},n,r,o);return}let l=t.element;if(!l&&t.value&&n&&n.renderer){let $=this.cache.get(t.value);if($&&(!$.shouldInvalidate||!$.shouldInvalidate(this.context))){$.index=t.index,$.parentKey=o?o.key:null,yield $;return}l=n.renderer(t.value)}if(u.isValidElement(l)){let $=l.type;if(typeof $!="function"&&typeof $.getCollectionNode!="function"){let B=l.type;throw new Error(`Unknown element <${B}> in collection.`)}let g=$.getCollectionNode(l.props,this.context);var a;let D=(a=t.index)!==null&&a!==void 0?a:0,w=g.next();for(;!w.done&&w.value;){let B=w.value;t.index=D;var s;let k=(s=B.key)!==null&&s!==void 0?s:null;k==null&&(k=B.element?null:this.getKey(l,t,n,r));let L=[...this.getFullNode({...B,key:k,index:D,wrapper:Ig(t.wrapper,B.wrapper)},this.getChildState(n,B),r?`${r}${l.key}`:l.key,o)];for(let I of L){var d,c;I.value=(c=(d=B.value)!==null&&d!==void 0?d:t.value)!==null&&c!==void 0?c:null,I.value&&this.cache.set(I.value,I);var f;if(t.type&&I.type!==t.type)throw new Error(`Unsupported type <${Ko(I.type)}> in <${Ko((f=o==null?void 0:o.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${Ko(t.type)}> is supported.`);D++,yield I}w=g.next(L)}return}if(t.key==null||t.type==null)return;let p=this;var m,b;let v={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(m=t.value)!==null&&m!==void 0?m:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(b=t.textValue)!==null&&b!==void 0?b:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:qa(function*(){if(!t.hasChildNodes||!t.childNodes)return;let $=0;for(let g of t.childNodes()){g.key!=null&&(g.key=`${v.key}${g.key}`);let D=p.getFullNode({...g,index:$},p.getChildState(n,g),v.key,v);for(let w of D)$++,yield w}})};yield v}constructor(){this.cache=new WeakMap}}function qa(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Ig(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Ko(e){return e[0].toUpperCase()+e.slice(1)}function Mg(e,t,n){let r=u.useMemo(()=>new Rg,[]),{children:o,items:i,collection:l}=e;return u.useMemo(()=>{if(l)return l;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,l,n,t])}function to(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Lg(e){return Ng(e)}function Ng(e,t){for(let n of e)return n}function Kg(e){let t;for(let n of e)t=n;return t}function Vo(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Za(e,t),t],o=[...Za(e,n),n],i=r.slice(0,o.length).findIndex((l,a)=>l!==o[a]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===t)>=0,-1)}function Za(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Ya=new WeakMap;function Kf(e){let t=Ya.get(e);if(t!=null)return t;let n=0,r=o=>{for(let i of o)i.type==="section"?r(to(i,e)):i.type==="item"&&n++};return r(e),Ya.set(e,n),n}function Vg(e,t,n){var r,o;let{key:i}=e,l=eo.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.selectionManager.isDisabled(i);var d;let c=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(i);var f;let p=(f=e.shouldSelectOnPressUp)!==null&&f!==void 0?f:l==null?void 0:l.shouldSelectOnPressUp;var m;let b=(m=e.shouldFocusOnHover)!==null&&m!==void 0?m:l==null?void 0:l.shouldFocusOnHover;var v;let $=(v=e.shouldUseVirtualFocus)!==null&&v!==void 0?v:l==null?void 0:l.shouldUseVirtualFocus;var g;let D=(g=e.isVirtualized)!==null&&g!==void 0?g:l==null?void 0:l.isVirtualized,w=on(),B=on(),k={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};ut()&&Di()||(k["aria-label"]=e["aria-label"],k["aria-labelledby"]=w,k["aria-describedby"]=B);let P=t.collection.getItem(i);if(D){let C=Number(P==null?void 0:P.index);k["aria-posinset"]=Number.isNaN(C)?void 0:C+1,k["aria-setsize"]=Kf(t.collection)}let L=l!=null&&l.onAction?()=>{var C;return l==null||(C=l.onAction)===null||C===void 0?void 0:C.call(l,i)}:void 0,I=Ff(t,i),{itemProps:V,isPressed:A,isFocused:h,hasAction:S,allowsSelection:M}=Lf({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&b,isVirtualized:D,shouldUseVirtualFocus:$,isDisabled:s,onAction:L||!(P==null||(r=P.props)===null||r===void 0)&&r.onAction?Ue(P==null||(o=P.props)===null||o===void 0?void 0:o.onAction,L):void 0,linkBehavior:l==null?void 0:l.linkBehavior,id:I}),{hoverProps:R}=je({isDisabled:s||!b,onHoverStart(){an()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),H=te(P==null?void 0:P.props);delete H.id;let x=Ku(P==null?void 0:P.props);return{optionProps:{...k,...z(H,V,R,x),id:I},labelProps:{id:w},descriptionProps:{id:B},isFocused:h,isFocusVisible:h&&t.selectionManager.isFocused&&an(),isSelected:c,isDisabled:s,isPressed:A,allowsSelection:M,hasAction:S}}function Og(e){let{heading:t,"aria-label":n}=e,r=ue();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Vf={};Vf={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Of={};Of={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var zf={};zf={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var jf={};jf={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Hf={};Hf={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var _f={};_f={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Uf={};Uf={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Wf={};Wf={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Gf={};Gf={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var qf={};qf={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Zf={};Zf={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Yf={};Yf={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Jf={};Jf={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Xf={};Xf={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Qf={};Qf={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var ep={};ep={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var tp={};tp={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var np={};np={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var rp={};rp={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var op={};op={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var ip={};ip={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var lp={};lp={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var ap={};ap={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var up={};up={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var sp={};sp={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var dp={};dp={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var cp={};cp={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var fp={};fp={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var pp={};pp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var mp={};mp={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var bp={};bp={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var hp={};hp={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var vp={};vp={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var $p={};$p={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var gp={};gp={"ar-AE":Vf,"bg-BG":Of,"cs-CZ":zf,"da-DK":jf,"de-DE":Hf,"el-GR":_f,"en-US":Uf,"es-ES":Wf,"et-EE":Gf,"fi-FI":qf,"fr-FR":Zf,"he-IL":Yf,"hr-HR":Jf,"hu-HU":Xf,"it-IT":Qf,"ja-JP":ep,"ko-KR":tp,"lt-LT":np,"lv-LV":rp,"nb-NO":op,"nl-NL":ip,"pl-PL":lp,"pt-BR":ap,"pt-PT":up,"ro-RO":sp,"ru-RU":dp,"sk-SK":cp,"sl-SI":fp,"sr-SP":pp,"sv-SE":mp,"tr-TR":bp,"uk-UA":hp,"zh-CN":vp,"zh-TW":$p};function zg(e){return e&&e.__esModule?e.default:e}function yp(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,l=ue(),{triggerProps:a,overlayProps:s}=Wc({type:r},t,n),d=m=>{if(!o&&!(i==="longPress"&&!m.altKey)&&n&&n.current)switch(m.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation()}},c=qe(zg(gp),"@react-aria/menu"),{longPressProps:f}=ns({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!o&&(We(m.target),t.open(m.pointerType==="virtual"?"first":null))},onPress(m){m.pointerType==="touch"&&!o&&(We(m.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?p:f,id:l,onKeyDown:d},menuProps:{...s,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function jg(e){return e&&e.__esModule?e.default:e}function Hg(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:l,layoutDelegate:a,shouldFocusWrap:s,isReadOnly:d,isDisabled:c}=e,f=u.useRef(null);n=n??f;let p=qe(jg(jc),"@react-aria/combobox"),{menuTriggerProps:m,menuProps:b}=yp({type:"listbox",isDisabled:c||d},t,n);eo.set(t,{id:b.id});let{collection:v}=t,{disabledKeys:$}=t.selectionManager,g=u.useMemo(()=>l||new Un({collection:v,disabledKeys:$,ref:i,layoutDelegate:a}),[l,a,v,$,i]),{collectionProps:D}=Mf({selectionManager:t.selectionManager,keyboardDelegate:g,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),w=cn(),B=U=>{if(!U.nativeEvent.isComposing)switch(U.key){case"Enter":case"Tab":if(t.isOpen&&U.key==="Enter"&&U.preventDefault(),t.isOpen&&i.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let N=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(U.key==="Enter"&&N instanceof HTMLAnchorElement){let G=t.collection.getItem(t.selectionManager.focusedKey);G&&w.open(N,U,G.props.href,G.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&U.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},k=U=>{var N;let G=(n==null?void 0:n.current)&&n.current===U.relatedTarget,oe=(N=r.current)===null||N===void 0?void 0:N.contains(U.relatedTarget);G||oe||(e.onBlur&&e.onBlur(U),t.setFocused(!1))},P=U=>{t.isFocused||(e.onFocus&&e.onFocus(U),t.setFocused(!0))},{isInvalid:L,validationErrors:I,validationDetails:V}=t.displayValidation,{labelProps:A,inputProps:h,descriptionProps:S,errorMessageProps:M}=_n({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Ue(t.isOpen&&D.onKeyDown,B,e.onKeyDown),onBlur:k,value:t.inputValue,onFocus:P,autoComplete:"off",validate:void 0,[Nn]:t},o),R=U=>{if(U.pointerType==="touch"){var N;(N=o.current)===null||N===void 0||N.focus(),t.toggle(null,"manual")}},H=U=>{if(U.pointerType!=="touch"){var N;(N=o.current)===null||N===void 0||N.focus(),t.toggle(U.pointerType==="keyboard"||U.pointerType==="virtual"?"first":null,"manual")}},x=ln({id:m.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),C=ln({id:b.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),E=u.useRef(0),O=U=>{if(c||d)return;if(U.timeStamp-E.current<500){var N;U.preventDefault(),(N=o.current)===null||N===void 0||N.focus();return}let G=U.target.getBoundingClientRect(),oe=U.changedTouches[0],De=Math.ceil(G.left+.5*G.width),He=Math.ceil(G.top+.5*G.height);if(oe.clientX===De&&oe.clientY===He){var mt;U.preventDefault(),(mt=o.current)===null||mt===void 0||mt.focus(),t.toggle(null,"manual"),E.current=U.timeStamp}},F=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var j;let K=(j=F==null?void 0:F.parentKey)!==null&&j!==void 0?j:null;var W;let q=(W=t.selectionManager.focusedKey)!==null&&W!==void 0?W:null,Q=u.useRef(K),ye=u.useRef(q);u.useEffect(()=>{if(br()&&F!=null&&q!=null&&q!==ye.current){let N=t.selectionManager.isSelected(q),G=K!=null?t.collection.getItem(K):null,oe=(G==null?void 0:G["aria-label"])||(typeof(G==null?void 0:G.rendered)=="string"?G.rendered:"")||"";var U;let De=p.format("focusAnnouncement",{isGroupChange:(U=G&&K!==Q.current)!==null&&U!==void 0?U:!1,groupTitle:oe,groupCount:G?[...to(G,t.collection)].length:0,optionText:F["aria-label"]||F.textValue||"",isSelected:N});Ot(De)}Q.current=K,ye.current=q});let se=Kf(t.collection),_=u.useRef(se),ee=u.useRef(t.isOpen);u.useEffect(()=>{let U=t.isOpen!==ee.current&&(t.selectionManager.focusedKey==null||br());if(t.isOpen&&(U||se!==_.current)){let N=p.format("countAnnouncement",{optionCount:se});Ot(N)}_.current=se,ee.current=t.isOpen});let Y=u.useRef(t.selectedKey);return u.useEffect(()=>{if(br()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Y.current){let U=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",N=p.format("selectedAnnouncement",{optionText:U});Ot(N)}Y.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return Tf([o.current,r.current].filter(U=>U!=null))},[t.isOpen,o,r]),Ou(()=>{!F&&o.current&&$e(X(o.current))===o.current&&_i(o.current,null)},[F]),{labelProps:A,buttonProps:{...m,...x,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:R,onPressStart:H,isDisabled:c||d},inputProps:z(h,{role:"combobox","aria-expanded":m["aria-expanded"],"aria-controls":t.isOpen?b.id:void 0,"aria-autocomplete":"list","aria-activedescendant":F?Ff(t,F.key):void 0,onTouchEnd:O,autoCorrect:"off",spellCheck:"false"}),listBoxProps:z(b,C,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:S,errorMessageProps:M,isInvalid:L,validationErrors:I,validationDetails:V}}var xp={};xp={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Cp={};Cp={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Dp={};Dp={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Ep={};Ep={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Pp={};Pp={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var wp={};wp={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Sp={};Sp={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var kp={};kp={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Bp={};Bp={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var Tp={};Tp={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Ap={};Ap={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Fp={};Fp={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Rp={};Rp={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Ip={};Ip={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Mp={};Mp={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Lp={};Lp={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Np={};Np={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var Kp={};Kp={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var Vp={};Vp={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var Op={};Op={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var zp={};zp={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var jp={};jp={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var Hp={};Hp={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var _p={};_p={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var Up={};Up={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var Wp={};Wp={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var Gp={};Gp={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var qp={};qp={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var Zp={};Zp={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var Yp={};Yp={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var Jp={};Jp={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var Xp={};Xp={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var Qp={};Qp={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var e0={};e0={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var qi={};qi={"ar-AE":xp,"bg-BG":Cp,"cs-CZ":Dp,"da-DK":Ep,"de-DE":Pp,"el-GR":wp,"en-US":Sp,"es-ES":kp,"et-EE":Bp,"fi-FI":Tp,"fr-FR":Ap,"he-IL":Fp,"hr-HR":Rp,"hu-HU":Ip,"it-IT":Mp,"ja-JP":Lp,"ko-KR":Np,"lt-LT":Kp,"lv-LV":Vp,"nb-NO":Op,"nl-NL":zp,"pl-PL":jp,"pt-BR":Hp,"pt-PT":_p,"ro-RO":Up,"ru-RU":Wp,"sk-SK":Gp,"sl-SI":qp,"sr-SP":Zp,"sv-SE":Yp,"tr-TR":Jp,"uk-UA":Xp,"zh-CN":Qp,"zh-TW":e0};function _g(e,t,n){let{direction:r}=Pe(),o=u.useMemo(()=>zi(t),[t]),i=s=>{if(s.currentTarget.contains(s.target)&&(s.altKey&&(s.key==="ArrowDown"||s.key==="ArrowUp")&&"setOpen"in e&&(s.preventDefault(),s.stopPropagation(),e.setOpen(!0)),!n))switch(s.key){case"ArrowLeft":if(s.preventDefault(),s.stopPropagation(),r==="rtl"){if(t.current){let d=s.target,c=Ja(t.current,d.getBoundingClientRect().left,-1);c&&c.focus()}}else o.focusPrevious();break;case"ArrowRight":if(s.preventDefault(),s.stopPropagation(),r==="rtl"){if(t.current){let d=s.target,c=Ja(t.current,d.getBoundingClientRect().left,1);c&&c.focus()}}else o.focusNext();break}},l=()=>{var s;if(!t.current)return;let d=(s=window.event)===null||s===void 0?void 0:s.target,c=Ce(t.current,{tabbable:!0});if(d&&(c.currentNode=d,d=c.previousNode()),!d){let f;do f=c.lastChild(),f&&(d=f);while(f)}for(;d!=null&&d.hasAttribute("data-placeholder");){let f=c.previousNode();if(f&&f.hasAttribute("data-placeholder"))d=f;else break}d&&d.focus()},{pressProps:a}=Ge({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(s){s.pointerType==="mouse"&&l()},onPress(s){(s.pointerType==="touch"||s.pointerType==="pen")&&l()}});return z(a,{onKeyDown:i})}function Ja(e,t,n){let r=Ce(e,{tabbable:!0}),o=r.nextNode(),i=null,l=1/0;for(;o;){let s=o.getBoundingClientRect().left-t,d=Math.abs(s);Math.sign(s)===n&&d<l&&(i=o,l=d),o=r.nextNode()}return i}function Ug(e){return e&&e.__esModule?e.default:e}const t0=new WeakMap,Oo="__role_"+Date.now(),Wg="__focusManager_"+Date.now();function n0(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:l}=t.displayValidation,{labelProps:a,fieldProps:s,descriptionProps:d,errorMessageProps:c}=pn({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=Pt({...e,onFocusWithin(A){var h;f.current=t.value,(h=e.onFocus)===null||h===void 0||h.call(e,A)},onBlurWithin:A=>{var h;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(h=e.onBlur)===null||h===void 0||h.call(e,A)},onFocusWithinChange:e.onFocusChange}),m=qe(Ug(qi),"@react-aria/datepicker"),b=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",v=t.maxGranularity==="hour"?"time":"date",$=t.value?m.format(b,{[v]:t.formatValue({month:"long"})}):"",g=Wr($),D=e[Oo]==="presentation"?s["aria-describedby"]:[g["aria-describedby"],s["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[Wg],B=u.useMemo(()=>w||zi(n),[w,n]),k=_g(t,n,e[Oo]==="presentation");t0.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[a.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:D,focusManager:B});let P=u.useRef(e.autoFocus),L;e[Oo]==="presentation"?L={role:"presentation"}:L=z(s,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":D}),u.useEffect(()=>{P.current&&B.focusFirst(),P.current=!1},[B]),fn(e.inputRef,t.value,t.setValue),Hn({...e,focus(){B.focusFirst()}},t,e.inputRef);let I={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(I.type="text",I.hidden=!0,I.required=e.isRequired,I.onChange=()=>{});let V=te(e);return{labelProps:{...a,onClick:()=>{B.focusFirst()}},fieldProps:z(V,L,k,p,{onKeyDown(A){e.onKeyDown&&e.onKeyDown(A)},onKeyUp(A){e.onKeyUp&&e.onKeyUp(A)},style:{unicodeBidi:"isolate"}}),inputProps:I,descriptionProps:d,errorMessageProps:c,isInvalid:o,validationErrors:i,validationDetails:l}}function Gg(e,t,n){var r;let o=n0(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function qg(e){return e&&e.__esModule?e.default:e}function Zg(){let{locale:e}=Pe(),t=is(qg(qi),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Yg(e,t)}},[e,t])}class Yg{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function Jg(e,t,n){let r=u.useRef(""),{locale:o,direction:i}=Pe(),l=Zg(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:d,focusManager:c}=t0.get(t),f=e.isPlaceholder?"":e.text,p=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=dr({month:"long",timeZone:p.timeZone}),b=dr({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if(e.type==="month"&&!e.isPlaceholder){let F=m.format(t.dateValue);f=F!==f?`${f} – ${F}`:F}else e.type==="hour"&&!e.isPlaceholder&&(f=b.format(t.dateValue));let{spinButtonProps:v}=wd({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=u.useMemo(()=>new Vi(o,{maximumFractionDigits:0}),[o]),g=()=>{if(e.text===e.placeholder&&c.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let F=e.text.slice(0,-1),j=$.parse(F);F=j===0?"":F,F.length===0||j===0?t.clearSegment(e.type):t.setSegment(e.type,j),r.current=F}else e.type==="dayPeriod"&&t.clearSegment(e.type)},D=F=>{if(F.key==="a"&&(ut()?F.metaKey:F.ctrlKey)&&F.preventDefault(),!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey))switch(F.key){case"Backspace":case"Delete":F.preventDefault(),F.stopPropagation(),g();break}},{startsWith:w}=Oi({sensitivity:"base"}),B=dr({hour:"numeric",hour12:!0}),k=u.useMemo(()=>{let F=new Date;return F.setHours(0),B.formatToParts(F).find(j=>j.type==="dayPeriod").value},[B]),P=u.useMemo(()=>{let F=new Date;return F.setHours(12),B.formatToParts(F).find(j=>j.type==="dayPeriod").value},[B]),L=dr({year:"numeric",era:"narrow",timeZone:"UTC"}),I=u.useMemo(()=>{if(e.type!=="era")return[];let F=Be(new ge(1,1,1),t.calendar),j=t.calendar.getEras().map(W=>{let q=F.set({year:1,month:1,day:1,era:W}).toDate("UTC"),ye=L.formatToParts(q).find(se=>se.type==="era").value;return{era:W,formatted:ye}}),K=Xg(j.map(W=>W.formatted));if(K)for(let W of j)W.formatted=W.formatted.slice(K);return j},[L,t.calendar,e.type]),V=F=>{if(t.isDisabled||t.isReadOnly)return;let j=r.current+F;switch(e.type){case"dayPeriod":if(w(k,F))t.setSegment("dayPeriod",0);else if(w(P,F))t.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let K=I.find(W=>w(W.formatted,F));K&&(t.setSegment("era",K.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(j))return;let K=$.parse(j),W=K,q=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":K>11&&(W=$.parse(F));break;case"h12":q=!1,K>12&&(W=$.parse(F));break}e.value!==void 0&&e.value>=12&&K>1&&(K+=12)}else e.maxValue!==void 0&&K>e.maxValue&&(W=$.parse(F));if(isNaN(K))return;let Q=W!==0||q;Q&&t.setSegment(e.type,W),e.maxValue!==void 0&&(+(K+"0")>e.maxValue||j.length>=String(e.maxValue).length)?(r.current="",Q&&c.focusNext()):r.current=j;break}}},A=()=>{r.current="",n.current&&rt(n.current,{containingElement:Je(n.current)});let F=window.getSelection();F==null||F.collapse(n.current)},h=u.useRef(typeof document<"u"?document:null);it(h,"selectionchange",()=>{var F;let j=window.getSelection();j!=null&&j.anchorNode&&(!((F=n.current)===null||F===void 0)&&F.contains(j==null?void 0:j.anchorNode))&&j.collapse(n.current)});let S=u.useRef("");it(n,"beforeinput",F=>{if(n.current)switch(F.preventDefault(),F.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&g();break;case"insertCompositionText":S.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:F.data!=null&&V(F.data);break}}),it(n,"input",F=>{let{inputType:j,data:K}=F;switch(j){case"insertCompositionText":n.current&&(n.current.textContent=S.current),K!=null&&(w(k,K)||w(P,K))&&V(K);break}}),Z(()=>{let F=n.current;return()=>{document.activeElement===F&&(c.focusPrevious()||c.focusNext())}},[n,c]);let M=dn()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=u.useMemo(()=>t.segments.find(F=>F.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(d=void 0);let H=ue(),x=!t.isDisabled&&!t.isReadOnly&&e.isEditable,C=e.type==="literal"?"":l.of(e.type),E=ln({"aria-label":`${C}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let O={caretColor:"transparent"};if(i==="rtl"){O.unicodeBidi="embed";let F=p[e.type];(F==="numeric"||F==="2-digit")&&(O.direction="ltr")}return{segmentProps:z(v,E,{id:H,...M,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:x,suppressContentEditableWarning:x,spellCheck:x?"false":void 0,autoCorrect:x?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:x?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!x?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:D,onFocus:A,style:O,onPointerDown(F){F.stopPropagation()},onMouseDown(F){F.stopPropagation()}})}}function Xg(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function Qg(e,t){let{role:n="dialog"}=e,r=on();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ke(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),ke(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),wg(),{dialogProps:{...te(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function ey(e,t,n){let{isDisabled:r}=e,o=ue(),i=ue(),a=!Et()&&"onbeforematch"in document.body,s=u.useRef(null),d=u.useCallback(()=>{s.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute("hidden","until-found")}),_t.flushSync(()=>{t.toggle()})},[n,t]);return it(n,"beforematch",a?d:null),Z(()=>{s.current&&cancelAnimationFrame(s.current),a&&n.current&&!r&&(t.isExpanded?n.current.removeAttribute("hidden"):n.current.setAttribute("hidden","until-found"))},[r,n,t.isExpanded,a]),u.useEffect(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[]),{buttonProps:{id:o,"aria-expanded":t.isExpanded,"aria-controls":i,onPress:c=>{!r&&c.pointerType!=="keyboard"&&t.toggle()},isDisabled:r,onPressStart(c){c.pointerType==="keyboard"&&!r&&t.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":o,"aria-hidden":!t.isExpanded,hidden:a?!0:!t.isExpanded}}}const Zi=new WeakMap;function Xa(e,t){var n;let{id:r}=(n=Zi.get(e))!==null&&n!==void 0?n:{};if(!r)throw new Error("Unknown list");return`${r}-${ty(t)}`}function ty(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var r0={};r0={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var o0={};o0={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var i0={};i0={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var l0={};l0={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var a0={};a0={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var u0={};u0={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var s0={};s0={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var d0={};d0={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var c0={};c0={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var f0={};f0={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var p0={};p0={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var m0={};m0={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var b0={};b0={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var h0={};h0={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var v0={};v0={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var $0={};$0={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var g0={};g0={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var y0={};y0={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var x0={};x0={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var C0={};C0={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var D0={};D0={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var E0={};E0={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var P0={};P0={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var w0={};w0={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var S0={};S0={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var k0={};k0={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var B0={};B0={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var T0={};T0={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var A0={};A0={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var F0={};F0={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var R0={};R0={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var I0={};I0={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var M0={};M0={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var L0={};L0={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var Yi={};Yi={"ar-AE":r0,"bg-BG":o0,"cs-CZ":i0,"da-DK":l0,"de-DE":a0,"el-GR":u0,"en-US":s0,"es-ES":d0,"et-EE":c0,"fi-FI":f0,"fr-FR":p0,"he-IL":m0,"hr-HR":b0,"hu-HU":h0,"it-IT":v0,"ja-JP":$0,"ko-KR":g0,"lt-LT":y0,"lv-LV":x0,"nb-NO":C0,"nl-NL":D0,"pl-PL":E0,"pt-BR":P0,"pt-PT":w0,"ro-RO":S0,"ru-RU":k0,"sk-SK":B0,"sl-SI":T0,"sr-SP":A0,"sv-SE":F0,"tr-TR":R0,"uk-UA":I0,"zh-CN":M0,"zh-TW":L0};function ny(e){return e&&e.__esModule?e.default:e}function ry(e,t){let{getRowText:n=a=>{var s,d,c,f;return(f=(s=(d=t.collection).getTextValue)===null||s===void 0?void 0:s.call(d,a))!==null&&f!==void 0?f:(c=t.collection.getItem(a))===null||c===void 0?void 0:c.textValue}}=e,r=qe(ny(Yi),"@react-aria/grid"),o=t.selectionManager.rawSelection,i=u.useRef(o),l=re(()=>{var a;if(!t.selectionManager.isFocused||o===i.current){i.current=o;return}let s=Qa(o,i.current),d=Qa(i.current,o),c=t.selectionManager.selectionBehavior==="replace",f=[];if(t.selectionManager.selectedKeys.size===1&&c){let p=t.selectionManager.selectedKeys.keys().next().value;if(p!=null&&t.collection.getItem(p)){let m=n(p);m&&f.push(r.format("selectedItem",{item:m}))}}else if(s.size===1&&d.size===0){let p=s.keys().next().value;if(p!=null){let m=n(p);m&&f.push(r.format("selectedItem",{item:m}))}}else if(d.size===1&&s.size===0){let p=d.keys().next().value;if(p!=null&&t.collection.getItem(p)){let m=n(p);m&&f.push(r.format("deselectedItem",{item:m}))}}t.selectionManager.selectionMode==="multiple"&&(f.length===0||o==="all"||o.size>1||i.current==="all"||((a=i.current)===null||a===void 0?void 0:a.size)>1)&&f.push(o==="all"?r.format("selectedAll"):r.format("selectedCount",{count:o.size})),f.length>0&&Ot(f.join(" ")),i.current=o});Ou(()=>{if(t.selectionManager.isFocused)l();else{let a=requestAnimationFrame(l);return()=>cancelAnimationFrame(a)}},[o,t.selectionManager.isFocused])}function Qa(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function oy(e){return e&&e.__esModule?e.default:e}function iy(e){let t=qe(oy(Yi),"@react-aria/grid"),n=ts(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,o=u.useMemo(()=>{let l=e.selectionManager.selectionMode,a=e.selectionManager.selectionBehavior,s;return r&&(s=t.format("longPressToSelect")),a==="replace"&&l!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return Wr(o)}function ly(e,t,n){let{isVirtualized:r,keyboardDelegate:o,layoutDelegate:i,onAction:l,disallowTypeAhead:a,linkBehavior:s="action",keyboardNavigationBehavior:d="arrow",escapeKeyBehavior:c="clearSelection",shouldSelectOnPressUp:f}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:p}=Nf({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:o,layoutDelegate:i,isVirtualized:r,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:a,autoFocus:e.autoFocus,escapeKeyBehavior:c}),m=ue(e.id);Zi.set(t,{id:m,onAction:l,linkBehavior:s,keyboardNavigationBehavior:d,shouldSelectOnPressUp:f});let b=iy({selectionManager:t.selectionManager,hasItemActions:!!l}),v=M$(n,{isDisabled:t.collection.size!==0}),$=te(e,{labelable:!0}),g=z($,{role:"grid",id:m,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:v?-1:0}:p,b);return r&&(g["aria-rowcount"]=t.collection.size,g["aria-colcount"]=1),ry({},t),{gridProps:g}}const eu={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function ay(e,t,n){var r,o;let{node:i,isVirtualized:l}=e,{direction:a}=Pe(),{onAction:s,linkBehavior:d,keyboardNavigationBehavior:c,shouldSelectOnPressUp:f}=Zi.get(t),p=on(),m=u.useRef(null),b=()=>{var C;n.current!==null&&(m.current!=null&&i.key!==m.current||!(!((C=n.current)===null||C===void 0)&&C.contains(document.activeElement)))&&ke(n.current)},v={},$=e.hasChildItems,g=t.selectionManager.isLink(i.key);if(i!=null&&"expandedKeys"in t){var D,w,B;let C=(D=(w=t.collection).getChildren)===null||D===void 0?void 0:D.call(w,i.key);$=$||[...C??[]].length>1,s==null&&!g&&t.selectionManager.selectionMode==="none"&&$&&(s=()=>t.toggleKey(i.key));let E=$?t.expandedKeys.has(i.key):void 0,O=1;var k;if(i.level>0&&(i==null?void 0:i.parentKey)!=null){let F=t.collection.getItem(i.parentKey);if(F){var P,L;let j=(P=(L=t.collection).getChildren)===null||P===void 0?void 0:P.call(L,F.key);O=Kg(j).index+1}}else O=((k=(B=[...t.collection].filter(F=>F.level===0).at(-1))===null||B===void 0?void 0:B.index)!==null&&k!==void 0?k:0)+1;v={"aria-expanded":E,"aria-level":i.level+1,"aria-posinset":(i==null?void 0:i.index)+1,"aria-setsize":O}}let{itemProps:I,...V}=Lf({selectionManager:t.selectionManager,key:i.key,ref:n,isVirtualized:l,shouldSelectOnPressUp:e.shouldSelectOnPressUp||f,onAction:s||!((r=i.props)===null||r===void 0)&&r.onAction?Ue((o=i.props)===null||o===void 0?void 0:o.onAction,s?()=>s(i.key):void 0):void 0,focus:b,linkBehavior:d}),A=C=>{if(!C.currentTarget.contains(C.target)||!n.current||!document.activeElement)return;let E=Ce(n.current);if(E.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===n.current){if(C.key===eu.expand[a]&&t.selectionManager.focusedKey===i.key&&$&&!t.expandedKeys.has(i.key)){t.toggleKey(i.key),C.stopPropagation();return}else if(C.key===eu.collapse[a]&&t.selectionManager.focusedKey===i.key&&$&&t.expandedKeys.has(i.key)){t.toggleKey(i.key),C.stopPropagation();return}}switch(C.key){case"ArrowLeft":if(c==="arrow"){let F=a==="rtl"?E.nextNode():E.previousNode();if(F)C.preventDefault(),C.stopPropagation(),ke(F),rt(F,{containingElement:Je(n.current)});else if(C.preventDefault(),C.stopPropagation(),a==="rtl")ke(n.current),rt(n.current,{containingElement:Je(n.current)});else{E.currentNode=n.current;let j=tu(E);j&&(ke(j),rt(j,{containingElement:Je(n.current)}))}}break;case"ArrowRight":if(c==="arrow"){let F=a==="rtl"?E.previousNode():E.nextNode();if(F)C.preventDefault(),C.stopPropagation(),ke(F),rt(F,{containingElement:Je(n.current)});else if(C.preventDefault(),C.stopPropagation(),a==="ltr")ke(n.current),rt(n.current,{containingElement:Je(n.current)});else{E.currentNode=n.current;let j=tu(E);j&&(ke(j),rt(j,{containingElement:Je(n.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!C.altKey&&n.current.contains(C.target)){var O;C.stopPropagation(),C.preventDefault(),(O=n.current.parentElement)===null||O===void 0||O.dispatchEvent(new KeyboardEvent(C.nativeEvent.type,C.nativeEvent))}break}},h=C=>{if(m.current=i.key,C.target!==n.current){an()||t.selectionManager.setFocusedKey(i.key);return}},S=C=>{if(!(!C.currentTarget.contains(C.target)||!n.current||!document.activeElement))switch(C.key){case"Tab":if(c==="tab"){let E=Ce(n.current,{tabbable:!0});E.currentNode=document.activeElement,(C.shiftKey?E.previousNode():E.nextNode())&&C.stopPropagation()}}},M=Nu(i.props),R=V.hasAction?M:{},H=z(I,R,{role:"row",onKeyDownCapture:A,onKeyDown:S,onFocus:h,"aria-label":i.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(i.key)?t.selectionManager.isSelected(i.key):void 0,"aria-disabled":t.selectionManager.isDisabled(i.key)||void 0,"aria-labelledby":p&&i.textValue?`${Xa(t,i.key)} ${p}`:void 0,id:Xa(t,i.key)});l&&(H["aria-rowindex"]=i.index+1);let x={role:"gridcell","aria-colindex":1};return{rowProps:{...z(H,v)},gridCellProps:x,descriptionProps:{id:p},...V}}function tu(e){let t=null,n=null;do n=e.lastChild(),n&&(t=n);while(n);return t}function uy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pr={exports:{}},zo={};/**
|
|
2
8
|
* @license React
|
|
3
9
|
* use-sync-external-store-shim.production.js
|
|
4
10
|
*
|
|
@@ -6,7 +12,7 @@
|
|
|
6
12
|
*
|
|
7
13
|
* This source code is licensed under the MIT license found in the
|
|
8
14
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
15
|
+
*/var nu;function sy(){if(nu)return zo;nu=1;var e=u;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function a(f,p){var m=p(),b=r({inst:{value:m,getSnapshot:p}}),v=b[0].inst,$=b[1];return i(function(){v.value=m,v.getSnapshot=p,s(v)&&$({inst:v})},[f,m,p]),o(function(){return s(v)&&$({inst:v}),f(function(){s(v)&&$({inst:v})})},[f]),l(m),m}function s(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function d(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return zo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,zo}var jo={};/**
|
|
10
16
|
* @license React
|
|
11
17
|
* use-sync-external-store-shim.development.js
|
|
12
18
|
*
|
|
@@ -14,24 +20,24 @@
|
|
|
14
20
|
*
|
|
15
21
|
* This source code is licensed under the MIT license found in the
|
|
16
22
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var wl;function ag(){return wl||(wl=1,process.env.NODE_ENV!=="production"&&function(){function e(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}function t(m,b){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 g=b();if(!c){var y=b();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}y=o({inst:{value:g,getSnapshot:b}});var $=y[0].inst,E=y[1];return s(function(){$.value=g,$.getSnapshot=b,r($)&&E({inst:$})},[m,g,b]),l(function(){return r($)&&E({inst:$}),m(function(){r($)&&E({inst:$})})},[m]),d(g),g}function r(m){var b=m.getSnapshot;m=m.value;try{var g=b();return!a(m,g)}catch{return!0}}function n(m,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=u,a=typeof Object.is=="function"?Object.is:e,o=i.useState,l=i.useEffect,s=i.useLayoutEffect,d=i.useDebugValue,f=!1,c=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;di.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())}()),di}var Sl;function og(){return Sl||(Sl=1,process.env.NODE_ENV==="production"?jr.exports=ig():jr.exports=ag()),jr.exports}var lg=og();function ug(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:"percent"}}=e,l=q(e,{labelable:!0}),{labelProps:s,fieldProps:d}=la({...e,labelElementType:"span"});t=$t(t,r,n);let f=(t-r)/(n-r),c=Ti(o);if(!a&&!i){let p=o.style==="percent"?f:t;i=c.format(p)}return{progressBarProps:N(l,{...d,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:s}}const f0=new WeakMap;function sg(e,t,r){let{value:n,children:i,"aria-label":a,"aria-labelledby":o}=e;const l=e.isDisabled||t.isDisabled;let s=i!=null,d=a!=null||o!=null;!s&&!d&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let f=t.selectedValue===n,c=M=>{M.stopPropagation(),t.setSelectedValue(n)},{pressProps:p,isPressed:m}=je({isDisabled:l}),{pressProps:b,isPressed:g}=je({isDisabled:l,onPress(){var M;t.setSelectedValue(n),(M=r.current)===null||M===void 0||M.focus()}}),{focusableProps:y}=ct(N(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),$=N(p,y),E=q(e,{labelable:!0}),x=-1;t.selectedValue!=null?t.selectedValue===n&&(x=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(x=0),l&&(x=void 0);let{name:B,descriptionId:w,errorMessageId:D,validationBehavior:I}=f0.get(t);return Ut(r,t.selectedValue,t.setSelectedValue),xr({validationBehavior:I},t,r),{labelProps:N(b,{onClick:M=>M.preventDefault()}),inputProps:N(E,{...$,type:"radio",name:B,tabIndex:x,disabled:l,required:t.isRequired&&I==="native",checked:f,value:n,onChange:c,"aria-describedby":[e["aria-describedby"],t.isInvalid?D:null,w].filter(Boolean).join(" ")||void 0}),isDisabled:l,isSelected:f,isPressed:m||g}}function dg(e,t){let{name:r,isReadOnly:n,isRequired:i,isDisabled:a,orientation:o="vertical",validationBehavior:l="aria"}=e,{direction:s}=be(),{isInvalid:d,validationErrors:f,validationDetails:c}=t.displayValidation,{labelProps:p,fieldProps:m,descriptionProps:b,errorMessageProps:g}=Gt({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||f}),y=q(e,{labelable:!0}),{focusWithinProps:$}=ft({onBlurWithin(B){var w;(w=e.onBlur)===null||w===void 0||w.call(e,B),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),E=B=>{let w;switch(B.key){case"ArrowRight":s==="rtl"&&o!=="vertical"?w="prev":w="next";break;case"ArrowLeft":s==="rtl"&&o!=="vertical"?w="next":w="prev";break;case"ArrowDown":w="next";break;case"ArrowUp":w="prev";break;default:return}B.preventDefault();let D=pe(B.currentTarget,{from:B.target}),I;w==="next"?(I=D.nextNode(),I||(D.currentNode=B.currentTarget,I=D.firstChild())):(I=D.previousNode(),I||(D.currentNode=B.currentTarget,I=D.lastChild())),I&&(I.focus(),t.setSelectedValue(I.value))},x=J(r);return f0.set(t,{name:x,descriptionId:b.id,errorMessageId:g.id,validationBehavior:l}),{radioGroupProps:N(y,{role:"radiogroup",onKeyDown:E,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":i||void 0,"aria-disabled":a||void 0,"aria-orientation":o,...m,...$}),labelProps:p,descriptionProps:b,errorMessageProps:g,isInvalid:d,validationErrors:f,validationDetails:c}}const p0=new WeakMap;function cg(e,t,r){let{keyboardDelegate:n,isDisabled:i,isRequired:a,name:o,validationBehavior:l="aria"}=e,s=Sn({usage:"search",sensitivity:"base"}),d=u.useMemo(()=>n||new Bn(t.collection,t.disabledKeys,r,s),[n,t.collection,t.disabledKeys,s,r]),{menuTriggerProps:f,menuProps:c}=K3({isDisabled:i,type:"listbox"},t,r),p=M=>{switch(M.key){case"ArrowLeft":{var O,F;M.preventDefault();let L=t.selectedKey!=null?(O=d.getKeyAbove)===null||O===void 0?void 0:O.call(d,t.selectedKey):(F=d.getFirstKey)===null||F===void 0?void 0:F.call(d);L&&t.setSelectedKey(L);break}case"ArrowRight":{var h,T;M.preventDefault();let L=t.selectedKey!=null?(h=d.getKeyBelow)===null||h===void 0?void 0:h.call(d,t.selectedKey):(T=d.getFirstKey)===null||T===void 0?void 0:T.call(d);L&&t.setSelectedKey(L);break}}},{typeSelectProps:m}=dc({keyboardDelegate:d,selectionManager:t.selectionManager,onTypeSelect(M){t.setSelectedKey(M)}}),{isInvalid:b,validationErrors:g,validationDetails:y}=t.displayValidation,{labelProps:$,fieldProps:E,descriptionProps:x,errorMessageProps:B}=Gt({...e,labelElementType:"span",isInvalid:b,errorMessage:e.errorMessage||g});m.onKeyDown=m.onKeyDownCapture,delete m.onKeyDownCapture;let w=q(e,{labelable:!0}),D=N(m,f,E),I=J();return p0.set(t,{isDisabled:i,isRequired:a,name:o,validationBehavior:l}),{labelProps:{...$,onClick:()=>{if(!e.isDisabled){var M;(M=r.current)===null||M===void 0||M.focus(),pu("keyboard")}}},triggerProps:N(w,{...D,isDisabled:i,onKeyDown:ze(D.onKeyDown,p,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[I,D["aria-labelledby"],D["aria-label"]&&!D["aria-labelledby"]?D.id:null].filter(Boolean).join(" "),onFocus(M){t.isFocused||(e.onFocus&&e.onFocus(M),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(M){t.isOpen||(e.onBlur&&e.onBlur(M),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:I},menuProps:{...c,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||(e.onBlur&&e.onBlur(M),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],D["aria-label"]&&!E["aria-labelledby"]?D.id:null].filter(Boolean).join(" ")},descriptionProps:x,errorMessageProps:B,isInvalid:b,validationErrors:g,validationDetails:y}}function fg(e,t,r){let n=p0.get(t)||{},{autoComplete:i,name:a=n.name,isDisabled:o=n.isDisabled}=e,{validationBehavior:l,isRequired:s}=n,{visuallyHiddenProps:d}=is();Ut(e.selectRef,t.selectedKey,t.setSelectedKey),xr({validationBehavior:l,focus:()=>{var c;return(c=r.current)===null||c===void 0?void 0:c.focus()}},t,e.selectRef);var f;return{containerProps:{...d,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:i,disabled:o,required:l==="native"&&s,name:a,value:(f=t.selectedKey)!==null&&f!==void 0?f:void 0,onChange:c=>t.setSelectedKey(c.target.value)}}}function pg(e){let{state:t,triggerRef:r,label:n,name:i,isDisabled:a}=e,o=u.useRef(null),{containerProps:l,selectProps:s}=fg({...e,selectRef:o},t,r);var d;return t.collection.size<=300?u.createElement("div",{...l,"data-testid":"hidden-select-container"},u.createElement("label",null,n,u.createElement("select",{...s,ref:o},u.createElement("option",null),[...t.collection.getKeys()].map(f=>{let c=t.collection.getItem(f);if(c&&c.type==="item")return u.createElement("option",{key:c.key,value:c.key},c.textValue)})))):i?u.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:i,disabled:a,value:(d=t.selectedKey)!==null&&d!==void 0?d:""}):null}function mg(e,t,r){let{labelProps:n,inputProps:i,isSelected:a,isPressed:o,isDisabled:l,isReadOnly:s}=ns(e,t,r);return{labelProps:n,inputProps:{...i,role:"switch",checked:a},isSelected:a,isPressed:o,isDisabled:l,isReadOnly:s}}const m0=new WeakMap;function bg(e,t,r){let{direction:n}=be(),i=e.keyboardDelegate||new Bn({collection:t.collection,ref:r,orientation:"horizontal",direction:n,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:a,fieldProps:o,descriptionProps:l,errorMessageProps:s}=Gt({...e,labelElementType:"span"}),{gridProps:d}=tg({...e,...o,keyboardDelegate:i,shouldFocusWrap:!0,linkBehavior:"override"},t,r),[f,c]=u.useState(!1),{focusWithinProps:p}=ft({onFocusWithinChange:c}),m=q(e),b=u.useRef(t.collection.size);return u.useEffect(()=>{r.current&&b.current>0&&t.collection.size===0&&f&&r.current.focus(),b.current=t.collection.size},[t.collection.size,f,r]),m0.set(t,{onRemove:e.onRemove}),{gridProps:N(d,m,{role:t.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":f?"polite":"off",...p,...o}),labelProps:a,descriptionProps:l,errorMessageProps:s}}var b0={};b0={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var h0={};h0={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var v0={};v0={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var g0={};g0={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var y0={};y0={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var $0={};$0={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var x0={};x0={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var D0={};D0={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var C0={};C0={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var E0={};E0={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var P0={};P0={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var w0={};w0={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var S0={};S0={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var k0={};k0={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var B0={};B0={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var T0={};T0={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var F0={};F0={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var R0={};R0={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var A0={};A0={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var I0={};I0={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var M0={};M0={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var L0={};L0={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var N0={};N0={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var K0={};K0={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var V0={};V0={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var O0={};O0={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var z0={};z0={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var j0={};j0={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var H0={};H0={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var _0={};_0={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var U0={};U0={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var W0={};W0={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var G0={};G0={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Z0={};Z0={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var q0={};q0={"ar-AE":b0,"bg-BG":h0,"cs-CZ":v0,"da-DK":g0,"de-DE":y0,"el-GR":$0,"en-US":x0,"es-ES":D0,"et-EE":C0,"fi-FI":E0,"fr-FR":P0,"he-IL":w0,"hr-HR":S0,"hu-HU":k0,"it-IT":B0,"ja-JP":T0,"ko-KR":F0,"lt-LT":R0,"lv-LV":A0,"nb-NO":I0,"nl-NL":M0,"pl-PL":L0,"pt-BR":N0,"pt-PT":K0,"ro-RO":V0,"ru-RU":O0,"sk-SK":z0,"sl-SI":j0,"sr-SP":H0,"sv-SE":_0,"tr-TR":U0,"uk-UA":W0,"zh-CN":G0,"zh-TW":Z0};function hg(e){return e&&e.__esModule?e.default:e}function vg(e,t,r){let{item:n}=e,i=tt(hg(q0),"@react-aria/tag"),a=J(),{onRemove:o}=m0.get(t)||{},{rowProps:l,gridCellProps:s,...d}=rg({node:n},t,r);delete l.onKeyDownCapture;let{descriptionProps:f,...c}=d,p=t.disabledKeys.has(n.key)||n.props.isDisabled,m=I=>{if(I.key==="Delete"||I.key==="Backspace"){if(p)return;I.preventDefault(),t.selectionManager.isSelected(n.key)?o==null||o(new Set(t.selectionManager.selectedKeys)):o==null||o(new Set([n.key]))}},b=mu();b==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(b="pointer");let g=o&&(b==="keyboard"||b==="virtual")?i.format("removeDescription"):"",y=xn(g),$=n.key===t.selectionManager.focusedKey,E=t.selectionManager.focusedKey!=null,x=-1;!p&&($||!E)&&(x=0);let B=q(n.props),w=Jl(n.props),{focusableProps:D}=ct({isDisabled:p},r);return{removeButtonProps:{"aria-label":i.format("removeButtonLabel"),"aria-labelledby":`${a} ${l.id}`,isDisabled:p,id:a,onPress:()=>o?o(new Set([n.key])):null,excludeFromTabOrder:!0},rowProps:N(D,l,B,w,{tabIndex:x,onKeyDown:o?m:void 0,"aria-describedby":y["aria-describedby"]}),gridCellProps:N(s,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...c,allowsRemoving:!!o}}function gg(e,t){let r=q(e,{labelable:!0}),{hoverProps:n}=Ae({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:N(r,n,{role:"tooltip"})}}function yg(e,t,r){let{isDisabled:n,trigger:i}=e,a=J(),o=u.useRef(!1),l=u.useRef(!1),s=()=>{(o.current||l.current)&&t.open(l.current)},d=$=>{!o.current&&!l.current&&t.close($)};u.useEffect(()=>{let $=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[r,t]);let f=()=>{i!=="focus"&&(pr()==="pointer"?o.current=!0:o.current=!1,s())},c=()=>{i!=="focus"&&(l.current=!1,o.current=!1,d())},p=()=>{l.current=!1,o.current=!1,d(!0)},m=()=>{jt()&&(l.current=!0,s())},b=()=>{l.current=!1,o.current=!1,d(!0)},{hoverProps:g}=Ae({isDisabled:n,onHoverStart:f,onHoverEnd:c}),{focusableProps:y}=ct({isDisabled:n,onFocus:m,onBlur:b},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...N(y,g,{onPointerDown:p,onKeyDown:p,tabIndex:void 0})},tooltipProps:{id:a}}}const vt=S.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});function $g(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var xg=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dg=$g(function(e){return xg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const{withContext:Cg}=S.createRecipeContext({recipe:vt}),Eg=Cg("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const r=!(t!=null&&t.includes(e))&&!S.defaultSystem.isValidProperty(e);return Dg(e)&&r&&!e.includes("onPress")}}),ba=e=>{const{ref:t,as:r,asChild:n,children:i,...a}=e,o=u.useRef(null),l=de(S.mergeRefs(o,t)),s=r||(n?"a":"button")||"button",{buttonProps:d}=kn({...a,elementType:s},l);return C.jsx(Eg,{...N(a,d,{as:r,asChild:n}),ref:l,children:i})};ba.displayName="Button";const Pg=function(t){const{children:r,portalled:n=!0,portalRef:i,backdrop:a=!0,ref:o,...l}=t;return C.jsxs(S.Portal,{disabled:!n,container:i,children:[a&&C.jsx(S.Dialog.Backdrop,{}),C.jsx(S.Dialog.Positioner,{children:C.jsx(S.Dialog.Content,{ref:o,...l,asChild:!1,children:r})})]})},wg={Root:S.Dialog.Root,Trigger:S.Dialog.Trigger,Content:Pg,Backdrop:S.Dialog.Backdrop,Positioner:S.Dialog.Positioner,Title:S.Dialog.Title,Description:S.Dialog.Description,Body:S.Dialog.Body,Footer:S.Dialog.Footer,Header:S.Dialog.Header,CloseTrigger:S.Dialog.CloseTrigger,ActionTrigger:S.Dialog.ActionTrigger};u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const Sg=u.createContext({}),bn=Symbol("default");function Ne({values:e,children:t}){for(let[r,n]of e)t=u.createElement(r.Provider,{value:n},t);return t}function ae(e){let{className:t,style:r,children:n,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:l}=e;return u.useMemo(()=>{let s,d,f;return typeof t=="function"?s=t({...l,defaultClassName:i}):s=t,typeof r=="function"?d=r({...l,defaultStyle:o||{}}):d=r,typeof n=="function"?f=n({...l,defaultChildren:a}):n==null?f=a:f=n,{className:s??i,style:d||o?{...o,...d}:void 0,children:f??a,"data-rac":""}},[t,r,n,i,a,o,l])}function Dr(e,t){let r=u.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||bn;if(!r.slots[n]){let i=new Intl.ListFormat().format(Object.keys(r.slots).map(o=>`"${o}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${i}.`)}return r.slots[n]}return r}function ce(e,t,r){let n=Dr(r,e.slot)||{},{ref:i,...a}=n,o=de(u.useMemo(()=>zi(t,i),[t,i])),l=N(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?l.style=s=>{let d=typeof a.style=="function"?a.style(s):a.style,f={...s.defaultStyle,...d},c=typeof e.style=="function"?e.style({...s,defaultStyle:f}):e.style;return{...f,...c}}:l.style={...a.style,...e.style}),[l,o]}function Cr(e=!0){let[t,r]=u.useState(e),n=u.useRef(!1),i=u.useCallback(a=>{n.current=!0,r(!!a)},[]);return U(()=>{n.current||r(!1)},[]),[i,t]}function ha(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}class va{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new va(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,r){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=t,this.key=r}}class ga{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),i=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?r.get(i.nextKey):void 0}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(t){let r=new ga,n=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let a=i.clone(),o=null;for(let l of this.getChildren(i.key))if(kl(l,t,this,r)){let s=l.clone();o==null&&(a.firstChildKey=s.key),r.firstKey==null&&(r.firstKey=a.key),o&&o.parentKey===s.parentKey?(o.nextKey=s.key,s.prevKey=o.key):s.prevKey=null,s.nextKey=null,r.addNode(s),o=s}o&&(o.type!=="header"?(a.lastChildKey=o.key,n==null?a.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=a.key,a.prevKey=n.key),a.nextKey=null,n=a,r.addNode(a)):(r.firstKey===a.key&&(r.firstKey=null),r.removeNode(o.key)))}else if(i.type==="separator"){let a=i.clone();a.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=a.key,a.prevKey=n.key,n=a,r.addNode(a))}else{let a=i.clone();kl(a,t,this,r)&&(r.firstKey==null&&(r.firstKey=a.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===a.parentKey?(n.nextKey=a.key,a.prevKey=n.key):a.prevKey=null,a.nextKey=null,r.addNode(a),n=a)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let i;n.prevKey!=null&&(i=r.getItem(n.prevKey),i.nextKey=null),r.removeNode(n.key),n=i}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function kl(e,t,r,n){if(e.type==="subdialogtrigger"||e.type==="submenutrigger"){let i=[...r.getChildren(e.key)][0];if(i&&t(i.textValue)){let a=i.clone();return n.addNode(a),!0}else return!1}else return e.type==="header"?!0:t(e.textValue)}class Y0{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t)}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(t,r){if(r==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode,this.invalidateChildIndices(r),this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class Ot extends Y0{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ot?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,r,n;let i=this.nextVisibleSibling,a=this.getMutableNode();a.index=this.index,a.level=this.level,a.parentKey=this.parentNode instanceof Ot?this.parentNode.node.key:null;var o;a.prevKey=(o=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&o!==void 0?o:null;var l;a.nextKey=(l=i==null?void 0:i.node.key)!==null&&l!==void 0?l:null,a.hasChildNodes=!!this.firstChild;var s;a.firstChildKey=(s=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&s!==void 0?s:null;var d;if(a.lastChildKey=(d=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&d!==void 0?d:null,(a.colSpan!=null||a.colIndex!=null)&&i){var f,c;let p=((f=a.colIndex)!==null&&f!==void 0?f:a.index)+((c=a.colSpan)!==null&&c!==void 0?c:1);if(p!==i.node.colIndex){let m=i.getMutableNode();m.colIndex=p}}}setProps(t,r,n,i){let a=this.getMutableNode(),{value:o,textValue:l,id:s,...d}=t;if(d.ref=r,a.props=d,a.rendered=n,a.render=i,a.value=o,a.textValue=l||(typeof d.children=="string"?d.children:"")||t["aria-label"]||"",s!=null&&s!==a.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");a.key=s}d.colSpan!=null&&(a.colSpan=d.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var i,a;(((i=t.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===t||((a=t.parentNode)===null||a===void 0?void 0:a.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let o=t.previousVisibleSibling,l=t.nextVisibleSibling;o&&t.ownerDocument.markDirty(o),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new va(t,`react-aria-${++r.nodeId}`)}}class kg extends Y0{get isConnected(){return this.isMounted}createElement(t){return new Ot(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let r=this.getMutableCollection();if(!r.getItem(t.node.key))for(let n of t)this.addNode(n);r.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof Ot&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof Ot&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,r,n,i;this.nextCollection.commit((n=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&n!==void 0?n:null,(i=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function J0(e){let{children:t,items:r,idScope:n,addIdAndValue:i,dependencies:a=[]}=e,o=u.useMemo(()=>new WeakMap,a);return u.useMemo(()=>{if(r&&typeof t=="function"){let d=[];for(let f of r){let c=o.get(f);if(!c){c=t(f);var l,s;let p=(s=(l=c.props.id)!==null&&l!==void 0?l:f.key)!==null&&s!==void 0?s:f.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),c=u.cloneElement(c,i?{key:p,id:p,value:f}:{key:p}),o.set(f,c)}d.push(c)}return d}else if(typeof t!="function")return t},[t,r,o,n,i])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const hn=u.createContext(!1);function Bg(e){if(u.useContext(hn))return u.createElement(u.Fragment,null,e.children);let r=u.createElement(hn.Provider,{value:!0},e.children);return u.createElement("template",{"data-react-aria-hidden":!0},r)}function X0(e){let t=(r,n)=>u.useContext(hn)?null:e(r,n);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Tg(){return u.useContext(hn)}const Q0=u.createContext(!1),hr=u.createContext(null);function ya(e){if(u.useContext(hr))return e.content;let{collection:r,document:n}=Ig(e.createCollection);return u.createElement(u.Fragment,null,u.createElement(Bg,null,u.createElement(hr.Provider,{value:n},e.content)),u.createElement(Fg,{render:e.children,collection:r}))}function Fg({collection:e,render:t}){return t(e)}function Rg(e,t,r){let n=dt(),i=u.useRef(n);i.current=n;let a=u.useCallback(()=>i.current?r():t(),[t,r]);return lg.useSyncExternalStore(e,a)}const Ag=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:Rg;function Ig(e){let[t]=u.useState(()=>new kg((e==null?void 0:e())||new ga)),r=u.useCallback(o=>t.subscribe(o),[t]),n=u.useCallback(()=>{let o=t.getCollection();return t.isSSR&&t.resetAfterSSR(),o},[t]),i=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),a=Ag(r,n,i);return U(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:a,document:t}}const Ki=u.createContext(null);function ep(e,t,r,n,i,a){let o=u.useCallback(s=>{s==null||s.setProps(t,r,n,a)},[t,r,n,a]),l=u.useContext(Ki);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e),s.setProps(t,r,n,a),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),i?u.createElement(Ki.Provider,{value:s},i):null}return u.createElement(e,{ref:o},i)}function $a(e,t){let r=({node:i})=>t(i.props,i.props.ref,i),n=u.forwardRef((i,a)=>{let o=u.useContext(tn);if(!u.useContext(Q0)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,a)}return ep(e,i,a,"children"in i?i.children:null,null,s=>u.createElement(tn.Provider,{value:o},u.createElement(r,{node:s})))});return n.displayName=t.name,n}function Mg(e,t,r=tp){let n=({node:a})=>t(a.props,a.props.ref,a),i=u.forwardRef((a,o)=>{let l=r(a);var s;return(s=ep(e,a,o,null,l,d=>u.createElement(n,{node:d})))!==null&&s!==void 0?s:u.createElement(u.Fragment,null)});return i.displayName=t.name,i}function tp(e){return J0({...e,addIdAndValue:!0})}const Bl=u.createContext(null);function xa(e){let t=u.useContext(Bl),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),i=tp({...e,idScope:n,dependencies:r});return u.useContext(hr)&&(i=u.createElement(Lg,null,i)),t=u.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),u.createElement(Bl.Provider,{value:t},i)}function Lg({children:e}){let t=u.useContext(hr),r=u.useMemo(()=>u.createElement(hr.Provider,{value:null},u.createElement(Q0.Provider,{value:!0},e)),[e]);return dt()?u.createElement(Ki.Provider,{value:t},r):Et.createPortal(r,t)}const Da=u.createContext({});let Ng=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...i}=e;return i};const rp=X0(function(t,r){[t,r]=ce(t,r,Da);let{hoverProps:n,isHovered:i}=Ae(t),{isFocused:a,isFocusVisible:o,focusProps:l}=ve({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ae({...t,values:{isHovered:i,isFocused:a,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...N(Ng(t),l,n),...d,ref:r,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})}),Tn=u.createContext({}),Kg=u.createContext(null),Vg=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Er=u.createContext({}),Ca=X0(function(t,r){[t,r]=ce(t,r,Er),t=Og(t);let n=t,{isPending:i}=n,{buttonProps:a,isPressed:o}=kn(t,r),{focusProps:l,isFocused:s,isFocusVisible:d}=ve(t),{hoverProps:f,isHovered:c}=Ae({...t,isDisabled:t.isDisabled||i}),p={isHovered:c,isPressed:(n.isPressed||o)&&!i,isFocused:s,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:i??!1},m=ae({...t,values:p,defaultClassName:"react-aria-Button"}),b=J(a.id),g=J(),y=a["aria-labelledby"];i&&(y?y=`${y} ${g}`:a["aria-label"]&&(y=`${b} ${g}`));let $=u.useRef(i);return u.useEffect(()=>{let E={"aria-labelledby":y||b};(!$.current&&s&&i||$.current&&s&&!i)&&fn(E,"assertive"),$.current=i},[i,s,y,b]),u.createElement("button",{...q(t,{propNames:Vg}),...N(a,l,f),...m,type:a.type==="submit"&&i?"button":a.type,id:b,ref:r,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":i?"true":a["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":c||void 0,"data-focused":s||void 0,"data-pending":i||void 0,"data-focus-visible":d||void 0},u.createElement(Kg.Provider,{value:{id:g}},m.children))});function Og(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const Zt=u.createContext({}),Ea=u.createContext(null);class Tl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let l of o.childNodes)r(l)};for(let o of t)r(o);let n=null,i=0;for(let[o,l]of this.keyMap)n?(n.nextKey=o,l.prevKey=n.key):(this.firstKey=o,l.prevKey=void 0),l.type==="item"&&(l.index=i++),n=l,n.nextKey=void 0;var a;this.lastKey=(a=n==null?void 0:n.key)!==null&&a!==void 0?a:null}}class Me extends Set{constructor(t,r,n){super(t),t instanceof Me?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function zg(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function jg(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=u.useRef(!1),[,l]=u.useState(!1),s=u.useRef(null),d=u.useRef(null),[,f]=u.useState(null),c=u.useMemo(()=>Fl(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>Fl(e.defaultSelectedKeys,new Me),[e.defaultSelectedKeys]),[m,b]=Re(c,p,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(i);i==="replace"&&y==="toggle"&&typeof m=="object"&&m.size===0&&$("replace");let E=u.useRef(i);return u.useEffect(()=>{i!==E.current&&($(i),E.current=i)},[i]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return o.current},setFocused(x){o.current=x,l(x)},get focusedKey(){return s.current},get childFocusStrategy(){return d.current},setFocusedKey(x,B="first"){s.current=x,d.current=B,f(x)},selectedKeys:m,setSelectedKeys(x){(n||!zg(x,m))&&b(x)},disabledKeys:g,disabledBehavior:a}}function Fl(e,t){return e?e==="all"?"all":new Me(e):t}class Pa{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}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 t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!t||i&&li(this.collection,i,t)<0)&&(t=i)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!t||i&&li(this.collection,i,t)>0)&&(t=i)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Me([r],r,r);else{let o=this.state.selectedKeys;var i;let l=(i=o.anchorKey)!==null&&i!==void 0?i:r;n=new Me(o,l,r);var a;for(let s of this.getKeyRange(l,(a=o.currentKey)!==null&&a!==void 0?a:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),i=this.collection.getItem(r);return n&&i?li(this.collection,n,i)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let i=[],a=t;for(;a!=null;){let o=this.collection.getItem(a);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===r)return i;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new Me(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new Me([r],r,r):new Me;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Me;for(let n of t){let i=this.getKey(n);if(i!=null&&(r.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var i;let o=this.collection.getItem(n);(o==null?void 0:o.type)==="item"&&t.push(n);var a;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&r((a=(i=F3(pc(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}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 Me)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new Pa(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var i;this.allowsCellSelection=(i=n==null?void 0:n.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function wa(e){let{filter:t,layoutDelegate:r}=e,n=jg(e),i=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=u.useCallback(d=>t?new Tl(t(d)):new Tl(d),[t]),o=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=T3(e,a,o),s=u.useMemo(()=>new Pa(l,n,{layoutDelegate:r}),[l,n,r]);return np(l,s),{collection:l,disabledKeys:i,selectionManager:s}}function Hg(e,t){let r=u.useMemo(()=>t?e.collection.UNSTABLE_filter(t):e.collection,[e.collection,t]),n=e.selectionManager.withCollection(r);return np(r,n),{collection:r,selectionManager:n,disabledKeys:e.disabledKeys}}function np(e,t){const r=u.useRef(null);u.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const f=r.current.getItem(t.focusedKey),c=[...r.current.getKeys()].map($=>{const E=r.current.getItem($);return(E==null?void 0:E.type)==="item"?E:null}).filter($=>$!==null),p=[...e.getKeys()].map($=>{const E=e.getItem($);return(E==null?void 0:E.type)==="item"?E:null}).filter($=>$!==null);var n,i;const m=((n=c==null?void 0:c.length)!==null&&n!==void 0?n:0)-((i=p==null?void 0:p.length)!==null&&i!==void 0?i:0);var a,o,l;let b=Math.min(m>1?Math.max(((a=f==null?void 0:f.index)!==null&&a!==void 0?a:0)-m+1,0):(o=f==null?void 0:f.index)!==null&&o!==void 0?o:0,((l=p==null?void 0:p.length)!==null&&l!==void 0?l:0)-1),g=null,y=!1;for(;b>=0;){if(!t.isDisabled(p[b].key)){g=p[b];break}if(b<p.length-1&&!y)b++;else{y=!0;var s,d;b>((s=f==null?void 0:f.index)!==null&&s!==void 0?s:0)&&(b=(d=f==null?void 0:f.index)!==null&&d!==void 0?d:0),b--}}t.setFocusedKey(g?g.key:null)}r.current=e},[e,t])}function _g(e){var t;let[r,n]=Re(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=u.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:o,selectionManager:l}=wa({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let c=(f=d.values().next().value)!==null&&f!==void 0?f:null;c===r&&e.onSelectionChange&&e.onSelectionChange(c),n(c)}}),s=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:o,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function Fn(e){let[t,r]=Re(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=u.useCallback(()=>{r(!0)},[r]),i=u.useCallback(()=>{r(!1)},[r]),a=u.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:i,toggle:a}}var ip={};ip={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var ap={};ap={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var op={};op={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var lp={};lp={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var up={};up={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var sp={};sp={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var dp={};dp={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var cp={};cp={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var fp={};fp={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var pp={};pp={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var mp={};mp={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var bp={};bp={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var hp={};hp={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var vp={};vp={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var gp={};gp={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var yp={};yp={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var $p={};$p={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var xp={};xp={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Dp={};Dp={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Cp={};Cp={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Ep={};Ep={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Pp={};Pp={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var wp={};wp={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Sp={};Sp={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var kp={};kp={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var Bp={};Bp={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var Tp={};Tp={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Fp={};Fp={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var Rp={};Rp={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Ap={};Ap={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Ip={};Ip={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Mp={};Mp={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Lp={};Lp={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Np={};Np={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Kp={};Kp={"ar-AE":ip,"bg-BG":ap,"cs-CZ":op,"da-DK":lp,"de-DE":up,"el-GR":sp,"en-US":dp,"es-ES":cp,"et-EE":fp,"fi-FI":pp,"fr-FR":mp,"he-IL":bp,"hr-HR":hp,"hu-HU":vp,"it-IT":gp,"ja-JP":yp,"ko-KR":$p,"lt-LT":xp,"lv-LV":Dp,"nb-NO":Cp,"nl-NL":Ep,"pl-PL":Pp,"pt-BR":wp,"pt-PT":Sp,"ro-RO":kp,"ru-RU":Bp,"sk-SK":Tp,"sl-SI":Fp,"sr-SP":Rp,"sv-SE":Ap,"tr-TR":Ip,"uk-UA":Mp,"zh-CN":Lp,"zh-TW":Np};function Ug(e){return e&&e.__esModule?e.default:e}const Wg=new Pt(Ug(Kp));function Gg(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Zg(e,t,r,n,i){let a=e!=null&&r!=null&&e.compare(r)>0,o=e!=null&&t!=null&&e.compare(t)<0,l=e!=null&&(n==null?void 0:n(e))||!1,s=a||o||l,d=[];if(s){let f=Gg(),c=Pt.getGlobalDictionaryForPackage("@react-stately/datepicker")||Wg,p=new vu(f,c),m=new At(f,qr({},i)),b=m.resolvedOptions().timeZone;o&&t!=null&&d.push(p.format("rangeUnderflow",{minValue:m.format(t.toDate(b))})),a&&r!=null&&d.push(p.format("rangeOverflow",{maxValue:m.format(r.toDate(b))})),l&&d.push(p.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const qg={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Yg={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function qr(e,t){e={...t.shouldForceLeadingZeros?Yg:qg,...e};let n=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let l=i.indexOf(n);if(l<0&&(l=2),o>l)throw new Error("maxGranularity must be greater than granularity");let s=i.slice(o,l+1).reduce((f,c)=>(f[c]=e[c],f),{});return t.hourCycle!=null&&(s.hour12=t.hourCycle===12),s.timeZone=t.timeZone||"UTC",(n==="hour"||n==="minute"||n==="second")&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&o===0&&(s.era="short"),s}function Vp(e,t){if(e===null)return null;if(e)return $e(e,t)}function tr(e,t,r,n){if(e)return Vp(e,r);let i=$e(xu(n??En()).set({hour:0,minute:0,second:0,millisecond:0}),r);return t==="year"||t==="month"||t==="day"?Su(i):n?i:st(i)}function Jg(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,n=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=u.useState([n,r]);e&&(i[0]!==n||i[1]!==r)&&a([n,r]),t||(t=e?n:i[0]);let o=e?r:i[1];return[t,o]}const Xg=new Pt({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function Qg(e,t,r){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?Xg.getStringForLocale(e,r):"––"}const Yr={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Rl={year:5,month:2,day:7,hour:2,minute:15,second:15},ey={dayperiod:"dayPeriod"};function Op(e){let{locale:t,createCalendar:r,hideTimeZone:n,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:l,maxValue:s,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[c,p]=Jg(f,e.granularity),m=p||"UTC";if(f&&!(c in f))throw new Error("Invalid granularity "+c+" for value "+f.toString());let b=u.useMemo(()=>new At(t),[t]),g=u.useMemo(()=>r(b.resolvedOptions().calendar),[r,b]);var y;let[$,E]=Re(e.value,(y=e.defaultValue)!==null&&y!==void 0?y:null,e.onChange),x=u.useMemo(()=>{var z;return(z=Vp($,g))!==null&&z!==void 0?z:null},[$,g]),[B,w]=u.useState(()=>tr(e.placeholderValue,c,g,p)),D=x||B,I=g.identifier==="gregory"&&D.era==="BC",M=u.useMemo(()=>{var z;return{granularity:c,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",timeZone:p,hideTimeZone:n,hourCycle:e.hourCycle,showEra:I,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,c,e.hourCycle,e.shouldForceLeadingZeros,p,n,I]),O=u.useMemo(()=>qr({},M),[M]),F=u.useMemo(()=>new At(t,O),[t,O]),h=u.useMemo(()=>F.resolvedOptions(),[F]),T=u.useMemo(()=>F.formatToParts(new Date).filter(z=>Yr[z.type]).reduce((z,X)=>(z[X.type]=!0,z),{}),[F]),[L,R]=u.useState(()=>e.value||e.defaultValue?{...T}:{}),H=u.useRef(null),v=u.useRef(g);u.useEffect(()=>{$u(g,v.current)||(v.current=g,w(z=>Object.keys(L).length>0?$e(z,g):tr(e.placeholderValue,c,g,p)))},[g,c,L,p,e.placeholderValue]),$&&Object.keys(L).length<Object.keys(T).length&&(L={...T},R(L)),$==null&&Object.keys(L).length===Object.keys(T).length&&(L={},R(L),w(tr(e.placeholderValue,c,g,p)));let k=x&&Object.keys(L).length>=Object.keys(T).length?x:B,P=z=>{if(e.isDisabled||e.isReadOnly)return;let X=Object.keys(L),ne=Object.keys(T);z==null?(E(null),w(tr(e.placeholderValue,c,g,p)),R({})):X.length>=ne.length||X.length===ne.length-1&&T.dayPeriod&&!L.dayPeriod&&H.current!=="dayPeriod"?(z=$e(z,(f==null?void 0:f.calendar)||new we),E(z)):w(z),H.current=null},K=u.useMemo(()=>k.toDate(m),[k,m]),A=u.useMemo(()=>ty(K,L,F,h,k,g,t,c),[K,L,F,h,k,g,t,c]);T.era&&L.year&&!L.era?(L.era=!0,R({...L})):!T.era&&L.era&&(delete L.era,R({...L}));let _=z=>{L[z]=!0,z==="year"&&T.era&&(L.era=!0),R({...L})},V=(z,X)=>{if(L[z])P(ry(k,z,X,h));else{_(z);let ne=Object.keys(L),j=Object.keys(T);(ne.length>=j.length||ne.length===j.length-1&&T.dayPeriod&&!L.dayPeriod)&&P(k)}},W=u.useMemo(()=>Zg($,l,s,d,M),[$,l,s,d,M]),te=Wt({...e,value:$,builtinValidation:W}),oe=te.displayValidation.isInvalid,Ke=e.validationState||(oe?"invalid":null);var Ie;return{...te,value:x,dateValue:K,calendar:g,setValue:P,segments:A,dateFormatter:F,validationState:Ke,isInvalid:oe,granularity:c,maxGranularity:(Ie=e.maxGranularity)!==null&&Ie!==void 0?Ie:"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(z){V(z,1)},decrement(z){V(z,-1)},incrementPage(z){V(z,Rl[z]||1)},decrementPage(z){V(z,-(Rl[z]||1))},setSegment(z,X){_(z),P(ny(k,z,X,h))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let z=Object.keys(L),X=Object.keys(T);z.length===X.length-1&&T.dayPeriod&&!L.dayPeriod&&(L={...T},R(L),P(k.copy()))},clearSegment(z){delete L[z],H.current=z,R({...L});let X=tr(e.placeholderValue,c,g,p),ne=k;if(z==="dayPeriod"&&"hour"in k&&"hour"in X){let j=k.hour>=12,Ce=X.hour>=12;j&&!Ce?ne=k.set({hour:k.hour-12}):!j&&Ce&&(ne=k.set({hour:k.hour+12}))}else z==="hour"&&"hour"in k&&k.hour>=12&&L.dayPeriod?ne=k.set({hour:X.hour+12}):z in k&&(ne=k.set({[z]:X[z]}));E(null),P(ne)},formatValue(z){if(!x)return"";let X=qr(z,M);return new At(t,X).format(K)},getDateFormatter(z,X){let ne={...M,...X},j=qr({},ne);return new At(z,j)}}}function ty(e,t,r,n,i,a,o,l){let s=["hour","minute","second"],d=r.formatToParts(e),f=[];for(let c of d){let p=Yr[c.type];c.type==="era"&&a.getEras().length===1&&(p=!1);let m=Yr[c.type]&&!t[c.type],b=Yr[c.type]?Qg(c.type,c.value,o):null,g={type:ey[c.type]||c.type,text:m?b:c.value,...Hr(i,c.type,n),isPlaceholder:m,placeholder:b,isEditable:p};c.type==="hour"?(f.push({type:"literal",text:"",...Hr(i,"literal",n),isPlaceholder:!1,placeholder:"",isEditable:!1}),f.push(g),c.type===l&&f.push({type:"literal",text:"",...Hr(i,"literal",n),isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(c.type)&&c.type===l?(f.push(g),f.push({type:"literal",text:"",...Hr(i,"literal",n),isPlaceholder:!1,placeholder:"",isEditable:!1})):f.push(g)}return f}function Hr(e,t,r){switch(t){case"era":{let n=e.calendar.getEras();return{value:n.indexOf(e.era),minValue:0,maxValue:n.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:xh(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Dh(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(r.hour12){let n=e.hour>=12;return{value:e.hour,minValue:n?12:0,maxValue:n?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function ry(e,t,r,n){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,r,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,r,{round:t!=="hour",hourCycle:n.hour12?12:24})}throw new Error("Unknown segment: "+t)}function ny(e,t,r,n){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:r})}if("hour"in e&&typeof r=="number")switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return r>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(n.hour12){let a=e.hour>=12;!a&&r===12&&(r=0),a&&r<12&&(r+=12)}case"minute":case"second":return e.set({[t]:r})}throw new Error("Unknown segment: "+t)}function iy(e){let{placeholderValue:t=new wn,minValue:r,maxValue:n,granularity:i,validate:a}=e;var o;let[l,s]=Re(e.value,(o=e.defaultValue)!==null&&o!==void 0?o:null,e.onChange),d=l||t,f=d&&"day"in d?d:void 0,c=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,p=u.useMemo(()=>{let x=d&&"timeZone"in d?d.timeZone:void 0;return(x||c)&&t?ku(rr(t),x||c):rr(t)},[t,d,c]),m=u.useMemo(()=>rr(r,f),[r,f]),b=u.useMemo(()=>rr(n,f),[n,f]),g=u.useMemo(()=>l&&"day"in l?Io(l):l,[l]),y=u.useMemo(()=>l==null?null:rr(l),[l]);return{...Op({...e,value:y,defaultValue:void 0,minValue:m,maxValue:b,onChange:x=>{s(f||c?x:x&&Io(x))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new we,validate:u.useCallback(()=>a==null?void 0:a(l),[a,l])}),timeValue:g}}function rr(e,t=$h(En())){return e?"day"in e?e:st(t,e):null}function ay(e){let[t,r]=Re(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);const n=u.useCallback(()=>{r(!0)},[r]),i=u.useCallback(()=>{r(!1)},[r]),a=u.useCallback(()=>{r(!t)},[r,t]);return{isExpanded:t,setExpanded:r,expand:n,collapse:i,toggle:a}}function oy(e){let{allowsMultipleExpanded:t=!1,isDisabled:r=!1}=e,[n,i]=Re(u.useMemo(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),u.useMemo(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return u.useEffect(()=>{!t&&n.size>1&&i(new Set([n.values().next().value]))}),{allowsMultipleExpanded:t,isDisabled:r,expandedKeys:n,setExpandedKeys:i,toggleKey(a){let o;t?(o=new Set(n),o.has(a)?o.delete(a):o.add(a)):o=new Set(n.has(a)?[]:[a]),i(o)}}}function ly(e){let t=Fn(e),[r,n]=u.useState(null),[i,a]=u.useState([]),o=()=>{a([]),t.close()};return{focusStrategy:r,...t,open(d=null){n(d),t.open()},toggle(d=null){n(d),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(d,f)=>{a(c=>f>c.length?c:[...c.slice(0,f),d])},closeSubmenu:(d,f)=>{a(c=>c[f]===d?c.slice(0,f):c)}}}let uy=Math.round(Math.random()*1e10),sy=0;function dy(e){let t=u.useMemo(()=>e.name||`radio-group-${uy}-${++sy}`,[e.name]);var r;let[n,i]=Re(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[a,o]=u.useState(null),l=Wt({...e,value:n}),s=f=>{!e.isReadOnly&&!e.isDisabled&&(i(f),l.commitValidation())},d=l.displayValidation.isInvalid;return{...l,name:t,selectedValue:n,setSelectedValue:s,lastFocusedValue:a,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(d?"invalid":null),isInvalid:d}}function cy(e){let t=Fn(e),[r,n]=u.useState(null),i=_g({...e,onSelectionChange:s=>{e.onSelectionChange!=null&&e.onSelectionChange(s),t.close(),a.commitValidation()}}),a=Wt({...e,value:i.selectedKey}),[o,l]=u.useState(!1);return{...a,...i,...t,focusStrategy:r,open(s=null){i.collection.size!==0&&(n(s),t.open())},toggle(s=null){i.collection.size!==0&&(n(s),t.toggle())},isFocused:o,setFocused:l}}const fy=1500,Al=500;let mt={},py=0,nr=!1,Ue=null,bt=null;function zp(e={}){let{delay:t=fy,closeDelay:r=Al}=e,{isOpen:n,open:i,close:a}=Fn(e),o=u.useMemo(()=>`${++py}`,[]),l=u.useRef(null),s=u.useRef(a),d=()=>{mt[o]=p},f=()=>{for(let b in mt)b!==o&&(mt[b](!0),delete mt[b])},c=()=>{l.current&&clearTimeout(l.current),l.current=null,f(),d(),nr=!0,i(),Ue&&(clearTimeout(Ue),Ue=null),bt&&(clearTimeout(bt),bt=null)},p=b=>{b||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),Ue&&(clearTimeout(Ue),Ue=null),nr&&(bt&&clearTimeout(bt),bt=setTimeout(()=>{delete mt[o],bt=null,nr=!1},Math.max(Al,r)))},m=()=>{f(),d(),!n&&!Ue&&!nr?Ue=setTimeout(()=>{Ue=null,nr=!0,c()},t):n||c()};return u.useEffect(()=>{s.current=a},[a]),u.useEffect(()=>()=>{l.current&&clearTimeout(l.current),mt[o]&&delete mt[o]},[o]),{isOpen:n,open:b=>{!b&&t>0&&!l.current?m():c()},close:p}}const Sa=u.createContext(null),ka=u.createContext({}),my=u.forwardRef(function(t,r){[t,r]=ce(t,r,ka);let{isDisabled:n,isInvalid:i,onHoverStart:a,onHoverChange:o,onHoverEnd:l,...s}=t,{hoverProps:d,isHovered:f}=Ae({onHoverStart:a,onHoverChange:o,onHoverEnd:l,isDisabled:n}),{isFocused:c,isFocusVisible:p,focusProps:m}=ve({within:!0});n??(n=!!t["aria-disabled"]&&t["aria-disabled"]!=="false"),i??(i=!!t["aria-invalid"]&&t["aria-invalid"]!=="false");let b=ae({...t,values:{isHovered:f,isFocusWithin:c,isFocusVisible:p,isDisabled:n,isInvalid:i},defaultClassName:"react-aria-Group"});var g,y;return u.createElement("div",{...N(s,m,d),...b,ref:r,role:(g=t.role)!==null&&g!==void 0?g:"group",slot:(y=t.slot)!==null&&y!==void 0?y:void 0,"data-focus-within":c||void 0,"data-hovered":f||void 0,"data-focus-visible":p||void 0,"data-disabled":n||void 0,"data-invalid":i||void 0},b.children)}),by=u.createContext({});let hy=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...i}=e;return i};const vy=u.forwardRef(function(t,r){[t,r]=ce(t,r,by);let{hoverProps:n,isHovered:i}=Ae(t),{isFocused:a,isFocusVisible:o,focusProps:l}=ve({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=ae({...t,values:{isHovered:i,isFocused:a,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return u.createElement("textarea",{...N(hy(t),l,n),...d,ref:r,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":o||void 0,"data-invalid":s||void 0})}),gy=u.createContext(null),yy=u.createContext(null),jp={CollectionRoot({collection:e,renderDropIndicator:t}){return Il(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Il(e,t,r)}};function Il(e,t,r){return J0({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){var i;let a=n.render(n);if(!r||n.type!=="item")return a;let o=n.key,l=e.getKeyAfter(o);return u.createElement(u.Fragment,null,r({type:"item",key:o,dropPosition:"before"}),a,(l==null||((i=e.getItem(l))===null||i===void 0?void 0:i.type)!=="item")&&r({type:"item",key:o,dropPosition:"after"}))}})}const Pr=u.createContext(jp);function $y(e){return u.useMemo(()=>e!=null?new Set([e]):null,[e])}var Hp={};Hp={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var _p={};_p={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var Up={};Up={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Wp={};Wp={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Gp={};Gp={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var Zp={};Zp={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var qp={};qp={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Yp={};Yp={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Jp={};Jp={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var Xp={};Xp={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var Qp={};Qp={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var em={};em={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var tm={};tm={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var rm={};rm={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var nm={};nm={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var im={};im={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var am={};am={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var om={};om={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var lm={};lm={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var um={};um={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var sm={};sm={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var dm={};dm={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var cm={};cm={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var fm={};fm={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var pm={};pm={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var mm={};mm={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var bm={};bm={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var hm={};hm={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var vm={};vm={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var gm={};gm={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var ym={};ym={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var $m={};$m={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var xm={};xm={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Dm={};Dm={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var Cm={};Cm={"ar-AE":Hp,"bg-BG":_p,"cs-CZ":Up,"da-DK":Wp,"de-DE":Gp,"el-GR":Zp,"en-US":qp,"es-ES":Yp,"et-EE":Jp,"fi-FI":Xp,"fr-FR":Qp,"he-IL":em,"hr-HR":tm,"hu-HU":rm,"it-IT":nm,"ja-JP":im,"ko-KR":am,"lt-LT":om,"lv-LV":lm,"nb-NO":um,"nl-NL":sm,"pl-PL":dm,"pt-BR":cm,"pt-PT":fm,"ro-RO":pm,"ru-RU":mm,"sk-SK":bm,"sl-SI":hm,"sr-SP":vm,"sv-SE":gm,"tr-TR":ym,"uk-UA":$m,"zh-CN":xm,"zh-TW":Dm};const Rn=u.createContext({}),Em=u.createContext(null),xy=u.forwardRef(function(t,r){let{render:n}=u.useContext(Em);return u.createElement(u.Fragment,null,n(t,r))});function Pm(e,t){var r;let n=e==null?void 0:e.renderDropIndicator,i=e==null||(r=e.isVirtualDragging)===null||r===void 0?void 0:r.call(e),a=u.useCallback(o=>{if(i||t!=null&&t.isDropTarget(o))return n?n(o):u.createElement(xy,{target:o})},[t==null?void 0:t.target,i,n]);return e!=null&&e.useDropIndicator?a:void 0}function Dy(e,t,r){var n,i;let a=e.focusedKey,o=null;if(!(t==null||(n=t.isVirtualDragging)===null||n===void 0)&&n.call(t)&&(r==null||(i=r.target)===null||i===void 0?void 0:i.type)==="item"){o=r.target.key;var l;r.target.dropPosition==="after"&&(o=(l=r.collection.getKeyAfter(o))!==null&&l!==void 0?l:o)}return u.useMemo(()=>new Set([a,o].filter(s=>s!=null)),[a,o])}const wm=u.createContext({}),Cy=$a("header",function(t,r){return[t,r]=ce(t,r,wm),u.createElement("header",{className:"react-aria-Header",...t,ref:r},t.children)}),Ey=u.createContext({}),Ba=u.createContext(null),rt=u.createContext(null),Py=u.forwardRef(function(t,r){[t,r]=ce(t,r,Ba);let n=u.useContext(rt);return n?u.createElement(Sm,{state:n,props:t,listBoxRef:r}):u.createElement(ya,{content:u.createElement(xa,t)},i=>u.createElement(wy,{props:t,listBoxRef:r,collection:i}))});function wy({props:e,listBoxRef:t,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:n}=u.useContext(Pr),i=wa({...e,layoutDelegate:n});return u.createElement(Sm,{state:i,props:e,listBoxRef:t})}function Sm({state:e,props:t,listBoxRef:r}){let{filter:n,collectionProps:i,collectionRef:a}=u.useContext(gy)||{};t=u.useMemo(()=>i?{...t,...i}:t,[t,i]);let{dragAndDropHooks:o,layout:l="stack",orientation:s="vertical"}=t;r=de(u.useMemo(()=>zi(r,a!==void 0?a:null),[a,r]));let d=Hg(e,n),{collection:f,selectionManager:c}=d,p=!!(o!=null&&o.useDraggableCollectionState),m=!!(o!=null&&o.useDroppableCollectionState),{direction:b}=be(),{disabledBehavior:g,disabledKeys:y}=c,$=Sn({usage:"search",sensitivity:"base"}),{isVirtualized:E,layoutDelegate:x,dropTargetDelegate:B,CollectionRoot:w}=u.useContext(Pr),D=u.useMemo(()=>t.keyboardDelegate||new Bn({collection:f,collator:$,ref:r,disabledKeys:y,disabledBehavior:g,layout:l,orientation:s,direction:b,layoutDelegate:x}),[f,$,r,g,y,s,b,t.keyboardDelegate,l,x]),{listBoxProps:I}=S3({...t,shouldSelectOnPressUp:p||t.shouldSelectOnPressUp,keyboardDelegate:D,isVirtualized:E},d,r),M=u.useRef(p),O=u.useRef(m);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(M.current!==p&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),O.current!==m&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,m]);let F,h,T,L=!1,R=null,H=u.useRef(null);if(p&&o){F=o.useDraggableCollectionState({collection:f,selectionManager:c,preview:o.renderDragPreview?H:void 0}),o.useDraggableCollection({},F,r);let V=o.DragPreview;R=o.renderDragPreview?u.createElement(V,{ref:H},o.renderDragPreview):null}if(m&&o){h=o.useDroppableCollectionState({collection:f,selectionManager:c});let V=o.dropTargetDelegate||B||new o.ListDropTargetDelegate(f,r,{orientation:s,layout:l,direction:b});T=o.useDroppableCollection({keyboardDelegate:D,dropTargetDelegate:V},h,r),L=h.isDropTarget({type:"root"})}let{focusProps:v,isFocused:k,isFocusVisible:P}=ve(),K={isDropTarget:L,isEmpty:d.collection.size===0,isFocused:k,isFocusVisible:P,layout:t.layout||"stack",state:d},A=ae({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:K}),_=null;return d.collection.size===0&&t.renderEmptyState&&(_=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(K))),u.createElement(Yu,null,u.createElement("div",{...q(t),...N(I,v,T==null?void 0:T.collectionProps),...A,ref:r,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":L||void 0,"data-empty":d.collection.size===0||void 0,"data-focused":k||void 0,"data-focus-visible":P||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Ne,{values:[[Ba,t],[rt,d],[Rn,{dragAndDropHooks:o,dragState:F,dropState:h}],[Ey,{elementType:"div"}],[Em,{render:By}],[yy,{name:"ListBoxSection",render:km}]]},u.createElement(w,{collection:f,scrollRef:r,persistedKeys:Dy(c,o,h),renderDropIndicator:Pm(o,h)})),_,R))}function km(e,t,r,n="react-aria-ListBoxSection"){let i=u.useContext(rt),{dragAndDropHooks:a,dropState:o}=u.useContext(Rn),{CollectionBranch:l}=u.useContext(Pr),[s,d]=Cr();var f;let{headingProps:c,groupProps:p}=L3({heading:d,"aria-label":(f=e["aria-label"])!==null&&f!==void 0?f:void 0}),m=ae({defaultClassName:n,className:e.className,style:e.style,values:{}});return u.createElement("section",{...q(e),...p,...m,ref:t},u.createElement(wm.Provider,{value:{...c,ref:s}},u.createElement(l,{collection:i.collection,parent:r,renderDropIndicator:Pm(a,o)})))}const Sy=Mg("section",km),ky=$a("item",function(t,r,n){let i=de(r),a=u.useContext(rt),{dragAndDropHooks:o,dragState:l,dropState:s}=u.useContext(Rn),{optionProps:d,labelProps:f,descriptionProps:c,...p}=M3({key:n.key,"aria-label":t==null?void 0:t["aria-label"]},a,i),{hoverProps:m,isHovered:b}=Ae({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),g=null;l&&o&&(g=o.useDraggableItem({key:n.key},l));let y=null;s&&o&&(y=o.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},s,i));let $=l&&l.isDragging(n.key),E=ae({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:b,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!l,isDragging:$,isDropTarget:y==null?void 0:y.isDropTarget}});u.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let x=t.href?"a":"div";return u.createElement(x,{...N(d,m,g==null?void 0:g.dragProps,y==null?void 0:y.dropProps),...E,ref:i,"data-allows-dragging":!!l||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":$||void 0,"data-drop-target":(y==null?void 0:y.isDropTarget)||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},u.createElement(Ne,{values:[[Zt,{slots:{[bn]:f,label:f,description:c}}]]},E.children))});function By(e,t){t=de(t);let{dragAndDropHooks:r,dropState:n}=u.useContext(Rn),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=r.useDropIndicator(e,n,t);return a?null:u.createElement(Fy,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function Ty(e,t){let{dropIndicatorProps:r,isDropTarget:n,...i}=e,a=ae({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return u.createElement("div",{...r,...a,role:"option",ref:t,"data-drop-target":n||void 0})}const Fy=u.forwardRef(Ty),Bm=u.createContext({placement:"bottom"}),Ta=u.createContext(null),Ml=u.createContext(null),Tm=u.forwardRef(function(t,r){[t,r]=ce(t,r,Ta);let n=u.useContext(An),i=Fn(t),a=t.isOpen!=null||t.defaultOpen!=null||!n?i:n,o=ru(r,a.isOpen)||t.isExiting||!1,l=Tg(),{direction:s}=be();if(l){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,d)}return a&&!a.isOpen&&!o?null:u.createElement(Ry,{...t,triggerRef:t.triggerRef,state:a,popoverRef:r,isExiting:o,dir:s})});function Ry({state:e,isExiting:t,UNSTABLE_portalContainer:r,...n}){let i=u.useRef(null),[a,o]=u.useState(0),l=u.useRef(null),s=u.useContext(Ml),d=s&&n.trigger==="SubmenuTrigger";U(()=>{i.current&&e.isOpen&&o(i.current.getBoundingClientRect().width)},[e.isOpen,i]);var f;let{popoverProps:c,underlayProps:p,arrowProps:m,placement:b}=g3({...n,offset:(f=n.offset)!==null&&f!==void 0?f:8,arrowSize:a,groupRef:d?s:l},e),g=n.popoverRef,y=tu(g,!!b)||n.isEntering||!1,$=ae({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:b,isEntering:y,isExiting:t}}),E=!n.isNonModal||n.trigger==="SubmenuTrigger",[x,B]=u.useState(!1);U(()=>{g.current&&B(E&&!g.current.querySelector("[role=dialog]"))},[g,E]),u.useEffect(()=>{x&&g.current&&!g.current.contains(document.activeElement)&&ge(g.current)},[x,g]);let w={...c.style,...$.style},D=u.createElement("div",{...N(q(n),c),...$,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:w,dir:n.dir,"data-trigger":n.trigger,"data-placement":b,"data-entering":y||void 0,"data-exiting":t||void 0},!n.isNonModal&&u.createElement(fl,{onDismiss:e.close}),u.createElement(Bm.Provider,{value:{...m,placement:b,ref:i}},$.children),u.createElement(fl,{onDismiss:e.close}));if(!d)return u.createElement(pl,{...n,shouldContainFocus:x,isExiting:t,portalContainer:r},!n.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:l,style:{display:"contents"}},u.createElement(Ml.Provider,{value:l},D)));var I;return u.createElement(pl,{...n,shouldContainFocus:x,isExiting:t,portalContainer:(I=r??(s==null?void 0:s.current))!==null&&I!==void 0?I:void 0},D)}const Ay=u.createContext(null),Fm=u.createContext(null),An=u.createContext(null);function Iy(e){let t=ly(e),r=u.useRef(null),{triggerProps:n,overlayProps:i}=Pd({type:"dialog"},t,r);return n.id=J(),i["aria-labelledby"]=n.id,u.createElement(Ne,{values:[[An,t],[Ay,t],[Fm,i],[Ta,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":i["aria-labelledby"]}]]},u.createElement(th,{...n,ref:r,isPressed:t.isOpen},e.children))}const My=u.forwardRef(function(t,r){let n=t["aria-labelledby"];[t,r]=ce(t,r,Fm);let{dialogProps:i,titleProps:a}=Z3({...t,"aria-labelledby":n},r),o=u.useContext(An);!i["aria-label"]&&!i["aria-labelledby"]&&(t["aria-labelledby"]?i["aria-labelledby"]=t["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=ae({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(o==null?void 0:o.close)||(()=>{})}});return u.createElement("section",{...q(t),...i,...l,ref:r,slot:t.slot||void 0},u.createElement(Ne,{values:[[Sg,{slots:{[bn]:{},title:{...a,level:2}}}],[Er,{slots:{[bn]:{},close:{onPress:()=>o==null?void 0:o.close()}}}]]},l.children))}),Ly=u.createContext(null),Ny=u.createContext(null),In=u.createContext(null),Mn=u.createContext(null),Ky=u.forwardRef(function(t,r){[t,r]=ce(t,r,Ny);let{validationBehavior:n}=Dr(Sa)||{};var i,a;let o=(a=(i=t.validationBehavior)!==null&&i!==void 0?i:n)!==null&&a!==void 0?a:"native",{locale:l}=be(),s=iy({...t,locale:l,validationBehavior:o}),d=u.useRef(null),[f,c]=Cr(!t["aria-label"]&&!t["aria-labelledby"]),p=u.useRef(null),{labelProps:m,fieldProps:b,inputProps:g,descriptionProps:y,errorMessageProps:$,...E}=j3({...ha(t),label:c,inputRef:p,validationBehavior:o},s,d),x=ae({...t,values:{state:s,isInvalid:s.isInvalid,isDisabled:s.isDisabled},defaultClassName:"react-aria-TimeField"}),B=q(t);return delete B.id,u.createElement(Ne,{values:[[Mn,s],[ka,{...b,ref:d,isInvalid:s.isInvalid,isDisabled:s.isDisabled}],[Da,{...g,ref:p}],[Tn,{...m,ref:f,elementType:"span"}],[Zt,{slots:{description:y,errorMessage:$}}],[Ea,E]]},u.createElement("div",{...B,...x,ref:r,slot:t.slot||void 0,"data-invalid":s.isInvalid||void 0,"data-disabled":s.isDisabled||void 0}))}),Vy=u.forwardRef(function(t,r){let n=u.useContext(In),i=u.useContext(Mn);return n||i?u.createElement(Rm,{...t,ref:r}):u.createElement(Oy,{...t,ref:r})}),Oy=u.forwardRef((e,t)=>{let[r,n]=ce({slot:e.slot},t,Ly),{locale:i}=be(),a=Op({...r,locale:i,createCalendar:nv}),o=u.useRef(null),{fieldProps:l,inputProps:s}=Ff({...r,inputRef:o},a,n);return u.createElement(Ne,{values:[[In,a],[Da,{...s,ref:o}],[ka,{...l,ref:n,isInvalid:a.isInvalid,isDisabled:a.isDisabled}]]},u.createElement(Rm,e))}),Rm=u.forwardRef((e,t)=>{let{className:r,children:n}=e,i=u.useContext(In),a=u.useContext(Mn),o=i??a;return u.createElement(u.Fragment,null,u.createElement(my,{...e,ref:t,slot:e.slot||void 0,className:r??"react-aria-DateInput",isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((l,s)=>u.cloneElement(n(l),{key:s}))),u.createElement(rp,null))}),zy=u.forwardRef(function({segment:t,...r},n){let i=u.useContext(In),a=u.useContext(Mn),o=i??a,l=de(n),{segmentProps:s}=W3(t,o,l),{focusProps:d,isFocused:f,isFocusVisible:c}=ve(),{hoverProps:p,isHovered:m}=Ae({...r,isDisabled:o.isDisabled||t.type==="literal"}),{isEditable:b,...g}=t,y=ae({...r,values:{...g,isReadOnly:!b,isInvalid:o.isInvalid,isDisabled:o.isDisabled,isHovered:m,isFocused:f,isFocusVisible:c},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("span",{...N(q(r),s,d,p),...y,style:s.style,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":o.isInvalid||void 0,"data-readonly":!b||void 0,"data-disabled":o.isDisabled||void 0,"data-type":t.type,"data-hovered":m||void 0,"data-focused":f||void 0,"data-focus-visible":c||void 0})}),jy=u.createContext(null),Hy=u.createContext(null),Am=u.createContext(null),_y=u.forwardRef(function(t,r){[t,r]=ce(t,r,jy);let{validationBehavior:n}=Dr(Sa)||{};var i,a;let o=(a=(i=t.validationBehavior)!==null&&i!==void 0?i:n)!==null&&a!==void 0?a:"native",l=dy({...t,validationBehavior:o}),[s,d]=Cr(!t["aria-label"]&&!t["aria-labelledby"]),{radioGroupProps:f,labelProps:c,descriptionProps:p,errorMessageProps:m,...b}=dg({...t,label:d,validationBehavior:o},l),g=ae({...t,values:{orientation:t.orientation||"vertical",isDisabled:l.isDisabled,isReadOnly:l.isReadOnly,isRequired:l.isRequired,isInvalid:l.isInvalid,state:l},defaultClassName:"react-aria-RadioGroup"});return u.createElement("div",{...f,...g,ref:r,slot:t.slot||void 0,"data-orientation":t.orientation||"vertical","data-invalid":l.isInvalid||void 0,"data-disabled":l.isDisabled||void 0,"data-readonly":l.isReadOnly||void 0,"data-required":l.isRequired||void 0},u.createElement(Ne,{values:[[Am,l],[Tn,{...c,ref:s,elementType:"span"}],[Zt,{slots:{description:p,errorMessage:m}}],[Ea,b]]},g.children))}),Uy=u.forwardRef(function(t,r){let{inputRef:n=null,...i}=t;[t,r]=ce(i,r,Hy);let a=u.useContext(Am),o=de(zi(n,t.inputRef!==void 0?t.inputRef:null)),{labelProps:l,inputProps:s,isSelected:d,isDisabled:f,isPressed:c}=sg({...ha(t),children:typeof t.children=="function"?!0:t.children},a,o),{isFocused:p,isFocusVisible:m,focusProps:b}=ve(),g=f||a.isReadOnly,{hoverProps:y,isHovered:$}=Ae({...t,isDisabled:g}),E=ae({...t,defaultClassName:"react-aria-Radio",values:{isSelected:d,isPressed:c,isHovered:$,isFocused:p,isFocusVisible:m,isDisabled:f,isReadOnly:a.isReadOnly,isInvalid:a.isInvalid,isRequired:a.isRequired}}),x=q(t);return delete x.id,u.createElement("label",{...N(x,l,y,E),ref:r,"data-selected":d||void 0,"data-pressed":c||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":f||void 0,"data-readonly":a.isReadOnly||void 0,"data-invalid":a.isInvalid||void 0,"data-required":a.isRequired||void 0},u.createElement(sa,{elementType:"span"},u.createElement("input",{...N(s,b),ref:o})),E.children)});function Wy(e){return e&&e.__esModule?e.default:e}const Fa=u.createContext(null),Ra=u.createContext(null),Gy=u.forwardRef(function(t,r){[t,r]=ce(t,r,Fa);let{children:n,isDisabled:i=!1,isInvalid:a=!1,isRequired:o=!1}=t,l=u.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:o,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,i,a,o]);return u.createElement(ya,{content:l},s=>u.createElement(Zy,{props:t,collection:s,selectRef:r}))});function Zy({props:e,selectRef:t,collection:r}){let{validationBehavior:n}=Dr(Sa)||{};var i,a;let o=(a=(i=e.validationBehavior)!==null&&i!==void 0?i:n)!==null&&a!==void 0?a:"native",l=cy({...e,collection:r,children:void 0,validationBehavior:o}),{isFocusVisible:s,focusProps:d}=ve({within:!0}),f=u.useRef(null),[c,p]=Cr(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:m,triggerProps:b,valueProps:g,menuProps:y,descriptionProps:$,errorMessageProps:E,...x}=cg({...ha(e),label:p,validationBehavior:o},l,f),[B,w]=u.useState(null),D=u.useCallback(()=>{f.current&&w(f.current.offsetWidth+"px")},[f]);vi({ref:f,onResize:D});let I=u.useMemo(()=>({isOpen:l.isOpen,isFocused:l.isFocused,isFocusVisible:s,isDisabled:e.isDisabled||!1,isInvalid:x.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,l.isFocused,s,e.isDisabled,x.isInvalid,e.isRequired]),M=ae({...e,values:I,defaultClassName:"react-aria-Select"}),O=q(e);delete O.id;let F=u.useRef(null);return u.createElement(Ne,{values:[[Fa,e],[Ra,l],[Im,g],[Tn,{...m,ref:c,elementType:"span"}],[Er,{...b,ref:f,isPressed:l.isOpen}],[An,l],[Ta,{trigger:"Select",triggerRef:f,scrollRef:F,placement:"bottom start",style:{"--trigger-width":B},"aria-labelledby":y["aria-labelledby"]}],[Ba,{...y,ref:F}],[rt,l],[Zt,{slots:{description:$,errorMessage:E}}],[Ea,x]]},u.createElement("div",{...O,...M,...d,ref:t,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":x.isInvalid||void 0,"data-required":e.isRequired||void 0}),u.createElement(pg,{autoComplete:e.autoComplete,state:l,triggerRef:f,label:p,name:e.name,isDisabled:e.isDisabled}))}const Im=u.createContext(null),qy=u.forwardRef(function(t,r){var n,i;[t,r]=ce(t,r,Im);let a=u.useContext(Ra),{placeholder:o}=Dr(Fa),l=a.selectedKey!=null?a.collection.getItem(a.selectedKey):null,s=l==null?void 0:l.props.children;typeof s=="function"&&(s=s({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let d=tt(Wy(Cm),"react-aria-components");var f,c,p;let m=ae({...t,defaultChildren:(f=s??o)!==null&&f!==void 0?f:d.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(c=(n=a.selectedItem)===null||n===void 0?void 0:n.value)!==null&&c!==void 0?c:null,selectedText:(p=(i=a.selectedItem)===null||i===void 0?void 0:i.textValue)!==null&&p!==void 0?p:null,isPlaceholder:!l}}),b=q(t);return u.createElement("span",{ref:r,...b,...m,"data-placeholder":!l||void 0},u.createElement(Zt.Provider,{value:void 0},m.children))}),Yy=u.createContext(null),Mm=u.createContext(null),Jy=u.forwardRef(function(t,r){return[t,r]=ce(t,r,Yy),u.createElement(ya,{content:t.children},n=>u.createElement(Xy,{props:t,forwardedRef:r,collection:n}))});function Xy({props:e,forwardedRef:t,collection:r}){let n=u.useRef(null),[i,a]=Cr(!e["aria-label"]&&!e["aria-labelledby"]),o=wa({...e,children:void 0,collection:r}),l=q(e),s=Object.fromEntries(Object.entries(l).map(([b])=>[b,void 0])),{gridProps:d,labelProps:f,descriptionProps:c,errorMessageProps:p}=bg({...e,...s,label:a},o,n);var m;return u.createElement("div",{...l,ref:t,slot:e.slot||void 0,className:(m=e.className)!==null&&m!==void 0?m:"react-aria-TagGroup",style:e.style},u.createElement(Ne,{values:[[Tn,{...f,elementType:"span",ref:i}],[Mm,{...d,ref:n}],[rt,o],[Zt,{slots:{description:c,errorMessage:p}}]]},e.children))}const Qy=u.forwardRef(function(t,r){return u.useContext(rt)?u.createElement(e$,{props:t,forwardedRef:r}):u.createElement(xa,t)});function e$({props:e,forwardedRef:t}){let r=u.useContext(rt),{CollectionRoot:n}=u.useContext(Pr),[i,a]=ce(e,t,Mm);delete i.items,delete i.renderEmptyState;let{focusProps:o,isFocused:l,isFocusVisible:s}=ve(),d={isEmpty:r.collection.size===0,isFocused:l,isFocusVisible:s,state:r},f=ae({className:e.className,style:e.style,defaultClassName:"react-aria-TagList",values:d}),c=$y(r.selectionManager.focusedKey);return u.createElement("div",{...N(i,o),...f,ref:a,"data-empty":r.collection.size===0||void 0,"data-focused":l||void 0,"data-focus-visible":s||void 0},r.collection.size===0&&e.renderEmptyState?e.renderEmptyState(d):u.createElement(n,{collection:r.collection,persistedKeys:c}))}const t$=$a("item",(e,t,r)=>{let n=u.useContext(rt),i=de(t),{focusProps:a,isFocusVisible:o}=ve({within:!0}),{rowProps:l,gridCellProps:s,removeButtonProps:d,...f}=vg({item:r},n,i),{hoverProps:c,isHovered:p}=Ae({isDisabled:!f.allowsSelection,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),m=ae({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tag",values:{...f,isFocusVisible:o,isHovered:p,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior}});return u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[r.textValue]),u.createElement("div",{ref:i,...m,...N(q(e),l,a,c),"data-selected":f.isSelected||void 0,"data-disabled":f.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":o||void 0,"data-pressed":f.isPressed||void 0,"data-allows-removing":f.allowsRemoving||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement("div",{...s,style:{display:"contents"}},u.createElement(Ne,{values:[[Er,{slots:{remove:d}}],[Pr,jp]]},m.children)))}),r$=u.createContext({}),Lm=u.createContext(null),n$=u.forwardRef(function(t,r){[t,r]=ce(t,r,r$);let n=zv(t),{groupProps:i}=Tv(t,n,r),a=ae({...t,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return u.createElement("div",{...i,...a,ref:r,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},u.createElement(Lm.Provider,{value:n},a.children))}),i$=u.createContext({}),a$=u.forwardRef(function(t,r){[t,r]=ce(t,r,i$);let n=u.useContext(Lm),i=ua(n&&t.id!=null?{isSelected:n.selectedKeys.has(t.id),onChange(g){n.setSelected(t.id,g)}}:t),{buttonProps:a,isPressed:o,isSelected:l,isDisabled:s}=n&&t.id!=null?Fv({...t,id:t.id},n,r):Zu({...t,id:t.id!=null?String(t.id):void 0},i,r),{focusProps:d,isFocused:f,isFocusVisible:c}=ve(t),{hoverProps:p,isHovered:m}=Ae(t),b=ae({...t,id:void 0,values:{isHovered:m,isPressed:o,isFocused:f,isSelected:i.isSelected,isFocusVisible:c,isDisabled:s,state:i},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...N(a,d,p),...b,ref:r,slot:t.slot||void 0,"data-focused":f||void 0,"data-disabled":s||void 0,"data-pressed":o||void 0,"data-selected":l||void 0,"data-hovered":m||void 0,"data-focus-visible":c||void 0})}),Aa=u.createContext(null),Nm=u.createContext(null);function o$(e){let t=zp(e),r=u.useRef(null),{triggerProps:n,tooltipProps:i}=yg(e,t,r);return u.createElement(Ne,{values:[[Aa,t],[Nm,{...i,triggerRef:r}]]},u.createElement(eh,{...n,ref:r},e.children))}const l$=u.forwardRef(function({UNSTABLE_portalContainer:t,...r},n){[r,n]=ce(r,n,Nm);let i=u.useContext(Aa),a=zp(r),o=r.isOpen!=null||r.defaultOpen!=null||!i?a:i,l=ru(n,o.isOpen)||r.isExiting||!1;return!o.isOpen&&!l?null:u.createElement(m3,{portalContainer:t},u.createElement(u$,{...r,tooltipRef:n,isExiting:l}))});function u$(e){let t=u.useContext(Aa),r=u.useRef(null),[n,i]=u.useState(0);U(()=>{r.current&&t.isOpen&&i(r.current.getBoundingClientRect().width)},[t.isOpen,r]);let{overlayProps:a,arrowProps:o,placement:l}=Ed({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:n,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,onClose:()=>t.close(!0)}),s=tu(e.tooltipRef,!!l)||e.isEntering||!1,d=ae({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:s,isExiting:e.isExiting,state:t}});e=N(e,a);let{tooltipProps:f}=gg(e,t);return u.createElement("div",{...f,ref:e.tooltipRef,...d,style:{...a.style,...d.style},"data-placement":l??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},u.createElement(Bm.Provider,{value:{...o,placement:l,ref:r}},d.children))}const wt=e=>{const{children:t,ref:r,...n}=e,i=u.useRef(null),a=de(S.mergeRefs(i,r)),[o]=ce(n,a,Er);return C.jsx(ba,{px:0,py:0,...o,ref:a,children:t})};wt.displayName="IconButton";const Km=e=>C.jsx(S.Image,{...e});Km.displayName="Image";const Vm=S.defineRecipe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:s$}=S.createRecipeContext({recipe:Vm}),d$=s$("a"),Om=e=>{const{as:t,asChild:r,children:n,ref:i,...a}=e,o=u.useRef(null),l=de(S.mergeRefs(o,i)),s=t||(r?"span":"a")||"a",{linkProps:d}=lh({...a,elementType:s},l);return C.jsx(d$,{...N(a,d,{as:t,asChild:r,ref:l}),children:n})};Om.displayName="Link";const zm=S.List.Root,jm=S.List.Item,Hm=S.List.Indicator,c$={Root:zm,Item:jm,Indicator:Hm},_m=e=>{const{ref:t,...r}=e;return C.jsx(S.SimpleGrid,{ref:t,...r})};_m.displayName="SimpleGrid";const f$=Object.assign(_m,{Item:S.GridItem}),Um=e=>{const{ref:t,...r}=e;return C.jsx(S.Text,{ref:t,...r})};Um.displayName="Text";function Ia(e){return C.jsx(o$,{...e})}Ia.displayName="Tooltip.Root";const Wm=S.defineRecipe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:p$}=S.createRecipeContext({recipe:Wm}),m$=p$("div");function Ma({children:e,placement:t="bottom",ref:r,...n}){return C.jsx(m$,{ref:r,asChild:!0,...n,children:C.jsx(l$,{placement:t,...n,children:e})})}Ma.displayName="Tooltip.Content";const Vi={Root:Ia,Content:Ma},Gm=u.forwardRef(function(t,r){const n=u.useRef(null),i=de(S.mergeRefs(n,r)),{focusableProps:a}=ct(t,i);if(u.isValidElement(t.children))return u.cloneElement(t.children,N(a,t.children.props,{ref:i}))});Gm.displayName="MakeElementFocusable";var b$=(e,t,r,n,i,a,o,l)=>{let s=document.documentElement,d=["light","dark"];function f(m){(Array.isArray(e)?e:[e]).forEach(b=>{let g=b==="class",y=g&&a?i.map($=>a[$]||$):i;g?(s.classList.remove(...y),s.classList.add(a&&a[m]?a[m]:m)):s.setAttribute(b,m)}),c(m)}function c(m){l&&d.includes(m)&&(s.style.colorScheme=m)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)f(n);else try{let m=localStorage.getItem(t)||r,b=o&&m==="system"?p():m;f(b)}catch{}},Ll=["light","dark"],Zm="(prefers-color-scheme: dark)",h$=typeof window>"u",La=fe.createContext(void 0),v$={setTheme:e=>{},themes:[]},g$=()=>{var e;return(e=fe.useContext(La))!=null?e:v$},y$=e=>fe.useContext(La)?fe.createElement(fe.Fragment,null,e.children):fe.createElement(x$,{...e}),$$=["light","dark"],x$=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:i="theme",themes:a=$$,defaultTheme:o=r?"system":"light",attribute:l="data-theme",value:s,children:d,nonce:f,scriptProps:c})=>{let[p,m]=fe.useState(()=>C$(i,o)),[b,g]=fe.useState(()=>p==="system"?ci():p),y=s?Object.values(s):a,$=fe.useCallback(w=>{let D=w;if(!D)return;w==="system"&&r&&(D=ci());let I=s?s[D]:D,M=t?E$(f):null,O=document.documentElement,F=h=>{h==="class"?(O.classList.remove(...y),I&&O.classList.add(I)):h.startsWith("data-")&&(I?O.setAttribute(h,I):O.removeAttribute(h))};if(Array.isArray(l)?l.forEach(F):F(l),n){let h=Ll.includes(o)?o:null,T=Ll.includes(D)?D:h;O.style.colorScheme=T}M==null||M()},[f]),E=fe.useCallback(w=>{let D=typeof w=="function"?w(p):w;m(D);try{localStorage.setItem(i,D)}catch{}},[p]),x=fe.useCallback(w=>{let D=ci(w);g(D),p==="system"&&r&&!e&&$("system")},[p,e]);fe.useEffect(()=>{let w=window.matchMedia(Zm);return w.addListener(x),x(w),()=>w.removeListener(x)},[x]),fe.useEffect(()=>{let w=D=>{D.key===i&&(D.newValue?m(D.newValue):E(o))};return window.addEventListener("storage",w),()=>window.removeEventListener("storage",w)},[E]),fe.useEffect(()=>{$(e??p)},[e,p]);let B=fe.useMemo(()=>({theme:p,setTheme:E,forcedTheme:e,resolvedTheme:p==="system"?b:p,themes:r?[...a,"system"]:a,systemTheme:r?b:void 0}),[p,E,e,b,r,a]);return fe.createElement(La.Provider,{value:B},fe.createElement(D$,{forcedTheme:e,storageKey:i,attribute:l,enableSystem:r,enableColorScheme:n,defaultTheme:o,value:s,themes:a,nonce:f,scriptProps:c}),d)},D$=fe.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:a,value:o,themes:l,nonce:s,scriptProps:d})=>{let f=JSON.stringify([r,t,a,e,l,o,n,i]).slice(1,-1);return fe.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${b$.toString()})(${f})`}})}),C$=(e,t)=>{if(h$)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},E$=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},ci=e=>(e||(e=window.matchMedia(Zm)),e.matches?"dark":"light");function P$(e){return C.jsx(y$,{attribute:"class",disableTransitionOnChange:!0,...e})}function qm(){const{resolvedTheme:e,setTheme:t}=g$();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function w$(e,t){const{colorMode:r}=qm();return r==="light"?e:t}const S$=S.defineAnimationStyles({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function k$(e){var r;const t={};for(const n in e)(r=e[n])!=null&&r.value?t[n]=e[n].value:t[n]=e[n];return t}const B$=k$(ee.themeTokens.breakpoints),T$=S.defineGlobalStyles({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--focus-ring-width":"sizes.50","--focus-ring-offset":"spacing.50","--focus-ring-style":"solid","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"initial",verticalAlign:"initial"}}),F$={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},R$=S.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),A$=S.defineRecipe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),I$=S.defineRecipe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),M$=S.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),Na=S.defineRecipe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"primary.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),Ka=S.defineSlotRecipe({slots:["root","option"],className:"nimbus-radio-input",base:{root:{colorPalette:"primary",display:"inline-flex",flexDirection:"row",alignItems:"center",verticalAlign:"top"},option:{gap:"200",flexShrink:0,whiteSpace:"nowrap",userSelect:"none",position:"relative",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{width:"500",height:"500",color:"neutral.9","&:hover":{color:"neutral.10"}},"&[data-selected] > svg":{color:"colorPalette.9"},"&[data-disabled='true']":{layerStyle:"disabled"},"&[data-invalid='true']":{color:"critical.9","& > svg":{color:"critical.9"}},"&[data-focus] > svg":{outline:"2px solid var(--focus-ring-color, ##AFBBFF)",outlineOffset:"1px",borderRadius:"50%"}}},variants:{orientation:{horizontal:{root:{flexDirection:"row",gap:"600"}},vertical:{root:{flexDirection:"column",alignItems:"flex-start",gap:"400"}}}},defaultVariants:{orientation:"vertical"}}),L$={avatar:_l,button:vt,code:A$,heading:I$,kbd:M$,link:Vm,tooltip:Wm,textInput:Na,radioInput:Ka},N$=S.defineSemanticTokens.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...ee.themeTokens.color["system-palettes"],...ee.themeTokens.color["brand-palettes"],...ee.themeTokens.color["semantic-palettes"]}),K$=S.defineSemanticTokens.shadows(ee.themeTokens.shadow),V$=S.defineSemanticTokens.radii({}),O$={colors:N$,shadows:K$,radii:V$},z$=S.defineSlotRecipe({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),j$=S.defineSlotRecipe({className:"nimbus-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),H$=S.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),_$=S.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),Ym=S.defineSlotRecipe({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"primary.1","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),U$=S.defineSlotRecipe({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),W$=S.defineSlotRecipe({slots:["root","tagList","tag"],className:"nimbus-tag-group",base:{root:{display:"flex",flexDirection:"column",gapY:"50"},tagList:{display:"flex",flexWrap:"wrap",gap:"100"},tag:{colorPalette:"primary",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",gap:"100",borderRadius:"200",background:"colorPalette.3",fontSize:"400",lineHeight:"500",focusVisibleRing:"outside","&[data-disabled] &":{layerStyle:"disabled",pointerEvents:"none"},"&[data-selected]":{background:"colorPalette.9",color:"colorPalette.contrast",cursor:"button"},"&[aria-selected]":{cursor:"button"},"& [role='gridcell']":{display:"inline-flex !important",alignItems:"center",justifyContent:"space-between",gapX:"100"}}},variants:{size:{sm:{tag:{minH:"600",paddingX:"200",fontSize:"350",lineHeight:"400"}},md:{tag:{minH:"800",paddingX:"200",paddingY:"100"}},lg:{tag:{minH:"1000",padding:"200"}}}},defaultVariants:{size:"lg"}}),Jm=S.defineSlotRecipe({slots:["root","label","track","thumb"],className:"nimbus-switch",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",cursor:"pointer",borderRadius:"full","&[data-disabled='true']":{layerStyle:"disabled",pointerEvents:"none"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11",fontSize:"var(--label-font-size)"},track:{colorPalette:"neutral",focusRing:"outside",position:"relative",display:"flex",alignItems:"center",flexShrink:0,width:"var(--track-width)",height:"var(--track-height)",borderRadius:"calc(var(--track-height) / 2)",backgroundColor:"colorPalette.5",transition:"background-color 0.2s","&[data-selected='true']":{colorPalette:"primary",backgroundColor:"colorPalette.9"},"&:hover":{backgroundColor:"colorPalette.7","&[data-selected='true']":{backgroundColor:"colorPalette.10"}}},thumb:{position:"absolute",borderRadius:"full",border:"solid-50",borderColor:"primary.9",backgroundColor:"neutral.1",transition:"all 0.2s",boxSize:"var(--thumb-size)","&[data-selected='false']":{left:"0"},"&[data-selected='true']":{left:"calc(100% - var(--thumb-size))"}}},variants:{size:{sm:{track:{"--track-height":"sizes.400","--track-width":"sizes.700"},thumb:{"--thumb-size":"sizes.400"},label:{"--label-font-size":"fontSizes.350"}},md:{track:{"--track-height":"sizes.600","--track-width":"sizes.1100"},thumb:{"--thumb-size":"sizes.600"},label:{"--label-font-size":"fontSizes.400"}}}},defaultVariants:{size:"md"}}),Xm=S.defineSlotRecipe({className:"nimbus-number-input",slots:["root","input","incrementButton","decrementButton"],base:{root:{display:"inline-block",position:"relative","&:has(button:hover) input":{backgroundColor:"primary.2"}},input:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",appearance:"textfield",width:"full",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},incrementButton:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",w:600,h:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"button",bg:"transparent",_hover:{bg:"primary.2"},_active:{bg:"neutral.4"},_disabled:{opacity:.5,cursor:"not-allowed"},"& svg":{fill:"primary.9"},borderTopRightRadius:"200","&[data-invalid='true']":{"--border-color":"colors.critical.7"}},decrementButton:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",w:600,h:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"button",bg:"transparent",_hover:{bg:"primary.2"},_active:{bg:"neutral.4"},_disabled:{opacity:.5,cursor:"not-allowed"},"& svg":{fill:"primary.9"},borderBottomRightRadius:"200","&[data-invalid='true']":{"--border-color":"colors.critical.7"}}},variants:{size:{sm:{input:{h:800,textStyle:"sm",px:300,paddingRight:800}},md:{input:{h:1e3,textStyle:"md",px:400,paddingRight:800}}},variant:{solid:{root:{"&:has(button:hover) input":{backgroundColor:"primary.2"}},input:{boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},incrementButton:{borderTop:"var(--border-width) solid var(--border-color)",borderRight:"var(--border-width) solid var(--border-color)",borderLeft:"var(--border-width) solid var(--border-color)",boxShadow:"inset 0 -0.5px 0 0 var(--border-color)",_hover:{backgroundColor:"primaryAlpha.3"}},decrementButton:{borderBottom:"var(--border-width) solid var(--border-color)",borderRight:"var(--border-width) solid var(--border-color)",borderLeft:"var(--border-width) solid var(--border-color)",boxShadow:"inset 0 0.5px 0 0 var(--border-color)",_hover:{backgroundColor:"primaryAlpha.3"}}},ghost:{root:{"&:has(button:hover) input":{backgroundColor:"primary.2"}},input:{_hover:{backgroundColor:"primary.2"}},incrementButton:{_hover:{backgroundColor:"primaryAlpha.3"}},decrementButton:{_hover:{backgroundColor:"primaryAlpha.3"}}}}},defaultVariants:{size:"md",variant:"solid"}}),G$={dialog:z$,list:j$,table:H$,checkbox:_$,select:Ym,accordion:U$,taggroup:W$,switch:Jm,"number-input":Xm,radioInput:Ka},Z$=S.defineTextStyles(ee.themeTokens.textStyle),q$=S.defineTokens.durations(ee.themeTokens.aspectRatio),Y$=S.defineTokens.animations(ee.themeTokens.animation),J$=S.defineTokens.blurs(ee.themeTokens.blur),X$=S.defineTokens.borders(ee.themeTokens.border),Q$=S.defineTokens.colors({...ee.themeTokens.color["blacks-and-whites"]}),e1=S.defineTokens.durations(ee.themeTokens.duration),t1=S.defineTokens.easings(ee.themeTokens.easing),r1=S.defineTokens.fonts(ee.themeTokens.fontFamily),n1=S.defineTokens.fontSizes(ee.themeTokens.fontSize),i1=S.defineTokens.fontWeights(ee.themeTokens.fontWeight),a1=e=>Object.keys(e).reduce((t,r)=>{const i=parseFloat(e[r].value)/100;return t[r]={value:`${i}em`},t},{}),o1=S.defineTokens.letterSpacings(a1(ee.themeTokens.letterSpacing)),l1=S.defineTokens.lineHeights(ee.themeTokens.lineHeight),u1=S.defineTokens.radii(ee.themeTokens.borderRadius),s1=S.defineTokens.spacing(ee.themeTokens.spacing),d1=S.defineTokens.sizes({...ee.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),c1=S.defineTokens.zIndex(ee.themeTokens.zIndex),f1=S.defineTokens.cursor(ee.themeTokens.cursor),p1={aspectRatios:q$,animations:Y$,blurs:J$,borders:X$,colors:Q$,durations:e1,easings:t1,fonts:r1,fontSizes:n1,fontWeights:i1,letterSpacings:o1,lineHeights:l1,radii:u1,spacing:s1,sizes:d1,zIndex:c1,cursor:f1},m1=S.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:T$,theme:{breakpoints:B$,keyframes:F$,tokens:p1,semanticTokens:O$,recipes:L$,slotRecipes:G$,textStyles:Z$,layerStyles:R$,animationStyles:S$}}),Qm=S.createSystem(S.defaultBaseConfig,m1);function b1(){const[e,t]=u.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return u.useEffect(()=>{const n=document.documentElement,i=new MutationObserver(()=>{const a=r();t(a)});return i.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>i.disconnect()},[]),e}function h1({children:e,...t}){return C.jsx(S.ChakraProvider,{value:Qm,children:C.jsx(P$,{enableSystem:!1,...t,children:C.jsx(C.Fragment,{children:e})})})}function He(e){const t={},r={...e};return Object.keys(e).forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&S.defaultSystem.isValidProperty(n)&&(t[n]=e[n],delete r[n])}),[t,r]}const{withProvider:v1,withContext:e4}=S.createSlotRecipeContext({key:"checkbox"}),g1=v1("label","root"),y1=e4("span","label"),$1=e4("span","indicator"),t4=e=>{const{ref:t}=e,r=u.useRef(null),n=de(S.mergeRefs(r,t)),i=S.useSlotRecipe({key:"checkbox"}),[a]=i.splitVariantProps(e),[o]=He(e),l=ua(e),{inputProps:s}=Ov(e,l,n),{isFocused:d,focusProps:f}=ve(),c=l.isSelected&&!e.isIndeterminate,p=e.isIndeterminate,m={"data-selected":c,"data-indeterminate":p,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":d||void 0};return C.jsxs(g1,{"data-slot":"root",...a,...m,...o,children:[C.jsxs($1,{"data-slot":"indicator",...m,children:[c&&C.jsx(ue.Check,{}),p&&C.jsx(ue.Remove,{}),C.jsx(Nn,{as:"span",children:C.jsx("input",{...N(s,f),ref:n})})]}),e.children&&C.jsx(y1,{"data-slot":"label",...m,children:e.children})]})};t4.displayName="Checkbox";const Ln=e=>{const{ref:t,...r}=e;return C.jsx(S.Stack,{ref:t,...r})};Ln.displayName="Stack";const Nn=e=>{const{as:t="div",...r}=e;return C.jsx(sa,{elementType:t,...r})};Nn.displayName="VisuallyHidden";const{withContext:x1}=S.createRecipeContext({recipe:Na}),D1=x1("input"),Va=e=>{const{ref:t,...r}=e,n=S.useRecipe({recipe:Na}),i=u.useRef(null),a=de(S.mergeRefs(i,t)),[o,l]=n.splitVariantProps(r),[s,d]=He(l),{inputProps:f}=da(d,a);return C.jsx(D1,{...o,...s,asChild:!0,children:C.jsx(rp,{ref:a,...f})})};Va.displayName="TextInput";const{withContext:Oa,withProvider:C1}=S.createSlotRecipeContext({key:"number-input"}),E1=C1("div","root"),P1=Oa("input","input"),w1=Oa(Ca,"incrementButton"),S1=Oa(Ca,"decrementButton"),r4=e=>{const{size:t,ref:r,...n}=e,{locale:i}=be(),a=u.useRef(null),o=de(S.mergeRefs(a,r)),l=S.useSlotRecipe({recipe:Xm}),[s,d]=l.splitVariantProps(n),[f,c]=He(d),p=jv({locale:i,...c}),{inputProps:m,incrementButtonProps:b,decrementButtonProps:g}=Wv(c,p,o),y={"data-invalid":e.isInvalid,"data-disabled":e.isDisabled};return C.jsxs(E1,{...s,...f,size:t,children:[C.jsx(P1,{ref:o,...m,...y,size:t}),C.jsxs(Te,{position:"absolute",top:"0",right:"0",display:"flex",flexDirection:"column",height:"full",children:[C.jsx(w1,{"aria-label":"Increment",...b,...y,children:C.jsx(ue.KeyboardArrowUp,{})}),C.jsx(S1,{"aria-label":"Decrement",...g,...y,children:C.jsx(ue.KeyboardArrowDown,{})})]})]})};r4.displayName="NumberInput";const n4=e=>{const{ref:t,...r}=e;return C.jsx(S.Grid,{ref:t,...r})};n4.displayName="Grid";const k1=Object.assign(n4,{Item:S.GridItem}),{withProvider:B1,withContext:wr}=S.createSlotRecipeContext({key:"select"}),T1=B1("div","root"),F1=wr("button","trigger"),R1=wr("span","triggerLabel"),A1=wr("div","options"),I1=wr("div","option"),M1=wr("div","optionGroup"),i4=()=>{const e=u.useContext(Ra);if(!(e!=null&&e.selectedKey))return null;const t=()=>{e==null||e.setSelectedKey(null)};return C.jsx(wt,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:C.jsx(ue.Close,{})})};i4.displayName="Select.ClearButton";const za=u.forwardRef(({children:e,isLoading:t,isDisabled:r,...n},i)=>{const a=S.useSlotRecipe({recipe:Ym}),[o,l]=a.splitVariantProps(n),[s,d]=He(l),f={...d,isDisabled:t||r};return C.jsx(T1,{asChild:!0,ref:i,...o,...s,children:C.jsxs(Gy,{...f,children:[C.jsxs(S.chakra.div,{position:"relative",children:[C.jsx(F1,{zIndex:0,asChild:!0,children:C.jsx(Ca,{children:C.jsx(R1,{asChild:!0,children:C.jsx(qy,{})})})}),C.jsxs(S.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[C.jsx(S.Flex,{width:"600",my:"auto",children:C.jsx(i4,{})}),C.jsx(S.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:C.jsx(Te,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?C.jsx(Te,{asChild:!0,animation:"spin",animationDuration:"slowest",children:C.jsx(ue.Loop,{})}):C.jsx(ue.KeyboardArrowDown,{})})})]})]}),C.jsx(Tm,{children:e})]})})});za.displayName="Select.Root";const ja=e=>{const{ref:t,...r}=e,[n,i]=He(r);return C.jsx(A1,{asChild:!0,...n,children:C.jsx(Py,{ref:t,...i})})};ja.displayName="Select.Options";const Ha=e=>{const{ref:t,...r}=e;return C.jsx(I1,{asChild:!0,ref:t,children:C.jsx(ky,{...r})})};Ha.displayName="Select.Option";const _a=e=>{const{ref:t,label:r,items:n,children:i,...a}=e;if(n&&typeof i!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return C.jsxs(Sy,{ref:t,...a,children:[C.jsx(M1,{asChild:!0,children:C.jsx(Cy,{children:r})}),n?C.jsx(xa,{items:n,children:o=>typeof i=="function"?i(o):null}):i]})};_a.displayName="Select.OptionGroup";const L1={Root:za,Options:ja,Option:Ha,OptionGroup:_a},{withProvider:N1,withContext:Sr}=S.createSlotRecipeContext({key:"accordion"}),K1=N1("div","root"),V1=Sr("div","disclosure"),O1=Sr("button","trigger"),z1=Sr("div","panel"),j1=Sr("div","accordionTitle"),vn=Sr("div","headerContentRight"),Ua=u.createContext(null),a4=u.createContext(null),o4=u.forwardRef(({children:e,onExpandedChange:t,...r},n)=>{const i=oy({...r,onExpandedChange:l=>{t==null||t(l.size>0)}}),a=S.useSlotRecipe({key:"accordion"}),[o]=a.splitVariantProps(r);return C.jsx(a4.Provider,{value:i,children:C.jsx(K1,{"data-slot":"root",ref:n,...o,children:e})})}),l4=u.forwardRef(({children:e},t)=>{const r=u.useContext(Ua);if(!r)throw new Error("Accordion.Header must be used within Accordion.Item");const n=u.Children.toArray(e).reduce((i,a)=>(u.isValidElement(a)&&a.type===vn?i.rightContent.push(a):i.main.push(a),i),{main:[],rightContent:[]});return C.jsxs(S.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[C.jsxs(O1,{ref:S.mergeRefs(r.triggerRef,t),...r.buttonProps,"data-slot":"trigger",outline:r.isFocusVisible?void 0:"none",children:[C.jsx(ue.KeyboardArrowRight,{}),C.jsx(j1,{"data-slot":"accordionTitle",children:n.main})]}),n.rightContent.length>0&&C.jsx(vn,{"data-slot":"headerContentRight",children:n.rightContent})]})}),u4=u.forwardRef((e,t)=>{const r=u.useContext(Ua),n=de(S.mergeRefs(r==null?void 0:r.panelRef,t));return C.jsx(z1,{ref:n,...S.mergeProps({...r==null?void 0:r.panelProps,...e}),"data-slot":"panel",children:e.children})}),s4=u.forwardRef(({children:e,id:t,isDisabled:r,isExpanded:n,onExpandedChange:i,value:a},o)=>{const l=J(),d=a||(t||l),f=u.useContext(a4),c=f?f.expandedKeys.has(d):n,p=ay({isExpanded:c,onExpandedChange:D=>{f&&f.toggleKey(d),i==null||i(D)}}),m=u.useRef(null),b=u.useRef(null),g=r||(f==null?void 0:f.isDisabled)||!1,{buttonProps:y,panelProps:$}=q3({isExpanded:p.isExpanded,isDisabled:g},p,m),{buttonProps:E}=kn(y,b),{focusProps:x,isFocusVisible:B}=ve(),w={isExpanded:p.isExpanded,triggerRef:b,panelRef:m,buttonProps:N(E,x),panelProps:$,isFocusVisible:B};return C.jsx(Ua.Provider,{value:w,children:C.jsx(V1,{"data-slot":"disclosure","data-value":d,"data-expanded":p.isExpanded,ref:o,children:e})})}),H1={Root:o4,Item:s4,Header:l4,Content:u4,HeaderRightContent:vn},_1=S.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:U1,withContext:kr}=S.createSlotRecipeContext({recipe:_1}),W1=U1("div","root"),G1=kr("div","title"),Z1=kr("div","description"),q1=kr("div","icon"),Y1=kr("div","actions"),J1=kr("div","dismissButton"),X1=e=>{switch(e){case"critical":return C.jsx(ue.ErrorOutline,{});case"info":return C.jsx(ue.Info,{});case"warning":return C.jsx(ue.WarningAmber,{});case"positive":return C.jsx(ue.CheckCircleOutline,{});default:return null}},Br=u.createContext(void 0),Wa=e=>{const{ref:t,children:r,...n}=e,[i,a]=u.useState(null),[o,l]=u.useState(null),[s,d]=u.useState(null),[f,c]=u.useState(null),p=u.useMemo(()=>({setTitle:a,setDescription:l,setActions:d,setDismiss:c}),[a,l,d,c]);return C.jsx(Br.Provider,{value:p,children:C.jsxs(W1,{ref:t,...n,role:"alert",children:[C.jsx(q1,{alignItems:"flex-start",children:X1(n.tone)}),C.jsxs(Ln,{flex:"1",gap:"200",children:[C.jsxs(Te,{children:[i,o]}),s]}),f,r]})})};Wa.displayName="Alert.Root";const Ga=({children:e,...t})=>{const r=u.useContext(Br);return u.useEffect(()=>{if(r){const n=C.jsx(G1,{...t,fontWeight:"600",children:e});return r.setTitle(n),()=>r.setTitle(null)}},[e,t]),null};Ga.displayName="Alert.Title";const Za=({children:e,...t})=>{const r=u.useContext(Br);return u.useEffect(()=>{if(r){const n=C.jsx(Z1,{...t,children:e});return r.setDescription(n),()=>r.setDescription(null)}},[e,t]),null};Za.displayName="Alert.Description";const qa=({children:e,...t})=>{const r=u.useContext(Br);return u.useEffect(()=>{if(r){const n=C.jsx(Y1,{...t,children:e});return r.setActions(n),()=>r.setActions(null)}},[e,t]),null};qa.displayName="Alert.Actions";const Ya=({children:e,...t})=>{const r=u.useContext(Br);return u.useEffect(()=>{if(r){const n=C.jsx(J1,{children:C.jsx(wt,{"aria-label":"Dismiss",...t,variant:"ghost",size:"2xs",children:C.jsx(ue.Clear,{role:"img"})})});return r.setDismiss(n),()=>r.setDismiss(null)}},[e,t]),null};Ya.displayName="Alert.DismissButton";const Q1={Root:Wa,Title:Ga,Description:Za,Actions:qa,DismissButton:Ya},e5=S.defineRecipe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:t5}=S.createRecipeContext({recipe:e5}),r5=t5("span"),d4=e=>{const{ref:t,as:r,children:n,...i}=e,a=u.useRef(null),o=de(S.mergeRefs(a,t)),l=r||"span";return C.jsx(r5,{as:l,...N(i,{ref:o}),children:n})};d4.displayName="Badge";const n5=S.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:i5,withContext:c4}=S.createSlotRecipeContext({recipe:n5}),a5=i5("div","root"),o5=c4("div","header"),l5=c4("div","content"),Ja=u.createContext(void 0),Xa=({children:e,ref:t,...r})=>{const{isFocused:n,isFocusVisible:i,focusProps:a}=ve(),[o,l]=u.useState(null),[s,d]=u.useState(null),f=u.useMemo(()=>({setHeader:l,setContent:d}),[l,d]);return C.jsx(Ja.Provider,{value:f,children:C.jsxs(a5,{ref:t,...N(r,a),"data-focus":n||void 0,"data-focus-visible":i||void 0,tabIndex:0,children:[C.jsxs(Ln,{direction:"column",gap:"200",children:[o,s]}),e]})})};Xa.displayName="Card.Root";const Qa=({children:e,...t})=>{const r=u.useContext(Ja);return u.useEffect(()=>{if(r){const n=C.jsx(o5,{...t,children:e});return r.setHeader(n),()=>r.setHeader(null)}},[e,t]),null};Qa.displayName="Card.Header";const eo=({children:e,...t})=>{const r=u.useContext(Ja);return u.useEffect(()=>{if(r){const n=C.jsx(l5,{...t,children:e});return r.setContent(n),()=>r.setContent(null)}},[e,t]),null};eo.displayName="Card.Content";const u5={Root:Xa,Header:Qa,Content:eo},qt=u.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),s5=`
|
|
23
|
+
*/var ru;function dy(){return ru||(ru=1,process.env.NODE_ENV!=="production"&&function(){function e(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}function t(m,b){c||o.startTransition===void 0||(c=!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 v=b();if(!f){var $=b();i(v,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}$=l({inst:{value:v,getSnapshot:b}});var g=$[0].inst,D=$[1];return s(function(){g.value=v,g.getSnapshot=b,n(g)&&D({inst:g})},[m,v,b]),a(function(){return n(g)&&D({inst:g}),m(function(){n(g)&&D({inst:g})})},[m]),d(v),v}function n(m){var b=m.getSnapshot;m=m.value;try{var v=b();return!i(m,v)}catch{return!0}}function r(m,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=u,i=typeof Object.is=="function"?Object.is:e,l=o.useState,a=o.useEffect,s=o.useLayoutEffect,d=o.useDebugValue,c=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;jo.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),jo}var ou;function cy(){return ou||(ou=1,process.env.NODE_ENV==="production"?pr.exports=sy():pr.exports=dy()),pr.exports}var fy=cy();function py(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=e,a=te(e,{labelable:!0}),{labelProps:s,fieldProps:d}=Ui({...e,labelElementType:"span"});t=Vt(t,n,r);let c=(t-n)/(r-n),f=si(l);if(!i&&!o){let p=l.style==="percent"?c:t;o=f.format(p)}return{progressBarProps:z(a,{...d,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:s}}const N0=new WeakMap;function my(e,t,n){let{value:r,children:o,"aria-label":i,"aria-labelledby":l}=e;const a=e.isDisabled||t.isDisabled;let s=o!=null,d=i!=null||l!=null;!s&&!d&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,f=I=>{I.stopPropagation(),t.setSelectedValue(r)},{pressProps:p,isPressed:m}=Ge({isDisabled:a}),{pressProps:b,isPressed:v}=Ge({isDisabled:a,onPress(){var I;t.setSelectedValue(r),(I=n.current)===null||I===void 0||I.focus()}}),{focusableProps:$}=ft(z(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),g=z(p,$),D=te(e,{labelable:!0}),w=-1;t.selectedValue!=null?t.selectedValue===r&&(w=0):(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(w=0),a&&(w=void 0);let{name:B,descriptionId:k,errorMessageId:P,validationBehavior:L}=N0.get(t);return fn(n,t.selectedValue,t.setSelectedValue),Hn({validationBehavior:L},t,n),{labelProps:z(b,{onClick:I=>I.preventDefault()}),inputProps:z(D,{...g,type:"radio",name:B,tabIndex:w,disabled:a,required:t.isRequired&&L==="native",checked:c,value:r,onChange:f,"aria-describedby":[e["aria-describedby"],t.isInvalid?P:null,k].filter(Boolean).join(" ")||void 0}),isDisabled:a,isSelected:c,isPressed:m||v}}function by(e,t){let{name:n,isReadOnly:r,isRequired:o,isDisabled:i,orientation:l="vertical",validationBehavior:a="aria"}=e,{direction:s}=Pe(),{isInvalid:d,validationErrors:c,validationDetails:f}=t.displayValidation,{labelProps:p,fieldProps:m,descriptionProps:b,errorMessageProps:v}=pn({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||c}),$=te(e,{labelable:!0}),{focusWithinProps:g}=Pt({onBlurWithin(B){var k;(k=e.onBlur)===null||k===void 0||k.call(e,B),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),D=B=>{let k;switch(B.key){case"ArrowRight":s==="rtl"&&l!=="vertical"?k="prev":k="next";break;case"ArrowLeft":s==="rtl"&&l!=="vertical"?k="next":k="prev";break;case"ArrowDown":k="next";break;case"ArrowUp":k="prev";break;default:return}B.preventDefault();let P=Ce(B.currentTarget,{from:B.target}),L;k==="next"?(L=P.nextNode(),L||(P.currentNode=B.currentTarget,L=P.firstChild())):(L=P.previousNode(),L||(P.currentNode=B.currentTarget,L=P.lastChild())),L&&(L.focus(),t.setSelectedValue(L.value))},w=ue(n);return N0.set(t,{name:w,descriptionId:b.id,errorMessageId:v.id,validationBehavior:a}),{radioGroupProps:z($,{role:"radiogroup",onKeyDown:D,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":o||void 0,"aria-disabled":i||void 0,"aria-orientation":l,...m,...g}),labelProps:p,descriptionProps:b,errorMessageProps:v,isInvalid:d,validationErrors:c,validationDetails:f}}const K0=new WeakMap;function hy(e,t,n){let{keyboardDelegate:r,isDisabled:o,isRequired:i,name:l,validationBehavior:a="aria"}=e,s=Xr({usage:"search",sensitivity:"base"}),d=u.useMemo(()=>r||new Un(t.collection,t.disabledKeys,n,s),[r,t.collection,t.disabledKeys,s,n]),{menuTriggerProps:c,menuProps:f}=yp({isDisabled:o,type:"listbox"},t,n),p=I=>{switch(I.key){case"ArrowLeft":{var V,A;I.preventDefault();let M=t.selectedKey!=null?(V=d.getKeyAbove)===null||V===void 0?void 0:V.call(d,t.selectedKey):(A=d.getFirstKey)===null||A===void 0?void 0:A.call(d);M&&t.setSelectedKey(M);break}case"ArrowRight":{var h,S;I.preventDefault();let M=t.selectedKey!=null?(h=d.getKeyBelow)===null||h===void 0?void 0:h.call(d,t.selectedKey):(S=d.getFirstKey)===null||S===void 0?void 0:S.call(d);M&&t.setSelectedKey(M);break}}},{typeSelectProps:m}=If({keyboardDelegate:d,selectionManager:t.selectionManager,onTypeSelect(I){t.setSelectedKey(I)}}),{isInvalid:b,validationErrors:v,validationDetails:$}=t.displayValidation,{labelProps:g,fieldProps:D,descriptionProps:w,errorMessageProps:B}=pn({...e,labelElementType:"span",isInvalid:b,errorMessage:e.errorMessage||v});m.onKeyDown=m.onKeyDownCapture,delete m.onKeyDownCapture;let k=te(e,{labelable:!0}),P=z(m,c,D),L=ue();return K0.set(t,{isDisabled:o,isRequired:i,name:l,validationBehavior:a}),{labelProps:{...g,onClick:()=>{if(!e.isDisabled){var I;(I=n.current)===null||I===void 0||I.focus(),es("keyboard")}}},triggerProps:z(k,{...P,isDisabled:o,onKeyDown:Ue(P.onKeyDown,p,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[L,P["aria-labelledby"],P["aria-label"]&&!P["aria-labelledby"]?P.id:null].filter(Boolean).join(" "),onFocus(I){t.isFocused||(e.onFocus&&e.onFocus(I),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(I){t.isOpen||(e.onBlur&&e.onBlur(I),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:L},menuProps:{...f,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:I=>{I.currentTarget.contains(I.relatedTarget)||(e.onBlur&&e.onBlur(I),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[D["aria-labelledby"],P["aria-label"]&&!D["aria-labelledby"]?P.id:null].filter(Boolean).join(" ")},descriptionProps:w,errorMessageProps:B,isInvalid:b,validationErrors:v,validationDetails:$}}function vy(e,t,n){let r=K0.get(t)||{},{autoComplete:o,name:i=r.name,isDisabled:l=r.isDisabled}=e,{validationBehavior:a,isRequired:s}=r,{visuallyHiddenProps:d}=_s();fn(e.selectRef,t.selectedKey,t.setSelectedKey),Hn({validationBehavior:a,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},t,e.selectRef);var c;return{containerProps:{...d,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:l,required:a==="native"&&s,name:i,value:(c=t.selectedKey)!==null&&c!==void 0?c:void 0,onChange:f=>t.setSelectedKey(f.target.value)}}}function $y(e){let{state:t,triggerRef:n,label:r,name:o,isDisabled:i}=e,l=u.useRef(null),{containerProps:a,selectProps:s}=vy({...e,selectRef:l},t,n);var d;return t.collection.size<=300?u.createElement("div",{...a,"data-testid":"hidden-select-container"},u.createElement("label",null,r,u.createElement("select",{...s,ref:l},u.createElement("option",null),[...t.collection.getKeys()].map(c=>{let f=t.collection.getItem(c);if(f&&f.type==="item")return u.createElement("option",{key:f.key,value:f.key},f.textValue)})))):o?u.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:o,disabled:i,value:(d=t.selectedKey)!==null&&d!==void 0?d:""}):null}function gy(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:l,isDisabled:a,isReadOnly:s}=Hs(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:l,isDisabled:a,isReadOnly:s}}const V0=new WeakMap;function yy(e,t,n){let{direction:r}=Pe(),o=e.keyboardDelegate||new Un({collection:t.collection,ref:n,orientation:"horizontal",direction:r,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:i,fieldProps:l,descriptionProps:a,errorMessageProps:s}=pn({...e,labelElementType:"span"}),{gridProps:d}=ly({...e,...l,keyboardDelegate:o,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,n),[c,f]=u.useState(!1),{focusWithinProps:p}=Pt({onFocusWithinChange:f}),m=te(e),b=u.useRef(t.collection.size);return u.useEffect(()=>{n.current&&b.current>0&&t.collection.size===0&&c&&n.current.focus(),b.current=t.collection.size},[t.collection.size,c,n]),V0.set(t,{onRemove:e.onRemove}),{gridProps:z(d,m,{role:t.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":c?"polite":"off",...p,...l}),labelProps:i,descriptionProps:a,errorMessageProps:s}}var O0={};O0={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var z0={};z0={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var j0={};j0={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var H0={};H0={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var _0={};_0={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var U0={};U0={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var W0={};W0={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var G0={};G0={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var q0={};q0={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var Z0={};Z0={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var Y0={};Y0={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var J0={};J0={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var X0={};X0={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var Q0={};Q0={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var em={};em={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var tm={};tm={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var nm={};nm={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var rm={};rm={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var om={};om={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var im={};im={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var lm={};lm={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var am={};am={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var um={};um={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var sm={};sm={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var dm={};dm={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var cm={};cm={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var fm={};fm={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var pm={};pm={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var mm={};mm={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var bm={};bm={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var hm={};hm={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var vm={};vm={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var $m={};$m={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var gm={};gm={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var ym={};ym={"ar-AE":O0,"bg-BG":z0,"cs-CZ":j0,"da-DK":H0,"de-DE":_0,"el-GR":U0,"en-US":W0,"es-ES":G0,"et-EE":q0,"fi-FI":Z0,"fr-FR":Y0,"he-IL":J0,"hr-HR":X0,"hu-HU":Q0,"it-IT":em,"ja-JP":tm,"ko-KR":nm,"lt-LT":rm,"lv-LV":om,"nb-NO":im,"nl-NL":lm,"pl-PL":am,"pt-BR":um,"pt-PT":sm,"ro-RO":dm,"ru-RU":cm,"sk-SK":fm,"sl-SI":pm,"sr-SP":mm,"sv-SE":bm,"tr-TR":hm,"uk-UA":vm,"zh-CN":$m,"zh-TW":gm};function xy(e){return e&&e.__esModule?e.default:e}function Cy(e,t,n){let{item:r}=e,o=qe(xy(ym),"@react-aria/tag"),i=ue(),{onRemove:l}=V0.get(t)||{},{rowProps:a,gridCellProps:s,...d}=ay({node:r},t,n),{descriptionProps:c,...f}=d,p=t.disabledKeys.has(r.key)||r.props.isDisabled,m=L=>{if(L.key==="Delete"||L.key==="Backspace"){if(p)return;L.preventDefault(),t.selectionManager.isSelected(r.key)?l==null||l(new Set(t.selectionManager.selectedKeys)):l==null||l(new Set([r.key]))}},b=ts();b==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(b="pointer");let v=l&&(b==="keyboard"||b==="virtual")?o.format("removeDescription"):"",$=Wr(v),g=r.key===t.selectionManager.focusedKey,D=t.selectionManager.focusedKey!=null,w=-1;!p&&(g||!D)&&(w=0);let B=te(r.props),k=Nu(r.props),{focusableProps:P}=ft({isDisabled:p},n);return{removeButtonProps:{"aria-label":o.format("removeButtonLabel"),"aria-labelledby":`${i} ${a.id}`,isDisabled:p,id:i,onPress:()=>l?l(new Set([r.key])):null},rowProps:z(P,a,B,k,{tabIndex:w,onKeyDown:l?m:void 0,"aria-describedby":$["aria-describedby"]}),gridCellProps:z(s,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...f,allowsRemoving:!!l}}function Dy(e,t){let n=te(e,{labelable:!0}),{hoverProps:r}=je({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:z(n,r,{role:"tooltip"})}}function Ey(e,t,n){let{isDisabled:r,trigger:o}=e,i=ue(),l=u.useRef(!1),a=u.useRef(!1),s=()=>{(l.current||a.current)&&t.open(a.current)},d=g=>{!l.current&&!a.current&&t.close(g)};u.useEffect(()=>{let g=D=>{n&&n.current&&D.key==="Escape"&&(D.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[n,t]);let c=()=>{o!=="focus"&&(un()==="pointer"?l.current=!0:l.current=!1,s())},f=()=>{o!=="focus"&&(a.current=!1,l.current=!1,d())},p=()=>{a.current=!1,l.current=!1,d(!0)},m=()=>{an()&&(a.current=!0,s())},b=()=>{a.current=!1,l.current=!1,d(!0)},{hoverProps:v}=je({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:$}=ft({isDisabled:r,onFocus:m,onBlur:b},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...z($,v,{onPointerDown:p,onKeyDown:p,tabIndex:void 0})},tooltipProps:{id:i}}}const Mt=T.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});function Py(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wy=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sy=Py(function(e){return wy.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const{withContext:ky}=T.createRecipeContext({recipe:Mt}),By=ky("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const n=!(t!=null&&t.includes(e))&&!T.defaultSystem.isValidProperty(e);return Sy(e)&&n&&!e.includes("onPress")}}),Ji=e=>{const{ref:t,as:n,asChild:r,children:o,...i}=e,l=u.useRef(null),a=me(T.mergeRefs(l,t)),s=n||(r?"a":"button")||"button",{buttonProps:d}=Qr({...i,elementType:s},a);return y.jsx(By,{...z(i,d,{as:n,asChild:r}),ref:a,children:o})};Ji.displayName="Button";const vt=T.defineSlotRecipe({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.3",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"]':{bg:"primary.3"},'&[data-focused="true"]':{bg:"primary.2"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"primary.1","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),xr=T.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.12","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}});var vu,$u,gu,yu,xu,Cu,Du,Eu,Pu;const xm=T.defineSlotRecipe({slots:["root","value","buttonGroup","popover","multiSelectInput","options","optionGroup","option","optionIndicator","optionContent"],className:"nimbus-combobox",base:{root:{colorPalette:"primary",focusRing:"outside",display:"inline-flex",position:"relative",alignSelf:"flex-start",maxWidth:"100%",borderRadius:"200",_hover:{bg:"primary.2"},"&[data-disabled]":{layerStyle:"disabled",focusRing:"none","& input, & button":{pointerEvents:"none!"}},"& input":{cursor:"text",_hover:{bg:"primary.2"},_placeholder:{opacity:.5}},"& [data-placeholder]":{opacity:.5}},value:{display:"flex",focusRing:"outside",alignItems:"flex-start",pr:"1600",pl:"400",py:"100",borderRadius:"200",color:"neutral.12",maxWidth:"100%",textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_disabled:{pointerEvents:"none"},'[data-invalid="true"] &':{"--border-width":"sizes.50","--border-color":"colors.critical.7",color:"critical.11"},'& button[slot="remove"]':{_expanded:{bg:"colorPalette.3"}}},buttonGroup:{position:"absolute",display:"inline-flex",top:0,bottom:0,right:300,my:"auto"},popover:{bg:"bg",borderRadius:"200",boxShadow:"5"},multiSelectInput:{"& input":{py:"300",px:"400",focusRing:"none",borderBottom:"solid 1px",borderBottomColor:"neutral.3",bg:"transparent",w:"100%",overflow:"hidden",textOverflow:"ellipsis",fontSize:"350",fontWeight:"400",lineHeight:"400",_placeholder:{opacity:.5}}},options:{...(vu=vt.base)==null?void 0:vu.options,gap:"100"},optionGroup:{...($u=vt.base)==null?void 0:$u.optionGroup},option:{...(gu=vt.base)==null?void 0:gu.option,whiteSpace:"wrap"},optionIndicator:{height:"max(1lh, {sizes.600})",width:"max(1lh, {sizes.600})",display:"flex",alignItems:"center","& span[data-selected]":{...(yu=xr.base)==null?void 0:yu.indicator,...(xu=xr.variants)==null?void 0:xu.size.md.indicator}},optionContent:{...(Cu=xr.base)==null?void 0:Cu.label,whiteSpace:"wrap",width:"calc(100% - {sizes.600})",display:"inline-block"}},variants:{size:{sm:{value:{minH:"800",textStyle:"sm"}},md:{value:{minH:"1000",textStyle:"md"}}},variant:{solid:{root:{width:"7200",bg:"primary.1"},value:{...(Du=vt.variants)==null?void 0:Du.variant.outline.trigger,width:"100%"}},ghost:{root:{...(Eu=vt.variants)==null?void 0:Eu.variant.ghost.root,maxW:"7200"},value:{...(Pu=vt.variants)==null?void 0:Pu.variant.ghost.trigger,bg:"transparent"}}},selectionMode:{multiple:{options:{boxShadow:"none",px:"200",my:"200",minW:"unset","& section:first-of-type > header":{mt:0}},option:{colorPalette:"primary",display:"flex",alignItems:"flex-start",justifyContent:"center",position:"relative",cursor:"pointer",gap:"200",mb:"var(--focus-ring-width)","&:last-of-type":{mb:0},'&[aria-selected="true"]':{bg:"unset"},'&[data-focused="true"]':{outlineWidth:"var(--focus-ring-width)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style)",bg:"unset"},_hover:{bg:"primary.2"}}},single:{},none:{}}},compoundVariants:[{variant:"solid",selectionMode:"multiple",css:{popover:{width:"var(--trigger-width)"}}},{variant:"solid",selectionMode:"single",css:{root:{"&:has(button:hover)":{"& input":{bg:"primary.2"}}},options:{width:"var(--trigger-width)"}}},{variant:"ghost",selectionMode:"multiple",css:{popover:{minW:"max(var(--trigger-width), {sizes.2000})",maxW:"max(var(--trigger-width), {sizes.7200})"}}},{variant:"ghost",selectionMode:"single",css:{value:{flex:"1 1 auto"},options:{minW:"max(var(--trigger-width), {sizes.2000})",maxW:"max(var(--trigger-width), {sizes.7200})"}}}],defaultVariants:{size:"md",variant:"solid",selectionMode:"single"}}),{withProvider:Ty,withContext:pt}=T.createSlotRecipeContext({key:"combobox"}),Ay=Ty("div","root"),Cm=pt("div","value"),Dm=pt("div","buttonGroup"),Fy=pt("div","popover"),Ry=pt("input","multiSelectInput"),Iy=pt("div","options"),My=pt("div","optionGroup"),Ly=pt("div","option"),Ny=pt("span","optionIndicator"),Ky=pt("span","optionContent");u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);u.createContext(null);const Vy=u.createContext({}),Or=Symbol("default");function Ie({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function pe(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:l,values:a}=e;return u.useMemo(()=>{let s,d,c;return typeof t=="function"?s=t({...a,defaultClassName:o}):s=t,typeof n=="function"?d=n({...a,defaultStyle:l||{}}):d=n,typeof r=="function"?c=r({...a,defaultChildren:i}):r==null?c=i:c=r,{className:s??o,style:d||l?{...l,...d}:void 0,children:c??i,"data-rac":""}},[t,n,r,o,i,l,a])}function wt(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Or;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function fe(e,t,n){let r=wt(n,e.slot)||{},{ref:o,...i}=r,l=me(u.useMemo(()=>Vn(t,o),[t,o])),a=z(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=s=>{let d=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...d},f=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...f}}:a.style={...i.style,...e.style}),[a,l]}function Gt(e=!0){let[t,n]=u.useState(e),r=u.useRef(!1),o=u.useCallback(i=>{r.current=!0,n(!!i)},[]);return Z(()=>{r.current||n(!1)},[]),[o,t]}function mn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}class Xi{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Xi(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,n){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=t,this.key=n}}class Qi{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);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(t){let n=this.keyMap.get(t);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 t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}UNSTABLE_filter(t){let n=new Qi,r=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),l=null;for(let a of this.getChildren(o.key))if(iu(a,t,this,n)){let s=a.clone();l==null&&(i.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=i.key),l&&l.parentKey===s.parentKey?(l.nextKey=s.key,s.prevKey=l.key):s.prevKey=null,s.nextKey=null,n.addNode(s),l=s}l&&(l.type!=="header"?(i.lastChildKey=l.key,r==null?i.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=i.key,i.prevKey=r.key),i.nextKey=null,r=i,n.addNode(i)):(n.firstKey===i.key&&(n.firstKey=null),n.removeNode(l.key)))}else if(o.type==="separator"){let i=o.clone();i.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=i.key,i.prevKey=r.key,r=i,n.addNode(i))}else{let i=o.clone();iu(i,t,this,n)&&(n.firstKey==null&&(n.firstKey=i.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===i.parentKey?(r.nextKey=i.key,i.prevKey=r.key):i.prevKey=null,i.nextKey=null,n.addNode(i),r=i)}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let o;r.prevKey!=null&&(o=n.getItem(r.prevKey),o.nextKey=null),n.removeNode(r.key),r=o}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function iu(e,t,n,r){if(e.type==="subdialogtrigger"||e.type==="submenutrigger"){let o=[...n.getChildren(e.key)][0];if(o&&t(o.textValue)){let i=o.clone();return r.addNode(i),!0}else return!1}else return e.type==="header"?!0:t(e.textValue)}class Em{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class rn extends Em{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof rn?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,n,r;let o=this.nextVisibleSibling,i=this.getMutableNode();i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof rn?this.parentNode.node.key:null;var l;i.prevKey=(l=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&l!==void 0?l:null;var a;i.nextKey=(a=o==null?void 0:o.node.key)!==null&&a!==void 0?a:null,i.hasChildNodes=!!this.firstChild;var s;i.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var d;if(i.lastChildKey=(d=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&d!==void 0?d:null,(i.colSpan!=null||i.colIndex!=null)&&o){var c,f;let p=((c=i.colIndex)!==null&&c!==void 0?c:i.index)+((f=i.colSpan)!==null&&f!==void 0?f:1);if(p!==o.node.colIndex){let m=o.getMutableNode();m.colIndex=p}}}setProps(t,n,r,o){let i=this.getMutableNode(),{value:l,textValue:a,id:s,...d}=t;if(d.ref=n,i.props=d,i.rendered=r,i.render=o,i.value=l,i.textValue=a||(typeof d.children=="string"?d.children:"")||t["aria-label"]||"",s!=null&&s!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=s}d.colSpan!=null&&(i.colSpan=d.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let l=t.previousVisibleSibling,a=t.nextVisibleSibling;l&&t.ownerDocument.markDirty(l),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new Xi(t,`react-aria-${++n.nodeId}`)}}class Oy extends Em{get isConnected(){return this.isMounted}createElement(t){return new rn(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof rn&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof rn&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,n,r,o;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function Pm(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,l=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let d=[];for(let c of n){let f=l.get(c);if(!f){f=t(c);var a,s;let p=(s=(a=f.props.id)!==null&&a!==void 0?a:c.key)!==null&&s!==void 0?s:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:c}:{key:p}),l.set(c,f)}d.push(f)}return d}else if(typeof t!="function")return t},[t,n,l,r,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const zr=u.createContext(!1);function zy(e){if(u.useContext(zr))return u.createElement(u.Fragment,null,e.children);let n=u.createElement(zr.Provider,{value:!0},e.children);return u.createElement("template",{"data-react-aria-hidden":!0},n)}function el(e){let t=(n,r)=>u.useContext(zr)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function jy(){return u.useContext(zr)}const wm=u.createContext(!1),Kn=u.createContext(null);function no(e){if(u.useContext(Kn))return e.content;let{collection:n,document:r}=Wy(e.createCollection);return u.createElement(u.Fragment,null,u.createElement(zy,null,u.createElement(Kn.Provider,{value:r},e.content)),u.createElement(Hy,{render:e.children,collection:n}))}function Hy({collection:e,render:t}){return t(e)}function _y(e,t,n){let r=Et(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return fy.useSyncExternalStore(e,i)}const Uy=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:_y;function Wy(e){let[t]=u.useState(()=>new Oy((e==null?void 0:e())||new Qi)),n=u.useCallback(l=>t.subscribe(l),[t]),r=u.useCallback(()=>{let l=t.getCollection();return t.isSSR&&t.resetAfterSSR(),l},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=Uy(n,r,o);return Z(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}const $i=u.createContext(null);function Sm(e,t,n,r,o,i){let l=u.useCallback(s=>{s==null||s.setProps(t,n,r,i)},[t,n,r,i]),a=u.useContext($i);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r,i),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement($i.Provider,{value:s},o):null}return u.createElement(e,{ref:l},o)}function ro(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=u.forwardRef((o,i)=>{let l=u.useContext(Br);if(!u.useContext(wm)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return Sm(e,o,i,"children"in o?o.children:null,null,s=>u.createElement(Br.Provider,{value:l},u.createElement(n,{node:s})))});return r.displayName=t.name,r}function Gy(e,t,n=km){let r=({node:i})=>t(i.props,i.props.ref,i),o=u.forwardRef((i,l)=>{let a=n(i);var s;return(s=Sm(e,i,l,null,a,d=>u.createElement(r,{node:d})))!==null&&s!==void 0?s:u.createElement(u.Fragment,null)});return o.displayName=t.name,o}function km(e){return Pm({...e,addIdAndValue:!0})}const lu=u.createContext(null);function oo(e){let t=u.useContext(lu),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),o=km({...e,idScope:r,dependencies:n});return u.useContext(Kn)&&(o=u.createElement(qy,null,o)),t=u.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),u.createElement(lu.Provider,{value:t},o)}function qy({children:e}){let t=u.useContext(Kn),n=u.useMemo(()=>u.createElement(Kn.Provider,{value:null},u.createElement(wm.Provider,{value:!0},e)),[e]);return Et()?u.createElement($i.Provider,{value:t},n):_t.createPortal(n,t)}const dt=u.createContext({});let Zy=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};const io=el(function(t,n){[t,n]=fe(t,n,dt);let{hoverProps:r,isHovered:o}=je(t),{isFocused:i,isFocusVisible:l,focusProps:a}=Se({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=pe({...t,values:{isHovered:o,isFocused:i,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...z(Zy(t),a,r),...d,ref:n,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),St=u.createContext({}),Yy=u.createContext(null),Jy=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),kt=u.createContext({}),tl=el(function(t,n){[t,n]=fe(t,n,kt),t=Xy(t);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:l}=Qr(t,n),{focusProps:a,isFocused:s,isFocusVisible:d}=Se(t),{hoverProps:c,isHovered:f}=je({...t,isDisabled:t.isDisabled||o}),p={isHovered:f,isPressed:(r.isPressed||l)&&!o,isFocused:s,isFocusVisible:d,isDisabled:t.isDisabled||!1,isPending:o??!1},m=pe({...t,values:p,defaultClassName:"react-aria-Button"}),b=ue(i.id),v=ue(),$=i["aria-labelledby"];o&&($?$=`${$} ${v}`:i["aria-label"]&&($=`${b} ${v}`));let g=u.useRef(o);return u.useEffect(()=>{let D={"aria-labelledby":$||b};(!g.current&&s&&o||g.current&&s&&!o)&&Ot(D,"assertive"),g.current=o},[o,s,$,b]),u.createElement("button",{...te(t,{propNames:Jy}),...z(i,a,c),...m,type:i.type==="submit"&&o?"button":i.type,id:b,ref:n,"aria-labelledby":$,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":o||void 0,"data-focus-visible":d||void 0},u.createElement(Yy.Provider,{value:{id:v}},m.children))});function Xy(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const et=u.createContext({}),Wn=u.createContext(null);class gi{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=l=>{if(this.keyMap.set(l.key,l),l.childNodes&&l.type==="section")for(let a of l.childNodes)n(a)};for(let l of t)n(l);let r=null,o=0;for(let[l,a]of this.keyMap)r?(r.nextKey=l,a.prevKey=r.key):(this.firstKey=l,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;var i;this.lastKey=(i=r==null?void 0:r.key)!==null&&i!==void 0?i:null}}class _e extends Set{constructor(t,n,r){super(t),t instanceof _e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Qy(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function e1(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,l=u.useRef(!1),[,a]=u.useState(!1),s=u.useRef(null),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>au(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>au(e.defaultSelectedKeys,new _e),[e.defaultSelectedKeys]),[m,b]=Re(f,p,e.onSelectionChange),v=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[$,g]=u.useState(o);o==="replace"&&$==="toggle"&&typeof m=="object"&&m.size===0&&g("replace");let D=u.useRef(o);return u.useEffect(()=>{o!==D.current&&(g(o),D.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:$,setSelectionBehavior:g,get isFocused(){return l.current},setFocused(w){l.current=w,a(w)},get focusedKey(){return s.current},get childFocusStrategy(){return d.current},setFocusedKey(w,B="first"){s.current=w,d.current=B,c(w)},selectedKeys:m,setSelectedKeys(w){(r||!Qy(w,m))&&b(w)},disabledKeys:v,disabledBehavior:i}}function au(e,t){return e?e==="all"?"all":new _e(e):t}class nl{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);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 t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Vo(this.collection,o,t)<0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&Vo(this.collection,o,t)>0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new _e([n],n,n);else{let l=this.state.selectedKeys;var o;let a=(o=l.anchorKey)!==null&&o!==void 0?o:n;r=new _e(l,a,n);var i;for(let s of this.getKeyRange(a,(i=l.currentKey)!==null&&i!==void 0?i:n))r.delete(s);for(let s of this.getKeyRange(n,a))this.canSelectItem(s)&&r.add(s)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Vo(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let o=[],i=t;for(;i!=null;){let l=this.collection.getItem(i);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===n)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new _e(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(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new _e([n],n,n):new _e;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new _e;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&t.push(r);var i;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((i=(o=Lg(to(l,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}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 _e)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new nl(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function rl(e){let{filter:t,layoutDelegate:n}=e,r=e1(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=u.useCallback(d=>t?new gi(t(d)):new gi(d),[t]),l=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Mg(e,i,l),s=u.useMemo(()=>new nl(a,r,{layoutDelegate:n}),[a,r,n]);return Bm(a,s),{collection:a,disabledKeys:o,selectionManager:s}}function t1(e,t){let n=u.useMemo(()=>t?e.collection.UNSTABLE_filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Bm(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Bm(e,t){const n=u.useRef(null);u.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const c=n.current.getItem(t.focusedKey),f=[...n.current.getKeys()].map(g=>{const D=n.current.getItem(g);return(D==null?void 0:D.type)==="item"?D:null}).filter(g=>g!==null),p=[...e.getKeys()].map(g=>{const D=e.getItem(g);return(D==null?void 0:D.type)==="item"?D:null}).filter(g=>g!==null);var r,o;const m=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((o=p==null?void 0:p.length)!==null&&o!==void 0?o:0);var i,l,a;let b=Math.min(m>1?Math.max(((i=c==null?void 0:c.index)!==null&&i!==void 0?i:0)-m+1,0):(l=c==null?void 0:c.index)!==null&&l!==void 0?l:0,((a=p==null?void 0:p.length)!==null&&a!==void 0?a:0)-1),v=null,$=!1;for(;b>=0;){if(!t.isDisabled(p[b].key)){v=p[b];break}if(b<p.length-1&&!$)b++;else{$=!0;var s,d;b>((s=c==null?void 0:c.index)!==null&&s!==void 0?s:0)&&(b=(d=c==null?void 0:c.index)!==null&&d!==void 0?d:0),b--}}t.setFocusedKey(v?v.key:null)}n.current=e},[e,t])}function Tm(e){var t;let[n,r]=Re(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:l,selectionManager:a}=rl({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:d=>{if(d==="all")return;var c;let f=(c=d.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),s=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:l,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Gn(e){let[t,n]=Re(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),o=u.useCallback(()=>{n(!1)},[n]),i=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function n1(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:o=!1,allowsCustomValue:i,shouldCloseOnBlur:l=!0}=e,[a,s]=u.useState(!1),[d,c]=u.useState(!1),[f,p]=u.useState(null),m=J=>{e.onSelectionChange&&e.onSelectionChange(J),J===g&&(q(),j())};var b;let{collection:v,selectionManager:$,selectedKey:g,setSelectedKey:D,selectedItem:w,disabledKeys:B}=Tm({...e,onSelectionChange:m,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems}),k=e.defaultInputValue;if(k==null){var P,L;g==null?k="":k=(L=(P=v.getItem(g))===null||P===void 0?void 0:P.textValue)!==null&&L!==void 0?L:""}let[I,V]=Re(e.inputValue,k,e.onInputChange),A=v,h=u.useMemo(()=>e.items!=null||!n?v:r1(v,I,n),[v,I,n,e.items]),[S,M]=u.useState(h),R=u.useRef("focus"),x=Gn({...e,onOpenChange:J=>{e.onOpenChange&&e.onOpenChange(J,J?R.current:void 0),$.setFocused(J),J||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),C=(J=null,le)=>{let be=le==="manual"||le==="focus"&&r==="focus";(o||h.size>0||be&&A.size>0||e.items)&&(be&&!x.isOpen&&e.items===void 0&&s(!0),R.current=le,p(J),x.open())},E=(J=null,le)=>{let be=le==="manual"||le==="focus"&&r==="focus";!(o||h.size>0||be&&A.size>0||e.items)&&!x.isOpen||(be&&!x.isOpen&&e.items===void 0&&s(!0),x.isOpen||(R.current=le),F(J))},O=u.useCallback(()=>{M(a?A:h)},[a,A,h]),F=u.useCallback((J=null)=>{x.isOpen&&O(),p(J),x.toggle()},[x,O]),j=u.useCallback(()=>{x.isOpen&&(O(),x.close())},[x,O]),[K,W]=u.useState(I),q=()=>{var J,le;let be=g!=null&&(le=(J=v.getItem(g))===null||J===void 0?void 0:J.textValue)!==null&&le!==void 0?le:"";W(be),V(be)};var Q,ye;let se=u.useRef((ye=(Q=e.selectedKey)!==null&&Q!==void 0?Q:e.defaultSelectedKey)!==null&&ye!==void 0?ye:null);var _;let ee=u.useRef(g!=null&&(_=(t=v.getItem(g))===null||t===void 0?void 0:t.textValue)!==null&&_!==void 0?_:"");u.useEffect(()=>{var J;d&&(h.size>0||o)&&!x.isOpen&&I!==K&&r!=="manual"&&C(null,"input"),!a&&!o&&x.isOpen&&h.size===0&&j(),g!=null&&g!==se.current&&j(),I!==K&&($.setFocusedKey(null),s(!1),I===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&D(null)),g!==se.current&&(e.inputValue===void 0||e.selectedKey===void 0)?q():K!==I&&W(I);var le;let be=g!=null&&(le=(J=v.getItem(g))===null||J===void 0?void 0:J.textValue)!==null&&le!==void 0?le:"";!d&&g!=null&&e.inputValue===void 0&&g===se.current&&ee.current!==be&&(W(be),V(be)),se.current=g,ee.current=be});let Y=Wt({...e,value:u.useMemo(()=>({inputValue:I,selectedKey:g}),[I,g])}),U=()=>{i&&g==null?N():G()},N=()=>{se.current=null,D(null),j()},G=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var J,le;(J=e.onSelectionChange)===null||J===void 0||J.call(e,g);var be;let bo=g!=null&&(be=(le=v.getItem(g))===null||le===void 0?void 0:le.textValue)!==null&&be!==void 0?be:"";W(bo),j()}else q(),j()};const oe=()=>{if(i){var J,le;const be=g!=null&&(le=(J=v.getItem(g))===null||J===void 0?void 0:J.textValue)!==null&&le!==void 0?le:"";I===be?G():N()}else G()};let De=()=>{x.isOpen&&$.focusedKey!=null?g===$.focusedKey?G():D($.focusedKey):oe()},He=u.useRef(I),mt=J=>{J?(He.current=I,r==="focus"&&!e.isReadOnly&&C(null,"focus")):(l&&oe(),I!==He.current&&Y.commitValidation()),c(J)},mo=u.useMemo(()=>x.isOpen?a?A:h:S,[x.isOpen,A,h,a,S]);return{...Y,...x,focusStrategy:f,toggle:E,open:C,close:oe,selectionManager:$,selectedKey:g,setSelectedKey:D,disabledKeys:B,isFocused:d,setFocused:mt,selectedItem:w,collection:mo,inputValue:I,setInputValue:V,commit:De,revert:U}}function r1(e,t,n){return new gi(Am(e,e,t,n))}function Am(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let l=Am(e,to(i,e),n,r);[...l].some(a=>a.type==="item")&&o.push({...i,childNodes:l})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}var Fm={};Fm={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Rm={};Rm={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Im={};Im={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Mm={};Mm={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var Lm={};Lm={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var Nm={};Nm={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Km={};Km={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Vm={};Vm={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Om={};Om={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var zm={};zm={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var jm={};jm={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var Hm={};Hm={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var _m={};_m={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var Um={};Um={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var Wm={};Wm={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var Gm={};Gm={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var qm={};qm={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Zm={};Zm={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var Ym={};Ym={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var Jm={};Jm={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Xm={};Xm={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Qm={};Qm={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var eb={};eb={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var tb={};tb={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var nb={};nb={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var rb={};rb={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var ob={};ob={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var ib={};ib={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var lb={};lb={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var ab={};ab={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var ub={};ub={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var sb={};sb={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var db={};db={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var cb={};cb={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var fb={};fb={"ar-AE":Fm,"bg-BG":Rm,"cs-CZ":Im,"da-DK":Mm,"de-DE":Lm,"el-GR":Nm,"en-US":Km,"es-ES":Vm,"et-EE":Om,"fi-FI":zm,"fr-FR":jm,"he-IL":Hm,"hr-HR":_m,"hu-HU":Um,"it-IT":Wm,"ja-JP":Gm,"ko-KR":qm,"lt-LT":Zm,"lv-LV":Ym,"nb-NO":Jm,"nl-NL":Xm,"pl-PL":Qm,"pt-BR":eb,"pt-PT":tb,"ro-RO":nb,"ru-RU":rb,"sk-SK":ob,"sl-SI":ib,"sr-SP":lb,"sv-SE":ab,"tr-TR":ub,"uk-UA":sb,"zh-CN":db,"zh-TW":cb};function o1(e){return e&&e.__esModule?e.default:e}const i1=new Ut(o1(fb));function l1(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function a1(e,t,n,r,o){let i=e!=null&&n!=null&&e.compare(n)>0,l=e!=null&&t!=null&&e.compare(t)<0,a=e!=null&&(r==null?void 0:r(e))||!1,s=i||l||a,d=[];if(s){let c=l1(),f=Ut.getGlobalDictionaryForPackage("@react-stately/datepicker")||i1,p=new os(c,f),m=new Jt(c,Cr({},o)),b=m.resolvedOptions().timeZone;l&&t!=null&&d.push(p.format("rangeUnderflow",{minValue:m.format(t.toDate(b))})),i&&n!=null&&d.push(p.format("rangeOverflow",{maxValue:m.format(n.toDate(b))})),a&&d.push(p.format("unavailableDate"))}return{isInvalid:s,validationErrors:d,validationDetails:{badInput:a,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const u1={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},s1={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Cr(e,t){e={...t.shouldForceLeadingZeros?s1:u1,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let l=o.indexOf((i=t.maxGranularity)!==null&&i!==void 0?i:"year");l<0&&(l=0);let a=o.indexOf(r);if(a<0&&(a=2),l>a)throw new Error("maxGranularity must be greater than granularity");let s=o.slice(l,a+1).reduce((c,f)=>(c[f]=e[f],c),{});return t.hourCycle!=null&&(s.hour12=t.hourCycle===12),s.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&l===0&&(s.era="short"),s}function pb(e,t){if(e===null)return null;if(e)return Be(e,t)}function Cn(e,t,n,r){if(e)return pb(e,n);let o=Be(us(r??Zr()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?ms(o):r?o:Dt(o)}function d1(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=u.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&i([r,n]),t||(t=e?r:o[0]);let l=e?n:o[1];return[t,l]}const c1=new Ut({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function f1(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?c1.getStringForLocale(e,n):"––"}const Dr={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},uu={year:5,month:2,day:7,hour:2,minute:15,second:15},mb={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function bb(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o=!1,isReadOnly:i=!1,isRequired:l=!1,minValue:a,maxValue:s,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[f,p]=d1(c,e.granularity),m=p||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let b=u.useMemo(()=>new Jt(t),[t]),v=u.useMemo(()=>n(b.resolvedOptions().calendar),[n,b]);var $;let[g,D]=Re(e.value,($=e.defaultValue)!==null&&$!==void 0?$:null,e.onChange),w=u.useMemo(()=>{var _;return(_=pb(g,v))!==null&&_!==void 0?_:null},[g,v]),[B,k]=u.useState(()=>Cn(e.placeholderValue,f,v,p)),P=w||B,L=v.identifier==="gregory"&&P.era==="BC",I=u.useMemo(()=>{var _;return{granularity:f,maxGranularity:(_=e.maxGranularity)!==null&&_!==void 0?_:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:L,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,L]),V=u.useMemo(()=>Cr({},I),[I]),A=u.useMemo(()=>new Jt(t,V),[t,V]),h=u.useMemo(()=>A.resolvedOptions(),[A]),S=u.useMemo(()=>A.formatToParts(new Date).filter(_=>Dr[_.type]).reduce((_,ee)=>(_[mb[ee.type]||ee.type]=!0,_),{}),[A]),[M,R]=u.useState(()=>e.value||e.defaultValue?{...S}:{}),H=u.useRef(null),x=u.useRef(v);u.useEffect(()=>{as(v,x.current)||(x.current=v,k(_=>Object.keys(M).length>0?Be(_,v):Cn(e.placeholderValue,f,v,p)))},[v,f,M,p,e.placeholderValue]),g&&Object.keys(M).length<Object.keys(S).length&&(M={...S},R(M)),g==null&&Object.keys(M).length===Object.keys(S).length&&(M={},R(M),k(Cn(e.placeholderValue,f,v,p)));let C=w&&Object.keys(M).length>=Object.keys(S).length?w:B,E=_=>{if(e.isDisabled||e.isReadOnly)return;let ee=Object.keys(M),Y=Object.keys(S);_==null?(D(null),k(Cn(e.placeholderValue,f,v,p)),R({})):ee.length>=Y.length||ee.length===Y.length-1&&S.dayPeriod&&!M.dayPeriod&&H.current!=="dayPeriod"?(_=Be(_,(c==null?void 0:c.calendar)||new Le),D(_)):k(_),H.current=null},O=u.useMemo(()=>C.toDate(m),[C,m]),F=u.useMemo(()=>p1(O,M,A,h,C,v,t,f),[O,M,A,h,C,v,t,f]);S.era&&M.year&&!M.era?(M.era=!0,R({...M})):!S.era&&M.era&&(delete M.era,R({...M}));let j=_=>{M[_]=!0,_==="year"&&S.era&&(M.era=!0),R({...M})},K=(_,ee)=>{if(M[_])E(m1(C,_,ee,h));else{j(_);let Y=Object.keys(M),U=Object.keys(S);(Y.length>=U.length||Y.length===U.length-1&&S.dayPeriod&&!M.dayPeriod)&&E(C)}},W=u.useMemo(()=>a1(g,a,s,d,I),[g,a,s,d,I]),q=Wt({...e,value:g,builtinValidation:W}),Q=q.displayValidation.isInvalid,ye=e.validationState||(Q?"invalid":null);var se;return{...q,value:w,dateValue:O,calendar:v,setValue:E,segments:F,dateFormatter:A,validationState:ye,isInvalid:Q,granularity:f,maxGranularity:(se=e.maxGranularity)!==null&&se!==void 0?se:"year",isDisabled:o,isReadOnly:i,isRequired:l,increment(_){K(_,1)},decrement(_){K(_,-1)},incrementPage(_){K(_,uu[_]||1)},decrementPage(_){K(_,-(uu[_]||1))},setSegment(_,ee){j(_),E(b1(C,_,ee,h))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let _=Object.keys(M),ee=Object.keys(S);_.length===ee.length-1&&S.dayPeriod&&!M.dayPeriod&&(M={...S},R(M),E(C.copy()))},clearSegment(_){delete M[_],H.current=_,R({...M});let ee=Cn(e.placeholderValue,f,v,p),Y=C;if(_==="dayPeriod"&&"hour"in C&&"hour"in ee){let U=C.hour>=12,N=ee.hour>=12;U&&!N?Y=C.set({hour:C.hour-12}):!U&&N&&(Y=C.set({hour:C.hour+12}))}else _==="hour"&&"hour"in C&&C.hour>=12&&M.dayPeriod?Y=C.set({hour:ee.hour+12}):_ in C&&(Y=C.set({[_]:ee[_]}));D(null),E(Y)},formatValue(_){if(!w)return"";let ee=Cr(_,I);return new Jt(t,ee).format(O)},getDateFormatter(_,ee){let Y={...I,...ee},U=Cr({},Y);return new Jt(_,U)}}}function p1(e,t,n,r,o,i,l,a){let s=["hour","minute","second"],d=n.formatToParts(e),c=[];for(let f of d){let p=mb[f.type]||f.type,m=Dr[p];p==="era"&&i.getEras().length===1&&(m=!1);let b=Dr[p]&&!t[p],v=Dr[p]?f1(p,f.value,l):null,$={type:p,text:b?v:f.value,...mr(o,p,r),isPlaceholder:b,placeholder:v,isEditable:m};p==="hour"?(c.push({type:"literal",text:"",...mr(o,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push($),p===a&&c.push({type:"literal",text:"",...mr(o,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):s.includes(p)&&p===a?(c.push($),c.push({type:"literal",text:"",...mr(o,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push($)}return c}function mr(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:F3(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:R3(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function m1(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return e.set({hour:i?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function b1(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return n>=12===i?e:e.set({hour:i?o-12:o+12})}case"hour":if(r.hour12){let i=e.hour>=12;!i&&n===12&&(n=0),i&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function h1(e){let{placeholderValue:t=new Jr,minValue:n,maxValue:r,granularity:o,validate:i}=e;var l;let[a,s]=Re(e.value,(l=e.defaultValue)!==null&&l!==void 0?l:null,e.onChange),d=a||t,c=d&&"day"in d?d:void 0,f=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,p=u.useMemo(()=>{let w=d&&"timeZone"in d?d.timeZone:void 0;return(w||f)&&t?bs(Dn(t),w||f):Dn(t)},[t,d,f]),m=u.useMemo(()=>Dn(n,c),[n,c]),b=u.useMemo(()=>Dn(r,c),[r,c]),v=u.useMemo(()=>a&&"day"in a?ca(a):a,[a]),$=u.useMemo(()=>a==null?null:Dn(a),[a]);return{...bb({...e,value:$,defaultValue:void 0,minValue:m,maxValue:b,onChange:w=>{s(c||f?w:w&&ca(w))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new Le,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:v}}function Dn(e,t=A3(Zr())){return e?"day"in e?e:Dt(t,e):null}function v1(e){let[t,n]=Re(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);const r=u.useCallback(()=>{n(!0)},[n]),o=u.useCallback(()=>{n(!1)},[n]),i=u.useCallback(()=>{n(!t)},[n,t]);return{isExpanded:t,setExpanded:n,expand:r,collapse:o,toggle:i}}function $1(e){let{allowsMultipleExpanded:t=!1,isDisabled:n=!1}=e,[r,o]=Re(u.useMemo(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),u.useMemo(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return u.useEffect(()=>{if(!t&&r.size>1){let i=r.values().next().value;i!=null&&o(new Set([i]))}}),{allowsMultipleExpanded:t,isDisabled:n,expandedKeys:r,setExpandedKeys:o,toggleKey(i){let l;t?(l=new Set(r),l.has(i)?l.delete(i):l.add(i)):l=new Set(r.has(i)?[]:[i]),o(l)}}}function g1(e){let t=Gn(e),[n,r]=u.useState(null),[o,i]=u.useState([]),l=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(d=null){r(d),t.open()},toggle(d=null){r(d),t.toggle()},close(){l()},expandedKeysStack:o,openSubmenu:(d,c)=>{i(f=>c>f.length?f:[...f.slice(0,c),d])},closeSubmenu:(d,c)=>{i(f=>f[c]===d?f.slice(0,c):f)}}}let y1=Math.round(Math.random()*1e10),x1=0;function C1(e){let t=u.useMemo(()=>e.name||`radio-group-${y1}-${++x1}`,[e.name]);var n;let[r,o]=Re(e.value,(n=e.defaultValue)!==null&&n!==void 0?n:null,e.onChange),[i,l]=u.useState(null),a=Wt({...e,value:r}),s=c=>{!e.isReadOnly&&!e.isDisabled&&(o(c),a.commitValidation())},d=a.displayValidation.isInvalid;return{...a,name:t,selectedValue:r,setSelectedValue:s,lastFocusedValue:i,setLastFocusedValue:l,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(d?"invalid":null),isInvalid:d}}function D1(e){let t=Gn(e),[n,r]=u.useState(null),o=Tm({...e,onSelectionChange:d=>{e.onSelectionChange!=null&&e.onSelectionChange(d),t.close(),i.commitValidation()}}),i=Wt({...e,value:o.selectedKey}),[l,a]=u.useState(!1),s=u.useMemo(()=>{var d;return o.collection.size===0||o.collection.size===1&&((d=o.collection.getItem(o.collection.getFirstKey()))===null||d===void 0?void 0:d.type)==="loader"},[o.collection]);return{...i,...o,...t,focusStrategy:n,open(d=null){s||(r(d),t.open())},toggle(d=null){s||(r(d),t.toggle())},isFocused:l,setFocused:a}}const E1=1500,su=500;let At={},P1=0,En=!1,nt=null,Ft=null;function hb(e={}){let{delay:t=E1,closeDelay:n=su}=e,{isOpen:r,open:o,close:i}=Gn(e),l=u.useMemo(()=>`${++P1}`,[]),a=u.useRef(null),s=u.useRef(i),d=()=>{At[l]=p},c=()=>{for(let b in At)b!==l&&(At[b](!0),delete At[b])},f=()=>{a.current&&clearTimeout(a.current),a.current=null,c(),d(),En=!0,o(),nt&&(clearTimeout(nt),nt=null),Ft&&(clearTimeout(Ft),Ft=null)},p=b=>{b||n<=0?(a.current&&clearTimeout(a.current),a.current=null,s.current()):a.current||(a.current=setTimeout(()=>{a.current=null,s.current()},n)),nt&&(clearTimeout(nt),nt=null),En&&(Ft&&clearTimeout(Ft),Ft=setTimeout(()=>{delete At[l],Ft=null,En=!1},Math.max(su,n)))},m=()=>{c(),d(),!r&&!nt&&!En?nt=setTimeout(()=>{nt=null,En=!0,f()},t):r||f()};return u.useEffect(()=>{s.current=i},[i]),u.useEffect(()=>()=>{a.current&&clearTimeout(a.current),At[l]&&delete At[l]},[l]),{isOpen:r,open:b=>{!b&&t>0&&!a.current?m():f()},close:p}}const qn=u.createContext(null),Zn=u.createContext({}),w1=u.forwardRef(function(t,n){[t,n]=fe(t,n,Zn);let{isDisabled:r,isInvalid:o,onHoverStart:i,onHoverChange:l,onHoverEnd:a,...s}=t,{hoverProps:d,isHovered:c}=je({onHoverStart:i,onHoverChange:l,onHoverEnd:a,isDisabled:r}),{isFocused:f,isFocusVisible:p,focusProps:m}=Se({within:!0});r??(r=!!t["aria-disabled"]&&t["aria-disabled"]!=="false"),o??(o=!!t["aria-invalid"]&&t["aria-invalid"]!=="false");let b=pe({...t,values:{isHovered:c,isFocusWithin:f,isFocusVisible:p,isDisabled:r,isInvalid:o},defaultClassName:"react-aria-Group"});var v,$;return u.createElement("div",{...z(s,m,d),...b,ref:n,role:(v=t.role)!==null&&v!==void 0?v:"group",slot:($=t.slot)!==null&&$!==void 0?$:void 0,"data-focus-within":f||void 0,"data-hovered":c||void 0,"data-focus-visible":p||void 0,"data-disabled":r||void 0,"data-invalid":o||void 0},b.children)}),S1=u.createContext(null),vb=u.createContext({});let k1=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};const B1=u.forwardRef(function(t,n){[t,n]=fe(t,n,vb);let{hoverProps:r,isHovered:o}=je(t),{isFocused:i,isFocusVisible:l,focusProps:a}=Se({isTextInput:!0,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",d=pe({...t,values:{isHovered:o,isFocused:i,isFocusVisible:l,isDisabled:t.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return u.createElement("textarea",{...z(k1(t),a,r),...d,ref:n,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),$b=u.createContext(null),T1=el(function(t,n){[t,n]=fe(t,n,$b);let{validationBehavior:r}=wt(qn)||{};var o,i;let l=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:r)!==null&&i!==void 0?i:"native",a=u.useRef(null),[s,d]=fe({},a,dt),[c,f]=Gt(!t["aria-label"]&&!t["aria-labelledby"]),[p,m]=u.useState("input"),{labelProps:b,inputProps:v,descriptionProps:$,errorMessageProps:g,...D}=_n({...mn(t),inputElementType:p,label:f,validationBehavior:l},d),w=u.useCallback(P=>{d.current=P,P&&m(P instanceof HTMLTextAreaElement?"textarea":"input")},[d]),B=pe({...t,values:{isDisabled:t.isDisabled||!1,isInvalid:D.isInvalid,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-TextField"}),k=te(t);return delete k.id,u.createElement("div",{...k,...B,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":D.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},u.createElement(Ie,{values:[[St,{...b,ref:c}],[dt,{...z(v,s),ref:w}],[vb,{...v,ref:w}],[et,{slots:{description:$,errorMessage:g}}],[Wn,D]]},B.children))});var gb={};gb={collectionLabel:"مقترحات"};var yb={};yb={collectionLabel:"Предложения"};var xb={};xb={collectionLabel:"Návrhy"};var Cb={};Cb={collectionLabel:"Forslag"};var Db={};Db={collectionLabel:"Empfehlungen"};var Eb={};Eb={collectionLabel:"Προτάσεις"};var Pb={};Pb={collectionLabel:"Suggestions"};var wb={};wb={collectionLabel:"Sugerencias"};var Sb={};Sb={collectionLabel:"Soovitused"};var kb={};kb={collectionLabel:"Ehdotukset"};var Bb={};Bb={collectionLabel:"Suggestions"};var Tb={};Tb={collectionLabel:"הצעות"};var Ab={};Ab={collectionLabel:"Prijedlozi"};var Fb={};Fb={collectionLabel:"Javaslatok"};var Rb={};Rb={collectionLabel:"Suggerimenti"};var Ib={};Ib={collectionLabel:"候補"};var Mb={};Mb={collectionLabel:"제안"};var Lb={};Lb={collectionLabel:"Pasiūlymai"};var Nb={};Nb={collectionLabel:"Ieteikumi"};var Kb={};Kb={collectionLabel:"Forslag"};var Vb={};Vb={collectionLabel:"Suggesties"};var Ob={};Ob={collectionLabel:"Sugestie"};var zb={};zb={collectionLabel:"Sugestões"};var jb={};jb={collectionLabel:"Sugestões"};var Hb={};Hb={collectionLabel:"Sugestii"};var _b={};_b={collectionLabel:"Предложения"};var Ub={};Ub={collectionLabel:"Návrhy"};var Wb={};Wb={collectionLabel:"Predlogi"};var Gb={};Gb={collectionLabel:"Predlozi"};var qb={};qb={collectionLabel:"Förslag"};var Zb={};Zb={collectionLabel:"Öneriler"};var Yb={};Yb={collectionLabel:"Пропозиції"};var Jb={};Jb={collectionLabel:"建议"};var Xb={};Xb={collectionLabel:"建議"};var Qb={};Qb={"ar-AE":gb,"bg-BG":yb,"cs-CZ":xb,"da-DK":Cb,"de-DE":Db,"el-GR":Eb,"en-US":Pb,"es-ES":wb,"et-EE":Sb,"fi-FI":kb,"fr-FR":Bb,"he-IL":Tb,"hr-HR":Ab,"hu-HU":Fb,"it-IT":Rb,"ja-JP":Ib,"ko-KR":Mb,"lt-LT":Lb,"lv-LV":Nb,"nb-NO":Kb,"nl-NL":Vb,"pl-PL":Ob,"pt-BR":zb,"pt-PT":jb,"ro-RO":Hb,"ru-RU":_b,"sk-SK":Ub,"sl-SI":Wb,"sr-SP":Gb,"sv-SE":qb,"tr-TR":Zb,"uk-UA":Yb,"zh-CN":Jb,"zh-TW":Xb};function A1(e){return e&&e.__esModule?e.default:e}function F1(e,t){let{inputRef:n,collectionRef:r,filter:o,disableAutoFocusFirst:i=!1}=e,l=ue(),a=u.useRef(void 0),s=u.useRef(!1),d=u.useRef(null),c=u.useRef(null),f=un()!=="virtual";u.useEffect(()=>()=>clearTimeout(a.current),[]);let p=re(h=>{!h.isTrusted&&f&&n.current&&$e(X(n.current))!==n.current&&n.current.focus();let S=h.target;h.isTrusted||!S||d.current===S.id||(clearTimeout(a.current),S!==r.current?s.current?(d.current=S.id,a.current=setTimeout(()=>{t.setFocusedNodeId(S.id)},500)):(d.current=S.id,t.setFocusedNodeId(S.id)):(d.current=null,t.setFocusedNodeId(null)),s.current=!1)}),m=u.useCallback(h=>{var S;if(h!=null){var M;(M=c.current)===null||M===void 0||M.removeEventListener("focusin",p),c.current=h,h.addEventListener("focusin",p)}else(S=c.current)===null||S===void 0||S.removeEventListener("focusin",p)},[p]),b=me(u.useMemo(()=>Vn(r,m),[r,m])),v=re(()=>{var h;s.current=!0,(h=r.current)===null||h===void 0||h.dispatchEvent(new CustomEvent(Jo,{cancelable:!0,bubbles:!0,detail:{focusStrategy:"first"}}))}),$=re(h=>{var S;Hi($e()),d.current=null,t.setFocusedNodeId(null);let M=new CustomEvent(ju,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:h}});clearTimeout(a.current),s.current=!1,(S=r.current)===null||S===void 0||S.dispatchEvent(M)}),g=h=>{t.inputValue!==h&&t.inputValue.length<=h.length&&!i?v():$(!0),t.setInputValue(h)},D=u.useRef(null),w=h=>{var S;if(D.current=h.target,h.nativeEvent.isComposing)return;let M=d.current;switch(h.key){case"a":if(Rt(h))return;break;case"Escape":if(h.isDefaultPrevented())return;break;case" ":return;case"Tab":"continuePropagation"in h&&h.continuePropagation();return;case"Home":case"End":case"PageDown":case"PageUp":case"ArrowUp":case"ArrowDown":{var R;if((h.key==="Home"||h.key==="End")&&M==null&&h.shiftKey)return;h.preventDefault();let x=new CustomEvent(Jo,{cancelable:!0,bubbles:!0});(R=r.current)===null||R===void 0||R.dispatchEvent(x);break}}h.isPropagationStopped()||h.stopPropagation();let H=!0;if(M==null)H=((S=r.current)===null||S===void 0?void 0:S.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent)))||!1;else{let x=document.getElementById(M);H=(x==null?void 0:x.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent)))||!1}if(H)switch(h.key){case"ArrowLeft":case"ArrowRight":$();break}},B=re(h=>{if(h.target===D.current){var S;h.stopImmediatePropagation();let M=d.current;if(M==null)(S=r.current)===null||S===void 0||S.dispatchEvent(new KeyboardEvent(h.type,h));else{let R=document.getElementById(M);R==null||R.dispatchEvent(new KeyboardEvent(h.type,h))}}});u.useEffect(()=>(document.addEventListener("keyup",B,!0),()=>{document.removeEventListener("keyup",B,!0)}),[B]);let k=qe(A1(Qb),"@react-aria/autocomplete"),P=ln({id:l,"aria-label":k.format("collectionLabel")}),L=u.useCallback(h=>o?o(h,t.inputValue):!0,[t.inputValue,o]),I=h=>{if(!h.isTrusted)return;let S=d.current?document.getElementById(d.current):null;S&&pi(S,h.relatedTarget)},V=h=>{if(!h.isTrusted)return;let S=d.current?document.getElementById(d.current):null;if(S){let M=h.target;queueMicrotask(()=>{pi(M,S),_i(S,M)})}};var A;return{textFieldProps:{value:t.inputValue,onChange:g,onKeyDown:w,autoComplete:"off","aria-haspopup":"listbox","aria-controls":l,"aria-autocomplete":"list","aria-activedescendant":(A=t.focusedNodeId)!==null&&A!==void 0?A:void 0,autoCorrect:"off",spellCheck:"false",enterKeyHint:"go",onBlur:I,onFocus:V},collectionProps:z(P,{shouldUseVirtualFocus:f,disallowTypeAhead:!0}),collectionRef:b,filter:o!=null?L:void 0}}function R1(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=""}=e,o=d=>{t&&t(d)},[i,l]=u.useState(null),[a,s]=Re(n,r,o);return{inputValue:a,setInputValue:s,focusedNodeId:i,setFocusedNodeId:l}}const I1=u.createContext(null),M1=u.createContext(null),e4=u.createContext(null);function L1(e){let t=wt(I1,e.slot);e=z(t,e);let{filter:n,disableAutoFocusFirst:r}=e,o=R1(e),i=u.useRef(null),l=u.useRef(null),{textFieldProps:a,collectionProps:s,collectionRef:d,filter:c}=F1({...mn(e),filter:n,disableAutoFocusFirst:r,inputRef:i,collectionRef:l},o);return u.createElement(Ie,{values:[[M1,o],[S1,a],[$b,a],[dt,{ref:i}],[e4,{filter:c,collectionProps:s,collectionRef:d}]]},e.children)}const N1=u.createContext(null),t4={CollectionRoot({collection:e,renderDropIndicator:t}){return du(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return du(e,t,n)}};function du(e,t,n){return Pm({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let o=r.render(r);return!n||r.type!=="item"?o:u.createElement(u.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,K1(e,r,n))}})}function K1(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let l=t.nextKey!=null?e.getItem(t.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?e.getItem(l.nextKey):null;let a=[];if(l==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let d=n({type:"item",key:s.key,dropPosition:"after"});u.isValidElement(d)&&a.push(u.cloneElement(d,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return a}const bn=u.createContext(t4);function V1(e){return u.useMemo(()=>e!=null?new Set([e]):null,[e])}var n4={};n4={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var r4={};r4={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var o4={};o4={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var i4={};i4={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var l4={};l4={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var a4={};a4={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var u4={};u4={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var s4={};s4={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var d4={};d4={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var c4={};c4={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var f4={};f4={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var p4={};p4={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var m4={};m4={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var b4={};b4={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var h4={};h4={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var v4={};v4={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var $4={};$4={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var g4={};g4={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var y4={};y4={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var x4={};x4={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var C4={};C4={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var D4={};D4={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var E4={};E4={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var P4={};P4={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var w4={};w4={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var S4={};S4={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var k4={};k4={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var B4={};B4={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var T4={};T4={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var A4={};A4={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var F4={};F4={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var R4={};R4={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var I4={};I4={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var M4={};M4={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var L4={};L4={"ar-AE":n4,"bg-BG":r4,"cs-CZ":o4,"da-DK":i4,"de-DE":l4,"el-GR":a4,"en-US":u4,"es-ES":s4,"et-EE":d4,"fi-FI":c4,"fr-FR":f4,"he-IL":p4,"hr-HR":m4,"hu-HU":b4,"it-IT":h4,"ja-JP":v4,"ko-KR":$4,"lt-LT":g4,"lv-LV":y4,"nb-NO":x4,"nl-NL":C4,"pl-PL":D4,"pt-BR":E4,"pt-PT":P4,"ro-RO":w4,"ru-RU":S4,"sk-SK":k4,"sl-SI":B4,"sr-SP":T4,"sv-SE":A4,"tr-TR":F4,"uk-UA":R4,"zh-CN":I4,"zh-TW":M4};const lo=u.createContext({}),N4=u.createContext(null),O1=u.forwardRef(function(t,n){let{render:r}=u.useContext(N4);return u.createElement(u.Fragment,null,r(t,n))});function K4(e,t){var n;let r=e==null?void 0:e.renderDropIndicator,o=e==null||(n=e.isVirtualDragging)===null||n===void 0?void 0:n.call(e),i=u.useCallback(l=>{if(o||t!=null&&t.isDropTarget(l))return r?r(l):u.createElement(O1,{target:l})},[t==null?void 0:t.target,o,r]);return e!=null&&e.useDropIndicator?i:void 0}function z1(e,t,n){var r,o;let i=e.focusedKey,l=null;if(!(t==null||(r=t.isVirtualDragging)===null||r===void 0)&&r.call(t)&&(n==null||(o=n.target)===null||o===void 0?void 0:o.type)==="item"){l=n.target.key;var a;n.target.dropPosition==="after"&&(l=(a=n.collection.getKeyAfter(l))!==null&&a!==void 0?a:l)}return u.useMemo(()=>new Set([i,l].filter(s=>s!=null)),[i,l])}const V4=u.createContext({}),O4=ro("header",function(t,n){return[t,n]=fe(t,n,V4),u.createElement("header",{className:"react-aria-Header",...t,ref:n},t.children)}),j1=u.createContext({}),Yn=u.createContext(null),Ze=u.createContext(null),z4=u.forwardRef(function(t,n){[t,n]=fe(t,n,Yn);let r=u.useContext(Ze);return r?u.createElement(j4,{state:r,props:t,listBoxRef:n}):u.createElement(no,{content:u.createElement(oo,t)},o=>u.createElement(H1,{props:t,listBoxRef:n,collection:o}))});function H1({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=u.useContext(bn),o=rl({...e,layoutDelegate:r});return u.createElement(j4,{state:o,props:e,listBoxRef:t})}function j4({state:e,props:t,listBoxRef:n}){var r;let{filter:o,collectionProps:i,collectionRef:l}=u.useContext(e4)||{};t=u.useMemo(()=>i?{...t,...i}:t,[t,i]);let{dragAndDropHooks:a,layout:s="stack",orientation:d="vertical"}=t;n=me(u.useMemo(()=>Vn(n,l!==void 0?l:null),[l,n]));let c=t1(e,o),{collection:f,selectionManager:p}=c,m=!!(a!=null&&a.useDraggableCollectionState),b=!!(a!=null&&a.useDroppableCollectionState),{direction:v}=Pe(),{disabledBehavior:$,disabledKeys:g}=p,D=Xr({usage:"search",sensitivity:"base"}),{isVirtualized:w,layoutDelegate:B,dropTargetDelegate:k,CollectionRoot:P}=u.useContext(bn),L=u.useMemo(()=>t.keyboardDelegate||new Un({collection:f,collator:D,ref:n,disabledKeys:g,disabledBehavior:$,layout:s,orientation:d,direction:v,layoutDelegate:B}),[f,D,n,$,g,d,v,t.keyboardDelegate,s,B]),{listBoxProps:I}=Fg({...t,shouldSelectOnPressUp:m||t.shouldSelectOnPressUp,keyboardDelegate:L,isVirtualized:w},c,n),V=u.useRef(m),A=u.useRef(b);u.useEffect(()=>{process.env.NODE_ENV!=="production"&&(V.current!==m&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),A.current!==b&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[m,b]);let h,S,M,R=!1,H=null,x=u.useRef(null);if(m&&a){h=a.useDraggableCollectionState({collection:f,selectionManager:p,preview:a.renderDragPreview?x:void 0}),a.useDraggableCollection({},h,n);let q=a.DragPreview;H=a.renderDragPreview?u.createElement(q,{ref:x},a.renderDragPreview):null}if(b&&a){S=a.useDroppableCollectionState({collection:f,selectionManager:p});let q=a.dropTargetDelegate||k||new a.ListDropTargetDelegate(f,n,{orientation:d,layout:s,direction:v});M=a.useDroppableCollection({keyboardDelegate:L,dropTargetDelegate:q},S,n),R=S.isDropTarget({type:"root"})}let{focusProps:C,isFocused:E,isFocusVisible:O}=Se(),F=c.collection.size===0||c.collection.size===1&&((r=c.collection.getItem(c.collection.getFirstKey()))===null||r===void 0?void 0:r.type)==="loader",j={isDropTarget:R,isEmpty:F,isFocused:E,isFocusVisible:O,layout:t.layout||"stack",state:c},K=pe({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:j}),W=null;return F&&t.renderEmptyState&&(W=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(j))),u.createElement(Ns,null,u.createElement("div",{...te(t),...z(I,C,M==null?void 0:M.collectionProps),...K,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":R||void 0,"data-empty":F||void 0,"data-focused":E||void 0,"data-focus-visible":O||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Ie,{values:[[Yn,t],[Ze,c],[lo,{dragAndDropHooks:a,dragState:h,dropState:S}],[j1,{elementType:"div"}],[N4,{render:_1}],[N1,{name:"ListBoxSection",render:H4}]]},u.createElement(P,{collection:f,scrollRef:n,persistedKeys:z1(p,a,S),renderDropIndicator:K4(a,S)})),W,H))}function H4(e,t,n,r="react-aria-ListBoxSection"){let o=u.useContext(Ze),{dragAndDropHooks:i,dropState:l}=u.useContext(lo),{CollectionBranch:a}=u.useContext(bn),[s,d]=Gt();var c;let{headingProps:f,groupProps:p}=Og({heading:d,"aria-label":(c=e["aria-label"])!==null&&c!==void 0?c:void 0}),m=pe({defaultClassName:r,className:e.className,style:e.style,values:{}});return u.createElement("section",{...te(e),...p,...m,ref:t},u.createElement(V4.Provider,{value:{...f,ref:s}},u.createElement(a,{collection:o.collection,parent:n,renderDropIndicator:K4(i,l)})))}const _4=Gy("section",H4),U4=ro("item",function(t,n,r){let o=me(n),i=u.useContext(Ze),{dragAndDropHooks:l,dragState:a,dropState:s}=u.useContext(lo),{optionProps:d,labelProps:c,descriptionProps:f,...p}=Vg({key:r.key,"aria-label":t==null?void 0:t["aria-label"]},i,o),{hoverProps:m,isHovered:b}=je({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),v=null;a&&l&&(v=l.useDraggableItem({key:r.key},a));let $=null;s&&l&&($=l.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,o));let g=a&&a.isDragging(r.key),D=pe({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:b,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:g,isDropTarget:$==null?void 0:$.isDropTarget}});u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let w=t.href?"a":"div";return u.createElement(w,{...z(d,m,v==null?void 0:v.dragProps,$==null?void 0:$.dropProps),...D,ref:o,"data-allows-dragging":!!a||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":g||void 0,"data-drop-target":($==null?void 0:$.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},u.createElement(Ie,{values:[[et,{slots:{[Or]:c,label:c,description:f}}]]},D.children))});function _1(e,t){t=me(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(lo),{dropIndicatorProps:o,isHidden:i,isDropTarget:l}=n.useDropIndicator(e,r,t);return i?null:u.createElement(W1,{...e,dropIndicatorProps:o,isDropTarget:l,ref:t})}function U1(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=pe({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const W1=u.forwardRef(U1);ro("loader",function(t,n,r){let o=u.useContext(Ze),{isVirtualized:i}=u.useContext(bn),{isLoading:l,onLoadMore:a,scrollOffset:s,...d}=t,c=u.useRef(null),f=u.useMemo(()=>({onLoadMore:a,collection:o==null?void 0:o.collection,sentinelRef:c,scrollOffset:s}),[a,s,o==null?void 0:o.collection]);jv(f,c);let p=pe({...d,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),m={tabIndex:-1};return i&&(m["aria-posinset"]=r.index+1,m["aria-setsize"]=o.collection.size),u.createElement(u.Fragment,null,u.createElement("div",{style:{position:"relative",width:0,height:0},inert:Hv(!0)},u.createElement("div",{"data-testid":"loadMoreSentinel",ref:c,style:{position:"absolute",height:1,width:1}})),l&&p.children&&u.createElement("div",{...z(te(t),m),...p,role:"option",ref:n},p.children))});const W4=u.createContext({placement:"bottom"}),ao=u.createContext(null),cu=u.createContext(null),uo=u.forwardRef(function(t,n){[t,n]=fe(t,n,ao);let r=u.useContext(Jn),o=Gn(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?o:r,l=_u(n,i.isOpen)||t.isExiting||!1,a=jy(),{direction:s}=Pe();if(a){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.createElement(u.Fragment,null,d)}return i&&!i.isOpen&&!l?null:u.createElement(G1,{...t,triggerRef:t.triggerRef,state:i,popoverRef:n,isExiting:l,dir:s})});function G1({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){let i=u.useRef(null),[l,a]=u.useState(0),s=u.useRef(null),d=u.useContext(cu),c=d&&o.trigger==="SubmenuTrigger";Z(()=>{i.current&&e.isOpen&&a(i.current.getBoundingClientRect().width)},[e.isOpen,i]);var f;let{popoverProps:p,underlayProps:m,arrowProps:b,placement:v}=Pg({...o,offset:(f=o.offset)!==null&&f!==void 0?f:8,arrowSize:l,groupRef:c?d:s},e),$=o.popoverRef,g=Hu($,!!v)||o.isEntering||!1,D=pe({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:v,isEntering:g,isExiting:t}}),w=!o.isNonModal||o.trigger==="SubmenuTrigger",[B,k]=u.useState(!1);Z(()=>{$.current&&k(w&&!$.current.querySelector("[role=dialog]"))},[$,w]),u.useEffect(()=>{B&&$.current&&!$.current.contains(document.activeElement)&&ke($.current)},[B,$]);let P=u.useMemo(()=>{let A=D.children;if(r)for(let h of r)A=u.createElement(h.Provider,{value:null},A);return A},[D.children,r]),L={...p.style,...D.style},I=u.createElement("div",{...z(te(o),p),...D,role:B?"dialog":void 0,tabIndex:B?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:$,slot:o.slot||void 0,style:L,dir:o.dir,"data-trigger":o.trigger,"data-placement":v,"data-entering":g||void 0,"data-exiting":t||void 0},!o.isNonModal&&u.createElement(Ha,{onDismiss:e.close}),u.createElement(W4.Provider,{value:{...b,placement:v,ref:i}},P),u.createElement(Ha,{onDismiss:e.close}));if(!c)return u.createElement(_a,{...o,shouldContainFocus:B,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...m,style:{position:"fixed",inset:0}}),u.createElement("div",{ref:s,style:{display:"contents"}},u.createElement(cu.Provider,{value:s},I)));var V;return u.createElement(_a,{...o,shouldContainFocus:B,isExiting:t,portalContainer:(V=n??(d==null?void 0:d.current))!==null&&V!==void 0?V:void 0},I)}const q1=u.createContext(null),G4=u.createContext(null),Jn=u.createContext(null);function q4(e){let t=g1(e),n=u.useRef(null),{triggerProps:r,overlayProps:o}=Wc({type:"dialog"},t,n),[i,l]=u.useState(null),a=u.useCallback(()=>{n.current&&l(n.current.offsetWidth+"px")},[n]);return An({ref:n,onResize:a}),r.id=ue(),o["aria-labelledby"]=r.id,u.createElement(Ie,{values:[[Jn,t],[q1,t],[G4,o],[ao,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},u.createElement(p3,{...r,ref:n,isPressed:t.isOpen},e.children))}const Z4=u.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=fe(t,n,G4);let{dialogProps:o,titleProps:i}=Qg({...t,"aria-labelledby":r},n),l=u.useContext(Jn);!o["aria-label"]&&!o["aria-labelledby"]&&(t["aria-labelledby"]?o["aria-labelledby"]=t["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 a=pe({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(l==null?void 0:l.close)||(()=>{})}});return u.createElement("section",{...te(t),...o,...a,ref:n,slot:t.slot||void 0},u.createElement(Ie,{values:[[Vy,{slots:{[Or]:{},title:{...i,level:2}}}],[kt,{slots:{[Or]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))}),Z1=u.createContext(null),ol=u.createContext(null),Y1=u.forwardRef(function(t,n){[t,n]=fe(t,n,Z1);let{children:r,isDisabled:o=!1,isInvalid:i=!1,isRequired:l=!1}=t,a=u.useMemo(()=>{var s;return u.createElement(Yn.Provider,{value:{items:(s=t.items)!==null&&s!==void 0?s:t.defaultItems}},typeof r=="function"?r({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:l,defaultChildren:null}):r)},[r,o,i,l,t.items,t.defaultItems]);return u.createElement(no,{content:a},s=>u.createElement(X1,{props:t,collection:s,comboBoxRef:n}))}),J1=[St,kt,dt,Zn,et];function X1({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{validationBehavior:l}=wt(qn)||{};var a,s;let d=(s=(a=e.validationBehavior)!==null&&a!==void 0?a:l)!==null&&s!==void 0?s:"native",{contains:c}=Oi({sensitivity:"base"}),f=n1({defaultFilter:e.defaultFilter||c,...e,items:e.items,children:void 0,collection:t,validationBehavior:d}),p=u.useRef(null),m=u.useRef(null),b=u.useRef(null),v=u.useRef(null),[$,g]=Gt(!e["aria-label"]&&!e["aria-labelledby"]),{buttonProps:D,inputProps:w,listBoxProps:B,labelProps:k,descriptionProps:P,errorMessageProps:L,...I}=Hg({...mn(e),label:g,inputRef:m,buttonRef:p,listBoxRef:b,popoverRef:v,name:o==="text"?r:void 0,validationBehavior:d},f),[V,A]=u.useState(null),h=u.useCallback(()=>{if(m.current){var x;let C=(x=p.current)===null||x===void 0?void 0:x.getBoundingClientRect(),E=m.current.getBoundingClientRect(),O=C?Math.min(C.left,E.left):E.left,F=C?Math.max(C.right,E.right):E.right;A(F-O+"px")}},[p,m,A]);An({ref:m,onResize:h});let S=u.useMemo(()=>({isOpen:f.isOpen,isDisabled:e.isDisabled||!1,isInvalid:I.isInvalid||!1,isRequired:e.isRequired||!1}),[f.isOpen,e.isDisabled,I.isInvalid,e.isRequired]),M=pe({...e,values:S,defaultClassName:"react-aria-ComboBox"}),R=te(e);delete R.id;var H;return u.createElement(Ie,{values:[[ol,f],[St,{...k,ref:$}],[kt,{...D,ref:p,isPressed:f.isOpen}],[dt,{...w,ref:m}],[Jn,f],[ao,{ref:v,triggerRef:m,scrollRef:b,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":V},clearContexts:J1}],[Yn,{...B,ref:b}],[Ze,f],[et,{slots:{description:P,errorMessage:L}}],[Zn,{isInvalid:I.isInvalid,isDisabled:e.isDisabled||!1}],[Wn,I]]},u.createElement("div",{...R,...M,ref:n,slot:e.slot||void 0,"data-focused":f.isFocused||void 0,"data-open":f.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":I.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:(H=f.selectedKey)!==null&&H!==void 0?H:""}))}const Q1=u.createContext(null),e5=u.createContext(null),so=u.createContext(null),co=u.createContext(null),t5=u.forwardRef(function(t,n){[t,n]=fe(t,n,e5);let{validationBehavior:r}=wt(qn)||{};var o,i;let l=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:r)!==null&&i!==void 0?i:"native",{locale:a}=Pe(),s=h1({...t,locale:a,validationBehavior:l}),d=u.useRef(null),[c,f]=Gt(!t["aria-label"]&&!t["aria-labelledby"]),p=u.useRef(null),{labelProps:m,fieldProps:b,inputProps:v,descriptionProps:$,errorMessageProps:g,...D}=Gg({...mn(t),label:f,inputRef:p,validationBehavior:l},s,d),w=pe({...t,values:{state:s,isInvalid:s.isInvalid,isDisabled:s.isDisabled},defaultClassName:"react-aria-TimeField"}),B=te(t);return delete B.id,u.createElement(Ie,{values:[[co,s],[Zn,{...b,ref:d,isInvalid:s.isInvalid,isDisabled:s.isDisabled}],[dt,{...v,ref:p}],[St,{...m,ref:c,elementType:"span"}],[et,{slots:{description:$,errorMessage:g}}],[Wn,D]]},u.createElement("div",{...B,...w,ref:n,slot:t.slot||void 0,"data-invalid":s.isInvalid||void 0,"data-disabled":s.isDisabled||void 0}))}),n5=u.forwardRef(function(t,n){let r=u.useContext(so),o=u.useContext(co);return r||o?u.createElement(Y4,{...t,ref:n}):u.createElement(r5,{...t,ref:n})}),r5=u.forwardRef((e,t)=>{let[n,r]=fe({slot:e.slot},t,Q1),{locale:o}=Pe(),i=bb({...n,locale:o,createCalendar:m$}),l=u.useRef(null),{fieldProps:a,inputProps:s}=n0({...n,inputRef:l},i,r);return u.createElement(Ie,{values:[[so,i],[dt,{...s,ref:l}],[Zn,{...a,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},u.createElement(Y4,e))}),Y4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(so),i=u.useContext(co),l=o??i;return u.createElement(u.Fragment,null,u.createElement(w1,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((a,s)=>u.cloneElement(r(a),{key:s}))),u.createElement(io,null))}),o5=u.forwardRef(function({segment:t,...n},r){let o=u.useContext(so),i=u.useContext(co),l=o??i,a=me(r),{segmentProps:s}=Jg(t,l,a),{focusProps:d,isFocused:c,isFocusVisible:f}=Se(),{hoverProps:p,isHovered:m}=je({...n,isDisabled:l.isDisabled||t.type==="literal"}),{isEditable:b,...v}=t,$=pe({...n,values:{...v,isReadOnly:!b,isInvalid:l.isInvalid,isDisabled:l.isDisabled,isHovered:m,isFocused:c,isFocusVisible:f},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("span",{...z(te(n),s,d,p),...$,style:s.style,ref:a,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":l.isInvalid||void 0,"data-readonly":!b||void 0,"data-disabled":l.isDisabled||void 0,"data-type":t.type,"data-hovered":m||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0})}),i5=u.createContext(null),l5=u.createContext(null),J4=u.createContext(null),a5=u.forwardRef(function(t,n){[t,n]=fe(t,n,i5);let{validationBehavior:r}=wt(qn)||{};var o,i;let l=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:r)!==null&&i!==void 0?i:"native",a=C1({...t,validationBehavior:l}),[s,d]=Gt(!t["aria-label"]&&!t["aria-labelledby"]),{radioGroupProps:c,labelProps:f,descriptionProps:p,errorMessageProps:m,...b}=by({...t,label:d,validationBehavior:l},a),v=pe({...t,values:{orientation:t.orientation||"vertical",isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:a.isRequired,isInvalid:a.isInvalid,state:a},defaultClassName:"react-aria-RadioGroup"});return u.createElement("div",{...c,...v,ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"vertical","data-invalid":a.isInvalid||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":a.isRequired||void 0},u.createElement(Ie,{values:[[J4,a],[St,{...f,ref:s,elementType:"span"}],[et,{slots:{description:p,errorMessage:m}}],[Wn,b]]},v.children))}),u5=u.forwardRef(function(t,n){let{inputRef:r=null,...o}=t;[t,n]=fe(o,n,l5);let i=u.useContext(J4),l=me(u.useMemo(()=>Vn(r,t.inputRef!==void 0?t.inputRef:null),[r,t.inputRef])),{labelProps:a,inputProps:s,isSelected:d,isDisabled:c,isPressed:f}=my({...mn(t),children:typeof t.children=="function"?!0:t.children},i,l),{isFocused:p,isFocusVisible:m,focusProps:b}=Se(),v=c||i.isReadOnly,{hoverProps:$,isHovered:g}=je({...t,isDisabled:v}),D=pe({...t,defaultClassName:"react-aria-Radio",values:{isSelected:d,isPressed:f,isHovered:g,isFocused:p,isFocusVisible:m,isDisabled:c,isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isRequired:i.isRequired}}),w=te(t);return delete w.id,u.createElement("label",{...z(w,a,$,D),ref:n,"data-selected":d||void 0,"data-pressed":f||void 0,"data-hovered":g||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":c||void 0,"data-readonly":i.isReadOnly||void 0,"data-invalid":i.isInvalid||void 0,"data-required":i.isRequired||void 0},u.createElement(Gi,{elementType:"span"},u.createElement("input",{...z(s,b),ref:l})),D.children)});function s5(e){return e&&e.__esModule?e.default:e}const il=u.createContext(null),ll=u.createContext(null),d5=u.forwardRef(function(t,n){[t,n]=fe(t,n,il);let{children:r,isDisabled:o=!1,isInvalid:i=!1,isRequired:l=!1}=t,a=u.useMemo(()=>typeof r=="function"?r({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:l,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,o,i,l]);return u.createElement(no,{content:a},s=>u.createElement(f5,{props:t,collection:s,selectRef:n}))}),c5=[St,kt,et];function f5({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=wt(qn)||{};var o,i;let l=(i=(o=e.validationBehavior)!==null&&o!==void 0?o:r)!==null&&i!==void 0?i:"native",a=D1({...e,collection:n,children:void 0,validationBehavior:l}),{isFocusVisible:s,focusProps:d}=Se({within:!0}),c=u.useRef(null),[f,p]=Gt(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:m,triggerProps:b,valueProps:v,menuProps:$,descriptionProps:g,errorMessageProps:D,...w}=hy({...mn(e),label:p,validationBehavior:l},a,c),[B,k]=u.useState(null),P=u.useCallback(()=>{c.current&&k(c.current.offsetWidth+"px")},[c]);An({ref:c,onResize:P});let L=u.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:s,isDisabled:e.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,s,e.isDisabled,w.isInvalid,e.isRequired]),I=pe({...e,values:L,defaultClassName:"react-aria-Select"}),V=te(e);delete V.id;let A=u.useRef(null);return u.createElement(Ie,{values:[[il,e],[ll,a],[X4,v],[St,{...m,ref:f,elementType:"span"}],[kt,{...b,ref:c,isPressed:a.isOpen,autoFocus:e.autoFocus}],[Jn,a],[ao,{trigger:"Select",triggerRef:c,scrollRef:A,placement:"bottom start",style:{"--trigger-width":B},"aria-labelledby":$["aria-labelledby"],clearContexts:c5}],[Yn,{...$,ref:A}],[Ze,a],[et,{slots:{description:g,errorMessage:D}}],[Wn,w]]},u.createElement("div",{...V,...I,...d,ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-required":e.isRequired||void 0}),u.createElement($y,{autoComplete:e.autoComplete,state:a,triggerRef:c,label:p,name:e.name,isDisabled:e.isDisabled}))}const X4=u.createContext(null),p5=u.forwardRef(function(t,n){var r,o;[t,n]=fe(t,n,X4);let i=u.useContext(ll),{placeholder:l}=wt(il),a=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,s=a==null?void 0:a.props.children;typeof s=="function"&&(s=s({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let d=qe(s5(L4),"react-aria-components");var c,f,p;let m=pe({...t,defaultChildren:(c=s??l)!==null&&c!==void 0?c:d.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(r=i.selectedItem)===null||r===void 0?void 0:r.value)!==null&&f!==void 0?f:null,selectedText:(p=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&p!==void 0?p:null,isPlaceholder:!a}}),b=te(t);return u.createElement("span",{ref:n,...b,...m,"data-placeholder":!a||void 0},u.createElement(et.Provider,{value:void 0},m.children))}),m5=u.createContext(null),Q4=u.createContext(null),b5=u.forwardRef(function(t,n){return[t,n]=fe(t,n,m5),u.createElement(no,{content:t.children},r=>u.createElement(h5,{props:t,forwardedRef:n,collection:r}))});function h5({props:e,forwardedRef:t,collection:n}){let r=u.useRef(null),[o,i]=Gt(!e["aria-label"]&&!e["aria-labelledby"]),l=rl({...e,children:void 0,collection:n}),a=te(e),s=Object.fromEntries(Object.entries(a).map(([b])=>[b,void 0])),{gridProps:d,labelProps:c,descriptionProps:f,errorMessageProps:p}=yy({...e,...s,label:i},l,r);var m;return u.createElement("div",{...a,ref:t,slot:e.slot||void 0,className:(m=e.className)!==null&&m!==void 0?m:"react-aria-TagGroup",style:e.style},u.createElement(Ie,{values:[[St,{...c,elementType:"span",ref:o}],[Q4,{...d,ref:r}],[Ze,l],[et,{slots:{description:f,errorMessage:p}}]]},e.children))}const v5=u.forwardRef(function(t,n){return u.useContext(Ze)?u.createElement($5,{props:t,forwardedRef:n}):u.createElement(oo,t)});function $5({props:e,forwardedRef:t}){let n=u.useContext(Ze),{CollectionRoot:r}=u.useContext(bn),[o,i]=fe(e,t,Q4);delete o.items,delete o.renderEmptyState;let{focusProps:l,isFocused:a,isFocusVisible:s}=Se(),d={isEmpty:n.collection.size===0,isFocused:a,isFocusVisible:s,state:n},c=pe({className:e.className,style:e.style,defaultClassName:"react-aria-TagList",values:d}),f=V1(n.selectionManager.focusedKey);return u.createElement("div",{...z(o,l),...c,ref:i,"data-empty":n.collection.size===0||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0},n.collection.size===0&&e.renderEmptyState?e.renderEmptyState(d):u.createElement(r,{collection:n.collection,persistedKeys:f}))}const g5=ro("item",(e,t,n)=>{let r=u.useContext(Ze),o=me(t),{focusProps:i,isFocusVisible:l}=Se({within:!1}),{rowProps:a,gridCellProps:s,removeButtonProps:d,...c}=Cy({item:n},r,o),{hoverProps:f,isHovered:p}=je({isDisabled:!c.allowsSelection,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),m=pe({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tag",values:{...c,isFocusVisible:l,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior}});return u.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[n.textValue]),u.createElement("div",{ref:o,...m,...z(te(e),a,i,f),"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":l||void 0,"data-pressed":c.isPressed||void 0,"data-allows-removing":c.allowsRemoving||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement("div",{...s,style:{display:"contents"}},u.createElement(Ie,{values:[[kt,{slots:{remove:d}}],[bn,t4]]},m.children)))}),y5=u.createContext({}),eh=u.createContext(null),x5=u.forwardRef(function(t,n){[t,n]=fe(t,n,y5);let r=Z$(t),{groupProps:o}=K$(t,r,n),i=pe({...t,values:{isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"});return u.createElement("div",{...o,...i,ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},u.createElement(eh.Provider,{value:r},i.children))}),C5=u.createContext({}),D5=u.forwardRef(function(t,n){[t,n]=fe(t,n,C5);let r=u.useContext(eh),o=Wi(r&&t.id!=null?{isSelected:r.selectedKeys.has(t.id),onChange(v){r.setSelected(t.id,v)}}:t),{buttonProps:i,isPressed:l,isSelected:a,isDisabled:s}=r&&t.id!=null?V$({...t,id:t.id},r,n):Ms({...t,id:t.id!=null?String(t.id):void 0},o,n),{focusProps:d,isFocused:c,isFocusVisible:f}=Se(t),{hoverProps:p,isHovered:m}=je(t),b=pe({...t,id:void 0,values:{isHovered:m,isPressed:l,isFocused:c,isSelected:o.isSelected,isFocusVisible:f,isDisabled:s,state:o},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...z(i,d,p),...b,ref:n,slot:t.slot||void 0,"data-focused":c||void 0,"data-disabled":s||void 0,"data-pressed":l||void 0,"data-selected":a||void 0,"data-hovered":m||void 0,"data-focus-visible":f||void 0})}),al=u.createContext(null),th=u.createContext(null);function E5(e){let t=hb(e),n=u.useRef(null),{triggerProps:r,tooltipProps:o}=Ey(e,t,n);return u.createElement(Ie,{values:[[al,t],[th,{...o,triggerRef:n}]]},u.createElement(c3,{...r,ref:n},e.children))}const P5=u.forwardRef(function({UNSTABLE_portalContainer:t,...n},r){[n,r]=fe(n,r,th);let o=u.useContext(al),i=hb(n),l=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,a=_u(r,l.isOpen)||n.isExiting||!1;return!l.isOpen&&!a?null:u.createElement(Cg,{portalContainer:t},u.createElement(w5,{...n,tooltipRef:r,isExiting:a}))});function w5(e){let t=u.useContext(al),n=u.useRef(null),[r,o]=u.useState(0);Z(()=>{n.current&&t.isOpen&&o(n.current.getBoundingClientRect().width)},[t.isOpen,n]);let{overlayProps:i,arrowProps:l,placement:a}=Uc({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:r,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,onClose:()=>t.close(!0)}),s=Hu(e.tooltipRef,!!a)||e.isEntering||!1,d=pe({...e,defaultClassName:"react-aria-Tooltip",values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=z(e,i);let{tooltipProps:c}=Dy(e,t);return u.createElement("div",{...c,ref:e.tooltipRef,...d,style:{...i.style,...d.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},u.createElement(W4.Provider,{value:{...l,placement:a,ref:n}},d.children))}const S5=e=>{const{placeholder:t,inputValue:n,allowsCustomValue:r,onSubmitCustomValue:o,onInputChange:i,ref:l}=e,[a,s]=fe({},l||null,dt),d=u.useContext(ol),c=u.useCallback(f=>{if(f.key==="Enter"&&n&&(n==null?void 0:n.trim())!==""&&i&&r&&o&&d)if(d.collection){const m=Array.from(d.collection).find(b=>b.textValue.toLowerCase()===n.toLowerCase());m?d.setSelectedKey(m.key):o(n)}else o(n)},[n,i,r,o,d]);return y.jsx(Cm,{asChild:!0,children:y.jsx(io,{ref:s,...a,onKeyDown:c,placeholder:t})})};function Ne(e){const t={},n={...e};return Object.keys(e).forEach(r=>{Object.prototype.hasOwnProperty.call(e,r)&&T.defaultSystem.isValidProperty(r)&&(t[r]=e[r],delete n[r])}),[t,n]}const ul=({children:e,ref:t,...n})=>{const[r,o]=Ne(n);return y.jsx(Iy,{...r,asChild:!0,children:y.jsx(z4,{ref:t,...o,children:e})})};ul.displayName="ComboBox.Options";const k5=({isDisabled:e,isReadOnly:t,isLoading:n})=>{const r=u.useContext(ol);return y.jsxs(Dm,{children:[(r==null?void 0:r.selectedKey)&&y.jsx(Qe,{pointerEvents:"all",slot:null,size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",isDisabled:e||t,_expanded:{bg:"transparent"},onPress:()=>r==null?void 0:r.setSelectedKey(null),my:"auto",children:y.jsx(ie.Close,{})}),n?y.jsx(T.Flex,{my:"auto",w:"600",h:"600",children:y.jsx(we,{color:"neutral.11",asChild:!0,m:"auto",w:"400",h:"400",children:y.jsx(we,{asChild:!0,animation:"spin",animationDuration:"slowest","data-testid":"nimbus-combobox-loading",children:y.jsx(ie.Loop,{})})})}):y.jsx(Qe,{size:"2xs",variant:"ghost","aria-label":"toggle combobox",tone:"neutral",my:"auto",isDisabled:e||t,_expanded:{bg:"transparent"},children:y.jsx(ie.KeyboardArrowDown,{})})]})},B5=({children:e,inputValue:t,onInputChange:n,placeholder:r,allowsCustomValue:o,onSubmitCustomValue:i,renderEmptyState:l,isLoading:a,ref:s,...d})=>{if(i&&(t===void 0||!n))throw new Error('ComboBox: When "onSubmitCustomValue" is provided, "inputValue" must be controlled with "onInputChange"');return y.jsxs(Y1,{inputValue:t,onInputChange:n,allowsCustomValue:o,menuTrigger:"focus",...d,ref:s,children:[y.jsx(S5,{placeholder:r,inputValue:t,allowsCustomValue:o,onSubmitCustomValue:i,onInputChange:n}),y.jsx(k5,{isLoading:a,isDisabled:d.isDisabled,isReadOnly:d.isReadOnly}),y.jsx(uo,{children:y.jsx(ul,{renderEmptyState:l,children:e})})]})};function fu(e){return e!=null&&typeof e=="object"&&"children"in e&&Array.isArray(e.children)}function Ho(e,t,n){if(e){if(!Object.prototype.hasOwnProperty.call(e,"id")&&t==="id")throw new Error("ComboBox: if items do not have an `id` key, you must specify which key uniquely identifies items using the `itemId` prop");if(!Object.prototype.hasOwnProperty.call(e,"name")&&n==="name")throw new Error("ComboBox: if items do not have a `name` key, you must specify which key can be used as a text value using the `itemValue` prop")}}const T5=({selectedKeys:e=new Set,items:t,itemId:n="id",itemValue:r="name",placeholder:o,onSelectionChange:i,isDisabled:l,isReadOnly:a,size:s,containerRef:d,ref:c})=>{const f=u.useMemo(()=>{if(!t)return[];const m=Array.from(e);if(Array.isArray(t)){const v=t[0];if(v&&fu(v)){const g=[];return t.forEach(D=>{fu(D)&&g.push(...D.children)}),Ho(g==null?void 0:g[0],n,r),m.map(D=>g.find(w=>w[n]===D)).filter(D=>D!==void 0)}const $=t;return Ho($==null?void 0:$[0],n,r),m.map(g=>$.find(D=>D[n]===g)).filter(g=>g!==void 0)}const b=m.map(v=>Array.from(t).find($=>$[n]===v)).filter(v=>v!==void 0);return Ho(b==null?void 0:b[0],n,r),b},[t,e,n]),p=u.useCallback(m=>{if(!(l||a)&&e instanceof Set){const b=e,v=new Set([...b].filter($=>!m.has($)));i==null||i(v),d!=null&&d.current&&d.current.focus()}},[l,a,e,i]);return y.jsx(Ti,{children:y.jsx(Cm,{asChild:!0,alignItems:"space-between",justifyContent:"center",ref:c,children:y.jsx(Er.Root,{size:s,onRemove:p,"aria-label":"Selected values",selectionMode:"none",disabledKeys:l||a?e:void 0,"data-disabled":l,children:y.jsx(Er.TagList,{items:f,dependencies:[n],maxW:"100%",tabIndex:f.length===0||l||a?-1:void 0,renderEmptyState:()=>o&&y.jsx("div",{"data-placeholder":"true",style:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:o}),children:m=>y.jsx(Er.Tag,{id:m[n],maxW:"100%",children:m[r]})})})})})},A5=({selectedKeys:e,onSelectionChange:t,onInputChange:n,containerRef:r,isDisabled:o,isReadOnly:i,isLoading:l})=>{const a=u.useCallback(()=>{t==null||t(new Set),n==null||n(""),r!=null&&r.current&&r.current.focus()},[]);return y.jsxs(Dm,{children:[y.jsx(Ti,{children:e instanceof Set&&e.size>0&&y.jsx(Qe,{pointerEvents:"all",slot:null,size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",isDisabled:o||i,onPress:a,my:"auto",children:y.jsx(ie.Close,{})})}),y.jsx(T.Flex,{my:"auto",w:"600",h:"600",color:"neutral.11",opacity:i||o?"0.5":void 0,cursor:i||o?"not-allowed":void 0,children:y.jsx(we,{pointerEvents:"none",asChild:!0,m:"auto",w:"400",h:"400",children:l?y.jsx(we,{asChild:!0,animation:"spin",animationDuration:"slowest","data-testid":"nimbus-combobox-loading",children:y.jsx(ie.Loop,{})}):y.jsx(ie.KeyboardArrowDown,{})})})]})};function F5(e){let t;for(t of e);return t}const R5=({children:e,defaultFilter:t,inputValue:n,defaultInputValue:r,onInputChange:o,defaultSelectedKeys:i=new Set,selectedKeys:l,onSelectionChange:a,onOpenChange:s,disabledKeys:d,items:c,defaultItems:f,itemId:p="id",itemValue:m="name",isLoading:b,isDisabled:v,isReadOnly:$,isRequired:g,isInvalid:D,className:w,placeholder:B,size:k="md",allowsCustomValue:P,onSubmitCustomValue:L,renderEmptyState:I,ref:V,...A})=>{const[h,S]=u.useState(!1),M=u.useRef(!1),[R,H]=u.useState(),x=l??R??i,C=a??H,[E,O]=u.useState(""),F=n??E??r,j=o??O,K=c??f,W=Oi({sensitivity:"base"}),q=(...N)=>W.contains.apply(void 0,N),Q=u.useCallback(N=>{if(v||$){h&&S(!1);return}s&&(s==null||s(N)),S(N),N||(M.current=!0,setTimeout(()=>{M.current=!1},100))},[v,$,s,h]);u.useEffect(()=>{(v||$)&&Q(!1)},[v,$]);const ye=u.useCallback(N=>{v||$||N.target===N.currentTarget&&!h&&!M.current&&Q(!0)},[h]),se=u.useCallback(()=>{if(x!=="all"&&x instanceof Set){const N=F5(x);if(N!=null){const G=new Set(x);G.delete(N),C(G)}}},[x,C]),_=u.useCallback(N=>{(N.key==="ArrowDown"||N.key==="ArrowUp"||N.key==="Enter")&&N.target===Y.current&&(N.preventDefault(),Q(!0))},[]),ee=u.useCallback(N=>{if(N.key==="Backspace"&&F===""){se();return}if(N.key==="Escape"){Q(!1),Y.current&&Y.current.focus();return}if(N.key==="Enter"&&F.trim()!==""&&P&&L)if(N.stopPropagation(),K){const G=F.trim(),oe=Array.from(K).find(De=>(typeof De=="object"&&De!==null&&m in De?String(De[m]):JSON.stringify(De)).toLowerCase()===G.toLowerCase());if(oe){const De=typeof oe=="object"&&oe!==null&&p in oe?oe[p]:oe,He=new Set(x);He.add(De),C(He),j("")}else L(F),j("")}else L(F),j("")},[F,se,P,L,K,m,p,x,C,j]),Y=u.useRef(null),U=T.mergeRefs(V,Y);return y.jsxs(q4,{isOpen:h,onOpenChange:Q,children:[y.jsx(f3,{allowTextSelectionOnPress:!0,children:y.jsxs("div",{className:w,tabIndex:v?-1:0,ref:U,role:"combobox",onKeyDown:_,onFocus:ye,"aria-expanded":h,"aria-haspopup":"dialog","aria-disabled":v,"aria-readonly":$,"aria-required":g,"aria-invalid":D,"data-disabled":v,"data-invalid":D,"data-required":g,"data-open":h,...A,children:[y.jsx(T5,{items:K,selectedKeys:x,onSelectionChange:C,itemId:p,itemValue:m,placeholder:B,size:k,containerRef:Y,isDisabled:v,isReadOnly:$}),y.jsx(A5,{selectedKeys:x,onSelectionChange:C,onInputChange:j,containerRef:Y,isDisabled:v,isReadOnly:$,isLoading:b})]})}),y.jsx(Fy,{asChild:!0,children:y.jsx(uo,{triggerRef:Y,placement:"bottom start",children:y.jsx(Z4,{"aria-label":"combobox dialog",children:y.jsxs(L1,{filter:t??q,inputValue:F,onInputChange:j,children:[y.jsx(Ry,{asChild:!0,children:y.jsx(T1,{autoFocus:!0,isDisabled:v,isReadOnly:$,isRequired:g,"aria-label":"filter combobox options",children:y.jsx(io,{onKeyDownCapture:ee,placeholder:B})})}),y.jsx(ul,{items:K,selectionMode:"multiple",onSelectionChange:C,selectedKeys:x,shouldFocusWrap:!0,disabledKeys:v?"all":d,escapeKeyBehavior:"none","aria-label":"combobox options",renderEmptyState:I,children:e})]})})})})]})},sl=({children:e,ref:t,...n})=>{const r=T.useSlotRecipe({recipe:xm}),[o,i]=r.splitVariantProps(n),[l,a]=Ne(i),s="selectionMode"in n&&n.selectionMode==="multiple"?R5:B5;return y.jsx(Ay,{asChild:!0,selectionMode:n.selectionMode,...o,...l,children:y.jsx(s,{ref:t,size:o.size,...a,children:e})})};sl.displayName="ComboBox.Root";const dl=({children:e,label:t,items:n,ref:r,...o})=>{if(n&&typeof e!="function")throw new Error('ComboBoxOptionGroup: When "items" is provided, "children" must be a function');return y.jsxs(_4,{ref:r,...o,children:[y.jsx(My,{asChild:!0,children:y.jsx(O4,{children:t})}),n?y.jsx(oo,{items:n,children:i=>typeof e=="function"?e(i):null}):e]})};dl.displayName="ComboBox.OptionGroup";const cl=({children:e,ref:t,...n})=>{const[r,o]=Ne(n),i=typeof e=="string"?e:void 0;return y.jsx(Ly,{...r,asChild:!0,children:y.jsx(U4,{ref:t,textValue:n.textValue??i,"aria-label":n.textValue??i,...o,children:l=>{const a=typeof e=="function"?e({...l}):e;return l.selectionMode==="multiple"?y.jsxs(y.Fragment,{children:[y.jsx(Ny,{children:y.jsx("span",{"data-selected":l.isSelected,children:l.isSelected&&y.jsx(ie.Check,{})})}),y.jsx(Ky,{children:a})]}):y.jsx(y.Fragment,{children:a})}})})};cl.displayName="ComboBox.Option";const I5={Root:sl,OptionGroup:dl,Option:cl},M5=function(t){const{children:n,portalled:r=!0,portalRef:o,backdrop:i=!0,ref:l,...a}=t;return y.jsxs(T.Portal,{disabled:!r,container:o,children:[i&&y.jsx(T.Dialog.Backdrop,{}),y.jsx(T.Dialog.Positioner,{children:y.jsx(T.Dialog.Content,{ref:l,...a,asChild:!1,children:n})})]})},L5={Root:T.Dialog.Root,Trigger:T.Dialog.Trigger,Content:M5,Backdrop:T.Dialog.Backdrop,Positioner:T.Dialog.Positioner,Title:T.Dialog.Title,Description:T.Dialog.Description,Body:T.Dialog.Body,Footer:T.Dialog.Footer,Header:T.Dialog.Header,CloseTrigger:T.Dialog.CloseTrigger,ActionTrigger:T.Dialog.ActionTrigger},Qe=e=>{const{children:t,ref:n,...r}=e,o=u.useRef(null),i=me(T.mergeRefs(o,n)),[l]=fe(r,i,kt);return y.jsx(Ji,{px:0,py:0,...l,ref:i,children:t})};Qe.displayName="IconButton";const nh=e=>y.jsx(T.Image,{...e});nh.displayName="Image";const rh=T.defineRecipe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:N5}=T.createRecipeContext({recipe:rh}),K5=N5("a"),oh=e=>{const{as:t,asChild:n,children:r,ref:o,...i}=e,l=u.useRef(null),a=me(T.mergeRefs(l,o)),s=t||(n?"span":"a")||"a",{linkProps:d}=$3({...i,elementType:s},a);return y.jsx(K5,{...z(i,d,{as:t,asChild:n,ref:a}),children:r})};oh.displayName="Link";const ih=T.List.Root,lh=T.List.Item,ah=T.List.Indicator,V5={Root:ih,Item:lh,Indicator:ah},uh=e=>{const{ref:t,...n}=e;return y.jsx(T.SimpleGrid,{ref:t,...n})};uh.displayName="SimpleGrid";const O5=Object.assign(uh,{Item:T.GridItem}),sh=e=>{const{ref:t,...n}=e;return y.jsx(T.Text,{ref:t,...n})};sh.displayName="Text";function fl(e){return y.jsx(E5,{...e})}fl.displayName="Tooltip.Root";const dh=T.defineRecipe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:z5}=T.createRecipeContext({recipe:dh}),j5=z5("div");function pl({children:e,placement:t="bottom",ref:n,...r}){return y.jsx(j5,{ref:n,asChild:!0,...r,children:y.jsx(P5,{placement:t,...r,children:e})})}pl.displayName="Tooltip.Content";const yi={Root:fl,Content:pl},ch=u.forwardRef(function(t,n){const r=u.useRef(null),o=me(T.mergeRefs(r,n)),{focusableProps:i}=ft(t,o);if(u.isValidElement(t.children))return u.cloneElement(t.children,z(i,t.children.props,{ref:o}))});ch.displayName="MakeElementFocusable";var H5=(e,t,n,r,o,i,l,a)=>{let s=document.documentElement,d=["light","dark"];function c(m){(Array.isArray(e)?e:[e]).forEach(b=>{let v=b==="class",$=v&&i?o.map(g=>i[g]||g):o;v?(s.classList.remove(...$),s.classList.add(i&&i[m]?i[m]:m)):s.setAttribute(b,m)}),f(m)}function f(m){a&&d.includes(m)&&(s.style.colorScheme=m)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)c(r);else try{let m=localStorage.getItem(t)||n,b=l&&m==="system"?p():m;c(b)}catch{}},pu=["light","dark"],fh="(prefers-color-scheme: dark)",_5=typeof window>"u",ml=xe.createContext(void 0),U5={setTheme:e=>{},themes:[]},W5=()=>{var e;return(e=xe.useContext(ml))!=null?e:U5},G5=e=>xe.useContext(ml)?xe.createElement(xe.Fragment,null,e.children):xe.createElement(Z5,{...e}),q5=["light","dark"],Z5=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=q5,defaultTheme:l=n?"system":"light",attribute:a="data-theme",value:s,children:d,nonce:c,scriptProps:f})=>{let[p,m]=xe.useState(()=>J5(o,l)),[b,v]=xe.useState(()=>p==="system"?_o():p),$=s?Object.values(s):i,g=xe.useCallback(k=>{let P=k;if(!P)return;k==="system"&&n&&(P=_o());let L=s?s[P]:P,I=t?X5(c):null,V=document.documentElement,A=h=>{h==="class"?(V.classList.remove(...$),L&&V.classList.add(L)):h.startsWith("data-")&&(L?V.setAttribute(h,L):V.removeAttribute(h))};if(Array.isArray(a)?a.forEach(A):A(a),r){let h=pu.includes(l)?l:null,S=pu.includes(P)?P:h;V.style.colorScheme=S}I==null||I()},[c]),D=xe.useCallback(k=>{let P=typeof k=="function"?k(p):k;m(P);try{localStorage.setItem(o,P)}catch{}},[p]),w=xe.useCallback(k=>{let P=_o(k);v(P),p==="system"&&n&&!e&&g("system")},[p,e]);xe.useEffect(()=>{let k=window.matchMedia(fh);return k.addListener(w),w(k),()=>k.removeListener(w)},[w]),xe.useEffect(()=>{let k=P=>{P.key===o&&(P.newValue?m(P.newValue):D(l))};return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[D]),xe.useEffect(()=>{g(e??p)},[e,p]);let B=xe.useMemo(()=>({theme:p,setTheme:D,forcedTheme:e,resolvedTheme:p==="system"?b:p,themes:n?[...i,"system"]:i,systemTheme:n?b:void 0}),[p,D,e,b,n,i]);return xe.createElement(ml.Provider,{value:B},xe.createElement(Y5,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:l,value:s,themes:i,nonce:c,scriptProps:f}),d)},Y5=xe.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,themes:a,nonce:s,scriptProps:d})=>{let c=JSON.stringify([n,t,i,e,a,l,r,o]).slice(1,-1);return xe.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${H5.toString()})(${c})`}})}),J5=(e,t)=>{if(_5)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},X5=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},_o=e=>(e||(e=window.matchMedia(fh)),e.matches?"dark":"light");function Q5(e){return y.jsx(G5,{attribute:"class",disableTransitionOnChange:!0,...e})}function ph(){const{resolvedTheme:e,setTheme:t}=W5();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function ex(e,t){const{colorMode:n}=ph();return n==="light"?e:t}const tx=T.defineAnimationStyles({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}});function nx(e){var n;const t={};for(const r in e)(n=e[r])!=null&&n.value?t[r]=e[r].value:t[r]=e[r];return t}const rx=nx(ce.themeTokens.breakpoints),ox=T.defineGlobalStyles({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000","--focus-ring-color":"colors.primary.7","--focus-ring-width":"sizes.50","--focus-ring-offset":"spacing.50","--focus-ring-style":"solid","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"initial",verticalAlign:"initial"}}),ix={spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},lx=T.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),ax=T.defineRecipe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),ux=T.defineRecipe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),sx=T.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),bl=T.defineRecipe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"primary.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),hl=T.defineSlotRecipe({slots:["root","option"],className:"nimbus-radio-input",base:{root:{colorPalette:"primary",display:"inline-flex",flexDirection:"row",alignItems:"center",verticalAlign:"top"},option:{gap:"200",flexShrink:0,whiteSpace:"nowrap",userSelect:"none",position:"relative",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{width:"500",height:"500",color:"neutral.9","&:hover":{color:"neutral.10"}},"&[data-selected] > svg":{color:"colorPalette.9"},"&[data-disabled='true']":{layerStyle:"disabled"},"&[data-invalid='true']":{color:"critical.9","& > svg":{color:"critical.9"}},"&[data-focus] > svg":{outline:"2px solid var(--focus-ring-color, ##AFBBFF)",outlineOffset:"1px",borderRadius:"50%"}}},variants:{orientation:{horizontal:{root:{flexDirection:"row",gap:"600"}},vertical:{root:{flexDirection:"column",alignItems:"flex-start",gap:"400"}}}},defaultVariants:{orientation:"vertical"}}),dx={avatar:Tu,button:Mt,code:ax,heading:ux,kbd:sx,link:rh,tooltip:dh,textInput:bl,radioInput:hl},cx=T.defineSemanticTokens.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...ce.themeTokens.color["system-palettes"],...ce.themeTokens.color["brand-palettes"],...ce.themeTokens.color["semantic-palettes"]}),fx=T.defineSemanticTokens.shadows(ce.themeTokens.shadow),px=T.defineSemanticTokens.radii({}),mx={colors:cx,shadows:fx,radii:px},bx=T.defineSlotRecipe({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"200",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),hx=T.defineSlotRecipe({className:"nimbus-list",slots:["root","item","indicator"],base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),vx=T.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),$x=T.defineSlotRecipe({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),gx=T.defineSlotRecipe({slots:["root","tagList","tag"],className:"nimbus-tag-group",base:{root:{display:"flex",flexDirection:"column",gapY:"50"},tagList:{display:"flex",flexWrap:"wrap",gap:"100"},tag:{colorPalette:"primary",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",gap:"100",borderRadius:"200",background:"colorPalette.3",fontSize:"400",lineHeight:"500",focusVisibleRing:"outside","&[data-disabled] &":{layerStyle:"disabled",pointerEvents:"none"},"&[data-selected]":{background:"colorPalette.9",color:"colorPalette.contrast",cursor:"button"},"&[aria-selected]":{cursor:"button"},"& [role='gridcell']":{display:"inline-flex !important",alignItems:"center",justifyContent:"space-between",gapX:"100",whiteSpace:"initial"}}},variants:{size:{sm:{tag:{minH:"600",paddingX:"200",fontSize:"350",lineHeight:"400"}},md:{tag:{minH:"800",paddingX:"200",paddingY:"100"}},lg:{tag:{minH:"1000",padding:"200"}}}},defaultVariants:{size:"lg"}}),mh=T.defineSlotRecipe({slots:["root","label","track","thumb"],className:"nimbus-switch",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",cursor:"pointer",borderRadius:"full","&[data-disabled='true']":{layerStyle:"disabled",pointerEvents:"none"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11",fontSize:"var(--label-font-size)"},track:{colorPalette:"neutral",focusRing:"outside",position:"relative",display:"flex",alignItems:"center",flexShrink:0,width:"var(--track-width)",height:"var(--track-height)",borderRadius:"calc(var(--track-height) / 2)",backgroundColor:"colorPalette.5",transition:"background-color 0.2s","&[data-selected='true']":{colorPalette:"primary",backgroundColor:"colorPalette.9"},"&:hover":{backgroundColor:"colorPalette.7","&[data-selected='true']":{backgroundColor:"colorPalette.10"}}},thumb:{position:"absolute",borderRadius:"full",border:"solid-50",borderColor:"primary.9",backgroundColor:"neutral.1",transition:"all 0.2s",boxSize:"var(--thumb-size)","&[data-selected='false']":{left:"0"},"&[data-selected='true']":{left:"calc(100% - var(--thumb-size))"}}},variants:{size:{sm:{track:{"--track-height":"sizes.400","--track-width":"sizes.700"},thumb:{"--thumb-size":"sizes.400"},label:{"--label-font-size":"fontSizes.350"}},md:{track:{"--track-height":"sizes.600","--track-width":"sizes.1100"},thumb:{"--thumb-size":"sizes.600"},label:{"--label-font-size":"fontSizes.400"}}}},defaultVariants:{size:"md"}}),bh=T.defineSlotRecipe({className:"nimbus-number-input",slots:["root","input","incrementButton","decrementButton"],base:{root:{display:"inline-block",position:"relative","&:has(button:hover) input":{backgroundColor:"primary.2"}},input:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",appearance:"textfield",width:"full",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},incrementButton:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",w:600,h:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"button",bg:"transparent",_hover:{bg:"primary.2"},_active:{bg:"neutral.4"},_disabled:{opacity:.5,cursor:"not-allowed"},"& svg":{fill:"primary.9"},borderTopRightRadius:"200","&[data-invalid='true']":{"--border-color":"colors.critical.7"}},decrementButton:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",w:600,h:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"button",bg:"transparent",_hover:{bg:"primary.2"},_active:{bg:"neutral.4"},_disabled:{opacity:.5,cursor:"not-allowed"},"& svg":{fill:"primary.9"},borderBottomRightRadius:"200","&[data-invalid='true']":{"--border-color":"colors.critical.7"}}},variants:{size:{sm:{input:{h:800,textStyle:"sm",px:300,paddingRight:800}},md:{input:{h:1e3,textStyle:"md",px:400,paddingRight:800}}},variant:{solid:{root:{"&:has(button:hover) input":{backgroundColor:"primary.2"}},input:{boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},incrementButton:{borderTop:"var(--border-width) solid var(--border-color)",borderRight:"var(--border-width) solid var(--border-color)",borderLeft:"var(--border-width) solid var(--border-color)",boxShadow:"inset 0 -0.5px 0 0 var(--border-color)",_hover:{backgroundColor:"primaryAlpha.3"}},decrementButton:{borderBottom:"var(--border-width) solid var(--border-color)",borderRight:"var(--border-width) solid var(--border-color)",borderLeft:"var(--border-width) solid var(--border-color)",boxShadow:"inset 0 0.5px 0 0 var(--border-color)",_hover:{backgroundColor:"primaryAlpha.3"}}},ghost:{root:{"&:has(button:hover) input":{backgroundColor:"primary.2"}},input:{_hover:{backgroundColor:"primary.2"}},incrementButton:{_hover:{backgroundColor:"primaryAlpha.3"}},decrementButton:{_hover:{backgroundColor:"primaryAlpha.3"}}}}},defaultVariants:{size:"md",variant:"solid"}}),yx={dialog:bx,list:hx,table:vx,checkbox:xr,select:vt,accordion:$x,taggroup:gx,switch:mh,"number-input":bh,radioInput:hl,combobox:xm},xx=T.defineTextStyles(ce.themeTokens.textStyle),Cx=T.defineTokens.durations(ce.themeTokens.aspectRatio),Dx=T.defineTokens.animations(ce.themeTokens.animation),Ex=T.defineTokens.blurs(ce.themeTokens.blur),Px=T.defineTokens.borders(ce.themeTokens.border),wx=T.defineTokens.colors({...ce.themeTokens.color["blacks-and-whites"]}),Sx=T.defineTokens.durations(ce.themeTokens.duration),kx=T.defineTokens.easings(ce.themeTokens.easing),Bx=T.defineTokens.fonts(ce.themeTokens.fontFamily),Tx=T.defineTokens.fontSizes(ce.themeTokens.fontSize),Ax=T.defineTokens.fontWeights(ce.themeTokens.fontWeight),Fx=e=>Object.keys(e).reduce((t,n)=>{const o=parseFloat(e[n].value)/100;return t[n]={value:`${o}em`},t},{}),Rx=T.defineTokens.letterSpacings(Fx(ce.themeTokens.letterSpacing)),Ix=T.defineTokens.lineHeights(ce.themeTokens.lineHeight),Mx=T.defineTokens.radii(ce.themeTokens.borderRadius),Lx=T.defineTokens.spacing(ce.themeTokens.spacing),Nx=T.defineTokens.sizes({...ce.themeTokens.size,"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"},max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),Kx=T.defineTokens.zIndex(ce.themeTokens.zIndex),Vx=T.defineTokens.cursor(ce.themeTokens.cursor),Ox={aspectRatios:Cx,animations:Dx,blurs:Ex,borders:Px,colors:wx,durations:Sx,easings:kx,fonts:Bx,fontSizes:Tx,fontWeights:Ax,letterSpacings:Rx,lineHeights:Ix,radii:Mx,spacing:Lx,sizes:Nx,zIndex:Kx,cursor:Vx},zx=T.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:ox,theme:{breakpoints:rx,keyframes:ix,tokens:Ox,semanticTokens:mx,recipes:dx,slotRecipes:yx,textStyles:xx,layerStyles:lx,animationStyles:tx}}),hh=T.createSystem(T.defaultBaseConfig,zx);function jx(){const[e,t]=u.useState(n());function n(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return u.useEffect(()=>{const r=document.documentElement,o=new MutationObserver(()=>{const i=n();t(i)});return o.observe(r,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),e}function Hx({children:e,...t}){return y.jsx(T.ChakraProvider,{value:hh,children:y.jsx(Q5,{enableSystem:!1,...t,children:y.jsx(y.Fragment,{children:e})})})}const{withProvider:_x,withContext:vh}=T.createSlotRecipeContext({key:"checkbox"}),Ux=_x("label","root"),Wx=vh("span","label"),Gx=vh("span","indicator"),$h=e=>{const{ref:t}=e,n=u.useRef(null),r=me(T.mergeRefs(n,t)),o=T.useSlotRecipe({key:"checkbox"}),[i]=o.splitVariantProps(e),[l]=Ne(e),a=Wi(e),{inputProps:s}=q$(e,a,r),{isFocused:d,focusProps:c}=Se(),f=a.isSelected&&!e.isIndeterminate,p=e.isIndeterminate,m={"data-selected":f,"data-indeterminate":p,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":d||void 0};return y.jsxs(Ux,{"data-slot":"root",...i,...m,...l,children:[y.jsxs(Gx,{"data-slot":"indicator",...m,children:[f&&y.jsx(ie.Check,{}),p&&y.jsx(ie.Remove,{}),y.jsx(po,{as:"span",children:y.jsx("input",{...z(s,c),ref:r})})]}),e.children&&y.jsx(Wx,{"data-slot":"label",...m,children:e.children})]})};$h.displayName="Checkbox";const fo=e=>{const{ref:t,...n}=e;return y.jsx(T.Stack,{ref:t,...n})};fo.displayName="Stack";const po=e=>{const{as:t="div",...n}=e;return y.jsx(Gi,{elementType:t,...n})};po.displayName="VisuallyHidden";const{withContext:qx}=T.createRecipeContext({recipe:bl}),Zx=qx("input"),vl=e=>{const{ref:t,...n}=e,r=T.useRecipe({recipe:bl}),o=u.useRef(null),i=me(T.mergeRefs(o,t)),[l,a]=r.splitVariantProps(n),[s,d]=Ne(a),{inputProps:c}=_n(d,i);return y.jsx(Zx,{...l,...s,asChild:!0,children:y.jsx(io,{ref:i,...c})})};vl.displayName="TextInput";const{withContext:$l,withProvider:Yx}=T.createSlotRecipeContext({key:"number-input"}),Jx=Yx("div","root"),Xx=$l("input","input"),Qx=$l(tl,"incrementButton"),e2=$l(tl,"decrementButton"),gh=e=>{const{size:t,ref:n,...r}=e,{locale:o}=Pe(),i=u.useRef(null),l=me(T.mergeRefs(i,n)),a=T.useSlotRecipe({recipe:bh}),[s,d]=a.splitVariantProps(r),[c,f]=Ne(d),p=Y$({locale:o,...f}),{inputProps:m,incrementButtonProps:b,decrementButtonProps:v}=eg(f,p,l),$={"data-invalid":e.isInvalid,"data-disabled":e.isDisabled};return y.jsxs(Jx,{...s,...c,size:t,children:[y.jsx(Xx,{ref:l,...m,...$,size:t}),y.jsxs(we,{position:"absolute",top:"0",right:"0",display:"flex",flexDirection:"column",height:"full",children:[y.jsx(Qx,{"aria-label":"Increment",...b,...$,children:y.jsx(ie.KeyboardArrowUp,{})}),y.jsx(e2,{"aria-label":"Decrement",...v,...$,children:y.jsx(ie.KeyboardArrowDown,{})})]})]})};gh.displayName="NumberInput";const yh=e=>{const{ref:t,...n}=e;return y.jsx(T.Grid,{ref:t,...n})};yh.displayName="Grid";const t2=Object.assign(yh,{Item:T.GridItem}),{withProvider:n2,withContext:Xn}=T.createSlotRecipeContext({key:"select"}),r2=n2("div","root"),o2=Xn("button","trigger"),i2=Xn("span","triggerLabel"),l2=Xn("div","options"),a2=Xn("div","option"),u2=Xn("div","optionGroup"),xh=()=>{const e=u.useContext(ll);if(!(e!=null&&e.selectedKey))return null;const t=()=>{e==null||e.setSelectedKey(null)};return y.jsx(Qe,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:y.jsx(ie.Close,{})})};xh.displayName="Select.ClearButton";const gl=u.forwardRef(({children:e,isLoading:t,isDisabled:n,...r},o)=>{const i=T.useSlotRecipe({recipe:vt}),[l,a]=i.splitVariantProps(r),[s,d]=Ne(a),c={...d,isDisabled:t||n};return y.jsx(r2,{asChild:!0,ref:o,...l,...s,children:y.jsxs(d5,{...c,children:[y.jsxs(T.chakra.div,{position:"relative",children:[y.jsx(o2,{zIndex:0,asChild:!0,children:y.jsx(tl,{children:y.jsx(i2,{asChild:!0,children:y.jsx(p5,{})})})}),y.jsxs(T.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[y.jsx(T.Flex,{width:"600",my:"auto",children:y.jsx(xh,{})}),y.jsx(T.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:y.jsx(we,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?y.jsx(we,{asChild:!0,animation:"spin",animationDuration:"slowest",children:y.jsx(ie.Loop,{})}):y.jsx(ie.KeyboardArrowDown,{})})})]})]}),y.jsx(uo,{children:e})]})})});gl.displayName="Select.Root";const yl=e=>{const{ref:t,...n}=e,[r,o]=Ne(n);return y.jsx(l2,{asChild:!0,...r,children:y.jsx(z4,{ref:t,...o})})};yl.displayName="Select.Options";const xl=e=>{const{ref:t,...n}=e;return y.jsx(a2,{asChild:!0,ref:t,children:y.jsx(U4,{...n})})};xl.displayName="Select.Option";const Cl=e=>{const{ref:t,label:n,items:r,children:o,...i}=e;if(r&&typeof o!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return y.jsxs(_4,{ref:t,...i,children:[y.jsx(u2,{asChild:!0,children:y.jsx(O4,{children:n})}),r?y.jsx(oo,{items:r,children:l=>typeof o=="function"?o(l):null}):o]})};Cl.displayName="Select.OptionGroup";const s2={Root:gl,Options:yl,Option:xl,OptionGroup:Cl},{withProvider:d2,withContext:Qn}=T.createSlotRecipeContext({key:"accordion"}),c2=d2("div","root"),f2=Qn("div","disclosure"),p2=Qn("button","trigger"),m2=Qn("div","panel"),b2=Qn("div","accordionTitle"),jr=Qn("div","headerContentRight"),Dl=u.createContext(null),Ch=u.createContext(null),Dh=u.forwardRef(({children:e,onExpandedChange:t,...n},r)=>{const o=$1({...n,onExpandedChange:a=>{t==null||t(a.size>0)}}),i=T.useSlotRecipe({key:"accordion"}),[l]=i.splitVariantProps(n);return y.jsx(Ch.Provider,{value:o,children:y.jsx(c2,{"data-slot":"root",ref:r,...l,children:e})})}),Eh=u.forwardRef(({children:e},t)=>{const n=u.useContext(Dl);if(!n)throw new Error("Accordion.Header must be used within Accordion.Item");const r=u.Children.toArray(e).reduce((o,i)=>(u.isValidElement(i)&&i.type===jr?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return y.jsxs(T.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[y.jsxs(p2,{ref:T.mergeRefs(n.triggerRef,t),...n.buttonProps,"data-slot":"trigger",outline:n.isFocusVisible?void 0:"none",children:[y.jsx(ie.KeyboardArrowRight,{}),y.jsx(b2,{"data-slot":"accordionTitle",children:r.main})]}),r.rightContent.length>0&&y.jsx(jr,{"data-slot":"headerContentRight",children:r.rightContent})]})}),Ph=u.forwardRef((e,t)=>{const n=u.useContext(Dl),r=me(T.mergeRefs(n==null?void 0:n.panelRef,t));return y.jsx(m2,{ref:r,...T.mergeProps({...n==null?void 0:n.panelProps,...e}),"data-slot":"panel",children:e.children})}),wh=u.forwardRef(({children:e,id:t,isDisabled:n,isExpanded:r,onExpandedChange:o,value:i},l)=>{const a=ue(),d=i||(t||a),c=u.useContext(Ch),f=c?c.expandedKeys.has(d):r,p=v1({isExpanded:f,onExpandedChange:P=>{c&&c.toggleKey(d),o==null||o(P)}}),m=u.useRef(null),b=u.useRef(null),v=n||(c==null?void 0:c.isDisabled)||!1,{buttonProps:$,panelProps:g}=ey({isExpanded:p.isExpanded,isDisabled:v},p,m),{buttonProps:D}=Qr($,b),{focusProps:w,isFocusVisible:B}=Se(),k={isExpanded:p.isExpanded,triggerRef:b,panelRef:m,buttonProps:z(D,w),panelProps:g,isFocusVisible:B};return y.jsx(Dl.Provider,{value:k,children:y.jsx(f2,{"data-slot":"disclosure","data-value":d,"data-expanded":p.isExpanded,ref:l,children:e})})}),h2={Root:Dh,Item:wh,Header:Eh,Content:Ph,HeaderRightContent:jr},v2=T.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:$2,withContext:er}=T.createSlotRecipeContext({recipe:v2}),g2=$2("div","root"),y2=er("div","title"),x2=er("div","description"),C2=er("div","icon"),D2=er("div","actions"),E2=er("div","dismissButton"),P2=e=>{switch(e){case"critical":return y.jsx(ie.ErrorOutline,{});case"info":return y.jsx(ie.Info,{});case"warning":return y.jsx(ie.WarningAmber,{});case"positive":return y.jsx(ie.CheckCircleOutline,{});default:return null}},tr=u.createContext(void 0),El=e=>{const{ref:t,children:n,...r}=e,[o,i]=u.useState(null),[l,a]=u.useState(null),[s,d]=u.useState(null),[c,f]=u.useState(null),p=u.useMemo(()=>({setTitle:i,setDescription:a,setActions:d,setDismiss:f}),[i,a,d,f]);return y.jsx(tr.Provider,{value:p,children:y.jsxs(g2,{ref:t,...r,role:"alert",children:[y.jsx(C2,{alignItems:"flex-start",children:P2(r.tone)}),y.jsxs(fo,{flex:"1",gap:"200",children:[y.jsxs(we,{children:[o,l]}),s]}),c,n]})})};El.displayName="Alert.Root";const Pl=({children:e,...t})=>{const n=u.useContext(tr);return u.useEffect(()=>{if(n){const r=y.jsx(y2,{...t,fontWeight:"600",children:e});return n.setTitle(r),()=>n.setTitle(null)}},[e,t]),null};Pl.displayName="Alert.Title";const wl=({children:e,...t})=>{const n=u.useContext(tr);return u.useEffect(()=>{if(n){const r=y.jsx(x2,{...t,children:e});return n.setDescription(r),()=>n.setDescription(null)}},[e,t]),null};wl.displayName="Alert.Description";const Sl=({children:e,...t})=>{const n=u.useContext(tr);return u.useEffect(()=>{if(n){const r=y.jsx(D2,{...t,children:e});return n.setActions(r),()=>n.setActions(null)}},[e,t]),null};Sl.displayName="Alert.Actions";const kl=({children:e,...t})=>{const n=u.useContext(tr);return u.useEffect(()=>{if(n){const r=y.jsx(E2,{children:y.jsx(Qe,{"aria-label":"Dismiss",...t,variant:"ghost",size:"2xs",children:y.jsx(ie.Clear,{role:"img"})})});return n.setDismiss(r),()=>n.setDismiss(null)}},[e,t]),null};kl.displayName="Alert.DismissButton";const w2={Root:El,Title:Pl,Description:wl,Actions:Sl,DismissButton:kl},S2=T.defineRecipe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:k2}=T.createRecipeContext({recipe:S2}),B2=k2("span"),Sh=e=>{const{ref:t,as:n,children:r,...o}=e,i=u.useRef(null),l=me(T.mergeRefs(i,t)),a=n||"span";return y.jsx(B2,{as:a,...z(o,{ref:l}),children:r})};Sh.displayName="Badge";const T2=T.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:A2,withContext:kh}=T.createSlotRecipeContext({recipe:T2}),F2=A2("div","root"),R2=kh("div","header"),I2=kh("div","content"),Bl=u.createContext(void 0),Tl=({children:e,ref:t,...n})=>{const{isFocused:r,isFocusVisible:o,focusProps:i}=Se(),[l,a]=u.useState(null),[s,d]=u.useState(null),c=u.useMemo(()=>({setHeader:a,setContent:d}),[a,d]);return y.jsx(Bl.Provider,{value:c,children:y.jsxs(F2,{ref:t,...z(n,i),"data-focus":r||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[y.jsxs(fo,{direction:"column",gap:"200",children:[l,s]}),e]})})};Tl.displayName="Card.Root";const Al=({children:e,...t})=>{const n=u.useContext(Bl);return u.useEffect(()=>{if(n){const r=y.jsx(R2,{...t,children:e});return n.setHeader(r),()=>n.setHeader(null)}},[e,t]),null};Al.displayName="Card.Header";const Fl=({children:e,...t})=>{const n=u.useContext(Bl);return u.useEffect(()=>{if(n){const r=y.jsx(I2,{...t,children:e});return n.setContent(r),()=>n.setContent(null)}},[e,t]),null};Fl.displayName="Card.Content";const M2={Root:Tl,Header:Al,Content:Fl},hn=u.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),L2=`
|
|
18
24
|
"label"
|
|
19
25
|
"input"
|
|
20
26
|
"description"
|
|
21
27
|
"error"
|
|
22
|
-
`,
|
|
28
|
+
`,N2=`
|
|
23
29
|
"label input"
|
|
24
30
|
"label description"
|
|
25
31
|
"label error"
|
|
26
|
-
`,c5=S.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:s5},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:d5,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:f5,withContext:Tr}=S.createSlotRecipeContext({recipe:c5}),p5=f5("div","root"),m5=Tr("div","label"),b5=Tr("div","input"),h5=Tr("div","description"),v5=Tr("div","error"),g5=Tr("div","popover"),f4=u.forwardRef(({isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n,children:i,...a},o)=>{const[l,s]=u.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}),d={description:l.description,errorMessage:l.error};l.label?d.label=l.label:(d["aria-label"]="empty-label",d["aria-labelledby"]="empty-label");const{labelProps:f,fieldProps:c,descriptionProps:p,errorMessageProps:m}=Gt(d);u.useEffect(()=>{s(g=>({...g,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}))},[e,t,r,n]);const b={...c,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n};return C.jsx(qt.Provider,{value:{context:l,setContext:s},children:C.jsxs(p5,{ref:o,...a,children:[l.label&&C.jsxs(m5,{...l.labelSlotProps,children:[C.jsxs("label",{...f,children:[l.label,t&&C.jsx("sup",{"aria-hidden":"true",children:"*"})]}),l.info&&C.jsxs(Iy,{children:[C.jsx(Te,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:C.jsx(Te,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:C.jsx(wt,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:C.jsx(ue.HelpOutline,{})})})}),C.jsx(Tm,{children:C.jsx(g5,{asChild:!0,children:C.jsx(My,{children:C.jsx(Te,{p:"300",children:l.info})})})})]})]}),l.input&&C.jsx(b5,{...l.inputSlotProps,children:u.Children.map(l.input,g=>u.isValidElement(g)?u.cloneElement(g,b):g)}),l.description&&C.jsx(h5,{...p,...l.descriptionSlotProps,children:l.description}),e&&l.error&&C.jsxs(v5,{...m,...l.errorSlotProps,children:[C.jsx(Te,{as:ue.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),l.error]}),i]})})}),p4=({children:e,...t})=>{const{setContext:r}=u.useContext(qt);return u.useEffect(()=>{r(n=>({...n,label:e,labelSlotProps:t}))},[e,r]),null},m4=({children:e,...t})=>{const{setContext:r}=u.useContext(qt);return u.useEffect(()=>{r(n=>({...n,input:e,inputSlotProps:t}))},[e,r]),null},b4=({children:e,...t})=>{const{setContext:r}=u.useContext(qt);return u.useEffect(()=>{r(n=>({...n,description:e,descriptionSlotProps:t}))},[e,r]),null},h4=({children:e,...t})=>{const{setContext:r}=u.useContext(qt);return u.useEffect(()=>{r(n=>({...n,error:e,errorSlotProps:t}))},[e,r]),null},v4=({children:e})=>{const{setContext:t}=u.useContext(qt);return u.useEffect(()=>{t(r=>({...r,info:e}))},[e,t]),null},y5={Root:f4,Label:p4,Input:m4,Description:b4,Error:h4,InfoBox:v4},$5=S.defineRecipe({className:"nimbus-icon",base:{display:"inline-block"},variants:{size:{"2xs":{boxSize:"600"},xs:{boxSize:"800"},sm:{boxSize:"900"},md:{boxSize:"1000"},lg:{boxSize:"1200"},xl:{boxSize:"1400"}}}}),{withContext:x5}=S.createRecipeContext({recipe:$5}),D5=x5("svg"),g4=e=>{const{ref:t,...r}=e;return C.jsx(D5,{ref:t,asChild:!r.as,...r})};g4.displayName="Icon";const C5=S.defineRecipe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:E5}=S.createRecipeContext({recipe:C5}),P5=E5("div"),w5="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",S5="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",y4=e=>{const{ref:t,"aria-label":r="Loading data",...n}=e,{progressBarProps:i}=ug({isIndeterminate:!0,"aria-label":r,...n});return C.jsx(P5,{ref:t,...N(n,i),"aria-label":r,children:C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[C.jsx("path",{d:w5,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),C.jsx("path",{d:S5,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})};y4.displayName="LoadingSpinner";const $4=u.forwardRef((e,t)=>{const{size:r="md",isDisabled:n}=e,[i,a]=u.useState(!1),o=()=>a(!i),l=r==="md"?"xs":"2xs",s=r==="md"?{top:"100",right:"400"}:{top:"50",right:"400"},d=r==="md"?"1400":"1100";return C.jsxs(Te,{display:"inline-block",position:"relative",children:[C.jsx(Va,{width:"full",ref:t,type:i?"text":"password",...e,pr:d}),C.jsx(Te,{position:"absolute",...s,children:C.jsxs(Vi.Root,{children:[C.jsx(wt,{size:l,variant:"ghost",tone:"primary","aria-label":i?"Hide password":"Show password",onPress:o,isDisabled:n,children:i?C.jsx(ue.VisibilityOff,{}):C.jsx(ue.Visibility,{})}),C.jsx(Vi.Content,{children:i?"Hide password":"Show Password"})]})})]})});$4.displayName="PasswordInput";const x4=S.defineSlotRecipe({className:"nimbus-time-input",slots:["root","segmentGroup","segment"],base:{root:{display:"inline-block"},segmentGroup:{display:"flex",borderRadius:"200",bg:"transparent",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",width:"100%",alignItems:"center","&[data-focus-within='true']":{outlineWidth:"var(--focus-ring-width)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style)",outlineOffset:"var(--focus-ring-offset)"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"},"&[data-disabled='true']":{layerStyle:"disabled"}},segment:{fontVariantNumeric:"tabular-nums",outline:"0",px:"50",borderRadius:"50","&:empty":{border:"1px solid"},"&[data-focused='true']":{bg:"primary.10",color:"primary.contrast"},"&[data-placeholder='true']:not([data-focused='true'])":{opacity:.5},"&[data-type='literal']&:first-of-type, &[data-type='literal']&:last-of-type":{px:"0",ml:"-50"},"&[data-type='minute']":{},"&[data-type='hour']":{},"&[data-type='dayPeriod']":{},"&[data-type='timeZoneName']":{}}},variants:{size:{sm:{segmentGroup:{h:800,textStyle:"sm",px:300}},md:{segmentGroup:{h:1e3,textStyle:"md",px:400}}},variant:{solid:{segmentGroup:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}}},ghost:{segmentGroup:{_hover:{backgroundColor:"primary.2"}}}}},defaultVariants:{size:"md",variant:"solid"}}),{withProvider:k5,withContext:D4}=S.createSlotRecipeContext({recipe:x4}),B5=k5("div","root"),T5=D4("div","segmentGroup"),F5=D4("div","segment"),C4=e=>{const t=S.useRecipe({recipe:x4}),[r,n]=t.splitVariantProps(e),[i,a]=He(n);return C.jsx(B5,{asChild:!0,...r,...i,children:C.jsx(Ky,{...a,children:C.jsx(T5,{asChild:!0,children:C.jsx(Vy,{children:o=>C.jsx(F5,{asChild:!0,children:C.jsx(zy,{segment:o})})})})})})};C4.displayName="TimeInput";const E4=S.defineRecipe({className:"nimbus-multiline-text-input",base:{display:"block",overflowY:"auto",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",resize:"vertical",fontFamily:"inherit",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"},"&::-webkit-resizer":{backgroundImage:`url("data:image/svg+xml,${encodeURIComponent(`
|
|
32
|
+
`,K2=T.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:L2},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:N2,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:V2,withContext:nr}=T.createSlotRecipeContext({recipe:K2}),O2=V2("div","root"),z2=nr("div","label"),j2=nr("div","input"),H2=nr("div","description"),_2=nr("div","error"),U2=nr("div","popover"),Bh=u.forwardRef(({isInvalid:e,isRequired:t,isDisabled:n,isReadOnly:r,children:o,...i},l)=>{const[a,s]=u.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:t,isDisabled:n,isReadOnly:r}),d={description:a.description,errorMessage:a.error};a.label?d.label=a.label:(d["aria-label"]="empty-label",d["aria-labelledby"]="empty-label");const{labelProps:c,fieldProps:f,descriptionProps:p,errorMessageProps:m}=pn(d);u.useEffect(()=>{s(v=>({...v,isInvalid:e,isRequired:t,isDisabled:n,isReadOnly:r}))},[e,t,n,r]);const b={...f,isInvalid:e,isRequired:t,isDisabled:n,isReadOnly:r};return y.jsx(hn.Provider,{value:{context:a,setContext:s},children:y.jsxs(O2,{ref:l,...i,children:[a.label&&y.jsxs(z2,{...a.labelSlotProps,children:[y.jsxs("label",{...c,children:[a.label,t&&y.jsx("sup",{"aria-hidden":"true",children:"*"})]}),a.info&&y.jsxs(q4,{children:[y.jsx(we,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:y.jsx(we,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:y.jsx(Qe,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:y.jsx(ie.HelpOutline,{})})})}),y.jsx(uo,{children:y.jsx(U2,{asChild:!0,children:y.jsx(Z4,{children:y.jsx(we,{p:"300",children:a.info})})})})]})]}),a.input&&y.jsx(j2,{...a.inputSlotProps,children:u.Children.map(a.input,v=>u.isValidElement(v)?u.cloneElement(v,b):v)}),a.description&&y.jsx(H2,{...p,...a.descriptionSlotProps,children:a.description}),e&&a.error&&y.jsxs(_2,{...m,...a.errorSlotProps,children:[y.jsx(we,{as:ie.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),a.error]}),o]})})}),Th=({children:e,...t})=>{const{setContext:n}=u.useContext(hn);return u.useEffect(()=>{n(r=>({...r,label:e,labelSlotProps:t}))},[e,n]),null},Ah=({children:e,...t})=>{const{setContext:n}=u.useContext(hn);return u.useEffect(()=>{n(r=>({...r,input:e,inputSlotProps:t}))},[e,n]),null},Fh=({children:e,...t})=>{const{setContext:n}=u.useContext(hn);return u.useEffect(()=>{n(r=>({...r,description:e,descriptionSlotProps:t}))},[e,n]),null},Rh=({children:e,...t})=>{const{setContext:n}=u.useContext(hn);return u.useEffect(()=>{n(r=>({...r,error:e,errorSlotProps:t}))},[e,n]),null},Ih=({children:e})=>{const{setContext:t}=u.useContext(hn);return u.useEffect(()=>{t(n=>({...n,info:e}))},[e,t]),null},W2={Root:Bh,Label:Th,Input:Ah,Description:Fh,Error:Rh,InfoBox:Ih},G2=T.defineRecipe({className:"nimbus-icon",base:{display:"inline-block"},variants:{size:{"2xs":{boxSize:"600"},xs:{boxSize:"800"},sm:{boxSize:"900"},md:{boxSize:"1000"},lg:{boxSize:"1200"},xl:{boxSize:"1400"}}}}),{withContext:q2}=T.createRecipeContext({recipe:G2}),Z2=q2("svg"),Mh=e=>{const{ref:t,...n}=e;return y.jsx(Z2,{ref:t,asChild:!n.as,...n})};Mh.displayName="Icon";const Y2=T.defineRecipe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:J2}=T.createRecipeContext({recipe:Y2}),X2=J2("div"),Q2="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",e6="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",Lh=e=>{const{ref:t,"aria-label":n="Loading data",...r}=e,{progressBarProps:o}=py({isIndeterminate:!0,"aria-label":n,...r});return y.jsx(X2,{ref:t,...z(r,o),"aria-label":n,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[y.jsx("path",{d:Q2,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("path",{d:e6,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})};Lh.displayName="LoadingSpinner";const Nh=u.forwardRef((e,t)=>{const{size:n="md",isDisabled:r}=e,[o,i]=u.useState(!1),l=()=>i(!o),a=n==="md"?"xs":"2xs",s=n==="md"?{top:"100",right:"400"}:{top:"50",right:"400"},d=n==="md"?"1400":"1100";return y.jsxs(we,{display:"inline-block",position:"relative",children:[y.jsx(vl,{width:"full",ref:t,type:o?"text":"password",...e,pr:d}),y.jsx(we,{position:"absolute",...s,children:y.jsxs(yi.Root,{children:[y.jsx(Qe,{size:a,variant:"ghost",tone:"primary","aria-label":o?"Hide password":"Show password",onPress:l,isDisabled:r,children:o?y.jsx(ie.VisibilityOff,{}):y.jsx(ie.Visibility,{})}),y.jsx(yi.Content,{children:o?"Hide password":"Show Password"})]})})]})});Nh.displayName="PasswordInput";const Kh=T.defineSlotRecipe({className:"nimbus-time-input",slots:["root","segmentGroup","segment"],base:{root:{display:"inline-block"},segmentGroup:{display:"flex",borderRadius:"200",bg:"transparent",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",width:"100%",alignItems:"center","&[data-focus-within='true']":{outlineWidth:"var(--focus-ring-width)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style)",outlineOffset:"var(--focus-ring-offset)"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"},"&[data-disabled='true']":{layerStyle:"disabled"}},segment:{fontVariantNumeric:"tabular-nums",outline:"0",px:"50",borderRadius:"50","&:empty":{border:"1px solid"},"&[data-focused='true']":{bg:"primary.10",color:"primary.contrast"},"&[data-placeholder='true']:not([data-focused='true'])":{opacity:.5},"&[data-type='literal']&:first-of-type, &[data-type='literal']&:last-of-type":{px:"0",ml:"-50"},"&[data-type='minute']":{},"&[data-type='hour']":{},"&[data-type='dayPeriod']":{},"&[data-type='timeZoneName']":{}}},variants:{size:{sm:{segmentGroup:{h:800,textStyle:"sm",px:300}},md:{segmentGroup:{h:1e3,textStyle:"md",px:400}}},variant:{solid:{segmentGroup:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}}},ghost:{segmentGroup:{_hover:{backgroundColor:"primary.2"}}}}},defaultVariants:{size:"md",variant:"solid"}}),{withProvider:t6,withContext:Vh}=T.createSlotRecipeContext({recipe:Kh}),n6=t6("div","root"),r6=Vh("div","segmentGroup"),o6=Vh("div","segment"),Oh=e=>{const t=T.useRecipe({recipe:Kh}),[n,r]=t.splitVariantProps(e),[o,i]=Ne(r);return y.jsx(n6,{asChild:!0,...n,...o,children:y.jsx(t5,{...i,children:y.jsx(r6,{asChild:!0,children:y.jsx(n5,{children:l=>y.jsx(o6,{asChild:!0,children:y.jsx(o5,{segment:l})})})})})})};Oh.displayName="TimeInput";const zh=T.defineRecipe({className:"nimbus-multiline-text-input",base:{display:"block",overflowY:"auto",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",resize:"vertical",fontFamily:"inherit",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"},"&::-webkit-resizer":{backgroundImage:`url("data:image/svg+xml,${encodeURIComponent(`
|
|
27
33
|
<svg width="8" height="8" viewBox="0 0 8 8" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
28
34
|
<mask id="mask0_4610_25787" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="-1" y="-1" width="9" height="9">
|
|
29
35
|
<rect width="1.03391" height="4.13563" transform="matrix(0.716449 0.69764 -0.716449 0.69764 6.92578 4.05362)" fill="currentColor"/>
|
|
30
36
|
<rect width="1.03391" height="8.27125" transform="matrix(0.716448 0.69764 -0.716448 0.69764 5.87891 -0.0262451)" fill="currentColor"/>
|
|
31
37
|
</mask>
|
|
32
38
|
<g mask="url(#mask0_4610_25787)">
|
|
33
|
-
<rect width="8" height="8" fill="${
|
|
39
|
+
<rect width="8" height="8" fill="${ce.designTokens.color["semantic-palettes"].primary.light[9]}"/>
|
|
34
40
|
</g>
|
|
35
41
|
</svg>
|
|
36
|
-
`)}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"200 200",width:"400",height:"400"}},variants:{size:{sm:{minH:800,textStyle:"sm",px:300,py:100},md:{minH:1e3,textStyle:"md",px:400,py:200}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),{withContext:R5}=S.createRecipeContext({recipe:E4}),A5=R5("textarea"),P4=e=>{const{ref:t,rows:r=1,autoGrow:n=!1,...i}=e,a=S.useRecipe({recipe:E4}),o=u.useRef(null),l=de(S.mergeRefs(o,t)),[s,d]=a.splitVariantProps(i),[f,c]=He(d),{inputProps:p}=da(c,l),m=u.useCallback(()=>{const b=l.current;if(!b||!n)return;b.style.height="auto";const y=b.scrollHeight,$=window.getComputedStyle(b),E=parseInt($.maxHeight),x=E?Math.min(y,E):y;b.style.height=`${x}px`},[n,l]);return u.useEffect(()=>{const b=l.current;if(!b||!n)return;m();const g=()=>{m()};return b.addEventListener("input",g),()=>{b.removeEventListener("input",g)}},[m,n,l]),C.jsx(A5,{...s,...f,asChild:!0,children:C.jsx(vy,{ref:l,rows:r,...p})})};P4.displayName="MultilineTextInput";const{withProvider:I5,withContext:M5}=S.createSlotRecipeContext({key:"radioInput"}),L5=I5("div","root"),N5=M5("span","option"),to=e=>{const t=S.useSlotRecipe({recipe:Ka}),[r,n]=t.splitVariantProps(e),[i,a]=He(n);return C.jsx(L5,{...r,...i,asChild:!0,children:C.jsx(_y,{...a,children:e.children})})};to.displayName="RadioInputRoot";const ro=({children:e,value:t,...r})=>{const[n,i]=He(r),{isFocused:a,focusProps:o}=ve();return C.jsx(N5,{...n,"data-focus":a||void 0,asChild:!0,children:C.jsx(Uy,{value:t,...i,...o,children:l=>{const s=typeof e=="function"?e({...l}):e;return C.jsxs(C.Fragment,{children:[l.isSelected?C.jsx(ue.RadioButtonChecked,{}):C.jsx(ue.RadioButtonUnchecked,{}),s]})}})})};ro.displayName="RadioInputOption";const K5={Root:to,Option:ro},{withProvider:V5,withContext:no}=S.createSlotRecipeContext({key:"switch"}),O5=V5("label","root"),z5=no("span","label"),j5=no("span","track"),H5=no("span","thumb"),w4=({ref:e,...t})=>{const r=u.useRef(null),n=de(e?S.mergeRefs(r,e):r),i=S.useSlotRecipe({recipe:Jm}),[a,o]=i.splitVariantProps(t),[l,s]=He(o),d=ua(t),{inputProps:f}=mg(s,d,n),{isFocused:c,focusProps:p}=ve(),m={"data-selected":d.isSelected,"data-invalid":t.isInvalid,"data-disabled":t.isDisabled,"data-focus":c||void 0};return C.jsxs(O5,{"data-slot":"root",...a,...m,...l,children:[C.jsxs(j5,{"data-slot":"track",...m,children:[C.jsx(H5,{"data-slot":"thumb",...m}),C.jsx(Nn,{as:"span",children:C.jsx("input",{"data-slot":"input",...N(f,p),ref:n})})]}),t.children&&C.jsx(z5,{"data-slot":"label",...m,children:t.children})]})};w4.displayName="Switch";const{withProvider:_5,withContext:S4}=S.createSlotRecipeContext({key:"taggroup"}),U5=_5(Jy,"root"),W5=e=>{const{ref:t,...r}=e,n=S4(Qy,"tagList");return C.jsx(n,{...r,ref:t})},G5=S4(t$,"tag"),k4=({children:e,onRemove:t,selectionMode:r,ref:n,...i})=>(t&&(r==="multiple"||r==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),C.jsx(U5,{ref:n,onRemove:t,selectionMode:r,...i,children:e}));k4.displayName="TagGroup.Root";const B4=({children:e,ref:t,...r})=>C.jsx(W5,{ref:t,...r,children:e});B4.displayName="TagGroup.TagList";const T4=({children:e,ref:t,...r})=>{const n=typeof e=="string"?e:void 0;return C.jsx(G5,{ref:t,textValue:n,...r,children:({allowsRemoving:i,isSelected:a,selectionMode:o})=>C.jsxs(C.Fragment,{children:[e,i&&o!=="multiple"&&o!=="single"&&C.jsx(wt,{size:"2xs",variant:a?"solid":"ghost",slot:"remove",tone:a?void 0:"neutral",children:C.jsx(ue.Close,{})})]})})};T4.displayName="TagGroup.Tag";const Z5={Root:k4,TagList:B4,Tag:T4};var Ol,zl,jl,Hl;const q5=S.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...vt.base,...(Ol=vt.variants)==null?void 0:Ol.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(zl=vt.variants)==null?void 0:zl.variant.solid}},variants:{size:{xs:{button:(jl=vt.variants)==null?void 0:jl.size.xs},md:{button:(Hl=vt.variants)==null?void 0:Hl.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:Y5,withProvider:J5}=S.createSlotRecipeContext({recipe:q5}),X5=J5(n$,"root"),Q5=Y5(a$,"button"),io=e=>{const{ref:t,children:r,...n}=e;return C.jsx(X5,{ref:t,...n,children:r})};io.displayName="ToggleButtonGroup.Root";const ao=e=>{const{ref:t,children:r,...n}=e;return C.jsx(Q5,{...n,ref:t,children:r})};ao.displayName="ToggleButtonGroup.Button";const ex={Root:io,Button:ao};function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oi.apply(null,arguments)}var F4=["shift","alt","meta","mod","ctrl"],tx={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function lt(e){return(e&&tx[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function rx(e){return F4.includes(e)}function fi(e,t){return t===void 0&&(t=","),e.split(t)}function pi(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(o){return lt(o)}),i={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},a=n.filter(function(o){return!F4.includes(o)});return Oi({},i,{keys:a,description:r,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&R4([lt(e.key),lt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&A4([lt(e.key),lt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){ut.clear()})})();var ut=new Set;function oo(e){return Array.isArray(e)}function nx(e,t){t===void 0&&(t=",");var r=oo(e)?e:e.split(t);return r.every(function(n){return ut.has(n.trim().toLowerCase())})}function R4(e){var t=Array.isArray(e)?e:[e];ut.has("meta")&&ut.forEach(function(r){return!rx(r)&&ut.delete(r.toLowerCase())}),t.forEach(function(r){return ut.add(r.toLowerCase())})}function A4(e){var t=Array.isArray(e)?e:[e];e==="meta"?ut.clear():t.forEach(function(r){return ut.delete(r.toLowerCase())})}function ix(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function ax(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function ox(e){return I4(e,["input","textarea","select"])}function I4(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,i=null;return lx(r)&&n?i=e.composedPath()[0]&&e.composedPath()[0].tagName:i=r&&r.tagName,oo(t)?!!(i&&t&&t.some(function(a){var o;return a.toLowerCase()===((o=i)==null?void 0:o.toLowerCase())})):!!(i&&t&&t)}function lx(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function ux(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var sx=function(t,r,n){n===void 0&&(n=!1);var i=r.alt,a=r.meta,o=r.mod,l=r.shift,s=r.ctrl,d=r.keys,f=t.key,c=t.code,p=t.ctrlKey,m=t.metaKey,b=t.shiftKey,g=t.altKey,y=lt(c),$=f.toLowerCase();if(!(d!=null&&d.includes(y))&&!(d!=null&&d.includes($))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(y))return!1;if(!n){if(i===!g&&$!=="alt"||l===!b&&$!=="shift")return!1;if(o){if(!m&&!p)return!1}else if(a===!m&&$!=="meta"&&$!=="os"||s===!p&&$!=="ctrl"&&$!=="control")return!1}return d&&d.length===1&&(d.includes($)||d.includes(y))?!0:d?nx(d):!d},dx=u.createContext(void 0),cx=function(){return u.useContext(dx)};function M4(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&M4(e[n],t[n])},!0):e===t}var fx=u.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),px=function(){return u.useContext(fx)};function mx(e){var t=u.useRef(void 0);return M4(t.current,e)||(t.current=e),t.current}var Nl=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},bx=typeof window<"u"?u.useLayoutEffect:u.useEffect;function hx(e,t,r,n){var i=u.useState(null),a=i[0],o=i[1],l=u.useRef(!1),s=r instanceof Array?n instanceof Array?void 0:n:r,d=oo(e)?e.join(s==null?void 0:s.splitKey):e,f=r instanceof Array?r:n instanceof Array?n:void 0,c=u.useCallback(t,f??[]),p=u.useRef(c);f?p.current=c:p.current=t;var m=mx(s),b=px(),g=b.enabledScopes,y=cx();return bx(function(){if(!((m==null?void 0:m.enabled)===!1||!ux(g,m==null?void 0:m.scopes))){var $=function(D,I){var M;if(I===void 0&&(I=!1),!(ox(D)&&!I4(D,m==null?void 0:m.enableOnFormTags))){if(a!==null){var O=a.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==a&&!a.contains(O.activeElement)){Nl(D);return}}(M=D.target)!=null&&M.isContentEditable&&!(m!=null&&m.enableOnContentEditable)||fi(d,m==null?void 0:m.splitKey).forEach(function(F){var h,T=pi(F,m==null?void 0:m.combinationKey);if(sx(D,T,m==null?void 0:m.ignoreModifiers)||(h=T.keys)!=null&&h.includes("*")){if(m!=null&&m.ignoreEventWhen!=null&&m.ignoreEventWhen(D)||I&&l.current)return;if(ix(D,T,m==null?void 0:m.preventDefault),!ax(D,T,m==null?void 0:m.enabled)){Nl(D);return}p.current(D,T),I||(l.current=!0)}})}},E=function(D){D.key!==void 0&&(R4(lt(D.code)),((m==null?void 0:m.keydown)===void 0&&(m==null?void 0:m.keyup)!==!0||m!=null&&m.keydown)&&$(D))},x=function(D){D.key!==void 0&&(A4(lt(D.code)),l.current=!1,m!=null&&m.keyup&&$(D,!0))},B=a||(s==null?void 0:s.document)||document;return B.addEventListener("keyup",x,s==null?void 0:s.eventListenerOptions),B.addEventListener("keydown",E,s==null?void 0:s.eventListenerOptions),y&&fi(d,m==null?void 0:m.splitKey).forEach(function(w){return y.addHotkey(pi(w,m==null?void 0:m.combinationKey,m==null?void 0:m.description))}),function(){B.removeEventListener("keyup",x,s==null?void 0:s.eventListenerOptions),B.removeEventListener("keydown",E,s==null?void 0:s.eventListenerOptions),y&&fi(d,m==null?void 0:m.splitKey).forEach(function(w){return y.removeHotkey(pi(w,m==null?void 0:m.combinationKey,m==null?void 0:m.description))})}}},[a,d,m,g]),o}function vx(){var e=u.useRef(!1),t=u.useCallback(function(){return e.current},[]);return u.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var gx=function(e){e===void 0&&(e={});var t=u.useState(e),r=t[0],n=t[1],i=u.useCallback(function(a){n(function(o){return Object.assign({},o,a instanceof Function?a(o):a)})},[]);return[r,i]},mi,Kl;function yx(){return Kl||(Kl=1,mi=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),mi}var bi,Vl;function $x(){if(Vl)return bi;Vl=1;var e=yx(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(a){var o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,o)}function i(a,o){var l,s,d,f,c,p,m=!1;o||(o={}),l=o.debug||!1;try{d=e(),f=document.createRange(),c=document.getSelection(),p=document.createElement("span"),p.textContent=a,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(g){if(g.stopPropagation(),o.format)if(g.preventDefault(),typeof g.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=t[o.format]||t.default;window.clipboardData.setData(y,a)}else g.clipboardData.clearData(),g.clipboardData.setData(o.format,a);o.onCopy&&(g.preventDefault(),o.onCopy(g.clipboardData))}),document.body.appendChild(p),f.selectNodeContents(p),c.addRange(f);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");m=!0}catch(g){l&&console.error("unable to copy using execCommand: ",g),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",a),o.onCopy&&o.onCopy(window.clipboardData),m=!0}catch(y){l&&console.error("unable to copy using clipboardData: ",y),l&&console.error("falling back to prompt"),s=n("message"in o?o.message:r),window.prompt(s,a)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(f):c.removeAllRanges()),p&&document.body.removeChild(p),d()}return m}return bi=i,bi}var xx=$x();const Dx=ng(xx);var Cx=function(){var e=vx(),t=gx({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],i=u.useCallback(function(a){if(e()){var o,l;try{if(typeof a!="string"&&typeof a!="number"){var s=new Error("Cannot copy typeof "+typeof a+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(s),n({value:a,error:s,noUserInteraction:!0});return}else if(a===""){var s=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(s),n({value:a,error:s,noUserInteraction:!0});return}l=a.toString(),o=Dx(l),n({value:l,error:void 0,noUserInteraction:o})}catch(d){n({value:l,error:d,noUserInteraction:o})}}},[]);return[r,i]};Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>S.Code});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>S.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>S.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>S.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>S.Kbd});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>S.Table});exports.Accordion=H1;exports.Alert=Q1;exports.Avatar=Ul;exports.Badge=d4;exports.Box=Te;exports.Button=ba;exports.Card=u5;exports.Checkbox=t4;exports.Dialog=wg;exports.FormField=y5;exports.Grid=k1;exports.Icon=g4;exports.IconButton=wt;exports.Image=Km;exports.Link=Om;exports.List=c$;exports.LoadingSpinner=y4;exports.MakeElementFocusable=Gm;exports.MultilineTextInput=P4;exports.NimbusProvider=h1;exports.NumberInput=r4;exports.PasswordInput=$4;exports.RadioInput=K5;exports.Select=L1;exports.SimpleGrid=f$;exports.Stack=Ln;exports.Switch=w4;exports.TagGroup=Z5;exports.Text=Um;exports.TextInput=Va;exports.TimeInput=C4;exports.ToggleButtonGroup=ex;exports.Tooltip=Vi;exports.VisuallyHidden=Nn;exports._AccordionContent=u4;exports._AccordionHeader=l4;exports._AccordionHeaderRightContent=vn;exports._AccordionItem=s4;exports._AccordionRoot=o4;exports._AlertActions=qa;exports._AlertDescription=Za;exports._AlertDismissButton=Ya;exports._AlertRoot=Wa;exports._AlertTitle=Ga;exports._CardContent=eo;exports._CardHeader=Qa;exports._CardRoot=Xa;exports._FormFieldDescription=b4;exports._FormFieldError=h4;exports._FormFieldInfoBox=v4;exports._FormFieldInput=m4;exports._FormFieldLabel=p4;exports._FormFieldRoot=f4;exports._ListIndicator=Hm;exports._ListItem=jm;exports._ListRoot=zm;exports._RadioInputOption=ro;exports._RadioInputRoot=to;exports._SelectOption=Ha;exports._SelectOptionGroup=_a;exports._SelectOptions=ja;exports._SelectRoot=za;exports._ToggleButtonGroupButton=ao;exports._ToggleButtonGroupRoot=io;exports._TooltipContent=Ma;exports._TooltipRoot=Ia;exports.system=Qm;exports.useColorMode=qm;exports.useColorModeValue=w$;exports.useColorScheme=b1;exports.useCopyToClipboard=Cx;exports.useHotkeys=hx;
|
|
42
|
+
`)}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"200 200",width:"400",height:"400"}},variants:{size:{sm:{minH:800,textStyle:"sm",px:300,py:100},md:{minH:1e3,textStyle:"md",px:400,py:200}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),{withContext:i6}=T.createRecipeContext({recipe:zh}),l6=i6("textarea"),jh=e=>{const{ref:t,rows:n=1,autoGrow:r=!1,...o}=e,i=T.useRecipe({recipe:zh}),l=u.useRef(null),a=me(T.mergeRefs(l,t)),[s,d]=i.splitVariantProps(o),[c,f]=Ne(d),{inputProps:p}=_n(f,a),m=u.useCallback(()=>{const b=a.current;if(!b||!r)return;b.style.height="auto";const $=b.scrollHeight,g=window.getComputedStyle(b),D=parseInt(g.maxHeight),w=D?Math.min($,D):$;b.style.height=`${w}px`},[r,a]);return u.useEffect(()=>{const b=a.current;if(!b||!r)return;m();const v=()=>{m()};return b.addEventListener("input",v),()=>{b.removeEventListener("input",v)}},[m,r,a]),y.jsx(l6,{...s,...c,asChild:!0,children:y.jsx(B1,{ref:a,rows:n,...p})})};jh.displayName="MultilineTextInput";const{withProvider:a6,withContext:u6}=T.createSlotRecipeContext({key:"radioInput"}),s6=a6("div","root"),d6=u6("span","option"),Rl=e=>{const t=T.useSlotRecipe({recipe:hl}),[n,r]=t.splitVariantProps(e),[o,i]=Ne(r);return y.jsx(s6,{...n,...o,asChild:!0,children:y.jsx(a5,{...i,children:e.children})})};Rl.displayName="RadioInputRoot";const Il=({children:e,value:t,...n})=>{const[r,o]=Ne(n),{isFocused:i,focusProps:l}=Se();return y.jsx(d6,{...r,"data-focus":i||void 0,asChild:!0,children:y.jsx(u5,{value:t,...o,...l,children:a=>{const s=typeof e=="function"?e({...a}):e;return y.jsxs(y.Fragment,{children:[a.isSelected?y.jsx(ie.RadioButtonChecked,{}):y.jsx(ie.RadioButtonUnchecked,{}),s]})}})})};Il.displayName="RadioInputOption";const c6={Root:Rl,Option:Il},{withProvider:f6,withContext:Ml}=T.createSlotRecipeContext({key:"switch"}),p6=f6("label","root"),m6=Ml("span","label"),b6=Ml("span","track"),h6=Ml("span","thumb"),Hh=({ref:e,...t})=>{const n=u.useRef(null),r=me(e?T.mergeRefs(n,e):n),o=T.useSlotRecipe({recipe:mh}),[i,l]=o.splitVariantProps(t),[a,s]=Ne(l),d=Wi(t),{inputProps:c}=gy(s,d,r),{isFocused:f,focusProps:p}=Se(),m={"data-selected":d.isSelected,"data-invalid":t.isInvalid,"data-disabled":t.isDisabled,"data-focus":f||void 0};return y.jsxs(p6,{"data-slot":"root",...i,...m,...a,children:[y.jsxs(b6,{"data-slot":"track",...m,children:[y.jsx(h6,{"data-slot":"thumb",...m}),y.jsx(po,{as:"span",children:y.jsx("input",{"data-slot":"input",...z(c,p),ref:r})})]}),t.children&&y.jsx(m6,{"data-slot":"label",...m,children:t.children})]})};Hh.displayName="Switch";const{withProvider:v6,withContext:_h}=T.createSlotRecipeContext({key:"taggroup"}),$6=v6(b5,"root"),g6=e=>{const{ref:t,...n}=e,r=_h(v5,"tagList");return y.jsx(r,{...n,ref:t})},y6=_h(g5,"tag"),Uh=({children:e,onRemove:t,selectionMode:n,ref:r,...o})=>(t&&(n==="multiple"||n==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),y.jsx($6,{ref:r,onRemove:t,selectionMode:n,...o,children:e}));Uh.displayName="TagGroup.Root";const Wh=({children:e,ref:t,...n})=>y.jsx(g6,{ref:t,...n,children:e});Wh.displayName="TagGroup.TagList";const Gh=({children:e,ref:t,...n})=>{const r=typeof e=="string"?e:void 0;return y.jsx(y6,{ref:t,textValue:r,...n,children:({allowsRemoving:o,isSelected:i,selectionMode:l})=>y.jsxs(y.Fragment,{children:[e,o&&l!=="multiple"&&l!=="single"&&y.jsx(Qe,{size:"2xs",variant:i?"solid":"ghost",slot:"remove",tone:i?void 0:"neutral",children:y.jsx(ie.Close,{})})]})})};Gh.displayName="TagGroup.Tag";const Er={Root:Uh,TagList:Wh,Tag:Gh};var wu,Su,ku,Bu;const x6=T.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...Mt.base,...(wu=Mt.variants)==null?void 0:wu.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Su=Mt.variants)==null?void 0:Su.variant.solid}},variants:{size:{xs:{button:(ku=Mt.variants)==null?void 0:ku.size.xs},md:{button:(Bu=Mt.variants)==null?void 0:Bu.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:C6,withProvider:D6}=T.createSlotRecipeContext({recipe:x6}),E6=D6(x5,"root"),P6=C6(D5,"button"),Ll=e=>{const{ref:t,children:n,...r}=e;return y.jsx(E6,{ref:t,...r,children:n})};Ll.displayName="ToggleButtonGroup.Root";const Nl=e=>{const{ref:t,children:n,...r}=e;return y.jsx(P6,{...r,ref:t,children:n})};Nl.displayName="ToggleButtonGroup.Button";const w6={Root:Ll,Button:Nl};function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xi.apply(null,arguments)}var qh=["shift","alt","meta","mod","ctrl"],S6={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function xt(e){return(e&&S6[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function k6(e){return qh.includes(e)}function Uo(e,t){return t===void 0&&(t=","),e.split(t)}function Wo(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(l){return xt(l)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},i=r.filter(function(l){return!qh.includes(l)});return xi({},o,{keys:i,description:n,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&Zh([xt(e.key),xt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&Yh([xt(e.key),xt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Ct.clear()})})();var Ct=new Set;function Kl(e){return Array.isArray(e)}function B6(e,t){t===void 0&&(t=",");var n=Kl(e)?e:e.split(t);return n.every(function(r){return Ct.has(r.trim().toLowerCase())})}function Zh(e){var t=Array.isArray(e)?e:[e];Ct.has("meta")&&Ct.forEach(function(n){return!k6(n)&&Ct.delete(n.toLowerCase())}),t.forEach(function(n){return Ct.add(n.toLowerCase())})}function Yh(e){var t=Array.isArray(e)?e:[e];e==="meta"?Ct.clear():t.forEach(function(n){return Ct.delete(n.toLowerCase())})}function T6(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function A6(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function F6(e){return Jh(e,["input","textarea","select"])}function Jh(e,t){t===void 0&&(t=!1);var n=e.target,r=e.composed,o=null;return R6(n)&&r?o=e.composedPath()[0]&&e.composedPath()[0].tagName:o=n&&n.tagName,Kl(t)?!!(o&&t&&t.some(function(i){var l;return i.toLowerCase()===((l=o)==null?void 0:l.toLowerCase())})):!!(o&&t&&t)}function R6(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function I6(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var M6=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,i=n.meta,l=n.mod,a=n.shift,s=n.ctrl,d=n.keys,c=t.key,f=t.code,p=t.ctrlKey,m=t.metaKey,b=t.shiftKey,v=t.altKey,$=xt(f),g=c.toLowerCase();if(!(d!=null&&d.includes($))&&!(d!=null&&d.includes(g))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes($))return!1;if(!r){if(o===!v&&g!=="alt"||a===!b&&g!=="shift")return!1;if(l){if(!m&&!p)return!1}else if(i===!m&&g!=="meta"&&g!=="os"||s===!p&&g!=="ctrl"&&g!=="control")return!1}return d&&d.length===1&&(d.includes(g)||d.includes($))?!0:d?B6(d):!d},L6=u.createContext(void 0),N6=function(){return u.useContext(L6)};function Xh(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Xh(e[r],t[r])},!0):e===t}var K6=u.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),V6=function(){return u.useContext(K6)};function O6(e){var t=u.useRef(void 0);return Xh(t.current,e)||(t.current=e),t.current}var mu=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},z6=typeof window<"u"?u.useLayoutEffect:u.useEffect;function j6(e,t,n,r){var o=u.useState(null),i=o[0],l=o[1],a=u.useRef(!1),s=n instanceof Array?r instanceof Array?void 0:r:n,d=Kl(e)?e.join(s==null?void 0:s.splitKey):e,c=n instanceof Array?n:r instanceof Array?r:void 0,f=u.useCallback(t,c??[]),p=u.useRef(f);c?p.current=f:p.current=t;var m=O6(s),b=V6(),v=b.enabledScopes,$=N6();return z6(function(){if(!((m==null?void 0:m.enabled)===!1||!I6(v,m==null?void 0:m.scopes))){var g=function(P,L){var I;if(L===void 0&&(L=!1),!(F6(P)&&!Jh(P,m==null?void 0:m.enableOnFormTags))){if(i!==null){var V=i.getRootNode();if((V instanceof Document||V instanceof ShadowRoot)&&V.activeElement!==i&&!i.contains(V.activeElement)){mu(P);return}}(I=P.target)!=null&&I.isContentEditable&&!(m!=null&&m.enableOnContentEditable)||Uo(d,m==null?void 0:m.splitKey).forEach(function(A){var h,S=Wo(A,m==null?void 0:m.combinationKey);if(M6(P,S,m==null?void 0:m.ignoreModifiers)||(h=S.keys)!=null&&h.includes("*")){if(m!=null&&m.ignoreEventWhen!=null&&m.ignoreEventWhen(P)||L&&a.current)return;if(T6(P,S,m==null?void 0:m.preventDefault),!A6(P,S,m==null?void 0:m.enabled)){mu(P);return}p.current(P,S),L||(a.current=!0)}})}},D=function(P){P.key!==void 0&&(Zh(xt(P.code)),((m==null?void 0:m.keydown)===void 0&&(m==null?void 0:m.keyup)!==!0||m!=null&&m.keydown)&&g(P))},w=function(P){P.key!==void 0&&(Yh(xt(P.code)),a.current=!1,m!=null&&m.keyup&&g(P,!0))},B=i||(s==null?void 0:s.document)||document;return B.addEventListener("keyup",w,s==null?void 0:s.eventListenerOptions),B.addEventListener("keydown",D,s==null?void 0:s.eventListenerOptions),$&&Uo(d,m==null?void 0:m.splitKey).forEach(function(k){return $.addHotkey(Wo(k,m==null?void 0:m.combinationKey,m==null?void 0:m.description))}),function(){B.removeEventListener("keyup",w,s==null?void 0:s.eventListenerOptions),B.removeEventListener("keydown",D,s==null?void 0:s.eventListenerOptions),$&&Uo(d,m==null?void 0:m.splitKey).forEach(function(k){return $.removeHotkey(Wo(k,m==null?void 0:m.combinationKey,m==null?void 0:m.description))})}}},[i,d,m,v]),l}function H6(){var e=u.useRef(!1),t=u.useCallback(function(){return e.current},[]);return u.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var _6=function(e){e===void 0&&(e={});var t=u.useState(e),n=t[0],r=t[1],o=u.useCallback(function(i){r(function(l){return Object.assign({},l,i instanceof Function?i(l):i)})},[]);return[n,o]},Go,bu;function U6(){return bu||(bu=1,Go=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Go}var qo,hu;function W6(){if(hu)return qo;hu=1;var e=U6(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(i){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,l)}function o(i,l){var a,s,d,c,f,p,m=!1;l||(l={}),a=l.debug||!1;try{d=e(),c=document.createRange(),f=document.getSelection(),p=document.createElement("span"),p.textContent=i,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(v){if(v.stopPropagation(),l.format)if(v.preventDefault(),typeof v.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var $=t[l.format]||t.default;window.clipboardData.setData($,i)}else v.clipboardData.clearData(),v.clipboardData.setData(l.format,i);l.onCopy&&(v.preventDefault(),l.onCopy(v.clipboardData))}),document.body.appendChild(p),c.selectNodeContents(p),f.addRange(c);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");m=!0}catch(v){a&&console.error("unable to copy using execCommand: ",v),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",i),l.onCopy&&l.onCopy(window.clipboardData),m=!0}catch($){a&&console.error("unable to copy using clipboardData: ",$),a&&console.error("falling back to prompt"),s=r("message"in l?l.message:n),window.prompt(s,i)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(c):f.removeAllRanges()),p&&document.body.removeChild(p),d()}return m}return qo=o,qo}var G6=W6();const q6=uy(G6);var Z6=function(){var e=H6(),t=_6({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1],o=u.useCallback(function(i){if(e()){var l,a;try{if(typeof i!="string"&&typeof i!="number"){var s=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(s),r({value:i,error:s,noUserInteraction:!0});return}else if(i===""){var s=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(s),r({value:i,error:s,noUserInteraction:!0});return}a=i.toString(),l=q6(a),r({value:a,error:void 0,noUserInteraction:l})}catch(d){r({value:a,error:d,noUserInteraction:l})}}},[]);return[n,o]};Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>T.Code});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>T.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>T.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>T.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>T.Kbd});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>T.Table});exports.Accordion=h2;exports.Alert=w2;exports.Avatar=Au;exports.Badge=Sh;exports.Box=we;exports.Button=Ji;exports.Card=M2;exports.Checkbox=$h;exports.ComboBox=I5;exports.Dialog=L5;exports.FormField=W2;exports.Grid=t2;exports.Icon=Mh;exports.IconButton=Qe;exports.Image=nh;exports.Link=oh;exports.List=V5;exports.LoadingSpinner=Lh;exports.MakeElementFocusable=ch;exports.MultilineTextInput=jh;exports.NimbusProvider=Hx;exports.NumberInput=gh;exports.PasswordInput=Nh;exports.RadioInput=c6;exports.Select=s2;exports.SimpleGrid=O5;exports.Stack=fo;exports.Switch=Hh;exports.TagGroup=Er;exports.Text=sh;exports.TextInput=vl;exports.TimeInput=Oh;exports.ToggleButtonGroup=w6;exports.Tooltip=yi;exports.VisuallyHidden=po;exports._AccordionContent=Ph;exports._AccordionHeader=Eh;exports._AccordionHeaderRightContent=jr;exports._AccordionItem=wh;exports._AccordionRoot=Dh;exports._AlertActions=Sl;exports._AlertDescription=wl;exports._AlertDismissButton=kl;exports._AlertRoot=El;exports._AlertTitle=Pl;exports._CardContent=Fl;exports._CardHeader=Al;exports._CardRoot=Tl;exports._ComboBoxOption=cl;exports._ComboBoxOptionGroup=dl;exports._ComboBoxRoot=sl;exports._FormFieldDescription=Fh;exports._FormFieldError=Rh;exports._FormFieldInfoBox=Ih;exports._FormFieldInput=Ah;exports._FormFieldLabel=Th;exports._FormFieldRoot=Bh;exports._ListIndicator=ah;exports._ListItem=lh;exports._ListRoot=ih;exports._RadioInputOption=Il;exports._RadioInputRoot=Rl;exports._SelectOption=xl;exports._SelectOptionGroup=Cl;exports._SelectOptions=yl;exports._SelectRoot=gl;exports._ToggleButtonGroupButton=Nl;exports._ToggleButtonGroupRoot=Ll;exports._TooltipContent=pl;exports._TooltipRoot=fl;exports.system=hh;exports.useColorMode=ph;exports.useColorModeValue=ex;exports.useColorScheme=jx;exports.useCopyToClipboard=Z6;exports.useHotkeys=j6;
|
|
37
43
|
//# sourceMappingURL=index.cjs.map
|