@commercetools/nimbus 0.0.7-rc13 → 0.0.7-rc15

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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("@chakra-ui/react"),te=require("@commercetools/nimbus-tokens"),a=require("react"),x=require("react/jsx-runtime"),dt=require("react-dom"),se=require("@commercetools/nimbus-icons");function ep(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ae=ep(a),si=P.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:tp}=P.createRecipeContext({recipe:si}),np=tp("figure");function op(t,e){return t.split("")[0].toUpperCase()+e.split("")[0].toUpperCase()}const ci=t=>{const{ref:e,firstName:n,lastName:o,src:l,alt:r,...i}=t,[u,s]=a.useState(!1),[c,d]=a.useState(!1),f=`${n} ${o}`,p={"aria-label":`${f} avatar`,ref:e,...i},b=()=>{s(!0),d(!1)},h=()=>{s(!1),d(!0)},g=!l||!u||c;return x.jsxs(np,{...p,children:[g?op(n,o):null,l&&x.jsx(P.Image,{src:l,alt:r||f,onLoad:b,onError:h,display:u&&!c?"block":"none"})]})};ci.displayName="Avatar";const Te=t=>{const{ref:e,...n}=t;return x.jsx(P.Box,{ref:e,...n})};Te.displayName="Box";const j=typeof document<"u"?a.useLayoutEffect:()=>{};function Q(t){const e=a.useRef(null);return j(()=>{e.current=t},[t]),a.useCallback((...n)=>{const o=e.current;return o==null?void 0:o(...n)},[])}function lp(t){let[e,n]=a.useState(t),o=a.useRef(null),l=Q(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}e===i.value?l():n(i.value)});j(()=>{o.current&&l()});let r=Q(i=>{o.current=i(e),l()});return[e,r]}const $n={prefix:String(Math.round(Math.random()*1e10)),current:0},di=a.createContext($n),rp=a.createContext(!1);let ip=!!(typeof window<"u"&&window.document&&window.document.createElement),eo=new WeakMap;function up(t=!1){let e=a.useContext(di),n=a.useRef(null);if(n.current===null&&!t){var o,l;let r=(l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||l===void 0||(o=l.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(r){let i=eo.get(r);i==null?eo.set(r,{id:e.current,state:r.memoizedState}):r.memoizedState!==i.state&&(e.current=i.id,eo.delete(r))}n.current=++e.current}return n.current}function ap(t){let e=a.useContext(di);e===$n&&!ip&&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=up(!!t),o=e===$n&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${o}-${n}`}function sp(t){let e=a.useId(),[n]=a.useState(tt()),o=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${$n.prefix}`;return t||`${o}-${e}`}const cp=typeof a.useId=="function"?sp:ap;function dp(){return!1}function fp(){return!0}function pp(t){return()=>{}}function tt(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(pp,dp,fp):a.useContext(rp)}let bp=!!(typeof window<"u"&&window.document&&window.document.createElement),$t=new Map,Kt;typeof FinalizationRegistry<"u"&&(Kt=new FinalizationRegistry(t=>{$t.delete(t)}));function oe(t){let[e,n]=a.useState(t),o=a.useRef(null),l=cp(e),r=a.useRef(null);if(Kt&&Kt.register(r,l),bp){const i=$t.get(l);i&&!i.includes(o)?i.push(o):$t.set(l,[o])}return j(()=>{let i=l;return()=>{Kt&&Kt.unregister(r),$t.delete(i)}},[l]),a.useEffect(()=>{let i=o.current;return i&&n(i),()=>{i&&(o.current=null)}}),l}function vp(t,e){if(t===e)return t;let n=$t.get(t);if(n)return n.forEach(l=>l.current=e),e;let o=$t.get(e);return o?(o.forEach(l=>l.current=t),t):e}function Et(t=[]){let e=oe(),[n,o]=lp(e),l=a.useCallback(()=>{o(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,o]);return j(l,[e,l,...t]),n}function Me(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const W=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},me=t=>t&&"window"in t&&t.window===t?t:W(t).defaultView||window;function hp(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function mp(t){return hp(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let gp=!1;function Fn(){return gp}function J(t,e){if(!Fn())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:mp(n)?n=n.host:n=n.parentNode}return!1}const re=(t=document)=>{var e;if(!Fn())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function U(t){return Fn()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}class $p{get currentNode(){return this._currentNode}set currentNode(e){if(!J(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let o=e,l=e;for(this._currentNode=e;o&&o!==this.root;)if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=o,u=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});n.push(u),u.currentNode=l,this._currentSetFor.add(u),o=l=i.host}else o=o.parentNode;const r=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(r),r.currentNode=l,this._currentSetFor.add(r),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return J(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let l;if(typeof this.filter=="function"?l=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(l=this.filter.acceptNode(e)),l===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.nextNode();return o&&(this.currentNode=o),o}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let l=this.previousNode();return l&&(this.currentNode=l),l}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var o;let r;if(typeof this.filter=="function"?r=this.filter(n):!((o=this.filter)===null||o===void 0)&&o.acceptNode&&(r=this.filter.acceptNode(n)),r===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let i=this.lastChild();return i&&(this.currentNode=i),i}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let l=this.previousNode();return l&&(this.currentNode=l),l}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,o,l){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=i=>{if(i.nodeType===Node.ELEMENT_NODE){const s=i.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var u;if(typeof this.filter=="function")return this.filter(i);if(!((u=this.filter)===null||u===void 0)&&u.acceptNode)return this.filter.acceptNode(i);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=l??null,this.whatToShow=o??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,o,this._acceptNode));const r=n.shadowRoot;if(r){const i=this._doc.createTreeWalker(r,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(i)}}}function yp(t,e,n,o){return Fn()?new $p(t,e,n,o):t.createTreeWalker(e,n,o)}function fi(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(e=0;e<l;e++)t[e]&&(n=fi(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function xp(){for(var t,e,n=0,o="",l=arguments.length;n<l;n++)(t=arguments[n])&&(e=fi(t))&&(o&&(o+=" "),o+=e);return o}function z(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let o=t[n];for(let l in o){let r=e[l],i=o[l];typeof r=="function"&&typeof i=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?e[l]=Me(r,i):(l==="className"||l==="UNSAFE_className")&&typeof r=="string"&&typeof i=="string"?e[l]=xp(r,i):l==="id"&&r&&i?e.id=vp(r,i):e[l]=i!==void 0?i:r}}return e}function Ho(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const Cp=new Set(["id"]),Ep=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Sp=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Pp=/^(data-.*)$/;function X(t,e={}){let{labelable:n,isLink:o,propNames:l}=e,r={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(Cp.has(i)||n&&Ep.has(i)||o&&Sp.has(i)||l!=null&&l.has(i)||Pp.test(i))&&(r[i]=t[i]);return r}function Be(t){if(wp())t.focus({preventScroll:!0});else{let e=Dp(t);t.focus(),kp(e)}}let an=null;function wp(){if(an==null){an=!1;try{document.createElement("div").focus({get preventScroll(){return an=!0,!0}})}catch{}}return an}function Dp(t){let e=t.parentNode,n=[],o=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==o;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return o instanceof HTMLElement&&n.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),n}function kp(t){for(let{element:e,scrollTop:n,scrollLeft:o}of t)e.scrollTop=n,e.scrollLeft=o}function Ln(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function _o(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function We(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const et=We(function(){return _o(/^Mac/i)}),Tp=We(function(){return _o(/^iPhone/i)}),pi=We(function(){return _o(/^iPad/i)||et()&&navigator.maxTouchPoints>1}),In=We(function(){return Tp()||pi()}),vn=We(function(){return et()||In()}),Wo=We(function(){return Ln(/AppleWebKit/i)&&!bi()}),bi=We(function(){return Ln(/Chrome/i)}),Go=We(function(){return Ln(/Android/i)}),Bp=We(function(){return Ln(/Firefox/i)}),Ap=a.createContext({isNative:!0,open:Lp,useHref:t=>t});function wt(){return a.useContext(Ap)}function Rp(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function at(t,e,n=!0){var o,l;let{metaKey:r,ctrlKey:i,altKey:u,shiftKey:s}=e;Bp()&&(!((l=window.event)===null||l===void 0||(o=l.type)===null||o===void 0)&&o.startsWith("key"))&&t.target==="_blank"&&(et()?r=!0:i=!0);let c=Wo()&&et()&&!pi()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:u,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:u,shiftKey:s,bubbles:!0,cancelable:!0});at.isOpening=n,Be(t),t.dispatchEvent(c),at.isOpening=!1}at.isOpening=!1;function Fp(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function Lp(t,e){Fp(t,n=>at(n,e))}function vi(t){let e=wt();var n;const o=e.useHref((n=t.href)!==null&&n!==void 0?n:"");return{"data-href":t.href?o:void 0,"data-target":t.target,"data-rel":t.rel,"data-download":t.download,"data-ping":t.ping,"data-referrer-policy":t.referrerPolicy}}function hi(t){let e=wt();var n;const o=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?o:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let ht=new Map,Co=new Set;function ql(){if(typeof window>"u")return;function t(o){return"propertyName"in o}let e=o=>{if(!t(o)||!o.target)return;let l=ht.get(o.target);l||(l=new Set,ht.set(o.target,l),o.target.addEventListener("transitioncancel",n,{once:!0})),l.add(o.propertyName)},n=o=>{if(!t(o)||!o.target)return;let l=ht.get(o.target);if(l&&(l.delete(o.propertyName),l.size===0&&(o.target.removeEventListener("transitioncancel",n),ht.delete(o.target)),ht.size===0)){for(let r of Co)r();Co.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ql():document.addEventListener("DOMContentLoaded",ql));function mi(t){requestAnimationFrame(()=>{ht.size===0?t():Co.add(t)})}function Kn(){let t=a.useRef(new Map),e=a.useCallback((l,r,i,u)=>{let s=u!=null&&u.once?(...c)=>{t.current.delete(i),i(...c)}:i;t.current.set(i,{type:r,eventTarget:l,fn:s,options:u}),l.addEventListener(r,s,u)},[]),n=a.useCallback((l,r,i,u)=>{var s;let c=((s=t.current.get(i))===null||s===void 0?void 0:s.fn)||i;l.removeEventListener(r,c,u),t.current.delete(i)},[]),o=a.useCallback(()=>{t.current.forEach((l,r)=>{n(l.eventTarget,l.type,r,l.options)})},[n]);return a.useEffect(()=>o,[o]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:o}}function Vt(t,e){let{id:n,"aria-label":o,"aria-labelledby":l}=t;return n=oe(n),l&&o?l=[...new Set([n,...l.trim().split(/\s+/)])].join(" "):l&&(l=l.trim().split(/\s+/).join(" ")),!o&&!l&&e&&(o=e),{id:n,"aria-label":o,"aria-labelledby":l}}function be(t){const e=a.useRef(null);return a.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function gi(t,e){const n=a.useRef(!0),o=a.useRef(null);a.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),a.useEffect(()=>{let l=o.current;n.current?n.current=!1:(!l||e.some((r,i)=>!Object.is(r,l[i])))&&t(),o.current=e},e)}function Zl(t,e){const n=a.useRef(!0),o=a.useRef(null);j(()=>(n.current=!0,()=>{n.current=!1}),[]),j(()=>{n.current?n.current=!1:(!o.current||e.some((l,r)=>!Object.is(l,o[r])))&&t(),o.current=e},e)}function Ip(){return typeof window.ResizeObserver<"u"}function yn(t){const{ref:e,box:n,onResize:o}=t;a.useEffect(()=>{let l=e==null?void 0:e.current;if(l)if(Ip()){const r=new window.ResizeObserver(i=>{i.length&&o()});return r.observe(l,{box:n}),()=>{l&&r.unobserve(l)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[o,e,n])}function Uo(t,e){j(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function jt(t,e){if(!t)return!1;let n=window.getComputedStyle(t),o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return o&&e&&(o=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),o}function Ze(t,e){let n=t;for(jt(n,e)&&(n=n.parentElement);n&&!jt(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Kp(t,e){const n=[];for(;t&&t!==document.documentElement;)jt(t,e)&&n.push(t),t=t.parentElement;return n}let Mp=0;const to=new Map;function qo(t){let[e,n]=a.useState();return j(()=>{if(!t)return;let o=to.get(t);if(o)n(o.element.id);else{let l=`react-aria-description-${Mp++}`;n(l);let r=document.createElement("div");r.id=l,r.style.display="none",r.textContent=t,document.body.appendChild(r),o={refCount:0,element:r},to.set(t,o)}return o.refCount++,()=>{o&&--o.refCount===0&&(o.element.remove(),to.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Mt(t,e,n,o){let l=Q(n),r=n==null;a.useEffect(()=>{if(r||!t.current)return;let i=t.current;return i.addEventListener(e,l,o),()=>{i.removeEventListener(e,l,o)}},[t,e,o,r,l])}function $i(t,e){let n=Yl(t,e,"left"),o=Yl(t,e,"top"),l=e.offsetWidth,r=e.offsetHeight,i=t.scrollLeft,u=t.scrollTop,{borderTopWidth:s,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:b}=getComputedStyle(t),h=i+parseInt(c,10),g=u+parseInt(s,10),$=h+t.clientWidth,y=g+t.clientHeight,S=parseInt(d,10)||0,w=parseInt(p,10)||0,A=parseInt(f,10)||0,T=parseInt(b,10)||0;n<=i+T?i=n-parseInt(c,10)-T:n+l>$-A&&(i+=n+l-$+A),o<=g+S?u=o-parseInt(s,10)-S:o+r>y-w&&(u+=o+r-y+w),t.scrollLeft=i,t.scrollTop=u}function Yl(t,e,n){const o=n==="left"?"offsetLeft":"offsetTop";let l=0;for(;e.offsetParent&&(l+=e[o],e.offsetParent!==t);){if(e.offsetParent.contains(t)){l-=t[o];break}e=e.offsetParent}return l}function Ye(t,e){if(t&&document.contains(t)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let s=Kp(t);for(let c of s)$i(c,t)}else{var n;let{left:s,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:d,top:f}=t.getBoundingClientRect();if(Math.abs(s-d)>1||Math.abs(c-f)>1){var o,l,r;e==null||(l=e.containingElement)===null||l===void 0||(o=l.scrollIntoView)===null||o===void 0||o.call(l,{block:"center",inline:"center"}),(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"})}}}}function Eo(t){return t.mozInputSource===0&&t.isTrusted?!0:Go()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Np(t){return!Go()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Zo(t,e,n){let o=a.useRef(e),l=Q(()=>{n&&n(o.current)});a.useEffect(()=>{var r;let i=t==null||(r=t.current)===null||r===void 0?void 0:r.form;return i==null||i.addEventListener("reset",l),()=>{i==null||i.removeEventListener("reset",l)}},[t,l])}const yi="react-aria-clear-focus",So="react-aria-focus";function rt(t){return et()?t.metaKey:t.ctrlKey}function xi(t,e=!0){let[n,o]=a.useState(!0),l=n&&e;return j(()=>{if(l&&t.current&&"getAnimations"in t.current)for(let r of t.current.getAnimations())r instanceof CSSTransition&&r.cancel()},[t,l]),Ei(t,l,a.useCallback(()=>o(!1),[])),l}function Ci(t,e){let[n,o]=a.useState(e?"open":"closed");switch(n){case"open":e||o("exiting");break;case"closed":case"exiting":e&&o("open");break}let l=n==="exiting";return Ei(t,l,a.useCallback(()=>{o(r=>r==="exiting"?"closed":r)},[])),l}function Ei(t,e,n){j(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let o=t.current.getAnimations();if(o.length===0){n();return}let l=!1;return Promise.all(o.map(r=>r.finished)).then(()=>{l||dt.flushSync(()=>{n()})}).catch(()=>{}),()=>{l=!0}}},[t,e,n])}const Yo=["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"])'],zp=Yo.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Yo.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Op=Yo.join(':not([hidden]):not([tabindex="-1"]),');function Si(t){return t.matches(zp)}function Vp(t){return t.matches(Op)}function Ne(t,e,n){let[o,l]=a.useState(t||e),r=a.useRef(t!==void 0),i=t!==void 0;a.useEffect(()=>{let c=r.current;c!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),r.current=i},[i]);let u=i?t:o,s=a.useCallback((c,...d)=>{let f=(p,...b)=>{n&&(Object.is(u,p)||n(p,...b)),i||(u=p)};typeof c=="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"),l((b,...h)=>{let g=c(i?u:b,...h);return f(g,...d),i?b:g})):(i||l(c),f(c,...d))},[i,u,n]);return[u,s]}function xn(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}function Xo(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function Pi(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function wi(t){let e=a.useRef({isFocused:!1,observer:null});j(()=>{const o=e.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let n=Q(o=>{t==null||t(o)});return a.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){e.current.isFocused=!0;let l=o.target,r=i=>{if(e.current.isFocused=!1,l.disabled){let u=Xo(i);n(u)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};l.addEventListener("focusout",r,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&l.disabled){var i;(i=e.current.observer)===null||i===void 0||i.disconnect();let u=l===document.activeElement?null:document.activeElement;l.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),l.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),e.current.observer.observe(l,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Cn=!1;function Xl(t){for(;t&&!Si(t);)t=t.parentElement;let e=me(t),n=e.document.activeElement;if(!n||n===t)return;Cn=!0;let o=!1,l=d=>{(d.target===n||o)&&d.stopImmediatePropagation()},r=d=>{(d.target===n||o)&&(d.stopImmediatePropagation(),!t&&!o&&(o=!0,Be(n),s()))},i=d=>{(d.target===t||o)&&d.stopImmediatePropagation()},u=d=>{(d.target===t||o)&&(d.stopImmediatePropagation(),o||(o=!0,Be(n),s()))};e.addEventListener("blur",l,!0),e.addEventListener("focusout",r,!0),e.addEventListener("focusin",u,!0),e.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",l,!0),e.removeEventListener("focusout",r,!0),e.removeEventListener("focusin",u,!0),e.removeEventListener("focus",i,!0),Cn=!1,o=!1},c=requestAnimationFrame(s);return s}let mt="default",Po="",hn=new WeakMap;function Jl(t){if(In()){if(mt==="default"){const e=W(t);Po=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}mt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";hn.set(t,t.style[e]),t.style[e]="none"}}function no(t){if(In()){if(mt!=="disabled")return;mt="restoring",setTimeout(()=>{mi(()=>{if(mt==="restoring"){const e=W(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Po||""),Po="",mt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&hn.has(t)){let e=hn.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),hn.delete(t)}}const Ht=a.createContext({register:()=>{}});Ht.displayName="PressResponderContext";function jp(t,e){return e.get?e.get.call(t):e.value}function Di(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Hp(t,e){var n=Di(t,e,"get");return jp(t,n)}function _p(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wp(t,e,n){_p(t,e),e.set(t,n)}function Gp(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function Ql(t,e,n){var o=Di(t,e,"set");return Gp(t,o,n),n}function Up(t){let e=a.useContext(Ht);if(e){let{register:n,...o}=e;t=z(o,t),n()}return Uo(e,t.ref),t}var sn=new WeakMap;class cn{continuePropagation(){Ql(this,sn,!1)}get shouldStopPropagation(){return Hp(this,sn)}constructor(e,n,o,l){Wp(this,sn,{writable:!0,value:void 0}),Ql(this,sn,!0);var r;let i=(r=l==null?void 0:l.target)!==null&&r!==void 0?r:o.currentTarget;const u=i==null?void 0:i.getBoundingClientRect();let s,c=0,d,f=null;o.clientX!=null&&o.clientY!=null&&(d=o.clientX,f=o.clientY),u&&(d!=null&&f!=null?(s=d-u.left,c=f-u.top):(s=u.width/2,c=u.height/2)),this.type=e,this.pointerType=n,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey,this.x=s,this.y=c}}const er=Symbol("linkClicked");function st(t){let{onPress:e,onPressChange:n,onPressStart:o,onPressEnd:l,onPressUp:r,onClick:i,isDisabled:u,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...b}=Up(t),[h,g]=a.useState(!1),$=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:S}=Kn(),w=Q((v,D)=>{let K=$.current;if(u||K.didFirePressStart)return!1;let B=!0;if(K.isTriggeringEvent=!0,o){let N=new cn("pressstart",D,v);o(N),B=N.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,g(!0),B}),A=Q((v,D,K=!0)=>{let B=$.current;if(!B.didFirePressStart)return!1;B.didFirePressStart=!1,B.isTriggeringEvent=!0;let N=!0;if(l){let m=new cn("pressend",D,v);l(m),N=m.shouldStopPropagation}if(n&&n(!1),g(!1),e&&K&&!u){let m=new cn("press",D,v);e(m),N&&(N=m.shouldStopPropagation)}return B.isTriggeringEvent=!1,N}),T=Q((v,D)=>{let K=$.current;if(u)return!1;if(r){K.isTriggeringEvent=!0;let B=new cn("pressup",D,v);return r(B),K.isTriggeringEvent=!1,B.shouldStopPropagation}return!0}),C=Q(v=>{let D=$.current;if(D.isPressed&&D.target){D.didFirePressStart&&D.pointerType!=null&&A(bt(D.target,v),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,S(),f||no(D.target);for(let K of D.disposables)K();D.disposables=[]}}),I=Q(v=>{d&&C(v)}),R=Q(v=>{i==null||i(v)}),O=Q((v,D)=>{if(i){let K=new MouseEvent("click",v);Pi(K,D),i(Xo(K))}}),F=a.useMemo(()=>{let v=$.current,D={onKeyDown(B){if(oo(B.nativeEvent,B.currentTarget)&&J(B.currentTarget,U(B.nativeEvent))){var N;or(U(B.nativeEvent),B.key)&&B.preventDefault();let m=!0;if(!v.isPressed&&!B.repeat){v.target=B.currentTarget,v.isPressed=!0,v.pointerType="keyboard",m=w(B,"keyboard");let k=B.currentTarget,E=M=>{oo(M,k)&&!M.repeat&&J(k,U(M))&&v.target&&T(bt(v.target,M),"keyboard")};y(W(B.currentTarget),"keyup",Me(E,K),!0)}m&&B.stopPropagation(),B.metaKey&&et()&&((N=v.metaKeyEvents)===null||N===void 0||N.set(B.key,B.nativeEvent))}else B.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(B){if(!(B&&!J(B.currentTarget,U(B.nativeEvent)))&&B&&B.button===0&&!v.isTriggeringEvent&&!at.isOpening){let N=!0;if(u&&B.preventDefault(),!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Eo(B.nativeEvent))){let m=w(B,"virtual"),k=T(B,"virtual"),E=A(B,"virtual");R(B),N=m&&k&&E}else if(v.isPressed&&v.pointerType!=="keyboard"){let m=v.pointerType||B.nativeEvent.pointerType||"virtual";N=A(bt(B.currentTarget,B),m,!0),v.isOverTarget=!1,R(B),C(B)}v.ignoreEmulatedMouseEvents=!1,N&&B.stopPropagation()}}},K=B=>{var N;if(v.isPressed&&v.target&&oo(B,v.target)){var m;or(U(B),B.key)&&B.preventDefault();let E=U(B),M=J(v.target,U(B));A(bt(v.target,B),"keyboard",M),M&&O(B,v.target),S(),B.key!=="Enter"&&Jo(v.target)&&J(v.target,E)&&!B[er]&&(B[er]=!0,at(v.target,B,!1)),v.isPressed=!1,(m=v.metaKeyEvents)===null||m===void 0||m.delete(B.key)}else if(B.key==="Meta"&&(!((N=v.metaKeyEvents)===null||N===void 0)&&N.size)){var k;let E=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let M of E.values())(k=v.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",M))}};if(typeof PointerEvent<"u"){D.onPointerDown=m=>{if(m.button!==0||!J(m.currentTarget,U(m.nativeEvent)))return;if(Np(m.nativeEvent)){v.pointerType="virtual";return}v.pointerType=m.pointerType;let k=!0;if(!v.isPressed){v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=m.pointerId,v.target=m.currentTarget,f||Jl(v.target),k=w(m,v.pointerType);let E=U(m.nativeEvent);"releasePointerCapture"in E&&E.releasePointerCapture(m.pointerId),y(W(m.currentTarget),"pointerup",B,!1),y(W(m.currentTarget),"pointercancel",N,!1)}k&&m.stopPropagation()},D.onMouseDown=m=>{if(J(m.currentTarget,U(m.nativeEvent))&&m.button===0){if(c){let k=Xl(m.target);k&&v.disposables.push(k)}m.stopPropagation()}},D.onPointerUp=m=>{!J(m.currentTarget,U(m.nativeEvent))||v.pointerType==="virtual"||m.button===0&&T(m,v.pointerType||m.pointerType)},D.onPointerEnter=m=>{m.pointerId===v.activePointerId&&v.target&&!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,w(bt(v.target,m),v.pointerType))},D.onPointerLeave=m=>{m.pointerId===v.activePointerId&&v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,A(bt(v.target,m),v.pointerType,!1),I(m))};let B=m=>{if(m.pointerId===v.activePointerId&&v.isPressed&&m.button===0&&v.target){if(J(v.target,U(m))&&v.pointerType!=null){let k=!1,E=setTimeout(()=>{v.isPressed&&v.target instanceof HTMLElement&&(k?C(m):(Be(v.target),v.target.click()))},80);y(m.currentTarget,"click",()=>k=!0,!0),v.disposables.push(()=>clearTimeout(E))}else C(m);v.isOverTarget=!1}},N=m=>{C(m)};D.onDragStart=m=>{J(m.currentTarget,U(m.nativeEvent))&&C(m)}}else if(process.env.NODE_ENV==="test"){D.onMouseDown=m=>{if(m.button!==0||!J(m.currentTarget,U(m.nativeEvent)))return;if(v.ignoreEmulatedMouseEvents){m.stopPropagation();return}if(v.isPressed=!0,v.isOverTarget=!0,v.target=m.currentTarget,v.pointerType=Eo(m.nativeEvent)?"virtual":"mouse",dt.flushSync(()=>w(m,v.pointerType))&&m.stopPropagation(),c){let E=Xl(m.target);E&&v.disposables.push(E)}y(W(m.currentTarget),"mouseup",B,!1)},D.onMouseEnter=m=>{if(!J(m.currentTarget,U(m.nativeEvent)))return;let k=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,k=w(m,v.pointerType)),k&&m.stopPropagation()},D.onMouseLeave=m=>{if(!J(m.currentTarget,U(m.nativeEvent)))return;let k=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,k=A(m,v.pointerType,!1),I(m)),k&&m.stopPropagation()},D.onMouseUp=m=>{J(m.currentTarget,U(m.nativeEvent))&&!v.ignoreEmulatedMouseEvents&&m.button===0&&T(m,v.pointerType||"mouse")};let B=m=>{if(m.button===0){if(v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&v.target.contains(m.target)&&v.pointerType!=null||C(m),v.isOverTarget=!1}};D.onTouchStart=m=>{if(!J(m.currentTarget,U(m.nativeEvent)))return;let k=qp(m.nativeEvent);if(!k)return;v.activePointerId=k.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=m.currentTarget,v.pointerType="touch",f||Jl(v.target),w(qe(v.target,m),v.pointerType)&&m.stopPropagation(),y(me(m.currentTarget),"scroll",N,!0)},D.onTouchMove=m=>{if(!J(m.currentTarget,U(m.nativeEvent)))return;if(!v.isPressed){m.stopPropagation();return}let k=tr(m.nativeEvent,v.activePointerId),E=!0;k&&nr(k,m.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,E=w(qe(v.target,m),v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,E=A(qe(v.target,m),v.pointerType,!1),I(qe(v.target,m))),E&&m.stopPropagation()},D.onTouchEnd=m=>{if(!J(m.currentTarget,U(m.nativeEvent)))return;if(!v.isPressed){m.stopPropagation();return}let k=tr(m.nativeEvent,v.activePointerId),E=!0;k&&nr(k,m.currentTarget)&&v.pointerType!=null?(T(qe(v.target,m),v.pointerType),E=A(qe(v.target,m),v.pointerType),O(m.nativeEvent,v.target)):v.isOverTarget&&v.pointerType!=null&&(E=A(qe(v.target,m),v.pointerType,!1)),E&&m.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!f&&no(v.target),S()},D.onTouchCancel=m=>{J(m.currentTarget,U(m.nativeEvent))&&(m.stopPropagation(),v.isPressed&&C(qe(v.target,m)))};let N=m=>{v.isPressed&&J(U(m),v.target)&&C({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=m=>{J(m.currentTarget,U(m.nativeEvent))&&C(m)}}return D},[y,u,c,S,f,C,I,A,w,T,R,O]);return a.useEffect(()=>{let v=p==null?void 0:p.current;v&&v instanceof me(v).Element&&me(v).getComputedStyle(v).touchAction==="auto"&&(v.style.touchAction="pan-x pan-y pinch-zoom")},[p]),a.useEffect(()=>{let v=$.current;return()=>{var D;f||no((D=v.target)!==null&&D!==void 0?D:void 0);for(let K of v.disposables)K();v.disposables=[]}},[f]),{isPressed:s||h,pressProps:z(b,F)}}function Jo(t){return t.tagName==="A"&&t.hasAttribute("href")}function oo(t,e){const{key:n,code:o}=t,l=e,r=l.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||o==="Space")&&!(l instanceof me(l).HTMLInputElement&&!ki(l,n)||l instanceof me(l).HTMLTextAreaElement||l.isContentEditable)&&!((r==="link"||!r&&Jo(l))&&n!=="Enter")}function qp(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function tr(t,e){const n=t.changedTouches;for(let o=0;o<n.length;o++){const l=n[o];if(l.identifier===e)return l}return null}function qe(t,e){let n=0,o=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,o=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:o}}function bt(t,e){let n=e.clientX,o=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:o}}function Zp(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function Yp(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function nr(t,e){let n=e.getBoundingClientRect(),o=Zp(t);return Yp(n,o)}function Xp(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!Jo(t)}function or(t,e){return t instanceof HTMLInputElement?!ki(t,e):Xp(t)}const Jp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ki(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":Jp.has(t.type)}let _e=null,_t=new Set,Ot=new Map,ct=!1,wo=!1;const Qp={Tab:!0,Escape:!0};function Mn(t,e){for(let n of _t)n(t,e)}function eb(t){return!(t.metaKey||!et()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function En(t){ct=!0,eb(t)&&(_e="keyboard",Mn("keyboard",t))}function Se(t){_e="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(ct=!0,Mn("pointer",t))}function Ti(t){Eo(t)&&(ct=!0,_e="virtual")}function Bi(t){t.target===window||t.target===document||Cn||!t.isTrusted||(!ct&&!wo&&(_e="virtual",Mn("virtual",t)),ct=!1,wo=!1)}function Ai(){Cn||(ct=!1,wo=!0)}function Sn(t){if(typeof window>"u"||Ot.get(me(t)))return;const e=me(t),n=W(t);let o=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){ct=!0,o.apply(this,arguments)},n.addEventListener("keydown",En,!0),n.addEventListener("keyup",En,!0),n.addEventListener("click",Ti,!0),e.addEventListener("focus",Bi,!0),e.addEventListener("blur",Ai,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Se,!0),n.addEventListener("pointermove",Se,!0),n.addEventListener("pointerup",Se,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Se,!0),n.addEventListener("mousemove",Se,!0),n.addEventListener("mouseup",Se,!0)),e.addEventListener("beforeunload",()=>{Ri(t)},{once:!0}),Ot.set(e,{focus:o})}const Ri=(t,e)=>{const n=me(t),o=W(t);e&&o.removeEventListener("DOMContentLoaded",e),Ot.has(n)&&(n.HTMLElement.prototype.focus=Ot.get(n).focus,o.removeEventListener("keydown",En,!0),o.removeEventListener("keyup",En,!0),o.removeEventListener("click",Ti,!0),n.removeEventListener("focus",Bi,!0),n.removeEventListener("blur",Ai,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Se,!0),o.removeEventListener("pointermove",Se,!0),o.removeEventListener("pointerup",Se,!0)):process.env.NODE_ENV==="test"&&(o.removeEventListener("mousedown",Se,!0),o.removeEventListener("mousemove",Se,!0),o.removeEventListener("mouseup",Se,!0)),Ot.delete(n))};function tb(t){const e=W(t);let n;return e.readyState!=="loading"?Sn(t):(n=()=>{Sn(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ri(t,n)}typeof document<"u"&&tb();function St(){return _e!=="pointer"}function Pt(){return _e}function Fi(t){_e=t,Mn(t,null)}function Li(){Sn();let[t,e]=a.useState(_e);return a.useEffect(()=>{let n=()=>{e(_e)};return _t.add(n),()=>{_t.delete(n)}},[]),tt()?null:t}const nb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ob(t,e,n){let o=W(n==null?void 0:n.target);const l=typeof window<"u"?me(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,r=typeof window<"u"?me(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?me(n==null?void 0:n.target).HTMLElement:HTMLElement,u=typeof window<"u"?me(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||o.activeElement instanceof l&&!nb.has(o.activeElement.type)||o.activeElement instanceof r||o.activeElement instanceof i&&o.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof u&&!Qp[n.key])}function lb(t,e,n){Sn(),a.useEffect(()=>{let o=(l,r)=>{ob(!!(n!=null&&n.isTextInput),l,r)&&t(St())};return _t.add(o),()=>{_t.delete(o)}},e)}function he(t){const e=W(t),n=re(e);if(Pt()==="virtual"){let o=n;mi(()=>{re(e)===o&&t.isConnected&&Be(t)})}else Be(t)}function Ii(t){let{isDisabled:e,onFocus:n,onBlur:o,onFocusChange:l}=t;const r=a.useCallback(s=>{if(s.target===s.currentTarget)return o&&o(s),l&&l(!1),!0},[o,l]),i=wi(r),u=a.useCallback(s=>{const c=W(s.target),d=c?re(c):re();s.target===s.currentTarget&&d===U(s.nativeEvent)&&(n&&n(s),l&&l(!0),i(s))},[l,n,i]);return{focusProps:{onFocus:!e&&(n||l||o)?u:void 0,onBlur:!e&&(o||l)?r:void 0}}}function lr(t){if(!t)return;let e=!0;return n=>{let o={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(o),e&&n.stopPropagation()}}function rb(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:lr(t.onKeyDown),onKeyUp:lr(t.onKeyUp)}}}let Pn=a.createContext(null);function ib(t){let e=a.useContext(Pn)||{};Uo(e,t);let{ref:n,...o}=e;return o}const ub=a.forwardRef(function(e,n){let{children:o,...l}=e,r=be(n),i={...l,ref:r};return a.createElement(Pn.Provider,{value:i},o)});function ft(t,e){let{focusProps:n}=Ii(t),{keyboardProps:o}=rb(t),l=z(n,o),r=ib(e),i=t.isDisabled?{}:r,u=a.useRef(t.autoFocus);a.useEffect(()=>{u.current&&e.current&&he(e.current),u.current=!1},[e]);let s=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(s=void 0),{focusableProps:z({...l,tabIndex:s},i)}}const ab=a.forwardRef(({children:t,...e},n)=>{let o=a.useRef(!1),l=a.useContext(Ht);n=be(n||(l==null?void 0:l.ref));let r=z(l||{},{...e,ref:n,register(){o.current=!0,l&&l.register()}});return Uo(l,n),a.useEffect(()=>{o.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."),o.current=!0)},[]),a.createElement(Ht.Provider,{value:r},t)});function sb({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(Ht.Provider,{value:e},t)}function Ut(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:l}=t,r=a.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:u}=Kn(),s=a.useCallback(f=>{f.currentTarget.contains(f.target)&&r.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(r.current.isFocusWithin=!1,u(),n&&n(f),l&&l(!1))},[n,l,r,u]),c=wi(s),d=a.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const p=W(f.target),b=re(p);if(!r.current.isFocusWithin&&b===U(f.nativeEvent)){o&&o(f),l&&l(!0),r.current.isFocusWithin=!0,c(f);let h=f.currentTarget;i(p,"focus",g=>{if(r.current.isFocusWithin&&!J(h,g.target)){let $=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});Pi($,h);let y=Xo($);s(y)}},{capture:!0})}},[o,l,c,i,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let wn=!1,lo=0;function Do(){wn=!0,setTimeout(()=>{wn=!1},50)}function rr(t){t.pointerType==="touch"&&Do()}function cb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",rr):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Do),lo++,()=>{lo--,!(lo>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",rr):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Do))}}function Ge(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:o,isDisabled:l}=t,[r,i]=a.useState(!1),u=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(cb,[]);let{addGlobalListener:s,removeAllGlobalListeners:c}=Kn(),{hoverProps:d,triggerHoverEnd:f}=a.useMemo(()=>{let p=(g,$)=>{if(u.pointerType=$,l||$==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let y=g.currentTarget;u.target=y,s(W(g.target),"pointerover",S=>{u.isHovered&&u.target&&!J(u.target,S.target)&&b(S,S.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:y,pointerType:$}),n&&n(!0),i(!0)},b=(g,$)=>{let y=u.target;u.pointerType="",u.target=null,!($==="touch"||!u.isHovered||!y)&&(u.isHovered=!1,c(),o&&o({type:"hoverend",target:y,pointerType:$}),n&&n(!1),i(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=g=>{wn&&g.pointerType==="mouse"||p(g,g.pointerType)},h.onPointerLeave=g=>{!l&&g.currentTarget.contains(g.target)&&b(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(h.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!wn&&p(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=g=>{!l&&g.currentTarget.contains(g.target)&&b(g,"mouse")}),{hoverProps:h,triggerHoverEnd:b}},[e,n,o,l,u,s,c]);return a.useEffect(()=>{l&&f({currentTarget:u.target},u.pointerType)},[l]),{hoverProps:d,isHovered:r}}function db(t){let{ref:e,onInteractOutside:n,isDisabled:o,onInteractOutsideStart:l}=t,r=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Q(s=>{n&&dn(s,e)&&(l&&l(s),r.current.isPointerDown=!0)}),u=Q(s=>{n&&n(s)});a.useEffect(()=>{let s=r.current;if(o)return;const c=e.current,d=W(c);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&dn(p,e)&&u(p),s.isPointerDown=!1};return d.addEventListener("pointerdown",i,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",i,!0),d.removeEventListener("pointerup",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=b=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&dn(b,e)&&u(b),s.isPointerDown=!1},p=b=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&dn(b,e)&&u(b),s.isPointerDown=!1};return d.addEventListener("mousedown",i,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",i,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",i,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",i,!0),d.removeEventListener("touchend",p,!0)}}},[e,o,i,u])}function dn(t,e){if(t.button>0)return!1;if(t.target){const n=t.target.ownerDocument;if(!n||!n.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const fb=500;function Ki(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:o,onLongPress:l,threshold:r=fb,accessibilityDescription:i}=t;const u=a.useRef(void 0);let{addGlobalListener:s,removeGlobalListener:c}=Kn(),{pressProps:d}=st({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),u.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),W(p.target).activeElement!==p.target&&Be(p.target),l&&l({...p,type:"longpress"}),u.current=void 0},r),p.pointerType==="touch")){let b=h=>{h.preventDefault()};s(p.target,"contextmenu",b,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(p){u.current&&clearTimeout(u.current),o&&(p.pointerType==="mouse"||p.pointerType==="touch")&&o({...p,type:"longpressend"})}}),f=qo(l&&!e?i:void 0);return{longPressProps:z(d,f)}}function pb(t,e){let{elementType:n="a",onPress:o,onPressStart:l,onPressEnd:r,onClick:i,isDisabled:u,...s}=t,c={};n!=="a"&&(c={role:"link",tabIndex:u?void 0:0});let{focusableProps:d}=ft(t,e),{pressProps:f,isPressed:p}=st({onPress:o,onPressStart:l,onPressEnd:r,onClick:i,isDisabled:u,ref:e}),b=X(s,{labelable:!0}),h=z(d,f),g=wt(),$=hi(t);return{isPressed:p,linkProps:z(b,$,{...h,...c,"aria-disabled":u||void 0,"aria-current":t["aria-current"],onClick:y=>{var S;(S=f.onClick)===null||S===void 0||S.call(f,y),!g.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&Rp(y.currentTarget,y)&&t.href&&(y.preventDefault(),g.open(y.currentTarget,y,t.href,t.routerOptions))}})}}const bb=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),vb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function hb(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),o=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(o)return o.direction==="rtl";if(n.script)return bb.has(n.script)}let e=t.split("-")[0];return vb.has(e)}const mb=Symbol.for("react-aria.i18n.locale");function Mi(){let t=typeof window<"u"&&window[mb]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:hb(t)?"rtl":"ltr"}}let ko=Mi(),Nt=new Set;function ir(){ko=Mi();for(let t of Nt)t(ko)}function gb(){let t=tt(),[e,n]=a.useState(ko);return a.useEffect(()=>(Nt.size===0&&window.addEventListener("languagechange",ir),Nt.add(n),()=>{Nt.delete(n),Nt.size===0&&window.removeEventListener("languagechange",ir)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const $b=a.createContext(null);function ze(){let t=gb();return a.useContext($b)||t}const yb=Symbol.for("react-aria.i18n.locale"),xb=Symbol.for("react-aria.i18n.strings");let vt;class Nn{getStringForLocale(e,n){let l=this.getStringsForLocale(n)[e];if(!l)throw new Error(`Could not find intl message ${e} in ${n} locale`);return l}getStringsForLocale(e){let n=this.strings[e];return n||(n=Cb(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[yb];if(vt===void 0){let l=window[xb];if(!l)return null;vt={};for(let r in l)vt[r]=new Nn({[n]:l[r]},n)}let o=vt==null?void 0:vt[e];if(!o)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,o])=>o)),this.defaultLocale=n}}function Cb(t,e,n="en-US"){if(e[t])return e[t];let o=Eb(t);if(e[o])return e[o];for(let l in e)if(l.startsWith(o+"-"))return e[l];return e[n]}function Eb(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ur=new Map,ar=new Map;class Sb{format(e,n){let o=this.strings.getStringForLocale(e,this.locale);return typeof o=="function"?o(n,this):o}plural(e,n,o="cardinal"){let l=n["="+e];if(l)return typeof l=="function"?l():l;let r=this.locale+":"+o,i=ur.get(r);i||(i=new Intl.PluralRules(this.locale,{type:o}),ur.set(r,i));let u=i.select(e);return l=n[u]||n.other,typeof l=="function"?l():l}number(e){let n=ar.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ar.set(this.locale,n)),n.format(e)}select(e,n){let o=e[n]||e.other;return typeof o=="function"?o():o}constructor(e,n){this.locale=e,this.strings=n}}const sr=new WeakMap;function Pb(t){let e=sr.get(t);return e||(e=new Nn(t),sr.set(t,e)),e}function wb(t,e){return e&&Nn.getGlobalDictionaryForPackage(e)||Pb(t)}function nt(t,e){let{locale:n}=ze(),o=wb(t,e);return a.useMemo(()=>new Sb(n,o),[n,o])}let ro=new Map,To=!1;try{To=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Dn=!1;try{Dn=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Ni={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Db{format(e){let n="";if(!To&&this.options.signDisplay!=null?n=Tb(this.numberFormatter,this.options.signDisplay,e):n=this.numberFormatter.format(e),this.options.style==="unit"&&!Dn){var o;let{unit:l,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!l)return n;let u=(o=Ni[l])===null||o===void 0?void 0:o[r];n+=u[i]||u.default}return n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,n);if(n<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(n)}`}formatRangeToParts(e,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,n);if(n<e)throw new RangeError("End date must be >= start date");let o=this.numberFormatter.formatToParts(e),l=this.numberFormatter.formatToParts(n);return[...o.map(r=>({...r,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...l.map(r=>({...r,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!To&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Dn&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,n={}){this.numberFormatter=kb(e,n),this.options=n}}function kb(t,e={}){let{numberingSystem:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),e.style==="unit"&&!Dn){var o;let{unit:i,unitDisplay:u="short"}=e;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((o=Ni[i])===null||o===void 0)&&o[u]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${u}`);e={...e,style:"decimal"}}let l=t+(e?Object.entries(e).sort((i,u)=>i[0]<u[0]?-1:1).join():"");if(ro.has(l))return ro.get(l);let r=new Intl.NumberFormat(t,e);return ro.set(l,r),r}function Tb(t,e,n){if(e==="auto")return t.format(n);if(e==="never")return t.format(Math.abs(n));{let o=!1;if(e==="always"?o=n>0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):o=n>0),o){let l=t.format(-n),r=t.format(n),i=l.replace(r,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),l.replace(r,"!!!").replace(i,"+").replace("!!!",r)}else return t.format(n)}}function Bb(t={}){let{locale:e}=ze();return a.useMemo(()=>new Db(e,t),[e,t])}let io=new Map;function zn(t){let{locale:e}=ze(),n=e+(t?Object.entries(t).sort((l,r)=>l[0]<r[0]?-1:1).join():"");if(io.has(n))return io.get(n);let o=new Intl.Collator(e,t);return io.set(n,o),o}function zi(t){let e=zn({usage:"search",...t}),n=a.useCallback((r,i)=>i.length===0?!0:(r=r.normalize("NFC"),i=i.normalize("NFC"),e.compare(r.slice(0,i.length),i)===0),[e]),o=a.useCallback((r,i)=>i.length===0?!0:(r=r.normalize("NFC"),i=i.normalize("NFC"),e.compare(r.slice(-i.length),i)===0),[e]),l=a.useCallback((r,i)=>{if(i.length===0)return!0;r=r.normalize("NFC"),i=i.normalize("NFC");let u=0,s=i.length;for(;u+s<=r.length;u++){let c=r.slice(u,u+s);if(e.compare(i,c)===0)return!0}return!1},[e]);return a.useMemo(()=>({startsWith:n,endsWith:o,contains:l}),[n,o,l])}function On(t,e){let{elementType:n="button",isDisabled:o,onPress:l,onPressStart:r,onPressEnd:i,onPressUp:u,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:b,rel:h,type:g="button"}=t,$;n==="button"?$={type:g,disabled:o}:$={role:"button",href:n==="a"&&!o?p:void 0,target:n==="a"?b:void 0,type:n==="input"?g:void 0,disabled:n==="input"?o:void 0,"aria-disabled":!o||n==="input"?void 0:o,rel:n==="a"?h:void 0};let{pressProps:y,isPressed:S}=st({onPressStart:r,onPressEnd:i,onPressChange:s,onPress:l,onPressUp:u,onClick:f,isDisabled:o,preventFocusOnPress:c,ref:e}),{focusableProps:w}=ft(t,e);d&&(w.tabIndex=o?-1:w.tabIndex);let A=z(w,y,X(t,{labelable:!0}));return{isPressed:S,buttonProps:z($,A,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"]})}}function Oi(t,e,n){const{isSelected:o}=e,{isPressed:l,buttonProps:r}=On({...t,onPress:Me(e.toggle,t.onPress)},n);return{isPressed:l,isSelected:o,isDisabled:t.isDisabled||!1,buttonProps:z(r,{"aria-pressed":o})}}function Ab(t){const e=me(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:o}=t.style,l=n!=="none"&&o!=="hidden"&&o!=="collapse";if(l){const{getComputedStyle:r}=t.ownerDocument.defaultView;let{display:i,visibility:u}=r(t);l=i!=="none"&&u!=="hidden"&&u!=="collapse"}return l}function Rb(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Vi(t,e){return t.nodeName!=="#comment"&&Ab(t)&&Rb(t,e)&&(!t.parentElement||Vi(t.parentElement,t))}const cr=a.createContext(null),Bo="react-aria-focus-scope-restore";let Y=null;function ji(t){let{children:e,contain:n,restoreFocus:o,autoFocus:l}=t,r=a.useRef(null),i=a.useRef(null),u=a.useRef([]),{parentNode:s}=a.useContext(cr)||{},c=a.useMemo(()=>new Ro({scopeRef:u}),[u]);j(()=>{let p=s||le.root;if(le.getTreeNode(p.scopeRef)&&Y&&!kn(Y,p.scopeRef)){let b=le.getTreeNode(Y);b&&(p=b)}p.addChild(c),le.addNode(c)},[c,s]),j(()=>{let p=le.getTreeNode(u);p&&(p.contain=!!n)},[n]),j(()=>{var p;let b=(p=r.current)===null||p===void 0?void 0:p.nextSibling,h=[],g=$=>$.stopPropagation();for(;b&&b!==i.current;)h.push(b),b.addEventListener(Bo,g),b=b.nextSibling;return u.current=h,()=>{for(let $ of h)$.removeEventListener(Bo,g)}},[e]),Mb(u,o,n),Lb(u,n),Nb(u,o,n),Kb(u,l),a.useEffect(()=>{const p=re(W(u.current?u.current[0]:void 0));let b=null;if(Pe(p,u.current)){for(let h of le.traverse())h.scopeRef&&Pe(p,h.scopeRef.current)&&(b=h);b===le.getTreeNode(u)&&(Y=b.scopeRef)}},[u]),j(()=>()=>{var p,b,h;let g=(h=(b=le.getTreeNode(u))===null||b===void 0||(p=b.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&h!==void 0?h:null;(u===Y||kn(u,Y))&&(!g||le.getTreeNode(g))&&(Y=g),le.removeTreeNode(u)},[u]);let d=a.useMemo(()=>Fb(u),[]),f=a.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return a.createElement(cr.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:r}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function Fb(t){return{focusNext(e={}){let n=t.current,{from:o,tabbable:l,wrap:r,accept:i}=e;var u;let s=o||re(W((u=n[0])!==null&&u!==void 0?u:void 0)),c=n[0].previousElementSibling,d=ut(n),f=ve(d,{tabbable:l,accept:i},n);f.currentNode=Pe(s,n)?s:c;let p=f.nextNode();return!p&&r&&(f.currentNode=c,p=f.nextNode()),p&&xe(p,!0),p},focusPrevious(e={}){let n=t.current,{from:o,tabbable:l,wrap:r,accept:i}=e;var u;let s=o||re(W((u=n[0])!==null&&u!==void 0?u:void 0)),c=n[n.length-1].nextElementSibling,d=ut(n),f=ve(d,{tabbable:l,accept:i},n);f.currentNode=Pe(s,n)?s:c;let p=f.previousNode();return!p&&r&&(f.currentNode=c,p=f.previousNode()),p&&xe(p,!0),p},focusFirst(e={}){let n=t.current,{tabbable:o,accept:l}=e,r=ut(n),i=ve(r,{tabbable:o,accept:l},n);i.currentNode=n[0].previousElementSibling;let u=i.nextNode();return u&&xe(u,!0),u},focusLast(e={}){let n=t.current,{tabbable:o,accept:l}=e,r=ut(n),i=ve(r,{tabbable:o,accept:l},n);i.currentNode=n[n.length-1].nextElementSibling;let u=i.previousNode();return u&&xe(u,!0),u}}}function ut(t){return t[0].parentElement}function zt(t){let e=le.getTreeNode(Y);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Lb(t,e){let n=a.useRef(void 0),o=a.useRef(void 0);j(()=>{let l=t.current;if(!e){o.current&&(cancelAnimationFrame(o.current),o.current=void 0);return}const r=W(l?l[0]:void 0);let i=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!zt(t)||c.isComposing)return;let d=re(r),f=t.current;if(!f||!Pe(d,f))return;let p=ut(f),b=ve(p,{tabbable:!0},f);if(!d)return;b.currentNode=d;let h=c.shiftKey?b.previousNode():b.nextNode();h||(b.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,h=c.shiftKey?b.previousNode():b.nextNode()),c.preventDefault(),h&&xe(h,!0)},u=c=>{(!Y||kn(Y,t))&&Pe(U(c),t.current)?(Y=t,n.current=U(c)):zt(t)&&!Xe(U(c),t)?n.current?n.current.focus():Y&&Y.current&&Ao(Y.current):zt(t)&&(n.current=U(c))},s=c=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{let d=Pt(),f=(d==="virtual"||d===null)&&Go()&&bi(),p=re(r);if(!f&&p&&zt(t)&&!Xe(p,t)){Y=t;let h=U(c);if(h&&h.isConnected){var b;n.current=h,(b=n.current)===null||b===void 0||b.focus()}else Y.current&&Ao(Y.current)}})};return r.addEventListener("keydown",i,!1),r.addEventListener("focusin",u,!1),l==null||l.forEach(c=>c.addEventListener("focusin",u,!1)),l==null||l.forEach(c=>c.addEventListener("focusout",s,!1)),()=>{r.removeEventListener("keydown",i,!1),r.removeEventListener("focusin",u,!1),l==null||l.forEach(c=>c.removeEventListener("focusin",u,!1)),l==null||l.forEach(c=>c.removeEventListener("focusout",s,!1))}},[t,e]),j(()=>()=>{o.current&&cancelAnimationFrame(o.current)},[o])}function Hi(t){return Xe(t)}function Pe(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function Xe(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of le.traverse(le.getTreeNode(e)))if(n&&Pe(t,n.current))return!0;return!1}function Ib(t){return Xe(t,Y)}function kn(t,e){var n;let o=(n=le.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;o;){if(o.scopeRef===t)return!0;o=o.parent}return!1}function xe(t,e=!1){if(t!=null&&!e)try{he(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function _i(t,e=!0){let n=t[0].previousElementSibling,o=ut(t),l=ve(o,{tabbable:e},t);l.currentNode=n;let r=l.nextNode();return e&&!r&&(o=ut(t),l=ve(o,{tabbable:!1},t),l.currentNode=n,r=l.nextNode()),r}function Ao(t,e=!0){xe(_i(t,e))}function Kb(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){Y=t;const o=W(t.current?t.current[0]:void 0);!Pe(re(o),Y.current)&&t.current&&Ao(t.current)}n.current=!1},[t])}function Mb(t,e,n){j(()=>{if(e||n)return;let o=t.current;const l=W(o?o[0]:void 0);let r=i=>{let u=U(i);Pe(u,t.current)?Y=t:Hi(u)||(Y=null)};return l.addEventListener("focusin",r,!1),o==null||o.forEach(i=>i.addEventListener("focusin",r,!1)),()=>{l.removeEventListener("focusin",r,!1),o==null||o.forEach(i=>i.removeEventListener("focusin",r,!1))}},[t,e,n])}function dr(t){let e=le.getTreeNode(Y);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function Nb(t,e,n){const o=a.useRef(typeof document<"u"?re(W(t.current?t.current[0]:void 0)):null);j(()=>{let l=t.current;const r=W(l?l[0]:void 0);if(!e||n)return;let i=()=>{(!Y||kn(Y,t))&&Pe(re(r),t.current)&&(Y=t)};return r.addEventListener("focusin",i,!1),l==null||l.forEach(u=>u.addEventListener("focusin",i,!1)),()=>{r.removeEventListener("focusin",i,!1),l==null||l.forEach(u=>u.removeEventListener("focusin",i,!1))}},[t,n]),j(()=>{const l=W(t.current?t.current[0]:void 0);if(!e)return;let r=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!zt(t)||i.isComposing)return;let u=l.activeElement;if(!Xe(u,t)||!dr(t))return;let s=le.getTreeNode(t);if(!s)return;let c=s.nodeToRestore,d=ve(l.body,{tabbable:!0});d.currentNode=u;let f=i.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===l.body)&&(c=void 0,s.nodeToRestore=void 0),(!f||!Xe(f,t))&&c){d.currentNode=c;do f=i.shiftKey?d.previousNode():d.nextNode();while(Xe(f,t));i.preventDefault(),i.stopPropagation(),f?xe(f,!0):Hi(c)?xe(c,!0):u.blur()}};return n||l.addEventListener("keydown",r,!0),()=>{n||l.removeEventListener("keydown",r,!0)}},[t,e,n]),j(()=>{const l=W(t.current?t.current[0]:void 0);if(!e)return;let r=le.getTreeNode(t);if(r){var i;return r.nodeToRestore=(i=o.current)!==null&&i!==void 0?i:void 0,()=>{let u=le.getTreeNode(t);if(!u)return;let s=u.nodeToRestore,c=re(l);if(e&&s&&(c&&Xe(c,t)||c===l.body&&dr(t))){let d=le.clone();requestAnimationFrame(()=>{if(l.activeElement===l.body){let f=d.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){fr(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&le.getTreeNode(f.scopeRef)){let p=_i(f.scopeRef.current,!0);fr(p);return}f=f.parent}}})}}}},[t,e])}function fr(t){t.dispatchEvent(new CustomEvent(Bo,{bubbles:!0,cancelable:!0}))&&xe(t)}function ve(t,e,n){let o=e!=null&&e.tabbable?Vp:Si,l=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,r=W(l),i=yp(r,t||r,NodeFilter.SHOW_ELEMENT,{acceptNode(u){var s;return!(e==null||(s=e.from)===null||s===void 0)&&s.contains(u)?NodeFilter.FILTER_REJECT:o(u)&&Vi(u)&&(!n||Pe(u,n))&&(!(e!=null&&e.accept)||e.accept(u))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}function zb(t,e={}){return{focusNext(n={}){let o=t.current;if(!o)return null;let{from:l,tabbable:r=e.tabbable,wrap:i=e.wrap,accept:u=e.accept}=n,s=l||re(W(o)),c=ve(o,{tabbable:r,accept:u});o.contains(s)&&(c.currentNode=s);let d=c.nextNode();return!d&&i&&(c.currentNode=o,d=c.nextNode()),d&&xe(d,!0),d},focusPrevious(n=e){let o=t.current;if(!o)return null;let{from:l,tabbable:r=e.tabbable,wrap:i=e.wrap,accept:u=e.accept}=n,s=l||re(W(o)),c=ve(o,{tabbable:r,accept:u});if(o.contains(s))c.currentNode=s;else{let f=uo(c);return f&&xe(f,!0),f??null}let d=c.previousNode();if(!d&&i){c.currentNode=o;let f=uo(c);if(!f)return null;d=f}return d&&xe(d,!0),d??null},focusFirst(n=e){let o=t.current;if(!o)return null;let{tabbable:l=e.tabbable,accept:r=e.accept}=n,u=ve(o,{tabbable:l,accept:r}).nextNode();return u&&xe(u,!0),u},focusLast(n=e){let o=t.current;if(!o)return null;let{tabbable:l=e.tabbable,accept:r=e.accept}=n,i=ve(o,{tabbable:l,accept:r}),u=uo(i);return u&&xe(u,!0),u??null}}}function uo(t){let e,n;do n=t.lastChild(),n&&(e=n);while(n);return e}class Qo{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,o){let l=this.fastMap.get(n??null);if(!l)return;let r=new Ro({scopeRef:e});l.addChild(r),r.parent=l,this.fastMap.set(e,r),o&&(r.nodeToRestore=o)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let o=n.parent;for(let r of this.traverse())r!==n&&n.nodeToRestore&&r.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Pe(r.nodeToRestore,n.scopeRef.current)&&(r.nodeToRestore=n.nodeToRestore);let l=n.children;o&&(o.removeChild(n),l.size>0&&l.forEach(r=>o&&o.addChild(r))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Qo;var o;for(let l of this.traverse())n.addTreeNode(l.scopeRef,(o=(e=l.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&o!==void 0?o:null,l.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ro({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ro{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let le=new Qo;function we(t={}){let{autoFocus:e=!1,isTextInput:n,within:o}=t,l=a.useRef({isFocused:!1,isFocusVisible:e||St()}),[r,i]=a.useState(!1),[u,s]=a.useState(()=>l.current.isFocused&&l.current.isFocusVisible),c=a.useCallback(()=>s(l.current.isFocused&&l.current.isFocusVisible),[]),d=a.useCallback(b=>{l.current.isFocused=b,i(b),c()},[c]);lb(b=>{l.current.isFocusVisible=b,c()},[],{isTextInput:n});let{focusProps:f}=Ii({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=Ut({isDisabled:!o,onFocusWithinChange:d});return{isFocused:r,isFocusVisible:u,focusProps:o?p:f}}function Ob(t,e){let n=e==null?void 0:e.isDisabled,[o,l]=a.useState(!1);return j(()=>{if(t!=null&&t.current&&!n){let r=()=>{if(t.current){let u=ve(t.current,{tabbable:!0});l(!!u.nextNode())}};r();let i=new MutationObserver(r);return i.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),n?!1:o}function el(t){let e=Vb(W(t));e!==t&&(e&&Fo(e,t),t&&tl(t,e))}function Fo(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function tl(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Vb(t){let e=re(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}function jb(t,e){const{"aria-label":n,"aria-labelledby":o,orientation:l="horizontal"}=t;let[r,i]=a.useState(!1);j(()=>{var h;i(!!(e.current&&(!((h=e.current.parentElement)===null||h===void 0)&&h.closest('[role="toolbar"]'))))});const{direction:u}=ze(),s=u==="rtl"&&l==="horizontal";let c=zb(e);const d=h=>{if(h.currentTarget.contains(h.target)){if(l==="horizontal"&&h.key==="ArrowRight"||l==="vertical"&&h.key==="ArrowDown")s?c.focusPrevious():c.focusNext();else if(l==="horizontal"&&h.key==="ArrowLeft"||l==="vertical"&&h.key==="ArrowUp")s?c.focusNext():c.focusPrevious();else if(h.key==="Tab"){h.stopPropagation(),f.current=document.activeElement,h.shiftKey?c.focusFirst():c.focusLast();return}else return;h.stopPropagation(),h.preventDefault()}},f=a.useRef(null),p=h=>{!h.currentTarget.contains(h.relatedTarget)&&!f.current&&(f.current=h.target)},b=h=>{var g;if(f.current&&!h.currentTarget.contains(h.relatedTarget)&&(!((g=e.current)===null||g===void 0)&&g.contains(h.target))){var $;($=f.current)===null||$===void 0||$.focus(),f.current=null}};return{toolbarProps:{...X(t,{labelable:!0}),role:r?"group":"toolbar","aria-orientation":l,"aria-label":n,"aria-labelledby":n==null?o:void 0,onKeyDownCapture:r?void 0:d,onFocusCapture:r?void 0:b,onBlurCapture:r?void 0:p}}}function Hb(t,e,n){let{isDisabled:o}=t,{toolbarProps:l}=jb(t,n);return{groupProps:{...l,role:e.selectionMode==="single"?"radiogroup":l.role,"aria-disabled":o}}}function _b(t,e,n){let o={isSelected:e.selectedKeys.has(t.id),setSelected(s){e.setSelected(t.id,s)},toggle(){e.toggleKey(t.id)}},{isPressed:l,isSelected:r,isDisabled:i,buttonProps:u}=Oi({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},o,n);return e.selectionMode==="single"&&(u.role="radio",u["aria-checked"]=o.isSelected,delete u["aria-pressed"]),{isPressed:l,isSelected:r,isDisabled:i,buttonProps:u}}const Wi=7e3;let Fe=null;function yt(t,e="assertive",n=Wi){Fe?Fe.announce(t,e,n):(Fe=new Wb,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Fe.announce(t,e,n):setTimeout(()=>{Fe!=null&&Fe.isAttached()&&(Fe==null||Fe.announce(t,e,n))},100))}class Wb{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",o=Wi){var l,r;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,n==="assertive"?(l=this.assertiveLog)===null||l===void 0||l.appendChild(i):(r=this.politeLog)===null||r===void 0||r.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},o)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Gi={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ui={...Gi,customError:!0,valid:!1},Rt={isInvalid:!1,validationDetails:Gi,validationErrors:[]},Gb=a.createContext({}),Tn="__formValidationState"+Date.now();function Vn(t){if(t[Tn]){let{realtimeValidation:e,displayValidation:n,updateValidation:o,resetValidation:l,commitValidation:r}=t[Tn];return{realtimeValidation:e,displayValidation:n,updateValidation:o,resetValidation:l,commitValidation:r}}return Ub(t)}function Ub(t){let{isInvalid:e,validationState:n,name:o,value:l,builtinValidation:r,validate:i,validationBehavior:u="aria"}=t;n&&(e||(e=n==="invalid"));let s=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:Ui}:null,c=a.useMemo(()=>{if(!i||l==null)return null;let F=qb(i,l);return pr(F)},[i,l]);r!=null&&r.validationDetails.valid&&(r=void 0);let d=a.useContext(Gb),f=a.useMemo(()=>o?Array.isArray(o)?o.flatMap(F=>Lo(d[F])):Lo(d[o]):[],[d,o]),[p,b]=a.useState(d),[h,g]=a.useState(!1);d!==p&&(b(d),g(!1));let $=a.useMemo(()=>pr(h?[]:f),[h,f]),y=a.useRef(Rt),[S,w]=a.useState(Rt),A=a.useRef(Rt),T=()=>{if(!C)return;I(!1);let F=c||r||y.current;ao(F,A.current)||(A.current=F,w(F))},[C,I]=a.useState(!1);return a.useEffect(T),{realtimeValidation:s||$||c||r||Rt,displayValidation:u==="native"?s||$||S:s||$||c||r||S,updateValidation(F){u==="aria"&&!ao(S,F)?w(F):y.current=F},resetValidation(){let F=Rt;ao(F,A.current)||(A.current=F,w(F)),u==="native"&&I(!1),g(!0)},commitValidation(){u==="native"&&I(!0),g(!0)}}}function Lo(t){return t?Array.isArray(t)?t:[t]:[]}function qb(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Lo(n)}return[]}function pr(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:Ui}:null}function ao(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,o)=>n===e.validationErrors[o])&&Object.entries(t.validationDetails).every(([n,o])=>e.validationDetails[n]===o)}function nl(t,e,n){let{validationBehavior:o,focus:l}=t;j(()=>{if(o==="native"&&(n!=null&&n.current)&&!n.current.disabled){let s=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Yb(n.current))}});let r=Q(()=>{e.resetValidation()}),i=Q(s=>{var c;e.displayValidation.isInvalid||e.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!s.defaultPrevented&&n&&d&&Xb(d)===n.current){var f;l?l():(f=n.current)===null||f===void 0||f.focus(),Fi("keyboard")}s.preventDefault()}),u=Q(()=>{e.commitValidation()});a.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let c=s.form;return s.addEventListener("invalid",i),s.addEventListener("change",u),c==null||c.addEventListener("reset",r),()=>{s.removeEventListener("invalid",i),s.removeEventListener("change",u),c==null||c.removeEventListener("reset",r)}},[n,i,u,r,o])}function Zb(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Yb(t){return{isInvalid:!t.validity.valid,validationDetails:Zb(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Xb(t){for(let e=0;e<t.elements.length;e++){let n=t.elements[e];if(!n.validity.valid)return n}return null}function qi(t,e,n){let{isDisabled:o=!1,isReadOnly:l=!1,value:r,name:i,children:u,"aria-label":s,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=t,p=C=>{C.stopPropagation(),e.setSelected(C.target.checked)},b=u!=null,h=s!=null||c!=null;!b&&!h&&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:$}=st({isDisabled:o}),{pressProps:y,isPressed:S}=st({onPress(){var C;e.toggle(),(C=n.current)===null||C===void 0||C.focus()},isDisabled:o||l}),{focusableProps:w}=ft(t,n),A=z(g,w),T=X(t,{labelable:!0});return Zo(n,e.isSelected,e.setSelected),{labelProps:z(y,{onClick:C=>C.preventDefault()}),inputProps:z(T,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":l||void 0,onChange:p,disabled:o,...r==null?{}:{value:r},name:i,type:"checkbox",...A}),isSelected:e.isSelected,isPressed:$||S,isDisabled:o,isReadOnly:l,isInvalid:f||d==="invalid"}}function Jb(t,e,n){let o=Vn({...t,value:e.isSelected}),{isInvalid:l,validationErrors:r,validationDetails:i}=o.displayValidation,{labelProps:u,inputProps:s,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p}=qi({...t,isInvalid:l},e,n);nl(t,o,n);let{isIndeterminate:b,isRequired:h,validationBehavior:g="aria"}=t;a.useEffect(()=>{n.current&&(n.current.indeterminate=!!b)});let{pressProps:$}=st({isDisabled:f||p,onPress(){let{[Tn]:y}=t,{commitValidation:S}=y||o;S()}});return{labelProps:z(u,$),inputProps:{...s,checked:c,"aria-required":h&&g==="aria"||void 0,required:h&&g==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:l,validationErrors:r,validationDetails:i}}function ol(t){let{id:e,label:n,"aria-labelledby":o,"aria-label":l,labelElementType:r="label"}=t;e=oe(e);let i=oe(),u={};n?(o=o?`${i} ${o}`:i,u={id:i,htmlFor:r==="label"?e:void 0}):!o&&!l&&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=Vt({id:e,"aria-label":l,"aria-labelledby":o});return{labelProps:u,fieldProps:s}}function jn(t){let{description:e,errorMessage:n,isInvalid:o,validationState:l}=t,{labelProps:r,fieldProps:i}=ol(t),u=Et([!!e,!!n,o,l]),s=Et([!!e,!!n,o,l]);return i=z(i,{"aria-describedby":[u,s,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:r,fieldProps:i,descriptionProps:{id:u},errorMessageProps:{id:s}}}function ll(t={}){let{isReadOnly:e}=t,[n,o]=Ne(t.isSelected,t.defaultSelected||!1,t.onChange);function l(i){e||o(i)}function r(){e||o(!n)}return{isSelected:n,setSelected:l,toggle:r}}function Qb(t){let{selectionMode:e="single",disallowEmptySelection:n,isDisabled:o=!1}=t,[l,r]=Ne(a.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),a.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:o,selectedKeys:l,setSelectedKeys:r,toggleKey(i){let u;e==="multiple"?(u=new Set(l),u.has(i)&&(!n||u.size>1)?u.delete(i):u.add(i)):u=new Set(l.has(i)&&!n?[]:[i]),r(u)},setSelected(i,u){u!==l.has(i)&&this.toggleKey(i)}}}const br={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 Zi(t={}){let{style:e,isFocusable:n}=t,[o,l]=a.useState(!1),{focusWithinProps:r}=Ut({isDisabled:!n,onFocusWithinChange:u=>l(u)}),i=a.useMemo(()=>o?e:e?{...br,...e}:br,[o]);return{visuallyHiddenProps:{...r,style:i}}}function Yi(t){let{children:e,elementType:n="div",isFocusable:o,style:l,...r}=t,{visuallyHiddenProps:i}=Zi(t);return a.createElement(n,z(r,i),e)}function rl(t,e){let{inputElementType:n="input",isDisabled:o=!1,isRequired:l=!1,isReadOnly:r=!1,type:i="text",validationBehavior:u="aria"}=t,[s,c]=Ne(t.value,t.defaultValue||"",t.onChange),{focusableProps:d}=ft(t,e),f=Vn({...t,value:s}),{isInvalid:p,validationErrors:b,validationDetails:h}=f.displayValidation,{labelProps:g,fieldProps:$,descriptionProps:y,errorMessageProps:S}=jn({...t,isInvalid:p,errorMessage:t.errorMessage||b}),w=X(t,{labelable:!0});const A={type:i,pattern:t.pattern};return Zo(e,s,c),nl(t,f,e),a.useEffect(()=>{if(e.current instanceof me(e.current).HTMLTextAreaElement){let T=e.current;Object.defineProperty(T,"defaultValue",{get:()=>T.value,set:()=>{},configurable:!0})}},[e]),{labelProps:g,inputProps:z(w,n==="input"?A:void 0,{disabled:o,readOnly:r,required:l&&u==="native","aria-required":l&&u==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:s,onChange:T=>c(T.target.value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(a.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...d,...$}),descriptionProps:y,errorMessageProps:S,isInvalid:p,validationErrors:b,validationDetails:h}}var Xi={};Xi={buttonLabel:"عرض المقترحات",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} خيار`,other:()=>`${e.number(t.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`المجموعة المدخلة ${t.groupTitle}, مع ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} خيار`,other:()=>`${e.number(t.groupCount)} خيارات`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", محدد",other:""},t.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:t=>`${t.optionText}، محدد`};var Ji={};Ji={buttonLabel:"Покажи предложения",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} опция`,other:()=>`${e.number(t.optionCount)} опции`})} на разположение.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Въведена група ${t.groupTitle}, с ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} опция`,other:()=>`${e.number(t.groupCount)} опции`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", избрани",other:""},t.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:t=>`${t.optionText}, избрани`};var Qi={};Qi={buttonLabel:"Zobrazit doporučení",countAnnouncement:(t,e)=>`K dispozici ${e.plural(t.optionCount,{one:()=>`je ${e.number(t.optionCount)} možnost`,other:()=>`jsou/je ${e.number(t.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Zadaná skupina „${t.groupTitle}“ ${e.plural(t.groupCount,{one:()=>`s ${e.number(t.groupCount)} možností`,other:()=>`se ${e.number(t.groupCount)} možnostmi`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:" (vybráno)",other:""},t.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:t=>`${t.optionText}, vybráno`};var eu={};eu={buttonLabel:"Vis forslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} mulighed tilgængelig`,other:()=>`${e.number(t.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Angivet gruppe ${t.groupTitle}, med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} mulighed`,other:()=>`${e.number(t.groupCount)} muligheder`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valgt",other:""},t.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:t=>`${t.optionText}, valgt`};var tu={};tu={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} Option`,other:()=>`${e.number(t.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Eingetretene Gruppe ${t.groupTitle}, mit ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} Option`,other:()=>`${e.number(t.groupCount)} Optionen`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", ausgewählt",other:""},t.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:t=>`${t.optionText}, ausgewählt`};var nu={};nu={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} επιλογή`,other:()=>`${e.number(t.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Εισαγμένη ομάδα ${t.groupTitle}, με ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} επιλογή`,other:()=>`${e.number(t.groupCount)} επιλογές`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", επιλεγμένο",other:""},t.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:t=>`${t.optionText}, επιλέχθηκε`};var ou={};ou={focusAnnouncement:(t,e)=>`${e.select({true:()=>`Entered group ${t.groupTitle}, with ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} option`,other:()=>`${e.number(t.groupCount)} options`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selected",other:""},t.isSelected)}`,countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} option`,other:()=>`${e.number(t.optionCount)} options`})} available.`,selectedAnnouncement:t=>`${t.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var lu={};lu={buttonLabel:"Mostrar sugerencias",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opción`,other:()=>`${e.number(t.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Se ha unido al grupo ${t.groupTitle}, con ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opción`,other:()=>`${e.number(t.groupCount)} opciones`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", seleccionado",other:""},t.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:t=>`${t.optionText}, seleccionado`};var ru={};ru={buttonLabel:"Kuva soovitused",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} valik`,other:()=>`${e.number(t.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Sisestatud rühm ${t.groupTitle}, valikuga ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} valik`,other:()=>`${e.number(t.groupCount)} valikud`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valitud",other:""},t.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:t=>`${t.optionText}, valitud`};var iu={};iu={buttonLabel:"Näytä ehdotukset",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} vaihtoehto`,other:()=>`${e.number(t.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Mentiin ryhmään ${t.groupTitle}, ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} vaihtoehdon`,other:()=>`${e.number(t.groupCount)} vaihtoehdon`})} kanssa.`,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valittu",other:""},t.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:t=>`${t.optionText}, valittu`};var uu={};uu={buttonLabel:"Afficher les suggestions",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} option`,other:()=>`${e.number(t.optionCount)} options`})} disponible(s).`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Groupe ${t.groupTitle} rejoint, avec ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} option`,other:()=>`${e.number(t.groupCount)} options`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", sélectionné(s)",other:""},t.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:t=>`${t.optionText}, sélectionné`};var au={};au={buttonLabel:"הצג הצעות",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`אפשרות ${e.number(t.optionCount)}`,other:()=>`${e.number(t.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`נכנס לקבוצה ${t.groupTitle}, עם ${e.plural(t.groupCount,{one:()=>`אפשרות ${e.number(t.groupCount)}`,other:()=>`${e.number(t.groupCount)} אפשרויות`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", נבחר",other:""},t.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:t=>`${t.optionText}, נבחר`};var su={};su={buttonLabel:"Prikaži prijedloge",countAnnouncement:(t,e)=>`Dostupno još: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije/a`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Unesena skupina ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcijom`,other:()=>`${e.number(t.groupCount)} opcije/a`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", odabranih",other:""},t.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:t=>`${t.optionText}, odabrano`};var cu={};cu={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} lehetőség`,other:()=>`${e.number(t.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Belépett a(z) ${t.groupTitle} csoportba, amely ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} lehetőséget`,other:()=>`${e.number(t.groupCount)} lehetőséget`})} tartalmaz. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", kijelölve",other:""},t.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:t=>`${t.optionText}, kijelölve`};var du={};du={buttonLabel:"Mostra suggerimenti",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opzione disponibile`,other:()=>`${e.number(t.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ingresso nel gruppo ${t.groupTitle}, con ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opzione`,other:()=>`${e.number(t.groupCount)} opzioni`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selezionato",other:""},t.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:t=>`${t.optionText}, selezionato`};var fu={};fu={buttonLabel:"候補を表示",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 個のオプション`,other:()=>`${e.number(t.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`入力されたグループ ${t.groupTitle}、${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 個のオプション`,other:()=>`${e.number(t.groupCount)} 個のオプション`})}を含む。`,other:""},t.isGroupChange)}${t.optionText}${e.select({true:"、選択済み",other:""},t.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:t=>`${t.optionText}、選択済み`};var pu={};pu={buttonLabel:"제안 사항 표시",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)}개 옵션`,other:()=>`${e.number(t.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`입력한 그룹 ${t.groupTitle}, ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)}개 옵션`,other:()=>`${e.number(t.groupCount)}개 옵션`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 선택됨",other:""},t.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:t=>`${t.optionText}, 선택됨`};var bu={};bu={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(t,e)=>`Yra ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} parinktis`,other:()=>`${e.number(t.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Įvesta grupė ${t.groupTitle}, su ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} parinktimi`,other:()=>`${e.number(t.groupCount)} parinktimis (-ių)`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", pasirinkta",other:""},t.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:t=>`${t.optionText}, pasirinkta`};var vu={};vu={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(t,e)=>`Pieejamo opciju skaits: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcijas`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ievadīta grupa ${t.groupTitle}, ar ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opciju`,other:()=>`${e.number(t.groupCount)} opcijām`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", atlasīta",other:""},t.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:t=>`${t.optionText}, atlasīta`};var hu={};hu={buttonLabel:"Vis forslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} alternativ`,other:()=>`${e.number(t.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Angitt gruppe ${t.groupTitle}, med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} alternativ`,other:()=>`${e.number(t.groupCount)} alternativer`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valgt",other:""},t.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:t=>`${t.optionText}, valgt`};var mu={};mu={buttonLabel:"Suggesties weergeven",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} optie`,other:()=>`${e.number(t.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Groep ${t.groupTitle} ingevoerd met ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} optie`,other:()=>`${e.number(t.groupCount)} opties`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", geselecteerd",other:""},t.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:t=>`${t.optionText}, geselecteerd`};var gu={};gu={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(t,e)=>`dostępna/dostępne(-nych) ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcja`,other:()=>`${e.number(t.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Dołączono do grupy ${t.groupTitle}, z ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcją`,other:()=>`${e.number(t.groupCount)} opcjami`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", wybrano",other:""},t.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:t=>`${t.optionText}, wybrano`};var $u={};$u={buttonLabel:"Mostrar sugestões",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opção`,other:()=>`${e.number(t.optionCount)} opções`})} disponível.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grupo inserido ${t.groupTitle}, com ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opção`,other:()=>`${e.number(t.groupCount)} opções`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selecionado",other:""},t.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:t=>`${t.optionText}, selecionado`};var yu={};yu={buttonLabel:"Apresentar sugestões",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opção`,other:()=>`${e.number(t.optionCount)} opções`})} disponível.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grupo introduzido ${t.groupTitle}, com ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opção`,other:()=>`${e.number(t.groupCount)} opções`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selecionado",other:""},t.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:t=>`${t.optionText}, selecionado`};var xu={};xu={buttonLabel:"Afișare sugestii",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opțiune`,other:()=>`${e.number(t.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Grup ${t.groupTitle} introdus, cu ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opțiune`,other:()=>`${e.number(t.groupCount)} opțiuni`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", selectat",other:""},t.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:t=>`${t.optionText}, selectat`};var Cu={};Cu={buttonLabel:"Показать предложения",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} параметр`,other:()=>`${e.number(t.optionCount)} параметров`})} доступно.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Введенная группа ${t.groupTitle}, с ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} параметром`,other:()=>`${e.number(t.groupCount)} параметрами`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", выбранными",other:""},t.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:t=>`${t.optionText}, выбрано`};var Eu={};Eu={buttonLabel:"Zobraziť návrhy",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} možnosť`,other:()=>`${e.number(t.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Zadaná skupina ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} možnosťou`,other:()=>`${e.number(t.groupCount)} možnosťami`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", vybraté",other:""},t.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:t=>`${t.optionText}, vybraté`};var Su={};Su={buttonLabel:"Prikaži predloge",countAnnouncement:(t,e)=>`Na voljo je ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Vnesena skupina ${t.groupTitle}, z ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcija`,other:()=>`${e.number(t.groupCount)} opcije`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", izbrano",other:""},t.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:t=>`${t.optionText}, izbrano`};var Pu={};Pu={buttonLabel:"Prikaži predloge",countAnnouncement:(t,e)=>`Dostupno još: ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} opcija`,other:()=>`${e.number(t.optionCount)} opcije/a`})}.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Unesena grupa ${t.groupTitle}, s ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} opcijom`,other:()=>`${e.number(t.groupCount)} optione/a`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", izabranih",other:""},t.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:t=>`${t.optionText}, izabrano`};var wu={};wu={buttonLabel:"Visa förslag",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} alternativ`,other:()=>`${e.number(t.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Ingick i gruppen ${t.groupTitle} med ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} alternativ`,other:()=>`${e.number(t.groupCount)} alternativ`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", valda",other:""},t.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:t=>`${t.optionText}, valda`};var Du={};Du={buttonLabel:"Önerileri göster",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} seçenek`,other:()=>`${e.number(t.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Girilen grup ${t.groupTitle}, ile ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} seçenek`,other:()=>`${e.number(t.groupCount)} seçenekler`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", seçildi",other:""},t.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:t=>`${t.optionText}, seçildi`};var ku={};ku={buttonLabel:"Показати пропозиції",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} параметр`,other:()=>`${e.number(t.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`Введена група ${t.groupTitle}, з ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} параметр`,other:()=>`${e.number(t.groupCount)} параметри(-ів)`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", вибрано",other:""},t.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:t=>`${t.optionText}, вибрано`};var Tu={};Tu={buttonLabel:"显示建议",countAnnouncement:(t,e)=>`有 ${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 个选项`,other:()=>`${e.number(t.optionCount)} 个选项`})}可用。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`进入了 ${t.groupTitle} 组,其中有 ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 个选项`,other:()=>`${e.number(t.groupCount)} 个选项`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 已选择",other:""},t.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:t=>`${t.optionText}, 已选择`};var Bu={};Bu={buttonLabel:"顯示建議",countAnnouncement:(t,e)=>`${e.plural(t.optionCount,{one:()=>`${e.number(t.optionCount)} 選項`,other:()=>`${e.number(t.optionCount)} 選項`})} 可用。`,focusAnnouncement:(t,e)=>`${e.select({true:()=>`輸入的群組 ${t.groupTitle}, 有 ${e.plural(t.groupCount,{one:()=>`${e.number(t.groupCount)} 選項`,other:()=>`${e.number(t.groupCount)} 選項`})}. `,other:""},t.isGroupChange)}${t.optionText}${e.select({true:", 已選取",other:""},t.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:t=>`${t.optionText}, 已選取`};var Au={};Au={"ar-AE":Xi,"bg-BG":Ji,"cs-CZ":Qi,"da-DK":eu,"de-DE":tu,"el-GR":nu,"en-US":ou,"es-ES":lu,"et-EE":ru,"fi-FI":iu,"fr-FR":uu,"he-IL":au,"hr-HR":su,"hu-HU":cu,"it-IT":du,"ja-JP":fu,"ko-KR":pu,"lt-LT":bu,"lv-LV":vu,"nb-NO":hu,"nl-NL":mu,"pl-PL":gu,"pt-BR":$u,"pt-PT":yu,"ro-RO":xu,"ru-RU":Cu,"sk-SK":Eu,"sl-SI":Su,"sr-SP":Pu,"sv-SE":wu,"tr-TR":Du,"uk-UA":ku,"zh-CN":Tu,"zh-TW":Bu};const Ie={top:"top",bottom:"top",left:"left",right:"left"},Bn={top:"bottom",bottom:"top",left:"right",right:"left"},ev={top:"left",left:"top"},Io={top:"height",left:"width"},Ru={width:"totalWidth",height:"totalHeight"},fn={};let ce=typeof document<"u"?window.visualViewport:null;function vr(t){let e=0,n=0,o=0,l=0,r=0,i=0,u={};var s;let c=((s=ce==null?void 0:ce.scale)!==null&&s!==void 0?s:1)>1;if(t.tagName==="BODY"){let h=document.documentElement;o=h.clientWidth,l=h.clientHeight;var d;e=(d=ce==null?void 0:ce.width)!==null&&d!==void 0?d:o;var f;n=(f=ce==null?void 0:ce.height)!==null&&f!==void 0?f:l,u.top=h.scrollTop||t.scrollTop,u.left=h.scrollLeft||t.scrollLeft,ce&&(r=ce.offsetTop,i=ce.offsetLeft)}else({width:e,height:n,top:r,left:i}=xt(t)),u.top=t.scrollTop,u.left=t.scrollLeft,o=e,l=n;if(Wo()&&(t.tagName==="BODY"||t.tagName==="HTML")&&c){u.top=0,u.left=0;var p;r=(p=ce==null?void 0:ce.pageTop)!==null&&p!==void 0?p:0;var b;i=(b=ce==null?void 0:ce.pageLeft)!==null&&b!==void 0?b:0}return{width:e,height:n,totalWidth:o,totalHeight:l,scroll:u,top:r,left:i}}function tv(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function hr(t,e,n,o,l,r,i){var u;let s=(u=l.scroll[t])!==null&&u!==void 0?u:0,c=o[Io[t]],d=o.scroll[Ie[t]]+r,f=c+o.scroll[Ie[t]]-r,p=e-s+i[t]-o[Ie[t]],b=e-s+n+i[t]-o[Ie[t]];return p<d?d-p:b>f?Math.max(f-b,d-p):0}function nv(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function mr(t){if(fn[t])return fn[t];let[e,n]=t.split(" "),o=Ie[e]||"right",l=ev[o];Ie[n]||(n="center");let r=Io[o],i=Io[l];return fn[t]={placement:e,crossPlacement:n,axis:o,crossAxis:l,size:r,crossSize:i},fn[t]}function so(t,e,n,o,l,r,i,u,s,c){let{placement:d,crossPlacement:f,axis:p,crossAxis:b,size:h,crossSize:g}=o,$={};var y;$[b]=(y=t[b])!==null&&y!==void 0?y:0;var S,w,A,T;f==="center"?$[b]+=(((S=t[g])!==null&&S!==void 0?S:0)-((w=n[g])!==null&&w!==void 0?w:0))/2:f!==b&&($[b]+=((A=t[g])!==null&&A!==void 0?A:0)-((T=n[g])!==null&&T!==void 0?T:0)),$[b]+=r;const C=t[b]-n[g]+s+c,I=t[b]+t[g]-s-c;if($[b]=xn($[b],C,I),d===p){const R=u?i[h]:e[Ru[h]];$[Bn[p]]=Math.floor(R-t[p]+l)}else $[p]=Math.floor(t[p]+t[h]+l);return $}function ov(t,e,n,o,l,r,i,u){const s=o?n.height:e[Ru.height];var c;let d=t.top!=null?n.top+t.top:n.top+(s-((c=t.bottom)!==null&&c!==void 0?c:0)-i);var f,p,b,h,g,$;let y=u!=="top"?Math.max(0,e.height+e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0)-d-(((p=l.top)!==null&&p!==void 0?p:0)+((b=l.bottom)!==null&&b!==void 0?b:0)+r)):Math.max(0,d+i-(e.top+((h=e.scroll.top)!==null&&h!==void 0?h:0))-(((g=l.top)!==null&&g!==void 0?g:0)+(($=l.bottom)!==null&&$!==void 0?$:0)+r));return Math.min(e.height-r*2,y)}function gr(t,e,n,o,l,r){let{placement:i,axis:u,size:s}=r;var c,d;if(i===u)return Math.max(0,n[u]-t[u]-((c=t.scroll[u])!==null&&c!==void 0?c:0)+e[u]-((d=o[u])!==null&&d!==void 0?d:0)-o[Bn[u]]-l);var f;return Math.max(0,t[s]+t[u]+t.scroll[u]-e[u]-n[u]-n[s]-((f=o[u])!==null&&f!==void 0?f:0)-o[Bn[u]]-l)}function lv(t,e,n,o,l,r,i,u,s,c,d,f,p,b,h,g){let $=mr(t),{size:y,crossAxis:S,crossSize:w,placement:A,crossPlacement:T}=$,C=so(e,u,n,$,d,f,c,p,h,g),I=d,R=gr(u,c,e,l,r+d,$);if(i&&o[y]>R){let pe=mr(`${Bn[A]} ${T}`),Ee=so(e,u,n,pe,d,f,c,p,h,g);gr(u,c,e,l,r+d,pe)>R&&($=pe,C=Ee,I=d)}let O="bottom";$.axis==="top"?$.placement==="top"?O="top":$.placement==="bottom"&&(O="bottom"):$.crossAxis==="top"&&($.crossPlacement==="top"?O="bottom":$.crossPlacement==="bottom"&&(O="top"));let F=hr(S,C[S],n[w],u,s,r,c);C[S]+=F;let v=ov(C,u,c,p,l,r,n.height,O);b&&b<v&&(v=b),n.height=Math.min(n.height,v),C=so(e,u,n,$,I,f,c,p,h,g),F=hr(S,C[S],n[w],u,s,r,c),C[S]+=F;let D={},K=e[S]+.5*e[w]-C[S]-l[Ie[S]];const B=h/2+g;var N,m,k,E;const M=Ie[S]==="left"?((N=l.left)!==null&&N!==void 0?N:0)+((m=l.right)!==null&&m!==void 0?m:0):((k=l.top)!==null&&k!==void 0?k:0)+((E=l.bottom)!==null&&E!==void 0?E:0),V=n[w]-M-h/2-g,q=e[S]+h/2-(C[S]+l[Ie[S]]),Z=e[S]+e[w]-h/2-(C[S]+l[Ie[S]]),ie=xn(K,q,Z);return D[S]=xn(ie,B,V),{position:C,maxHeight:v,arrowOffsetLeft:D.left,arrowOffsetTop:D.top,placement:$.placement}}function rv(t){let{placement:e,targetNode:n,overlayNode:o,scrollNode:l,padding:r,shouldFlip:i,boundaryElement:u,offset:s,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=t,b=o instanceof HTMLElement?iv(o):document.documentElement,h=b===document.documentElement;const g=window.getComputedStyle(b).position;let $=!!g&&g!=="static",y=h?xt(n):$r(n,b);if(!h){let{marginTop:D,marginLeft:K}=window.getComputedStyle(n);y.top+=parseInt(D,10)||0,y.left+=parseInt(K,10)||0}let S=xt(o),w=nv(o);var A,T;S.width+=((A=w.left)!==null&&A!==void 0?A:0)+((T=w.right)!==null&&T!==void 0?T:0);var C,I;S.height+=((C=w.top)!==null&&C!==void 0?C:0)+((I=w.bottom)!==null&&I!==void 0?I:0);let R=tv(l),O=vr(u),F=vr(b),v=u.tagName==="BODY"?xt(b):$r(b,u);return b.tagName==="HTML"&&u.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),lv(e,y,S,R,w,r,i,O,F,v,s,c,$,d,f,p)}function xt(t){let{top:e,left:n,width:o,height:l}=t.getBoundingClientRect(),{scrollTop:r,scrollLeft:i,clientTop:u,clientLeft:s}=document.documentElement;return{top:e+r-u,left:n+i-s,width:o,height:l}}function $r(t,e){let n=window.getComputedStyle(t),o;if(n.position==="fixed"){let{top:l,left:r,width:i,height:u}=t.getBoundingClientRect();o={top:l,left:r,width:i,height:u}}else{o=xt(t);let l=xt(e),r=window.getComputedStyle(e);l.top+=(parseInt(r.borderTopWidth,10)||0)-e.scrollTop,l.left+=(parseInt(r.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=l.top,o.left-=l.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function iv(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!yr(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!yr(e);)e=e.parentElement;return e||document.documentElement}function yr(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const Fu=new WeakMap;function uv(t){let{triggerRef:e,isOpen:n,onClose:o}=t;a.useEffect(()=>{if(!n||o===null)return;let l=r=>{let i=r.target;if(!e.current||i instanceof Node&&!i.contains(e.current)||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement)return;let u=o||Fu.get(e.current);u&&u()};return window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("scroll",l,!0)}},[n,o,e])}let ne=typeof document<"u"?window.visualViewport:null;function Lu(t){let{direction:e}=ze(),{arrowSize:n=0,targetRef:o,overlayRef:l,scrollRef:r=l,placement:i="bottom",containerPadding:u=12,shouldFlip:s=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:b=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:$=0}=t,[y,S]=a.useState(null),w=[p,i,l.current,o.current,r.current,u,s,c,d,f,b,e,g,$,n],A=a.useRef(ne==null?void 0:ne.scale);a.useEffect(()=>{b&&(A.current=ne==null?void 0:ne.scale)},[b]);let T=a.useCallback(()=>{if(p===!1||!b||!l.current||!o.current||!c||(ne==null?void 0:ne.scale)!==A.current)return;let F=null;if(r.current&&r.current.contains(document.activeElement)){var v;let E=(v=document.activeElement)===null||v===void 0?void 0:v.getBoundingClientRect(),M=r.current.getBoundingClientRect();var D;if(F={type:"top",offset:((D=E==null?void 0:E.top)!==null&&D!==void 0?D:0)-M.top},F.offset>M.height/2){F.type="bottom";var K;F.offset=((K=E==null?void 0:E.bottom)!==null&&K!==void 0?K:0)-M.bottom}}let B=l.current;if(!g&&l.current){var N;B.style.top="0px",B.style.bottom="";var m;B.style.maxHeight=((m=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&m!==void 0?m:window.innerHeight)+"px"}let k=rv({placement:sv(i,e),overlayNode:l.current,targetNode:o.current,scrollNode:r.current||l.current,padding:u,shouldFlip:s,boundaryElement:c,offset:d,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:$});if(k.position){if(B.style.top="",B.style.bottom="",B.style.left="",B.style.right="",Object.keys(k.position).forEach(E=>B.style[E]=k.position[E]+"px"),B.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",F&&document.activeElement&&r.current){let E=document.activeElement.getBoundingClientRect(),M=r.current.getBoundingClientRect(),V=E[F.type]-M[F.type];r.current.scrollTop+=V-F.offset}S(k)}},w);j(T,w),av(T),yn({ref:l,onResize:T}),yn({ref:o,onResize:T});let C=a.useRef(!1);j(()=>{let F,v=()=>{C.current=!0,clearTimeout(F),F=setTimeout(()=>{C.current=!1},500),T()},D=()=>{C.current&&v()};return ne==null||ne.addEventListener("resize",v),ne==null||ne.addEventListener("scroll",D),()=>{ne==null||ne.removeEventListener("resize",v),ne==null||ne.removeEventListener("scroll",D)}},[T]);let I=a.useCallback(()=>{C.current||h==null||h()},[h,C]);uv({triggerRef:o,isOpen:b,onClose:h&&I});var R,O;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...y==null?void 0:y.position,maxHeight:(R=y==null?void 0:y.maxHeight)!==null&&R!==void 0?R:"100vh"}},placement:(O=y==null?void 0:y.placement)!==null&&O!==void 0?O:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y==null?void 0:y.arrowOffsetLeft,top:y==null?void 0:y.arrowOffsetTop}},updatePosition:T}}function av(t){j(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function sv(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Le=[];function cv(t,e){let{onClose:n,shouldCloseOnBlur:o,isOpen:l,isDismissable:r=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:u}=t;a.useEffect(()=>{if(l&&!Le.includes(e))return Le.push(e),()=>{let h=Le.indexOf(e);h>=0&&Le.splice(h,1)}},[l,e]);let s=()=>{Le[Le.length-1]===e&&n&&n()},c=h=>{(!u||u(h.target))&&Le[Le.length-1]===e&&(h.stopPropagation(),h.preventDefault())},d=h=>{(!u||u(h.target))&&(Le[Le.length-1]===e&&(h.stopPropagation(),h.preventDefault()),s())},f=h=>{h.key==="Escape"&&!i&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),s())};db({ref:e,onInteractOutside:r&&l?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:p}=Ut({isDisabled:!o,onBlurWithin:h=>{!h.relatedTarget||Ib(h.relatedTarget)||(!u||u(h.relatedTarget))&&(n==null||n())}}),b=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:b}}}function Iu(t,e,n){let{type:o}=t,{isOpen:l}=e;a.useEffect(()=>{n&&n.current&&Fu.set(n.current,e.close)});let r;o==="menu"?r=!0:o==="listbox"&&(r="listbox");let i=oe();return{triggerProps:{"aria-haspopup":r,"aria-expanded":l,"aria-controls":l?i:void 0,onPress:e.toggle},overlayProps:{id:i}}}const co=typeof document<"u"&&window.visualViewport,dv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let pn=0,fo;function fv(t={}){let{isDisabled:e}=t;j(()=>{if(!e)return pn++,pn===1&&(In()?fo=bv():fo=pv()),()=>{pn--,pn===0&&fo()}},[e])}function pv(){return Me(gt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),gt(document.documentElement,"overflow","hidden"))}function bv(){let t,e,n=c=>{t=Ze(c.target,!0),!(t===document.documentElement&&t===document.body)&&t instanceof HTMLElement&&window.getComputedStyle(t).overscrollBehavior==="auto"&&(e=gt(t,"overscrollBehavior","contain"))},o=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&c.preventDefault()},l=()=>{e&&e()},r=c=>{let d=c.target;vv(d)&&(u(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",co&&(co.height<window.innerHeight?requestAnimationFrame(()=>{xr(d)}):co.addEventListener("resize",()=>xr(d),{once:!0}))}))},i=null,u=()=>{if(i)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;i=Me(Ft(window,"scroll",c),gt(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),gt(document.documentElement,"overflow","hidden"),gt(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},s=Me(Ft(document,"touchstart",n,{passive:!1,capture:!0}),Ft(document,"touchmove",o,{passive:!1,capture:!0}),Ft(document,"touchend",l,{passive:!1,capture:!0}),Ft(document,"focus",r,!0));return()=>{e==null||e(),i==null||i(),s()}}function gt(t,e,n){let o=t.style[e];return t.style[e]=n,()=>{t.style[e]=o}}function Ft(t,e,n,o){return t.addEventListener(e,n,o),()=>{t.removeEventListener(e,n,o)}}function xr(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let o=Ze(n);if(o!==document.documentElement&&o!==document.body&&o!==n){let l=o.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>l+n.clientHeight&&(o.scrollTop+=r-l)}n=o.parentElement}}function vv(t){return t instanceof HTMLInputElement&&!dv.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}const hv=a.createContext({});function Ku(){var t;return(t=a.useContext(hv))!==null&&t!==void 0?t:{}}const Ko=a.createContext(null);function mv(t){let{children:e}=t,n=a.useContext(Ko),[o,l]=a.useState(0),r=a.useMemo(()=>({parent:n,modalCount:o,addModal(){l(i=>i+1),n&&n.addModal()},removeModal(){l(i=>i-1),n&&n.removeModal()}}),[n,o]);return a.createElement(Ko.Provider,{value:r},e)}function gv(){let t=a.useContext(Ko);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function $v(t){let{modalProviderProps:e}=gv();return a.createElement("div",{"data-overlay-container":!0,...t,...e})}function yv(t){return a.createElement(mv,null,a.createElement($v,t))}function xv(t){let e=tt(),{portalContainer:n=e?null:document.body,...o}=t,{getContainer:l}=Ku();if(!t.portalContainer&&l&&(n=l()),a.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 r=a.createElement(yv,o);return dt.createPortal(r,n)}var Mu={};Mu={dismiss:"تجاهل"};var Nu={};Nu={dismiss:"Отхвърляне"};var zu={};zu={dismiss:"Odstranit"};var Ou={};Ou={dismiss:"Luk"};var Vu={};Vu={dismiss:"Schließen"};var ju={};ju={dismiss:"Απόρριψη"};var Hu={};Hu={dismiss:"Dismiss"};var _u={};_u={dismiss:"Descartar"};var Wu={};Wu={dismiss:"Lõpeta"};var Gu={};Gu={dismiss:"Hylkää"};var Uu={};Uu={dismiss:"Rejeter"};var qu={};qu={dismiss:"התעלם"};var Zu={};Zu={dismiss:"Odbaci"};var Yu={};Yu={dismiss:"Elutasítás"};var Xu={};Xu={dismiss:"Ignora"};var Ju={};Ju={dismiss:"閉じる"};var Qu={};Qu={dismiss:"무시"};var ea={};ea={dismiss:"Atmesti"};var ta={};ta={dismiss:"Nerādīt"};var na={};na={dismiss:"Lukk"};var oa={};oa={dismiss:"Negeren"};var la={};la={dismiss:"Zignoruj"};var ra={};ra={dismiss:"Descartar"};var ia={};ia={dismiss:"Dispensar"};var ua={};ua={dismiss:"Revocare"};var aa={};aa={dismiss:"Пропустить"};var sa={};sa={dismiss:"Zrušiť"};var ca={};ca={dismiss:"Opusti"};var da={};da={dismiss:"Odbaci"};var fa={};fa={dismiss:"Avvisa"};var pa={};pa={dismiss:"Kapat"};var ba={};ba={dismiss:"Скасувати"};var va={};va={dismiss:"取消"};var ha={};ha={dismiss:"關閉"};var ma={};ma={"ar-AE":Mu,"bg-BG":Nu,"cs-CZ":zu,"da-DK":Ou,"de-DE":Vu,"el-GR":ju,"en-US":Hu,"es-ES":_u,"et-EE":Wu,"fi-FI":Gu,"fr-FR":Uu,"he-IL":qu,"hr-HR":Zu,"hu-HU":Yu,"it-IT":Xu,"ja-JP":Ju,"ko-KR":Qu,"lt-LT":ea,"lv-LV":ta,"nb-NO":na,"nl-NL":oa,"pl-PL":la,"pt-BR":ra,"pt-PT":ia,"ro-RO":ua,"ru-RU":aa,"sk-SK":sa,"sl-SI":ca,"sr-SP":da,"sv-SE":fa,"tr-TR":pa,"uk-UA":ba,"zh-CN":va,"zh-TW":ha};function Cv(t){return t&&t.__esModule?t.default:t}function Cr(t){let{onDismiss:e,...n}=t,o=nt(Cv(ma),"@react-aria/overlays"),l=Vt(n,o.format("dismiss")),r=()=>{e&&e()};return a.createElement(Yi,null,a.createElement("button",{...l,tabIndex:-1,onClick:r,style:{width:1,height:1}}))}let Lt=new WeakMap,$e=[];function ga(t,e=document.body){let n=new Set(t),o=new Set,l=s=>{for(let p of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||p.parentElement&&o.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(p.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(s);if(f===NodeFilter.FILTER_ACCEPT&&r(s),f!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)r(p),p=d.nextNode()}},r=s=>{var c;let d=(c=Lt.get(s))!==null&&c!==void 0?c:0;s.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&s.setAttribute("aria-hidden","true"),o.add(s),Lt.set(s,d+1))};$e.length&&$e[$e.length-1].disconnect(),l(e);let i=new MutationObserver(s=>{for(let c of s)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...o].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),o.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&l(d)}});i.observe(e,{childList:!0,subtree:!0});let u={visibleNodes:n,hiddenNodes:o,observe(){i.observe(e,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return $e.push(u),()=>{i.disconnect();for(let s of o){let c=Lt.get(s);c!=null&&(c===1?(s.removeAttribute("aria-hidden"),Lt.delete(s)):Lt.set(s,c-1))}u===$e[$e.length-1]?($e.pop(),$e.length&&$e[$e.length-1].observe()):$e.splice($e.indexOf(u),1)}}function Ev(t){let e=$e[$e.length-1];if(e&&!e.visibleNodes.has(t))return e.visibleNodes.add(t),()=>{e.visibleNodes.delete(t)}}function Sv(t,e){let{triggerRef:n,popoverRef:o,groupRef:l,isNonModal:r,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:u,...s}=t,c=s.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=cv({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!r||c,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:u},l??o),{overlayProps:p,arrowProps:b,placement:h}=Lu({...s,targetRef:n,overlayRef:o,isOpen:e.isOpen,onClose:r&&!c?e.close:null});return fv({isDisabled:r||!e.isOpen}),j(()=>{if(e.isOpen&&o.current){var g,$;return r?Ev((g=l==null?void 0:l.current)!==null&&g!==void 0?g:o.current):ga([($=l==null?void 0:l.current)!==null&&$!==void 0?$:o.current])}},[r,e.isOpen,o,l]),{popoverProps:z(d,p),arrowProps:b,underlayProps:f,placement:h}}const $a=a.createContext(null);function Er(t){let e=tt(),{portalContainer:n=e?null:document.body,isExiting:o}=t,[l,r]=a.useState(!1),i=a.useMemo(()=>({contain:l,setContain:r}),[l,r]),{getContainer:u}=Ku();if(!t.portalContainer&&u&&(n=u()),!n)return null;let s=t.children;return t.disableFocusManagement||(s=a.createElement(ji,{restoreFocus:!0,contain:(t.shouldContainFocus||l)&&!o},s)),s=a.createElement($a.Provider,{value:i},a.createElement(sb,null,s)),dt.createPortal(s,n)}function Pv(){let t=a.useContext($a),e=t==null?void 0:t.setContain;j(()=>{e==null||e(!0)},[e])}const Hn=new WeakMap;function wv(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function ya(t,e){let n=Hn.get(t);if(!n)throw new Error("Unknown list");return`${n.id}-option-${wv(e)}`}function Mo(t){return vn()?t.altKey:t.ctrlKey}function mn(t,e){var n,o;let l=`[data-key="${CSS.escape(String(e))}"]`,r=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return r&&(l=`[data-collection="${CSS.escape(r)}"]${l}`),(o=t.current)===null||o===void 0?void 0:o.querySelector(l)}const xa=new WeakMap;function Dv(t){let e=oe();return xa.set(t,e),e}function kv(t){return xa.get(t)}const Tv=1e3;function Ca(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:o}=t,l=a.useRef({search:"",timeout:void 0}).current,r=i=>{let u=Bv(i.key);if(!(!u||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))){if(u===" "&&l.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),l.search+=u,e.getKeyForSearch!=null){let s=e.getKeyForSearch(l.search,n.focusedKey);s==null&&(s=e.getKeyForSearch(l.search)),s!=null&&(n.setFocusedKey(s),o&&o(s))}clearTimeout(l.timeout),l.timeout=setTimeout(()=>{l.search=""},Tv)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?r:void 0}}}function Bv(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function Ea(t){let{selectionManager:e,keyboardDelegate:n,ref:o,autoFocus:l=!1,shouldFocusWrap:r=!1,disallowEmptySelection:i=!1,disallowSelectAll:u=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:b,scrollRef:h=o,linkBehavior:g="action"}=t,{direction:$}=ze(),y=wt(),S=m=>{var k;if(m.altKey&&m.key==="Tab"&&m.preventDefault(),!(!((k=o.current)===null||k===void 0)&&k.contains(m.target)))return;const E=(L,H)=>{if(L!=null){if(e.isLink(L)&&g==="selection"&&c&&!Mo(m)){dt.flushSync(()=>{e.setFocusedKey(L,H)});let _=mn(o,L),Ce=e.getItemProps(L);_&&y.open(_,m,Ce.href,Ce.routerOptions);return}if(e.setFocusedKey(L,H),e.isLink(L)&&g==="override")return;m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(L):c&&!Mo(m)&&e.replaceSelection(L)}};switch(m.key){case"ArrowDown":if(n.getKeyBelow){var M,V,q;let L=e.focusedKey!=null?(M=n.getKeyBelow)===null||M===void 0?void 0:M.call(n,e.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);L==null&&r&&(L=(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n,e.focusedKey)),L!=null&&(m.preventDefault(),E(L))}break;case"ArrowUp":if(n.getKeyAbove){var Z,ie,pe;let L=e.focusedKey!=null?(Z=n.getKeyAbove)===null||Z===void 0?void 0:Z.call(n,e.focusedKey):(ie=n.getLastKey)===null||ie===void 0?void 0:ie.call(n);L==null&&r&&(L=(pe=n.getLastKey)===null||pe===void 0?void 0:pe.call(n,e.focusedKey)),L!=null&&(m.preventDefault(),E(L))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ee,De,ge;let L=e.focusedKey!=null?(Ee=n.getKeyLeftOf)===null||Ee===void 0?void 0:Ee.call(n,e.focusedKey):null;L==null&&r&&(L=$==="rtl"?(De=n.getFirstKey)===null||De===void 0?void 0:De.call(n,e.focusedKey):(ge=n.getLastKey)===null||ge===void 0?void 0:ge.call(n,e.focusedKey)),L!=null&&(m.preventDefault(),E(L,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Re,Ve,je;let L=e.focusedKey!=null?(Re=n.getKeyRightOf)===null||Re===void 0?void 0:Re.call(n,e.focusedKey):null;L==null&&r&&(L=$==="rtl"?(Ve=n.getLastKey)===null||Ve===void 0?void 0:Ve.call(n,e.focusedKey):(je=n.getFirstKey)===null||je===void 0?void 0:je.call(n,e.focusedKey)),L!=null&&(m.preventDefault(),E(L,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&m.shiftKey)return;m.preventDefault();let L=n.getFirstKey(e.focusedKey,rt(m));e.setFocusedKey(L),L!=null&&(rt(m)&&m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(L):c&&e.replaceSelection(L))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&m.shiftKey)return;m.preventDefault();let L=n.getLastKey(e.focusedKey,rt(m));e.setFocusedKey(L),L!=null&&(rt(m)&&m.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(L):c&&e.replaceSelection(L))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let L=n.getKeyPageBelow(e.focusedKey);L!=null&&(m.preventDefault(),E(L))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let L=n.getKeyPageAbove(e.focusedKey);L!=null&&(m.preventDefault(),E(L))}break;case"a":rt(m)&&e.selectionMode==="multiple"&&u!==!0&&(m.preventDefault(),e.selectAll());break;case"Escape":s==="clearSelection"&&!i&&e.selectedKeys.size!==0&&(m.stopPropagation(),m.preventDefault(),e.clearSelection());break;case"Tab":if(!p){if(m.shiftKey)o.current.focus();else{let L=ve(o.current,{tabbable:!0}),H,_;do _=L.lastChild(),_&&(H=_);while(_);H&&!H.contains(document.activeElement)&&Be(H)}break}}},w=a.useRef({top:0,left:0});Mt(h,"scroll",b?void 0:()=>{var m,k,E,M;w.current={top:(E=(m=h.current)===null||m===void 0?void 0:m.scrollTop)!==null&&E!==void 0?E:0,left:(M=(k=h.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&M!==void 0?M:0}});let A=m=>{if(e.isFocused){m.currentTarget.contains(m.target)||e.setFocused(!1);return}if(m.currentTarget.contains(m.target)){if(e.setFocused(!0),e.focusedKey==null){var k,E;let q=ie=>{ie!=null&&(e.setFocusedKey(ie),c&&!e.isSelected(ie)&&e.replaceSelection(ie))},Z=m.relatedTarget;var M,V;Z&&m.currentTarget.compareDocumentPosition(Z)&Node.DOCUMENT_POSITION_FOLLOWING?q((M=e.lastSelectedKey)!==null&&M!==void 0?M:(k=n.getLastKey)===null||k===void 0?void 0:k.call(n)):q((V=e.firstSelectedKey)!==null&&V!==void 0?V:(E=n.getFirstKey)===null||E===void 0?void 0:E.call(n))}else!b&&h.current&&(h.current.scrollTop=w.current.top,h.current.scrollLeft=w.current.left);if(e.focusedKey!=null&&h.current){let q=mn(o,e.focusedKey);q instanceof HTMLElement&&(!q.contains(document.activeElement)&&!f&&Be(q),Pt()==="keyboard"&&Ye(q,{containingElement:o.current}))}}},T=m=>{m.currentTarget.contains(m.relatedTarget)||e.setFocused(!1)},C=a.useRef(!1);Mt(o,So,f?m=>{let{detail:k}=m;m.stopPropagation(),e.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(C.current=!0)}:void 0);let I=Q(()=>{var m,k;let E=(k=(m=n.getFirstKey)===null||m===void 0?void 0:m.call(n))!==null&&k!==void 0?k:null;E==null?(el(o.current),e.collection.size>0&&(C.current=!1)):(e.setFocusedKey(E),C.current=!1)});Zl(()=>{C.current&&I()},[e.collection,I]);let R=Q(()=>{e.collection.size>0&&(C.current=!1)});Zl(()=>{R()},[e.focusedKey,R]),Mt(o,yi,f?m=>{var k;m.stopPropagation(),e.setFocused(!1),!((k=m.detail)===null||k===void 0)&&k.clearFocusKey&&e.setFocusedKey(null)}:void 0);const O=a.useRef(l),F=a.useRef(!1);a.useEffect(()=>{if(O.current){var m,k;let V=null;var E;l==="first"&&(V=(E=(m=n.getFirstKey)===null||m===void 0?void 0:m.call(n))!==null&&E!==void 0?E:null);var M;l==="last"&&(V=(M=(k=n.getLastKey)===null||k===void 0?void 0:k.call(n))!==null&&M!==void 0?M:null);let q=e.selectedKeys;if(q.size){for(let Z of q)if(e.canSelectItem(Z)){V=Z;break}}e.setFocused(!0),e.setFocusedKey(V),V==null&&!f&&o.current&&he(o.current),e.collection.size>0&&(O.current=!1,F.current=!0)}});let v=a.useRef(e.focusedKey);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==v.current||F.current)&&h.current&&o.current){let m=Pt(),k=mn(o,e.focusedKey);if(!(k instanceof HTMLElement))return;(m==="keyboard"||F.current)&&($i(h.current,k),m!=="virtual"&&Ye(k,{containingElement:o.current}))}!f&&e.isFocused&&e.focusedKey==null&&v.current!=null&&o.current&&he(o.current),v.current=e.focusedKey,F.current=!1}),Mt(o,"react-aria-focus-scope-restore",m=>{m.preventDefault(),e.setFocused(!0)});let D={onKeyDown:S,onFocus:A,onBlur:T,onMouseDown(m){h.current===m.target&&m.preventDefault()}},{typeSelectProps:K}=Ca({keyboardDelegate:n,selectionManager:e});d||(D=z(K,D));let B;f||(B=e.focusedKey==null?0:-1);let N=Dv(e.collection);return{collectionProps:z(D,{tabIndex:B,"data-collection":N})}}function Sa(t){let{id:e,selectionManager:n,key:o,ref:l,shouldSelectOnPressUp:r,shouldUseVirtualFocus:i,focus:u,isDisabled:s,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=wt();e=oe(e);let b=E=>{if(E.pointerType==="keyboard"&&Mo(E))n.toggleSelection(o);else{if(n.selectionMode==="none")return;if(n.isLink(o)){if(f==="selection"&&l.current){let M=n.getItemProps(o);p.open(l.current,E,M.href,M.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(o)&&!n.disallowEmptySelection?n.toggleSelection(o):n.replaceSelection(o):E&&E.shiftKey?n.extendSelection(o):n.selectionBehavior==="toggle"||E&&(rt(E)||E.pointerType==="touch"||E.pointerType==="virtual")?n.toggleSelection(o):n.replaceSelection(o)}};a.useEffect(()=>{o===n.focusedKey&&n.isFocused&&(i?el(l.current):u?u():document.activeElement!==l.current&&l.current&&he(l.current))},[l,o,n.focusedKey,n.childFocusStrategy,n.isFocused,i]),s=s||n.isDisabled(o);let h={};!i&&!s?h={tabIndex:o===n.focusedKey?0:-1,onFocus(E){E.target===l.current&&n.setFocusedKey(o)}}:s&&(h.onMouseDown=E=>{E.preventDefault()});let g=n.isLink(o)&&f==="override",$=n.isLink(o)&&f!=="selection"&&f!=="none",y=!s&&n.canSelectItem(o)&&!g,S=(c||$)&&!s,w=S&&(n.selectionBehavior==="replace"?!y:!y||n.isEmpty),A=S&&y&&n.selectionBehavior==="replace",T=w||A,C=a.useRef(null),I=T&&y,R=a.useRef(!1),O=a.useRef(!1),F=E=>{if(c&&c(),$&&l.current){let M=n.getItemProps(o);p.open(l.current,E,M.href,M.routerOptions)}},v={ref:l};r?(v.onPressStart=E=>{C.current=E.pointerType,R.current=I,E.pointerType==="keyboard"&&(!T||Pr())&&b(E)},d?(v.onPressUp=w?void 0:E=>{E.pointerType==="mouse"&&y&&b(E)},v.onPress=w?F:E=>{E.pointerType!=="keyboard"&&E.pointerType!=="mouse"&&y&&b(E)}):v.onPress=E=>{if(w||A&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!Sr())return;F(E)}else E.pointerType!=="keyboard"&&y&&b(E)}):(v.onPressStart=E=>{C.current=E.pointerType,R.current=I,O.current=w,y&&(E.pointerType==="mouse"&&!w||E.pointerType==="keyboard"&&(!S||Pr()))&&b(E)},v.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&T&&Sr()||E.pointerType==="mouse"&&O.current)&&(T?F(E):y&&b(E))}),h["data-collection"]=kv(n.collection),h["data-key"]=o,v.preventFocusOnPress=i,i&&(v=z(v,{onPressStart(E){E.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(o))},onPress(E){E.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(o))}}));let{pressProps:D,isPressed:K}=st(v),B=A?E=>{C.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),F(E))}:void 0,{longPressProps:N}=Ki({isDisabled:!I,onLongPress(E){E.pointerType==="touch"&&(b(E),n.setSelectionBehavior("toggle"))}}),m=E=>{C.current==="touch"&&R.current&&E.preventDefault()},k=n.isLink(o)?E=>{at.isOpening||E.preventDefault()}:void 0;return{itemProps:z(h,y||w||i?D:{},I?N:{},{onDoubleClick:B,onDragStartCapture:m,onClick:k,id:e},i?{onMouseDown:E=>E.preventDefault()}:void 0),isPressed:K,isSelected:n.isSelected(o),isFocused:n.isFocused&&n.focusedKey===o,isDisabled:s,allowsSelection:y,hasAction:T}}function Sr(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Pr(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class wr{getItemRect(e){let n=this.ref.current;if(!n)return null;let o=e!=null?mn(this.ref,e):null;if(!o)return null;let l=n.getBoundingClientRect(),r=o.getBoundingClientRect();return{x:r.left-l.left+n.scrollLeft,y:r.top-l.top+n.scrollTop,width:r.width,height:r.height}}getContentSize(){let e=this.ref.current;var n,o;return{width:(n=e==null?void 0:e.scrollWidth)!==null&&n!==void 0?n:0,height:(o=e==null?void 0:e.scrollHeight)!==null&&o!==void 0?o:0}}getVisibleRect(){let e=this.ref.current;var n,o,l,r;return{x:(n=e==null?void 0:e.scrollLeft)!==null&&n!==void 0?n:0,y:(o=e==null?void 0:e.scrollTop)!==null&&o!==void 0?o:0,width:(l=e==null?void 0:e.offsetWidth)!==null&&l!==void 0?l:0,height:(r=e==null?void 0:e.offsetHeight)!==null&&r!==void 0?r:0}}constructor(e){this.ref=e}}class qt{isDisabled(e){var n;return this.disabledBehavior==="all"&&(((n=e.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,n){let o=e;for(;o!=null;){let l=this.collection.getItem(o);if((l==null?void 0:l.type)==="item"&&!this.isDisabled(l))return o;o=n(o)}return null}getNextKey(e){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,o=>this.collection.getKeyAfter(o))}getPreviousKey(e){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,o=>this.collection.getKeyBefore(o))}findKey(e,n,o){let l=e,r=this.layoutDelegate.getItemRect(l);if(!r||l==null)return null;let i=r;do{if(l=n(l),l==null)break;r=this.layoutDelegate.getItemRect(l)}while(r&&o(i,r)&&l!=null);return l}isSameRow(e,n){return e.y===n.y||e.x!==n.x}isSameColumn(e,n){return e.x===n.x||e.y!==n.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,o=>this.getNextColumn(o,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,o=>this.layoutDelegate[n](o))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,o=>this.getNextColumn(o,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyAfter(n))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(e){let n=this.ref.current,o=this.layoutDelegate.getItemRect(e);if(!o)return null;if(n&&!jt(n))return this.getFirstKey();let l=e;if(this.orientation==="horizontal"){let r=Math.max(0,o.x+o.width-this.layoutDelegate.getVisibleRect().width);for(;o&&o.x>r&&l!=null;)l=this.getKeyAbove(l),o=l==null?null:this.layoutDelegate.getItemRect(l)}else{let r=Math.max(0,o.y+o.height-this.layoutDelegate.getVisibleRect().height);for(;o&&o.y>r&&l!=null;)l=this.getKeyAbove(l),o=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,o=this.layoutDelegate.getItemRect(e);if(!o)return null;if(n&&!jt(n))return this.getLastKey();let l=e;if(this.orientation==="horizontal"){let r=Math.min(this.layoutDelegate.getContentSize().width,o.y-o.width+this.layoutDelegate.getVisibleRect().width);for(;o&&o.x<r&&l!=null;)l=this.getKeyBelow(l),o=l==null?null:this.layoutDelegate.getItemRect(l)}else{let r=Math.min(this.layoutDelegate.getContentSize().height,o.y-o.height+this.layoutDelegate.getVisibleRect().height);for(;o&&o.y<r&&l!=null;)l=this.getKeyBelow(l),o=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let o=this.collection,l=n||this.getFirstKey();for(;l!=null;){let r=o.getItem(l);if(!r)return null;let i=r.textValue.slice(0,e.length);if(r.textValue&&this.collator.compare(i,e)===0)return l;l=this.getNextKey(l)}return null}constructor(...e){if(e.length===1){let n=e[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 wr(n.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new wr(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Pa(t){let{selectionManager:e,collection:n,disabledKeys:o,ref:l,keyboardDelegate:r,layoutDelegate:i}=t,u=zn({usage:"search",sensitivity:"base"}),s=e.disabledBehavior,c=a.useMemo(()=>r||new qt({collection:n,disabledKeys:o,disabledBehavior:s,ref:l,collator:u,layoutDelegate:i}),[r,i,n,o,l,u,s]),{collectionProps:d}=Ea({...t,ref:l,selectionManager:e,keyboardDelegate:c});return{listProps:d}}function Av(t,e,n){let o=X(t,{labelable:!0}),l=t.selectionBehavior||"toggle",r=t.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&r==="action"&&(r="override");let{listProps:i}=Pa({...t,ref:n,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:r}),{focusWithinProps:u}=Ut({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),s=oe(t.id);Hn.set(e,{id:s,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:r});let{labelProps:c,fieldProps:d}=ol({...t,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:z(o,u,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...z(d,i)})}}class Rv{build(e,n){return this.context=n,Dr(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:o}=e;if(a.isValidElement(n)&&n.type===a.Fragment)yield*this.iterateCollection({children:n.props.children,items:o});else if(typeof n=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");let l=0;for(let r of o)yield*this.getFullNode({value:r,index:l},{renderer:n}),l++}else{let l=[];a.Children.forEach(n,i=>{i&&l.push(i)});let r=0;for(let i of l){let u=this.getFullNode({element:i,index:r},{});for(let s of u)r++,yield s}}}getKey(e,n,o,l){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${l}${n.key}`;let r=n.value;if(r!=null){var i;let u=(i=r.key)!==null&&i!==void 0?i:r.id;if(u==null)throw new Error("No key found for item");return u}return l?`${l}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,o,l){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let $=[];a.Children.forEach(e.element.props.children,S=>{$.push(S)});var r;let y=(r=e.index)!==null&&r!==void 0?r:0;for(const S of $)yield*this.getFullNode({element:S,index:y++},n,o,l);return}let i=e.element;if(!i&&e.value&&n&&n.renderer){let $=this.cache.get(e.value);if($&&(!$.shouldInvalidate||!$.shouldInvalidate(this.context))){$.index=e.index,$.parentKey=l?l.key:null,yield $;return}i=n.renderer(e.value)}if(a.isValidElement(i)){let $=i.type;if(typeof $!="function"&&typeof $.getCollectionNode!="function"){let A=i.type;throw new Error(`Unknown element <${A}> in collection.`)}let y=$.getCollectionNode(i.props,this.context);var u;let S=(u=e.index)!==null&&u!==void 0?u:0,w=y.next();for(;!w.done&&w.value;){let A=w.value;e.index=S;var s;let T=(s=A.key)!==null&&s!==void 0?s:null;T==null&&(T=A.element?null:this.getKey(i,e,n,o));let I=[...this.getFullNode({...A,key:T,index:S,wrapper:Fv(e.wrapper,A.wrapper)},this.getChildState(n,A),o?`${o}${i.key}`:i.key,l)];for(let R of I){var c,d;R.value=(d=(c=A.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,R.value&&this.cache.set(R.value,R);var f;if(e.type&&R.type!==e.type)throw new Error(`Unsupported type <${po(R.type)}> in <${po((f=l==null?void 0:l.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${po(e.type)}> is supported.`);S++,yield R}w=y.next(I)}return}if(e.key==null||e.type==null)return;let p=this;var b,h;let g={type:e.type,props:e.props,key:e.key,parentKey:l?l.key:null,value:(b=e.value)!==null&&b!==void 0?b:null,level:l?l.level+1:0,index:e.index,rendered:e.rendered,textValue:(h=e.textValue)!==null&&h!==void 0?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Dr(function*(){if(!e.hasChildNodes||!e.childNodes)return;let $=0;for(let y of e.childNodes()){y.key!=null&&(y.key=`${g.key}${y.key}`);let S=p.getFullNode({...y,index:$},p.getChildState(n,y),g.key,g);for(let w of S)$++,yield w}})};yield g}constructor(){this.cache=new WeakMap}}function Dr(t){let e=[],n=null;return{*[Symbol.iterator](){for(let o of e)yield o;n||(n=t());for(let o of n)e.push(o),yield o}}}function Fv(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function po(t){return t[0].toUpperCase()+t.slice(1)}function Lv(t,e,n){let o=a.useMemo(()=>new Rv,[]),{children:l,items:r,collection:i}=t;return a.useMemo(()=>{if(i)return i;let s=o.build({children:l,items:r},n);return e(s)},[o,l,r,i,n,e])}function _n(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Iv(t){return Kv(t)}function Kv(t,e){for(let n of t)return n}function Mv(t){let e;for(let n of t)e=n;return e}function bo(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let o=[...kr(t,e),e],l=[...kr(t,n),n],r=o.slice(0,l.length).findIndex((i,u)=>i!==l[u]);return r!==-1?(e=o[r],n=l[r],e.index-n.index):o.findIndex(i=>i===n)>=0?1:(l.findIndex(i=>i===e)>=0,-1)}function kr(t,e){let n=[],o=e;for(;(o==null?void 0:o.parentKey)!=null;)o=t.getItem(o.parentKey),o&&n.unshift(o);return n}const Tr=new WeakMap;function wa(t){let e=Tr.get(t);if(e!=null)return e;let n=0,o=l=>{for(let r of l)r.type==="section"?o(_n(r,t)):n++};return o(t),Tr.set(t,n),n}function Nv(t,e,n){var o,l;let{key:r}=t,i=Hn.get(e);var u;let s=(u=t.isDisabled)!==null&&u!==void 0?u:e.selectionManager.isDisabled(r);var c;let d=(c=t.isSelected)!==null&&c!==void 0?c:e.selectionManager.isSelected(r);var f;let p=(f=t.shouldSelectOnPressUp)!==null&&f!==void 0?f:i==null?void 0:i.shouldSelectOnPressUp;var b;let h=(b=t.shouldFocusOnHover)!==null&&b!==void 0?b:i==null?void 0:i.shouldFocusOnHover;var g;let $=(g=t.shouldUseVirtualFocus)!==null&&g!==void 0?g:i==null?void 0:i.shouldUseVirtualFocus;var y;let S=(y=t.isVirtualized)!==null&&y!==void 0?y:i==null?void 0:i.isVirtualized,w=Et(),A=Et(),T={role:"option","aria-disabled":s||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?d:void 0};et()&&Wo()||(T["aria-label"]=t["aria-label"],T["aria-labelledby"]=w,T["aria-describedby"]=A);let C=e.collection.getItem(r);if(S){let k=Number(C==null?void 0:C.index);T["aria-posinset"]=Number.isNaN(k)?void 0:k+1,T["aria-setsize"]=wa(e.collection)}let I=i!=null&&i.onAction?()=>{var k;return i==null||(k=i.onAction)===null||k===void 0?void 0:k.call(i,r)}:void 0,R=ya(e,r),{itemProps:O,isPressed:F,isFocused:v,hasAction:D,allowsSelection:K}=Sa({selectionManager:e.selectionManager,key:r,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&h,isVirtualized:S,shouldUseVirtualFocus:$,isDisabled:s,onAction:I||!(C==null||(o=C.props)===null||o===void 0)&&o.onAction?Me(C==null||(l=C.props)===null||l===void 0?void 0:l.onAction,I):void 0,linkBehavior:i==null?void 0:i.linkBehavior,id:R}),{hoverProps:B}=Ge({isDisabled:s||!h,onHoverStart(){St()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(r))}}),N=X(C==null?void 0:C.props);delete N.id;let m=hi(C==null?void 0:C.props);return{optionProps:{...T,...z(N,O,B,m),id:R},labelProps:{id:w},descriptionProps:{id:A},isFocused:v,isFocusVisible:v&&e.selectionManager.isFocused&&St(),isSelected:d,isDisabled:s,isPressed:F,allowsSelection:K,hasAction:D}}function zv(t){let{heading:e,"aria-label":n}=t,o=oe();return{itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":e?o:void 0}}}var Da={};Da={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var ka={};ka={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Ta={};Ta={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Ba={};Ba={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Aa={};Aa={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Ra={};Ra={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Fa={};Fa={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var La={};La={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Ia={};Ia={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Ka={};Ka={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Ma={};Ma={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Na={};Na={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var za={};za={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Oa={};Oa={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Va={};Va={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var ja={};ja={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Ha={};Ha={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var _a={};_a={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Wa={};Wa={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Ga={};Ga={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Ua={};Ua={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var qa={};qa={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Za={};Za={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Ya={};Ya={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Xa={};Xa={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Ja={};Ja={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Qa={};Qa={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var es={};es={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var ts={};ts={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var ns={};ns={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var os={};os={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ls={};ls={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var rs={};rs={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var is={};is={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var us={};us={"ar-AE":Da,"bg-BG":ka,"cs-CZ":Ta,"da-DK":Ba,"de-DE":Aa,"el-GR":Ra,"en-US":Fa,"es-ES":La,"et-EE":Ia,"fi-FI":Ka,"fr-FR":Ma,"he-IL":Na,"hr-HR":za,"hu-HU":Oa,"it-IT":Va,"ja-JP":ja,"ko-KR":Ha,"lt-LT":_a,"lv-LV":Wa,"nb-NO":Ga,"nl-NL":Ua,"pl-PL":qa,"pt-BR":Za,"pt-PT":Ya,"ro-RO":Xa,"ru-RU":Ja,"sk-SK":Qa,"sl-SI":es,"sr-SP":ts,"sv-SE":ns,"tr-TR":os,"uk-UA":ls,"zh-CN":rs,"zh-TW":is};function Ov(t){return t&&t.__esModule?t.default:t}function as(t,e,n){let{type:o="menu",isDisabled:l,trigger:r="press"}=t,i=oe(),{triggerProps:u,overlayProps:s}=Iu({type:o},e,n),c=b=>{if(!l&&!(r==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(r==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),e.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},d=nt(Ov(us),"@react-aria/menu"),{longPressProps:f}=Ki({isDisabled:l||r!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),p={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!l&&(Be(b.target),e.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!l&&(Be(b.target),e.toggle())}};return delete u.onPress,{menuTriggerProps:{...u,...r==="press"?p:f,id:i,onKeyDown:c},menuProps:{...s,"aria-labelledby":i,autoFocus:e.focusStrategy||!0,onClose:e.close}}}function Vv(t){return t&&t.__esModule?t.default:t}function jv(t,e){let{buttonRef:n,popoverRef:o,inputRef:l,listBoxRef:r,keyboardDelegate:i,layoutDelegate:u,shouldFocusWrap:s,isReadOnly:c,isDisabled:d}=t,f=a.useRef(null);n=n??f;let p=nt(Vv(Au),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:h}=as({type:"listbox",isDisabled:d||c},e,n);Hn.set(e,{id:h.id});let{collection:g}=e,{disabledKeys:$}=e.selectionManager,y=a.useMemo(()=>i||new qt({collection:g,disabledKeys:$,ref:r,layoutDelegate:u}),[i,u,g,$,r]),{collectionProps:S}=Ea({selectionManager:e.selectionManager,keyboardDelegate:y,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:l,isVirtualized:!0}),w=wt(),A=L=>{if(!L.nativeEvent.isComposing)switch(L.key){case"Enter":case"Tab":if(e.isOpen&&L.key==="Enter"&&L.preventDefault(),e.isOpen&&r.current&&e.selectionManager.focusedKey!=null&&e.selectionManager.isLink(e.selectionManager.focusedKey)){let H=r.current.querySelector(`[data-key="${CSS.escape(e.selectionManager.focusedKey.toString())}"]`);if(L.key==="Enter"&&H instanceof HTMLAnchorElement){let _=e.collection.getItem(e.selectionManager.focusedKey);_&&w.open(H,L,_.props.href,_.props.routerOptions)}e.close()}else e.commit();break;case"Escape":(e.selectedKey!==null||e.inputValue===""||t.allowsCustomValue)&&L.continuePropagation(),e.revert();break;case"ArrowDown":e.open("first","manual");break;case"ArrowUp":e.open("last","manual");break;case"ArrowLeft":case"ArrowRight":e.selectionManager.setFocusedKey(null);break}},T=L=>{var H;let _=(n==null?void 0:n.current)&&n.current===L.relatedTarget,Ce=(H=o.current)===null||H===void 0?void 0:H.contains(L.relatedTarget);_||Ce||(t.onBlur&&t.onBlur(L),e.setFocused(!1))},C=L=>{e.isFocused||(t.onFocus&&t.onFocus(L),e.setFocused(!0))},{isInvalid:I,validationErrors:R,validationDetails:O}=e.displayValidation,{labelProps:F,inputProps:v,descriptionProps:D,errorMessageProps:K}=rl({...t,onChange:e.setInputValue,onKeyDown:c?t.onKeyDown:Me(e.isOpen&&S.onKeyDown,A,t.onKeyDown),onBlur:T,value:e.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[Tn]:e},l),B=L=>{if(L.pointerType==="touch"){var H;(H=l.current)===null||H===void 0||H.focus(),e.toggle(null,"manual")}},N=L=>{if(L.pointerType!=="touch"){var H;(H=l.current)===null||H===void 0||H.focus(),e.toggle(L.pointerType==="keyboard"||L.pointerType==="virtual"?"first":null,"manual")}},m=Vt({id:b.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":t["aria-labelledby"]||F.id}),k=Vt({id:h.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":t["aria-labelledby"]||F.id}),E=a.useRef(0),M=L=>{if(d||c)return;if(L.timeStamp-E.current<500){var H;L.preventDefault(),(H=l.current)===null||H===void 0||H.focus();return}let _=L.target.getBoundingClientRect(),Ce=L.changedTouches[0],Bt=Math.ceil(_.left+.5*_.width),un=Math.ceil(_.top+.5*_.height);if(Ce.clientX===Bt&&Ce.clientY===un){var At;L.preventDefault(),(At=l.current)===null||At===void 0||At.focus(),e.toggle(null,"manual"),E.current=L.timeStamp}},V=e.selectionManager.focusedKey!=null&&e.isOpen?e.collection.getItem(e.selectionManager.focusedKey):void 0;var q;let Z=(q=V==null?void 0:V.parentKey)!==null&&q!==void 0?q:null;var ie;let pe=(ie=e.selectionManager.focusedKey)!==null&&ie!==void 0?ie:null,Ee=a.useRef(Z),De=a.useRef(pe);a.useEffect(()=>{if(vn()&&V!=null&&pe!=null&&pe!==De.current){let H=e.selectionManager.isSelected(pe),_=Z!=null?e.collection.getItem(Z):null,Ce=(_==null?void 0:_["aria-label"])||(typeof(_==null?void 0:_.rendered)=="string"?_.rendered:"")||"";var L;let Bt=p.format("focusAnnouncement",{isGroupChange:(L=_&&Z!==Ee.current)!==null&&L!==void 0?L:!1,groupTitle:Ce,groupCount:_?[..._n(_,e.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:H});yt(Bt)}Ee.current=Z,De.current=pe});let ge=wa(e.collection),Re=a.useRef(ge),Ve=a.useRef(e.isOpen);a.useEffect(()=>{let L=e.isOpen!==Ve.current&&(e.selectionManager.focusedKey==null||vn());if(e.isOpen&&(L||ge!==Re.current)){let H=p.format("countAnnouncement",{optionCount:ge});yt(H)}Re.current=ge,Ve.current=e.isOpen});let je=a.useRef(e.selectedKey);return a.useEffect(()=>{if(vn()&&e.isFocused&&e.selectedItem&&e.selectedKey!==je.current){let L=e.selectedItem["aria-label"]||e.selectedItem.textValue||"",H=p.format("selectedAnnouncement",{optionText:L});yt(H)}je.current=e.selectedKey}),a.useEffect(()=>{if(e.isOpen)return ga([l.current,o.current].filter(L=>L!=null))},[e.isOpen,l,o]),gi(()=>{!V&&l.current&&re(W(l.current))===l.current&&tl(l.current,null)},[V]),{labelProps:F,buttonProps:{...b,...m,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:B,onPressStart:N,isDisabled:d||c},inputProps:z(v,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":e.isOpen?h.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?ya(e,V.key):void 0,onTouchEnd:M,autoCorrect:"off",spellCheck:"false"}),listBoxProps:z(h,k,{autoFocus:e.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:D,errorMessageProps:K,isInvalid:I,validationErrors:R,validationDetails:O}}function Hv(t,e){let{role:n="dialog"}=t,o=Et();o=t["aria-label"]?void 0:o;let l=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!e.current.contains(document.activeElement)){he(e.current);let r=setTimeout(()=>{document.activeElement===e.current&&(l.current=!0,e.current&&(e.current.blur(),he(e.current)),l.current=!1)},500);return()=>{clearTimeout(r)}}},[e]),Pv(),{dialogProps:{...X(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||o,onBlur:r=>{l.current&&r.stopPropagation()}},titleProps:{id:o}}}function _v(t,e,n){let{isDisabled:o}=t,l=oe(),r=oe(),u=!tt()&&"onbeforematch"in document.body,s=a.useRef(null),c=a.useCallback(()=>{s.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute("hidden","until-found")}),dt.flushSync(()=>{e.toggle()})},[n,e]);return Mt(n,"beforematch",u?c:null),j(()=>{s.current&&cancelAnimationFrame(s.current),u&&n.current&&!o&&(e.isExpanded?n.current.removeAttribute("hidden"):n.current.setAttribute("hidden","until-found"))},[o,n,e.isExpanded,u]),a.useEffect(()=>()=>{s.current&&cancelAnimationFrame(s.current)},[]),{buttonProps:{id:l,"aria-expanded":e.isExpanded,"aria-controls":r,onPress:d=>{!o&&d.pointerType!=="keyboard"&&e.toggle()},isDisabled:o,onPressStart(d){d.pointerType==="keyboard"&&!o&&e.toggle()}},panelProps:{id:r,role:"group","aria-labelledby":l,"aria-hidden":!e.isExpanded,hidden:u?!0:!e.isExpanded}}}const il=new WeakMap;function Br(t,e){var n;let{id:o}=(n=il.get(t))!==null&&n!==void 0?n:{};if(!o)throw new Error("Unknown list");return`${o}-${Wv(e)}`}function Wv(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}var ss={};ss={deselectedItem:t=>`${t.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${e.number(t.count)} عنصر محدد`,other:()=>`${e.number(t.count)} عنصر محدد`})}.`,selectedItem:t=>`${t.item} المحدد`};var cs={};cs={deselectedItem:t=>`${t.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Няма избрани елементи",one:()=>`${e.number(t.count)} избран елемент`,other:()=>`${e.number(t.count)} избрани елементи`})}.`,selectedItem:t=>`${t.item} избран.`};var ds={};ds={deselectedItem:t=>`Položka ${t.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:(t,e)=>`${e.plural(t.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${e.number(t.count)} položka`,other:()=>`Vybráno ${e.number(t.count)} položek`})}.`,selectedItem:t=>`Vybrána položka ${t.item}.`};var fs={};fs={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var ps={};ps={deselectedItem:t=>`${t.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${e.number(t.count)} Element ausgewählt`,other:()=>`${e.number(t.count)} Elemente ausgewählt`})}.`,selectedItem:t=>`${t.item} ausgewählt.`};var bs={};bs={deselectedItem:t=>`Δεν επιλέχθηκε το στοιχείο ${t.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${e.number(t.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${e.number(t.count)} στοιχεία`})}.`,selectedItem:t=>`Επιλέχθηκε το στοιχείο ${t.item}.`};var vs={};vs={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var hs={};hs={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ningún elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var ms={};ms={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Üksusi pole valitud",one:()=>`${e.number(t.count)} üksus valitud`,other:()=>`${e.number(t.count)} üksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var gs={};gs={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var $s={};$s={deselectedItem:t=>`${t.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:(t,e)=>`${e.plural(t.count,{"=0":"Aucun élément sélectionné",one:()=>`${e.number(t.count)} élément sélectionné`,other:()=>`${e.number(t.count)} éléments sélectionnés`})}.`,selectedItem:t=>`${t.item} sélectionné.`};var ys={};ys={deselectedItem:t=>`${t.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${e.number(t.count)} נבחר`,other:()=>`${e.number(t.count)} פריטים נבחרו`})}.`,selectedItem:t=>`${t.item} נבחר.`};var xs={};xs={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var Cs={};Cs={deselectedItem:t=>`${t.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${e.number(t.count)} elem kijelölve`,other:()=>`${e.number(t.count)} elem kijelölve`})}.`,selectedItem:t=>`${t.item} kijelölve.`};var Es={};Es={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var Ss={};Ss={deselectedItem:t=>`${t.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"項目が選択されていません",one:()=>`${e.number(t.count)} 項目を選択しました`,other:()=>`${e.number(t.count)} 項目を選択しました`})}。`,selectedItem:t=>`${t.item} を選択しました。`};var Ps={};Ps={deselectedItem:t=>`${t.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"선택된 항목이 없습니다",one:()=>`${e.number(t.count)}개 항목이 선택되었습니다`,other:()=>`${e.number(t.count)}개 항목이 선택되었습니다`})}.`,selectedItem:t=>`${t.item}이(가) 선택되었습니다.`};var ws={};ws={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta elementų: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var Ds={};Ds={deselectedItem:t=>`Vienums ${t.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlasīto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlasīts vienums ${t.item}.`};var ks={};ks={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var Ts={};Ts={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var Bs={};Bs={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych elementów`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var As={};As={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Rs={};Rs={deselectedItem:t=>`${t.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Fs={};Fs={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var Ls={};Ls={deselectedItem:t=>`${t.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Нет выбранных элементов",one:()=>`${e.number(t.count)} элемент выбран`,other:()=>`${e.number(t.count)} элементов выбрано`})}.`,selectedItem:t=>`${t.item} выбрано.`};var Is={};Is={deselectedItem:t=>`Nevybraté položky: ${t.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Žiadne vybraté položky",one:()=>`${e.number(t.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybraté položky: ${t.item}.`};var Ks={};Ks={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var Ms={};Ms={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var Ns={};Ns={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var zs={};zs={deselectedItem:t=>`${t.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${e.number(t.count)} öge seçildi`,other:()=>`${e.number(t.count)} öge seçildi`})}.`,selectedItem:t=>`${t.item} seçildi.`};var Os={};Os={deselectedItem:t=>`${t.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Жодних елементів не вибрано",one:()=>`${e.number(t.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} вибрано.`};var Vs={};Vs={deselectedItem:t=>`未选择 ${t.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未选择项目",one:()=>`已选择 ${e.number(t.count)} 个项目`,other:()=>`已选择 ${e.number(t.count)} 个项目`})}。`,selectedItem:t=>`已选择 ${t.item}。`};var js={};js={deselectedItem:t=>`未選取「${t.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"未選取任何項目",one:()=>`已選取 ${e.number(t.count)} 個項目`,other:()=>`已選取 ${e.number(t.count)} 個項目`})}。`,selectedItem:t=>`已選取「${t.item}」。`};var ul={};ul={"ar-AE":ss,"bg-BG":cs,"cs-CZ":ds,"da-DK":fs,"de-DE":ps,"el-GR":bs,"en-US":vs,"es-ES":hs,"et-EE":ms,"fi-FI":gs,"fr-FR":$s,"he-IL":ys,"hr-HR":xs,"hu-HU":Cs,"it-IT":Es,"ja-JP":Ss,"ko-KR":Ps,"lt-LT":ws,"lv-LV":Ds,"nb-NO":ks,"nl-NL":Ts,"pl-PL":Bs,"pt-BR":As,"pt-PT":Rs,"ro-RO":Fs,"ru-RU":Ls,"sk-SK":Is,"sl-SI":Ks,"sr-SP":Ms,"sv-SE":Ns,"tr-TR":zs,"uk-UA":Os,"zh-CN":Vs,"zh-TW":js};function Gv(t){return t&&t.__esModule?t.default:t}function Uv(t,e){let{getRowText:n=u=>{var s,c,d,f;return(f=(s=(c=e.collection).getTextValue)===null||s===void 0?void 0:s.call(c,u))!==null&&f!==void 0?f:(d=e.collection.getItem(u))===null||d===void 0?void 0:d.textValue}}=t,o=nt(Gv(ul),"@react-aria/grid"),l=e.selectionManager.rawSelection,r=a.useRef(l),i=Q(()=>{var u;if(!e.selectionManager.isFocused||l===r.current){r.current=l;return}let s=Ar(l,r.current),c=Ar(r.current,l),d=e.selectionManager.selectionBehavior==="replace",f=[];if(e.selectionManager.selectedKeys.size===1&&d){if(e.collection.getItem(e.selectionManager.selectedKeys.keys().next().value)){let p=n(e.selectionManager.selectedKeys.keys().next().value);p&&f.push(o.format("selectedItem",{item:p}))}}else if(s.size===1&&c.size===0){let p=n(s.keys().next().value);p&&f.push(o.format("selectedItem",{item:p}))}else if(c.size===1&&s.size===0&&e.collection.getItem(c.keys().next().value)){let p=n(c.keys().next().value);p&&f.push(o.format("deselectedItem",{item:p}))}e.selectionManager.selectionMode==="multiple"&&(f.length===0||l==="all"||l.size>1||r.current==="all"||((u=r.current)===null||u===void 0?void 0:u.size)>1)&&f.push(l==="all"?o.format("selectedAll"):o.format("selectedCount",{count:l.size})),f.length>0&&yt(f.join(" ")),r.current=l});gi(()=>{if(e.selectionManager.isFocused)i();else{let u=requestAnimationFrame(i);return()=>cancelAnimationFrame(u)}},[l,e.selectionManager.isFocused])}function Ar(t,e){let n=new Set;if(t==="all"||e==="all")return n;for(let o of t.keys())e.has(o)||n.add(o);return n}function qv(t){return t&&t.__esModule?t.default:t}function Zv(t){let e=nt(qv(ul),"@react-aria/grid"),n=Li(),o=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,l=a.useMemo(()=>{let i=t.selectionManager.selectionMode,u=t.selectionManager.selectionBehavior,s;return o&&(s=e.format("longPressToSelect")),u==="replace"&&i!=="none"&&t.hasItemActions?s:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,o]);return qo(l)}function Yv(t,e,n){let{isVirtualized:o,keyboardDelegate:l,layoutDelegate:r,onAction:i,disallowTypeAhead:u,linkBehavior:s="action",keyboardNavigationBehavior:c="arrow",escapeKeyBehavior:d="clearSelection"}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=Pa({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:n,keyboardDelegate:l,layoutDelegate:r,isVirtualized:o,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:u,autoFocus:t.autoFocus,escapeKeyBehavior:d}),p=oe(t.id);il.set(e,{id:p,onAction:i,linkBehavior:s,keyboardNavigationBehavior:c});let b=Zv({selectionManager:e.selectionManager,hasItemActions:!!i}),h=Ob(n,{isDisabled:e.collection.size!==0}),g=X(t,{labelable:!0}),$=z(g,{role:"grid",id:p,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:h?-1:0}:f,b);return o&&($["aria-rowcount"]=e.collection.size,$["aria-colcount"]=1),Uv({},e),{gridProps:$}}const Rr={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Xv(t,e,n){var o,l;let{node:r,isVirtualized:i,shouldSelectOnPressUp:u}=t,{direction:s}=ze(),{onAction:c,linkBehavior:d,keyboardNavigationBehavior:f}=il.get(e),p=Et(),b=a.useRef(null),h=()=>{var m;n.current!==null&&(b.current!=null&&r.key!==b.current||!(!((m=n.current)===null||m===void 0)&&m.contains(document.activeElement)))&&he(n.current)},g={},$=t.hasChildItems,y=e.selectionManager.isLink(r.key);if(r!=null&&"expandedKeys"in e){var S,w,A;let m=(S=(w=e.collection).getChildren)===null||S===void 0?void 0:S.call(w,r.key);$=$||[...m??[]].length>1,c==null&&!y&&e.selectionManager.selectionMode==="none"&&$&&(c=()=>e.toggleKey(r.key));let k=$?e.expandedKeys.has(r.key):void 0,E=1;var T;if(r.level>0&&(r==null?void 0:r.parentKey)!=null){let M=e.collection.getItem(r.parentKey);if(M){var C,I;let V=(C=(I=e.collection).getChildren)===null||C===void 0?void 0:C.call(I,M.key);E=Mv(V).index+1}}else E=((T=(A=[...e.collection].filter(M=>M.level===0).at(-1))===null||A===void 0?void 0:A.index)!==null&&T!==void 0?T:0)+1;g={"aria-expanded":k,"aria-level":r.level+1,"aria-posinset":(r==null?void 0:r.index)+1,"aria-setsize":E}}let{itemProps:R,...O}=Sa({selectionManager:e.selectionManager,key:r.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:u,onAction:c||!((o=r.props)===null||o===void 0)&&o.onAction?Me((l=r.props)===null||l===void 0?void 0:l.onAction,c?()=>c(r.key):void 0):void 0,focus:h,linkBehavior:d}),F=m=>{if(!m.currentTarget.contains(m.target)||!n.current||!document.activeElement)return;let k=ve(n.current);if(k.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===n.current){if(m.key===Rr.expand[s]&&e.selectionManager.focusedKey===r.key&&$&&!e.expandedKeys.has(r.key)){e.toggleKey(r.key),m.stopPropagation();return}else if(m.key===Rr.collapse[s]&&e.selectionManager.focusedKey===r.key&&$&&e.expandedKeys.has(r.key)){e.toggleKey(r.key),m.stopPropagation();return}}switch(m.key){case"ArrowLeft":if(f==="arrow"){let M=s==="rtl"?k.nextNode():k.previousNode();if(M)m.preventDefault(),m.stopPropagation(),he(M),Ye(M,{containingElement:Ze(n.current)});else if(m.preventDefault(),m.stopPropagation(),s==="rtl")he(n.current),Ye(n.current,{containingElement:Ze(n.current)});else{k.currentNode=n.current;let V=Fr(k);V&&(he(V),Ye(V,{containingElement:Ze(n.current)}))}}break;case"ArrowRight":if(f==="arrow"){let M=s==="rtl"?k.previousNode():k.nextNode();if(M)m.preventDefault(),m.stopPropagation(),he(M),Ye(M,{containingElement:Ze(n.current)});else if(m.preventDefault(),m.stopPropagation(),s==="ltr")he(n.current),Ye(n.current,{containingElement:Ze(n.current)});else{k.currentNode=n.current;let V=Fr(k);V&&(he(V),Ye(V,{containingElement:Ze(n.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!m.altKey&&n.current.contains(m.target)){var E;m.stopPropagation(),m.preventDefault(),(E=n.current.parentElement)===null||E===void 0||E.dispatchEvent(new KeyboardEvent(m.nativeEvent.type,m.nativeEvent))}break;case"Tab":if(f==="tab"){let M=ve(n.current,{tabbable:!0});M.currentNode=document.activeElement,(m.shiftKey?M.previousNode():M.nextNode())&&m.stopPropagation()}}},v=m=>{if(b.current=r.key,m.target!==n.current){St()||e.selectionManager.setFocusedKey(r.key);return}},D=vi(r.props),K=O.hasAction?D:{},B=z(R,K,{role:"row",onKeyDownCapture:F,onFocus:v,"aria-label":r.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(r.key)?e.selectionManager.isSelected(r.key):void 0,"aria-disabled":e.selectionManager.isDisabled(r.key)||void 0,"aria-labelledby":p&&r.textValue?`${Br(e,r.key)} ${p}`:void 0,id:Br(e,r.key)});i&&(B["aria-rowindex"]=r.index+1);let N={role:"gridcell","aria-colindex":1};return{rowProps:{...z(B,g)},gridCellProps:N,descriptionProps:{id:p},...O}}function Fr(t){let e=null,n=null;do n=t.lastChild(),n&&(e=n);while(n);return e}function Jv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bn={exports:{}},vo={};/**
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={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Lr;function Qv(){if(Lr)return vo;Lr=1;var t=a;function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,l=t.useEffect,r=t.useLayoutEffect,i=t.useDebugValue;function u(f,p){var b=p(),h=o({inst:{value:b,getSnapshot:p}}),g=h[0].inst,$=h[1];return r(function(){g.value=b,g.getSnapshot=p,s(g)&&$({inst:g})},[f,b,p]),l(function(){return s(g)&&$({inst:g}),f(function(){s(g)&&$({inst:g})})},[f]),i(b),b}function s(f){var p=f.getSnapshot;f=f.value;try{var b=p();return!n(f,b)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:u;return vo.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,vo}var ho={};/**
9
+ */var Pl;function ig(){if(Pl)return si;Pl=1;var e=u;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function l(c,p){var m=p(),b=n({inst:{value:m,getSnapshot:p}}),g=b[0].inst,y=b[1];return a(function(){g.value=m,g.getSnapshot=p,s(g)&&y({inst:g})},[c,m,p]),i(function(){return s(g)&&y({inst:g}),c(function(){s(g)&&y({inst:g})})},[c]),o(m),m}function s(c){var p=c.getSnapshot;c=c.value;try{var m=p();return!r(c,m)}catch{return!0}}function d(c,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return si.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,si}var di={};/**
10
10
  * @license React
11
11
  * use-sync-external-store-shim.development.js
12
12
  *
@@ -14,14 +14,24 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ir;function e0(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&function(){function t(b,h){return b===h&&(b!==0||1/b===1/h)||b!==b&&h!==h}function e(b,h){d||l.startTransition===void 0||(d=!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=h();if(!f){var $=h();r(g,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}$=i({inst:{value:g,getSnapshot:h}});var y=$[0].inst,S=$[1];return s(function(){y.value=g,y.getSnapshot=h,n(y)&&S({inst:y})},[b,g,h]),u(function(){return n(y)&&S({inst:y}),b(function(){n(y)&&S({inst:y})})},[b]),c(g),g}function n(b){var h=b.getSnapshot;b=b.value;try{var g=h();return!r(b,g)}catch{return!0}}function o(b,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=a,r=typeof Object.is=="function"?Object.is:t,i=l.useState,u=l.useEffect,s=l.useLayoutEffect,c=l.useDebugValue,d=!1,f=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:e;ho.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ho}var Kr;function t0(){return Kr||(Kr=1,process.env.NODE_ENV==="production"?bn.exports=Qv():bn.exports=e0()),bn.exports}var n0=t0();function o0(t){let{value:e=0,minValue:n=0,maxValue:o=100,valueLabel:l,isIndeterminate:r,formatOptions:i={style:"percent"}}=t,u=X(t,{labelable:!0}),{labelProps:s,fieldProps:c}=ol({...t,labelElementType:"span"});e=xn(e,n,o);let d=(e-n)/(o-n),f=Bb(i);if(!r&&!l){let p=i.style==="percent"?d:e;l=f.format(p)}return{progressBarProps:z(u,{...c,"aria-valuenow":r?void 0:e,"aria-valuemin":n,"aria-valuemax":o,"aria-valuetext":r?void 0:l,role:"progressbar"}),labelProps:s}}const Hs=new WeakMap;function l0(t,e,n){let{keyboardDelegate:o,isDisabled:l,isRequired:r,name:i,validationBehavior:u="aria"}=t,s=zn({usage:"search",sensitivity:"base"}),c=a.useMemo(()=>o||new qt(e.collection,e.disabledKeys,n,s),[o,e.collection,e.disabledKeys,s,n]),{menuTriggerProps:d,menuProps:f}=as({isDisabled:l,type:"listbox"},e,n),p=R=>{switch(R.key){case"ArrowLeft":{var O,F;R.preventDefault();let K=e.selectedKey!=null?(O=c.getKeyAbove)===null||O===void 0?void 0:O.call(c,e.selectedKey):(F=c.getFirstKey)===null||F===void 0?void 0:F.call(c);K&&e.setSelectedKey(K);break}case"ArrowRight":{var v,D;R.preventDefault();let K=e.selectedKey!=null?(v=c.getKeyBelow)===null||v===void 0?void 0:v.call(c,e.selectedKey):(D=c.getFirstKey)===null||D===void 0?void 0:D.call(c);K&&e.setSelectedKey(K);break}}},{typeSelectProps:b}=Ca({keyboardDelegate:c,selectionManager:e.selectionManager,onTypeSelect(R){e.setSelectedKey(R)}}),{isInvalid:h,validationErrors:g,validationDetails:$}=e.displayValidation,{labelProps:y,fieldProps:S,descriptionProps:w,errorMessageProps:A}=jn({...t,labelElementType:"span",isInvalid:h,errorMessage:t.errorMessage||g});b.onKeyDown=b.onKeyDownCapture,delete b.onKeyDownCapture;let T=X(t,{labelable:!0}),C=z(b,d,S),I=oe();return Hs.set(e,{isDisabled:l,isRequired:r,name:i,validationBehavior:u}),{labelProps:{...y,onClick:()=>{if(!t.isDisabled){var R;(R=n.current)===null||R===void 0||R.focus(),Fi("keyboard")}}},triggerProps:z(T,{...C,isDisabled:l,onKeyDown:Me(C.onKeyDown,p,t.onKeyDown),onKeyUp:t.onKeyUp,"aria-labelledby":[I,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].filter(Boolean).join(" "),onFocus(R){e.isFocused||(t.onFocus&&t.onFocus(R),t.onFocusChange&&t.onFocusChange(!0),e.setFocused(!0))},onBlur(R){e.isOpen||(t.onBlur&&t.onBlur(R),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))}}),valueProps:{id:I},menuProps:{...f,autoFocus:e.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:R=>{R.currentTarget.contains(R.relatedTarget)||(t.onBlur&&t.onBlur(R),t.onFocusChange&&t.onFocusChange(!1),e.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],C["aria-label"]&&!S["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:w,errorMessageProps:A,isInvalid:h,validationErrors:g,validationDetails:$}}function r0(t,e,n){let o=Hs.get(e)||{},{autoComplete:l,name:r=o.name,isDisabled:i=o.isDisabled}=t,{validationBehavior:u,isRequired:s}=o,{visuallyHiddenProps:c}=Zi();Zo(t.selectRef,e.selectedKey,e.setSelectedKey),nl({validationBehavior:u,focus:()=>{var f;return(f=n.current)===null||f===void 0?void 0:f.focus()}},e,t.selectRef);var d;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:l,disabled:i,required:u==="native"&&s,name:r,value:(d=e.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>e.setSelectedKey(f.target.value)}}}function i0(t){let{state:e,triggerRef:n,label:o,name:l,isDisabled:r}=t,i=a.useRef(null),{containerProps:u,selectProps:s}=r0({...t,selectRef:i},e,n);var c;return e.collection.size<=300?a.createElement("div",{...u,"data-testid":"hidden-select-container"},a.createElement("label",null,o,a.createElement("select",{...s,ref:i},a.createElement("option",null),[...e.collection.getKeys()].map(d=>{let f=e.collection.getItem(d);if(f&&f.type==="item")return a.createElement("option",{key:f.key,value:f.key},f.textValue)})))):l?a.createElement("input",{type:"hidden",autoComplete:s.autoComplete,name:l,disabled:r,value:(c=e.selectedKey)!==null&&c!==void 0?c:""}):null}function u0(t,e,n){let{labelProps:o,inputProps:l,isSelected:r,isPressed:i,isDisabled:u,isReadOnly:s}=qi(t,e,n);return{labelProps:o,inputProps:{...l,role:"switch",checked:r},isSelected:r,isPressed:i,isDisabled:u,isReadOnly:s}}const _s=new WeakMap;function a0(t,e,n){let{direction:o}=ze(),l=t.keyboardDelegate||new qt({collection:e.collection,ref:n,orientation:"horizontal",direction:o,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:r,fieldProps:i,descriptionProps:u,errorMessageProps:s}=jn({...t,labelElementType:"span"}),{gridProps:c}=Yv({...t,...i,keyboardDelegate:l,shouldFocusWrap:!0,linkBehavior:"override"},e,n),[d,f]=a.useState(!1),{focusWithinProps:p}=Ut({onFocusWithinChange:f}),b=X(t),h=a.useRef(e.collection.size);return a.useEffect(()=>{n.current&&h.current>0&&e.collection.size===0&&d&&n.current.focus(),h.current=e.collection.size},[e.collection.size,d,n]),_s.set(e,{onRemove:t.onRemove}),{gridProps:z(c,b,{role:e.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":d?"polite":"off",...p,...i}),labelProps:r,descriptionProps:u,errorMessageProps:s}}var Ws={};Ws={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var Gs={};Gs={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var Us={};Us={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var qs={};qs={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var Zs={};Zs={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var Ys={};Ys={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var Xs={};Xs={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var Js={};Js={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var Qs={};Qs={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var ec={};ec={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var tc={};tc={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var nc={};nc={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var oc={};oc={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var lc={};lc={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var rc={};rc={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var ic={};ic={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var uc={};uc={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var ac={};ac={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var sc={};sc={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var cc={};cc={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var dc={};dc={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var fc={};fc={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var pc={};pc={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var bc={};bc={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var vc={};vc={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var hc={};hc={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var mc={};mc={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var gc={};gc={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var $c={};$c={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var yc={};yc={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var xc={};xc={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var Cc={};Cc={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var Ec={};Ec={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Sc={};Sc={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var Pc={};Pc={"ar-AE":Ws,"bg-BG":Gs,"cs-CZ":Us,"da-DK":qs,"de-DE":Zs,"el-GR":Ys,"en-US":Xs,"es-ES":Js,"et-EE":Qs,"fi-FI":ec,"fr-FR":tc,"he-IL":nc,"hr-HR":oc,"hu-HU":lc,"it-IT":rc,"ja-JP":ic,"ko-KR":uc,"lt-LT":ac,"lv-LV":sc,"nb-NO":cc,"nl-NL":dc,"pl-PL":fc,"pt-BR":pc,"pt-PT":bc,"ro-RO":vc,"ru-RU":hc,"sk-SK":mc,"sl-SI":gc,"sr-SP":$c,"sv-SE":yc,"tr-TR":xc,"uk-UA":Cc,"zh-CN":Ec,"zh-TW":Sc};function s0(t){return t&&t.__esModule?t.default:t}function c0(t,e,n){let{item:o}=t,l=nt(s0(Pc),"@react-aria/tag"),r=oe(),{onRemove:i}=_s.get(e)||{},{rowProps:u,gridCellProps:s,...c}=Xv({node:o},e,n);delete u.onKeyDownCapture;let{descriptionProps:d,...f}=c,p=e.disabledKeys.has(o.key)||o.props.isDisabled,b=I=>{if(I.key==="Delete"||I.key==="Backspace"){if(p)return;I.preventDefault(),e.selectionManager.isSelected(o.key)?i==null||i(new Set(e.selectionManager.selectedKeys)):i==null||i(new Set([o.key]))}},h=Li();h==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(h="pointer");let g=i&&(h==="keyboard"||h==="virtual")?l.format("removeDescription"):"",$=qo(g),y=o.key===e.selectionManager.focusedKey,S=e.selectionManager.focusedKey!=null,w=-1;!p&&(y||!S)&&(w=0);let A=X(o.props),T=vi(o.props),{focusableProps:C}=ft({isDisabled:p},n);return{removeButtonProps:{"aria-label":l.format("removeButtonLabel"),"aria-labelledby":`${r} ${u.id}`,isDisabled:p,id:r,onPress:()=>i?i(new Set([o.key])):null,excludeFromTabOrder:!0},rowProps:z(C,u,A,T,{tabIndex:w,onKeyDown:i?b:void 0,"aria-describedby":$["aria-describedby"]}),gridCellProps:z(s,{"aria-errormessage":t["aria-errormessage"],"aria-label":t["aria-label"]}),...f,allowsRemoving:!!i}}function d0(t,e){let n=X(t,{labelable:!0}),{hoverProps:o}=Ge({onHoverStart:()=>e==null?void 0:e.open(!0),onHoverEnd:()=>e==null?void 0:e.close()});return{tooltipProps:z(n,o,{role:"tooltip"})}}function f0(t,e,n){let{isDisabled:o,trigger:l}=t,r=oe(),i=a.useRef(!1),u=a.useRef(!1),s=()=>{(i.current||u.current)&&e.open(u.current)},c=y=>{!i.current&&!u.current&&e.close(y)};a.useEffect(()=>{let y=S=>{n&&n.current&&S.key==="Escape"&&(S.stopPropagation(),e.close(!0))};if(e.isOpen)return document.addEventListener("keydown",y,!0),()=>{document.removeEventListener("keydown",y,!0)}},[n,e]);let d=()=>{l!=="focus"&&(Pt()==="pointer"?i.current=!0:i.current=!1,s())},f=()=>{l!=="focus"&&(u.current=!1,i.current=!1,c())},p=()=>{u.current=!1,i.current=!1,c(!0)},b=()=>{St()&&(u.current=!0,s())},h=()=>{u.current=!1,i.current=!1,c(!0)},{hoverProps:g}=Ge({isDisabled:o,onHoverStart:d,onHoverEnd:f}),{focusableProps:$}=ft({isDisabled:o,onFocus:b,onBlur:h},n);return{triggerProps:{"aria-describedby":e.isOpen?r:void 0,...z($,g,{onPointerDown:p,onKeyDown:p,tabIndex:void 0})},tooltipProps:{id:r}}}const it=P.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 p0(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var b0=/^((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)-.*))$/,v0=p0(function(t){return b0.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});const{withContext:h0}=P.createRecipeContext({recipe:it}),m0=h0("button",{defaultProps:{type:"button"},shouldForwardProp(t,e){const n=!(e!=null&&e.includes(t))&&!P.defaultSystem.isValidProperty(t);return v0(t)&&n&&!t.includes("onPress")}}),al=t=>{const{ref:e,as:n,asChild:o,children:l,...r}=t,i=a.useRef(null),u=be(P.mergeRefs(i,e)),s=n||(o?"a":"button")||"button",{buttonProps:c}=On({...r,elementType:s},u);return x.jsx(m0,{...z(r,c,{as:n,asChild:o}),ref:u,children:l})};al.displayName="Button";const g0=function(e){const{children:n,portalled:o=!0,portalRef:l,backdrop:r=!0,ref:i,...u}=e;return x.jsxs(P.Portal,{disabled:!o,container:l,children:[r&&x.jsx(P.Dialog.Backdrop,{}),x.jsx(P.Dialog.Positioner,{children:x.jsx(P.Dialog.Content,{ref:i,...u,asChild:!1,children:n})})]})},$0={Root:P.Dialog.Root,Trigger:P.Dialog.Trigger,Content:g0,Backdrop:P.Dialog.Backdrop,Positioner:P.Dialog.Positioner,Title:P.Dialog.Title,Description:P.Dialog.Description,Body:P.Dialog.Body,Footer:P.Dialog.Footer,Header:P.Dialog.Header,CloseTrigger:P.Dialog.CloseTrigger,ActionTrigger:P.Dialog.ActionTrigger};a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);a.createContext(null);const y0=a.createContext({}),An=Symbol("default");function Ae({values:t,children:e}){for(let[n,o]of t)e=a.createElement(n.Provider,{value:o},e);return e}function fe(t){let{className:e,style:n,children:o,defaultClassName:l,defaultChildren:r,defaultStyle:i,values:u}=t;return a.useMemo(()=>{let s,c,d;return typeof e=="function"?s=e({...u,defaultClassName:l}):s=e,typeof n=="function"?c=n({...u,defaultStyle:i||{}}):c=n,typeof o=="function"?d=o({...u,defaultChildren:r}):o==null?d=r:d=o,{className:s??l,style:c||i?{...i,...c}:void 0,children:d??r,"data-rac":""}},[e,n,o,l,r,i,u])}function Dt(t,e){let n=a.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let o=e||An;if(!n.slots[o]){let l=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`)),r=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${r} Valid slot names are ${l}.`)}return n.slots[o]}return n}function de(t,e,n){let o=Dt(n,t.slot)||{},{ref:l,...r}=o,i=be(a.useMemo(()=>Ho(e,l),[e,l])),u=z(r,t);return"style"in r&&r.style&&"style"in t&&t.style&&(typeof r.style=="function"||typeof t.style=="function"?u.style=s=>{let c=typeof r.style=="function"?r.style(s):r.style,d={...s.defaultStyle,...c},f=typeof t.style=="function"?t.style({...s,defaultStyle:d}):t.style;return{...d,...f}}:u.style={...r.style,...t.style}),[u,i]}function Zt(t=!0){let[e,n]=a.useState(t),o=a.useRef(!1),l=a.useCallback(r=>{o.current=!0,n(!!r)},[]);return j(()=>{o.current||n(!1)},[]),[l,e]}function Wn(t){const e=/^(data-.*)$/;let n={};for(const o in t)e.test(o)||(n[o]=t[o]);return n}class sl{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new sl(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,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=e,this.key=n}}class cl{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let o=n.get(e),l=(o==null?void 0:o.firstChildKey)!=null?n.get(o.firstChildKey):null;for(;l;)yield l,l=l.nextKey!=null?n.get(l.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var o;return(o=n==null?void 0:n.key)!==null&&o!==void 0?o:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,o=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!o}UNSTABLE_filter(e){let n=new cl,o=null;for(let l of this)if(l.type==="section"&&l.hasChildNodes){let r=l.clone(),i=null;for(let u of this.getChildren(l.key))if(Mr(u,e,this,n)){let s=u.clone();i==null&&(r.firstChildKey=s.key),n.firstKey==null&&(n.firstKey=r.key),i&&i.parentKey===s.parentKey?(i.nextKey=s.key,s.prevKey=i.key):s.prevKey=null,s.nextKey=null,n.addNode(s),i=s}i&&(i.type!=="header"?(r.lastChildKey=i.key,o==null?r.prevKey=null:(o.type==="section"||o.type==="separator")&&(o.nextKey=r.key,r.prevKey=o.key),r.nextKey=null,o=r,n.addNode(r)):(n.firstKey===r.key&&(n.firstKey=null),n.removeNode(i.key)))}else if(l.type==="separator"){let r=l.clone();r.nextKey=null,(o==null?void 0:o.type)==="section"&&(o.nextKey=r.key,r.prevKey=o.key,o=r,n.addNode(r))}else{let r=l.clone();Mr(r,e,this,n)&&(n.firstKey==null&&(n.firstKey=r.key),o!=null&&o.type!=="section"&&o.type!=="separator"&&o.parentKey===r.parentKey?(o.nextKey=r.key,r.prevKey=o.key):r.prevKey=null,r.nextKey=null,n.addNode(r),o=r)}if((o==null?void 0:o.type)==="separator"&&o.nextKey===null){let l;o.prevKey!=null&&(l=n.getItem(o.prevKey),l.nextKey=null),n.removeNode(o.key),o=l}return n.lastKey=(o==null?void 0:o.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Mr(t,e,n,o){if(t.type==="subdialogtrigger"||t.type==="submenutrigger"){let l=[...n.getChildren(t.key)][0];if(l&&e(l.textValue)){let r=l.clone();return o.addNode(r),!0}else return!1}else return t.type==="header"?!0:e(t.textValue)}class wc{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e)}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(n),this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class Ct extends wc{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ct?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 e,n,o;let l=this.nextVisibleSibling,r=this.getMutableNode();r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof Ct?this.parentNode.node.key:null;var i;r.prevKey=(i=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null;var u;r.nextKey=(u=l==null?void 0:l.node.key)!==null&&u!==void 0?u:null,r.hasChildNodes=!!this.firstChild;var s;r.firstChildKey=(s=(n=this.firstVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null;var c;if(r.lastChildKey=(c=(o=this.lastVisibleChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null,(r.colSpan!=null||r.colIndex!=null)&&l){var d,f;let p=((d=r.colIndex)!==null&&d!==void 0?d:r.index)+((f=r.colSpan)!==null&&f!==void 0?f:1);if(p!==l.node.colIndex){let b=l.getMutableNode();b.colIndex=p}}}setProps(e,n,o,l){let r=this.getMutableNode(),{value:i,textValue:u,id:s,...c}=e;if(c.ref=n,r.props=c,r.rendered=o,r.render=l,r.value=i,r.textValue=u||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",s!=null&&s!==r.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");r.key=s}c.colSpan!=null&&(r.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let o=n==="none";if(e.isHidden!==o){var l,r;(((l=e.parentNode)===null||l===void 0?void 0:l.firstVisibleChild)===e||((r=e.parentNode)===null||r===void 0?void 0:r.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let i=e.previousVisibleSibling,u=e.nextVisibleSibling;i&&e.ownerDocument.markDirty(i),u&&e.ownerDocument.markDirty(u),e.isHidden=o,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new sl(e,`react-aria-${++n.nodeId}`)}}class x0 extends wc{get isConnected(){return this.isMounted}createElement(e){return new Ct(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let o of e)this.addNode(o);n.addNode(e.node)}removeNode(e){for(let o of e)this.removeNode(o);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let r of this.dirtyNodes)r instanceof Ct&&(!r.isConnected||r.isHidden)?this.removeNode(r):r.updateChildIndices();for(let r of this.dirtyNodes)r instanceof Ct&&(r.isConnected&&!r.isHidden&&(r.updateNode(),this.addNode(r)),r.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,n,o,l;this.nextCollection.commit((o=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&o!==void 0?o:null,(l=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function Dc(t){let{children:e,items:n,idScope:o,addIdAndValue:l,dependencies:r=[]}=t,i=a.useMemo(()=>new WeakMap,r);return a.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let d of n){let f=i.get(d);if(!f){f=e(d);var u,s;let p=(s=(u=f.props.id)!==null&&u!==void 0?u:d.key)!==null&&s!==void 0?s:d.id;if(p==null)throw new Error("Could not determine key for item");o&&(p=o+":"+p),f=a.cloneElement(f,l?{key:p,id:p,value:d}:{key:p}),i.set(d,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,i,o,l])}if(typeof HTMLTemplateElement<"u"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const Rn=a.createContext(!1);function C0(t){if(a.useContext(Rn))return a.createElement(a.Fragment,null,t.children);let n=a.createElement(Rn.Provider,{value:!0},t.children);return a.createElement("template",{"data-react-aria-hidden":!0},n)}function dl(t){let e=(n,o)=>a.useContext(Rn)?null:t(n,o);return e.displayName=t.displayName||t.name,a.forwardRef(e)}function E0(){return a.useContext(Rn)}const kc=a.createContext(!1),Wt=a.createContext(null);function Gn(t){if(a.useContext(Wt))return t.content;let{collection:n,document:o}=D0(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(C0,null,a.createElement(Wt.Provider,{value:o},t.content)),a.createElement(S0,{render:t.children,collection:n}))}function S0({collection:t,render:e}){return e(t)}function P0(t,e,n){let o=tt(),l=a.useRef(o);l.current=o;let r=a.useCallback(()=>l.current?n():e(),[e,n]);return n0.useSyncExternalStore(t,r)}const w0=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:P0;function D0(t){let[e]=a.useState(()=>new x0((t==null?void 0:t())||new cl)),n=a.useCallback(i=>e.subscribe(i),[e]),o=a.useCallback(()=>{let i=e.getCollection();return e.isSSR&&e.resetAfterSSR(),i},[e]),l=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),r=w0(n,o,l);return j(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:r,document:e}}const No=a.createContext(null);function Tc(t,e,n,o,l,r){let i=a.useCallback(s=>{s==null||s.setProps(e,n,o,r)},[e,n,o,r]),u=a.useContext(No);if(u){let s=u.ownerDocument.nodesByProps.get(e);return s||(s=u.ownerDocument.createElement(t),s.setProps(e,n,o,r),u.appendChild(s),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(e,s)),l?a.createElement(No.Provider,{value:s},l):null}return a.createElement(t,{ref:i},l)}function fl(t,e){let n=({node:l})=>e(l.props,l.props.ref,l),o=a.forwardRef((l,r)=>{let i=a.useContext(Pn);if(!a.useContext(kc)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(l,r)}return Tc(t,l,r,"children"in l?l.children:null,null,s=>a.createElement(Pn.Provider,{value:i},a.createElement(n,{node:s})))});return o.displayName=e.name,o}function k0(t,e,n=Bc){let o=({node:r})=>e(r.props,r.props.ref,r),l=a.forwardRef((r,i)=>{let u=n(r);var s;return(s=Tc(t,r,i,null,u,c=>a.createElement(o,{node:c})))!==null&&s!==void 0?s:a.createElement(a.Fragment,null)});return l.displayName=e.name,l}function Bc(t){return Dc({...t,addIdAndValue:!0})}const Nr=a.createContext(null);function Un(t){let e=a.useContext(Nr),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),o=t.idScope||(e==null?void 0:e.idScope),l=Bc({...t,idScope:o,dependencies:n});return a.useContext(Wt)&&(l=a.createElement(T0,null,l)),e=a.useMemo(()=>({dependencies:n,idScope:o}),[o,...n]),a.createElement(Nr.Provider,{value:e},l)}function T0({children:t}){let e=a.useContext(Wt),n=a.useMemo(()=>a.createElement(Wt.Provider,{value:null},a.createElement(kc.Provider,{value:!0},t)),[t]);return tt()?a.createElement(No.Provider,{value:e},n):dt.createPortal(n,e)}const Gt=a.createContext({});let B0=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:o,...l}=t;return l};const pl=dl(function(e,n){[e,n]=de(e,n,Gt);let{hoverProps:o,isHovered:l}=Ge(e),{isFocused:r,isFocusVisible:i,focusProps:u}=we({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=fe({...e,values:{isHovered:l,isFocused:r,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return a.createElement("input",{...z(B0(e),u,o),...c,ref:n,"data-focused":r||void 0,"data-disabled":e.disabled||void 0,"data-hovered":l||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}),qn=a.createContext({}),A0=a.createContext(null),R0=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),kt=a.createContext({}),F0=dl(function(e,n){[e,n]=de(e,n,kt),e=L0(e);let o=e,{isPending:l}=o,{buttonProps:r,isPressed:i}=On(e,n),{focusProps:u,isFocused:s,isFocusVisible:c}=we(e),{hoverProps:d,isHovered:f}=Ge({...e,isDisabled:e.isDisabled||l}),p={isHovered:f,isPressed:(o.isPressed||i)&&!l,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:l??!1},b=fe({...e,values:p,defaultClassName:"react-aria-Button"}),h=oe(r.id),g=oe(),$=r["aria-labelledby"];l&&($?$=`${$} ${g}`:r["aria-label"]&&($=`${h} ${g}`));let y=a.useRef(l);return a.useEffect(()=>{let S={"aria-labelledby":$||h};(!y.current&&s&&l||y.current&&s&&!l)&&yt(S,"assertive"),y.current=l},[l,s,$,h]),a.createElement("button",{...X(e,{propNames:R0}),...z(r,u,d),...b,type:r.type==="submit"&&l?"button":r.type,id:h,ref:n,"aria-labelledby":$,slot:e.slot||void 0,"aria-disabled":l?"true":r["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":l||void 0,"data-focus-visible":c||void 0},a.createElement(A0.Provider,{value:{id:g}},b.children))});function L0(t){return t.isPending&&(t.onPress=void 0,t.onPressStart=void 0,t.onPressEnd=void 0,t.onPressChange=void 0,t.onPressUp=void 0,t.onKeyDown=void 0,t.onKeyUp=void 0,t.onClick=void 0,t.href=void 0),t}const Tt=a.createContext({}),bl=a.createContext(null);class zo{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var o;return n&&(o=n.prevKey)!==null&&o!==void 0?o:null}getKeyAfter(e){let n=this.keyMap.get(e);var o;return n&&(o=n.nextKey)!==null&&o!==void 0?o:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let u of i.childNodes)n(u)};for(let i of e)n(i);let o=null,l=0;for(let[i,u]of this.keyMap)o?(o.nextKey=i,u.prevKey=o.key):(this.firstKey=i,u.prevKey=void 0),u.type==="item"&&(u.index=l++),o=u,o.nextKey=void 0;var r;this.lastKey=(r=o==null?void 0:o.key)!==null&&r!==void 0?r:null}}class ke extends Set{constructor(e,n,o){super(e),e instanceof ke?(this.anchorKey=n??e.anchorKey,this.currentKey=o??e.currentKey):(this.anchorKey=n??null,this.currentKey=o??null)}}function I0(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function K0(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:o,selectionBehavior:l="toggle",disabledBehavior:r="all"}=t,i=a.useRef(!1),[,u]=a.useState(!1),s=a.useRef(null),c=a.useRef(null),[,d]=a.useState(null),f=a.useMemo(()=>zr(t.selectedKeys),[t.selectedKeys]),p=a.useMemo(()=>zr(t.defaultSelectedKeys,new ke),[t.defaultSelectedKeys]),[b,h]=Ne(f,p,t.onSelectionChange),g=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[$,y]=a.useState(l);l==="replace"&&$==="toggle"&&typeof b=="object"&&b.size===0&&y("replace");let S=a.useRef(l);return a.useEffect(()=>{l!==S.current&&(y(l),S.current=l)},[l]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:$,setSelectionBehavior:y,get isFocused(){return i.current},setFocused(w){i.current=w,u(w)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(w,A="first"){s.current=w,c.current=A,d(w)},selectedKeys:b,setSelectedKeys(w){(o||!I0(w,b))&&h(w)},disabledKeys:g,disabledBehavior:r}}function zr(t,e){return t?t==="all"?"all":new ke(t):e}class vl{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(o=>n.has(o)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let o of this.state.selectedKeys){let l=this.collection.getItem(o);(!e||l&&bo(this.collection,l,e)<0)&&(e=l)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let o of this.state.selectedKeys){let l=this.collection.getItem(o);(!e||l&&bo(this.collection,l,e)>0)&&(e=l)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let o;if(this.state.selectedKeys==="all")o=new ke([n],n,n);else{let i=this.state.selectedKeys;var l;let u=(l=i.anchorKey)!==null&&l!==void 0?l:n;o=new ke(i,u,n);var r;for(let s of this.getKeyRange(u,(r=i.currentKey)!==null&&r!==void 0?r:n))o.delete(s);for(let s of this.getKeyRange(n,u))this.canSelectItem(s)&&o.add(s)}this.state.setSelectedKeys(o)}getKeyRange(e,n){let o=this.collection.getItem(e),l=this.collection.getItem(n);return o&&l?bo(this.collection,o,l)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var o;if(!((o=this.layoutDelegate)===null||o===void 0)&&o.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let l=[],r=e;for(;r!=null;){let i=this.collection.getItem(r);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&l.push(r),r===n)return l;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let o=new ke(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);o.has(n)?o.delete(n):this.canSelectItem(n)&&(o.add(n),o.anchorKey=n,o.currentKey=n),!(this.disallowEmptySelection&&o.size===0)&&this.state.setSelectedKeys(o)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let o=this.canSelectItem(n)?new ke([n],n,n):new ke;this.state.setSelectedKeys(o)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new ke;for(let o of e){let l=this.getKey(o);if(l!=null&&(n.add(l),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=o=>{for(;o!=null;){if(this.canSelectItem(o)){var l;let i=this.collection.getItem(o);(i==null?void 0:i.type)==="item"&&e.push(o);var r;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((r=(l=Iv(_n(i,this.collection)))===null||l===void 0?void 0:l.key)!==null&&r!==void 0?r:null)}o=this.collection.getKeyAfter(o)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ke)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let o of e)if(!n.has(o))return!1;for(let o of n)if(!e.has(o))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let o=this.collection.getItem(e);return!(!o||!(o==null||(n=o.props)===null||n===void 0)&&n.isDisabled||o.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,o;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((o=this.collection.getItem(e))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,o;return!!(!((o=this.collection.getItem(e))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new vl(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,o){this.collection=e,this.state=n;var l;this.allowsCellSelection=(l=o==null?void 0:o.allowsCellSelection)!==null&&l!==void 0?l:!1,this._isSelectAll=null,this.layoutDelegate=(o==null?void 0:o.layoutDelegate)||null}}function hl(t){let{filter:e,layoutDelegate:n}=t,o=K0(t),l=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),r=a.useCallback(c=>e?new zo(e(c)):new zo(c),[e]),i=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),u=Lv(t,r,i),s=a.useMemo(()=>new vl(u,o,{layoutDelegate:n}),[u,o,n]);return Ac(u,s),{collection:u,disabledKeys:l,selectionManager:s}}function M0(t,e){let n=a.useMemo(()=>e?t.collection.UNSTABLE_filter(e):t.collection,[t.collection,e]),o=t.selectionManager.withCollection(n);return Ac(n,o),{collection:n,selectionManager:o,disabledKeys:t.disabledKeys}}function Ac(t,e){const n=a.useRef(null);a.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const d=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(y=>{const S=n.current.getItem(y);return(S==null?void 0:S.type)==="item"?S:null}).filter(y=>y!==null),p=[...t.getKeys()].map(y=>{const S=t.getItem(y);return(S==null?void 0:S.type)==="item"?S:null}).filter(y=>y!==null);var o,l;const b=((o=f==null?void 0:f.length)!==null&&o!==void 0?o:0)-((l=p==null?void 0:p.length)!==null&&l!==void 0?l:0);var r,i,u;let h=Math.min(b>1?Math.max(((r=d==null?void 0:d.index)!==null&&r!==void 0?r:0)-b+1,0):(i=d==null?void 0:d.index)!==null&&i!==void 0?i:0,((u=p==null?void 0:p.length)!==null&&u!==void 0?u:0)-1),g=null,$=!1;for(;h>=0;){if(!e.isDisabled(p[h].key)){g=p[h];break}if(h<p.length-1&&!$)h++;else{$=!0;var s,c;h>((s=d==null?void 0:d.index)!==null&&s!==void 0?s:0)&&(h=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),h--}}e.setFocusedKey(g?g.key:null)}n.current=t},[t,e])}function Rc(t){var e;let[n,o]=Ne(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),l=a.useMemo(()=>n!=null?[n]:[],[n]),{collection:r,disabledKeys:i,selectionManager:u}=hl({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),o(f)}}),s=n!=null?r.getItem(n):null;return{collection:r,disabledKeys:i,selectionManager:u,selectedKey:n,setSelectedKey:o,selectedItem:s}}function Yt(t){let[e,n]=Ne(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const o=a.useCallback(()=>{n(!0)},[n]),l=a.useCallback(()=>{n(!1)},[n]),r=a.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:o,close:l,toggle:r}}function N0(t){var e;let{defaultFilter:n,menuTrigger:o="input",allowsEmptyCollection:l=!1,allowsCustomValue:r,shouldCloseOnBlur:i=!0}=t,[u,s]=a.useState(!1),[c,d]=a.useState(!1),[f,p]=a.useState(null),b=G=>{t.onSelectionChange&&t.onSelectionChange(G),G===y&&(pe(),q())};var h;let{collection:g,selectionManager:$,selectedKey:y,setSelectedKey:S,selectedItem:w,disabledKeys:A}=Rc({...t,onSelectionChange:b,items:(h=t.items)!==null&&h!==void 0?h:t.defaultItems}),T=t.defaultInputValue;if(T==null){var C,I;y==null?T="":T=(I=(C=g.getItem(y))===null||C===void 0?void 0:C.textValue)!==null&&I!==void 0?I:""}let[R,O]=Ne(t.inputValue,T,t.onInputChange),F=g,v=a.useMemo(()=>t.items!=null||!n?g:z0(g,R,n),[g,R,n,t.items]),[D,K]=a.useState(v),B=a.useRef("focus"),m=Yt({...t,onOpenChange:G=>{t.onOpenChange&&t.onOpenChange(G,G?B.current:void 0),$.setFocused(G),G||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),k=(G=null,ee)=>{let ue=ee==="manual"||ee==="focus"&&o==="focus";(l||v.size>0||ue&&F.size>0||t.items)&&(ue&&!m.isOpen&&t.items===void 0&&s(!0),B.current=ee,p(G),m.open())},E=(G=null,ee)=>{let ue=ee==="manual"||ee==="focus"&&o==="focus";!(l||v.size>0||ue&&F.size>0||t.items)&&!m.isOpen||(ue&&!m.isOpen&&t.items===void 0&&s(!0),m.isOpen||(B.current=ee),V(G))},M=a.useCallback(()=>{K(u?F:v)},[u,F,v]),V=a.useCallback((G=null)=>{m.isOpen&&M(),p(G),m.toggle()},[m,M]),q=a.useCallback(()=>{m.isOpen&&(M(),m.close())},[m,M]),[Z,ie]=a.useState(R),pe=()=>{var G,ee;let ue=y!=null&&(ee=(G=g.getItem(y))===null||G===void 0?void 0:G.textValue)!==null&&ee!==void 0?ee:"";ie(ue),O(ue)};var Ee,De;let ge=a.useRef((De=(Ee=t.selectedKey)!==null&&Ee!==void 0?Ee:t.defaultSelectedKey)!==null&&De!==void 0?De:null);var Re;let Ve=a.useRef(y!=null&&(Re=(e=g.getItem(y))===null||e===void 0?void 0:e.textValue)!==null&&Re!==void 0?Re:"");a.useEffect(()=>{var G;c&&(v.size>0||l)&&!m.isOpen&&R!==Z&&o!=="manual"&&k(null,"input"),!u&&!l&&m.isOpen&&v.size===0&&q(),y!=null&&y!==ge.current&&q(),R!==Z&&($.setFocusedKey(null),s(!1),R===""&&(t.inputValue===void 0||t.selectedKey===void 0)&&S(null)),y!==ge.current&&(t.inputValue===void 0||t.selectedKey===void 0)?pe():Z!==R&&ie(R);var ee;let ue=y!=null&&(ee=(G=g.getItem(y))===null||G===void 0?void 0:G.textValue)!==null&&ee!==void 0?ee:"";!c&&y!=null&&t.inputValue===void 0&&y===ge.current&&Ve.current!==ue&&(ie(ue),O(ue)),ge.current=y,Ve.current=ue});let je=Vn({...t,value:a.useMemo(()=>({inputValue:R,selectedKey:y}),[R,y])}),L=()=>{r&&y==null?H():_()},H=()=>{ge.current=null,S(null),q()},_=()=>{if(t.selectedKey!==void 0&&t.inputValue!==void 0){var G,ee;(G=t.onSelectionChange)===null||G===void 0||G.call(t,y);var ue;let Qf=y!=null&&(ue=(ee=g.getItem(y))===null||ee===void 0?void 0:ee.textValue)!==null&&ue!==void 0?ue:"";ie(Qf),q()}else pe(),q()};const Ce=()=>{if(r){var G,ee;const ue=y!=null&&(ee=(G=g.getItem(y))===null||G===void 0?void 0:G.textValue)!==null&&ee!==void 0?ee:"";R===ue?_():H()}else _()};let Bt=()=>{m.isOpen&&$.focusedKey!=null?y===$.focusedKey?_():S($.focusedKey):Ce()},un=a.useRef(R),At=G=>{G?(un.current=R,o==="focus"&&!t.isReadOnly&&k(null,"focus")):(i&&Ce(),R!==un.current&&je.commitValidation()),d(G)},Jf=a.useMemo(()=>m.isOpen?u?F:v:D,[m.isOpen,F,v,u,D]);return{...je,...m,focusStrategy:f,toggle:E,open:k,close:Ce,selectionManager:$,selectedKey:y,setSelectedKey:S,disabledKeys:A,isFocused:c,setFocused:At,selectedItem:w,collection:Jf,inputValue:R,setInputValue:O,commit:Bt,revert:L}}function z0(t,e,n){return new zo(Fc(t,t,e,n))}function Fc(t,e,n,o){let l=[];for(let r of e)if(r.type==="section"&&r.hasChildNodes){let i=Fc(t,_n(r,t),n,o);[...i].some(u=>u.type==="item")&&l.push({...r,childNodes:i})}else r.type==="item"&&o(r.textValue,n)?l.push({...r}):r.type!=="item"&&l.push({...r});return l}function O0(t){let[e,n]=Ne(t.isExpanded,t.defaultExpanded||!1,t.onExpandedChange);const o=a.useCallback(()=>{n(!0)},[n]),l=a.useCallback(()=>{n(!1)},[n]),r=a.useCallback(()=>{n(!e)},[n,e]);return{isExpanded:e,setExpanded:n,expand:o,collapse:l,toggle:r}}function V0(t){let{allowsMultipleExpanded:e=!1,isDisabled:n=!1}=t,[o,l]=Ne(a.useMemo(()=>t.expandedKeys?new Set(t.expandedKeys):void 0,[t.expandedKeys]),a.useMemo(()=>t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,[t.defaultExpandedKeys]),t.onExpandedChange);return a.useEffect(()=>{!e&&o.size>1&&l(new Set([o.values().next().value]))}),{allowsMultipleExpanded:e,isDisabled:n,expandedKeys:o,setExpandedKeys:l,toggleKey(r){let i;e?(i=new Set(o),i.has(r)?i.delete(r):i.add(r)):i=new Set(o.has(r)?[]:[r]),l(i)}}}function j0(t){let e=Yt(t),[n,o]=a.useState(null),[l,r]=a.useState([]),i=()=>{r([]),e.close()};return{focusStrategy:n,...e,open(c=null){o(c),e.open()},toggle(c=null){o(c),e.toggle()},close(){i()},expandedKeysStack:l,openSubmenu:(c,d)=>{r(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{r(f=>f[d]===c?f.slice(0,d):f)}}}function H0(t){let e=Yt(t),[n,o]=a.useState(null),l=Rc({...t,onSelectionChange:s=>{t.onSelectionChange!=null&&t.onSelectionChange(s),e.close(),r.commitValidation()}}),r=Vn({...t,value:l.selectedKey}),[i,u]=a.useState(!1);return{...r,...l,...e,focusStrategy:n,open(s=null){l.collection.size!==0&&(o(s),e.open())},toggle(s=null){l.collection.size!==0&&(o(s),e.toggle())},isFocused:i,setFocused:u}}const _0=1500,Or=500;let ot={},W0=0,It=!1,He=null,lt=null;function Lc(t={}){let{delay:e=_0,closeDelay:n=Or}=t,{isOpen:o,open:l,close:r}=Yt(t),i=a.useMemo(()=>`${++W0}`,[]),u=a.useRef(null),s=a.useRef(r),c=()=>{ot[i]=p},d=()=>{for(let h in ot)h!==i&&(ot[h](!0),delete ot[h])},f=()=>{u.current&&clearTimeout(u.current),u.current=null,d(),c(),It=!0,l(),He&&(clearTimeout(He),He=null),lt&&(clearTimeout(lt),lt=null)},p=h=>{h||n<=0?(u.current&&clearTimeout(u.current),u.current=null,s.current()):u.current||(u.current=setTimeout(()=>{u.current=null,s.current()},n)),He&&(clearTimeout(He),He=null),It&&(lt&&clearTimeout(lt),lt=setTimeout(()=>{delete ot[i],lt=null,It=!1},Math.max(Or,n)))},b=()=>{d(),c(),!o&&!He&&!It?He=setTimeout(()=>{He=null,It=!0,f()},e):o||f()};return a.useEffect(()=>{s.current=r},[r]),a.useEffect(()=>()=>{u.current&&clearTimeout(u.current),ot[i]&&delete ot[i]},[i]),{isOpen:o,open:h=>{!h&&e>0&&!u.current?b():f()},close:p}}const ml=a.createContext(null),Ic=a.createContext({}),G0=a.forwardRef(function(e,n){[e,n]=de(e,n,Ic);let{isDisabled:o,isInvalid:l,onHoverStart:r,onHoverChange:i,onHoverEnd:u,...s}=e,{hoverProps:c,isHovered:d}=Ge({onHoverStart:r,onHoverChange:i,onHoverEnd:u,isDisabled:o}),{isFocused:f,isFocusVisible:p,focusProps:b}=we({within:!0});o??(o=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),l??(l=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=fe({...e,values:{isHovered:d,isFocusWithin:f,isFocusVisible:p,isDisabled:o,isInvalid:l},defaultClassName:"react-aria-Group"});var g,$;return a.createElement("div",{...z(s,b,c),...h,ref:n,role:(g=e.role)!==null&&g!==void 0?g:"group",slot:($=e.slot)!==null&&$!==void 0?$:void 0,"data-focus-within":f||void 0,"data-hovered":d||void 0,"data-focus-visible":p||void 0,"data-disabled":o||void 0,"data-invalid":l||void 0},h.children)}),U0=a.createContext(null),q0=a.createContext({}),Kc=a.createContext(null),Z0=dl(function(e,n){[e,n]=de(e,n,Kc);let{validationBehavior:o}=Dt(ml)||{};var l,r;let i=(r=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&r!==void 0?r:"native",u=a.useRef(null),[s,c]=de({},u,Gt),[d,f]=Zt(!e["aria-label"]&&!e["aria-labelledby"]),[p,b]=a.useState("input"),{labelProps:h,inputProps:g,descriptionProps:$,errorMessageProps:y,...S}=rl({...Wn(e),inputElementType:p,label:f,validationBehavior:i},c),w=a.useCallback(C=>{c.current=C,C&&b(C instanceof HTMLTextAreaElement?"textarea":"input")},[c]),A=fe({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:S.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),T=X(e);return delete T.id,a.createElement("div",{...T,...A,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":S.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(Ae,{values:[[qn,{...h,ref:d}],[Gt,{...z(g,s),ref:w}],[q0,{...g,ref:w}],[Tt,{slots:{description:$,errorMessage:y}}],[bl,S]]},A.children))});var Mc={};Mc={collectionLabel:"مقترحات"};var Nc={};Nc={collectionLabel:"Предложения"};var zc={};zc={collectionLabel:"Návrhy"};var Oc={};Oc={collectionLabel:"Forslag"};var Vc={};Vc={collectionLabel:"Empfehlungen"};var jc={};jc={collectionLabel:"Προτάσεις"};var Hc={};Hc={collectionLabel:"Suggestions"};var _c={};_c={collectionLabel:"Sugerencias"};var Wc={};Wc={collectionLabel:"Soovitused"};var Gc={};Gc={collectionLabel:"Ehdotukset"};var Uc={};Uc={collectionLabel:"Suggestions"};var qc={};qc={collectionLabel:"הצעות"};var Zc={};Zc={collectionLabel:"Prijedlozi"};var Yc={};Yc={collectionLabel:"Javaslatok"};var Xc={};Xc={collectionLabel:"Suggerimenti"};var Jc={};Jc={collectionLabel:"候補"};var Qc={};Qc={collectionLabel:"제안"};var ed={};ed={collectionLabel:"Pasiūlymai"};var td={};td={collectionLabel:"Ieteikumi"};var nd={};nd={collectionLabel:"Forslag"};var od={};od={collectionLabel:"Suggesties"};var ld={};ld={collectionLabel:"Sugestie"};var rd={};rd={collectionLabel:"Sugestões"};var id={};id={collectionLabel:"Sugestões"};var ud={};ud={collectionLabel:"Sugestii"};var ad={};ad={collectionLabel:"Предложения"};var sd={};sd={collectionLabel:"Návrhy"};var cd={};cd={collectionLabel:"Predlogi"};var dd={};dd={collectionLabel:"Predlozi"};var fd={};fd={collectionLabel:"Förslag"};var pd={};pd={collectionLabel:"Öneriler"};var bd={};bd={collectionLabel:"Пропозиції"};var vd={};vd={collectionLabel:"建议"};var hd={};hd={collectionLabel:"建議"};var md={};md={"ar-AE":Mc,"bg-BG":Nc,"cs-CZ":zc,"da-DK":Oc,"de-DE":Vc,"el-GR":jc,"en-US":Hc,"es-ES":_c,"et-EE":Wc,"fi-FI":Gc,"fr-FR":Uc,"he-IL":qc,"hr-HR":Zc,"hu-HU":Yc,"it-IT":Xc,"ja-JP":Jc,"ko-KR":Qc,"lt-LT":ed,"lv-LV":td,"nb-NO":nd,"nl-NL":od,"pl-PL":ld,"pt-BR":rd,"pt-PT":id,"ro-RO":ud,"ru-RU":ad,"sk-SK":sd,"sl-SI":cd,"sr-SP":dd,"sv-SE":fd,"tr-TR":pd,"uk-UA":bd,"zh-CN":vd,"zh-TW":hd};function Y0(t){return t&&t.__esModule?t.default:t}function X0(t,e){let{inputRef:n,collectionRef:o,filter:l,disableAutoFocusFirst:r=!1}=t,i=oe(),u=a.useRef(void 0),s=a.useRef(!1),c=a.useRef(null),d=a.useRef(null),f=Pt()!=="virtual";a.useEffect(()=>()=>clearTimeout(u.current),[]);let p=Q(v=>{!v.isTrusted&&f&&n.current&&re(W(n.current))!==n.current&&n.current.focus();let D=v.target;v.isTrusted||!D||c.current===D.id||(clearTimeout(u.current),D!==o.current?s.current?(c.current=D.id,u.current=setTimeout(()=>{e.setFocusedNodeId(D.id)},500)):(c.current=D.id,e.setFocusedNodeId(D.id)):(c.current=null,e.setFocusedNodeId(null)),s.current=!1)}),b=a.useCallback(v=>{var D;if(v!=null){var K;(K=d.current)===null||K===void 0||K.removeEventListener("focusin",p),d.current=v,v.addEventListener("focusin",p)}else(D=d.current)===null||D===void 0||D.removeEventListener("focusin",p)},[p]),h=be(a.useMemo(()=>Ho(o,b),[o,b])),g=Q(()=>{var v;s.current=!0,(v=o.current)===null||v===void 0||v.dispatchEvent(new CustomEvent(So,{cancelable:!0,bubbles:!0,detail:{focusStrategy:"first"}}))}),$=Q(v=>{var D;el(re()),c.current=null,e.setFocusedNodeId(null);let K=new CustomEvent(yi,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:v}});clearTimeout(u.current),s.current=!1,(D=o.current)===null||D===void 0||D.dispatchEvent(K)}),y=v=>{e.inputValue!==v&&e.inputValue.length<=v.length&&!r?g():$(!0),e.setInputValue(v)},S=a.useRef(null),w=v=>{var D;if(S.current=v.target,v.nativeEvent.isComposing)return;let K=c.current;switch(v.key){case"a":if(rt(v))return;break;case"Escape":if(v.isDefaultPrevented())return;break;case" ":return;case"Tab":"continuePropagation"in v&&v.continuePropagation();return;case"Home":case"End":case"PageDown":case"PageUp":case"ArrowUp":case"ArrowDown":{var B;if((v.key==="Home"||v.key==="End")&&K==null&&v.shiftKey)return;v.preventDefault();let m=new CustomEvent(So,{cancelable:!0,bubbles:!0});(B=o.current)===null||B===void 0||B.dispatchEvent(m);break}}v.isPropagationStopped()||v.stopPropagation();let N=!0;if(K==null)N=((D=o.current)===null||D===void 0?void 0:D.dispatchEvent(new KeyboardEvent(v.nativeEvent.type,v.nativeEvent)))||!1;else{let m=document.getElementById(K);N=(m==null?void 0:m.dispatchEvent(new KeyboardEvent(v.nativeEvent.type,v.nativeEvent)))||!1}if(N)switch(v.key){case"ArrowLeft":case"ArrowRight":$();break}},A=Q(v=>{if(v.target===S.current){var D;v.stopImmediatePropagation();let K=c.current;if(K==null)(D=o.current)===null||D===void 0||D.dispatchEvent(new KeyboardEvent(v.type,v));else{let B=document.getElementById(K);B==null||B.dispatchEvent(new KeyboardEvent(v.type,v))}}});a.useEffect(()=>(document.addEventListener("keyup",A,!0),()=>{document.removeEventListener("keyup",A,!0)}),[A]);let T=nt(Y0(md),"@react-aria/autocomplete"),C=Vt({id:i,"aria-label":T.format("collectionLabel")}),I=a.useCallback(v=>l?l(v,e.inputValue):!0,[e.inputValue,l]),R=v=>{if(!v.isTrusted)return;let D=c.current?document.getElementById(c.current):null;D&&Fo(D,v.relatedTarget)},O=v=>{if(!v.isTrusted)return;let D=c.current?document.getElementById(c.current):null;if(D){let K=v.target;queueMicrotask(()=>{Fo(K,D),tl(D,K)})}};var F;return{textFieldProps:{value:e.inputValue,onChange:y,onKeyDown:w,autoComplete:"off","aria-haspopup":"listbox","aria-controls":i,"aria-autocomplete":"list","aria-activedescendant":(F=e.focusedNodeId)!==null&&F!==void 0?F:void 0,autoCorrect:"off",spellCheck:"false",enterKeyHint:"go",onBlur:R,onFocus:O},collectionProps:z(C,{shouldUseVirtualFocus:f,disallowTypeAhead:!0}),collectionRef:h,filter:l!=null?I:void 0}}function J0(t){let{onInputChange:e,inputValue:n,defaultInputValue:o=""}=t,l=c=>{e&&e(c)},[r,i]=a.useState(null),[u,s]=Ne(n,o,l);return{inputValue:u,setInputValue:s,focusedNodeId:r,setFocusedNodeId:i}}const Q0=a.createContext(null),eh=a.createContext(null),gd=a.createContext(null);function th(t){let e=Dt(Q0,t.slot);t=z(e,t);let{filter:n,disableAutoFocusFirst:o}=t,l=J0(t),r=a.useRef(null),i=a.useRef(null),{textFieldProps:u,collectionProps:s,collectionRef:c,filter:d}=X0({...Wn(t),filter:n,disableAutoFocusFirst:o,inputRef:r,collectionRef:i},l);return a.createElement(Ae,{values:[[eh,l],[U0,u],[Kc,u],[Gt,{ref:r}],[gd,{filter:d,collectionProps:s,collectionRef:c}]]},t.children)}const nh=a.createContext(null),$d={CollectionRoot({collection:t,renderDropIndicator:e}){return Vr(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Vr(t,e,n)}};function Vr(t,e,n){return Dc({items:e?t.getChildren(e.key):t,dependencies:[n],children(o){var l;let r=o.render(o);if(!n||o.type!=="item")return r;let i=o.key,u=t.getKeyAfter(i);return a.createElement(a.Fragment,null,n({type:"item",key:i,dropPosition:"before"}),r,(u==null||((l=t.getItem(u))===null||l===void 0?void 0:l.type)!=="item")&&n({type:"item",key:i,dropPosition:"after"}))}})}const Xt=a.createContext($d);function oh(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}var yd={};yd={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var xd={};xd={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var Cd={};Cd={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Ed={};Ed={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Sd={};Sd={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var Pd={};Pd={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var wd={};wd={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Dd={};Dd={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var kd={};kd={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var Td={};Td={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var Bd={};Bd={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Ad={};Ad={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var Rd={};Rd={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Fd={};Fd={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var Ld={};Ld={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Id={};Id={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var Kd={};Kd={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var Md={};Md={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Nd={};Nd={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var zd={};zd={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var Od={};Od={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var Vd={};Vd={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var jd={};jd={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Hd={};Hd={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var _d={};_d={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Wd={};Wd={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Gd={};Gd={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Ud={};Ud={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var qd={};qd={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var Zd={};Zd={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var Yd={};Yd={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var Xd={};Xd={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var Jd={};Jd={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var Qd={};Qd={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var ef={};ef={"ar-AE":yd,"bg-BG":xd,"cs-CZ":Cd,"da-DK":Ed,"de-DE":Sd,"el-GR":Pd,"en-US":wd,"es-ES":Dd,"et-EE":kd,"fi-FI":Td,"fr-FR":Bd,"he-IL":Ad,"hr-HR":Rd,"hu-HU":Fd,"it-IT":Ld,"ja-JP":Id,"ko-KR":Kd,"lt-LT":Md,"lv-LV":Nd,"nb-NO":zd,"nl-NL":Od,"pl-PL":Vd,"pt-BR":jd,"pt-PT":Hd,"ro-RO":_d,"ru-RU":Wd,"sk-SK":Gd,"sl-SI":Ud,"sr-SP":qd,"sv-SE":Zd,"tr-TR":Yd,"uk-UA":Xd,"zh-CN":Jd,"zh-TW":Qd};const Zn=a.createContext({}),tf=a.createContext(null),lh=a.forwardRef(function(e,n){let{render:o}=a.useContext(tf);return a.createElement(a.Fragment,null,o(e,n))});function nf(t,e){var n;let o=t==null?void 0:t.renderDropIndicator,l=t==null||(n=t.isVirtualDragging)===null||n===void 0?void 0:n.call(t),r=a.useCallback(i=>{if(l||e!=null&&e.isDropTarget(i))return o?o(i):a.createElement(lh,{target:i})},[e==null?void 0:e.target,l,o]);return t!=null&&t.useDropIndicator?r:void 0}function rh(t,e,n){var o,l;let r=t.focusedKey,i=null;if(!(e==null||(o=e.isVirtualDragging)===null||o===void 0)&&o.call(e)&&(n==null||(l=n.target)===null||l===void 0?void 0:l.type)==="item"){i=n.target.key;var u;n.target.dropPosition==="after"&&(i=(u=n.collection.getKeyAfter(i))!==null&&u!==void 0?u:i)}return a.useMemo(()=>new Set([r,i].filter(s=>s!=null)),[r,i])}const of=a.createContext({}),lf=fl("header",function(e,n){return[e,n]=de(e,n,of),a.createElement("header",{className:"react-aria-Header",...e,ref:n},e.children)}),ih=a.createContext({}),Jt=a.createContext(null),Oe=a.createContext(null),rf=a.forwardRef(function(e,n){[e,n]=de(e,n,Jt);let o=a.useContext(Oe);return o?a.createElement(uf,{state:o,props:e,listBoxRef:n}):a.createElement(Gn,{content:a.createElement(Un,e)},l=>a.createElement(uh,{props:e,listBoxRef:n,collection:l}))});function uh({props:t,listBoxRef:e,collection:n}){t={...t,collection:n,children:null,items:null};let{layoutDelegate:o}=a.useContext(Xt),l=hl({...t,layoutDelegate:o});return a.createElement(uf,{state:l,props:t,listBoxRef:e})}function uf({state:t,props:e,listBoxRef:n}){let{filter:o,collectionProps:l,collectionRef:r}=a.useContext(gd)||{};e=a.useMemo(()=>l?{...e,...l}:e,[e,l]);let{dragAndDropHooks:i,layout:u="stack",orientation:s="vertical"}=e;n=be(a.useMemo(()=>Ho(n,r!==void 0?r:null),[r,n]));let c=M0(t,o),{collection:d,selectionManager:f}=c,p=!!(i!=null&&i.useDraggableCollectionState),b=!!(i!=null&&i.useDroppableCollectionState),{direction:h}=ze(),{disabledBehavior:g,disabledKeys:$}=f,y=zn({usage:"search",sensitivity:"base"}),{isVirtualized:S,layoutDelegate:w,dropTargetDelegate:A,CollectionRoot:T}=a.useContext(Xt),C=a.useMemo(()=>e.keyboardDelegate||new qt({collection:d,collator:y,ref:n,disabledKeys:$,disabledBehavior:g,layout:u,orientation:s,direction:h,layoutDelegate:w}),[d,y,n,g,$,s,h,e.keyboardDelegate,u,w]),{listBoxProps:I}=Av({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:C,isVirtualized:S},c,n),R=a.useRef(p),O=a.useRef(b);a.useEffect(()=>{process.env.NODE_ENV!=="production"&&(R.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!==b&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[p,b]);let F,v,D,K=!1,B=null,N=a.useRef(null);if(p&&i){F=i.useDraggableCollectionState({collection:d,selectionManager:f,preview:i.renderDragPreview?N:void 0}),i.useDraggableCollection({},F,n);let Z=i.DragPreview;B=i.renderDragPreview?a.createElement(Z,{ref:N},i.renderDragPreview):null}if(b&&i){v=i.useDroppableCollectionState({collection:d,selectionManager:f});let Z=i.dropTargetDelegate||A||new i.ListDropTargetDelegate(d,n,{orientation:s,layout:u,direction:h});D=i.useDroppableCollection({keyboardDelegate:C,dropTargetDelegate:Z},v,n),K=v.isDropTarget({type:"root"})}let{focusProps:m,isFocused:k,isFocusVisible:E}=we(),M={isDropTarget:K,isEmpty:c.collection.size===0,isFocused:k,isFocusVisible:E,layout:e.layout||"stack",state:c},V=fe({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:M}),q=null;return c.collection.size===0&&e.renderEmptyState&&(q=a.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(M))),a.createElement(ji,null,a.createElement("div",{...X(e),...z(I,m,D==null?void 0:D.collectionProps),...V,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":K||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":k||void 0,"data-focus-visible":E||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},a.createElement(Ae,{values:[[Jt,e],[Oe,c],[Zn,{dragAndDropHooks:i,dragState:F,dropState:v}],[ih,{elementType:"div"}],[tf,{render:sh}],[nh,{name:"ListBoxSection",render:af}]]},a.createElement(T,{collection:d,scrollRef:n,persistedKeys:rh(f,i,v),renderDropIndicator:nf(i,v)})),q,B))}function af(t,e,n,o="react-aria-ListBoxSection"){let l=a.useContext(Oe),{dragAndDropHooks:r,dropState:i}=a.useContext(Zn),{CollectionBranch:u}=a.useContext(Xt),[s,c]=Zt();var d;let{headingProps:f,groupProps:p}=zv({heading:c,"aria-label":(d=t["aria-label"])!==null&&d!==void 0?d:void 0}),b=fe({defaultClassName:o,className:t.className,style:t.style,values:{}});return a.createElement("section",{...X(t),...p,...b,ref:e},a.createElement(of.Provider,{value:{...f,ref:s}},a.createElement(u,{collection:l.collection,parent:n,renderDropIndicator:nf(r,i)})))}const ah=k0("section",af),sf=fl("item",function(e,n,o){let l=be(n),r=a.useContext(Oe),{dragAndDropHooks:i,dragState:u,dropState:s}=a.useContext(Zn),{optionProps:c,labelProps:d,descriptionProps:f,...p}=Nv({key:o.key,"aria-label":e==null?void 0:e["aria-label"]},r,l),{hoverProps:b,isHovered:h}=Ge({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),g=null;u&&i&&(g=i.useDraggableItem({key:o.key},u));let $=null;s&&i&&($=i.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},s,l));let y=u&&u.isDragging(o.key),S=fe({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:h,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!u,isDragging:y,isDropTarget:$==null?void 0:$.isDropTarget}});a.useEffect(()=>{!o.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.")},[o.textValue]);let w=e.href?"a":"div";return a.createElement(w,{...z(c,b,g==null?void 0:g.dragProps,$==null?void 0:$.dropProps),...S,ref:l,"data-allows-dragging":!!u||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":($==null?void 0:$.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},a.createElement(Ae,{values:[[Tt,{slots:{[An]:d,label:d,description:f}}]]},S.children))});function sh(t,e){e=be(e);let{dragAndDropHooks:n,dropState:o}=a.useContext(Zn),{dropIndicatorProps:l,isHidden:r,isDropTarget:i}=n.useDropIndicator(t,o,e);return r?null:a.createElement(dh,{...t,dropIndicatorProps:l,isDropTarget:i,ref:e})}function ch(t,e){let{dropIndicatorProps:n,isDropTarget:o,...l}=t,r=fe({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return a.createElement("div",{...n,...r,role:"option",ref:e,"data-drop-target":o||void 0})}const dh=a.forwardRef(ch),cf=a.createContext({placement:"bottom"}),Yn=a.createContext(null),jr=a.createContext(null),Xn=a.forwardRef(function(e,n){[e,n]=de(e,n,Yn);let o=a.useContext(Qt),l=Yt(e),r=e.isOpen!=null||e.defaultOpen!=null||!o?l:o,i=Ci(n,r.isOpen)||e.isExiting||!1,u=E0(),{direction:s}=ze();if(u){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,c)}return r&&!r.isOpen&&!i?null:a.createElement(fh,{...e,triggerRef:e.triggerRef,state:r,popoverRef:n,isExiting:i,dir:s})});function fh({state:t,isExiting:e,UNSTABLE_portalContainer:n,...o}){let l=a.useRef(null),[r,i]=a.useState(0),u=a.useRef(null),s=a.useContext(jr),c=s&&o.trigger==="SubmenuTrigger";j(()=>{l.current&&t.isOpen&&i(l.current.getBoundingClientRect().width)},[t.isOpen,l]);var d;let{popoverProps:f,underlayProps:p,arrowProps:b,placement:h}=Sv({...o,offset:(d=o.offset)!==null&&d!==void 0?d:8,arrowSize:r,groupRef:c?s:u},t),g=o.popoverRef,$=xi(g,!!h)||o.isEntering||!1,y=fe({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:h,isEntering:$,isExiting:e}}),S=!o.isNonModal||o.trigger==="SubmenuTrigger",[w,A]=a.useState(!1);j(()=>{g.current&&A(S&&!g.current.querySelector("[role=dialog]"))},[g,S]),a.useEffect(()=>{w&&g.current&&!g.current.contains(document.activeElement)&&he(g.current)},[w,g]);let T={...f.style,...y.style},C=a.createElement("div",{...z(X(o),f),...y,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:g,slot:o.slot||void 0,style:T,dir:o.dir,"data-trigger":o.trigger,"data-placement":h,"data-entering":$||void 0,"data-exiting":e||void 0},!o.isNonModal&&a.createElement(Cr,{onDismiss:t.close}),a.createElement(cf.Provider,{value:{...b,placement:h,ref:l}},y.children),a.createElement(Cr,{onDismiss:t.close}));if(!c)return a.createElement(Er,{...o,shouldContainFocus:w,isExiting:e,portalContainer:n},!o.isNonModal&&t.isOpen&&a.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),a.createElement("div",{ref:u,style:{display:"contents"}},a.createElement(jr.Provider,{value:u},C)));var I;return a.createElement(Er,{...o,shouldContainFocus:w,isExiting:e,portalContainer:(I=n??(s==null?void 0:s.current))!==null&&I!==void 0?I:void 0},C)}const ph=a.createContext(null),df=a.createContext(null),Qt=a.createContext(null);function ff(t){let e=j0(t),n=a.useRef(null),{triggerProps:o,overlayProps:l}=Iu({type:"dialog"},e,n);return o.id=oe(),l["aria-labelledby"]=o.id,a.createElement(Ae,{values:[[Qt,e],[ph,e],[df,l],[Yn,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":l["aria-labelledby"]}]]},a.createElement(ab,{...o,ref:n,isPressed:e.isOpen},t.children))}const bh=a.forwardRef(function(e,n){let o=e["aria-labelledby"];[e,n]=de(e,n,df);let{dialogProps:l,titleProps:r}=Hv({...e,"aria-labelledby":o},n),i=a.useContext(Qt);!l["aria-label"]&&!l["aria-labelledby"]&&(e["aria-labelledby"]?l["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let u=fe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(i==null?void 0:i.close)||(()=>{})}});return a.createElement("section",{...X(e),...l,...u,ref:n,slot:e.slot||void 0},a.createElement(Ae,{values:[[y0,{slots:{[An]:{},title:{...r,level:2}}}],[kt,{slots:{[An]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},u.children))}),vh=a.createContext(null),pf=a.createContext(null),hh=a.forwardRef(function(e,n){[e,n]=de(e,n,vh);let{children:o,isDisabled:l=!1,isInvalid:r=!1,isRequired:i=!1}=e,u=a.useMemo(()=>{var s;return a.createElement(Jt.Provider,{value:{items:(s=e.items)!==null&&s!==void 0?s:e.defaultItems}},typeof o=="function"?o({isOpen:!1,isDisabled:l,isInvalid:r,isRequired:i,defaultChildren:null}):o)},[o,l,r,i,e.items,e.defaultItems]);return a.createElement(Gn,{content:u},s=>a.createElement(mh,{props:e,collection:s,comboBoxRef:n}))});function mh({props:t,collection:e,comboBoxRef:n}){let{name:o,formValue:l="key",allowsCustomValue:r}=t;r&&(l="text");let{validationBehavior:i}=Dt(ml)||{};var u,s;let c=(s=(u=t.validationBehavior)!==null&&u!==void 0?u:i)!==null&&s!==void 0?s:"native",{contains:d}=zi({sensitivity:"base"}),f=N0({defaultFilter:t.defaultFilter||d,...t,items:t.items,children:void 0,collection:e,validationBehavior:c}),p=a.useRef(null),b=a.useRef(null),h=a.useRef(null),g=a.useRef(null),[$,y]=Zt(!t["aria-label"]&&!t["aria-labelledby"]),{buttonProps:S,inputProps:w,listBoxProps:A,labelProps:T,descriptionProps:C,errorMessageProps:I,...R}=jv({...Wn(t),label:y,inputRef:b,buttonRef:p,listBoxRef:h,popoverRef:g,name:l==="text"?o:void 0,validationBehavior:c},f),[O,F]=a.useState(null),v=a.useCallback(()=>{if(b.current){var m;let k=(m=p.current)===null||m===void 0?void 0:m.getBoundingClientRect(),E=b.current.getBoundingClientRect(),M=k?Math.min(k.left,E.left):E.left,V=k?Math.max(k.right,E.right):E.right;F(V-M+"px")}},[p,b,F]);yn({ref:b,onResize:v});let D=a.useMemo(()=>({isOpen:f.isOpen,isDisabled:t.isDisabled||!1,isInvalid:R.isInvalid||!1,isRequired:t.isRequired||!1}),[f.isOpen,t.isDisabled,R.isInvalid,t.isRequired]),K=fe({...t,values:D,defaultClassName:"react-aria-ComboBox"}),B=X(t);delete B.id;var N;return a.createElement(Ae,{values:[[pf,f],[qn,{...T,ref:$}],[kt,{...S,ref:p,isPressed:f.isOpen}],[Gt,{...w,ref:b}],[Qt,f],[Yn,{ref:g,triggerRef:b,scrollRef:h,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":O}}],[Jt,{...A,ref:h}],[Oe,f],[Tt,{slots:{description:C,errorMessage:I}}],[Ic,{isInvalid:R.isInvalid,isDisabled:t.isDisabled||!1}],[bl,R]]},a.createElement("div",{...B,...K,ref:n,slot:t.slot||void 0,"data-focused":f.isFocused||void 0,"data-open":f.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":R.isInvalid||void 0,"data-required":t.isRequired||void 0}),o&&l==="key"&&a.createElement("input",{type:"hidden",name:o,value:(N=f.selectedKey)!==null&&N!==void 0?N:""}))}function gh(t){return t&&t.__esModule?t.default:t}const gl=a.createContext(null),$l=a.createContext(null),$h=a.forwardRef(function(e,n){[e,n]=de(e,n,gl);let{children:o,isDisabled:l=!1,isInvalid:r=!1,isRequired:i=!1}=e,u=a.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:l,isInvalid:r,isRequired:i,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):o,[o,l,r,i]);return a.createElement(Gn,{content:u},s=>a.createElement(yh,{props:e,collection:s,selectRef:n}))});function yh({props:t,selectRef:e,collection:n}){let{validationBehavior:o}=Dt(ml)||{};var l,r;let i=(r=(l=t.validationBehavior)!==null&&l!==void 0?l:o)!==null&&r!==void 0?r:"native",u=H0({...t,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:s,focusProps:c}=we({within:!0}),d=a.useRef(null),[f,p]=Zt(!t["aria-label"]&&!t["aria-labelledby"]),{labelProps:b,triggerProps:h,valueProps:g,menuProps:$,descriptionProps:y,errorMessageProps:S,...w}=l0({...Wn(t),label:p,validationBehavior:i},u,d),[A,T]=a.useState(null),C=a.useCallback(()=>{d.current&&T(d.current.offsetWidth+"px")},[d]);yn({ref:d,onResize:C});let I=a.useMemo(()=>({isOpen:u.isOpen,isFocused:u.isFocused,isFocusVisible:s,isDisabled:t.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:t.isRequired||!1}),[u.isOpen,u.isFocused,s,t.isDisabled,w.isInvalid,t.isRequired]),R=fe({...t,values:I,defaultClassName:"react-aria-Select"}),O=X(t);delete O.id;let F=a.useRef(null);return a.createElement(Ae,{values:[[gl,t],[$l,u],[bf,g],[qn,{...b,ref:f,elementType:"span"}],[kt,{...h,ref:d,isPressed:u.isOpen}],[Qt,u],[Yn,{trigger:"Select",triggerRef:d,scrollRef:F,placement:"bottom start",style:{"--trigger-width":A},"aria-labelledby":$["aria-labelledby"]}],[Jt,{...$,ref:F}],[Oe,u],[Tt,{slots:{description:y,errorMessage:S}}],[bl,w]]},a.createElement("div",{...O,...R,...c,ref:e,slot:t.slot||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":s||void 0,"data-open":u.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-required":t.isRequired||void 0}),a.createElement(i0,{autoComplete:t.autoComplete,state:u,triggerRef:d,label:p,name:t.name,isDisabled:t.isDisabled}))}const bf=a.createContext(null),xh=a.forwardRef(function(e,n){var o,l;[e,n]=de(e,n,bf);let r=a.useContext($l),{placeholder:i}=Dt(gl),u=r.selectedKey!=null?r.collection.getItem(r.selectedKey):null,s=u==null?void 0:u.props.children;typeof s=="function"&&(s=s({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=nt(gh(ef),"react-aria-components");var d,f,p;let b=fe({...e,defaultChildren:(d=s??i)!==null&&d!==void 0?d:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(o=r.selectedItem)===null||o===void 0?void 0:o.value)!==null&&f!==void 0?f:null,selectedText:(p=(l=r.selectedItem)===null||l===void 0?void 0:l.textValue)!==null&&p!==void 0?p:null,isPlaceholder:!u}}),h=X(e);return a.createElement("span",{ref:n,...h,...b,"data-placeholder":!u||void 0},a.createElement(Tt.Provider,{value:void 0},b.children))}),Ch=a.createContext(null),vf=a.createContext(null),Eh=a.forwardRef(function(e,n){return[e,n]=de(e,n,Ch),a.createElement(Gn,{content:e.children},o=>a.createElement(Sh,{props:e,forwardedRef:n,collection:o}))});function Sh({props:t,forwardedRef:e,collection:n}){let o=a.useRef(null),[l,r]=Zt(!t["aria-label"]&&!t["aria-labelledby"]),i=hl({...t,children:void 0,collection:n}),u=X(t),s=Object.fromEntries(Object.entries(u).map(([h])=>[h,void 0])),{gridProps:c,labelProps:d,descriptionProps:f,errorMessageProps:p}=a0({...t,...s,label:r},i,o);var b;return a.createElement("div",{...u,ref:e,slot:t.slot||void 0,className:(b=t.className)!==null&&b!==void 0?b:"react-aria-TagGroup",style:t.style},a.createElement(Ae,{values:[[qn,{...d,elementType:"span",ref:l}],[vf,{...c,ref:o}],[Oe,i],[Tt,{slots:{description:f,errorMessage:p}}]]},t.children))}const Ph=a.forwardRef(function(e,n){return a.useContext(Oe)?a.createElement(wh,{props:e,forwardedRef:n}):a.createElement(Un,e)});function wh({props:t,forwardedRef:e}){let n=a.useContext(Oe),{CollectionRoot:o}=a.useContext(Xt),[l,r]=de(t,e,vf);delete l.items,delete l.renderEmptyState;let{focusProps:i,isFocused:u,isFocusVisible:s}=we(),c={isEmpty:n.collection.size===0,isFocused:u,isFocusVisible:s,state:n},d=fe({className:t.className,style:t.style,defaultClassName:"react-aria-TagList",values:c}),f=oh(n.selectionManager.focusedKey);return a.createElement("div",{...z(l,i),...d,ref:r,"data-empty":n.collection.size===0||void 0,"data-focused":u||void 0,"data-focus-visible":s||void 0},n.collection.size===0&&t.renderEmptyState?t.renderEmptyState(c):a.createElement(o,{collection:n.collection,persistedKeys:f}))}const Dh=fl("item",(t,e,n)=>{let o=a.useContext(Oe),l=be(e),{focusProps:r,isFocusVisible:i}=we({within:!0}),{rowProps:u,gridCellProps:s,removeButtonProps:c,...d}=c0({item:n},o,l),{hoverProps:f,isHovered:p}=Ge({isDisabled:!d.allowsSelection,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),b=fe({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tag",values:{...d,isFocusVisible:i,isHovered:p,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior}});return a.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]),a.createElement("div",{ref:l,...b,...z(X(t),u,r,f),"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":i||void 0,"data-pressed":d.isPressed||void 0,"data-allows-removing":d.allowsRemoving||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode},a.createElement("div",{...s,style:{display:"contents"}},a.createElement(Ae,{values:[[kt,{slots:{remove:c}}],[Xt,$d]]},b.children)))}),kh=a.createContext({}),hf=a.createContext(null),Th=a.forwardRef(function(e,n){[e,n]=de(e,n,kh);let o=Qb(e),{groupProps:l}=Hb(e,o,n),r=fe({...e,values:{isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-ToggleButtonGroup"});return a.createElement("div",{...l,...r,ref:n,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(hf.Provider,{value:o},r.children))}),Bh=a.createContext({}),Ah=a.forwardRef(function(e,n){[e,n]=de(e,n,Bh);let o=a.useContext(hf),l=ll(o&&e.id!=null?{isSelected:o.selectedKeys.has(e.id),onChange(g){o.setSelected(e.id,g)}}:e),{buttonProps:r,isPressed:i,isSelected:u,isDisabled:s}=o&&e.id!=null?_b({...e,id:e.id},o,n):Oi({...e,id:e.id!=null?String(e.id):void 0},l,n),{focusProps:c,isFocused:d,isFocusVisible:f}=we(e),{hoverProps:p,isHovered:b}=Ge(e),h=fe({...e,id:void 0,values:{isHovered:b,isPressed:i,isFocused:d,isSelected:l.isSelected,isFocusVisible:f,isDisabled:s,state:l},defaultClassName:"react-aria-ToggleButton"});return a.createElement("button",{...z(r,c,p),...h,ref:n,slot:e.slot||void 0,"data-focused":d||void 0,"data-disabled":s||void 0,"data-pressed":i||void 0,"data-selected":u||void 0,"data-hovered":b||void 0,"data-focus-visible":f||void 0})}),yl=a.createContext(null),mf=a.createContext(null);function Rh(t){let e=Lc(t),n=a.useRef(null),{triggerProps:o,tooltipProps:l}=f0(t,e,n);return a.createElement(Ae,{values:[[yl,e],[mf,{...l,triggerRef:n}]]},a.createElement(ub,{...o,ref:n},t.children))}const Fh=a.forwardRef(function({UNSTABLE_portalContainer:e,...n},o){[n,o]=de(n,o,mf);let l=a.useContext(yl),r=Lc(n),i=n.isOpen!=null||n.defaultOpen!=null||!l?r:l,u=Ci(o,i.isOpen)||n.isExiting||!1;return!i.isOpen&&!u?null:a.createElement(xv,{portalContainer:e},a.createElement(Lh,{...n,tooltipRef:o,isExiting:u}))});function Lh(t){let e=a.useContext(yl),n=a.useRef(null),[o,l]=a.useState(0);j(()=>{n.current&&e.isOpen&&l(n.current.getBoundingClientRect().width)},[e.isOpen,n]);let{overlayProps:r,arrowProps:i,placement:u}=Lu({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:e.isOpen,arrowSize:o,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,onClose:()=>e.close(!0)}),s=xi(t.tooltipRef,!!u)||t.isEntering||!1,c=fe({...t,defaultClassName:"react-aria-Tooltip",values:{placement:u,isEntering:s,isExiting:t.isExiting,state:e}});t=z(t,r);let{tooltipProps:d}=d0(t,e);return a.createElement("div",{...d,ref:t.tooltipRef,...c,style:{...r.style,...c.style},"data-placement":u??void 0,"data-entering":s||void 0,"data-exiting":t.isExiting||void 0},a.createElement(cf.Provider,{value:{...i,placement:u,ref:n}},c.children))}const Ke=t=>{const{children:e,ref:n,...o}=t,l=a.useRef(null),r=be(P.mergeRefs(l,n)),[i]=de(o,r,kt);return x.jsx(al,{px:0,py:0,...i,ref:r,children:e})};Ke.displayName="IconButton";const gf=t=>x.jsx(P.Image,{...t});gf.displayName="Image";const $f=P.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:Ih}=P.createRecipeContext({recipe:$f}),Kh=Ih("a"),yf=t=>{const{as:e,asChild:n,children:o,ref:l,...r}=t,i=a.useRef(null),u=be(P.mergeRefs(i,l)),s=e||(n?"span":"a")||"a",{linkProps:c}=pb({...r,elementType:s},u);return x.jsx(Kh,{...z(r,c,{as:e,asChild:n,ref:u}),children:o})};yf.displayName="Link";const Mh=t=>x.jsx(P.List.Root,{...t}),Nh=t=>x.jsx(P.List.Item,{...t}),xf=t=>{const{ref:e,...n}=t;return x.jsx(P.SimpleGrid,{ref:e,...n})};xf.displayName="SimpleGrid";const zh=Object.assign(xf,{Item:P.GridItem}),Cf=t=>{const{ref:e,...n}=t;return x.jsx(P.Text,{ref:e,...n})};Cf.displayName="Text";const Ef=P.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:Oh}=P.createRecipeContext({recipe:Ef}),Vh=Oh("div"),xl=a.forwardRef(function({children:e,placement:n="bottom",...o},l){return x.jsx(Vh,{ref:l,asChild:!0,...o,children:x.jsx(Fh,{placement:n,...o,children:e})})});xl.displayName="Tooltip";const Cl=Rh;Cl.displayName="TooltipTrigger";const Sf=a.forwardRef(function(e,n){const o=a.useRef(null),l=be(P.mergeRefs(o,n)),{focusableProps:r}=ft(e,l);if(a.isValidElement(e.children))return a.cloneElement(e.children,z(r,e.children.props,{ref:l}))});Sf.displayName="MakeElementFocusable";var jh=(t,e,n,o,l,r,i,u)=>{let s=document.documentElement,c=["light","dark"];function d(b){(Array.isArray(t)?t:[t]).forEach(h=>{let g=h==="class",$=g&&r?l.map(y=>r[y]||y):l;g?(s.classList.remove(...$),s.classList.add(r&&r[b]?r[b]:b)):s.setAttribute(h,b)}),f(b)}function f(b){u&&c.includes(b)&&(s.style.colorScheme=b)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)d(o);else try{let b=localStorage.getItem(e)||n,h=i&&b==="system"?p():b;d(h)}catch{}},Hr=["light","dark"],Pf="(prefers-color-scheme: dark)",Hh=typeof window>"u",El=ae.createContext(void 0),_h={setTheme:t=>{},themes:[]},Wh=()=>{var t;return(t=ae.useContext(El))!=null?t:_h},Gh=t=>ae.useContext(El)?ae.createElement(ae.Fragment,null,t.children):ae.createElement(qh,{...t}),Uh=["light","dark"],qh=({forcedTheme:t,disableTransitionOnChange:e=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:r=Uh,defaultTheme:i=n?"system":"light",attribute:u="data-theme",value:s,children:c,nonce:d,scriptProps:f})=>{let[p,b]=ae.useState(()=>Yh(l,i)),[h,g]=ae.useState(()=>p==="system"?mo():p),$=s?Object.values(s):r,y=ae.useCallback(T=>{let C=T;if(!C)return;T==="system"&&n&&(C=mo());let I=s?s[C]:C,R=e?Xh(d):null,O=document.documentElement,F=v=>{v==="class"?(O.classList.remove(...$),I&&O.classList.add(I)):v.startsWith("data-")&&(I?O.setAttribute(v,I):O.removeAttribute(v))};if(Array.isArray(u)?u.forEach(F):F(u),o){let v=Hr.includes(i)?i:null,D=Hr.includes(C)?C:v;O.style.colorScheme=D}R==null||R()},[d]),S=ae.useCallback(T=>{let C=typeof T=="function"?T(p):T;b(C);try{localStorage.setItem(l,C)}catch{}},[p]),w=ae.useCallback(T=>{let C=mo(T);g(C),p==="system"&&n&&!t&&y("system")},[p,t]);ae.useEffect(()=>{let T=window.matchMedia(Pf);return T.addListener(w),w(T),()=>T.removeListener(w)},[w]),ae.useEffect(()=>{let T=C=>{C.key===l&&(C.newValue?b(C.newValue):S(i))};return window.addEventListener("storage",T),()=>window.removeEventListener("storage",T)},[S]),ae.useEffect(()=>{y(t??p)},[t,p]);let A=ae.useMemo(()=>({theme:p,setTheme:S,forcedTheme:t,resolvedTheme:p==="system"?h:p,themes:n?[...r,"system"]:r,systemTheme:n?h:void 0}),[p,S,t,h,n,r]);return ae.createElement(El.Provider,{value:A},ae.createElement(Zh,{forcedTheme:t,storageKey:l,attribute:u,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:s,themes:r,nonce:d,scriptProps:f}),c)},Zh=ae.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:o,enableColorScheme:l,defaultTheme:r,value:i,themes:u,nonce:s,scriptProps:c})=>{let d=JSON.stringify([n,e,r,t,u,i,o,l]).slice(1,-1);return ae.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(${jh.toString()})(${d})`}})}),Yh=(t,e)=>{if(Hh)return;let n;try{n=localStorage.getItem(t)||void 0}catch{}return n||e},Xh=t=>{let e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.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(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},mo=t=>(t||(t=window.matchMedia(Pf)),t.matches?"dark":"light");function Jh(t){return x.jsx(Gh,{attribute:"class",disableTransitionOnChange:!0,...t})}function Sl(){const{resolvedTheme:t,setTheme:e}=Wh();return{colorMode:t,setColorMode:e,toggleColorMode:()=>{e(t==="light"?"dark":"light")}}}function Qh(t,e){const{colorMode:n}=Sl();return n==="light"?t:e}function em(){const{colorMode:t}=Sl();return t==="light"?"Light Theme":"DarkTheme"}const tm=P.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 nm(t){var n;const e={};for(const o in t)(n=t[o])!=null&&n.value?e[o]=t[o].value:e[o]=t[o];return e}const om=nm(te.themeTokens.breakpoints),lm=P.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","--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"}}),rm={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"}}},im=P.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),um=P.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"}}),am=P.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"}}),sm=P.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"}}),Pl=P.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:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),cm={avatar:si,button:it,code:um,heading:am,kbd:sm,link:$f,tooltip:Ef,textInput:Pl},dm=P.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}"}},...te.themeTokens.color["system-palettes"],...te.themeTokens.color["brand-palettes"],...te.themeTokens.color["semantic-palettes"]}),fm=P.defineSemanticTokens.shadows(te.themeTokens.shadow),pm=P.defineSemanticTokens.radii({}),bm={colors:dm,shadows:fm,radii:pm},vm=P.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"}}),hm=P.defineSlotRecipe({className:"chakra-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"}}),mm=P.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"}}),gm=P.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:"black","&[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"}}),ye=P.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:"bg","&: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"}}),$m=P.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"}}),ym=P.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"}}),wf=P.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"}});var Ur,qr,Zr,Yr,Xr,Jr,Qr,ei,ti,ni,oi,li;const wl=P.defineSlotRecipe({slots:["root","value","buttonGroup","options","optionGroup","option"],className:"nimbus-combobox",base:{root:{...(Ur=ye.base)==null?void 0:Ur.root,"& input":{cursor:"text"}},value:{...(qr=ye.base)==null?void 0:qr.trigger,...(Zr=ye.base)==null?void 0:Zr.triggerLabel,margin:0},buttonGroup:{position:"absolute",display:"inline-flex",top:0,bottom:0,right:400},options:{...(Yr=ye.base)==null?void 0:Yr.options},optionGroup:{...(Xr=ye.base)==null?void 0:Xr.optionGroup},option:{...(Jr=ye.base)==null?void 0:Jr.option}},variants:{size:{sm:{value:{...(Qr=ye.variants)==null?void 0:Qr.size.sm.trigger,paddingRight:"1600"}},md:{value:{...(ei=ye.variants)==null?void 0:ei.size.md.trigger,paddingRight:"1600"}}},variant:{solid:{root:{...(ti=ye.variants)==null?void 0:ti.variant.outline.root},value:{...(ni=ye.variants)==null?void 0:ni.variant.outline.trigger}},ghost:{root:{...(oi=ye.variants)==null?void 0:oi.variant.ghost.root},value:{...(li=ye.variants)==null?void 0:li.variant.ghost.trigger}}},selectionMode:{multiple:{option:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",'&[data-focused="true"], &:hover':{boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)"},'&[aria-selected="true"], &[data-focused="true"]':{bg:"inherit"}}},single:{},none:{}}},defaultVariants:{size:"md",variant:"solid"}}),xm={dialog:vm,list:hm,table:mm,checkbox:gm,select:ye,accordion:$m,taggroup:ym,switch:wf,combobox:wl},Cm=P.defineTextStyles(te.themeTokens.textStyle),Em=P.defineTokens.durations(te.themeTokens.aspectRatio),Sm=P.defineTokens.animations(te.themeTokens.animation),Pm=P.defineTokens.blurs(te.themeTokens.blur),wm=P.defineTokens.borders(te.themeTokens.border),Dm=P.defineTokens.colors({...te.themeTokens.color["blacks-and-whites"]}),km=P.defineTokens.durations(te.themeTokens.duration),Tm=P.defineTokens.easings(te.themeTokens.easing),Bm=P.defineTokens.fonts(te.themeTokens.fontFamily),Am=P.defineTokens.fontSizes(te.themeTokens.fontSize),Rm=P.defineTokens.fontWeights(te.themeTokens.fontWeight),Fm=t=>Object.keys(t).reduce((e,n)=>{const l=parseFloat(t[n].value)/100;return e[n]={value:`${l}em`},e},{}),Lm=P.defineTokens.letterSpacings(Fm(te.themeTokens.letterSpacing)),Im=P.defineTokens.lineHeights(te.themeTokens.lineHeight),Km=P.defineTokens.radii(te.themeTokens.borderRadius),Mm=P.defineTokens.spacing(te.themeTokens.spacing),Nm=P.defineTokens.sizes({...te.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"}}),zm=P.defineTokens.zIndex(te.themeTokens.zIndex),Om=P.defineTokens.cursor(te.themeTokens.cursor),Vm={aspectRatios:Em,animations:Sm,blurs:Pm,borders:wm,colors:Dm,durations:km,easings:Tm,fonts:Bm,fontSizes:Am,fontWeights:Rm,letterSpacings:Lm,lineHeights:Im,radii:Km,spacing:Mm,sizes:Nm,zIndex:zm,cursor:Om},jm=P.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:lm,theme:{breakpoints:om,keyframes:rm,tokens:Vm,semanticTokens:bm,recipes:cm,slotRecipes:xm,textStyles:Cm,layerStyles:im,animationStyles:tm}}),Df=P.createSystem(P.defaultBaseConfig,jm);function Hm(){const[t,e]=a.useState(n());function n(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return a.useEffect(()=>{const o=document.documentElement,l=new MutationObserver(()=>{const r=n();e(r)});return l.observe(o,{attributes:!0,attributeFilter:["style"]}),()=>l.disconnect()},[]),t}function _m({children:t,...e}){return x.jsx(P.ChakraProvider,{value:Df,children:x.jsx(Jh,{enableSystem:!1,...e,children:x.jsx(x.Fragment,{children:t})})})}function Ue(t){const e={},n={...t};return Object.keys(t).forEach(o=>{Object.prototype.hasOwnProperty.call(t,o)&&P.defaultSystem.isValidProperty(o)&&(e[o]=t[o],delete n[o])}),[e,n]}const{withProvider:Wm,withContext:kf}=P.createSlotRecipeContext({key:"checkbox"}),Gm=Wm("label","root"),Um=kf("span","label"),qm=kf("span","indicator"),Dl=t=>{const{ref:e}=t,n=a.useRef(null),o=be(P.mergeRefs(n,e)),l=P.useSlotRecipe({key:"checkbox"}),[r]=l.splitVariantProps(t),[i]=Ue(t),u=ll(t),{inputProps:s}=Jb(t,u,o),{isFocused:c,focusProps:d}=we(),f=u.isSelected&&!t.isIndeterminate,p=t.isIndeterminate,b={"data-selected":f,"data-indeterminate":p,"data-invalid":t.isInvalid,"data-disabled":t.isDisabled,"data-focus":c||void 0};return x.jsxs(Gm,{"data-slot":"root",...r,...b,...i,children:[x.jsxs(qm,{"data-slot":"indicator",...b,children:[f&&x.jsx(se.Check,{}),p&&x.jsx(se.Remove,{}),x.jsx(Qn,{as:"span",children:x.jsx("input",{...z(s,d),ref:o})})]}),t.children&&x.jsx(Um,{"data-slot":"label",...b,children:t.children})]})};Dl.displayName="Checkbox";const Jn=t=>{const{ref:e,...n}=t;return x.jsx(P.Stack,{ref:e,...n})};Jn.displayName="Stack";const Qn=t=>{const{as:e="div",...n}=t;return x.jsx(Yi,{elementType:e,...n})};Qn.displayName="VisuallyHidden";const{withContext:Zm}=P.createRecipeContext({recipe:Pl}),Ym=Zm("input"),kl=t=>{const{ref:e,...n}=t,o=P.useRecipe({recipe:Pl}),l=a.useRef(null),r=be(P.mergeRefs(l,e)),[i,u]=o.splitVariantProps(n),[s,c]=Ue(u),{inputProps:d}=rl(c,r);return x.jsx(Ym,{...i,...s,asChild:!0,children:x.jsx(pl,{ref:r,...d})})};kl.displayName="TextInput";const Tf=t=>{const{ref:e,...n}=t;return x.jsx(P.Grid,{ref:e,...n})};Tf.displayName="Grid";const Xm=Object.assign(Tf,{Item:P.GridItem}),{withProvider:Jm,withContext:en}=P.createSlotRecipeContext({key:"select"}),Qm=Jm("div","root"),eg=en("button","trigger"),tg=en("span","triggerLabel"),ng=en("div","options"),og=en("div","option"),lg=en("div","optionGroup"),Bf=()=>{const t=a.useContext($l);if(!(t!=null&&t.selectedKey))return null;const e=()=>{t==null||t.setSelectedKey(null)};return x.jsx(Ke,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:e,children:x.jsx(se.Close,{})})};Bf.displayName="Select.ClearButton";const Tl=a.forwardRef(({children:t,isLoading:e,isDisabled:n,...o},l)=>{const r=P.useSlotRecipe({recipe:ye}),[i,u]=r.splitVariantProps(o),[s,c]=Ue(u),d={...c,isDisabled:e||n};return x.jsx(Qm,{asChild:!0,ref:l,...i,...s,children:x.jsxs($h,{...d,children:[x.jsxs(P.chakra.div,{position:"relative",children:[x.jsx(eg,{zIndex:0,asChild:!0,children:x.jsx(F0,{children:x.jsx(tg,{asChild:!0,children:x.jsx(xh,{})})})}),x.jsxs(P.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[x.jsx(P.Flex,{width:"600",my:"auto",children:x.jsx(Bf,{})}),x.jsx(P.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:x.jsx(Te,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:e?x.jsx(Te,{asChild:!0,animation:"spin",animationDuration:"slowest",children:x.jsx(se.Loop,{})}):x.jsx(se.KeyboardArrowDown,{})})})]})]}),x.jsx(Xn,{children:t})]})})});Tl.displayName="Select.Root";const Bl=t=>{const{ref:e,...n}=t,[o,l]=Ue(n);return x.jsx(ng,{asChild:!0,...o,children:x.jsx(rf,{ref:e,...l})})};Bl.displayName="Select.Options";const Al=t=>{const{ref:e,...n}=t;return x.jsx(og,{asChild:!0,ref:e,children:x.jsx(sf,{...n})})};Al.displayName="Select.Option";const Rl=t=>{const{ref:e,label:n,items:o,children:l,...r}=t;if(o&&typeof l!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return x.jsxs(ah,{ref:e,...r,children:[x.jsx(lg,{asChild:!0,children:x.jsx(lf,{children:n})}),o?x.jsx(Un,{items:o,children:i=>typeof l=="function"?l(i):null}):l]})};Rl.displayName="Select.OptionGroup";const rg={Root:Tl,Options:Bl,Option:Al,OptionGroup:Rl},{withProvider:ig,withContext:tn}=P.createSlotRecipeContext({key:"accordion"}),ug=ig("div","root"),ag=tn("div","disclosure"),sg=tn("button","trigger"),cg=tn("div","panel"),dg=tn("div","accordionTitle"),Oo=tn("div","headerContentRight"),Fl=a.createContext(null),Af=a.createContext(null),fg=a.forwardRef(({children:t,onExpandedChange:e,...n},o)=>{const l=V0({...n,onExpandedChange:u=>{e==null||e(u.size>0)}}),r=P.useSlotRecipe({key:"accordion"}),[i]=r.splitVariantProps(n);return x.jsx(Af.Provider,{value:l,children:x.jsx(ug,{"data-slot":"root",ref:o,...i,children:t})})}),pg=a.forwardRef(({children:t},e)=>{const n=a.useContext(Fl);if(!n)throw new Error("Accordion.Header must be used within Accordion.Item");const o=a.Children.toArray(t).reduce((l,r)=>(a.isValidElement(r)&&r.type===Oo?l.rightContent.push(r):l.main.push(r),l),{main:[],rightContent:[]});return x.jsxs(P.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[x.jsxs(sg,{ref:P.mergeRefs(n.triggerRef,e),...n.buttonProps,"data-slot":"trigger",outline:n.isFocusVisible?void 0:"none",children:[x.jsx(se.KeyboardArrowRight,{}),x.jsx(dg,{"data-slot":"accordionTitle",children:o.main})]}),o.rightContent.length>0&&x.jsx(Oo,{"data-slot":"headerContentRight",children:o.rightContent})]})}),bg=a.forwardRef((t,e)=>{const n=a.useContext(Fl),o=be(P.mergeRefs(n==null?void 0:n.panelRef,e));return x.jsx(cg,{ref:o,...P.mergeProps({...n==null?void 0:n.panelProps,...t}),"data-slot":"panel",children:t.children})}),vg=a.forwardRef(({children:t,id:e,isDisabled:n,isExpanded:o,onExpandedChange:l,value:r},i)=>{const u=oe(),c=r||(e||u),d=a.useContext(Af),f=d?d.expandedKeys.has(c):o,p=O0({isExpanded:f,onExpandedChange:C=>{d&&d.toggleKey(c),l==null||l(C)}}),b=a.useRef(null),h=a.useRef(null),g=n||(d==null?void 0:d.isDisabled)||!1,{buttonProps:$,panelProps:y}=_v({isExpanded:p.isExpanded,isDisabled:g},p,b),{buttonProps:S}=On($,h),{focusProps:w,isFocusVisible:A}=we(),T={isExpanded:p.isExpanded,triggerRef:h,panelRef:b,buttonProps:z(S,w),panelProps:y,isFocusVisible:A};return x.jsx(Fl.Provider,{value:T,children:x.jsx(ag,{"data-slot":"disclosure","data-value":c,"data-expanded":p.isExpanded,ref:i,children:t})})}),hg={Root:fg,Item:vg,Header:pg,Content:bg,HeaderRightContent:Oo},mg=P.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:gg}=P.createRecipeContext({recipe:mg}),$g=gg("div"),yg="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",xg="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",Rf=t=>{const{ref:e,"aria-label":n="Loading data",...o}=t,{progressBarProps:l}=o0({isIndeterminate:!0,"aria-label":n,...o});return x.jsx($g,{ref:e,...z(o,l),"aria-label":n,children:x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[x.jsx("path",{d:yg,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),x.jsx("path",{d:xg,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})};Rf.displayName="LoadingSpinner";const Cg=P.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:Eg,withContext:Ff}=P.createSlotRecipeContext({recipe:Cg}),Sg=Eg("div","root"),Pg=Ff("div","header"),wg=Ff("div","content"),Ll=a.createContext(void 0),Il=({children:t,ref:e,...n})=>{const{isFocused:o,isFocusVisible:l,focusProps:r}=we(),[i,u]=a.useState(null),[s,c]=a.useState(null),d=a.useMemo(()=>({setHeader:u,setContent:c}),[u,c]);return x.jsx(Ll.Provider,{value:d,children:x.jsxs(Sg,{ref:e,...z(n,r),"data-focus":o||void 0,"data-focus-visible":l||void 0,tabIndex:0,children:[x.jsxs(Jn,{direction:"column",gap:"200",children:[i,s]}),t]})})};Il.displayName="Card.Root";const Kl=({children:t,...e})=>{const n=a.useContext(Ll);return a.useEffect(()=>{if(n){const o=x.jsx(Pg,{...e,children:t});return n.setHeader(o),()=>n.setHeader(null)}},[t,e]),null};Kl.displayName="Card.Header";const Ml=({children:t,...e})=>{const n=a.useContext(Ll);return a.useEffect(()=>{if(n){const o=x.jsx(wg,{...e,children:t});return n.setContent(o),()=>n.setContent(null)}},[t,e]),null};Ml.displayName="Card.Content";const Dg={Root:Il,Header:Kl,Content:Ml},kg=P.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:Tg}=P.createRecipeContext({recipe:kg}),Bg=Tg("span"),Lf=t=>{const{ref:e,as:n,children:o,...l}=t,r=a.useRef(null),i=be(P.mergeRefs(r,e)),u=n||"span";return x.jsx(Bg,{as:u,...z(l,{ref:i}),children:o})};Lf.displayName="Badge";const Ag=P.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:Rg,withContext:nn}=P.createSlotRecipeContext({recipe:Ag}),Fg=Rg("div","root"),Lg=nn("div","title"),Ig=nn("div","description"),Kg=nn("div","icon"),Mg=nn("div","actions"),Ng=nn("div","dismissButton"),zg=t=>{switch(t){case"critical":return x.jsx(se.ErrorOutline,{});case"info":return x.jsx(se.Info,{});case"warning":return x.jsx(se.WarningAmber,{});case"positive":return x.jsx(se.CheckCircleOutline,{});default:return null}},on=a.createContext(void 0),Nl=t=>{const{ref:e,children:n,...o}=t,[l,r]=a.useState(null),[i,u]=a.useState(null),[s,c]=a.useState(null),[d,f]=a.useState(null),p=a.useMemo(()=>({setTitle:r,setDescription:u,setActions:c,setDismiss:f}),[r,u,c,f]);return x.jsx(on.Provider,{value:p,children:x.jsxs(Fg,{ref:e,...o,role:"alert",children:[x.jsx(Kg,{alignItems:"flex-start",children:zg(o.tone)}),x.jsxs(Jn,{flex:"1",gap:"200",children:[x.jsxs(Te,{children:[l,i]}),s]}),d,n]})})};Nl.displayName="Alert.Root";const zl=({children:t,...e})=>{const n=a.useContext(on);return a.useEffect(()=>{if(n){const o=x.jsx(Lg,{...e,fontWeight:"600",children:t});return n.setTitle(o),()=>n.setTitle(null)}},[t,e]),null};zl.displayName="Alert.Title";const Ol=({children:t,...e})=>{const n=a.useContext(on);return a.useEffect(()=>{if(n){const o=x.jsx(Ig,{...e,children:t});return n.setDescription(o),()=>n.setDescription(null)}},[t,e]),null};Ol.displayName="Alert.Description";const Vl=({children:t,...e})=>{const n=a.useContext(on);return a.useEffect(()=>{if(n){const o=x.jsx(Mg,{...e,children:t});return n.setActions(o),()=>n.setActions(null)}},[t,e]),null};Vl.displayName="Alert.Actions";const jl=({children:t,...e})=>{const n=a.useContext(on);return a.useEffect(()=>{if(n){const o=x.jsx(Ng,{children:x.jsx(Ke,{"aria-label":"Dismiss",...e,variant:"ghost",size:"2xs",children:x.jsx(se.Clear,{role:"img"})})});return n.setDismiss(o),()=>n.setDismiss(null)}},[t,e]),null};jl.displayName="Alert.DismissButton";const Og={Root:Nl,Title:zl,Description:Ol,Actions:Vl,DismissButton:jl};var ri,ii,ui,ai;const Vg=P.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...it.base,...(ri=it.variants)==null?void 0:ri.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(ii=it.variants)==null?void 0:ii.variant.solid}},variants:{size:{xs:{button:(ui=it.variants)==null?void 0:ui.size.xs},md:{button:(ai=it.variants)==null?void 0:ai.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:jg,withProvider:Hg}=P.createSlotRecipeContext({recipe:Vg}),_g=Hg(Th,"root"),Wg=jg(Ah,"button"),Hl=t=>{const{ref:e,children:n,...o}=t;return x.jsx(_g,{ref:e,...o,children:n})};Hl.displayName="ToggleButtonGroup.Root";const _l=t=>{const{ref:e,children:n,...o}=t;return x.jsx(Wg,{...o,ref:e,children:n})};_l.displayName="ToggleButtonGroup.Button";const Gg={Root:Hl,Button:_l},Ug=`
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=`
18
18
  "label"
19
19
  "input"
20
20
  "description"
21
21
  "error"
22
- `,qg=`
22
+ `,d5=`
23
23
  "label input"
24
24
  "label description"
25
25
  "label error"
26
- `,Zg=P.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:Ug},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:qg,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:Yg,withContext:ln}=P.createSlotRecipeContext({recipe:Zg}),Xg=Yg("div","root"),Jg=ln("div","label"),Qg=ln("div","input"),e4=ln("div","description"),t4=ln("div","error"),n4=ln("div","popover"),o4=a.forwardRef(({isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:o,children:l,...r},i)=>{const[u,s]=a.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:o}),c={description:u.description,errorMessage:u.error};u.label?c.label=u.label:(c["aria-label"]="empty-label",c["aria-labelledby"]="empty-label");const{labelProps:d,fieldProps:f,descriptionProps:p,errorMessageProps:b}=jn(c);a.useEffect(()=>{s(g=>({...g,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:o}))},[t,e,n,o]);const h={...f,isInvalid:t,isRequired:e,isDisabled:n,isReadOnly:o};return x.jsx(pt.Provider,{value:{context:u,setContext:s},children:x.jsxs(Xg,{ref:i,...r,children:[u.label&&x.jsxs(Jg,{...u.labelSlotProps,children:[x.jsxs("label",{...d,children:[u.label,e&&x.jsx("sup",{"aria-hidden":"true",children:"*"})]}),u.info&&x.jsxs(ff,{children:[x.jsx(Te,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:x.jsx(Te,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:x.jsx(Ke,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:x.jsx(se.HelpOutline,{})})})}),x.jsx(Xn,{children:x.jsx(n4,{asChild:!0,children:x.jsx(bh,{children:x.jsx(Te,{p:"300",children:u.info})})})})]})]}),u.input&&x.jsx(Qg,{...u.inputSlotProps,children:a.Children.map(u.input,g=>a.isValidElement(g)?a.cloneElement(g,h):g)}),u.description&&x.jsx(e4,{...p,...u.descriptionSlotProps,children:u.description}),t&&u.error&&x.jsxs(t4,{...b,...u.errorSlotProps,children:[x.jsx(Te,{as:se.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),u.error]}),l]})})}),l4=({children:t,...e})=>{const{setContext:n}=a.useContext(pt);return a.useEffect(()=>{n(o=>({...o,label:t,labelSlotProps:e}))},[t,n]),null},r4=({children:t,...e})=>{const{setContext:n}=a.useContext(pt);return a.useEffect(()=>{n(o=>({...o,input:t,inputSlotProps:e}))},[t,n]),null},i4=({children:t,...e})=>{const{setContext:n}=a.useContext(pt);return a.useEffect(()=>{n(o=>({...o,description:t,descriptionSlotProps:e}))},[t,n]),null},u4=({children:t,...e})=>{const{setContext:n}=a.useContext(pt);return a.useEffect(()=>{n(o=>({...o,error:t,errorSlotProps:e}))},[t,n]),null},a4=({children:t})=>{const{setContext:e}=a.useContext(pt);return a.useEffect(()=>{e(n=>({...n,info:t}))},[t,e]),null},pt=a.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),s4={Root:o4,Label:l4,Input:r4,Description:i4,Error:u4,InfoBox:a4},c4=P.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:d4}=P.createRecipeContext({recipe:c4}),f4=d4("svg"),If=t=>{const{ref:e,...n}=t;return x.jsx(f4,{ref:e,asChild:!n.as,...n})};If.displayName="Icon";const{withProvider:p4,withContext:Kf}=P.createSlotRecipeContext({key:"taggroup"}),b4=p4(Eh,"root"),v4=t=>{const{ref:e,...n}=t,o=Kf(Ph,"tagList");return x.jsx(o,{...n,ref:e})},h4=Kf(Dh,"tag"),Mf=({children:t,onRemove:e,selectionMode:n,ref:o,...l})=>(e&&(n==="multiple"||n==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),x.jsx(b4,{ref:o,onRemove:e,selectionMode:n,...l,children:t}));Mf.displayName="TagGroup.Root";const Nf=({children:t,ref:e,...n})=>x.jsx(v4,{ref:e,...n,children:t});Nf.displayName="TagGroup.TagList";const zf=({children:t,ref:e,...n})=>{const o=typeof t=="string"?t:void 0;return x.jsx(h4,{ref:e,textValue:o,...n,children:({allowsRemoving:l,isSelected:r,selectionMode:i})=>x.jsxs(x.Fragment,{children:[t,l&&i!=="multiple"&&i!=="single"&&x.jsx(Ke,{size:"2xs",variant:r?"solid":"ghost",slot:"remove",tone:r?void 0:"neutral",children:x.jsx(se.Close,{})})]})})};zf.displayName="TagGroup.Tag";const gn={Root:Mf,TagList:Nf,Tag:zf},{withProvider:m4,withContext:Wl}=P.createSlotRecipeContext({key:"switch"}),g4=m4("label","root"),$4=Wl("span","label"),y4=Wl("span","track"),x4=Wl("span","thumb"),Of=({ref:t,...e})=>{const n=a.useRef(null),o=be(t?P.mergeRefs(n,t):n),l=P.useSlotRecipe({recipe:wf}),[r,i]=l.splitVariantProps(e),[u,s]=Ue(i),c=ll(e),{inputProps:d}=u0(s,c,o),{isFocused:f,focusProps:p}=we(),b={"data-selected":c.isSelected,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":f||void 0};return x.jsxs(g4,{"data-slot":"root",...r,...b,...u,children:[x.jsxs(y4,{"data-slot":"track",...b,children:[x.jsx(x4,{"data-slot":"thumb",...b}),x.jsx(Qn,{as:"span",children:x.jsx("input",{"data-slot":"input",...z(d,p),ref:o})})]}),e.children&&x.jsx($4,{"data-slot":"label",...b,children:e.children})]})};Of.displayName="Switch";const Vf=a.forwardRef((t,e)=>{const{size:n="md",isDisabled:o}=t,[l,r]=a.useState(!1),i=()=>r(!l),u=n==="md"?"xs":"2xs",s=n==="md"?{top:"100",right:"400"}:{top:"50",right:"400"},c=n==="md"?"1400":"1100";return x.jsxs(Te,{display:"inline-block",position:"relative",children:[x.jsx(kl,{width:"full",ref:e,type:l?"text":"password",...t,pr:c}),x.jsx(Te,{position:"absolute",...s,children:x.jsxs(Cl,{children:[x.jsx(Ke,{size:u,variant:"ghost",tone:"primary","aria-label":l?"Hide password":"Show password",onPress:i,isDisabled:o,children:l?x.jsx(se.VisibilityOff,{}):x.jsx(se.Visibility,{})}),x.jsx(xl,{children:l?"Hide password":"Show Password"})]})})]})});Vf.displayName="PasswordInput";const{withProvider:C4,withContext:rn}=P.createSlotRecipeContext({key:"combobox"}),jf=C4("div","root"),Hf=rn("div","value"),E4=rn("div","buttonGroup"),S4=rn("div","options"),P4=rn("div","option"),w4=rn("div","optionGroup"),Gl=({children:t,ref:e,...n})=>{const[o,l]=Ue(n);return x.jsx(S4,{...o,asChild:!0,children:x.jsx(rf,{ref:e,...l,children:t})})};Gl.displayName="ComboBox.Options";const _f=({selectedKeys:t,onSelectionChange:e,onInputChange:n})=>{const o=a.useContext(pf);return x.jsxs(E4,{children:[(o==null?void 0:o.selectedKey)&&x.jsx(Ke,{pointerEvents:"all",slot:null,size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:()=>o==null?void 0:o.setSelectedKey(null),my:"auto",children:x.jsx(se.Close,{})}),t instanceof Set&&t.size>0&&x.jsx(Ke,{pointerEvents:"all",slot:null,size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:()=>{e==null||e(new Set),n==null||n("")},my:"auto",children:x.jsx(se.Close,{})}),x.jsx(Ke,{size:"2xs",variant:"ghost",tone:"neutral",my:"auto","aria-label":"toggle combobox",children:x.jsx(se.KeyboardArrowDown,{})})]})},D4=({children:t,ref:e,...n})=>x.jsxs(hh,{...n,ref:e,children:[x.jsx(Hf,{asChild:!0,children:x.jsx(pl,{})}),x.jsx(_f,{}),x.jsx(Xn,{children:x.jsx(Gl,{children:t})})]}),k4=({selectedKeys:t=new Set,items:e,itemID:n="id",itemValue:o="name",onSelectionChange:l,ref:r})=>{const i=a.useMemo(()=>[...t].map(s=>e?Array.from(e).find(c=>c[n]===s):void 0).filter(s=>s!==void 0),[e,t]),u=s=>{if(t instanceof Set&&s.isSubsetOf(t)){const c=t.difference(s);l==null||l(c)}};return x.jsx(Hf,{asChild:!0,alignItems:"space-between",justifyContent:"center",ref:r,children:x.jsx(gn.Root,{size:"md",onRemove:u,"aria-label":"Selected values",selectionMode:"none",children:x.jsx(gn.TagList,{items:i,renderEmptyState:()=>"search..",children:s=>x.jsx(gn.Tag,{children:s[o]})})})})};function T4(t){let e;for(e of t);return e}const B4=({children:t,defaultFilter:e,inputValue:n,onInputChange:o,defaultSelectedKeys:l=new Set,selectedKeys:r,onSelectionChange:i,disabledKeys:u,items:s,itemID:c="id",itemValue:d="name",ref:f,...p})=>{const b=P.useSlotRecipe({recipe:wl}),[h,g]=b.splitVariantProps(p),[$]=Ue(g),[y,S]=a.useState(),w=r??y??l,A=i??S,[T,C]=a.useState(""),I=n??T,R=o??C,O=()=>{if(w!=="all"){const N=T4(w);N!=null&&A(w.difference(new Set([N])))}},F=N=>{console.log(N.key,I),N.key==="Backspace"&&I===""&&O()},v=zi({sensitivity:"base"}),D=(...N)=>v.contains.apply(void 0,N),K=a.useRef(null),B=a.useRef(null);return x.jsx(jf,{selectionMode:"multiple",asChild:!0,ref:f,...h,...$,children:x.jsx(G0,{ref:K,children:x.jsxs(ff,{children:[x.jsx(k4,{items:s,selectedKeys:w,onSelectionChange:A,itemID:c,itemValue:d}),x.jsx(_f,{selectedKeys:w,onSelectionChange:A,onInputChange:R}),x.jsx(Xn,{triggerRef:K,scrollRef:B,placement:"bottom start",children:x.jsxs(th,{"aria-label":"nimbus-combobox-autocomplete",filter:e??D,inputValue:I,onInputChange:R,...p,children:[x.jsx(Z0,{"aria-label":"combobox input",children:x.jsx(pl,{autoFocus:!0,onKeyDownCapture:F,placeholder:"search..."})}),x.jsx(Gl,{ref:B,items:s,selectionMode:"multiple",onSelectionChange:A,selectedKeys:w,shouldFocusWrap:!0,disabledKeys:u,escapeKeyBehavior:"none",children:t})]})})]})})})},Wf=({children:t,ref:e,...n})=>{const o=P.useSlotRecipe({recipe:wl}),[l,r]=o.splitVariantProps(n),[i,u]=Ue(r),s="selectionMode"in n&&n.selectionMode==="multiple"?B4:D4;return x.jsx(jf,{asChild:!0,ref:e,...l,...i,children:x.jsx(s,{...u,ref:e,children:t})})};Wf.displayName="ComboBox.Root";const Gf=({children:t,label:e,items:n,ref:o,...l})=>x.jsxs(w4,{ref:o,...l,children:[x.jsx(lf,{children:e}),n?x.jsx(Un,{items:n,children:r=>typeof t=="function"?t(r):null}):t]});Gf.displayName="ComboBox.OptionGroup";const Vo=({children:t,ref:e,...n})=>{const[o,l]=Ue(n),r=typeof t=="string"?t:void 0;return x.jsx(P4,{...o,asChild:!0,children:x.jsx(sf,{ref:e,textValue:n.textValue??r,...l,children:i=>{const u=typeof t=="function"?t({...i}):t;return i.selectionMode==="multiple"?x.jsx(Dl,{isSelected:i.isSelected,children:t}):x.jsx(x.Fragment,{children:u})}})})};Vo.displayName="ComboBox.Option";const A4={Root:Wf,Options:Vo,OptionGroup:Gf,Option:Vo};function jo(){return jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},jo.apply(null,arguments)}var Uf=["shift","alt","meta","mod","ctrl"],R4={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 Je(t){return(t&&R4[t]||t||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function F4(t){return Uf.includes(t)}function go(t,e){return e===void 0&&(e=","),t.split(e)}function $o(t,e,n){e===void 0&&(e="+");var o=t.toLocaleLowerCase().split(e).map(function(i){return Je(i)}),l={alt:o.includes("alt"),ctrl:o.includes("ctrl")||o.includes("control"),shift:o.includes("shift"),meta:o.includes("meta"),mod:o.includes("mod")},r=o.filter(function(i){return!Uf.includes(i)});return jo({},l,{keys:r,description:n,hotkey:t})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(t){t.key!==void 0&&qf([Je(t.key),Je(t.code)])}),document.addEventListener("keyup",function(t){t.key!==void 0&&Zf([Je(t.key),Je(t.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Qe.clear()})})();var Qe=new Set;function Ul(t){return Array.isArray(t)}function L4(t,e){e===void 0&&(e=",");var n=Ul(t)?t:t.split(e);return n.every(function(o){return Qe.has(o.trim().toLowerCase())})}function qf(t){var e=Array.isArray(t)?t:[t];Qe.has("meta")&&Qe.forEach(function(n){return!F4(n)&&Qe.delete(n.toLowerCase())}),e.forEach(function(n){return Qe.add(n.toLowerCase())})}function Zf(t){var e=Array.isArray(t)?t:[t];t==="meta"?Qe.clear():e.forEach(function(n){return Qe.delete(n.toLowerCase())})}function I4(t,e,n){(typeof n=="function"&&n(t,e)||n===!0)&&t.preventDefault()}function K4(t,e,n){return typeof n=="function"?n(t,e):n===!0||n===void 0}function M4(t){return Yf(t,["input","textarea","select"])}function Yf(t,e){e===void 0&&(e=!1);var n=t.target,o=t.composed,l=null;return N4(n)&&o?l=t.composedPath()[0]&&t.composedPath()[0].tagName:l=n&&n.tagName,Ul(e)?!!(l&&e&&e.some(function(r){var i;return r.toLowerCase()===((i=l)==null?void 0:i.toLowerCase())})):!!(l&&e&&e)}function N4(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function z4(t,e){return t.length===0&&e?(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):e?t.some(function(n){return e.includes(n)})||t.includes("*"):!0}var O4=function(e,n,o){o===void 0&&(o=!1);var l=n.alt,r=n.meta,i=n.mod,u=n.shift,s=n.ctrl,c=n.keys,d=e.key,f=e.code,p=e.ctrlKey,b=e.metaKey,h=e.shiftKey,g=e.altKey,$=Je(f),y=d.toLowerCase();if(!(c!=null&&c.includes($))&&!(c!=null&&c.includes(y))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes($))return!1;if(!o){if(l===!g&&y!=="alt"||u===!h&&y!=="shift")return!1;if(i){if(!b&&!p)return!1}else if(r===!b&&y!=="meta"&&y!=="os"||s===!p&&y!=="ctrl"&&y!=="control")return!1}return c&&c.length===1&&(c.includes(y)||c.includes($))?!0:c?L4(c):!c},V4=a.createContext(void 0),j4=function(){return a.useContext(V4)};function Xf(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(n,o){return n&&Xf(t[o],e[o])},!0):t===e}var H4=a.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),_4=function(){return a.useContext(H4)};function W4(t){var e=a.useRef(void 0);return Xf(e.current,t)||(e.current=t),e.current}var _r=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},G4=typeof window<"u"?a.useLayoutEffect:a.useEffect;function U4(t,e,n,o){var l=a.useState(null),r=l[0],i=l[1],u=a.useRef(!1),s=n instanceof Array?o instanceof Array?void 0:o:n,c=Ul(t)?t.join(s==null?void 0:s.splitKey):t,d=n instanceof Array?n:o instanceof Array?o:void 0,f=a.useCallback(e,d??[]),p=a.useRef(f);d?p.current=f:p.current=e;var b=W4(s),h=_4(),g=h.enabledScopes,$=j4();return G4(function(){if(!((b==null?void 0:b.enabled)===!1||!z4(g,b==null?void 0:b.scopes))){var y=function(C,I){var R;if(I===void 0&&(I=!1),!(M4(C)&&!Yf(C,b==null?void 0:b.enableOnFormTags))){if(r!==null){var O=r.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==r&&!r.contains(O.activeElement)){_r(C);return}}(R=C.target)!=null&&R.isContentEditable&&!(b!=null&&b.enableOnContentEditable)||go(c,b==null?void 0:b.splitKey).forEach(function(F){var v,D=$o(F,b==null?void 0:b.combinationKey);if(O4(C,D,b==null?void 0:b.ignoreModifiers)||(v=D.keys)!=null&&v.includes("*")){if(b!=null&&b.ignoreEventWhen!=null&&b.ignoreEventWhen(C)||I&&u.current)return;if(I4(C,D,b==null?void 0:b.preventDefault),!K4(C,D,b==null?void 0:b.enabled)){_r(C);return}p.current(C,D),I||(u.current=!0)}})}},S=function(C){C.key!==void 0&&(qf(Je(C.code)),((b==null?void 0:b.keydown)===void 0&&(b==null?void 0:b.keyup)!==!0||b!=null&&b.keydown)&&y(C))},w=function(C){C.key!==void 0&&(Zf(Je(C.code)),u.current=!1,b!=null&&b.keyup&&y(C,!0))},A=r||(s==null?void 0:s.document)||document;return A.addEventListener("keyup",w,s==null?void 0:s.eventListenerOptions),A.addEventListener("keydown",S,s==null?void 0:s.eventListenerOptions),$&&go(c,b==null?void 0:b.splitKey).forEach(function(T){return $.addHotkey($o(T,b==null?void 0:b.combinationKey,b==null?void 0:b.description))}),function(){A.removeEventListener("keyup",w,s==null?void 0:s.eventListenerOptions),A.removeEventListener("keydown",S,s==null?void 0:s.eventListenerOptions),$&&go(c,b==null?void 0:b.splitKey).forEach(function(T){return $.removeHotkey($o(T,b==null?void 0:b.combinationKey,b==null?void 0:b.description))})}}},[r,c,b,g]),i}function q4(){var t=a.useRef(!1),e=a.useCallback(function(){return t.current},[]);return a.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}var Z4=function(t){t===void 0&&(t={});var e=a.useState(t),n=e[0],o=e[1],l=a.useCallback(function(r){o(function(i){return Object.assign({},i,r instanceof Function?r(i):r)})},[]);return[n,l]},yo,Wr;function Y4(){return Wr||(Wr=1,yo=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],o=0;o<t.rangeCount;o++)n.push(t.getRangeAt(o));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(l){t.addRange(l)}),e&&e.focus()}}),yo}var xo,Gr;function X4(){if(Gr)return xo;Gr=1;var t=Y4(),e={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function o(r){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,i)}function l(r,i){var u,s,c,d,f,p,b=!1;i||(i={}),u=i.debug||!1;try{c=t(),d=document.createRange(),f=document.getSelection(),p=document.createElement("span"),p.textContent=r,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(),i.format)if(g.preventDefault(),typeof g.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var $=e[i.format]||e.default;window.clipboardData.setData($,r)}else g.clipboardData.clearData(),g.clipboardData.setData(i.format,r);i.onCopy&&(g.preventDefault(),i.onCopy(g.clipboardData))}),document.body.appendChild(p),d.selectNodeContents(p),f.addRange(d);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");b=!0}catch(g){u&&console.error("unable to copy using execCommand: ",g),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",r),i.onCopy&&i.onCopy(window.clipboardData),b=!0}catch($){u&&console.error("unable to copy using clipboardData: ",$),u&&console.error("falling back to prompt"),s=o("message"in i?i.message:n),window.prompt(s,r)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),p&&document.body.removeChild(p),c()}return b}return xo=l,xo}var J4=X4();const Q4=Jv(J4);var e3=function(){var t=q4(),e=Z4({value:void 0,error:void 0,noUserInteraction:!0}),n=e[0],o=e[1],l=a.useCallback(function(r){if(t()){var i,u;try{if(typeof r!="string"&&typeof r!="number"){var s=new Error("Cannot copy typeof "+typeof r+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(s),o({value:r,error:s,noUserInteraction:!0});return}else if(r===""){var s=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(s),o({value:r,error:s,noUserInteraction:!0});return}u=r.toString(),i=Q4(u),o({value:u,error:void 0,noUserInteraction:i})}catch(c){o({value:u,error:c,noUserInteraction:i})}}},[]);return[n,l]};Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>P.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>P.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>P.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>P.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>P.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>P.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>P.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>P.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>P.Table});exports.Accordion=hg;exports.Alert=Og;exports.Avatar=ci;exports.Badge=Lf;exports.Box=Te;exports.Button=al;exports.Card=Dg;exports.CardContent=Ml;exports.CardHeader=Kl;exports.CardRoot=Il;exports.Checkbox=Dl;exports.ColorModeLabel=em;exports.ComboBox=A4;exports.Dialog=$0;exports.FormField=s4;exports.FormFieldContext=pt;exports.Grid=Xm;exports.Icon=If;exports.IconButton=Ke;exports.Image=gf;exports.Link=yf;exports.ListItem=Nh;exports.ListRoot=Mh;exports.LoadingSpinner=Rf;exports.MakeElementFocusable=Sf;exports.NimbusProvider=_m;exports.PasswordInput=Vf;exports.Select=rg;exports.SimpleGrid=zh;exports.Stack=Jn;exports.Switch=Of;exports.TagGroup=gn;exports.Text=Cf;exports.TextInput=kl;exports.ToggleButtonGroup=Gg;exports.ToggleButtonGroupButton=_l;exports.ToggleButtonGroupRoot=Hl;exports.Tooltip=xl;exports.TooltipTrigger=Cl;exports.VisuallyHidden=Qn;exports._AlertActions=Vl;exports._AlertDescription=Ol;exports._AlertDismissButton=jl;exports._AlertRoot=Nl;exports._AlertTitle=zl;exports._SelectOption=Al;exports._SelectOptionGroup=Rl;exports._SelectOptions=Bl;exports._SelectRoot=Tl;exports.system=Df;exports.useColorMode=Sl;exports.useColorModeValue=Qh;exports.useColorScheme=Hm;exports.useCopyToClipboard=e3;exports.useHotkeys=U4;
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(`
27
+ <svg width="8" height="8" viewBox="0 0 8 8" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
28
+ <mask id="mask0_4610_25787" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="-1" y="-1" width="9" height="9">
29
+ <rect width="1.03391" height="4.13563" transform="matrix(0.716449 0.69764 -0.716449 0.69764 6.92578 4.05362)" fill="currentColor"/>
30
+ <rect width="1.03391" height="8.27125" transform="matrix(0.716448 0.69764 -0.716448 0.69764 5.87891 -0.0262451)" fill="currentColor"/>
31
+ </mask>
32
+ <g mask="url(#mask0_4610_25787)">
33
+ <rect width="8" height="8" fill="${ee.designTokens.color["semantic-palettes"].primary.light[9]}"/>
34
+ </g>
35
+ </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;
27
37
  //# sourceMappingURL=index.cjs.map